/* ==========================================================================
   RamNar – main stylesheet
   Mobile-first. Uses logical properties (inline/block) everywhere so the
   same rules work for Arabic (RTL) and English (LTR).

   1. Tokens          6. Home sections      11. Footer & floating button
   2. Base            7. Inner pages        12. Motion (reveal, thread, transitions)
   3. Layout          8. Services           13. Reduced motion
   4. Components      9. Gallery + lightbox
   5. Header & nav   10. Contact
   ========================================================================== */

/* 0. Fonts (self-hosted; a browser only downloads the faces a page actually uses) */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(../fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(../fonts/plex-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(../fonts/plex-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(../fonts/plex-latin-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Amiri"; src: url(../fonts/amiri-arabic-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF; }
@font-face { font-family: "Aref Ruqaa"; src: url(../fonts/ruqaa-arabic-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-latin-var.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* colour – taken from the photos, built around the black & white logo */
  --ink: #1e1b18;          /* logo black, body text      15.1:1 on linen */
  --ink-2: #3a332d;
  --muted: #6b635a;        /* secondary text              5.2:1 on linen */
  --linen: #f6f0e6;        /* page background */
  --linen-2: #eee5d6;      /* tinted sections */
  --cream: #fffbf5;        /* cards */
  --rose: #9e4255;         /* thread rose – primary       5.5:1 on linen */
  --rose-2: #843447;
  --blush: #ebd3cf;
  --olive: #5b6142;        /* olive satin – secondary     6.3:1 with cream */
  --wood: #a47a4c;         /* hoop wood – decorative only */
  --wood-2: #7d5a35;
  --wa: #137a3f;           /* WhatsApp green, darkened for contrast */
  --on-dark-muted: #c8b9a6;

  /* type */
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-accent: "Fraunces", Georgia, serif;
  --lh-body: 1.65;
  --lh-head: 1.15;
  --track-eyebrow: 0.14em;

  /* spacing (8pt rhythm) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 20px;
  --radius-sm: 12px;

  /* depth */
  --shadow-1: 0 1px 2px rgb(30 27 24 / 0.06), 0 4px 14px -6px rgb(30 27 24 / 0.12);
  --shadow-2: 0 2px 4px rgb(30 27 24 / 0.06), 0 22px 44px -22px rgb(30 27 24 / 0.38);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  /* layers */
  --z-seam: 5; --z-header: 40; --z-float: 50; --z-menu: 60; --z-skip: 100;
}

/* Arabic gets its own display + accent faces and a roomier line height */
:lang(ar) {
  --font-display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --font-accent: "Aref Ruqaa", "Amiri", serif;
  --lh-body: 1.85;
  --lh-head: 1.4;
  --track-eyebrow: 0;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(ar) body, body:lang(ar) { font-size: 1.0625rem; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: var(--lh-head); text-wrap: balance; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { font-weight: 560; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--blush); color: var(--ink); }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .touch :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--cream); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: var(--z-skip);
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--cream);
  font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* SVG icons from the sprite */
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section--tint { background: var(--linen-2); }
.prose { color: var(--ink-2); max-width: 62ch; font-size: 1.0625rem; }
.prose p + p { margin-block-start: 1em; }
.center-cta { text-align: center; margin-block-start: var(--s-7); }

/* 4. Components ------------------------------------------------------------ */

/* eyebrow + section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--rose); font-weight: 600; font-size: 0.875rem;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
}
:lang(ar) .eyebrow { text-transform: none; font-size: 0.95rem; }
.eyebrow__stitch {
  width: 30px; height: 2px; flex: none;
  background: repeating-linear-gradient(to right, currentColor 0 6px, transparent 6px 10px);
}
.section-head { display: grid; gap: var(--s-3); margin-block-end: var(--s-6); max-width: 720px; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head--hero { margin-block-end: 0; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section-title--center { text-align: center; margin-block-end: var(--s-7); }
.section-head--hero .section-title { font-size: clamp(2.4rem, 6.4vw, 4.2rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }

/* buttons – the dashed inner line is a "stitch" */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 4px; border-radius: inherit;
  border: 1.5px dashed currentColor; opacity: 0.35; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), inset var(--t-med) var(--ease);
}
.btn:hover::after { opacity: 0.6; inset: 5px; }
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 56px; padding-inline: 1.7em; font-size: 1.0625rem; }
.btn--primary { background: var(--rose); color: var(--cream); box-shadow: 0 10px 24px -14px var(--rose); }
.btn--primary:hover { background: var(--rose-2); transform: translateY(-1px); box-shadow: 0 16px 30px -14px var(--rose); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost::after { opacity: 0; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--ghost:hover::after { opacity: 0.4; }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #fff; transform: translateY(-1px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px;
  color: var(--rose); font-weight: 600; text-decoration: none;
}
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon--dir { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon--dir { transform: scaleX(-1) translateX(4px); }

/* chips (filters, jump links, hero tags) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0.4em 1.1em;
  border-radius: 999px; border: 1.5px dashed rgb(30 27 24 / 0.35); background: transparent;
  color: var(--ink); font-weight: 500; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--ink); background: var(--cream); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-style: solid; border-color: var(--ink); }
.chip__count { font-size: 0.8em; opacity: 0.7; font-variant-numeric: tabular-nums; }

/* embroidery hoop frame: wooden ring + brass clasp around a round photo */
.hoop {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  padding: clamp(7px, 1.4vw, 13px);
  background: conic-gradient(from 30deg, #b98c5a, #9b6f42 18%, #b98c5a 36%, #8e6439 55%, #b48555 72%, #9b6f42 88%, #b98c5a);
  box-shadow: var(--shadow-2);
}
.hoop::before { /* clasp */
  content: ""; position: absolute; z-index: 2; inset-block-start: -5%; inset-inline-start: 50%;
  width: 11%; height: 9%; translate: -50% 0; border-radius: 5px;
  background: linear-gradient(90deg, #8d6a3b, #d8b77e 45%, #8d6a3b);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.25);
}
[dir="rtl"] .hoop::before { translate: 50% 0; }
.hoop::after { /* inner ring edge + fabric shadow */
  content: ""; position: absolute; inset: clamp(7px, 1.4vw, 13px); border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgb(60 40 20 / 0.35), inset 0 8px 18px rgb(0 0 0 / 0.18);
}
.hoop__img, .hoop__img img { width: 100%; height: 100%; border-radius: 50%; }
.hoop__img img { object-fit: cover; aspect-ratio: 1; }

/* photo tile (gallery + previews) */
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--linen-2); text-decoration: none; isolation: isolate;
}
.tile picture, .tile img { width: 100%; height: 100%; }
.tile img { aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms var(--ease), filter var(--t-med) var(--ease); }
.tile::after { /* stitch ring that sews in on hover */
  content: ""; position: absolute; inset: 10px; border-radius: 8px; z-index: 1; pointer-events: none;
  border: 2px dashed rgb(255 251 245 / 0.9); opacity: 0; scale: 1.04;
  transition: opacity var(--t-med) var(--ease), scale var(--t-med) var(--ease);
}
.tile__label {
  position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-start: 12px;
  padding: 4px 12px; border-radius: 999px; background: rgb(255 251 245 / 0.92); color: var(--ink);
  font-size: 0.8rem; font-weight: 600; line-height: 1.6;
  opacity: 0; translate: 0 6px; transition: opacity var(--t-med) var(--ease), translate var(--t-med) var(--ease);
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; scale: 1; }
.tile:hover .tile__label, .tile:focus-visible .tile__label { opacity: 1; translate: 0 0; }
@media (hover: none) { .tile__label { opacity: 1; translate: 0 0; } }

/* stitch divider between sections */
.stitch-divider { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); height: 24px; color: var(--wood); }
.stitch-divider svg { width: 100%; height: 100%; overflow: visible; }
.stitch-divider path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 10 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* list with cross-stitch bullets */
.stitch-list { display: grid; gap: 10px; margin-block: var(--s-3) var(--s-6); }
.stitch-list li { position: relative; padding-inline-start: 30px; color: var(--ink-2); }
.stitch-list li::before {
  content: ""; position: absolute; inset-inline-start: 4px; inset-block-start: 0.55em; width: 12px; height: 12px;
  background:
    linear-gradient(45deg, transparent 43%, var(--rose) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--rose) 43% 57%, transparent 57%);
}
:lang(ar) .stitch-list li::before { inset-block-start: 0.7em; }

/* 5. Header & navigation --------------------------------------------------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: var(--z-header);
  border-block-end: 1.5px dashed transparent; transition: border-color var(--t-med) var(--ease);
  view-transition-name: site-header;
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(246 240 230 / 0.94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.site-header[data-scrolled] { border-block-end-color: rgb(164 122 76 / 0.55); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-height: 48px; }
.brand__mark { width: 40px; height: auto; transition: transform var(--t-slow) var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg); }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
:lang(ar) .brand__name { font-size: 1.5rem; }
.brand__tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap; }
@media (max-width: 400px) { :lang(en) .brand__tag { display: none; } }
:lang(ar) .brand__tag { letter-spacing: 0; font-size: 0.78rem; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid rgb(30 27 24 / 0.2); text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.lang-switch:hover { border-color: var(--ink); background: var(--cream); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-body); }
.lang-switch[lang="en"] { font-weight: 500; } /* uses the 400 file: saves a Latin bold download on Arabic pages */

.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--cream);
}
.menu-toggle__bars { display: grid; gap: 6px; width: 20px; }
.menu-toggle__bars span { height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-med) var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* mobile: full-screen sheet */
.site-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-6) var(--gutter) calc(var(--s-7) + env(safe-area-inset-bottom));
  background: var(--linen); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.site-nav[data-open] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; }
