/* mo0gliix studio
   Layout: a scroll film. Black clinic-monitor ground, one particle signal behind it,
   white sheets that open through the zero. No colour anywhere. */

:root {
  --black: #060606;
  --white: #f4f4f2;
  --ground: var(--black);
  --ink: var(--white);
  --dim: rgba(244, 244, 242, .62);
  --faint: rgba(244, 244, 242, .13);
  --hair: rgba(244, 244, 242, .26);
  --font-d: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-b: 'Mona Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-m: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: max(clamp(18px, 3vw, 44px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(18px, 3vw, 44px), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.19, 1, .22, 1);
  --sect: clamp(96px, 13vw, 200px);
  color-scheme: dark;
}

html[lang='ar'] {
  --font-d: 'Alexandria', 'Mona Sans', Tahoma, sans-serif;
  --font-b: 'IBM Plex Sans Arabic', 'Mona Sans', Tahoma, sans-serif;
  --font-m: 'IBM Plex Sans Arabic', 'Geist Mono', Tahoma, sans-serif;
}

.t-light {
  --ground: var(--white);
  --ink: var(--black);
  --dim: rgba(6, 6, 6, .66);
  --faint: rgba(6, 6, 6, .1);
  --hair: rgba(6, 6, 6, .26);
  color-scheme: light;
  background: var(--ground);
  color: var(--ink);
}

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

html { -webkit-text-size-adjust: 100%; background: var(--black); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html[lang='ar'] body { line-height: 1.8; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--ground); }

.mono {
  font-family: var(--font-m);
  font-size: 12.5px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
html[lang='ar'] .mono { font-size: 14px; letter-spacing: 0; }

.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  max-width: 1640px;
  margin-inline: auto;
}

.label { color: var(--dim); }
.fine { color: var(--dim); font-size: 13.5px; line-height: 1.5; }

.h-xl, .h-l {
  font-family: var(--font-d);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}
.h-xl { font-size: clamp(40px, 7.4vw, 124px); }
.h-l { font-size: clamp(30px, 4.3vw, 68px); }
html[lang='ar'] .h-xl, html[lang='ar'] .h-l { font-weight: 800; letter-spacing: 0; line-height: 1.24; }
html[lang='ar'] .h-xl { font-size: clamp(36px, 6.2vw, 104px); }
html[lang='ar'] .h-l { font-size: clamp(27px, 3.7vw, 58px); }

.body-l { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; max-width: 38em; color: var(--dim); }
html[lang='ar'] .body-l { line-height: 1.85; }

.sec-head { display: grid; gap: clamp(18px, 2.4vw, 32px); margin-bottom: clamp(44px, 6vw, 90px); }
.sec-head-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
.sec-head-row > div { display: grid; gap: clamp(18px, 2.4vw, 32px); }

.tag {
  display: inline-block;
  padding: .24em .62em .22em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-m);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang='ar'] .tag { font-size: 12.5px; letter-spacing: 0; }

/* Word masks used by the reveal animations */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em; margin-block: -.1em; }
.wi { display: inline-block; will-change: transform; }

/* Buttons share the outline of the zero */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 52px;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn-solid { background: var(--ink); color: var(--ground); }
.btn-solid::before { background: var(--dim); }
.btn-solid:hover { color: var(--ground); }
.btn-line { border: 1px solid var(--hair); color: var(--ink); }
.btn-line::before { background: var(--ink); }
.btn-line:hover, .btn-line:focus-visible { color: var(--ground); border-color: var(--ink); }
.btn-xl { min-height: 68px; padding: 1em 2em; font-size: clamp(16px, 1.5vw, 20px); }

/* Fixed layers */
#signal { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

.grain {
  position: fixed;
  inset: -60%;
  z-index: 60;
  pointer-events: none;
  opacity: .034;
  background-repeat: repeat;
  will-change: transform;
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-3%, 2%, 0); }
  40% { transform: translate3d(2%, -4%, 0); }
  60% { transform: translate3d(-2%, 3%, 0); }
  80% { transform: translate3d(4%, -1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.pre {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
}
.pre-mark { width: min(62vw, 560px); }
.pre-mark svg { width: 100%; height: auto; overflow: visible; }
.pre-foot {
  position: absolute;
  inset-inline: 0;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-inline: var(--gutter);
  color: var(--dim);
}
.pre-count { font-size: clamp(40px, 7vw, 88px); line-height: 1; color: var(--white); letter-spacing: -.02em; }
html[lang='ar'] .pre-count { font-family: 'Geist Mono', monospace; font-size: clamp(40px, 7vw, 88px); }

.veil {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--white);
  clip-path: circle(0 at 50% 50%);
  pointer-events: none;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top, 0px)) var(--gutter-r) 14px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
