/* Leperx v2 stylesheet. Shared by every page.

   Colours come from the logo mark (favicon.svg): the obsidian plate #06080c, the ring gradient
   teal #36E0D0 > blue #4E9FD6 > violet #7A6CF0, and the pale core #eaf4ff. Blue is the working
   colour. The full ring gradient (--iris) is an accent for hairlines and highlights, never a big fill.

   Two looks share this file. "alive" is the default: moving light, glass, the lens. "classic" is the
   flat version, shown with ?theme=classic. Every alive rule is written [data-theme="alive"] and sits
   right after the component it changes.

   Order: tokens, base, type, buttons, navigation, page sections in the order they appear,
   components, responsive rules (wide to narrow), print, reduced motion. */


/* 1. TOKENS ============================================================ */

:root {
  --base: #06080c;
  --black: #020305;
  --panel: #0c1016;
  --ink: #eef3f9;
  --core: #eaf4ff;
  --muted: #a3afbf;
  --paper: #f2f5f9;
  --paper-ink: #080b10;
  --paper-muted: #4a5564;
  --teal: #36E0D0;
  --blue: #4E9FD6;
  --violet: #7A6CF0;
  --blue-ink: #1b6297;
  --iris: linear-gradient(90deg, var(--teal), var(--blue) 50%, var(--violet));
  --line: rgba(140, 170, 210, 0.18);
  --line-paper: rgba(8, 11, 16, 0.14);
  --display: "Saira Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* Self-hosted fonts, subset to Latin (assets/fonts/README.md). The two above-the-fold faces are
   preloaded in the page head. swap = text shows at once in the fallback, then switches. */
@font-face { font-family: "Saira Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/saira-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/saira-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/saira-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/general-sans-500.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/general-sans-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-style: normal; font-display: swap; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); }


/* 2. BASE ============================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: var(--blue); color: #02101a; }
/* the hidden attribute must win over any display rule, images included */
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #000; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* page to page: a short fade where the browser supports view transitions, nothing where it does not */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* alive: a slow aurora in the ring colours fixed behind every dark section, and a fine grain
   on top so the dark never reads as a flat fill */
[data-theme="alive"] body::before { content: ""; position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 18% 22%, rgba(54, 224, 208, .11), transparent 62%),
    radial-gradient(44vmax 44vmax at 82% 30%, rgba(122, 108, 240, .14), transparent 62%),
    radial-gradient(40vmax 40vmax at 55% 88%, rgba(78, 159, 214, .13), transparent 62%);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } 100% { transform: translate3d(4%, 3%, 0) rotate(14deg) scale(1.12); } }
[data-theme="alive"] body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* scroll progress, in the ring gradient */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; }

/* reveal on scroll. app.js marks the targets with data-reveal and adds .js, so nothing is hidden
   when the script does not run */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-theme="alive"].js [data-reveal] { filter: blur(10px); transform: translateY(30px) scale(.985); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
[data-theme="alive"].js [data-reveal].is-in { filter: none; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.14); opacity: .75; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); } }


/* 3. TYPE ============================================================== */

.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: -.005em; font-size: clamp(2.3rem, 5.4vw, 5rem); text-wrap: balance; }
.display--md { font-size: clamp(1.85rem, 3.6vw, 3.2rem); line-height: .98; max-width: 21ch; }
.display--sm { font-size: clamp(1.55rem, 2.5vw, 2.2rem); line-height: 1; max-width: 20ch; }
.display .line { display: block; }
.js h1.display .line { opacity: 0; transform: translateY(.5em); animation: line-in 1s var(--ease) forwards; }
.js h1.display .line:nth-child(2) { animation-delay: .12s; }
.js h1.display .line:nth-child(3) { animation-delay: .24s; }
@keyframes line-in { to { opacity: 1; transform: none; } }

.accent { color: var(--blue); }
/* alive: headline accents on dark carry the ring gradient, slowly moving */
[data-theme="alive"] .sec:not(.sec--light) .accent, [data-theme="alive"] .hero .accent, [data-theme="alive"] .phero .accent {
  background: linear-gradient(100deg, var(--teal), var(--blue) 35%, var(--violet) 65%, var(--blue) 85%, var(--teal)); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--iris); flex: none; }
.eyebrow--center { justify-content: center; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.5; color: var(--muted); max-width: 46ch; margin-top: 1.6rem; }
.note { margin-top: 2.4rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--muted); max-width: 64ch; }
.note--ink { color: var(--paper-muted); }
/* the doubt a section answers, in the owner's words */
.think { font-size: clamp(.98rem, 1.2vw, 1.12rem); font-style: italic; color: var(--muted); margin-bottom: 1.2rem; padding-left: 1rem; border-left: 2px solid; border-image: linear-gradient(180deg, var(--teal), var(--violet)) 1; }
.pull { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-left: clamp(1.2rem, 3vw, 2.4rem); border-left: 3px solid; border-image: linear-gradient(180deg, var(--teal), var(--violet)) 1; max-width: 60rem; }
.pull p { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.15rem, 1.9vw, 1.65rem); line-height: 1.12; }
.pull footer { margin-top: 1.2rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
/* small print under a demo or an illustration */
.trade__small { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--muted); opacity: .7; }


