/* ==========================================================================
   ZMS — Aesthetic Biomaterials · landing page
   Brand: ink navy + teal (from the ZMS logo / invoice palette), Vazirmatn.
   ========================================================================== */

@property --bg      { syntax: '<color>'; inherits: true; initial-value: #0a1117; }
@property --fg      { syntax: '<color>'; inherits: true; initial-value: #e8f4f6; }
@property --fg-2    { syntax: '<color>'; inherits: true; initial-value: #9fb4bc; }
@property --fg-3    { syntax: '<color>'; inherits: true; initial-value: #5f7681; }
@property --line-c  { syntax: '<color>'; inherits: true; initial-value: rgba(176,212,220,.14); }
@property --card    { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,.035); }
@property --card-b  { syntax: '<color>'; inherits: true; initial-value: rgba(176,212,220,.12); }
@property --accent  { syntax: '<color>'; inherits: true; initial-value: #6fd0de; }

:root {
  /* brand */
  --ink: #0a1117;
  --ink-2: #0d1820;
  --navy: #1a3347;
  --navy-2: #243f56;
  --teal: #2e8494;
  --teal-2: #3ba0b5;
  --teal-3: #6fd0de;
  --mist: #ebf6f8;
  --paper: #f3f8f9;

  /* periodic-table families */
  --c-inj: #5fd4e4;
  --c-bio: #7fe0b0;
  --c-reg: #ff9fb2;
  --c-cli: #b9c7d2;

  --f-head: 'Space Grotesk', 'Vazirmatn', system-ui, sans-serif;
  --f-body: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-mono: 'JetBrains Mono', 'Vazirmatn', ui-monospace, Consolas, monospace;
  --f-serif: 'Instrument Serif', 'Vazirmatn', Georgia, serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 22px;
  --nav-h: 76px;
}

/* themes — the body cross-fades between them as sections pass mid-screen */
body, body[data-theme="dark"] {
  --bg: #0a1117;
  --fg: #e8f4f6;
  --fg-2: #9fb4bc;
  --fg-3: #5f7681;
  --line-c: rgba(176,212,220,.14);
  --card: rgba(255,255,255,.035);
  --card-b: rgba(176,212,220,.13);
  --accent: #6fd0de;
}
body[data-theme="light"] {
  --bg: #f3f8f9;
  --fg: #0f2230;
  --fg-2: #4a5f6b;
  --fg-3: #8a9ea8;
  --line-c: rgba(15,34,48,.10);
  --card: #ffffff;
  --card-b: rgba(15,34,48,.09);
  --accent: #2e8494;
  --c-inj: #1d8fa3;
  --c-bio: #1f9c68;
  --c-reg: #d0506d;
  --c-cli: #5c6e7a;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: --bg .9s var(--ease), --fg .9s var(--ease), --fg-2 .9s var(--ease), --fg-3 .9s var(--ease),
              --line-c .9s var(--ease), --card .9s var(--ease), --card-b .9s var(--ease), --accent .9s var(--ease);
}
html[lang="en"] body { line-height: 1.65; }
body.intro-active { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }

/* ---------- type ---------- */
.h1, .h2 { font-family: var(--f-head); font-weight: 700; margin: 0; color: var(--fg); }
.h1 { font-size: clamp(42px, 6.6vw, 104px); line-height: 1.2; letter-spacing: -.01em; }
.h2 { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.25; }
.h2--xl { font-size: clamp(40px, 6.4vw, 96px); }
html[lang="fa"] .h1, html[lang="fa"] .h2 { font-weight: 800; }
html[lang="en"] .h1 { font-size: clamp(40px, 5.4vw, 88px); line-height: 1.02; letter-spacing: -.04em; }
html[lang="en"] .h2 { line-height: 1.06; letter-spacing: -.035em; }

.h1 em, .h2 em { font-style: normal; }
html[lang="en"] .h1 em, html[lang="en"] .h2 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.h1 em .wi, .h2 em .wi, .h1 em:not(:has(.wi)), .h2 em:not(:has(.wi)) {
  background: linear-gradient(100deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 45%, var(--fg)) 55%, var(--accent) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--fg-2); max-width: 58ch; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 14px 7px 16px; border: 1px solid var(--line-c); border-radius: 99px;
  font-size: 14px; color: var(--fg-2); background: color-mix(in srgb, var(--bg) 40%, transparent);
  backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--fg-2); margin-bottom: 22px;
}
.kicker b {
  font-family: var(--f-mono); font-weight: 500; font-size: 12px; color: var(--accent);
  padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 6px;
}
.kicker::after { content: ''; width: 46px; height: 1px; background: var(--line-c); }

/* split-word reveal (word-level, so Persian letter joining is never broken) */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .02em .22em; margin: -.1em -.02em -.22em; }
[data-split] .wi { display: inline-block; transform: translate3d(0, 112%, 0) rotate(3deg); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); will-change: transform; }
[data-split].in .wi { transform: none; }