html[dir='rtl'] .nav { padding-left: var(--gutter-r); padding-right: var(--gutter); }
.nav > * { pointer-events: auto; }
.nav-logo { display: inline-flex; align-items: flex-start; gap: 8px; direction: ltr; }
.nav-wm { display: block; width: clamp(104px, 9vw, 132px); }
.nav-wm svg { width: 100%; height: auto; overflow: visible; }
.nav-studio { font-size: 11.5px; letter-spacing: .04em; opacity: .75; font-family: 'Geist Mono', monospace; padding-top: 1px; }
html[lang='ar'] .nav-studio { font-size: 11.5px; letter-spacing: .04em; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 42px;
  padding: 0 1.1em;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: transparent;
  transition: background .3s, color .3s;
}
.nav-btn:hover { background: #fff; color: #000; }
.burger { display: grid; gap: 4px; width: 16px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.dock {
  position: fixed;
  z-index: 70;
  inset-inline-end: var(--gutter);
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 8px;
  mix-blend-mode: difference;
}
.dock-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transition: transform .5s var(--ease);
}
.dock-btn svg { width: 23px; height: 23px; }
.dock-btn:hover { transform: scale(1.1); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 66;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 44px);
  padding: 96px var(--gutter-r) max(26px, env(safe-area-inset-bottom, 0px)) var(--gutter);
  overflow-y: auto;
}
html[dir='rtl'] .menu { padding-left: var(--gutter-r); padding-right: var(--gutter); }
.menu-list a {
  display: block;
  font-family: var(--font-d);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(36px, min(8.2vw, 11vh), 112px);
  line-height: 1.08;
  letter-spacing: -.035em;
  transition: opacity .3s, transform .6s var(--ease);
}
html[lang='ar'] .menu-list a { letter-spacing: 0; font-weight: 800; line-height: 1.4; font-size: clamp(32px, min(7vw, 9.4vh), 96px); }
.menu-list:hover a { opacity: .32; }
.menu-list a:hover { opacity: 1; transform: translateX(14px); }
html[dir='rtl'] .menu-list a:hover { transform: translateX(-14px); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--dim); }
.menu-foot a:hover { color: var(--white); }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    pointer-events: none;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .cursor-dot, .cursor-ring { position: absolute; top: 0; left: 0; border-radius: 50%; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px; background: #fff; }
  .cursor-ring {
    width: 44px;
    height: 44px;
    margin: -22px;
    border: 1px solid #fff;
    transition: transform .45s var(--ease), background .35s;
  }
  .cursor.is-hot .cursor-ring { transform: scale(1.7); background: #fff; }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}

main, .foot { position: relative; z-index: 1; }

.pin { position: relative; height: var(--pin-h, 300vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Hero */
.hero-stage {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(12px, 1.6vw, 22px);
  padding: 0 var(--gutter-r) max(18px, env(safe-area-inset-bottom, 0px)) var(--gutter);
}
html[dir='rtl'] .hero-stage { padding-left: var(--gutter-r); padding-right: var(--gutter); }
.hero-top {
  position: absolute;
  top: clamp(92px, 13vh, 132px);
  inset-inline-start: var(--gutter);
  width: min(100% - 2 * var(--gutter), 460px);
  display: grid;
  gap: 16px;
}
.kicker { color: var(--dim); }
.hero-lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.42; }
html[lang='ar'] .hero-lead { line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hero-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-stretch: 125%;
  font-size: min(10.5vw, 25vh);
  line-height: .96;
  letter-spacing: -.045em;
}
.ln { display: block; overflow: hidden; padding-bottom: .13em; margin-bottom: -.13em; white-space: nowrap; }
.ln-i { display: inline-block; will-change: transform, font-stretch; }
.ln-b { display: flex; align-items: center; gap: .24em; }
.trace { flex: 1 1 auto; min-width: 0; height: .78em; margin-top: .06em; }
html[lang='ar'] .hero-title { font-weight: 800; letter-spacing: 0; line-height: 1.24; font-size: min(9.2vw, 23vh); }
html[lang='ar'] .ln { padding-bottom: .18em; margin-bottom: -.18em; }
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  padding-inline-end: 70px;
}
.hero-foot b { font-weight: 500; color: var(--ink); font-family: 'Geist Mono', monospace; }
.live {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: .7em;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: .08em;
}

/* Manifesto */
.manifesto-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3vw, 40px);
  padding: 88px var(--gutter-r) 40px var(--gutter);
}
html[dir='rtl'] .manifesto-stage { padding-left: var(--gutter-r); padding-right: var(--gutter); }
.manifesto-text {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: min(5.1vw, 9.4vh);
  line-height: 1.07;
  letter-spacing: -.03em;
  max-width: 24em;
}
html[lang='ar'] .manifesto-text { letter-spacing: 0; line-height: 1.5; font-weight: 600; font-size: min(4.5vw, 7.8vh); }
.manifesto-found { position: absolute; left: 0; right: 0; bottom: 21vh; text-align: center; font-family: var(--font-d); font-weight: 600; font-size: clamp(22px, 2.8vw, 44px); letter-spacing: -.02em; opacity: 0; }
html[lang='ar'] .manifesto-found { letter-spacing: 0; }
.mw { display: inline-block; opacity: .15; will-change: opacity; }
.meter { display: flex; align-items: center; gap: 12px; color: var(--dim); }
.meter-track { position: relative; width: clamp(90px, 16vw, 220px); height: 1px; background: var(--hair); }
.meter-track i { position: absolute; inset-block: -1px; inset-inline-start: 0; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: 0 50%; }
html[dir='rtl'] .meter-track i { transform-origin: 100% 50%; }