.site-nav__list a {
  display: flex; align-items: center; min-height: 64px; text-decoration: none;
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  border-block-end: 1.5px dashed rgb(164 122 76 / 0.45);
}
.site-nav__list a[aria-current="page"] { color: var(--rose); }
.site-nav__wa { align-self: flex-start; }
html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; background: none; }
html:not(.js) .menu-toggle { display: none; }
body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .menu-toggle, .site-nav__wa { display: none; }
  .site-nav { position: static; flex-direction: row; padding: 0; background: none; opacity: 1; visibility: visible; transform: none; overflow: visible; }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__list a {
    position: relative; min-height: 44px; padding-inline: 14px; border: 0;
    font-family: var(--font-body); font-size: 0.98rem; font-weight: 500;
  }
  .site-nav__list a::after { /* running stitch under the active / hovered link */
    content: ""; position: absolute; inset-inline: 14px; inset-block-end: 6px; height: 2px;
    background: repeating-linear-gradient(to right, var(--rose) 0 6px, transparent 6px 10px);
    transform: scaleX(0); transform-origin: var(--origin, left); transition: transform var(--t-med) var(--ease);
  }
  [dir="rtl"] .site-nav__list a::after { --origin: right; }
  .site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav__list a[aria-current="page"] { color: var(--rose); font-weight: 600; }
}

