/* ==========================================================================
   Mahdieh Nikzad — hero
   ========================================================================== */

:root {
  --bg: #F2ECE3;
  --surface: rgba(255, 251, 245, 0.66);
  --surface-solid: #FBF7F1;
  --ink: #1D1712;
  --ink-2: #4E4239;
  --ink-3: #85766A;
  --line: rgba(29, 23, 18, 0.12);
  --line-strong: rgba(29, 23, 18, 0.24);
  --accent: #5B3E9F;          /* surgical-marker violet */
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(91, 62, 159, 0.12);

  --hair-0: #1E1712;
  --hair-1: #382A20;
  --hair-2: #5E4A39;
  --hair-3: #937C69;
  --follicle: rgba(78, 56, 40, 0.42);
  --frame: #EAE2D6;                       /* before/after illustrations */
  --frame-skin: rgba(255, 249, 241, 0.8);
  --band: #EBE4D9;                        /* alternate section background */
  --gauze: rgba(29, 23, 18, 0.035);
  --graft-tissue: rgba(205, 140, 116, 0.5);
  --graft-bulb: #8E5E48;
  --skin: #E6CEBF;                        /* growth cross-sections */
  --skin-line: #D2B3A0;
  --skin-deep: #CFAD98;
  --danger: #B3261E;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 22px 48px -28px rgba(46, 30, 16, 0.45);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12100E;
    --surface: rgba(30, 26, 23, 0.62);
    --surface-solid: #1C1815;
    --ink: #F2EAE0;
    --ink-2: #C7B9AB;
    --ink-3: #8E8074;
    --line: rgba(242, 234, 224, 0.12);
    --line-strong: rgba(242, 234, 224, 0.24);
    --accent: #AE95F2;
    --accent-ink: #15111F;
    --accent-soft: rgba(174, 149, 242, 0.16);
    --hair-0: #E8DDCF;
    --hair-1: #BBAA98;
    --hair-2: #8C7B6C;
    --hair-3: #5E534A;
    --follicle: rgba(232, 216, 198, 0.32);
    --frame: #1A1714;
    --frame-skin: rgba(255, 236, 214, 0.05);
    --band: #0C0A09;
    --gauze: rgba(242, 234, 224, 0.04);
    --graft-tissue: rgba(222, 158, 132, 0.3);
    --graft-bulb: #B78A72;
    --skin: #2C231E;
    --skin-line: #41352E;
    --skin-deep: #4C3D34;
    --danger: #F2B8B5;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 22px 48px -28px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #12100E;
  --surface: rgba(30, 26, 23, 0.62);
  --surface-solid: #1C1815;
  --ink: #F2EAE0;
  --ink-2: #C7B9AB;
  --ink-3: #8E8074;
  --line: rgba(242, 234, 224, 0.12);
  --line-strong: rgba(242, 234, 224, 0.24);
  --accent: #AE95F2;
  --accent-ink: #15111F;
  --accent-soft: rgba(174, 149, 242, 0.16);
  --hair-0: #E8DDCF;
  --hair-1: #BBAA98;
  --hair-2: #8C7B6C;
  --hair-3: #5E534A;
  --follicle: rgba(232, 216, 198, 0.32);
  --frame: #1A1714;
  --frame-skin: rgba(255, 236, 214, 0.05);
  --band: #0C0A09;
  --gauze: rgba(242, 234, 224, 0.04);
  --graft-tissue: rgba(222, 158, 132, 0.3);
  --graft-bulb: #B78A72;
  --skin: #2C231E;
  --skin-line: #41352E;
  --skin-deep: #4C3D34;
  --danger: #F2B8B5;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 22px 48px -28px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- type --- */

html[lang="en"], [lang="en"] {
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="fa"], [lang="fa"] {
  --font-display: "Markazi Text", "Vazirmatn", serif;
  --font-body: "Vazirmatn", Tahoma, sans-serif;
}
html[lang="ar"], [lang="ar"] {
  --font-display: "Amiri", "Noto Naskh Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
[lang] { font-family: var(--font-body); }

/* ---------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* -------------------------------------------------------------- header --- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { width: 36px; height: 36px; color: var(--ink); flex: none; overflow: visible; }
.brand-whorl path { fill: currentColor; }
.brand-dot { fill: var(--accent); }
/* rotate around the whorl's centre; 360/7 deg is one strand step, so any multiple lands on the same shape */
.brand-whorl, .brand-whorl > * { transform-box: view-box; transform-origin: 50% 50%; }
.brand-whorl { transition: transform 0.9s var(--ease); }
.brand:hover .brand-whorl { transform: rotate(51.43deg); }
.brand-whorl.is-twirling { animation: twirl 1.6s var(--ease); }
.brand-name { font-size: 0.98rem; white-space: nowrap; }

.site-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  margin-inline-start: auto;
  font-size: 0.93rem;
  color: var(--ink-2);
}
.site-nav a {
  position: relative;
  padding-block: 6px;
  transition: color 0.25s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: var(--origin-end, right);
  transition: transform 0.35s var(--ease);
}
[dir="ltr"] .site-nav a::after { --origin-end: right; }
[dir="rtl"] .site-nav a::after { --origin-end: left; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: var(--origin-start, left); }
[dir="rtl"] .site-nav a:hover::after { --origin-start: right; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  direction: ltr;               /* keep the order and indicator math stable */
}
.lang-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--bg); }
.lang-switch .short { display: none; }
.lang-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
}
.lang-switch.is-ready .lang-indicator { transition: transform 0.5s var(--ease), width 0.5s var(--ease); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.4s var(--ease);
}
.theme-toggle:hover { border-color: var(--line-strong); transform: rotate(-18deg); }
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.site-nav a[aria-current="true"] { color: var(--ink); }
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