/* Practice: four sheets that stack */
.practice { position: relative; }
.panel { position: sticky; top: 0; }
.panel-in {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(84px, 11vh, 118px) var(--gutter-r) clamp(30px, 4vw, 54px) var(--gutter);
  background: var(--ground);
  color: var(--ink);
  transform-origin: 50% 0;
  will-change: transform;
}
html[dir='rtl'] .panel-in { padding-left: var(--gutter-r); padding-right: var(--gutter); }
.panel:not(.t-light) .panel-in { background: var(--black); border-top: 1px solid var(--faint); }
.panel-head { display: flex; flex-direction: column; gap: 10px; }
.panel-top { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); }
.panel-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-stretch: 125%;
  font-size: min(9.1vw, 17vh);
  line-height: 1;
  letter-spacing: -.045em;
}
html[lang='ar'] .panel-title { font-weight: 800; letter-spacing: 0; line-height: 1.26; font-size: min(7.2vw, 15vh); }
.panel-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 90px); align-items: stretch; min-height: 0; }
.panel-text { display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(12px, 1.5vw, 20px); }
.panel-line { font-family: var(--font-d); font-weight: 600; font-size: clamp(22px, 2.5vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
html[lang='ar'] .panel-line { letter-spacing: 0; line-height: 1.5; }
.panel-p { max-width: 34em; color: var(--dim); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }
html[lang='ar'] .panel-p { line-height: 1.8; }
.panel-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.panel-items li {
  padding: .34em .85em;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 13.5px;
  line-height: 1.4;
}
.panel-viz { position: relative; min-height: clamp(250px, 44vh, 520px); min-width: 0; margin-inline-end: 64px; }

.viz-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(14px, 1.8vw, 24px);
  border: 1px solid var(--hair);
  border-radius: 18px;
}
.viz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--dim); }