/* 6. Home sections --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: var(--s-6) clamp(56px, 8vw, 104px); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: var(--s-7); align-items: center; }
.hero__text { display: grid; gap: var(--s-5); justify-items: start; }
.hero__title { font-size: clamp(2.9rem, 10.5vw, 5.8rem); line-height: 1.12; }
:lang(ar) .hero__title { line-height: 1.3; }
.hero__title-a, .hero__title-b { display: block; }
.hero__title-b {
  position: relative; display: inline-block; color: var(--rose);
  font-family: var(--font-accent); font-weight: 400; font-style: italic;
}
:lang(ar) .hero__title-b { font-style: normal; font-weight: 700; font-size: 1.08em; line-height: 1.2; }
.hero__underline {
  position: absolute; inset-inline: -2%; inset-block-end: -0.12em; width: 104%; height: 0.32em; overflow: visible;
}
.hero__underline path { fill: none; stroke: var(--wood); stroke-width: 3; stroke-dasharray: 12 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero__lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--ink-2); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.92rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--wood); }

.hero__art { position: relative; width: min(100%, 520px); aspect-ratio: 1 / 0.92; margin-inline: auto; }
.hero__art .hoop { position: absolute; }
.hero__art .hoop--lg { width: 64%; inset-block-start: 6%; inset-inline-start: 22%; z-index: 1; }
.hero__art .hoop--md { width: 40%; inset-block-end: 0; inset-inline-start: 0; z-index: 2; }
.hero__art .hoop--sm { width: 31%; inset-block-start: 0; inset-inline-end: 0; z-index: 2; }

.hero__needle {
  position: absolute; z-index: 0; width: 12px; height: 200px; color: var(--ink);
  inset-block-start: -40px; inset-inline-start: 3%; rotate: -24deg; opacity: 0.85;
}
.hero__needle path { fill: currentColor; }
.hero__needle ellipse { fill: var(--linen); }
[dir="rtl"] .hero__needle { rotate: 24deg; }

@media (max-width: 639px) {
  /* keep the first phone screen compact so the hoop photos peek in */
  .hero { padding-block-start: var(--s-5); }
  .hero__text { gap: var(--s-4); }
  .hero__chips { display: none; }
  .hero__actions .btn--lg { min-height: 50px; padding-inline: 1.1em; font-size: 1rem; }
  .hero__art { width: min(100%, 340px); }
}
@media (min-width: 960px) {
  .hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding-block: var(--s-7) var(--s-8); }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); }
  .hero__art { width: 100%; }
}