/* past the hero the header is pinned out of view and slides back in on scroll up (main.js) */
.site-header::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.site-header.is-pinned { position: fixed; transform: translateY(-100%); }
.site-header.is-pinned.is-shown { transform: none; }
.site-header.is-pinned::before { opacity: 1; }
.site-header.can-slide { transition: transform 0.45s var(--ease); }

.menu-toggle {
  display: none;
  place-items: center;
  order: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.menu-lines,
.menu-lines::before {
  display: block;
  width: 16px;
  height: 1.6px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.menu-lines { position: relative; transform: translateY(-3px); }
.menu-lines::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu-open .menu-lines { transform: rotate(45deg); }
.menu-open .menu-lines::before { transform: translateY(-6px) rotate(-90deg); }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: opacity 0.35s ease;
}
.hero.is-switching .hero-canvas { opacity: 0; }

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(76px + clamp(8px, 3vh, 40px)) var(--gutter) clamp(20px, 3vh, 44px);
}

/* ---- copy ---- */

.hero-copy { max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(16px, 3vh, 28px);
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}
html[lang="en"] .eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(3.4rem, min(8.4vw, 13.5vh), 8.8rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.hero-name .line {
  display: block;
  overflow: hidden;
  padding-block: 0.06em 0.12em;
  margin-block: -0.06em -0.12em;
}
.hero-name .line > span { display: inline-block; }

html[lang="en"] .hero-name .line:nth-child(2) {
  font-style: italic;
  padding-inline-start: 0.62em;
}
html[lang="fa"] .hero-name {
  font-size: clamp(3.6rem, min(9vw, 14vh), 9.4rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
}
html[lang="ar"] .hero-name {
  font-size: clamp(3.1rem, min(7.4vw, 12vh), 7.8rem);
  line-height: 1.28;
  letter-spacing: 0;
  font-weight: 700;
}
html[lang="fa"] .hero-name .line:nth-child(2),
html[lang="ar"] .hero-name .line:nth-child(2) {
  font-weight: 400;
  color: var(--ink-2);
  padding-inline-start: 0.9em;
}
html[lang="fa"] .hero-name .line,
html[lang="ar"] .hero-name .line {
  padding-block: 0.12em 0.22em;
  margin-block: -0.12em -0.22em;
}

.alt-name {
  display: inline-block;
  margin-inline-start: 0.9rem;
  vertical-align: middle;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink-3);
}
.alt-name:lang(en) { font-style: italic; font-size: 1.2rem; }
.alt-name:lang(fa) { font-size: 1.4rem; font-weight: 500; }

.tagline {
  margin: clamp(14px, 3vh, 36px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink);
}
html[lang="en"] .tagline { font-style: italic; }
html[lang="fa"] .tagline { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; line-height: 1.5; }
html[lang="ar"] .tagline { font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.6; }

.lead {
  margin: 14px 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.75;
}
html[lang="fa"] .lead, html[lang="ar"] .lead { line-height: 2; max-width: 44ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3.6vh, 34px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s, transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
[dir="rtl"] .btn-primary:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(22px, 4.5vh, 52px) 0 0;
  padding-top: clamp(14px, 2.4vh, 22px);
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline: 0 clamp(18px, 2.6vw, 34px);
  margin-inline-end: clamp(18px, 2.6vw, 34px);
  border-inline-end: 1px solid var(--line);
}
.stat:last-child { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 0; }
.stat dt { order: 2; font-size: 0.82rem; color: var(--ink-3); }
.stat dd {
  order: 1;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vh, 2.15rem);
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
html[lang="fa"] .stat dd, html[lang="ar"] .stat dd { font-size: clamp(1.6rem, 3.4vh, 2rem); line-height: 1.4; }
.stat-plus { color: var(--accent); }
.stat-text { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; align-self: center; padding-block: 0.42em; }
html[lang="fa"] .stat-text, html[lang="ar"] .stat-text { font-family: "Manrope", sans-serif; direction: ltr; }

/* ---- stage ---- */

.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  align-self: stretch;
}

.stage-target {
  position: relative;
  width: min(100%, 34vw, 50vh, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;  /* a long press plants, it shouldn't select the label */
  -webkit-user-select: none;
  user-select: none;
}
@media (pointer: fine) {
  .stage-target { cursor: none; }
  .hero-stage.is-complete .stage-target { cursor: default; }
}

.stage-label {
  position: absolute;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 0 0 1px var(--accent-soft);
  top: 5%;
  inset-inline-end: calc(100% - 9%);
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-9deg);
  transition: opacity 0.6s;
}
[dir="rtl"] .stage-label { transform: rotate(9deg); }
html[lang="en"] .stage-label { font-style: italic; }
html[lang="fa"] .stage-label { font-size: 1.5rem; font-weight: 500; }
.hero-stage.is-complete .stage-label { opacity: 0 !important; }