/* 4. BUTTONS AND LINKS ================================================= */

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.8rem; background: var(--blue); color: #03101a; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 0; overflow: hidden; isolation: isolate; transition: color .3s, transform .3s var(--ease), box-shadow .3s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--core); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -14px rgba(78, 159, 214, .7); }
.btn:hover::before { transform: none; }
.btn--sm { min-height: 2.75rem; padding: 0 1.15rem; font-size: .9rem; }
.btn--ink { background: var(--paper-ink); color: #fff; }
.btn--ink::before { background: var(--blue-ink); }
/* alive: the main button glows, and a sheen passes over it every few seconds */
[data-theme="alive"] .btn:not(.btn--ink) { background: linear-gradient(100deg, #5fb0e4, var(--blue) 50%, #6f8fe8); box-shadow: 0 0 0 1px rgba(234,244,255,.18) inset, 0 12px 36px -14px rgba(78, 159, 214, .8); }
/* the sheen moves by transform, not by left: transform runs on the GPU, left would re-lay-out the
   page every frame. -150% and 325% of its own 40% width = -60% and 130% of the button. */
[data-theme="alive"] .btn:not(.btn--ink)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-150%) skewX(-20deg); animation: sheen 5.5s var(--ease) infinite; }
@keyframes sheen { 0%, 62% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(325%) skewX(-20deg); } }
/* outline button on dark; the !important beats the alive gradient above */
.btn--ghost { background: transparent !important; color: var(--ink); box-shadow: 0 0 0 1px rgba(140, 170, 210, .45) inset !important; }
.btn--ghost::after { display: none; }
.btn--ghost:hover { color: #03101a; }

.link { position: relative; display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: inherit; }
.link::after { content: "\2192"; transition: transform .3s var(--ease); }
.link::before { content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 1px; background: var(--iris); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.link:hover::after { transform: translateX(6px); }
.link:hover::before { transform: scaleX(.35); }


/* 5. NAVIGATION AND FOOTER ============================================= */

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 2rem; padding: .9rem var(--pad); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck, .nav.is-open { background: rgba(6, 8, 12, .9); backdrop-filter: blur(12px); border-color: var(--line); }
[data-theme="alive"] .nav.is-stuck, [data-theme="alive"] .nav.is-open { background: rgba(6, 8, 12, .62); backdrop-filter: blur(18px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; min-height: 2.75rem; }
.brand__mark { width: 1.7rem; height: 1.7rem; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__word { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: .34em; color: #fff; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { position: relative; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: .9rem 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current] { color: #fff; }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: none; }
.nav__toggle { display: none; width: 2.75rem; height: 2.75rem; position: relative; }
.nav__toggle i { position: absolute; left: .7rem; right: .7rem; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle i:first-child { top: 1.05rem; }
.nav__toggle i:last-child { top: 1.6rem; }
.nav.is-open .nav__toggle i:first-child { top: 1.32rem; transform: rotate(45deg); }
.nav.is-open .nav__toggle i:last-child { top: 1.32rem; transform: rotate(-45deg); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 2rem; padding: 2rem var(--pad); border-top: 1px solid var(--line); background: var(--black); font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot .brand__word { font-size: 1.05rem; }
.foot > span:nth-child(2) { margin-right: auto; }
.foot a { text-decoration: none; padding: .9rem 0; min-height: 2.75rem; display: inline-flex; align-items: center; transition: color .2s; }
.foot a:hover { color: #fff; }


/* 6. SECTIONS, IN THE ORDER THEY APPEAR ================================ */

/* section shell */
.sec { padding: clamp(3.4rem, 8vw, 6.8rem) 0; background: var(--base); position: relative; }
.sec--black { background: var(--black); }
.sec--light { background: var(--paper); color: var(--paper-ink); }
.sec--light .eyebrow { color: var(--blue-ink); }
.sec--light .lead { color: var(--paper-muted); }
.sec--light .accent { color: var(--blue-ink); }
.wrap { padding: 0 var(--pad); max-width: 92rem; margin: 0 auto; }
.wrap > .link { margin-top: 2.4rem; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); max-width: 66rem; font-size: 1.02rem; }
.sec--light .cols { color: #232b36; }
/* alive: dark sections are see-through so the aurora shows, with a lit hairline on top. Paper
   sections carry a dot grid and a ring in the corner, so light and dark read as one site. */
[data-theme="alive"] .sec, [data-theme="alive"] .authority, [data-theme="alive"] .phero, [data-theme="alive"] .hero { background: transparent; }
[data-theme="alive"] .sec--black { background: rgba(2, 3, 5, .55); }
[data-theme="alive"] .sec--light { background: var(--paper); overflow: clip; background-image: radial-gradient(rgba(8, 11, 16, .075) 1px, transparent 1.2px); background-size: 22px 22px; }
[data-theme="alive"] .sec:not(.sec--light)::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(78,159,214,.5) 30%, rgba(122,108,240,.5) 70%, transparent); }
[data-theme="alive"] .sec--light::before { content: ""; position: absolute; width: 46rem; aspect-ratio: 1; right: -19rem; top: -24rem; border-radius: 50%; border: 1px solid transparent; pointer-events: none;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, conic-gradient(from 150deg, rgba(54,224,208,.9), rgba(78,159,214,.9), rgba(122,108,240,.9), transparent 62%) border-box; opacity: .55; }
[data-theme="alive"] .sec--light > .wrap { position: relative; }

/* home hero: the claim beside the raised-hand stage photo */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero__photo { position: absolute; inset: 0 0 0 44%; }
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; }
.hero__photo img { position: absolute; inset: 0; object-fit: cover; object-position: 30% 30%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--base) 0%, rgba(6,8,12,.72) 22%, rgba(6,8,12,0) 58%), linear-gradient(0deg, var(--base) 2%, rgba(6,8,12,0) 34%), linear-gradient(180deg, rgba(6,8,12,.8) 0%, rgba(6,8,12,0) 20%); }
.hero__photo figcaption { position: absolute; right: var(--pad); bottom: 2rem; z-index: 2; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.js .hero__photo img { animation: photo-in 1.8s var(--ease) both; }
@keyframes photo-in { from { opacity: 0; transform: scale(1.06); } }
.hero__copy { position: relative; z-index: 2; padding: 8rem var(--pad) clamp(3rem, 8vh, 6rem); max-width: 60rem; }
.hero h1.display { font-size: clamp(2.4rem, 5vw, 4.7rem); }
.hero__lead { font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.5; color: var(--ink); max-width: 40ch; margin-top: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.2rem; margin-top: 2.4rem; }

/* alive: the hero lens. The photo sits dim, and a lit copy (.hero__lit) shows only inside a circle
   at --lx/--ly. The circle drifts on its own; app.js moves it under the pointer. The photo fades
   out by mask instead of a gradient box, so no box edge shows over the moving background.
   @property lets the drift animate smoothly; without it the lens steps between positions. */
.hero__lit, .hero__aperture { display: none; }
@property --lx { syntax: "<percentage>"; inherits: true; initial-value: 54%; }
@property --ly { syntax: "<percentage>"; inherits: true; initial-value: 32%; }
[data-theme="alive"] .hero__photo::after { background: none; }
[data-theme="alive"] .hero__photo {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%), linear-gradient(0deg, transparent 0, #000 32%), linear-gradient(180deg, transparent 0, #000 16%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 46%), linear-gradient(0deg, transparent 0, #000 32%), linear-gradient(180deg, transparent 0, #000 16%); mask-composite: intersect;
  --lx: 54%; --ly: 32%; animation: lens-drift 14s ease-in-out infinite alternate; }
[data-theme="alive"] .hero__photo.is-held { animation: none; }
@keyframes lens-drift { 0% { --lx: 50%; --ly: 36%; } 50% { --lx: 60%; --ly: 26%; } 100% { --lx: 46%; --ly: 44%; } }
[data-theme="alive"] .hero__photo figcaption { display: none; }
[data-theme="alive"] .hero__photo > picture:first-of-type img { filter: grayscale(.75) brightness(.5) contrast(1.05); }
[data-theme="alive"] .hero__lit { display: block; position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle 19rem at var(--lx) var(--ly), #000 0, #000 52%, transparent 100%);
  mask-image: radial-gradient(circle 19rem at var(--lx) var(--ly), #000 0, #000 52%, transparent 100%); }
[data-theme="alive"] .hero__lit img { animation: none; }
[data-theme="alive"] .hero__aperture { display: block; position: absolute; left: var(--lx); top: var(--ly); width: 38rem; height: 38rem; margin: -19rem 0 0 -19rem; border-radius: 50%; pointer-events: none; z-index: 1;
  background: conic-gradient(from 0deg, var(--teal), var(--blue), var(--violet), var(--teal)) border-box; border: 1px solid transparent;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); opacity: .55; }

/* inner page hero */
.phero { position: relative; padding: clamp(7.5rem, 17vh, 11rem) 0 clamp(3.2rem, 7vw, 5.5rem); overflow: hidden; }
.phero::before { content: ""; position: absolute; width: 70vmin; aspect-ratio: 1; right: -18vmin; top: -22vmin; border-radius: 50%; border: 1px solid transparent; background: linear-gradient(var(--base), var(--base)) padding-box, conic-gradient(from 120deg, var(--teal), var(--blue), var(--violet), transparent 70%) border-box; opacity: .7; animation: spin 80s linear infinite; }
.phero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line); }
.phero .wrap { position: relative; }
.phero .hero__lead { max-width: 56ch; color: var(--muted); }
.phero--short { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* the founder's record: countries ticker, numbers, the stage strip, the people strip */
.authority { background: var(--base); padding-bottom: clamp(3rem, 7vw, 6rem); }
.ticker { display: none; }
[data-theme="alive"] .ticker { display: block; overflow: hidden; border-top: 1px solid var(--line); padding: 1rem 0; }
[data-theme="alive"] .ticker .reel__track { gap: 0; }
.ticker span { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.1rem, 1.7vw, 1.5rem); letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px rgba(163, 175, 191, .55); padding: 0 1.1rem; white-space: nowrap; flex: none; }
.ticker span::after { content: "\25CF"; -webkit-text-stroke: 0; color: var(--blue); font-size: .4em; margin-left: 2.2rem; vertical-align: middle; }
.record { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.record__item { padding: 1.7rem var(--pad) 1.5rem; border-left: 1px solid var(--line); position: relative; }
.record__item:first-child { border-left: 0; }
.record__item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.record__item.is-in::before { transform: none; }
.record__item b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.record__item span { display: block; margin-top: .5rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
[data-theme="alive"] .record__item b, [data-theme="alive"] .proof__grid b { text-shadow: 0 0 40px rgba(78, 159, 214, .35); }
.strip-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 2rem; padding: clamp(2rem, 4vw, 3rem) var(--pad) 1rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.strip-label span:first-child { color: var(--blue); }

/* marquees (stage strip, people strip, ticker). app.js doubles the track and sets --dur and --half-gap */
.reel, .wall__row { overflow: hidden; }
.reel__track { display: flex; gap: .6rem; width: max-content; will-change: transform; }
.reel__item { height: clamp(190px, 24vw, 300px); width: auto; object-fit: cover; filter: saturate(.85); background: var(--panel); flex: none; transition: filter .4s; }
.reel__item:hover { filter: none; }
[data-theme="alive"] .reel__item { border-radius: .5rem; transition: filter .4s, transform .5s var(--ease); }
[data-theme="alive"] .reel__item:hover { transform: scale(1.03); }
.reel:hover .reel__track, .wall__row:hover .wall__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - var(--half-gap, 0px))); } }
.is-running { animation: slide var(--dur, 60s) linear infinite; }
.is-running.rev { animation-direction: reverse; }

/* people strip, and in alive the lens that lights the photos it passes (app.js) */
.wall { display: grid; gap: 5px; }
.wall__track { display: flex; gap: 5px; width: max-content; will-change: transform; }
.wall__track img { width: clamp(46px, 4.6vw, 68px); height: clamp(46px, 4.6vw, 68px); object-fit: cover; flex: none; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .3s, opacity .3s; background: var(--panel); }
.wall__track img:hover { filter: none; opacity: 1; }
[data-theme="alive"] .wall__track img { border-radius: .3rem; }
[data-theme="alive"] .wall { position: relative; }
[data-theme="alive"] .wall.has-lens .wall__track img:hover { filter: grayscale(1) contrast(1.05); opacity: .72; }
[data-theme="alive"] .wall.has-lens .wall__track img.is-lit { filter: none; opacity: 1; }
[data-theme="alive"] .wall.has-lens .wall__track img { transition: filter .45s, opacity .45s; }
[data-theme="alive"] .wall.has-lens .wall__row:hover .wall__track { animation-play-state: running; }
.wall__lens { display: none; }
[data-theme="alive"] .wall.has-lens .wall__lens { display: block; position: absolute; left: 0; top: 0; width: 15rem; height: 15rem; margin: -7.5rem 0 0 -7.5rem; border-radius: 50%; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s; will-change: transform;
  background: conic-gradient(from 0deg, var(--teal), var(--blue), var(--violet), var(--teal)) border-box; border: 1px solid transparent;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
[data-theme="alive"] .wall.is-lensing .wall__lens { opacity: .8; }

/* the name band: Lens x Perspective */
.name__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1.6rem, 6vw, 6rem); }
.name__mark { width: clamp(4.2rem, 10vw, 8.5rem); height: auto; overflow: visible; }
.name__ring { transform-origin: 100px 100px; animation: spin 40s linear infinite; }
.name__dash { transform-origin: 100px 100px; animation: spin 26s linear infinite reverse; }
.name__core { transform-origin: 100px 100px; animation: breathe 6s ease-in-out infinite; }
.name .display--md { max-width: none; font-size: clamp(1.35rem, 2.4vw, 2.2rem); }
#name.sec { padding: clamp(2.4rem, 5vw, 4.4rem) 0; }
#name .lead { font-size: clamp(.95rem, 1.2vw, 1.08rem); }