.budget { flex: 1; display: grid; align-content: space-evenly; gap: 6px; min-height: 0; }
.budget-row { display: grid; grid-template-columns: minmax(0, 8.6em) minmax(0, 1fr) 3.4em; gap: 12px; align-items: center; font-size: 14px; }
.budget-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.budget-bar { position: relative; height: clamp(14px, 3.2vh, 30px); background: var(--faint); border-radius: 4px; overflow: hidden; }
.budget-bar i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(.2);
  transition: transform 1.3s var(--ease);
  will-change: transform;
}
html[dir='rtl'] .budget-bar i { transform-origin: 100% 50%; }
.budget-pct { text-align: end; font-family: 'Geist Mono', monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
.budget-row.is-cut { color: var(--dim); }
.budget-row.is-cut .budget-bar i { background: var(--hair); }

.xray { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px; touch-action: pan-y; }
.xray-hint { flex: 1; align-self: flex-end; max-width: 18em; color: var(--dim); }
.phone {
  position: relative;
  height: 100%;
  max-height: 560px;
  aspect-ratio: 9 / 17;
  max-width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(6, 6, 6, .85);
}
.phone-skin, .phone-bones { position: absolute; inset: 0; padding: 18px 16px; display: flex; flex-direction: column; }
.phone-skin { background: radial-gradient(120% 70% at 50% 28%, #3b3b3b 0%, #141414 55%, #060606 100%); }
.phone-skin small { opacity: .7; font-size: 11.5px; }
.phone-face {
  position: absolute;
  left: 50%;
  top: 19%;
  width: 46%;
  aspect-ratio: 3 / 4;
  transform: translateX(-50%);
  border-radius: 48% 48% 44% 44%;
  background: linear-gradient(160deg, #6a6a6a, #1b1b1b 72%);
}
.phone-face::after {
  content: '';
  position: absolute;
  left: -46%;
  right: -46%;
  top: 104%;
  height: 90%;
  border-radius: 46% 46% 0 0;
  background: linear-gradient(170deg, #4b4b4b, #111 70%);
}
.phone-hook { position: relative; margin-top: auto; font-family: var(--font-d); font-weight: 700; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.16; letter-spacing: -.02em; }
html[lang='ar'] .phone-hook { letter-spacing: 0; line-height: 1.45; }
.phone-sub { position: relative; margin-top: 6px; font-size: 12.5px; opacity: .8; line-height: 1.35; }
.phone-btn { position: relative; margin-top: 10px; padding: .55em 1em; border-radius: 999px; background: var(--white); color: var(--black); font-size: 12.5px; font-weight: 600; text-align: center; }
.phone-bones {
  background: var(--white);
  color: var(--black);
  clip-path: circle(var(--r, 92px) at var(--x, 50%) var(--y, 40%));
  justify-content: space-between;
  gap: 8px;
}
.bone { display: grid; gap: 1px; padding-block: 8px; border-top: 1px solid rgba(6, 6, 6, .3); font-size: 12.5px; line-height: 1.3; }
.bone:first-child { border-top: 0; }
.bone b { font-family: var(--font-d); font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -.02em; }
html[lang='ar'] .bone b { letter-spacing: 0; }
.bone code { font-family: 'Geist Mono', monospace; font-size: 11px; opacity: .7; }
.lens {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--r, 92px) * 2);
  height: calc(var(--r, 92px) * 2);
  margin: calc(var(--r, 92px) * -1);
  border: 1px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(6, 6, 6, .4);
  pointer-events: none;
  transform: translate(var(--x, 50%), var(--y, 40%));
  mix-blend-mode: difference;
}

.report { flex: 1; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
.report-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--faint); border: 1px solid var(--faint); border-radius: 10px; overflow: hidden; }
.report-rows div { background: var(--ground); color: var(--ink); padding: clamp(10px, 1.3vw, 18px); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.report-rows b { font-family: 'Geist Mono', monospace; font-weight: 500; font-size: clamp(22px, 2.6vw, 42px); line-height: 1; letter-spacing: -.03em; }
.report-rows span { color: var(--dim); font-size: 13.5px; }
.report-decide { display: grid; gap: 4px; font-size: 14px; }
.report-decide li { display: flex; align-items: center; gap: .6em; }
.report-decide li::before { content: ''; width: .9em; height: .5em; border-inline-start: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
html[dir='rtl'] .report-decide li::before { transform: rotate(45deg) translate(-1px, -2px); }

.cal { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 4px; min-height: 0; }
.cal-d { font-size: 11.5px; color: var(--dim); text-align: center; align-self: center; }
.cal-c { position: relative; display: grid; place-items: center; border-radius: 7px; background: var(--faint); min-height: 0; }
.cal-c i { display: block; width: 42%; aspect-ratio: 1; transform: scale(0); transition: transform .7s var(--ease); }
.cal.is-on .cal-c i { transform: scale(1); }
.cal-c[data-k='0'] i { background: var(--ink); border-radius: 50%; }
.cal-c[data-k='1'] i { background: var(--ink); border-radius: 2px; }
.cal-c[data-k='2'] i { border: 2px solid var(--ink); border-radius: 50%; }
.cal-c[data-k='3'] i { background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; }
.cal-c.is-hot { background: var(--ink); }
.cal-c.is-hot i { filter: invert(1); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--dim); font-size: 13px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { display: block; width: 11px; height: 11px; }
.cal-legend [data-k='0'] i { background: var(--ink); border-radius: 50%; }
.cal-legend [data-k='1'] i { background: var(--ink); border-radius: 2px; }
.cal-legend [data-k='2'] i { border: 2px solid var(--ink); border-radius: 50%; }
.cal-legend [data-k='3'] i { background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; }
.cal-note { min-height: 2.8em; font-size: 14px; line-height: 1.4; }

/* Gates: the zero opens and the page turns */
.gate-stage { display: grid; place-items: center; padding-inline: var(--gutter); }
.gate-outer, .gate-inner { position: absolute; inset: 0; will-change: clip-path; }
.gate[data-gate='white'] .gate-outer { background: var(--white); clip-path: circle(0 at 50% 50%); }
.gate[data-gate='white'] .gate-inner { background: var(--black); clip-path: circle(0 at 50% 50%); }
.gate[data-gate='black'] .stage { background: var(--white); }
.gate[data-gate='black'] .stage.is-open { background: transparent; }
.gate[data-gate='black'] .gate-outer { background: var(--black); clip-path: circle(0 at 50% 50%); }
.gate[data-gate='black'] .gate-inner { background: var(--white); clip-path: circle(0 at 50% 50%); }
.gate-text {
  position: relative;
  z-index: 2;
  color: #fff;
  mix-blend-mode: difference;
  font-family: var(--font-d);
  font-weight: 700;
  font-stretch: 125%;
  font-size: min(8.2vw, 15vh);
  line-height: 1;
  letter-spacing: -.045em;
  text-align: center;
  text-wrap: balance;
}
html[lang='ar'] .gate-text { font-weight: 800; letter-spacing: 0; line-height: 1.3; font-size: min(7.6vw, 14vh); }

/* Copy clinic */
.clinic { position: relative; padding-block: var(--sect) calc(var(--sect) + 120px); }
.rx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rx-tab {
  min-height: 42px;
  padding: 0 1.1em;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 14.5px;
  transition: background .3s, color .3s, border-color .3s;
}
.rx-tab:hover { border-color: var(--ink); }
.rx-tab[aria-selected='true'] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.rx-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 70px);
  align-items: stretch;
  padding: clamp(14px, 2vw, 28px);
  border: 1px solid var(--hair);
  border-radius: 20px;
}
.rx-ad { display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 1.6vw, 22px); border-radius: 12px; background: var(--black); color: var(--white); min-width: 0; }
.rx-ad-top { display: flex; align-items: center; gap: 10px; }
.rx-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 5px solid var(--white); position: relative; }
.rx-avatar::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--white); }
.rx-ad-name { display: grid; line-height: 1.2; font-size: 14px; }
.rx-ad-name b { font-weight: 600; }
.rx-ad-name small { opacity: .62; font-size: 12px; }
.stamp {
  margin-inline-start: auto;
  padding: .3em .7em;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
html[lang='ar'] .stamp { font-size: 13.5px; letter-spacing: 0; }
.rx-copy {
  position: relative;
  min-height: 2.5em;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(25px, 3.1vw, 52px);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
html[lang='ar'] .rx-copy { letter-spacing: 0; line-height: 1.42; min-height: 2.9em; }
.rx-copy.is-bad { text-decoration: line-through; text-decoration-thickness: .055em; text-decoration-color: currentColor; }
.rx-media {
  position: relative;
  flex: 1;
  min-height: clamp(90px, 13vw, 200px);
  border-radius: 8px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(244, 244, 242, .1) 0 1px, transparent 1px 18px), #151515;
}
.rx-media svg { position: absolute; left: 50%; top: 50%; width: auto; height: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rx-media::after { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--white); box-shadow: 0 0 22px 7px rgba(244, 244, 242, .34); animation: scan 3.4s ease-in-out infinite alternate; }
@keyframes scan { from { left: 4%; } to { left: 96%; } }
.rx-side { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.rx-why { font-family: var(--font-d); font-weight: 500; font-size: clamp(20px, 2vw, 32px); line-height: 1.2; letter-spacing: -.02em; min-height: 3.6em; }
html[lang='ar'] .rx-why { letter-spacing: 0; line-height: 1.55; }
.rx .fine { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(50px, 7vw, 100px); }
.facts li { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ink); }
.facts b { font-family: var(--font-d); font-weight: 700; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
html[lang='ar'] .facts b { letter-spacing: 0; line-height: 1.5; }
.facts span { color: var(--dim); font-size: 15.5px; line-height: 1.4; }
html[lang='ar'] .facts span { line-height: 1.75; }

.edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 10vw, 150px); z-index: 3; pointer-events: none; }