/* on touch screens there is no brush cursor, so the circle itself says what to do */
.stage-cue {
  position: absolute;
  top: 60%;
  inset-inline: 0;
  display: none;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 0 auto;
  padding: 6px 14px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 10px 24px -14px rgba(46, 30, 16, 0.55);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.stage-cue .hint-dot { margin-top: 0; width: 7px; height: 7px; }
@media (pointer: coarse) {
  .stage-cue { display: flex; }
}
.hero-stage.is-touched .stage-cue,
.hero-stage.is-complete .stage-cue { opacity: 0 !important; }

.stage-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8rem;
  line-height: 1.5;
  transition: opacity 0.6s var(--ease);
}
.stage-hint.is-dim { opacity: 0.55; }
.stage-hint.is-next { opacity: 1; color: var(--accent); }
.hint-dot {
  position: relative;
  flex: none;
  margin-top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hint-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.density-card {
  width: min(100%, 400px);
  padding: 14px 18px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow);
}
.density-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.density-label { font-size: 0.84rem; color: var(--ink-2); }
/* baseline-aligned, so the label still lines up with the number once the tick shows */
.density-score { display: inline-flex; align-items: baseline; gap: 8px; }
.density-check {
  display: none;
  place-items: center;
  align-self: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.density-check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.density-check path { stroke-dasharray: 1; }
.density-card.is-complete .density-check { display: grid; animation: checkPop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.density-card.is-complete .density-check path { animation: checkDraw 0.4s var(--ease) 0.2s both; }
.density-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.density-bar {
  position: relative;
  height: 6px;
  margin: 12px 0 12px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.density-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--ink)));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
[dir="rtl"] .density-fill {
  transform-origin: right center;
  background: linear-gradient(270deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--ink)));
}
/* a glint runs along the full bar */
.density-bar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0;
}
.density-card.is-complete .density-bar::after { animation: sheen 1.1s var(--ease) 0.3s; }
[dir="rtl"] .density-card.is-complete .density-bar::after { animation-name: sheenRtl; }
.density-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.graft-count { font-size: 0.82rem; color: var(--ink-3); }
.graft-count b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.density-actions { display: flex; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}
.chip svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-accent:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:disabled { opacity: 0.4; cursor: default; }
.density-card.is-complete .chip-accent { display: none; }

.density-done {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--accent);
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.5s, margin 0.5s var(--ease);
}
.density-card.is-complete .density-done { max-height: 5em; opacity: 1; margin-top: 10px; }

/* ---------------------------------------------------------- animation --- */

html.js .hero:not(.play) .reveal,
html.js .hero:not(.play) .hero-name .line > span { opacity: 0; }