/* intro with rotating "hand made with love" ring */
.intro__grid { display: grid; gap: var(--s-7); align-items: center; }
.intro__badge { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin-inline: auto; }
.intro__ring { width: 100%; height: 100%; overflow: visible; }
.intro__ring text { font-family: var(--font-body); font-weight: 600; font-size: 17px; fill: var(--ink); letter-spacing: 0.06em; }
/* Arabic on a textPath: an RTL base direction pushes the text off the path start, so lay it out LTR (shaping is unaffected) */
:lang(ar) .intro__ring text { direction: ltr; font-family: var(--font-accent); font-size: 23px; letter-spacing: 0; fill: var(--rose); }
.intro__ring-stitch { fill: var(--cream); stroke: var(--wood); stroke-width: 2; stroke-dasharray: 8 7; }
.intro__mark { position: absolute; inset: 0; margin: auto; width: 44%; height: auto; }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-9); }
}

/* service cards (home) */
.service-cards { display: grid; gap: var(--s-4); }
.service-card__link {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); background: var(--cream); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow-1); border: 1px solid rgb(164 122 76 / 0.18);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.service-card__link::after {
  content: ""; position: absolute; inset: 8px; border-radius: 14px; pointer-events: none;
  border: 1.5px dashed var(--rose); opacity: 0; transition: opacity var(--t-med) var(--ease);
}
.service-card__media {
  display: block; overflow: hidden; aspect-ratio: 4 / 3;
  /* pinking-shears edge along the bottom of the photo */
  --zig: 14px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
}
.service-card__media picture, .service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__media img { transition: transform 900ms var(--ease); }
.service-card__body { display: grid; gap: 6px; padding: var(--s-4) var(--s-5) var(--s-5); }
.service-card__num { font-family: var(--font-accent); color: var(--rose); font-size: 1.25rem; line-height: 1; font-style: italic; }
:lang(ar) .service-card__num { font-style: normal; font-size: 1.5rem; }
.service-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.3; }
:lang(en) .service-card__title { font-weight: 560; }
.service-card__text { color: var(--muted); }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 6px; color: var(--rose); font-weight: 600; }
.service-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.service-card__link:hover::after, .service-card__link:focus-visible::after { opacity: 0.7; }
.service-card__link:hover .service-card__media img { transform: scale(1.06); }
@media (min-width: 640px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .service-card--feature { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .service-cards { grid-template-columns: repeat(4, 1fr); }
  .service-card--feature { grid-column: span 2; grid-row: span 2; }
  .service-card--feature .service-card__media { aspect-ratio: auto; flex: 1; min-height: 340px; }
  .service-card--feature .service-card__title { font-size: 2rem; }
}

/* gallery preview (home) */
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 900px) {
  .preview-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .preview-grid__item:nth-child(even) { translate: 0 32px; }
}