/* generic reveal */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 99px;
  font-weight: 600; font-size: 16px; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .4s, color .3s, background-color .3s;
}
.btn--small { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
html[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
.btn:hover .btn-arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }

.btn--glow { color: #04161c; background: linear-gradient(120deg, #8ae3ee, var(--teal-3) 40%, var(--teal-2)); box-shadow: 0 10px 40px -12px rgba(111,208,222,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--glow::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--glow:hover::before { transform: translateX(120%); }
.btn--glow:hover { box-shadow: 0 16px 50px -10px rgba(111,208,222,.9), inset 0 1px 0 rgba(255,255,255,.5); }
body[data-theme="light"] .btn--glow { color: #fff; background: linear-gradient(120deg, var(--teal-2), var(--teal) 55%, var(--navy)); box-shadow: 0 12px 34px -14px rgba(46,132,148,.9); }

.btn--ghost { color: var(--fg); border: 1px solid var(--line-c); background: color-mix(in srgb, var(--fg) 4%, transparent); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { color: var(--navy); background: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.btn--light:hover { box-shadow: 0 26px 60px -18px rgba(0,0,0,.6); }

/* ==========================================================================
   INTRO
   ========================================================================== */
#intro {
  --iris: 0px;
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(120% 90% at 50% 50%, #0f1d27 0%, #0a1117 55%, #070c10 100%);
  color: #e8f4f6; overflow: hidden;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1.5px));
          mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1.5px));
}
html:not(.js) #intro, #intro.is-done { display: none; }
#intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro-grid i { position: absolute; background: rgba(176,212,220,.09); transition: transform 1.6s var(--ease-io); }
.intro-grid i:nth-child(1), .intro-grid i:nth-child(2) { inset-inline: 0; height: 1px; transform: scaleX(0); }
.intro-grid i:nth-child(1) { top: 22%; transform-origin: left; }
.intro-grid i:nth-child(2) { bottom: 22%; transform-origin: right; }
.intro-grid i:nth-child(3), .intro-grid i:nth-child(4) { top: 0; bottom: 0; width: 1px; transform: scaleY(0); }
.intro-grid i:nth-child(3) { left: 18%; transform-origin: top; }
.intro-grid i:nth-child(4) { right: 18%; transform-origin: bottom; }
#intro.s1 .intro-grid i { transform: none; }

.intro-hud {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; color: rgba(176,212,220,.55);
  opacity: 0; transition: opacity .8s .3s; direction: ltr;
}
#intro.s1 .intro-hud { opacity: 1; }
.intro-hud--tl { top: 28px; left: 28px; }
.intro-hud--tr { top: 28px; right: 28px; text-align: right; }
.intro-hud--bl { bottom: 28px; left: 28px; flex-direction: row; align-items: baseline; gap: 6px; }
.intro-hud--br { bottom: 28px; right: 28px; text-align: right; }
.intro-pct { font-size: 44px; letter-spacing: 0; color: #e8f4f6; font-weight: 500; }
.intro-status::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--teal-3); animation: blink 1s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

.intro-stage { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 28px; transition: transform 1.3s var(--ease-io), opacity 1s; }
#intro.out .intro-stage { transform: scale(1.18); opacity: 0; }
.intro-mark { width: clamp(92px, 15vmin, 156px); aspect-ratio: 1; position: relative; }
.intro-svg { width: 100%; height: 100%; overflow: visible; }
.im-draw { fill: none; stroke: #e8f4f6; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.im-leaf-line { stroke: var(--teal-3); stroke-width: 1.6; }
.im-orbit-ring { fill: none; stroke: rgba(111,208,222,.45); stroke-width: .6; stroke-dasharray: .006 .012; transform-origin: 60px 60px; opacity: 0; }
.im-fill { fill: #e8f4f6; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
#intro.s2 .im-frame { animation: draw 1.15s var(--ease-io) forwards; }
#intro.s2 .im-leaf-line { animation: draw 1s var(--ease-io) .25s forwards; }
#intro.s2 .im-fill { animation: pop .8s var(--ease) .95s forwards; }
#intro.s2 .im-corner { animation-delay: 1.1s; }
#intro.s2 .im-orbit-ring { animation: ringIn 1.4s var(--ease) .4s forwards, spin 18s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes ringIn { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.intro-word { display: grid; justify-items: center; gap: 10px; text-align: center; }
.intro-zms { display: flex; gap: .18em; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(38px, 7.4vmin, 80px); letter-spacing: .14em; line-height: 1; overflow: hidden; padding: 4px 0; direction: ltr; }
.intro-zms span { display: inline-block; transform: translateY(110%); }
#intro.s3 .intro-zms span { animation: rise 1s var(--ease) forwards; }
#intro.s3 .intro-zms span:nth-child(2) { animation-delay: .08s; }
#intro.s3 .intro-zms span:nth-child(3) { animation-delay: .16s; }
@keyframes rise { to { transform: none; } }
.intro-fa { font-family: 'Vazirmatn', sans-serif; font-size: clamp(17px, 2.6vmin, 24px); font-weight: 500; color: rgba(232,244,246,.85); direction: rtl; }
.intro-fa span { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(8px); }
#intro.s3 .intro-fa span { animation: unblur .9s var(--ease) forwards; }
#intro.s3 .intro-fa span:nth-child(1) { animation-delay: .35s; }
#intro.s3 .intro-fa span:nth-child(2) { animation-delay: .45s; }
#intro.s3 .intro-fa span:nth-child(3) { animation-delay: .55s; }
#intro.s3 .intro-fa span:nth-child(4) { animation-delay: .65s; }
@keyframes unblur { to { opacity: 1; filter: none; transform: none; } }
.intro-en { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .42em; color: var(--teal-3); min-height: 1.5em; direction: ltr; }

.intro-iris-ring {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; border-radius: 50%;
  border: 1.5px solid rgba(111,208,222,.9); box-shadow: 0 0 40px 6px rgba(111,208,222,.35), inset 0 0 30px rgba(111,208,222,.3);
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
}
.intro-skip {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: rgba(232,244,246,.55); padding: 8px 18px; border: 1px solid rgba(176,212,220,.18); border-radius: 99px;
  transition: color .3s, border-color .3s;
}
.intro-skip:hover { color: #fff; border-color: var(--teal-3); }

/* ==========================================================================
   CHROME — progress, cursor, grain, nav, menu, hud
   ========================================================================== */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-2), var(--teal-3)); transform: scaleX(var(--p, 0)); transform-origin: left; box-shadow: 0 0 12px var(--teal-3); }
html[dir="rtl"] .progress i { transform-origin: right; }

.cursor { position: fixed; inset: 0; z-index: 900; pointer-events: none; mix-blend-mode: difference; }
.cursor i { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,.8); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,.9); }
.cursor.is-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }

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