.hero.play .reveal {
  animation: rise 0.95s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 85ms + 200ms);
}
.hero.play .hero-name .line > span {
  animation: lineUp 1.15s cubic-bezier(0.2, 0.8, 0.15, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.hero-name .line:nth-child(1) > span { --i: 1; }
.hero-name .line:nth-child(2) > span { --i: 2; }

/* the logo's whorl unfurls with the hero's */
html.js .site-header:not(.play) .brand-whorl > * { opacity: 0; }
.site-header.play .brand-whorl path {
  animation: unfurl 1.1s cubic-bezier(0.2, 0.8, 0.15, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms + 160ms);
}
.site-header.play .brand-dot { animation: dotIn 0.6s var(--ease) 80ms both; }

.hero.is-switching .reveal,
.hero.is-switching .hero-name .line > span {
  animation: leave 0.28s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes lineUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: none; }
}
@keyframes leave {
  from { opacity: 1; transform: none; filter: blur(0); }
  to { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
}
@keyframes unfurl {
  from { opacity: 0; transform: rotate(-75deg) scale(0.25); }
  to { opacity: 1; transform: none; }
}
@keyframes dotIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: none; }
}
@keyframes checkPop {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: none; }
}
@keyframes checkDraw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes sheen {
  from { opacity: 1; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(250%); }
}
@keyframes sheenRtl {
  from { opacity: 1; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(-250%); }
}
/* `rotate` composes with the hover transform; two strand steps, so it settles on the same shape */
@keyframes twirl {
  from { rotate: 0deg; }
  to { rotate: 102.86deg; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .hero:not(.play) .reveal,
  html.js .hero:not(.play) .hero-name .line > span,
  html.js .site-header:not(.play) .brand-whorl > * { opacity: 1; }
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1100px) {
  .site-nav { gap: 18px; font-size: 0.88rem; }
  .brand-name { display: none; }
}

@media (max-width: 900px) {
  .site-header { gap: 10px; }
  .header-tools { margin-inline-start: auto; }
  .brand-name { display: inline; }

  .menu-toggle { display: grid; }
  .site-nav {
    position: absolute;
    top: calc(100% - 6px);
    inset-inline: var(--gutter);
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: 1.06rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s, transform 0.35s var(--ease);
  }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
  }
  .site-nav a::after { display: none; }
  .site-nav a:hover { background: var(--accent-soft); }
  .site-nav a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }

  .hero, .hero-inner { min-height: 0; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
    padding-top: calc(72px + 24px);
    padding-bottom: 28px;
  }
  /* let the stats drop below the stage so the whorl shows above the fold */
  .hero-copy { display: contents; }
  .hero-stage { order: 1; gap: 24px; margin-top: 8px; }
  .stats {
    order: 2;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  /* both cards sit on the animated hair: a backdrop blur would be recomputed every frame */
  .density-card, .stats {
    background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* svh keeps the whole circle on screen on a phone held sideways */
  .stage-target { width: min(78vw, 380px, 72svh); margin-top: 40px; }
  .stage-label { top: -9%; inset-inline-end: auto; inset-inline-start: -4%; }
  .stats { max-width: none; }
}

@media (max-width: 560px) {
  .site-header { padding-block: 12px; gap: 12px; }
  .brand-name { display: none; }
  .lang-switch .long { display: none; }
  .lang-switch .short { display: inline; }
  .lang-switch button { padding: 7px 12px; }

  /* a tighter rhythm brings the top of the whorl into the first screen */
  .hero-inner { padding-top: calc(68px + 14px); }
  .hero .eyebrow { margin-bottom: 14px; }
  .tagline { margin-top: 16px; }
  .lead { font-size: 0.98rem; line-height: 1.7; }
  html[lang="fa"] .lead, html[lang="ar"] .lead { line-height: 1.9; }
  .cta-row { margin-top: 22px; }

  .hero-name { font-size: clamp(3.2rem, 17vw, 5rem); }
  html[lang="en"] .hero-name .line:nth-child(2) { padding-inline-start: 0.3em; }
  .alt-name { font-size: 1rem; margin-inline-start: 0.6rem; }
  html[lang="fa"] .hero-name { font-size: clamp(3.4rem, 18vw, 5.4rem); }
  html[lang="ar"] .hero-name { font-size: clamp(3rem, 15vw, 4.6rem); }
  .btn { flex: 1 1 auto; justify-content: center; padding: 0 18px; }
  /* keep the three stats on one row; a long label wraps inside its column instead */
  .stats { flex-wrap: nowrap; }
  .stat { padding-inline-end: 14px; margin-inline-end: 14px; }
  .stat-text { white-space: nowrap; }
  .stat dd { font-size: 1.8rem; }
  .stage-hint { border-radius: 16px; }
}

@media (max-width: 380px) {
  .density-card { padding-inline: 16px; }
  .stats { padding-inline: 14px; }
  .stat { padding-inline-end: 10px; margin-inline-end: 10px; }
}
@media (max-width: 300px) {
  .stats { flex-wrap: wrap; row-gap: 12px; }
}

/* fingers need bigger targets than a cursor */
@media (pointer: coarse) {
  .lang-switch button { min-height: 36px; }
  .theme-toggle { width: 44px; height: 44px; }
  .chip { min-height: 42px; }
}

/* ============================================================ sections === */

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 150px);
}
.section-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "eyebrow eyebrow" "title lead";
  column-gap: clamp(24px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 6vw, 76px);
}
.section-head .eyebrow { grid-area: eyebrow; }
.section-title {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html[lang="fa"] .section-title { font-size: clamp(2.6rem, 5.6vw, 5.2rem); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
html[lang="ar"] .section-title { font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.section-lead {
  grid-area: lead;
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.75;
}
html[lang="fa"] .section-lead, html[lang="ar"] .section-lead { line-height: 2; }

/* the hero's entrance, played as each block scrolls into view */
.will-reveal [data-reveal]:not(.is-in) .sr,
.will-reveal .case-picker:not(.is-in) { opacity: 0; }
[data-reveal].is-in .sr {
  animation: rise 0.95s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.case-picker.is-in { animation: rise 0.95s var(--ease) 180ms both; }

/* ------------------------------------------------------------- results --- */

.results-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "compare info" "compare picker";
  column-gap: clamp(28px, 4.5vw, 80px);
  row-gap: 32px;
}
.compare { grid-area: compare; margin: 0; }
.case-info { grid-area: info; }
.case-picker { grid-area: picker; align-self: end; }

/* ---- before / after ---- */

.compare-frame {
  --pos: calc(var(--p, 50) * 1%);
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--frame);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  cursor: ew-resize;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.compare-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.22s ease;
}
.compare-layer canvas,
.compare-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
[dir="rtl"] .compare-after { clip-path: inset(0 var(--pos) 0 0); }
.compare-frame.is-swapping .compare-layer { opacity: 0; }

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: var(--pos);
  z-index: 3;
  width: 0;
  pointer-events: none;
}
.compare-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bg) 70%, transparent), 0 0 20px rgba(0, 0, 0, 0.16);
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 72%, transparent), 0 12px 28px -10px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}
.compare-knob svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compare-frame:hover .compare-knob,
.compare-frame.is-dragging .compare-knob { background: var(--accent); color: var(--accent-ink); }
.compare-frame.is-dragging .compare-knob { transform: translate(-50%, -50%) scale(0.92); }