/* personal touch band */
.touch { background: var(--olive); color: var(--cream); overflow: hidden; }
.touch::before { /* faint woven texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 9px), repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 9px);
}
.touch .container { position: relative; }
.touch .eyebrow { color: var(--blush); }
.touch .prose { color: var(--cream); }
.touch .section-title { color: var(--cream); }
.touch__grid { display: grid; gap: var(--s-7); align-items: center; }
.touch__intro { display: grid; gap: var(--s-4); justify-items: start; }
.touch__intro .section-head { margin-block-end: 0; }
@media (min-width: 960px) { .touch__grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }

.perks { display: grid; gap: var(--s-4); }
.perk {
  display: grid; gap: 6px; padding: var(--s-5); border-radius: var(--radius);
  background: rgb(255 251 245 / 0.07); border: 1.5px dashed rgb(255 251 245 / 0.35);
}
.perk__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--olive); margin-block-end: 6px; }
.perk__title { font-size: 1.3rem; color: var(--cream); }
.perk__text { color: var(--cream); opacity: 0.92; }
.perks--on-dark .link-arrow { color: var(--blush); }
@media (min-width: 900px) { .perks--row { grid-template-columns: repeat(3, 1fr); } }

/* closing CTA */
.cta__card {
  position: relative; overflow: hidden; display: grid; justify-items: center; gap: var(--s-4); text-align: center;
  padding: clamp(40px, 7vw, 88px) var(--s-5); border-radius: calc(var(--radius) + 8px);
  background: var(--blush); isolation: isolate;
}
.cta__card::before { content: ""; position: absolute; inset: 12px; border-radius: var(--radius); border: 2px dashed rgb(158 66 85 / 0.45); pointer-events: none; }
.cta__thread { z-index: -1; opacity: 0.6; }
.cta__mark { width: 60px; height: auto; }
.cta__title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); max-width: 18ch; }
.cta__text { color: var(--ink-2); font-size: 1.1rem; }

/* 7. Inner pages ----------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 64px); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__thread { opacity: 0.55; }

.about__grid { display: grid; gap: var(--s-8); align-items: center; }
.about__text { display: grid; gap: 1.1em; }
.about__lead { font-size: 1.2rem; color: var(--ink); }
.about__art { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1.05; margin-inline: auto; }
.about__art .hoop { position: absolute; }
.about__art .hoop--lg { width: 78%; inset-block-start: 0; inset-inline-end: 0; }
.about__art .hoop--md { width: 46%; inset-block-end: 0; inset-inline-start: 0; z-index: 2; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-9); } }

.values { display: grid; gap: var(--s-4); }
.value { display: grid; gap: 8px; justify-items: center; text-align: center; padding: var(--s-6) var(--s-5); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow-1); }
.value__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blush); color: var(--rose); margin-block-end: 6px; }
.value__icon .icon { width: 28px; height: 28px; }
.value__title { font-size: 1.35rem; }
.value__text { color: var(--muted); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }

.not-found__inner { position: relative; display: grid; justify-items: center; gap: var(--s-5); text-align: center; padding-block: var(--s-8); }
.not-found__thread { position: relative !important; height: 120px; }

/* 8. Services page --------------------------------------------------------- */
.jump-nav { padding-block-end: var(--s-4); }
.service__grid { display: grid; gap: var(--s-7); align-items: center; }
.service__media { position: relative; width: min(100%, 480px); margin-inline: auto; padding-block-end: 12%; }
.service__media .hoop { width: 82%; }
.service__thumb {
  position: absolute; width: 36%; border-radius: var(--radius-sm); overflow: hidden;
  border: 6px solid var(--cream); box-shadow: var(--shadow-2); background: var(--cream);
}
.service__thumb img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.service__thumb--1 { inset-block-end: 0; inset-inline-end: 0; rotate: 4deg; }
.service__thumb--2 { inset-block-start: 4%; inset-inline-end: 2%; width: 28%; rotate: -5deg; }
[dir="rtl"] .service__thumb--1 { rotate: -4deg; }
[dir="rtl"] .service__thumb--2 { rotate: 5deg; }
.service__num { font-family: var(--font-accent); color: var(--rose); font-size: 2.6rem; line-height: 1; font-style: italic; }
:lang(ar) .service__num { font-style: normal; font-size: 3rem; }
.service__text .section-title { margin-block: var(--s-2) var(--s-4); }
.service__includes-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-block-start: var(--s-5); }
.service__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
@media (min-width: 960px) {
  .service__grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
  .service--flip .service__media { order: 2; }
}