/* Protocol */
.protocol-stage {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vh, 30px);
  padding-top: clamp(84px, 11vh, 120px);
  padding-bottom: max(22px, env(safe-area-inset-bottom, 0px));
}
.protocol-head { display: grid; gap: 10px; padding-inline: var(--gutter); max-width: 1100px; }
.track { position: relative; flex: 1; min-height: 0; width: max-content; display: flex; flex-direction: column; justify-content: center; will-change: transform; }
.track-line { position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: clamp(90px, 15vh, 150px); overflow: visible; }
html[dir='rtl'] .track-line { transform: scaleX(-1); }
.track-line path { fill: none; stroke: var(--white); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.track-head { position: absolute; top: 0; left: 0; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 5px rgba(244, 244, 242, .16), 0 0 26px 6px rgba(244, 244, 242, .5); }
.steps { display: flex; gap: clamp(40px, 7vw, 130px); padding-inline: var(--gutter) 30vw; padding-top: clamp(100px, 16vh, 160px); }
.step { flex: none; width: min(76vw, 400px); display: grid; gap: 10px; align-content: start; }
.step-no { color: var(--dim); }
.step-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-stretch: 125%;
  font-size: clamp(42px, min(6.2vw, 11vh), 98px);
  line-height: 1;
  letter-spacing: -.045em;
}
html[lang='ar'] .step-name { font-weight: 800; letter-spacing: 0; line-height: 1.32; font-size: clamp(36px, min(5.2vw, 9.4vh), 84px); }
.step-body { color: rgba(244, 244, 242, .82); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.42; text-shadow: 0 0 14px var(--black), 0 0 5px var(--black), 0 0 2px var(--black); }
html[lang='ar'] .step-body { line-height: 1.8; }
.step-out { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--dim); text-shadow: 0 0 10px var(--black), 0 0 3px var(--black); }
.step-out b { font-weight: 500; color: var(--ink); }
.track-progress { position: absolute; inset-inline-start: var(--gutter); direction: ltr; bottom: max(22px, env(safe-area-inset-bottom, 0px)); color: var(--dim); font-family: 'Geist Mono', monospace; }