/* the divider is a real range input for keyboards and screen readers */
.compare-range {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.compare-range:focus-visible ~ .compare-handle .compare-knob {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.compare-tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
}
html[lang="en"] .compare-tag { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
/* each label fades out as the divider covers its side */
.compare-tag-before { inset-inline-start: 14px; opacity: clamp(0, calc((var(--p, 50) - 8) / 10), 1); }
.compare-tag-after { inset-inline-end: 14px; opacity: clamp(0, calc((92 - var(--p, 50)) / 10), 1); }
.compare-tag-after::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.compare-note {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 14px;
  z-index: 2;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--ink-3);
  font-size: 0.72rem;
  line-height: 1.4;
  pointer-events: none;
}

.compare-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.84rem;
  transition: opacity 0.6s var(--ease);
}
.compare-hint .hint-dot { margin-top: 0; }
.compare-hint.is-dim { opacity: 0.55; }
.compare-hint.is-dim .hint-dot::after { animation: none; opacity: 0; }

/* ---- case details ---- */

.case-info { padding-top: 4px; }
.case-swap { transition: opacity 0.22s ease, transform 0.22s var(--ease); }
.case-swap.is-out { opacity: 0; transform: translateY(6px); }

.case-index {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 0.86rem;
}
html[lang="en"] .case-index { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.case-index b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

.case-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 2.9vw, 2.7rem);
  line-height: 1.1;
}
html[lang="en"] .case-title { font-style: italic; }
html[lang="fa"] .case-title { font-weight: 600; line-height: 1.4; }
html[lang="ar"] .case-title { font-size: clamp(1.7rem, 2.5vw, 2.3rem); font-weight: 700; line-height: 1.55; }

.case-desc {
  margin: 14px 0 0;
  max-width: 42ch;
  color: var(--ink-2);
  line-height: 1.75;
}
html[lang="fa"] .case-desc, html[lang="ar"] .case-desc { line-height: 2; }

.case-meta {
  display: flex;
  flex-wrap: wrap;
  row-gap: 14px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-end: clamp(16px, 2vw, 28px);
  margin-inline-end: clamp(16px, 2vw, 28px);
  border-inline-end: 1px solid var(--line);
}
.case-meta > div:last-child { padding-inline-end: 0; margin-inline-end: 0; border-inline-end: 0; }
.case-meta dt { order: 2; font-size: 0.8rem; color: var(--ink-3); }
.case-meta dd {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html[lang="fa"] .case-meta dd, html[lang="ar"] .case-meta dd { font-size: 1.55rem; line-height: 1.4; }
.case-meta dd.meta-text {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 2;
}
html[lang="fa"] .case-meta dd.meta-text, html[lang="ar"] .case-meta dd.meta-text { font-size: 1.05rem; line-height: 2.2; }

/* ---- picker ---- */

.case-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.case-thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  padding-inline-end: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.case-thumb:hover { border-color: var(--line-strong); }
.case-thumb[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.case-thumb-art {
  position: relative;
  flex: none;
  width: 68px;
  aspect-ratio: 5 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--frame);
}
.case-thumb-art canvas,
.case-thumb-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-thumb-split {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  margin-left: -0.75px;
  background: var(--bg);
}
.case-thumb-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.case-thumb-num { font-size: 0.72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.case-thumb[aria-pressed="true"] .case-thumb-num { color: var(--accent); }
.case-thumb-title { font-size: 0.9rem; font-weight: 600; }

/* ---- footer ---- */

.results-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(44px, 6vw, 84px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.results-note {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-3);
  font-size: 0.84rem;
}
.results-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.results-ask p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
}
html[lang="en"] .results-ask p { font-style: italic; }
html[lang="fa"] .results-ask p { font-size: 1.55rem; font-weight: 500; }

/* ---- responsive ---- */

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eyebrow" "title" "lead";
    row-gap: 18px;
  }
  .results-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "compare" "picker" "info";
    row-gap: 24px;
  }
  .case-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: auto; }
  .case-thumb { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 6px 10px; }
  .case-thumb-art { width: 100%; }
  .case-thumb-text { padding-inline: 4px; }
}

@media (max-width: 560px) {
  .compare-frame { aspect-ratio: 1; }
  .compare-knob { width: 42px; height: 42px; }
  .compare-tag { top: 10px; }
  .compare-tag-before { inset-inline-start: 10px; }
  .compare-tag-after { inset-inline-end: 10px; }
  .case-picker { gap: 6px; }
  .case-thumb { padding: 5px 5px 8px; border-radius: 14px; }
  .case-thumb-art { border-radius: 9px; }
  .case-thumb-num { display: none; }
  .case-thumb-title { font-size: 0.74rem; line-height: 1.3; }
  .case-meta dd { font-size: 1.45rem; }
  .results-ask, .results-ask .btn { width: 100%; }
}