/* 9. Gallery + lightbox ---------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-end: var(--s-6); }
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 768px) { .g-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
@media (min-width: 1200px) { .g-grid { grid-template-columns: repeat(4, 1fr); } }
.g-item[hidden] { display: none; }
.g-item.is-entering { animation: tile-in 480ms var(--ease) both; animation-delay: calc(var(--n, 0) * 35ms); }
@keyframes tile-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.g-tile { cursor: zoom-in; }
.g-tile--video { cursor: pointer; }
.g-tile__play {
  position: absolute; z-index: 2; inset: 0; margin: auto; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; background: rgb(255 251 245 / 0.92); color: var(--rose);
  box-shadow: var(--shadow-2); transition: transform var(--t-med) var(--ease);
}
.g-tile__play .icon { width: 26px; height: 26px; margin-inline-start: 4px; fill: currentColor; }
[dir="rtl"] .g-tile__play .icon { margin-inline-start: 0; margin-inline-end: 4px; }
.g-tile:hover .g-tile__play { transform: scale(1.08); }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(22 19 17 / 0.96); color: var(--cream); overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { animation: lb-in 260ms var(--ease) both; }
.lightbox.is-closing { animation: lb-out 180ms var(--ease-in) both; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
.lightbox__stage {
  position: absolute; inset: 64px 12px 104px; display: grid; place-items: center; touch-action: pan-y pinch-zoom;
}
.lightbox__stage > * { grid-area: 1 / 1; max-width: 100%; max-height: 100%; }
.lightbox__stage img, .lightbox__stage video {
  width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 168px); object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6);
}
.lightbox__stage picture { display: grid; place-items: center; height: 100%; }
.lb-media { transition: opacity 260ms var(--ease), transform 360ms var(--ease); }
.lb-media.is-leaving { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)); }
.lb-media.is-arriving { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); }
.lightbox__bar {
  position: absolute; inset-inline: 0; inset-block-end: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom)); min-height: 96px;
}
.lightbox__caption { display: grid; gap: 2px; max-width: 70ch; font-size: 0.95rem; color: var(--cream); }
.lightbox__cat { color: var(--blush); font-weight: 600; font-size: 0.85rem; }
.lightbox__count { font-variant-numeric: tabular-nums; color: var(--on-dark-muted); white-space: nowrap; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px dashed rgb(255 251 245 / 0.45); background: rgb(255 251 245 / 0.1); color: var(--cream);
  transition: background-color var(--t-fast) var(--ease);
}
.lb-btn:hover { background: rgb(255 251 245 / 0.22); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-btn--close { inset-block-start: 8px; inset-inline-end: 8px; }
.lb-btn--prev, .lb-btn--next { inset-block-start: 50%; translate: 0 -50%; }
.lb-btn--prev { inset-inline-start: 8px; }
.lb-btn--next { inset-inline-end: 8px; }
@media (max-width: 640px) {
  /* phones: arrows sit under the photo so they never cover video controls */
  .lightbox__stage { inset-block-end: calc(164px + env(safe-area-inset-bottom)); }
  .lightbox__stage img, .lightbox__stage video { max-height: calc(100dvh - 232px); }
  .lb-btn--prev, .lb-btn--next { inset-block-start: auto; inset-block-end: calc(100px + env(safe-area-inset-bottom)); translate: none; }
}
body.lb-open { overflow: hidden; }