/* Tracking */
.tracking { position: relative; padding-block: var(--sect); background: var(--black); }
.tracking-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: end; }
.tracking-copy { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; color: var(--dim); }
.chain li { display: flex; align-items: center; }
.chain li:not(:last-child)::after { content: ''; display: block; width: clamp(20px, 3.2vw, 54px); height: 1px; margin-inline: 10px; background: var(--hair); }
.tracking-demo { display: grid; gap: 12px; min-width: 0; }
.chat { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--hair); border-radius: 18px; }
.chat-head { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.bub { max-width: 86%; padding: .62em .95em; border-radius: 15px; font-size: 15.5px; line-height: 1.4; }
html[lang='ar'] .bub { line-height: 1.75; }
.bub-in { justify-self: start; background: var(--white); color: var(--black); border-end-start-radius: 4px; }
.bub-out { justify-self: end; border: 1px solid var(--hair); border-end-end-radius: 4px; }
.bub mark { background: var(--black); color: var(--white); padding: .05em .36em; border-radius: 4px; font-family: 'Geist Mono', monospace; font-size: .9em; }
.ledger { position: relative; padding: 14px 14px 8px; border: 1px solid var(--hair); border-radius: 18px; min-width: 0; }
.ledger-tag { margin-bottom: 8px; color: var(--dim); }
.ledger-scroll { overflow-x: auto; }
.ledger table { width: 100%; min-width: 300px; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { padding: .6em .5em; text-align: start; border-top: 1px solid var(--faint); white-space: nowrap; font-weight: 400; }
.ledger th { color: var(--dim); border-top: 0; font-size: 12.5px; }
.ledger td { font-family: 'Geist Mono', monospace; font-variant-numeric: tabular-nums; }
.ledger tr.is-best td { background: var(--white); color: var(--black); }

/* Lab */
.lab { position: relative; padding-block: var(--sect) calc(var(--sect) + 90px); background: var(--black); }
.sim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(16px, 2.6vw, 40px); margin-bottom: 14px; color: var(--dim); }
.sim-stat { display: inline-flex; align-items: baseline; gap: .5em; }
.sim-stat b { color: var(--ink); font-weight: 500; font-family: 'Geist Mono', monospace; font-size: clamp(18px, 1.8vw, 26px); }
.sim-day { display: inline-flex; align-items: baseline; gap: .15em; }
.sim-run { min-width: 148px; }
.sim-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tile {
  position: relative;
  min-height: clamp(128px, 15vw, 210px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  transition: opacity .6s;
}
.tile-fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleY(.125);
  transform-origin: 50% 100%;
  transition: transform .42s var(--ease);
  will-change: transform;
}
.tile-name, .tile-foot { position: relative; color: #fff; mix-blend-mode: difference; }
.tile-name { font-family: var(--font-d); font-weight: 600; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.15; letter-spacing: -.01em; }
html[lang='ar'] .tile-name { letter-spacing: 0; line-height: 1.5; }
.tile-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.tile-foot b { font-family: 'Geist Mono', monospace; font-weight: 500; font-size: clamp(18px, 1.8vw, 26px); }
.tile.is-cut { opacity: .38; }
.tile.is-cut .tile-name { text-decoration: line-through; }
.sim-spark { width: 100%; height: clamp(50px, 7vw, 90px); margin-top: 10px; overflow: visible; }
.sim-spark path { fill: none; stroke: var(--white); stroke-width: 1.5; }
.sim .fine { margin-top: 8px; }

/* Case files */
.cases { position: relative; padding-top: var(--sect); padding-bottom: 150px; }
.cases-head { display: grid; gap: clamp(16px, 2.2vw, 28px); margin-bottom: clamp(24px, 3vw, 48px); }
.sample-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--dim); font-size: 15.5px; line-height: 1.4; }
.viewer { position: relative; height: calc(var(--n, 4) * 90vh + 100vh); }
.viewer-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 64px; overflow: hidden; }
.viewer-grid { width: 100%; padding-inline-end: calc(var(--gutter) + 62px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); gap: clamp(24px, 4vw, 70px); align-items: stretch; }
.viewer-list { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.viewer-item {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: .65em 0;
  border-top: 1px solid var(--hair);
  text-align: start;
  color: var(--dim);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.2;
  transition: color .35s, padding .5s var(--ease);
}
.viewer-item small { font-family: 'Geist Mono', monospace; font-size: 11.5px; font-weight: 400; }
.viewer-item.is-on { color: var(--ink); padding-inline-start: 14px; }
.viewer-files { position: relative; height: min(76svh, 660px); min-width: 0; }
.file {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px) clamp(20px, 3vw, 48px);
  padding: clamp(16px, 2.2vw, 30px);
  border-radius: 20px;
  background: var(--black);
  color: var(--white);
  --dim: rgba(244, 244, 242, .62);
  --hair: rgba(244, 244, 242, .26);
  --faint: rgba(244, 244, 242, .13);
  --ink: var(--white);
  opacity: 0;
  visibility: hidden;
}
.file.is-on { opacity: 1; visibility: visible; }
.file-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.file-title { font-family: var(--font-d); font-weight: 700; font-size: clamp(25px, 2.8vw, 46px); line-height: 1.05; letter-spacing: -.03em; margin-inline-end: auto; }
html[lang='ar'] .file-title { letter-spacing: 0; line-height: 1.4; }
.file-meta { color: var(--dim); }
.file-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 0; }
.file-p { display: grid; gap: 3px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.4; }
html[lang='ar'] .file-p { line-height: 1.75; }
.file-p .mono { color: var(--dim); }
.file-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.num b { display: block; font-family: var(--font-d); font-weight: 700; font-stretch: 112%; font-size: clamp(25px, 3vw, 52px); line-height: 1.05; letter-spacing: -.035em; }
html[lang='ar'] .num b { letter-spacing: 0; font-weight: 800; font-size: clamp(22px, 2.6vw, 44px); line-height: 1.25; }
.num span { display: block; color: var(--dim); font-size: 13px; line-height: 1.3; margin-top: 4px; }
.file-chart { display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
.file-chart .mono { color: var(--dim); }
.file-chart svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.file-chart .ax { display: flex; justify-content: space-between; color: var(--dim); }
.chart-area { fill: rgba(244, 244, 242, .09); stroke: none; }
.chart-line { fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-grid { stroke: rgba(244, 244, 242, .13); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Vitals */
.vitals { position: relative; padding-block: var(--sect) calc(var(--sect) + 90px); background: var(--black); }
.monitor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; }
.monitor-in, .monitor-out { background: var(--black); padding: clamp(18px, 2.6vw, 38px); display: flex; flex-direction: column; gap: clamp(18px, 2.2vw, 30px); min-width: 0; }
.field { display: grid; gap: 8px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15.5px; line-height: 1.3; }
.field-val { display: inline-flex; align-items: baseline; font-family: 'Geist Mono', monospace; font-size: clamp(20px, 2vw, 28px); direction: ltr; }
.field-val input {
  width: 5.2ch;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: end;
  -moz-appearance: textfield;
  appearance: textfield;
}
.field-val input::-webkit-outer-spin-button, .field-val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-val input:focus { outline: 0; border-bottom-color: var(--white); }
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to var(--to, right), var(--white) var(--p, 50%), var(--hair) var(--p, 50%)); }
input[type='range']::-moz-range-track { height: 2px; background: var(--hair); }
input[type='range']::-moz-range-progress { height: 2px; background: var(--white); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 34px; margin-top: -16px; border-radius: 999px; border: 2px solid var(--black); background: var(--white); box-shadow: 0 0 0 1px var(--white); }
input[type='range']::-moz-range-thumb { width: 16px; height: 30px; border-radius: 999px; border: 2px solid var(--black); background: var(--white); }
.monitor-screen { position: relative; height: clamp(120px, 15vw, 190px); border-radius: 12px; background: #0e0e0e; overflow: hidden; }
#vitalsTrace { position: absolute; inset: 0; width: 100%; height: 100%; }
.monitor-status { position: absolute; top: 10px; inset-inline-start: 12px; color: var(--white); }
.monitor-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mnum { display: grid; gap: 4px; align-content: start; }
.mnum span { color: var(--dim); font-size: 13px; line-height: 1.3; }
.mnum b { font-family: 'Geist Mono', monospace; font-weight: 500; font-size: clamp(21px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.monitor-diag { font-family: var(--font-d); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.28; min-height: 3.9em; }
html[lang='ar'] .monitor-diag { line-height: 1.65; }
.monitor-out .btn { align-self: flex-start; white-space: normal; }

/* FAQ */
.faq { position: relative; padding-block: var(--sect); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.faq-grid header { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.faq-about { max-width: 26em; }
.qa { border-top: 1px solid var(--ink); }
.qa:last-child { border-bottom: 1px solid var(--ink); }
.qa-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 1.05em 0;
  text-align: start;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 28px);
  line-height: 1.2;
  letter-spacing: -.015em;
}
html[lang='ar'] .qa-q { letter-spacing: 0; line-height: 1.55; }
.qa-x { position: relative; width: 18px; height: 18px; flex: none; }
.qa-x::before, .qa-x::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .5s var(--ease); }
.qa-x::after { transform: rotate(90deg); }
.qa-q[aria-expanded='true'] .qa-x::after { transform: rotate(0); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a p { padding-bottom: 1.2em; color: var(--dim); max-width: 36em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }
html[lang='ar'] .qa-a p { line-height: 1.85; }
.qa-q[aria-expanded='true'] + .qa-a { grid-template-rows: 1fr; }

/* Contact */
.contact-stage { grid-template-rows: 1fr auto 1fr; }
.contact-title { grid-row: 2; font-size: min(10vw, 19vh); }
html[lang='ar'] .contact-title { font-size: min(10.4vw, 19vh); }
.contact-actions {
  grid-row: 3;
  position: relative;
  z-index: 3;
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: clamp(16px, 3vh, 34px);
  text-align: center;
  color: var(--white);
  --ink: var(--white);
  --ground: var(--black);
  --hair: rgba(244, 244, 242, .4);
  --dim: rgba(244, 244, 242, .72);
}
.contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Footer */
.foot { background: var(--black); color: var(--white); padding: clamp(20px, 3vw, 40px) var(--gutter-r) max(20px, env(safe-area-inset-bottom, 0px)) var(--gutter); overflow: hidden; }
.foot-mark svg { width: 100%; height: auto; overflow: visible; }
.foot-mark { will-change: transform; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; margin-top: clamp(20px, 3vw, 36px); color: var(--dim); padding-inline-end: 72px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--white); }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Wordmark */
.wm { display: block; color: inherit; }
.wm g { fill: none; stroke: currentColor; stroke-width: 22; }
.wm .dotf { fill: currentColor; stroke: none; }

/* Without the animation libraries, the page stays a plain readable document */
html.no-motion .pin { height: auto; }
html.no-motion .stage { position: static; height: auto; min-height: 100svh; }
html.no-motion .gate { display: none; }
html.no-motion #contact { display: block; }
html.no-motion #contact .gate-stage { background: var(--black); padding-block: 120px; }
html.no-motion #contact .gate-outer, html.no-motion #contact .gate-inner { display: none; }
html.no-motion .panel { position: static; }
html.no-motion .viewer { height: auto; }
html.no-motion .viewer-stage { position: static; height: auto; display: block; }
html.no-motion .viewer-list { display: none; }
html.no-motion .viewer-grid { display: block; }
html.no-motion .viewer-files { height: auto; display: grid; gap: 12px; }
html.no-motion .file { position: static; opacity: 1; visibility: visible; }
html.no-motion .track { width: auto; }
html.no-motion .steps { flex-direction: column; padding-inline: var(--gutter); }
html.no-motion .mw { opacity: 1; }
html.no-motion .track-line, html.no-motion .track-progress { display: none; }
html.no-motion .protocol-stage { overflow: visible; }

/* Short laptop screens */
@media (min-width: 961px) and (max-height: 740px) {
  .kicker { display: none; }
  .hero-top { top: 76px; gap: 12px; }
  .hero-lead { font-size: 16px; max-width: 30em; }
  .btn { min-height: 46px; padding: .7em 1.3em; }
}

/* Tablet and phone */
@media (max-width: 960px) {
  .hero-top { width: calc(100% - 2 * var(--gutter)); gap: 12px; }
  .hero-title { font-size: 15.4vw; line-height: 1; letter-spacing: -.05em; margin-bottom: 4px; }
  html[lang='ar'] .hero-title { font-size: 15.4vw; line-height: 1.26; }
  .ln { white-space: normal; }
  .ln-b { flex-wrap: wrap; gap: 0; }
  .trace { flex: 1 0 100%; height: 44px; margin-top: 6px; }
  .hero-platforms { display: none; }
  .hero-foot { padding-inline-end: 104px; }
  .dock { grid-auto-flow: column; }
  .dock-btn { width: 44px; height: 44px; }
  .dock-btn svg { width: 21px; height: 21px; }
  .ledger table { font-size: 12.5px; }
  .ledger th, .ledger td { padding: .55em .35em; }
  .ledger th { font-size: 11.5px; white-space: normal; }
  .manifesto-text { font-size: min(8.4vw, 5.7vh); line-height: 1.14; }
  html[lang='ar'] .manifesto-text { font-size: min(7.6vw, 4.9vh); line-height: 1.55; }
  .panel-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .panel-title { font-size: clamp(38px, 12.4vw, 92px); line-height: 1.02; }
  html[lang='ar'] .panel-title { font-size: clamp(32px, 9.6vw, 76px); }
  .panel-text { justify-content: flex-start; }
  .panel-viz { min-height: 300px; margin-inline-end: 0; }
  .xray { justify-content: center; }
  .xray-hint { display: none; }
  .panel-items { display: none; }
  .gate-text { font-size: clamp(38px, 13vw, 90px); line-height: 1.04; }
  html[lang='ar'] .gate-text { font-size: clamp(34px, 11vw, 80px); line-height: 1.34; }
  .contact-title { font-size: clamp(44px, 14.4vw, 96px); }
  html[lang='ar'] .contact-title { font-size: clamp(44px, 14vw, 96px); }
  .sec-head-row { grid-template-columns: minmax(0, 1fr); }
  .rx-card, .tracking-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .rx-why { min-height: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 112px; }
  .viewer { height: auto; }
  .viewer-stage { position: static; height: auto; display: block; padding-top: 0; overflow: visible; }
  .viewer-list { display: none; }
  .viewer-grid { display: block; padding-inline-end: var(--gutter); }
  .viewer-files { height: auto; display: grid; gap: 12px; }
  .file { position: static; opacity: 1; visibility: visible; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .file-chart svg { height: 130px; flex: none; }
  .monitor { grid-template-columns: minmax(0, 1fr); }
  .monitor-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { font-size: 15px; }
  .foot-row { padding-inline-end: 0; padding-bottom: 58px; }
}

@media (max-width: 960px) and (max-height: 700px) {
  .hero-lead { font-size: 15px; }
  .hero-top { top: 72px; gap: 8px; }
  .kicker { display: none; }
  .btn { min-height: 44px; padding: .6em 1.2em; }
}

@media (max-width: 400px) {
  .dock-btn { width: 44px; height: 44px; }
  .dock-btn svg { width: 21px; height: 21px; }
  .budget-row { grid-template-columns: minmax(0, 7.4em) minmax(0, 1fr) 3em; gap: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .rx-media::after { animation: none; }
  .btn::before, .budget-bar i, .tile-fill, .cal-c i { transition: none; }
}