/* --------------------------------------------------------------- about --- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: center;
}
.about-copy .section-title { margin-bottom: clamp(22px, 3vw, 38px); }
.about-p {
  margin: 0 0 18px;
  max-width: 50ch;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.8;
}
.about-lede { color: var(--ink); font-size: 1.16rem; }
html[lang="fa"] .about-p, html[lang="ar"] .about-p { line-height: 2.05; }

.about-sign {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 30px 0 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.2;
}
.about-sign::before {
  content: "";
  width: 44px;
  height: 1.5px;
  margin-bottom: 18px;
  background: var(--accent);
}
html[lang="en"] .about-sign { font-style: italic; }
html[lang="fa"] .about-sign { font-size: 2.1rem; font-weight: 500; line-height: 1.5; }
html[lang="ar"] .about-sign { line-height: 1.6; }
.about-sign small {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
}

.about-figure { margin: 0; }
.about-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.about-figure.has-photo .tray { margin: -88px clamp(14px, 3vw, 28px) 0; }

/* a tray of sorted grafts on damp gauze */
.tray {
  position: relative;
  padding: 18px clamp(16px, 2.4vw, 26px) 10px;
  border-radius: calc(var(--radius) + 4px);
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, var(--gauze) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, var(--gauze) 13px 14px),
    var(--frame);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.tray-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 4px 12px 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}
html[lang="en"] .tray-tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.tray-tag svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tray-row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-block: 10px;
}
.tray-row + .tray-row { border-top: 1px dashed var(--line-strong); }
.tray-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  line-height: 1.35;
}
.tray-n {
  flex: none;
  min-width: 0.6em;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  text-align: center;
}
.tray-label > span { display: flex; flex-direction: column; font-size: 0.9rem; font-weight: 600; }
.tray-label small { font-size: 0.76rem; font-weight: 400; color: var(--ink-3); }

.tray-strip {
  display: flex;
  gap: 7px;
  overflow: hidden;
  padding-block: 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent);
  mask-image: linear-gradient(90deg, #000 72%, transparent);
}
[dir="rtl"] .tray-strip {
  -webkit-mask-image: linear-gradient(270deg, #000 72%, transparent);
  mask-image: linear-gradient(270deg, #000 72%, transparent);
}
.graft { flex: none; width: 18px; height: 54px; overflow: visible; }
.g-tissue { fill: var(--graft-tissue); }
.g-bulb { fill: var(--graft-bulb); }
.graft .g-hair {
  fill: none;
  stroke: var(--hair-0);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 1;
}
.graft .g-hair-2 { stroke: var(--hair-1); }

/* the hairs draw in from the bulb, row by row, when the tray scrolls into view */
.will-reveal .about-figure:not(.is-in) .g-hair { stroke-dashoffset: 1; }
.about-figure.is-in .graft .g-hair {
  animation: draw 0.9s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 35ms + 450ms);
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.tray-caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 4px 0;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.65;
}
html[lang="fa"] .tray-caption, html[lang="ar"] .tray-caption { line-height: 1.9; }

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 56px);
  margin: clamp(64px, 9vw, 120px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: value;
}
.value {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  counter-increment: value;
}
.value::before {
  content: counter(value, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
html[lang="fa"] .value::before { content: "۰" counter(value, persian); }
html[lang="ar"] .value::before { content: "٠" counter(value, arabic-indic); }
.value h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}
html[lang="en"] .value h3 { font-style: italic; }
html[lang="fa"] .value h3 { font-weight: 600; line-height: 1.5; }
html[lang="ar"] .value h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.6; }
.value p { margin: 0; max-width: 38ch; color: var(--ink-2); line-height: 1.75; }
html[lang="fa"] .value p, html[lang="ar"] .value p { line-height: 2; }

/* where her clients come from, as stops on a dashed route */
.reach {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 96px);
  row-gap: 18px;
  align-items: end;
  margin: clamp(56px, 8vw, 104px) 0 0;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--band);
  box-shadow: 0 0 0 1px var(--line);
}
.reach-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(12px, 1.8vw, 20px);
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}
html[lang="en"] .reach-title { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.reach-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reach-places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.2;
}
html[lang="en"] .reach-places { font-style: italic; }
html[lang="fa"] .reach-places { font-weight: 600; line-height: 1.5; }
html[lang="ar"] .reach-places { font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 700; line-height: 1.6; }
.reach-places li { position: relative; display: flex; align-items: center; }

/* every flag at the same height and its own official proportions (UAE 1:2, Iraq and Kurdistan 2:3):
   no cropping, recolouring or mirroring in rtl. The hairline keeps white and black bands visible on either theme. */
.flag-slot { display: flex; flex: none; justify-content: center; margin-inline-end: 0.34em; }
.flag {
  display: block;
  width: auto;
  height: 0.66em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.reach-places li:not(:last-child)::after {
  content: "";
  flex: none;
  width: clamp(22px, 3.2vw, 52px);
  margin-inline: 0.36em;
  border-top: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent);
}

.reach-text { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 1.04rem; line-height: 1.75; }
html[lang="fa"] .reach-text, html[lang="ar"] .reach-text { line-height: 2; }

/* ------------------------------------------------------------ services --- */