/* countries, and the same list style for plain lists on paper */
.countries { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 2px solid var(--paper-ink); display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: c; }
.countries li { counter-increment: c; display: flex; align-items: baseline; gap: .9rem; padding: 1.05rem 1rem 1.05rem 0; border-bottom: 1px solid var(--line-paper); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1rem, 1.45vw, 1.32rem); line-height: 1.08; transition: color .25s; }
.countries li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .12em; color: var(--blue-ink); }
.countries li:hover { color: var(--blue-ink); }
.countries .spoke::after { content: "stage"; font-family: var(--mono); font-weight: 500; font-size: .6rem; letter-spacing: .16em; color: var(--blue-ink); border: 1px solid currentColor; padding: .15rem .4rem; align-self: center; }
.countries--plain { grid-template-columns: repeat(2, 1fr); }

/* the equation of scaling online, and the Before/Now switch that drives it */
.eq__formula { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .35em; margin: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); padding: clamp(2rem, 5vw, 3.6rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; font-size: clamp(2rem, 6vw, 5.4rem); }
[data-theme="alive"] .eq__formula { text-shadow: 0 0 60px rgba(78, 159, 214, .22); }
.eq__op { color: var(--muted); font-weight: 600; }
.eq__frac { display: inline-flex; flex-direction: column; align-items: center; }
.eq__top { display: flex; gap: .3em; padding: 0 .1em .12em; position: relative; }
.eq__top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .06em; background: var(--iris); }
.eq__bottom { padding-top: .14em; }
.eq__parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.eq__parts h3 { font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.eq__parts p { color: var(--muted); font-size: 1rem; }
.eq__close { margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.5; max-width: 54ch; color: var(--ink); }
/* the formula answers the switch: Before dims the top line, Now shrinks "your time".
   Uses :has(); without it the formula simply stays still. */
.eq__formula .eq__word, .eq__formula .eq__top::after { transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease); }
.eq__bottom .eq__word { display: inline-block; transform-origin: 50% 0; }
.eq:has(.trade[data-state="before"]) .eq__top .eq__word { opacity: .55; }
.eq:has(.trade[data-state="before"]) .eq__top::after { opacity: .55; }
.eq:has(.trade[data-state="now"]) .eq__bottom .eq__word { transform: scale(.82); opacity: .8; }

.trade { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(78,159,214,.05), transparent); max-width: 62rem; }
[data-theme="alive"] .trade { background: rgba(14, 19, 27, .55); backdrop-filter: blur(10px); border-color: rgba(140,170,210,.22); box-shadow: 0 30px 80px -40px rgba(78,159,214,.5); }
.trade__switch { display: inline-flex; border: 1px solid var(--line); margin-bottom: 1.8rem; }
.trade__switch button { min-height: 2.75rem; padding: 0 1.5rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: background .3s, color .3s; }
.trade__switch button[aria-pressed="true"] { background: var(--blue); color: #03101a; }
.bar { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.bar span { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bar i { display: block; height: .9rem; background: rgba(140,170,210,.1); }
.bar b { display: block; height: 100%; background: var(--iris); transform-origin: 0 50%; transform: scaleX(var(--v, .5)); transition: transform 1s var(--ease); }
.bar--time b { background: var(--muted); }
.trade[data-state="before"] [data-bar="volume"] { --v: .82; }
.trade[data-state="before"] [data-bar="quality"] { --v: .3; }
.trade[data-state="before"] [data-bar="time"] { --v: .9; }
.trade[data-state="now"] [data-bar="volume"] { --v: .92; }
.trade[data-state="now"] [data-bar="quality"] { --v: .88; }
.trade[data-state="now"] [data-bar="time"] { --v: .25; }
.trade__say { margin-top: 1.4rem; font-size: 1.02rem; color: var(--ink); min-height: 3.4em; }

/* method page: transformation versus integration */
.versus { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 2px solid var(--paper-ink); }
.versus__row { display: grid; grid-template-columns: 11rem 1fr 1.25fr; gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line-paper); align-items: baseline; }
.versus__row > :first-child { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
.versus__row > :nth-child(2) { color: var(--paper-muted); text-decoration: line-through; text-decoration-color: rgba(8,11,16,.3); font-size: 1.1rem; }
.versus__row > :nth-child(3) { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.08; }
.versus__head > :nth-child(n) { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; font-weight: 500; color: var(--paper-muted); }
.versus__head > :nth-child(3) { color: var(--blue-ink); }

/* method page: WIRE in full */
.wire { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.wire li { display: grid; grid-template-columns: clamp(3.6rem, 10vw, 8.5rem) minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); padding: clamp(1.8rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); align-items: start; }
.wire__letter { width: max-content; font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 8.5vw, 7.2rem); line-height: .8; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wire h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.3vw, 2.05rem); line-height: 1; }
.wire p { max-width: 56ch; color: var(--muted); margin-top: .9rem; }
.wire .doubt { font-style: italic; color: var(--ink); opacity: .85; }

/* founder */
.founder__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.founder__photo { position: sticky; top: 6rem; overflow: hidden; }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founder__copy p { max-width: 54ch; margin-top: 1.2rem; color: #232b36; }
.founder__copy .lead { color: var(--paper-ink); max-width: 40ch; font-weight: 500; }
.founder__copy .hero__actions { margin-top: 2.4rem; }
/* Lebanon, Turkey, Egypt, Online: four stops on one line */
.path { margin-top: 2.4rem; border-top: 2px solid var(--paper-ink); display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.path li { padding: 1.4rem 1rem 0 0; position: relative; }
.path li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue-ink); }
.path li:last-child::before { background: var(--blue-ink); }
.path b { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1; }
.path span { display: block; margin-top: .5rem; font-size: .92rem; color: var(--paper-muted); line-height: 1.4; }

/* free resource band, hidden until its url is set in app.js */
.magnet { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(3rem, 7vw, 5.5rem) 0; }
[data-theme="alive"] .magnet { background: rgba(12, 16, 22, .6); }
.magnet__grid { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }

/* the final call */
.call { text-align: center; overflow: hidden; }
.call::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(120vw, 90rem); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(78,159,214,.13), transparent 70%); pointer-events: none; }
.call .wrap { position: relative; }
.call .display, .call .lead { margin-left: auto; margin-right: auto; }
.call .lead { margin-bottom: 2.4rem; }
.call .callsteps + .lead { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }
/* alive: a ring turns behind the final call */
[data-theme="alive"] .call .wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(44rem, 118vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; border: 1px solid transparent; z-index: -1;
  background: conic-gradient(from 0deg, var(--teal), var(--blue), var(--violet), transparent 70%, var(--teal)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  animation: aperture 16s linear infinite; opacity: .6; }
@keyframes aperture { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* what happens on the call: three steps on one wire */
.callsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 58rem; margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: left; border-top: 1px solid var(--line); position: relative; }
.callsteps::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease) .2s; }
.callsteps:has(li.is-in)::before { transform: none; }
.callsteps li { padding: 1.3rem 1.4rem 0 0; position: relative; }
.callsteps li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--base); border: 1px solid var(--blue); }
.callsteps li:last-child::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 12px rgba(54, 224, 208, .8); }
.callsteps b { font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .18em; color: var(--blue); }
.callsteps h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.05; margin: .5rem 0 .35rem; }
.callsteps p { color: var(--muted); font-size: .95rem; line-height: 1.45; }