.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter); color: var(--fg);
  transition: transform .6s var(--ease), background-color .5s, border-color .5s, height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { height: 64px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-color: var(--line-c); }
.nav.is-hidden { transform: translateY(-105%); }
body.is-loading .nav, body.is-loading .hud { opacity: 0; }
.nav, .hud { transition: transform .6s var(--ease), background-color .5s, border-color .5s, height .5s var(--ease), opacity 1s .2s; }

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-mark { width: 38px; height: 38px; color: var(--accent); transition: transform .8s var(--ease); }
.nav-logo:hover .nav-mark { transform: rotate(-90deg); }
.nav-word { display: grid; line-height: 1.1; }
.nav-word b { font-family: var(--f-head); font-size: 19px; letter-spacing: .14em; font-weight: 700; }
.nav-word small { font-size: 11px; color: var(--fg-2); }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 15px; }
.nav-links a { position: relative; color: var(--fg-2); transition: color .3s; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: var(--to, right); transition: transform .5s var(--ease); }
html[dir="ltr"] .nav-links a::after { --to: left; }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; display: inline-flex; height: 36px; padding: 3px; border: 1px solid var(--line-c); border-radius: 99px; font-size: 12px; font-weight: 600; direction: ltr; }
.lang span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; border-radius: 99px; color: var(--fg-3); transition: color .4s; }
.lang::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: 36px; border-radius: 99px; background: var(--accent); transition: transform .5s var(--ease); }
html[lang="en"] .lang::before { transform: translateX(36px); }
html[lang="fa"] .lang-fa, html[lang="en"] .lang-en { color: var(--bg); }
.lang-fa { font-family: 'Vazirmatn', sans-serif; }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-c); position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease); }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 24px; }
body.menu-open .burger i:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px);
  clip-path: circle(0 at var(--mx, 90%) 32px); transition: clip-path .9s var(--ease-io);
}
html[dir="rtl"] .menu { --mx: 10%; }
body.menu-open .menu { clip-path: circle(150% at var(--mx, 90%) 32px); }
.menu nav { display: grid; gap: 8px; text-align: center; }
.menu a { display: flex; align-items: baseline; gap: 14px; justify-content: center; font-family: var(--f-head); font-size: clamp(30px, 8vw, 46px); font-weight: 700; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s var(--ease); }
.menu a small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); font-weight: 500; }
body.menu-open .menu a { opacity: 1; transform: none; }
body.menu-open .menu a:nth-child(2) { transition-delay: .06s; } body.menu-open .menu a:nth-child(3) { transition-delay: .12s; }
body.menu-open .menu a:nth-child(4) { transition-delay: .18s; } body.menu-open .menu a:nth-child(5) { transition-delay: .24s; }

.hud {
  position: fixed; bottom: 22px; inset-inline-start: var(--gutter); z-index: 40;
  display: flex; align-items: center; gap: 12px; direction: ltr;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--fg-3);
  pointer-events: none;
}
.hud-bar { width: 70px; height: 1px; background: var(--line-c); position: relative; overflow: hidden; }
.hud-bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
body.at-top .hud, body.at-end .hud { opacity: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; align-items: center;
  background: var(--ink); color: #e8f4f6;
  --fg: #e8f4f6; --fg-2: #9fb4bc; --fg-3: #5f7681; --line-c: rgba(176,212,220,.16); --accent: #6fd0de; --bg: #0a1117;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg::before { /* lab grid */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(176,212,220,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(176,212,220,.05) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center center;
  -webkit-mask: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 75%);
          mask: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 75%);
}
/* faceted planes, echoing the faceted teal disc in the logo */
.facet { position: absolute; width: 70vmax; height: 70vmax; opacity: .5; }
.facet--a { left: -18vmax; top: -30vmax; background: linear-gradient(135deg, rgba(46,132,148,.22), transparent 60%); transform: rotate(18deg); }
.facet--b { right: -24vmax; bottom: -40vmax; background: linear-gradient(-45deg, rgba(59,160,181,.16), transparent 55%); transform: rotate(-12deg); }
.facet--c { left: 8%; top: 52%; width: 40vmax; height: 40vmax; background: linear-gradient(200deg, rgba(26,51,71,.32), transparent 70%); transform: rotate(45deg); opacity: .35; }
.hero-glow { position: absolute; width: 60vmax; height: 60vmax; left: var(--gx, 30%); top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(46,132,148,.35), rgba(46,132,148,.08) 40%, transparent 65%); filter: blur(20px); }
html[dir="ltr"] .hero-glow { --gx: 70%; }

#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hl {
  position: absolute; top: 0; left: 0; direction: ltr;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: rgba(232,244,246,.85);
  padding: 5px 9px; border: 1px solid rgba(111,208,222,.35); border-radius: 6px;
  background: rgba(10,17,23,.55); backdrop-filter: blur(6px); white-space: nowrap;
  opacity: 0; transition: opacity .6s;
}
.hl.is-on { opacity: 1; }