.services {
  background: var(--band);
  border-block: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: service;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  counter-increment: service;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), translate 0.4s var(--ease);
}
.service::before {
  content: counter(service, decimal-leading-zero);
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
html[lang="fa"] .service::before { content: "۰" counter(service, persian); }
html[lang="ar"] .service::before { content: "٠" counter(service, arabic-indic); }
@media (hover: hover) {
  .service:hover { border-color: var(--line-strong); box-shadow: var(--shadow); translate: 0 -3px; }
  .service:hover .service-icon .ic-hair { stroke: var(--accent); }
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon .ic-hair { stroke: var(--hair-1); transition: stroke 0.3s; }
.service-icon .ic-thin { stroke-width: 1.1; opacity: 0.7; }
.service-icon .ic-accent { stroke: var(--accent); }
.service-icon .ic-dot { fill: var(--graft-bulb); stroke: none; }
.service-icon .ic-accent-fill { fill: var(--accent); }
.service-icon .ic-faint { opacity: 0.4; }
.service-icon .ic-dot.ic-faint { fill: var(--ink-3); opacity: 0.55; }

.service-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.15;
}
html[lang="en"] .service-title { font-style: italic; }
html[lang="fa"] .service-title { font-size: 1.85rem; font-weight: 600; line-height: 1.45; }
html[lang="ar"] .service-title { font-size: 1.45rem; font-weight: 700; line-height: 1.6; }
.service-text {
  flex: 1;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.75;
}
html[lang="fa"] .service-text, html[lang="ar"] .service-text { line-height: 2; }
.service-for {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.5;
}
.service-for b { color: var(--ink); font-size: 0.9rem; font-weight: 600; }

/* ---- growth timeline ---- */

.growth { margin-top: clamp(72px, 10vw, 130px); }
.growth-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 48px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.growth-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}
html[lang="en"] .growth-title { font-style: italic; }
html[lang="fa"] .growth-title { font-weight: 600; line-height: 1.45; }
html[lang="ar"] .growth-title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 700; line-height: 1.6; }
.growth-lead { margin: 0; max-width: 44ch; color: var(--ink-2); line-height: 1.75; }

.growth-list {
  --art-h: 108px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* one strip of skin runs under all five pictures, so they read as one cross-section changing over time */
.growth-list::before {
  content: "";
  position: absolute;
  top: calc(var(--art-h) / 2);
  inset-inline: 0;
  height: calc(var(--art-h) / 2);
  border-top: 1px solid var(--skin-line);
  border-radius: 0 0 16px 16px;
  background: var(--skin);
  transform-origin: left center;
}
[dir="rtl"] .growth-list::before { transform-origin: right center; }
.will-reveal .growth:not(.is-in) .growth-list::before { transform: scaleX(0); }
.growth.is-in .growth-list::before { animation: spread 1.5s var(--ease) 0.2s both; }
@keyframes spread {
  from { transform: scaleX(0); }
  to { transform: none; }
}

.growth-step { position: relative; }
.growth-art {
  display: block;
  width: 96px;
  height: var(--art-h);
  margin: 0 0 20px;
  margin-inline-start: 6px;
  overflow: visible;
}
.growth-list .g-skin { display: none; }   /* the strip stands in for it */
.g-skin { fill: var(--skin); }
.g-canal { fill: none; stroke: var(--skin-deep); stroke-width: 3.4; stroke-linecap: round; }
.g-root { fill: var(--graft-bulb); }
.g-crust { fill: var(--ink-3); opacity: 0.5; }
.g-ring { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 2.2; }
.growth-art .g-hair {
  fill: none;
  stroke: var(--hair-1);
  stroke-width: 1.7;
  stroke-linecap: round;
}
.growth-art .g-hair[pathLength] { stroke-dasharray: 1; }
.growth-art .g-shed { stroke: var(--hair-2); stroke-width: 1.3; stroke-dasharray: 2.2 2.4; opacity: 0.7; }
.growth-art .g-fine { stroke: var(--hair-3); stroke-width: 1; }
.growth-art .g-mid { stroke: var(--hair-1); stroke-width: 1.5; }
.growth-art .g-full { stroke: var(--hair-0); stroke-width: 1.9; }
.will-reveal .growth:not(.is-in) .growth-art .g-hair[pathLength] { stroke-dashoffset: 1; }
.growth.is-in .growth-art .g-hair[pathLength] {
  animation: draw 1.1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 120ms + 500ms);
}

.growth-when {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.growth-name { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.growth-text { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.7; }
html[lang="fa"] .growth-text, html[lang="ar"] .growth-text { line-height: 1.95; }

/* ------------------------------------------------------------- contact --- */

.contact-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.consult { margin: 0; }
.consult-card {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}
.consult-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}
html[lang="en"] .consult-title { font-style: italic; }
html[lang="fa"] .consult-title { font-weight: 600; line-height: 1.5; }
html[lang="ar"] .consult-title { font-size: 1.7rem; font-weight: 700; line-height: 1.6; }

.field { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.field label,
.field legend {
  display: block;
  margin-bottom: 9px;
  padding: 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
}
.field input[type="text"],
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;      /* 16px or more keeps iOS from zooming in on focus */
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.75; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 8px 0 0; color: var(--danger); font-size: 0.84rem; }

.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chip { position: relative; display: inline-flex; cursor: pointer; }
.area-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.area-chip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.area-chip span::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.area-chip:hover span { border-color: var(--ink); }
.area-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.area-chip input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.area-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consult-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}
.consult-send { border: 0; cursor: pointer; }
.btn-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.consult-email {
  color: var(--ink-2);
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.consult-email:hover { color: var(--ink); text-decoration-color: currentColor; }
.consult-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 0.84rem;
  line-height: 1.65;
}
.consult-note .hint-dot::after,
.tray-caption .hint-dot::after { animation: none; opacity: 0; }