/* 7. COMPONENTS ======================================================== */

/* system cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.8rem, 3.4vw, 3rem); background: var(--paper-ink); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card::before { content: ""; position: absolute; width: 26rem; aspect-ratio: 1; right: -11rem; top: -11rem; border-radius: 50%; border: 1px solid transparent; background: linear-gradient(var(--paper-ink), var(--paper-ink)) padding-box, conic-gradient(from 200deg, var(--teal), var(--blue), var(--violet), transparent 75%) border-box; z-index: -1; transition: transform 1.2s var(--ease); }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(8, 11, 16, .55); }
.card:hover::before { transform: rotate(120deg) scale(1.08); }
.card:hover::after { transform: none; }
.card__n { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: .9; margin-top: 1.4rem; }
.cards--3 .card h3 { font-size: clamp(2.1rem, 3vw, 2.9rem); }
.cards--3 .card::before { width: 18rem; right: -9.5rem; top: -9.5rem; }
.card__line { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.22rem; color: var(--blue); line-height: 1; }
.card p:not(.card__line) { color: var(--muted); max-width: 40ch; }
.card__go { margin-top: auto; padding-top: 1.6rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; gap: .7rem; }
.card__go::after { content: "\2192"; transition: transform .3s var(--ease); }
.card:hover .card__go::after { transform: translateX(8px); }
/* alive: cards tilt toward the pointer and carry a glow under it (app.js sets --rx, --ry, --mx, --my) */
[data-theme="alive"] .card { background: linear-gradient(160deg, #0d1219, #06080c 70%); transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .35s var(--ease), box-shadow .5s var(--ease); }
[data-theme="alive"] .card:hover { --lift: -6px; box-shadow: 0 40px 80px -36px rgba(27, 98, 151, .8); }
[data-theme="alive"] .card > * { position: relative; }
[data-theme="alive"] .card .card__glow { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(22rem 22rem at var(--mx, 50%) var(--my, 50%), rgba(78, 159, 214, .28), transparent 65%); }
[data-theme="alive"] .card:hover .card__glow { opacity: 1; }

/* numbered rows: a number, a heading, a line of text */
.rows { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 2px solid var(--paper-ink); }
.rows li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: baseline; padding: 1.7rem 0; border-bottom: 1px solid var(--line-paper); }
.rows h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.1vw, 1.85rem); line-height: 1; }
.rows p { color: var(--paper-muted); max-width: 46ch; }
.sec--light .rows__n { color: var(--blue-ink); }
.rows--dark { border-top: 1px solid var(--line); }
.rows--dark li { border-color: var(--line); }
.rows--dark p { color: var(--muted); }

/* steps in columns: WIRE on the home page, the first seven days on MAMS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.steps li { padding: 2rem 1.8rem 0; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps__n, .rows__n { font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; color: var(--blue); text-transform: uppercase; }
.steps h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; margin: 1.1rem 0 .9rem; }
.steps p { color: var(--muted); font-size: 1rem; }
.steps__letter { display: block; width: max-content; font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 6.6vw, 6rem); line-height: .85; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps--wire h3 { margin-top: .6rem; }
.steps--ink { border-color: var(--paper-ink); border-top-width: 2px; }
.steps--ink li { border-color: var(--line-paper); }
.steps--ink p { color: var(--paper-muted); }
.steps--ink .steps__n { color: var(--blue-ink); }
/* alive: the WIRE letters switch on one after another along a wire. The wire line needs :has();
   without it the line stays hidden and the letters still switch on. Same treatment on the
   method page's long WIRE list. */
[data-theme="alive"] .steps--wire { position: relative; }
[data-theme="alive"] .steps--wire::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.9s var(--ease) .2s; box-shadow: 0 0 18px rgba(78, 159, 214, .8); }
[data-theme="alive"] .steps--wire:has(li.is-in)::before { transform: none; }
[data-theme="alive"] .steps--wire .steps__letter, [data-theme="alive"] .wire .wire__letter { filter: grayscale(1) brightness(.38); transition: filter .5s; }
[data-theme="alive"] .steps--wire li.is-in .steps__letter, [data-theme="alive"] .wire li.is-in .wire__letter { filter: drop-shadow(0 0 26px rgba(78, 159, 214, .55)); animation: power-on .7s steps(1, end) both; }
[data-theme="alive"] .steps--wire li:nth-child(1) .steps__letter { transition-delay: .35s; animation-delay: .35s; }
[data-theme="alive"] .steps--wire li:nth-child(2) .steps__letter { transition-delay: .8s; animation-delay: .8s; }
[data-theme="alive"] .steps--wire li:nth-child(3) .steps__letter { transition-delay: 1.25s; animation-delay: 1.25s; }
[data-theme="alive"] .steps--wire li:nth-child(4) .steps__letter { transition-delay: 1.7s; animation-delay: 1.7s; }
[data-theme="alive"] .wire li.is-in .wire__letter { transition-delay: .3s; animation-delay: .3s; }
@keyframes power-on { 0% { opacity: .35; } 18% { opacity: 1; } 30% { opacity: .4; } 46% { opacity: 1; } 58% { opacity: .65; } 70%, 100% { opacity: 1; } }

/* objections as a list of links */
.asks { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.asks a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.15rem, 2.1vw, 1.8rem); line-height: 1.08; color: var(--muted); transition: color .3s; }
.asks a span { transition: transform .45s var(--ease); }
.asks a::after { content: "\2192"; font-family: var(--mono); font-size: 1rem; color: var(--blue); transition: transform .35s var(--ease); flex: none; }
.asks a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.asks a:hover { color: #fff; }
.asks a:hover span { transform: translateX(1rem); }
.asks a:hover::before { transform: none; }
.asks a:hover::after { transform: translateX(-8px); }
.asks--ink { border-color: var(--paper-ink); }
.asks--ink a { border-color: var(--line-paper); color: var(--paper-muted); }
.asks--ink a:hover { color: var(--paper-ink); }
.asks--ink a::after { color: var(--blue-ink); }

/* answers page: doubts as tabs, each answer linkable by its hash */
.answers__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.tabs { display: grid; border-top: 2px solid var(--paper-ink); position: sticky; top: 6rem; }
.tabs button { position: relative; text-align: left; padding: 1.15rem 2rem 1.15rem 0; min-height: 2.75rem; border-bottom: 1px solid var(--line-paper); font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.12; color: var(--paper-muted); transition: color .25s, padding-left .4s var(--ease); }
.tabs button::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.tabs button:hover { color: var(--paper-ink); }
.tabs button[aria-selected="true"] { color: var(--paper-ink); padding-left: 1rem; }
.tabs button[aria-selected="true"]::after { transform: none; }
.panel { animation: panel-in .6s var(--ease) both; }
.panel__n { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.2rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--blue-ink); margin-bottom: 1.2rem; }
.panel p:not(.panel__n) { max-width: 52ch; margin-top: 1.1rem; color: #232b36; font-size: 1.02rem; }
.panel .btn { margin-top: 2.2rem; }

/* proof numbers */
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.proof__grid div { padding: 2rem 1.8rem 0; border-left: 1px solid var(--line); }
.proof__grid div:first-child { border-left: 0; padding-left: 0; }
.proof__grid b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1; color: var(--blue); }
.proof__grid span { display: block; margin-top: .6rem; color: var(--muted); }
.sec--light .proof__grid { border-top: 2px solid var(--paper-ink); }
.sec--light .proof__grid div { border-color: var(--line-paper); }
.sec--light .proof__grid b { color: var(--blue-ink); }
.sec--light .proof__grid span { color: var(--paper-muted); }