/* 10. Contact page --------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--s-4); margin-block-end: var(--s-8); }
.contact-card a {
  display: grid; gap: 4px; height: 100%; padding: var(--s-5); border-radius: var(--radius);
  background: var(--cream); box-shadow: var(--shadow-1); text-decoration: none;
  border: 1px solid rgb(164 122 76 / 0.18); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.contact-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blush); color: var(--rose); margin-block-end: var(--s-3); }
.contact-card__icon .icon { width: 26px; height: 26px; }
.contact-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
:lang(en) .contact-card__title { font-weight: 560; }
.contact-card__handle { font-weight: 600; color: var(--rose); justify-self: start; overflow-wrap: anywhere; }
.contact-card__text { color: var(--muted); }
.contact-card--wa a { background: var(--wa); color: #fff; border-color: transparent; }
.contact-card--wa .contact-card__icon { background: rgb(255 255 255 / 0.16); color: #fff; }
.contact-card--wa .contact-card__handle, .contact-card--wa .contact-card__text { color: #fff; }
.contact-card--wa :focus-visible, .contact-card--wa a:focus-visible { outline-color: var(--ink); }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

.location { display: grid; gap: var(--s-6); align-items: center; }
.location__info { display: grid; gap: var(--s-4); justify-items: start; }
.location__place { display: flex; gap: 10px; align-items: center; font-size: 1.15rem; font-weight: 600; }
.location__place .icon { color: var(--rose); }
.location__facts { display: grid; gap: var(--s-4); margin: 0; }
.location__facts dt { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.location__facts dt .icon { color: var(--olive); }
.location__facts dd { margin: 0; color: var(--muted); padding-inline-start: 28px; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--linen-2); box-shadow: var(--shadow-1); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s-4); padding: var(--s-5); text-align: center; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__coast { fill: none; stroke: #8fa3a8; stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.map__road { fill: none; stroke: var(--wood); stroke-width: 2; stroke-dasharray: 10 8; stroke-linecap: round; opacity: 0.6; }
.map__pulse { fill: var(--rose); opacity: 0.15; }
.map__pin { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rose); color: var(--cream); box-shadow: var(--shadow-2); }
.map__btn { position: relative; background: var(--cream); }
.map__note { position: relative; font-size: 0.85rem; color: var(--muted); max-width: 36ch; }
@media (min-width: 900px) { .location { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); } }

/* 11. Footer & floating WhatsApp ------------------------------------------- */
.site-footer { position: relative; background: var(--ink); color: var(--linen); padding-block: var(--s-8) var(--s-6); }
.site-footer__stitch { position: absolute; inset-inline: 0; inset-block-start: 10px; height: 2px; background: repeating-linear-gradient(to right, var(--wood) 0 10px, transparent 10px 18px); opacity: 0.8; }
.site-footer__grid { display: grid; gap: var(--s-7); }
.site-footer__brand { display: grid; gap: var(--s-4); justify-items: start; max-width: 34ch; }
.site-footer__brand img { width: 128px; height: auto; }
.site-footer__brand p { color: var(--on-dark-muted); }
.site-footer__title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--blush); margin-block-end: var(--s-3); letter-spacing: 0.04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a, .site-footer__loc { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--linen); text-decoration: none; }
.site-footer__loc { color: var(--on-dark-muted); align-items: flex-start; padding-block: 8px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .icon { color: var(--wood); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-block-start: var(--s-7); padding-block-start: var(--s-5); border-block-start: 1px solid rgb(246 240 230 / 0.14); color: var(--on-dark-muted); font-size: 0.9rem; padding-block-end: 64px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer__grid > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } .site-footer__grid > :last-child { grid-column: auto; } }

.wa-float {
  position: fixed; z-index: var(--z-float);
  inset-block-end: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: calc(16px + env(safe-area-inset-right));
  display: inline-flex; align-items: center; gap: 10px; height: 58px; min-width: 58px; padding-inline: 16px;
  border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 28px -10px rgb(19 122 63 / 0.7), 0 2px 6px rgb(0 0 0 / 0.15);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--t-med) var(--ease); }
.wa-float:hover { transform: translateY(-2px); }
@media (hover: hover) and (min-width: 768px) { .wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 220px; } }
.wa-float:focus-visible { outline-color: var(--ink); }
body.menu-open .wa-float, body.lb-open .wa-float { opacity: 0; pointer-events: none; }