.contact-aside { padding-top: 6px; }
.contact-aside-title {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 600;
}
html[lang="en"] .contact-aside-title { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }

.channels { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.channels li { border-bottom: 1px solid var(--line); }
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 2px;
}
.channel-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), border-color 0.3s, color 0.3s;
}
.channel-icon svg,
.fact-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.channel-icon .icon-dot { fill: currentColor; stroke: none; }
.channel-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }
.channel-label { color: var(--ink-3); font-size: 0.8rem; }
.channel-value {
  max-width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
}
.channel .btn-arrow { flex: none; color: var(--ink-3); }
.channel:hover .channel-icon { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.channel:hover .btn-arrow { color: var(--ink); transform: translateX(4px); }
[dir="rtl"] .channel:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }

.contact-facts { display: grid; gap: 18px; margin: 30px 0 0; }
.contact-facts > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}
.fact-icon { grid-row: span 2; margin-top: 3px; color: var(--accent); }
.contact-facts dt { color: var(--ink-3); font-size: 0.8rem; }
.contact-facts dd { margin: 0; font-weight: 500; line-height: 1.6; }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  padding: clamp(52px, 7vw, 92px) 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--band);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px 48px;
  align-items: start;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  background: var(--ink);
  -webkit-mask: url("../img/logo/whorl-small.svg") center / contain no-repeat;
  mask: url("../img/logo/whorl-small.svg") center / contain no-repeat;
}
.footer-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14%;
  height: 14%;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.2;
}
html[lang="fa"] .footer-name { font-weight: 700; line-height: 1.5; }
html[lang="ar"] .footer-name { font-size: 1.6rem; font-weight: 700; line-height: 1.6; }
.footer-tagline { margin: 2px 0 0; color: var(--ink-2); font-size: 0.92rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-top: 8px; color: var(--ink-2); }
.footer-nav a { padding-block: 6px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-note { flex: 1; min-width: min(100%, 280px); }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink-2);
  font-weight: 600;
  transition: color 0.2s;
}
.footer-top:hover { color: var(--ink); }
.footer-top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.footer-top:hover svg { transform: translateY(-3px); }

/* ------------------------------------------- about, services, contact: small --- */

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:first-child { grid-column: 1 / -1; }   /* the FIT card leads, the other two pair up below it */
  .reach { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .reach-text { max-width: 62ch; }
}

@media (max-width: 980px) {
  /* the timeline turns vertical: each step keeps its own patch of skin */
  .growth-list { grid-template-columns: minmax(0, 1fr); gap: 0; --art-h: 81px; }
  .growth-list::before { display: none; }
  .growth-list .g-skin { display: inline; }
  .growth-step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 20px;
    padding-block: 18px;
    border-top: 1px solid var(--line);
  }
  .growth-step:last-child { border-bottom: 1px solid var(--line); }
  .growth-art {
    grid-row: 1 / span 3;
    width: 72px;
    height: 81px;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--line);
  }
  .growth-text { max-width: 60ch; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-figure { max-width: 620px; }
  .values { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .value { display: grid; grid-template-columns: 3em minmax(0, 1fr); padding-block: 20px; }
  .value:last-child { border-bottom: 1px solid var(--line); }
  .value::before { grid-row: span 2; margin: 0.55em 0 0; }
  html[lang="fa"] .value::before, html[lang="ar"] .value::before { margin-top: 0.8em; }

  .contact-body { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { padding-top: 0; }
}

/* the route turns vertical before the three places run out of room on one line:
   one stop per line, the dashes running down from flag to flag */
@media (max-width: 640px) {
  .reach-places { flex-direction: column; align-items: flex-start; gap: 0; }
  .reach-places li { padding-block: 7px; }
  .flag-slot { width: 1.32em; }   /* as wide as the widest flag, so the names line up */
  .reach-places li:not(:last-child)::after {
    position: absolute;
    top: calc(50% + 0.33em + 5px);
    inset-inline-start: calc(0.66em - 1px);
    width: 0;
    height: calc(100% - 0.66em - 10px);
    margin: 0;
    border-top: 0;
    border-inline-start: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  }
}

@media (max-width: 560px) {
  .about-lede { font-size: 1.08rem; }
  .about-sign { margin-top: 24px; }
  .tray { padding-inline: 14px; }
  .tray-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 12px 8px; }
  .tray-n { font-size: 1.9rem; }
  .tray-strip { gap: 6px; }
  .about-figure.has-photo .tray { margin: -56px 10px 0; }
  .reach { padding: 22px 18px 24px; border-radius: var(--radius); }

  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .service { padding: 22px 20px 20px; gap: 10px; }
  .service::before { top: 22px; inset-inline-end: 20px; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 4px; }
  .growth-head { margin-bottom: 20px; }

  .consult-card { padding: 22px 18px 20px; border-radius: var(--radius); }
  .consult-title { margin-bottom: 20px; font-size: 1.7rem; }
  html[lang="ar"] .consult-title { font-size: 1.5rem; }
  .consult-actions .btn { width: 100%; }
  .consult-actions { justify-content: center; }
  .channel { gap: 14px; }

  .footer-nav { gap: 2px 22px; }
  .footer-top { margin-inline-start: auto; }
}

/* fingers need bigger targets than a cursor */
@media (pointer: coarse) {
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