.hero-inner { position: relative; z-index: 2; padding-block: calc(var(--nav-h) + 40px) 120px; }
.hero-inner > * { max-width: 640px; }
.hero .h1 { margin-bottom: 28px; text-shadow: 0 10px 60px rgba(10,17,23,.6); }
.hero .lead { margin-bottom: 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { display: flex; gap: clamp(22px, 4vw, 54px); margin: 0; padding-top: 26px; border-top: 1px solid var(--line-c); max-width: 560px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { font-family: var(--f-head); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; }
.hero-stats sup { font-size: .55em; color: var(--accent); margin-inline-start: 2px; }
.hero-stats dd { margin: 0; font-size: 13px; color: var(--fg-2); }

.js .hero-anim { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
body.is-ready .hero-anim { opacity: 1; transform: none; }
body.is-ready .hero .lead { transition-delay: .35s; }
body.is-ready .hero-ctas { transition-delay: .5s; }
body.is-ready .hero-stats { transition-delay: .65s; }

.hero-hud {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 44px;
  display: grid; gap: 14px; justify-items: start; direction: ltr; text-align: left;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--fg-3);
  opacity: 0; transition: opacity 1.2s .8s;
}
html[dir="ltr"] .hero-hud { left: auto; right: var(--gutter); justify-items: end; text-align: right; }
body.is-ready .hero-hud { opacity: 1; }
.hh-fig { display: grid; gap: 6px; justify-items: inherit; }
.hh-num { color: var(--accent); }
.hh-name { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; color: var(--fg); transition: opacity .4s; }
.hh-track { width: 160px; height: 2px; background: var(--line-c); border-radius: 2px; overflow: hidden; }
.hh-track i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--t, 0)); }
.hh-read { display: flex; gap: 16px; }
.hh-read b { color: var(--fg-2); font-weight: 500; display: inline-block; min-width: 5ch; }
.hh-scale { display: flex; align-items: center; gap: 10px; }
.hh-scale i { width: 60px; height: 8px; border: 1px solid var(--fg-3); border-top: 0; }