/* seam: a running stitch down the page edge that fills as you scroll (desktop) */
.seam { display: none; }
@media (min-width: 1360px) {
  .seam {
    display: block; position: fixed; z-index: var(--z-seam); inset-block: calc(var(--header-h) + 24px) 24px; inset-inline-start: 22px; width: 2px;
    background: repeating-linear-gradient(to bottom, rgb(164 122 76 / 0.35) 0 8px, transparent 8px 14px); pointer-events: none;
  }
  .seam__fill { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, var(--rose) 0 8px, transparent 8px 14px); clip-path: inset(0 0 100% 0); }
  @supports (animation-timeline: scroll()) {
    .seam__fill { animation: seam-fill linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes seam-fill { to { clip-path: inset(0 0 0 0); } }

/* 12. Motion --------------------------------------------------------------- */

/* threads: absolutely placed decorative SVGs that draw themselves */
.thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.thread__line { fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-linecap: round; opacity: 0.7; }
[dir="rtl"] .thread { transform: scaleX(-1); }
.hero__thread { opacity: 0.9; }
@media (max-width: 959px) { .hero__thread { opacity: 0.35; } }

/* scroll reveal (only when JS is running, so content is never hidden without it) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }
/* stagger siblings (no inline style attributes, so the CSP can forbid inline CSS) */
.preview-grid__item:nth-child(2), .value:nth-child(2) { --i: 1; }
.preview-grid__item:nth-child(3), .value:nth-child(3) { --i: 2; }
.preview-grid__item:nth-child(4), .value:nth-child(4) { --i: 3; }
.preview-grid__item:nth-child(5) { --i: 4; }
.preview-grid__item:nth-child(6) { --i: 5; }
.preview-grid__item:nth-child(7) { --i: 6; }
.preview-grid__item:nth-child(8) { --i: 7; }
html.js .stitch-divider.reveal { opacity: 1; transform: none; }
html.js .stitch-divider.reveal svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); }
html.js[dir="rtl"] .stitch-divider.reveal svg { clip-path: inset(0 0 0 100%); }
html.js .stitch-divider.reveal.is-in svg { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: no-preference) {
  /* the hero thread and underline draw on load */
  html.js .thread__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.8s var(--ease) 0.15s forwards; }
  html.js .page-hero__thread .thread__line, html.js .cta__thread .thread__line { animation-duration: 2.2s; }
  html.js .cta__thread .thread__line { animation-play-state: paused; }
  html.js .cta__card.is-in .cta__thread .thread__line { animation-play-state: running; }
  html.js .hero__underline { clip-path: inset(0 100% 0 0); animation: sew 1.1s var(--ease) 1.2s forwards; }
  html.js[dir="rtl"] .hero__underline { clip-path: inset(0 0 0 100%); }
  html.js .hero__needle { animation: needle-in 1.4s var(--ease) both; }
  html.js .hero__text > * { animation: rise var(--t-slow) var(--ease) both; }
  html.js .hero__text > :nth-child(2) { animation-delay: 80ms; }
  html.js .hero__text > :nth-child(3) { animation-delay: 160ms; }
  html.js .hero__text > :nth-child(4) { animation-delay: 240ms; }
  html.js .hero__text > :nth-child(5) { animation-delay: 320ms; }
  html.js .hero__art .hoop { animation: hoop-in 900ms var(--ease) both; }
  html.js .hero__art .hoop--md { animation-delay: 120ms; }
  html.js .hero__art .hoop--sm { animation-delay: 240ms; }
  .hero__art .hoop { transition: translate var(--t-slow) var(--ease), rotate var(--t-slow) var(--ease); }
  .hero__art .hoop:hover { translate: 0 -8px; rotate: 2deg; }
  /* the "hand made with love" ring turns as the visitor scrolls past it (user-driven, never endless) */
  @supports (animation-timeline: view()) {
    .intro__ring { animation: spin linear both; animation-timeline: view(); }
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sew { to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { transform: translateY(14px); } }
@keyframes hoop-in { from { transform: scale(0.9) rotate(-8deg); } }
@keyframes needle-in { from { opacity: 0; translate: 0 -40px; } }
@keyframes spin { from { rotate: -90deg; } to { rotate: 150deg; } }

/* page-to-page transitions (cross-document View Transitions; ignored by browsers without support) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 220ms var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 420ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* 13. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .stitch-divider.reveal svg, .hero__underline { clip-path: none !important; }
  .seam__fill { animation: none !important; clip-path: none; opacity: 0.4; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  @view-transition { navigation: none; }
}

/* Print: keep it simple */
@media print {
  .site-header, .wa-float, .seam, .thread, .hero__needle, .cta, .site-footer__stitch { display: none !important; }
  body { background: #fff; }
}