/* IMT demo: a working phone screen beside the contact sheet it updates (app.js) */
.demo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.phone { position: relative; width: min(21.5rem, 100%); aspect-ratio: 9 / 18.6; padding: .7rem; border-radius: 2.8rem; background: linear-gradient(160deg, #1b222c, #07090d 60%); box-shadow: 0 0 0 1px rgba(140,170,210,.28), 0 50px 90px -30px rgba(78,159,214,.35), 0 30px 60px -20px #000; }
.phone__notch { position: absolute; top: 1.15rem; left: 50%; width: 5.4rem; height: 1.35rem; margin-left: -2.7rem; border-radius: 1rem; background: #000; z-index: 2; }
.phone__screen { height: 100%; border-radius: 2.2rem; background: #0b0f14; padding: 3.1rem .85rem 1rem; overflow: hidden; display: flex; flex-direction: column; font-size: .92rem; }
.q__head { display: flex; align-items: center; justify-content: space-between; }
.q__head strong { font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; }
.q__chans { display: flex; gap: .2rem; }
.q__chan { font-family: var(--mono); font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(54,224,208,.4); padding: .15rem .35rem; border-radius: 2rem; }
.q__count { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .8rem 0 .9rem; }
.q__count > div { background: #121820; padding: .6rem .7rem; border-radius: .7rem; }
.q__count b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.q__count span { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.q__count .q__target { grid-column: 1 / -1; }
.q__target i { display: block; height: .4rem; border-radius: 1rem; background: rgba(140,170,210,.14); overflow: hidden; margin-bottom: .4rem; }
.q__target u { display: block; height: 100%; width: 100%; background: var(--iris); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.q__list { display: grid; gap: .5rem; align-content: start; flex: 1; }
.q__card { background: #121820; border: 1px solid rgba(140,170,210,.14); border-radius: .8rem; padding: .7rem; transition: opacity .45s var(--ease), transform .45s var(--ease), max-height .5s var(--ease), padding .5s var(--ease), margin .5s var(--ease), border-color .3s; max-height: 12rem; overflow: hidden; }
.q__card.is-open { border-color: rgba(78,159,214,.6); }
.q__card.is-gone { opacity: 0; transform: translateX(60%); max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -.5rem; border-width: 0; }
.q__card h3 { font-weight: 600; font-size: .98rem; }
.q__card h3 small { font-family: var(--mono); font-weight: 400; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-left: .35rem; }
.q__card p { color: var(--muted); font-size: .78rem; line-height: 1.35; margin: .1rem 0 .55rem; }
.q__acts { display: flex; gap: .35rem; flex-wrap: wrap; }
.q__acts button { min-height: 2.75rem; padding: 0 .5rem; border-radius: .55rem; font-weight: 600; font-size: .74rem; background: #1b2430; color: var(--ink); transition: background .2s, transform .15s; flex: 1; white-space: nowrap; }
.q__acts button:active { transform: scale(.96); }
.q__acts .q__open { flex-basis: 100%; background: var(--blue); color: #03101a; font-size: .82rem; }
.q__acts button:disabled { opacity: .35; cursor: default; }
.q__acts .q__open.is-done { background: #1b2430; color: var(--teal); }
.q__empty { margin: auto 0; text-align: center; color: var(--muted); }
.q__empty button { margin-top: .8rem; min-height: 2.75rem; padding: 0 1rem; border-radius: .55rem; background: var(--blue); color: #03101a; font-weight: 600; }
.demo__steps { display: grid; gap: 1.1rem; max-width: 34rem; }
.demo__steps li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; font-size: 1.02rem; }
.demo__steps b { font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .18em; color: var(--blue); }
.sheet { margin: 2.2rem 0 .9rem; border: 1px solid var(--line); background: #0b0f14; max-width: 34rem; font-size: .88rem; }
.sheet__bar { display: flex; justify-content: space-between; padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sheet__bar [data-sync] { color: var(--teal); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .5rem .8rem; }
.sheet td { padding: .55rem .8rem; border-top: 1px solid rgba(140,170,210,.1); transition: background 1.2s, color .4s; }
.sheet tr.is-new td { background: rgba(54,224,208,.14); }
.sheet tr.is-set td:nth-child(2) { color: var(--teal); font-weight: 600; }

/* MAMS snapshots: one big screen in a window frame, three small ones under it */
.shots { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.shots__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.shots__frame { position: relative; border-radius: .9rem; overflow: hidden; background: #0b0f14; box-shadow: 0 0 0 1px rgba(140,170,210,.22), 0 60px 120px -50px rgba(78,159,214,.55), 0 40px 80px -40px #000; }
.shots__frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from 200deg, var(--teal), var(--blue), var(--violet), transparent 55%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2; }
.shots__row .shots__frame { border-radius: .6rem; box-shadow: 0 0 0 1px rgba(140,170,210,.22), 0 30px 60px -34px rgba(78,159,214,.55); }
.shots__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.shots__bar i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(140,170,210,.3); }
.shots__bar span { margin-left: .8rem; }
.shot img { width: 100%; height: auto; }
.shot .shots__frame { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.shots__row .shot:hover .shots__frame { transform: translateY(-6px) scale(1.02); }
.shot figcaption { margin-top: .9rem; color: var(--muted); font-size: .98rem; line-height: 1.45; max-width: 62ch; }
.shot--big figcaption { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink); }
.shot figcaption b { display: block; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: .35rem; }

/* sticky call dock: shows after the first screen, steps aside where it would cover something (app.js) */
/* the dock is gone from every page (2026-12-02, Ahmad: it looks cheaper); this hides it on pages still built with it */
.dock { display: none !important; }
.dock { position: fixed; left: 50%; bottom: 1.1rem; z-index: 45; display: flex; align-items: center; gap: 1.2rem; padding: .5rem .5rem .5rem 1.3rem; background: rgba(10, 14, 20, .82); backdrop-filter: blur(16px); border-radius: 0; font-size: .9rem; color: var(--muted); white-space: nowrap; transform: translate(-50%, 160%); transition: transform .7s var(--ease); box-shadow: 0 20px 50px -18px #000; }
.dock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--iris); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7; }
.dock b { color: #fff; font-weight: 600; }
.dock .btn { border-radius: 0; }
.dock.is-on { transform: translate(-50%, 0); }

/* wire rail: a line down the left edge on wide screens, filling as you read, one node per section (app.js) */
.rail { display: none; }

/* pointer lens: a soft light in the ring colours that follows a mouse (app.js). Leperx = lens x perspective. */
.lens { display: none; }
[data-theme="alive"] .lens { display: block; position: fixed; left: 0; top: 0; width: 46rem; height: 46rem; margin: -23rem 0 0 -23rem; z-index: -1; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .8s;
  background: radial-gradient(closest-side, rgba(78, 159, 214, .20), rgba(122, 108, 240, .08) 45%, transparent 70%); will-change: transform; }
[data-theme="alive"] .lens.is-on { opacity: 1; }

/* one-pager: the sheet. Sized in em from --u so the same markup scales to the screen and to A4. */
.share-note { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.onepage { padding: 0 var(--pad) clamp(3.5rem, 8vw, 7rem); }
.onep { --u: clamp(.78rem, 1.05vw, .95rem); font-size: var(--u); max-width: 64rem; margin: 0 auto; padding: 2.6em; color: var(--ink); background: linear-gradient(165deg, #0d1219, #06080c 55%); position: relative; overflow: hidden; isolation: isolate; border-radius: .6rem; box-shadow: 0 0 0 1px rgba(140,170,210,.22), 0 60px 120px -60px rgba(78,159,214,.6); line-height: 1.45; }
.onep::before { content: ""; position: absolute; width: 38em; aspect-ratio: 1; right: -21em; top: -27em; border-radius: 50%; border: 1px solid transparent; z-index: -1; background: linear-gradient(#0a0e14, #0a0e14) padding-box, conic-gradient(from 160deg, var(--teal), var(--blue), var(--violet), transparent 65%) border-box; }
.onep a { color: inherit; text-decoration: none; }
.onep em { font-style: normal; color: var(--blue); }
.onep h2, .onep h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .98; }
.onep__head { display: flex; align-items: center; gap: 1.2em; padding-bottom: 1.2em; border-bottom: 1px solid var(--line); }
.onep__brand { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .6em; font-family: var(--display); font-weight: 700; font-size: 1.5em; letter-spacing: .32em; }
.onep__brand svg { width: 1.5em; height: 1.5em; }
.onep__tag, .onep__site, .onep__label, .onep__n { font-family: var(--mono); font-size: .72em; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.onep__site { margin-left: auto; color: var(--blue) !important; min-height: 2.75rem; display: inline-flex; align-items: center; }
.onep__hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.4em; align-items: end; padding: 1.8em 0; }
.onep__hero h2 { font-size: 3.5em; }
.onep__hero p { margin-top: .9em; color: var(--muted); max-width: 46ch; }
.onep__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.onep__nums li { background: #090c11; padding: .8em 1em; }
.onep__nums b { display: block; font-family: var(--display); font-weight: 800; font-size: 2.4em; line-height: 1; }
.onep__nums span { font-family: var(--mono); font-size: .66em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.onep__two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; }
.onep__box { border: 1px solid var(--line); padding: 1.4em; background: rgba(12, 16, 22, .7); }
.onep__label { color: var(--blue); margin-bottom: .8em; }
.onep__label--row { margin: 1.6em 0 .8em; }
.onep__box h3 { font-size: 1.75em; }
.onep__wire { margin-top: 1em; display: grid; gap: .45em; }
.onep__wire li { display: grid; grid-template-columns: 2em 1fr; align-items: center; color: var(--muted); }
.onep__wire b { font-family: var(--display); font-weight: 800; font-size: 1.9em; line-height: 1; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.onep__wire strong { color: var(--ink); font-weight: 600; }
.onep__eq { display: flex; align-items: center; gap: .5em; margin: .8em 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.9em; line-height: 1; }
.onep__eq i { font-style: normal; color: var(--muted); font-weight: 600; }
.onep__frac { display: inline-flex; flex-direction: column; align-items: center; }
.onep__frac span:first-child { padding: 0 .2em .15em; border-bottom: 2px solid var(--blue); }
.onep__frac span:last-child { padding-top: .15em; }
.onep__small { color: var(--muted); font-size: .94em; }
.onep__three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em; }
.onep__sys { display: flex; flex-direction: column; border: 1px solid var(--line); padding: 1.4em; background: rgba(12, 16, 22, .7); position: relative; }
.onep__sys::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--iris); }
.onep__sys h3 { font-size: 2.3em; margin: .35em 0 .1em; }
.onep__line { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.15em; color: var(--blue); }
.onep__sys ul { margin: .9em 0; display: grid; gap: .45em; }
.onep__sys li { position: relative; padding-left: 1.1em; color: var(--muted); font-size: .96em; }
.onep__sys li::before { content: ""; position: absolute; left: 0; top: .55em; width: .4em; height: .4em; border-radius: 50%; background: var(--teal); }
.onep__gain { margin-top: auto; padding-top: .8em; border-top: 1px solid var(--line); font-size: .96em; }
.onep__gain b { color: var(--teal); font-weight: 600; }
.onep__sys > a { margin-top: .8em; font-family: var(--mono); font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--blue) !important; min-height: 2.75rem; display: inline-flex; align-items: center; }
.onep__next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.2em; margin-top: 1.2em; }
.onep__who { display: grid; grid-template-columns: 7.5em 1fr; gap: 1.2em; align-items: center; border: 1px solid var(--line); padding: 1.1em; background: rgba(12, 16, 22, .7); }
.onep__who img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.onep__who p { color: var(--muted); font-size: .96em; }
.onep__who strong { color: var(--ink); display: block; margin-bottom: .2em; }
.onep__cta { border: 1px solid rgba(78, 159, 214, .55); padding: 1.4em; background: linear-gradient(135deg, rgba(78,159,214,.16), rgba(122,108,240,.08)); display: grid; grid-template-columns: 1fr auto; gap: .4em 1.4em; align-items: center; }
.onep__cta .onep__label { grid-column: 1 / -1; margin-bottom: .2em; }
.onep__cta ol { display: grid; gap: .25em; }
.onep__cta li b { font-family: var(--mono); font-weight: 500; font-size: .72em; letter-spacing: .14em; color: var(--blue); margin-right: .6em; }
.onep__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.6em; background: linear-gradient(100deg, #5fb0e4, var(--blue) 50%, #6f8fe8); color: #03101a !important; font-family: var(--display); font-weight: 700; font-size: 1.15em; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s; }
.onep__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -14px rgba(78,159,214,.9); }
.onep__contact { grid-column: 1 / -1; display: flex; gap: 1.6em; margin-top: .5em; font-family: var(--mono); font-size: .72em; letter-spacing: .14em; text-transform: uppercase; }
.onep__contact a { color: var(--blue) !important; min-height: 2.75rem; display: inline-flex; align-items: center; }


/* 8. RESPONSIVE (wide to narrow) ======================================= */

@media (min-width: 1280px) {
  [data-theme="alive"] .rail { display: block; position: fixed; left: .35rem; top: 50%; transform: translateY(-50%); z-index: 40; opacity: 0; transition: opacity .6s; }
  [data-theme="alive"] .rail.is-on { opacity: 1; }
  .rail__line { position: absolute; left: calc(1.2rem + 3px); top: 1.375rem; bottom: 1.375rem; width: 1px; background: rgba(125, 138, 156, .35); }
  .rail__line i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--teal), var(--blue), var(--violet)); transform: scaleY(0); transform-origin: 50% 0; }
  .rail ol { display: grid; gap: 0; position: relative; }
  .rail a { display: flex; align-items: center; gap: .7rem; height: 2.75rem; min-width: 2.75rem; padding-left: 1.2rem; text-decoration: none; }
  .rail a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7d8a9c; box-shadow: 0 0 0 3px rgba(6, 8, 12, .0); transition: background .3s, transform .3s var(--ease), box-shadow .3s; flex: none; }
  .rail a span { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(6, 8, 12, .85); padding: .25rem .5rem; border-radius: 2rem; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
  .rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
  .rail a.is-past::before { background: var(--blue); }
  .rail a.is-here::before { background: var(--teal); transform: scale(1.7); box-shadow: 0 0 14px rgba(54, 224, 208, .9); }
}

@media (max-width: 1100px) {
  .cards--3 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav { gap: .8rem; }
  .nav__toggle { display: block; }
  .nav__links { position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0; padding: .5rem var(--pad) 1.5rem; background: rgba(6,8,12,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 1rem 0; font-size: .85rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__photo { position: relative; inset: auto; order: 2; width: 100%; align-self: stretch; height: 74vw; max-height: 32rem; }
  .hero__photo::after { background: linear-gradient(180deg, var(--base) 0%, rgba(6,8,12,0) 24%), linear-gradient(0deg, var(--base) 0%, rgba(6,8,12,0) 26%); }
  .hero__copy { width: 100%; padding: 7rem var(--pad) 2rem; }
  [data-theme="alive"] .hero__photo { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 72%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; animation-name: lens-drift-sm; }
  @keyframes lens-drift-sm { 0% { --lx: 34%; --ly: 40%; } 100% { --lx: 52%; --ly: 30%; } }
  [data-theme="alive"] .hero__lit { -webkit-mask-image: radial-gradient(circle 11rem at var(--lx) var(--ly), #000 0, #000 52%, transparent 100%); mask-image: radial-gradient(circle 11rem at var(--lx) var(--ly), #000 0, #000 52%, transparent 100%); }
  [data-theme="alive"] .hero__aperture { width: 22rem; height: 22rem; margin: -11rem 0 0 -11rem; }
  [data-theme="alive"] .wall.has-lens .wall__lens { width: 9rem; height: 9rem; margin: -4.5rem 0 0 -4.5rem; }
  .record { grid-template-columns: repeat(2, 1fr); }
  .record__item:nth-child(3) { border-left: 0; }
  .record__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li { padding: 1.8rem 1.2rem 1.8rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps--ink li { border-color: var(--line-paper); }
  .founder__grid, .answers__grid, .cards, .cols { grid-template-columns: 1fr; }
  .founder__photo, .tabs { position: static; }
  .countries { grid-template-columns: repeat(2, 1fr); }
  .versus__row { grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
  .versus__row > :first-child { grid-column: 1 / -1; }
  .versus__head > :first-child { display: none; }
  .rows li { grid-template-columns: 2.6rem 1fr; }
  .rows p { grid-column: 2; }
  .eq__parts { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; justify-items: center; }
  .demo__side { width: 100%; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__grid div { border-left: 0; padding-left: 0; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
  .sec--light .proof__grid div { border-color: var(--line-paper); }
  .shots__row { grid-template-columns: 1fr; }
}

@media screen and (max-width: 820px) {
  .onep { --u: .9rem; padding: 1.5em 1.2em; }
  .onep__tag { display: none; }
  .onep__hero, .onep__two, .onep__three, .onep__next, .onep__cta { grid-template-columns: 1fr; }
  .onep__hero h2 { font-size: 2.5em; }
  .onep__btn { width: 100%; }
}

@media (max-width: 700px) {
  .path { grid-template-columns: 1fr 1fr; row-gap: 1.4rem; }
  .path li:nth-child(n+3)::before { display: none; }
}

@media (max-width: 640px) {
  .name__grid { grid-template-columns: 1fr; }
  .dock { left: .7rem; right: .7rem; bottom: .7rem; justify-content: space-between; transform: translateY(160%); white-space: normal; font-size: .8rem; line-height: 1.25; }
  .dock.is-on { transform: none; }
  .callsteps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); margin-left: .3rem; }
  .callsteps::before { display: none; }
  .callsteps li { padding: 0 0 1.3rem 1.3rem; }
  .callsteps li::before { left: -5px; top: .25rem; }
}

/* phones: tighter rhythm, nothing oversized */
@media (max-width: 560px) {
  :root { --pad: 1.15rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .18em; margin-bottom: 1rem; }
  .btn { width: 100%; }
  .btn--sm { width: auto; padding: 0 1rem; }
  .brand__word { letter-spacing: .24em; font-size: 1.1rem; }
  .hero__copy { padding-top: 6.2rem; }
  .hero__actions { gap: .6rem 1.6rem; margin-top: 1.8rem; }
  .record__item { padding: 1.2rem var(--pad) 1.1rem; }
  .record__item span, .strip-label { font-size: .62rem; letter-spacing: .12em; }
  .reel__item { height: 170px; }
  .wall__track img { width: 42px; height: 42px; }
  .ticker span { font-size: .95rem; padding: 0 .8rem; }
  .countries--plain { grid-template-columns: 1fr; }
  .countries li { padding: .8rem .5rem .8rem 0; gap: .55rem; }
  .countries .spoke::after { display: none; }
  .bar { grid-template-columns: 5.6rem 1fr; }
  .trade { padding: 1.1rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 1.3rem 0; }
  .wire li { padding: 1.5rem 0; }
  .rows li { padding: 1.25rem 0; gap: .5rem 1rem; }
  .versus__row { padding: 1rem 0; }
  .card { padding: 1.5rem; }
  .card h3 { margin-top: .8rem; }
  .tabs button { padding: .95rem 1rem .95rem 0; }
  .phone { width: min(19.5rem, 100%); }
  .shot figcaption { font-size: .92rem; }
  .call .lead { margin-bottom: 1.8rem; }
  .foot { gap: .1rem 1.4rem; padding: 1.4rem var(--pad) 5.5rem; }
}


/* touch screens: the accent gradient holds still. Sliding a gradient through text repaints it every
   frame on the main thread; on a mid-range phone that was most of the idle work on inner pages
   (traced 2026-11-24). The colours stay; only the slide stops. Desktop is unchanged. */
@media (hover: none) {
  [data-theme="alive"] .sec:not(.sec--light) .accent, [data-theme="alive"] .hero .accent, [data-theme="alive"] .phero .accent { animation: none; }
  /* the hero lens rests on the raised hand instead of drifting (Ahmad's choice, 2026-11-24): the drift
     moved a mask over the photo and repainted it every frame, about 2 s of every 5 on a phone */
  [data-theme="alive"] .hero__photo { animation: none; --lx: 43%; --ly: 35%; }
}


/* 9. PRINT AND PDF ===================================================== */
/* The one-pager sheet alone, exactly one A4 page (build_pdf.py checks it). This block sits after
   the responsive rules on purpose: an A4 page is about 794px wide, so the phone rules above
   apply in print too, and these must win over them. */

@page { size: A4; margin: 0; }
@media print {
  html, body { background: #06080c !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::before, body::after, .nav, .foot, .dock, .rail, .lens, .progress, .skip, .onep-top { display: none !important; }
  .onepage { padding: 0; }
  .onep { --u: 8.6pt; width: 210mm; height: 297mm; max-width: none; margin: 0; padding: 11mm 11mm 10mm; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
  .onep__hero { padding: 6mm 0; }
  .onep__three { flex: 1; }
  .onep__sys > a, .onep__contact a { min-height: 0; }
  .onep__btn { min-height: 11mm; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}


/* 10. REDUCED MOTION =================================================== */
/* Everything still shows; nothing moves. app.js also skips the lens, the marquees and the reveals. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reel, .wall__row { overflow-x: auto; }
  .js [data-reveal], .js h1.display .line { opacity: 1; transform: none; }
  [data-theme="alive"] .lens { display: none; }
  [data-theme="alive"].js [data-reveal] { filter: none; }
  [data-theme="alive"] .steps--wire .steps__letter, [data-theme="alive"] .wire .wire__letter { filter: none; }
  [data-theme="alive"] .steps--wire::before { transform: none; }
}


/* PHONE PASS 2026-11-24 (Ahmad's review on his phone) ==================== */
/* the equation words always carry the ring colours, even with motion off */
.eq__formula .eq__top .eq__word.accent { background: linear-gradient(100deg, var(--teal), var(--blue) 50%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 640px) {
  /* the moving lens on the people strip could push the page sideways */
  html, body { overflow-x: clip; }
  /* the header already holds Book a call; the floating bar repeated it */
  .dock { display: none !important; }
  /* his photo first, the words under it */
  .hero__photo { order: 0; margin-top: 4.6rem; height: 82vw; max-height: 26rem; }
  .hero__copy { order: 1; padding-top: .4rem !important; }
  .name__grid { grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; }
  .name__mark { width: 3.6rem; }
  /* 20 countries: the same numbered table, condensed to 4 columns (5 short rows) */
  #countries .countries { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.6rem; }
  #countries .countries li { flex-direction: column; align-items: flex-start; gap: .2rem; padding: .6rem .35rem .6rem 0; font-size: .74rem; line-height: 1.1; }
  #countries .countries li::before { font-size: .56rem; }
}

/* LANGUAGE SWITCH + ARABIC (RTL) 2026-11-24 ============================== */
/* a small square in the header: "ع" on English pages, "EN" on Arabic pages */
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .55rem; border: 1px solid var(--line); color: #fff; text-decoration: none; font-family: "Cairo", var(--body); font-weight: 700; font-size: 1.05rem; line-height: 1; transition: border-color .2s, background .2s; }
.lang:hover, .lang:focus-visible { border-color: var(--blue); background: rgba(78, 159, 214, .12); }
.lang[lang="en"] { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; }
.nav .lang { margin-inline-start: auto; }
.nav .lang + .btn { margin-inline-start: -1.2rem; }
@media (max-width: 1000px) { .nav .lang + .btn { margin-inline-start: 0; } }
@media (max-width: 560px) { .nav { gap: .6rem; } .lang { min-width: 2.75rem; } }

/* Arabic type. Letter-spacing breaks Arabic letter joining, so it is always 0 here. */
html[lang="ar"] { --display: "Cairo", "Saira Condensed", sans-serif; --body: "IBM Plex Sans Arabic", "General Sans", Arial, sans-serif; --mono: "IBM Plex Sans Arabic", "JetBrains Mono", monospace; }
html[lang="ar"] body { font-family: var(--body); }
html[lang="ar"] :is(h1, h2, h3, h4, p, li, a, span, b, button, small, figcaption, dt, dd, blockquote, label, strong, em) { letter-spacing: 0 !important; }
html[lang="ar"] :is(.display, h1, h2, h3) { line-height: 1.3; text-transform: none; }
html[lang="ar"] .eyebrow, html[lang="ar"] .nav__links a, html[lang="ar"] .btn { text-transform: none; }
html[lang="ar"] .eyebrow { font-size: .86rem; font-weight: 500; }
html[lang="ar"] .nav__links a { font-size: .9rem; }
html[lang="ar"] .btn { font-family: "Cairo", sans-serif; font-weight: 700; }
html[lang="ar"] .note { font-size: .86rem; line-height: 1.8; }
html[lang="ar"] p, html[lang="ar"] li { line-height: 1.85; }
/* names that stay in Latin keep their own face */
html[lang="ar"] .brand__word { font-family: "Saira Condensed", sans-serif; letter-spacing: .34em !important; }

/* mirrored layout */
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .nav .lang { margin-inline-start: 0; }
[dir="rtl"] .nav__links a::after { transform-origin: 100% 50%; }
[dir="rtl"] .hero__photo { inset: 0 44% 0 0; }
[dir="rtl"] .hero__photo img { object-position: 70% 30%; }
[dir="rtl"] .hero__photo::after { transform: scaleX(-1); }
[dir="rtl"] .rail { left: auto !important; right: .35rem; }
@media (max-width: 900px) { [dir="rtl"] .hero__photo { inset: auto; } }

/* the hidden skip link sits off the right edge in RTL, so it never widens the page */
[dir="rtl"] .skip { left: auto; right: 0; transform: translateY(-140%); }
[dir="rtl"] .skip:focus { transform: none; }
/* moving strips (people wall, reels, country ticker) run on left-to-right mechanics */
[dir="rtl"] :is(.wall, .wall__row, .reel, .ticker) { direction: ltr; }
/* numbers with + or ~ keep their order (40+, not +40) inside Arabic text */
html[lang="ar"] :is(b[data-count], .record__item b, .onep__nums b) { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .wall { overflow-x: clip; }
/* arrows point the way Arabic reads */
[dir="rtl"] :is(.link, .card__go, .asks a)::after { content: "\2190"; }
[dir="rtl"] .link:hover::after, [dir="rtl"] .card__go:hover::after, [dir="rtl"] .asks a:hover::after { transform: translateX(-4px); }
/* the "Lens x Perspective" heading is English: keep its own order, sit on the Arabic side */
[dir="rtl"] .name .display--md { direction: ltr; text-align: right; }
/* call steps: the line and dots sit on the right */
[dir="rtl"] .callsteps { text-align: right; }
[dir="rtl"] .callsteps::before { transform-origin: 100% 50%; }
[dir="rtl"] .callsteps li { padding: 1.3rem 0 0 1.4rem; }
[dir="rtl"] .callsteps li::before { left: auto; right: 0; }
@media (max-width: 640px) {
  [dir="rtl"] .callsteps { border-left: 0; border-right: 1px solid var(--line); margin-left: 0; margin-right: .3rem; }
  [dir="rtl"] .callsteps li { padding: 0 1.3rem 1.3rem 0; }
  [dir="rtl"] .callsteps li::before { right: -5px; top: .25rem; }
}
/* Arabic one-pager equation: the top line stays on one line */
html[lang="ar"] .onep__frac span:first-child { white-space: nowrap; }
html[lang="ar"] .onep__eq { font-size: 1.55em; line-height: 1.3; }

/* BOOKING PAGE /call-invite 2026-11-24 ================================== */
body[data-page="call"] .dock { display: none !important; }
.book { padding-bottom: clamp(3rem, 6vw, 5rem); }
.book__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.book__intro { position: sticky; top: 7rem; }
.book__intro .hero__lead { margin-top: 1.4rem; }
.book__facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.2rem; border-top: 1px solid var(--line); }
.book__facts li { padding: 1.1rem 1rem 0 0; display: grid; gap: .35rem; }
.book__facts li + li { padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
.book__facts b { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: #fff; }
.book__facts span { font-size: .8rem; line-height: 1.4; color: var(--muted); }

.book__card { position: relative; isolation: isolate; padding: clamp(1rem, 2.2vw, 1.6rem); background: rgba(14, 19, 27, .62); backdrop-filter: blur(14px); border: 1px solid rgba(140, 170, 210, .22); box-shadow: 0 40px 100px -50px rgba(78, 159, 214, .65); min-height: 34rem; }
.book__card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(28rem circle at var(--gx, 70%) var(--gy, 0%), rgba(78, 159, 214, .16), transparent 60%); transition: background .2s; }
.book__card::after { content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none; padding: 1px; background: linear-gradient(135deg, var(--teal), transparent 30%, transparent 70%, var(--violet)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; }
.book__ring { position: absolute; z-index: -2; width: 22rem; height: 22rem; top: -7rem; inset-inline-end: -7rem; opacity: .55; pointer-events: none; overflow: visible; }
.book__head { display: flex; align-items: center; gap: .7rem; padding: .2rem .2rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.book__head p { font-size: .88rem; color: var(--muted); }
.book__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(54, 224, 208, .6); animation: book-ping 2.2s ease-out infinite; flex: none; }
@keyframes book-ping { 0% { box-shadow: 0 0 0 0 rgba(54, 224, 208, .55); } 80%, 100% { box-shadow: 0 0 0 .7rem rgba(54, 224, 208, 0); } }
.book__cal { position: relative; min-height: 30rem; overflow: hidden; }
.book__cal iframe { opacity: 0; transition: opacity .8s var(--ease); }
.book__card.is-ready .book__cal iframe { opacity: 1; }
/* waiting state: a week of dots breathing in sequence, gone once the calendar shows */
.book__wait { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); align-content: center; gap: .9rem; padding: 0 12%; transition: opacity .5s; }
.book__wait i { aspect-ratio: 1; border: 1px solid rgba(140, 170, 210, .25); animation: book-wait 1.6s ease-in-out infinite; }
.book__wait i:nth-child(2) { animation-delay: .12s; } .book__wait i:nth-child(3) { animation-delay: .24s; } .book__wait i:nth-child(4) { animation-delay: .36s; }
.book__wait i:nth-child(5) { animation-delay: .48s; } .book__wait i:nth-child(6) { animation-delay: .6s; } .book__wait i:nth-child(7) { animation-delay: .72s; }
@keyframes book-wait { 50% { background: rgba(78, 159, 214, .35); border-color: var(--blue); } }
.book__card.is-ready .book__wait { opacity: 0; pointer-events: none; }
.book__fb { margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.book__fb a { color: #fff; }

/* the three steps light up one after another */
.book__after .callsteps li { transition: opacity .5s; }
.book__after .callsteps:has(li.is-on) li:not(.is-on) { opacity: .45; }
.book__after .callsteps li.is-on::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 14px rgba(54, 224, 208, .9); }
.book__after .callsteps li.is-on h3 { color: #fff; }

@media (max-width: 900px) {
  .book__grid { grid-template-columns: 1fr; }
  .book__intro { position: static; }
  .book__ring { width: 15rem; height: 15rem; top: -5rem; inset-inline-end: -5rem; }
}
@media (max-width: 560px) {
  .book__card { padding: .8rem; margin-inline: calc(var(--pad) * -.5); }
  .book__cal { min-height: 34rem; }
  .book__facts span { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .book__wait i, .book__dot { animation: none; } }

/* PHONE PASS 2 2026-11-25 (Ahmad: no button in the phone header, calmer spacing, more premium) == */
.nav__links .nav__book { display: none; }
@media (max-width: 640px) {
  /* header holds the logo, the language switch and the menu; Book a call moves into the menu */
  .nav > .btn { display: none; }
  .nav { gap: .9rem; }
  .nav.is-open .nav__links .nav__book { display: inline-flex; width: 100%; margin-top: 1.2rem; padding: 0 1.4rem; border-bottom: 0; font-family: var(--display); font-size: .95rem; letter-spacing: .12em; color: #03101a; }
}
@media (max-width: 560px) {
  /* a little more air at the sides */
  :root { --pad: 1.4rem; }
  /* buttons: one height, quieter glow, less tracking */
  .btn { min-height: 3.35rem; padding: 0 1.4rem; font-size: .95rem; letter-spacing: .12em; }
  [data-theme="alive"] .btn:not(.btn--ink) { box-shadow: 0 0 0 1px rgba(234,244,255,.18) inset, 0 10px 26px -16px rgba(78, 159, 214, .6); }
  /* a button and its text link stack: button full width, the link centred under it with room to breathe */
  .hero__actions { flex-direction: column; align-items: stretch; gap: 1.1rem; margin-top: 2.2rem; }
  .hero__actions .link { align-self: center; }
  .founder__copy .hero__actions { margin-top: 2.2rem; }
  .wrap > .link { margin-top: 2rem; }
  .call .btn { margin-top: .6rem; }
  /* footer: name and line on top, the links in two even columns */
  .foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; padding: 2.6rem var(--pad) calc(2.4rem + env(safe-area-inset-bottom)); }
  .foot > span { grid-column: 1 / -1; }
  .foot > span:nth-child(2) { margin: .5rem 0 1.2rem; line-height: 1.6; }
  .foot > span:last-child { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
  .foot a { padding: .7rem 0; }
}

/* privacy page (2026-12-01): plain readable long text */
.legal .wrap { max-width: 46rem; }
.legal h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin: 2.6rem 0 .8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { line-height: 1.65; color: var(--muted); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .7rem; }
.legal a { text-decoration: underline; }
.legal h2 { scroll-margin-top: 6rem; }
.legal ol { padding-left: 1.4rem; display: grid; gap: .7rem; }
.legal__toc { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding-bottom: 2rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.legal__toc a { text-decoration: none; color: var(--blue); padding: .35rem 0; }
.legal__toc + h2 { margin-top: 0; }
.legal__toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.legal p a, .legal li a { padding: .8rem 0; }
.legal ul { list-style: disc; } .legal ol { list-style: decimal; }
.legal li::marker { color: var(--blue); }
.legal p + p, .legal ul + p, .legal ol + p, .legal p + ul, .legal p + ol { margin-top: 1.1rem; }