.scroll-cue { position: absolute; z-index: 2; bottom: 36px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 12px; color: var(--fg-3); opacity: 0; transition: opacity 1s 1.2s; }
body.is-ready .scroll-cue { opacity: 1; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, #fff, transparent); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { position: relative; z-index: 2; padding: 26px 0; background: var(--ink-2); border-block: 1px solid rgba(176,212,220,.08); overflow: hidden; color: #e8f4f6; direction: ltr; }
.mq-row { display: flex; white-space: nowrap; }
.mq-row + .mq-row { margin-top: 6px; }
.mq-track { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; font-family: var(--f-head); font-size: clamp(30px, 5vw, 70px); font-weight: 600; line-height: 1.3; will-change: transform; }
.mq-track b { font-size: .4em; color: var(--teal-3); font-weight: 400; }
.mq-row--outline .mq-track { color: transparent; -webkit-text-stroke: 1px rgba(111,208,222,.55); }
.mq-row--outline .mq-track b { -webkit-text-stroke: 0; color: rgba(111,208,222,.55); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding: clamp(84px, 12vh, 140px) 0; }
.section::before { /* faint lab grid on every section */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line-c) 1px, transparent 1px), linear-gradient(90deg, var(--line-c) 1px, transparent 1px);
  background-size: 120px 120px; opacity: .35;
  -webkit-mask: linear-gradient(transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(transparent, #000 15%, #000 85%, transparent);
}
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.sec-lead { color: var(--fg-2); margin: 0; font-size: 17px; max-width: 46ch; }

/* ---------- about ---------- */
.manifesto {
  font-family: var(--f-head); font-weight: 600; margin: 0 0 clamp(70px, 9vw, 120px);
  font-size: clamp(26px, 3.4vw, 50px); line-height: 1.55; max-width: 26em;
}
html[lang="en"] .manifesto { line-height: 1.3; letter-spacing: -.02em; }
.manifesto em { font-style: normal; }
.manifesto .sw { color: var(--fg); opacity: .14; transition: opacity .5s, color .5s; }
.manifesto .sw.lit { opacity: 1; }
.manifesto .sw.key.lit { color: var(--accent); }

.chapters { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; margin-bottom: clamp(70px, 9vw, 120px); }
.chapter { position: relative; padding: 30px; border: 1px solid var(--card-b); border-radius: var(--r); background: var(--card); overflow: hidden; }
.chapter h3 { font-family: var(--f-head); font-size: 26px; margin: 10px 0 8px; font-weight: 700; }
.chapter p { margin: 0 0 18px; color: var(--fg-2); font-size: 16px; }
.chapter-k { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--fg-3); }
.chapter-k .mono { color: var(--accent); }
.chapter--now { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--card)), var(--card)); }
.chapter-art { width: 100%; height: 70px; }
.chapter-art .ecg { fill: none; stroke: var(--fg-3); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chapter.in .ecg { animation: draw 2.4s var(--ease-io) .4s forwards; }
.chapter-art .hexes path { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .8s var(--ease); }
.chapter.in .hexes path { opacity: 1; transform: none; }
.chapter.in .hexes path:nth-child(2) { transition-delay: .15s; } .chapter.in .hexes path:nth-child(3) { transition-delay: .3s; }
.chapter.in .hexes path:nth-child(4) { transition-delay: .45s; } .chapter.in .hexes path:nth-child(5) { transition-delay: .6s; }
.chapter-link { display: grid; place-items: center; width: 90px; position: relative; }
.chapter-link i { position: absolute; inset-inline: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 24px 1px; animation: march 1s linear infinite; }
@keyframes march { to { background-position: 24px 0; } }
html[dir="rtl"] .chapter-link i { animation-direction: reverse; }
.chapter-link span { position: relative; font-size: 10px; color: var(--accent); background: var(--bg); padding: 4px 6px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 5px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-c); }
.stat { position: relative; padding-block: 34px 6px; padding-inline-end: 26px; }
.stat + .stat { padding-inline-start: 26px; border-inline-start: 1px solid var(--line-c); }
.stat-v { font-family: var(--f-head); font-size: clamp(44px, 5vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.stat-v sup { font-size: .42em; color: var(--accent); vertical-align: super; margin-inline-start: 4px; }
.stat p { margin: 14px 0 0; color: var(--fg-2); font-size: 15px; max-width: 22ch; }
.stat-line { position: absolute; top: -1px; inset-inline-start: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: var(--o, right); transition: transform 1.4s var(--ease) .2s; }
html[dir="ltr"] .stat-line { --o: left; }
.stat.in .stat-line { transform: scaleX(.35); }

/* ---------- products: periodic table ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 30px; font-size: 14px; color: var(--fg-2); }
.lg { display: inline-flex; align-items: center; gap: 9px; }
.lg i { width: 12px; height: 12px; border-radius: 3px; background: var(--fam); box-shadow: 0 0 14px var(--fam); }
.lg--inj, .el--inj { --fam: var(--c-inj); }
.lg--bio, .el--bio { --fam: var(--c-bio); }
.lg--reg, .el--reg { --fam: var(--c-reg); }
.lg--cli, .el--cli { --fam: var(--c-cli); }

.ptable { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.pdetail { position: sticky; top: 96px; }
.pd-card {
  --fam: var(--c-inj);
  position: relative; padding: 26px; border-radius: 26px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fam) 45%, transparent);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--fam) 16%, transparent), transparent 60%), var(--card);
  transition: border-color .6s, background .6s;
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--fam) 60%, transparent);
}
.pd-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.pd-num { font-size: 15px; color: var(--fam); }
.pd-fam { padding: 4px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--fam) 50%, transparent); color: var(--fam); font-size: 12px; }
.pd-atom { position: relative; width: min(100%, 250px); aspect-ratio: 1; margin: 6px auto 4px; display: grid; place-items: center; }
.pd-atom svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orb { fill: none; stroke: color-mix(in srgb, var(--fam) 35%, transparent); stroke-width: 1; }
.orb2 { stroke-dasharray: 3 6; }
.e { transform-origin: 100px 100px; fill: var(--fam); filter: drop-shadow(0 0 6px var(--fam)); }
.e1 { animation: spin 5s linear infinite; } .e2 { animation: spin 8s linear infinite reverse; } .e3 { animation: spin 12s linear infinite; }
.pd-sym { position: relative; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(70px, 7vw, 98px); line-height: 1; color: var(--fg); letter-spacing: -.02em; direction: ltr; text-shadow: 0 0 40px color-mix(in srgb, var(--fam) 60%, transparent); }
.pd-en { text-align: center; font-size: 12px; color: var(--fam); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; direction: ltr; }
.pd-name { text-align: center; font-family: var(--f-head); font-size: 24px; margin: 0 0 10px; font-weight: 700; }
.pd-desc { margin: 0 0 18px; font-size: 15px; color: var(--fg-2); text-align: center; min-height: 3.5em; }
.pd-spec { text-align: center; font-size: 11px; color: var(--fg-3); padding-top: 14px; border-top: 1px dashed var(--line-c); letter-spacing: .18em; direction: ltr; }
.pd-card .swap { animation: swapIn .55s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; perspective: 900px; }
.el {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; aspect-ratio: 1 / 1.04; padding: 12px 14px; border-radius: 16px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; text-align: start; color: var(--fg);
  border: 1px solid var(--card-b); background: var(--card);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .6s var(--ease), border-color .4s, box-shadow .5s, background-color .4s;
}
.el::before { content: ''; position: absolute; top: 0; inset-inline: 14px; height: 2px; border-radius: 0 0 2px 2px; background: var(--fam); opacity: .8; }
.el::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx) var(--my), color-mix(in srgb, var(--fam) 28%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.el:hover::after, .el.is-active::after { opacity: 1; }
.el.is-active { border-color: var(--fam); box-shadow: 0 0 0 1px var(--fam) inset, 0 24px 50px -24px var(--fam); }
.el-n { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); direction: ltr; text-align: start; }
.el-s { align-self: center; justify-self: center; font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; letter-spacing: -.02em; direction: ltr; transition: color .3s, transform .6s var(--ease); }
.el:hover .el-s, .el.is-active .el-s { color: var(--fam); transform: translateZ(30px) scale(1.06); }
.el-name { font-size: 12.5px; color: var(--fg-2); line-height: 1.3; text-align: center; }
.el-data { display: none; }
.js .pgrid .el { opacity: 0; transform: translateY(30px) scale(.94); }
.pgrid.in .el { opacity: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease), opacity .8s, border-color .4s, box-shadow .5s; transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms), 0s, 0s; }
.pgrid.in.settled .el { transition-delay: 0s; }

.ptable-more { display: flex; justify-content: center; margin-top: 34px; }
.ptable-more .btn { white-space: normal; height: auto; min-height: 54px; padding: 12px 26px; text-align: center; }

/* ---------- method: sticky lens ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.lens-col { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.lens { position: relative; width: min(100%, 470px); aspect-ratio: 1; }
.lens-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lens-ring circle { fill: none; stroke: var(--line-c); stroke-width: .5; }
.lens-ring .lens-prog { stroke: var(--accent); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp, 0)); stroke-linecap: round; }
.lens-ticks { position: absolute; inset: 3.4%; border-radius: 50%;
  background: repeating-conic-gradient(var(--fg-3) 0 .4deg, transparent .4deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 70%, transparent 70.5%);
          mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 70%, transparent 70.5%);
  opacity: .5; animation: spin 80s linear infinite; }
.lens-view {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 38% 30%, #183245 0%, #0d1b26 55%, #081118 100%);
  box-shadow: inset 0 0 0 1px rgba(111,208,222,.25), inset 0 0 70px rgba(0,0,0,.55), 0 40px 90px -40px rgba(10,17,23,.8);
}
.lens-view::after { /* glass highlight */
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(60% 40% at 30% 18%, rgba(255,255,255,.12), transparent 70%);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.88) rotate(-6deg); transition: opacity .7s, transform 1.1s var(--ease); }
.scene.is-on { opacity: 1; transform: none; }
.scene * { vector-effect: non-scaling-stroke; }
.scene path, .scene rect, .scene circle { stroke: #6fd0de; stroke-width: 1.6; fill: none; }
.scene text { fill: #cdeff4; font-family: 'JetBrains Mono', monospace; font-size: 13px; text-anchor: middle; letter-spacing: .1em; stroke: none; }
.mol circle { fill: #0d1b26; }
.mol .atom { fill: #6fd0de; stroke: none; filter: drop-shadow(0 0 6px #6fd0de); }
.scene .scan rect { fill: #6fd0de; stroke: none; }
.scene .scan .scan-glow { fill: rgba(111,208,222,.12); }
.scan { animation: scan 3.2s var(--ease-io) infinite alternate; }
@keyframes scan { from { transform: translateY(60px); } to { transform: translateY(340px); } }
.qc path { stroke: #7fe0b0; stroke-width: 2.4; stroke-dasharray: 60; stroke-dashoffset: 60; animation: qc 3.2s infinite; }
.qc text { fill: #7fe0b0; text-anchor: start; font-size: 14px; }
@keyframes qc { 40% { stroke-dashoffset: 60; } 60%, 100% { stroke-dashoffset: 0; } }
.pulse-ring { transform-origin: 200px 200px; animation: ringPulse 2.8s var(--ease) infinite; }
.pulse-ring.d2 { animation-delay: 1.4s; }
@keyframes ringPulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.vial .liquid { fill: rgba(111,208,222,.35); stroke: none; animation: slosh 3s ease-in-out infinite; transform-origin: 200px 250px; }
@keyframes slosh { 50% { transform: skewY(-3deg); } }
.lot rect { fill: rgba(10,17,23,.8); }
.lot .ok { fill: #7fe0b0; font-size: 11px; }
.bars rect { fill: #6fd0de; stroke: none; opacity: .7; }
.route-bg { stroke: rgba(111,208,222,.18) !important; stroke-width: 10 !important; stroke-linecap: round; }
.route { stroke-dasharray: .03 .02; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -.05; } }
.pin { fill: #0d1b26 !important; } .pin--end { fill: #6fd0de !important; filter: drop-shadow(0 0 10px #6fd0de); }
.parcel { fill: #fff !important; stroke: none !important; filter: drop-shadow(0 0 8px #fff); }
.otp rect { fill: rgba(10,17,23,.85); }
.otp text { font-size: 18px; letter-spacing: .3em; fill: #fff; }
.net-lines path { stroke: rgba(111,208,222,.35); stroke-dasharray: 4 6; }
.hub { fill: #6fd0de !important; stroke: none !important; filter: drop-shadow(0 0 16px #6fd0de); }
.nodes circle { fill: #0d1b26; }
.sig circle { fill: #fff; stroke: none; }

.lens-label { position: absolute; bottom: -2%; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; font-size: 12px; color: var(--fg-3); direction: ltr; }
.ll-step { color: var(--accent); }

.steps { list-style: none; margin: 0; padding: 14vh 0 20vh; counter-reset: none; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .7s var(--ease); }
.step.is-on { opacity: 1; }
.step-n { font-size: 13px; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.step-n::after { content: ''; width: 0; height: 1px; background: var(--accent); transition: width 1s var(--ease); }
.step.is-on .step-n::after { width: 80px; }
.step h3 { font-family: var(--f-head); font-size: clamp(30px, 3.4vw, 48px); margin: 0 0 16px; font-weight: 700; line-height: 1.25; }
.step p { margin: 0; font-size: 18px; color: var(--fg-2); max-width: 40ch; }

/* ---------- why: bento ---------- */
.bento { display: grid; gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 28px; min-height: 300px; border-radius: var(--r); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--card-b); background: var(--card);
  transition: transform .6s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-4px); }
.card::before { /* border glow tracking the pointer */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--accent), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
}
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 9%, transparent), transparent 50%); opacity: 0; transition: opacity .4s; }
.bento:hover .card::before, .card:hover::after { opacity: 1; }
.card h3 { font-family: var(--f-head); font-size: 23px; font-weight: 700; margin: 0 0 8px; }
.card p { margin: 0; color: var(--fg-2); font-size: 15.5px; max-width: 46ch; }
.card--solo { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(28px, 5vw, 70px); min-height: 0; padding: clamp(28px, 4vw, 56px); }
.card--solo .card-art { margin: 0; min-height: 180px; }
.card--solo h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; }
.card--solo p { font-size: 17px; }
.card-art { position: relative; flex: 1; min-height: 120px; margin-bottom: 22px; display: grid; place-items: center; }
.tag { position: absolute; top: 0; inset-inline-end: 0; font-size: 10px; color: var(--accent); padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 6px; letter-spacing: .14em; }

.art-wave svg { width: 100%; height: 150px; overflow: hidden; }
.art-wave path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; animation: wave 3s linear infinite; }
.art-wave .w1 { stroke: var(--accent); }
.art-wave .w2 { stroke: color-mix(in srgb, var(--accent) 40%, transparent); animation-duration: 4.5s; }
@keyframes wave { to { transform: translateX(-100px); } }

/* ---------- reach ---------- */
.reach-grid { display: grid; gap: 16px; }
.map { position: relative; margin: 0; border-radius: var(--r); border: 1px solid var(--card-b); background: var(--card); overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; aspect-ratio: 800 / 374; direction: ltr; }
#dots circle { fill: var(--fg-3); opacity: .5; }
.sea-base { fill: var(--card); }
.sea { fill: color-mix(in srgb, var(--accent) 10%, transparent); }
.coast { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: .75; }
.sea-label { fill: var(--accent); font-family: var(--f-body); font-size: 18px; text-anchor: middle; letter-spacing: .3em; opacity: .7; }
html[lang="fa"] .sea-label { letter-spacing: 0; font-size: 20px; }
.sea-waves path { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .35; animation: bob 4s ease-in-out infinite; }
.sea-waves path:nth-child(2) { animation-delay: -1.3s; } .sea-waves path:nth-child(3) { animation-delay: -2.6s; }
@keyframes bob { 50% { transform: translateY(6px); } }
.prov { font-family: var(--f-body); font-size: 26px; font-weight: 800; fill: var(--fg); opacity: .13; text-anchor: middle; }
html[lang="en"] .prov { font-family: var(--f-head); font-size: 17px; letter-spacing: .24em; text-transform: uppercase; opacity: .2; }
.link { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .5; }
.map.in .link { animation: draw 1.8s var(--ease-io) .6s forwards; }
.city { fill: var(--accent); stroke: var(--card); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s var(--ease) var(--d, 0ms), fill .25s; cursor: pointer; outline: none; }
.map.in .city { transform: none; }
.city:hover, .city:focus-visible { fill: var(--fg); }
.city--hub { fill: var(--fg); stroke: var(--accent); stroke-width: 2.5; }
.city-pulse { fill: none; stroke: var(--accent); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.map.in .city-pulse { animation: nodePulse 2.8s var(--ease) 1.6s infinite; }
@keyframes nodePulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }
.city-label { font-family: var(--f-body); font-size: 14px; font-weight: 700; fill: var(--fg); text-anchor: middle; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; opacity: 0; transition: opacity .8s 1.2s; }
.map.in .city-label { opacity: 1; }
.map-tip { position: absolute; top: 0; left: 0; z-index: 2; padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--fg); color: var(--bg); pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 8px)); transition: opacity .2s; }
.map-tip.is-on { opacity: 1; }

.chart {
  --ch: 150px;
  display: grid; grid-template-columns: minmax(280px, 1fr) 1.7fr; grid-template-areas: "head curve" "line curve" "note curve";
  align-content: center; column-gap: clamp(28px, 5vw, 70px);
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r); border: 1px solid var(--card-b); background: var(--card);
}
.chart-head { grid-area: head; } .chart-line { grid-area: line; } .chart-note { grid-area: note; } .curve { grid-area: curve; }
.chart-head { display: flex; align-items: center; gap: 18px; }
.chart-big { font-family: var(--f-head); font-size: clamp(66px, 7vw, 108px); font-weight: 600; line-height: .9; letter-spacing: -.04em; color: var(--accent); }
.chart-head p { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; }
.chart-line { margin: 16px 0 0; font-size: 15px; color: var(--fg-2); }
.curve { position: relative; align-self: center; padding-top: 28px; color: var(--accent); }
.curve svg { display: block; width: 100%; height: var(--ch); overflow: visible; clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease-io) .2s; }
.chart.in .curve svg { clip-path: inset(0 0 0 0); }
.curve-grid line { stroke: var(--line-c); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.curve-area { fill: url(#curve-fill); }
.curve-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.curve-dot { position: absolute; top: calc(28px + var(--ch) * .0824); right: 0; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .5s 2.4s; animation: ping 2.2s infinite; }
.chart.in .curve-dot { opacity: 1; }
.curve-years { position: relative; height: 22px; margin-top: 8px; }
.curve-years span { position: absolute; top: 0; left: var(--x); font-size: 12px; color: var(--fg-3); }
.chart-note { margin: 10px 0 0; font-size: 12px; color: var(--fg-3); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  padding: clamp(110px, 18vh, 200px) 0;
  background: radial-gradient(80% 120% at 50% 110%, #3ba0b5 0%, transparent 60%), linear-gradient(150deg, #2e8494 0%, #1d4f63 45%, #13283a 100%);
  --fg: #fff; --fg-2: rgba(255,255,255,.78); --accent: #bff3f9;
}
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask: radial-gradient(circle at 50% 50%, #000, transparent 70%); }
.cta-orb { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(80vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.cta-orb::before, .cta-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.cta-orb::after { inset: 14%; border-style: dashed; animation: spin 40s linear infinite; }
.cta-orb svg { width: 46%; height: 46%; color: rgba(255,255,255,.07); animation: spin 60s linear infinite reverse; }
.cta-inner { display: grid; justify-items: center; gap: 26px; }
.cta .lead { color: var(--fg-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact .h2 { margin-bottom: 20px; }
.info { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-c); }
.info li { display: grid; grid-template-columns: 46px 110px 1fr; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line-c); }
.info-k { font-size: 11px; color: var(--accent); }
.info-l { color: var(--fg-3); font-size: 14px; }
.info-v { font-weight: 600; font-size: 16px; justify-self: start; }
.info-v.is-ph { color: var(--fg-3); font-weight: 500; letter-spacing: .04em; }
a.info-v { transition: color .3s; } a.info-v:hover { color: var(--accent); }

.form { padding: clamp(24px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--card-b); background: var(--card); display: grid; gap: 14px; box-shadow: 0 40px 100px -60px rgba(15,34,48,.5); }
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-c); border-radius: 0; outline: none; resize: vertical;
  padding: 26px 0 10px; color: var(--fg); font: inherit; font-size: 17px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat center bottom / 0 2px;
  transition: background-size .6s var(--ease), border-color .3s;
}
.field input:focus, .field textarea:focus { background-size: 100% 2px; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field label { position: absolute; inset-inline-start: 0; top: 26px; color: var(--fg-3); pointer-events: none; transition: transform .4s var(--ease), color .3s, font-size .3s; transform-origin: right top; font-size: 16px; }
html[dir="ltr"] .field label { transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.78); color: var(--accent); }
.field.is-invalid input { border-color: #e5707e; }
.chips { border: 0; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; font-size: 14px; color: var(--fg-3); margin-bottom: 10px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line-c); font-size: 14px; color: var(--fg-2); transition: all .3s var(--ease); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { margin-top: 12px; }
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-msg { margin: 0; min-height: 1.5em; font-size: 14px; color: var(--accent); text-align: center; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; padding: 80px 0 30px; background: var(--ink); color: #e8f4f6; --fg-2: #9fb4bc; --fg-3: #5f7681; --line-c: rgba(176,212,220,.14); --accent: #6fd0de; }
.ft-top { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line-c); }
.ft-brand { display: flex; align-items: center; gap: 14px; }
.ft-brand div { display: grid; }
.ft-brand b { font-size: 17px; }
.ft-brand .mono { font-size: 10px; color: var(--fg-3); letter-spacing: .3em; }
.ft-mark { width: 50px; height: 50px; color: var(--accent); }
.ft-tag { margin: 0; color: var(--fg-2); text-align: center; }
.ft-nav { display: flex; gap: 22px; font-size: 14px; color: var(--fg-2); }
.ft-nav a:hover { color: var(--accent); }
.ft-word {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; text-align: center; direction: ltr;
  font-size: clamp(120px, 30vw, 440px); line-height: .82; letter-spacing: -.05em; margin: 30px 0 10px;
  color: transparent; -webkit-text-stroke: 1px rgba(111,208,222,.28);
  background: linear-gradient(180deg, rgba(111,208,222,.55), rgba(46,132,148,.05) 85%) no-repeat;
  background-size: 100% var(--fill, 0%); background-position: bottom;
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.ft-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--fg-3); }
.ft-up:hover { color: var(--accent); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .ptable { grid-template-columns: minmax(280px, 340px) 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-actions .btn { display: none; }
  .burger { display: block; }
  .nav-word small { display: none; }
  .hero { align-items: end; }
  .hero-inner { padding-bottom: 110px; padding-top: 45vh; }
  .hero-hud { display: none; }
  .hero-stats dd { font-size: 12px; }
  .scroll-cue { display: none; }
  .sec-head--split { grid-template-columns: 1fr; gap: 18px; }
  .chapters { grid-template-columns: 1fr; }
  .chapter-link { width: auto; height: 56px; }
  .chapter-link i { inset-inline: auto; left: 50%; top: 0; bottom: 0; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 1px 24px; animation: none; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line-c); }
  .stat { padding-block: 26px 22px; }
  .ptable { grid-template-columns: 1fr; }
  .pdetail { position: relative; top: 0; }
  .pd-card { display: grid; grid-template-columns: 120px 1fr; grid-template-areas: "top top" "atom en" "atom name" "desc desc" "spec spec"; column-gap: 18px; align-items: center; padding: 20px; }
  .pd-top { grid-area: top; margin-bottom: 8px; }
  .pd-atom { grid-area: atom; width: 120px; margin: 0; }
  .pd-sym { font-size: 48px; }
  .pd-en { grid-area: en; text-align: start; align-self: end; }
  .pd-name { grid-area: name; text-align: start; align-self: start; font-size: 20px; }
  .pd-desc { grid-area: desc; text-align: start; min-height: 0; margin-top: 12px; }
  .pd-spec { grid-area: spec; }
  .method-grid { grid-template-columns: 1fr; gap: 0; }
  .lens-col { top: var(--nav-h); height: auto; padding: 10px 0 30px; z-index: 2; background: linear-gradient(var(--bg) 78%, transparent); }
  .lens { width: min(48vw, 210px); }
  .steps { padding: 4vh 0 10vh; }
  .step { min-height: 46vh; }
  .reach-grid, .contact-grid { grid-template-columns: 1fr; }
  .chart { display: flex; flex-direction: column; --ch: 120px; }
  .curve { order: 3; margin-top: 10px; }
  .chart-note { order: 4; }
  .ft-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .el { padding: 8px; border-radius: 12px; }
  .el-name { font-size: 10.5px; }
  .bento { grid-template-columns: 1fr; }
  .card--solo { grid-template-columns: 1fr; gap: 10px; }
  .card--solo .card-art { min-height: 120px; }
  .card { min-height: 0; }
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .info li { grid-template-columns: 40px 90px 1fr; }
  .city { r: 8px; } .city--hub { r: 10px; }
  .city-label { font-size: 26px; stroke-width: 6px; } .prov { font-size: 28px; }
  .sea-label, html[lang="fa"] .sea-label { font-size: 30px; }

  .hero-stats { gap: 18px; }
  .hud { display: none; }
  .intro-hud--tr, .intro-hud--br { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
/* html.reduce is set in <head> from prefers-reduced-motion (overridable with ?motion) */
html.reduce { scroll-behavior: auto; }
html.reduce *, html.reduce *::before, html.reduce *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
html.reduce #intro, html.no-intro #intro { display: none; }
html.reduce [data-reveal], html.reduce .hero-anim, html.reduce .pgrid .el { opacity: 1; transform: none; }
html.reduce [data-split] .wi { transform: none; }
html.reduce .curve svg { clip-path: none; }
