/* =====================================================================
   Impact360 — shared design system ("Pure Liquid Glass")
   iOS 26 / visionOS material: luminous, lens-like, calm.
   Logical properties throughout: every page mirrors he (rtl) <-> en (ltr).
   Page-specific composition lives in /assets/css/pages/<key>.css.
   Catalogue + usage: tools/DESIGN.md
   ===================================================================== */

/* ---------------------------------------------------------------- 1 · tokens */
:root {
  /* Glass Button tokens (required by glass-button.css) */
  --foreground: #0a1f44;
  --background: #ffffff;

  --ink: #0a1f44;
  --ink-2: #26395e;   /* secondary text */
  --ink-3: #46587c;   /* labels on light glass */
  --blue: #2343f6;
  --blue-deep: #1733c7;
  --violet: #1452d1;  /* v2: a second blue — the token name is kept so every gradient stays valid */
  --lilac: #8fb6ff;   /* v2: light blue */
  --sky: #7cc0ff;
  --night: #0a1f44;   /* dark windows: navy */
  --ok: #0b5a34;
  --err: #b4153f;
  --focus: #2343f6;

  --font-body: "Noto Sans Hebrew", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; /* served at 84% width (narrow) */
  /* Archivo first: Latin glyphs (IMPACT360, digits) set in Archivo (92% width), Hebrew falls through to Heebo 900 */
  --font-display: "Archivo", "Heebo", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(46px, 7vw, 108px);
  --fs-h1: clamp(44px, 6.2vw, 96px);
  --fs-h2: clamp(32px, 4vw, 60px);
  --fs-h3: clamp(21px, 1.8vw, 27px);
  --fs-lead: clamp(19px, 1.6vw, 24px);
  --fs-body: 17px;
  --fs-small: 14.5px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --sec-y: clamp(72px, 9vw, 140px);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: clamp(24px, 2.4vw, 34px);
  --r-xl: clamp(30px, 3.4vw, 48px);

  --inset: clamp(10px, 1.4vw, 20px);   /* full-bleed windows: distance from the viewport edge */
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  --bar-h: 68px;
  --bar-hc: 58px;                      /* condensed header bar */
  --nav-top: calc(var(--inset) + 14px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}

/* ---------------------------------------------------------------- 2 · base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: #ffffff;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body {
  margin: 0; min-height: 100vh;
  background: transparent; /* the fixed .bg layer (z -1) shows through; html carries the white base */
  color: var(--ink);
  font: 400 var(--fs-body)/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* sticky footer: on short pages (book-online, file-share, the /en/ blog, 404) the footer rests on the viewport
     floor. Every other child of <body> is fixed (or absolute without JS), so only main and the footer flow. */
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
main, .site-footer { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: inherit; font-size: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
strong { font-weight: 700; }
p, li { text-wrap: pretty; }
::selection { background: rgba(35, 67, 246, .2); }

/* two-tone focus ring: a white inner ring + blue outer ring reads on glass, video and colour alike */
:focus-visible {
  outline: 2.5px solid var(--focus); outline-offset: 2.5px;
  box-shadow: 0 0 0 2.5px #fff;
}
/* rounded ring for elements that have no radius of their own. Zero specificity: any component radius wins, so
   capsule CTAs, chips, round FABs and cards keep their own shape (and the ring follows it) while focused. */
:where(:focus-visible) { border-radius: 10px; }
.on-dark { --focus: #ffffff; }
.on-dark :focus-visible { box-shadow: 0 0 0 2.5px var(--blue); }
/* Glass Button: its outline uses --focus; add the second ring on the wrapper */
.glass-button-wrap:has(> .glass-button:focus-visible)::after {
  content: ""; position: absolute; inset: -9px; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 0 2.5px #fff;
}
.on-dark .glass-button-wrap:has(> .glass-button:focus-visible)::after { box-shadow: 0 0 0 2.5px var(--blue); }

.skip {
  position: fixed; z-index: 100; top: 10px; inset-inline-start: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 24px rgba(10, 31, 68, .18);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.i { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .i-arrow, [dir="rtl"] .i-chev { transform: scaleX(-1); } /* "forward" points to the inline-end */
.c-brand { color: var(--blue); }
/* brand gradient text (IMPACT360 in running copy). Stops are tunable per use: --g0 / --g1 */
.brand-grad { color: var(--blue); } /* v2: flat brand blue (gradient text retired) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13.5px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-block-end: var(--sp-4);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--blue); }
.page-hero--film .eyebrow::before, .on-dark .eyebrow::before { background: currentColor; }

/* Wix typographic levels (data-font) as low-specificity defaults — components override freely */
:where(.t-0) { font: 900 var(--fs-display)/1 var(--font-display); letter-spacing: -.018em; }
:where(.t-2) { font: 900 var(--fs-h1)/1.02 var(--font-display); letter-spacing: -.02em; }
:where(.t-4) { font: 900 var(--fs-h2)/1.1 var(--font-display); letter-spacing: -.012em; }
:where(.t-5) { font: 700 var(--fs-h3)/1.35 var(--font-display); }
:where(.t-6) { font: 500 var(--fs-lead)/1.55 var(--font-body); }
:where(.t-7, .t-8) { font: 400 var(--fs-body)/1.8 var(--font-body); }
:where(.t-9) { font: 400 var(--fs-small)/1.6 var(--font-body); }
:where(h1, h2, h3, h4, h5, h6) { font-family: var(--font-display); }

/* rich text flow (rich()): .cont = a continuation line of the previous paragraph, .sp = Wix spacer before */
.rich > * + * { margin-block-start: .85em; }
.rich > .cont { margin-block-start: .1em; }
.rich > .sp { margin-block-start: 1.5em; }
.rich > :where(h2, h3, h4, h5, h6) + * { margin-block-start: .5em; }
.rich a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.rich ul, .rich ol { padding-inline-start: 1.3em; }
.rich .bullet { padding-inline-start: 1em; text-indent: -1em; }
.rx strong, .rx b { font-weight: 700; }

/* ---------------------------------------------------------------- 3 · base layer */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(125% 125% at 50% 10%, #fff 40%, #a9c7ff 100%); /* the client's background component; v2: azure edge instead of violet */
}

/* ---------------------------------------------------------------- 4 · liquid glass
   Fallback = blur glass (Safari / Firefox / touch / narrow). In gated Chromium, site.js swaps
   backdrop-filter for an SVG displacement lens sized to the element (data-refract="preset"). */
.glass {
  --tint-a: rgba(255, 255, 255, .5);
  --tint-b: rgba(255, 255, 255, .26);
  --rim-a: rgba(255, 255, 255, .98);
  --rim-b: rgba(255, 255, 255, .62);
  --blur: 18px;
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--tint-a), var(--tint-b));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  box-shadow:
    inset 0 1px .5px rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(255, 255, 255, .4),
    inset 0 0 0 .5px rgba(255, 255, 255, .35),
    inset 0 -28px 48px -30px rgba(255, 255, 255, .55),
    0 1px 1px rgba(10, 31, 68, .04),
    0 24px 60px -24px rgba(10, 31, 68, .32);
}
/* specular rim: conic hairline whose bright arc follows the light (pointer, or a fixed key light on touch) */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1.3px;
  background: conic-gradient(from var(--spec, -40deg),
    var(--rim-a) 0deg, rgba(255, 255, 255, .16) 55deg, rgba(255, 255, 255, .04) 125deg,
    var(--rim-b) 180deg, rgba(255, 255, 255, .06) 235deg, rgba(255, 255, 255, .22) 310deg, var(--rim-a) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* sheen where the light lands */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at var(--mx, 22%) var(--my, -12%), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 58%);
}
.glass--strong { --tint-a: rgba(255, 255, 255, .78); --tint-b: rgba(255, 255, 255, .64); } /* long text */
.glass--clear  { --tint-a: rgba(255, 255, 255, .2); --tint-b: rgba(255, 255, 255, .08); --blur: 6px; }
.glass--tint   { --tint-a: rgba(232, 240, 255, .7); --tint-b: rgba(222, 234, 255, .46); }
.glass--dark {
  --tint-a: rgba(255, 255, 255, .17);
  --tint-b: rgba(255, 255, 255, .05);
  --rim-a: rgba(255, 255, 255, .9);
  --rim-b: rgba(255, 255, 255, .4);
  --focus: #ffffff;
  color: #fff;
  box-shadow:
    inset 0 1px .5px rgba(255, 255, 255, .55),
    inset 0 -1px 1px rgba(255, 255, 255, .14),
    inset 0 0 0 .5px rgba(255, 255, 255, .16),
    inset 0 -30px 50px -34px rgba(255, 255, 255, .28),
    0 30px 60px -30px rgba(4, 12, 34, .6);
}
.glass--dark::after { background: radial-gradient(120% 90% at var(--mx, 22%) var(--my, -12%), rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 60%); }
/* long glass (taller than ~2 viewports, e.g. an article sheet): Chromium rasterises the full-size ::before rim
   (masked conic) and ::after sheen of a very tall surface into stray tiles that show as stretched ghost copies of
   the text inside it. A long surface draws its rim with inset shadows and its sheen as a 900px top layer instead. */
.glass--long::before, .glass--long::after { display: none; }
.glass--long {
  background:
    radial-gradient(120% 100% at 22% 0%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 58%) top / 100% 900px no-repeat,
    linear-gradient(180deg, var(--tint-a), var(--tint-b));
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .98), inset 0 0 0 1px rgba(255, 255, 255, .62),
    inset 0 -1px 1px rgba(255, 255, 255, .45), inset 0 -40px 60px -40px rgba(255, 255, 255, .6),
    0 1px 1px rgba(10, 31, 68, .04), 0 30px 70px -30px rgba(10, 31, 68, .36);
}

/* Glass Button tone wrappers + sizes (tokens only — the component's own rules stay untouched) */
.tone-light { --foreground: #ffffff; --background: #ffffff; }
.tone-ink   { --foreground: #0a1f44; --background: #ffffff; }
/* the component's label shadow is drawn in --foreground (a soft ink echo under an ink label); with a white label it
   becomes a faint white copy of the text .25em below it, so the white-label tones get a close, soft ink shadow instead */
.tone-light .glass-button-text, .tone-light .glass-button:hover .glass-button-text { text-shadow: 0 .08em .12em rgba(10, 8, 50, .28); }
.glass-button--fab .glass-button { width: 3.5rem; height: 3.5rem; }
.glass-button--fab .glass-button-text { display: flex; width: 3.5rem; height: 3.5rem; padding: 0; align-items: center; justify-content: center; }
.glass-button-text.has-icon { display: flex; align-items: center; justify-content: center; gap: .55em; }
.glass-button-text svg { width: 1.15em; height: 1.15em; }
.glass-button--icon .glass-button-text svg { width: 20px; height: 20px; }
.glass-button-text img { width: 26px; height: 26px; }
.glass-button-wrap { vertical-align: middle; }
.i-off { display: none; }
[aria-pressed="true"] .i-on { display: none; }
[aria-pressed="true"] .i-off { display: block; }

/* primary CTA pools: a coloured body under the clear Glass Button -> white label at AA on anything */
.cta-pool { position: relative; display: inline-block; border-radius: 999px; vertical-align: middle; }
.cta-pool::before {
  content: ""; position: absolute; inset: 1px; z-index: 0; border-radius: inherit; pointer-events: none;
  background: var(--blue);
  box-shadow: 0 10px 24px -14px rgba(10, 31, 68, .45), inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.cta-pool--smoke::before {
  inset: 2px;
  background: linear-gradient(180deg, rgba(8, 28, 72, .66), rgba(6, 22, 56, .76));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -16px rgba(2, 4, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.cta-pool > .glass-button-wrap { z-index: 1; }
.cta-pool .glass-button-text { font-weight: 600; }
/* colour field behind an ink-label button on light surfaces (gives the clear glass something to bend) */
.cta-halo { position: relative; display: inline-block; vertical-align: middle; }
.cta-halo::before { content: none; } /* v2: no colour fields behind buttons */
.cta-halo .glass-button-text { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }

/* chips — small glass controls */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; min-width: 42px; padding: 0 14px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--font-display); letter-spacing: .02em; color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 .5px rgba(10, 31, 68, .06), 0 1px 2px rgba(10, 31, 68, .08), 0 6px 14px -8px rgba(10, 31, 68, .3);
  transition: transform .3s var(--spring), background .3s;
}
.chip:hover { transform: translateY(-1px); background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .58)); }
.chip--icon { padding: 0; }
.chip .i { width: 17px; height: 17px; }
.chip--lang:lang(he) { font-family: var(--font-body); font-weight: 700; font-size: 14px; }

/* ---------------------------------------------------------------- 5 · header / nav */
.site-header {
  position: fixed; z-index: 50; top: var(--nav-top); inset-inline: 0;
  display: flex; justify-content: center; pointer-events: none;
  transition: top .6s var(--ease);
}
.nav-bar { /* not a Backdrop Root: the material lives on .nav-bar-bg so the mobile sheet can frost the page */
  position: relative; pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  width: min(1240px, calc(100% - 2 * var(--inset) - 48px));
  height: var(--bar-h);
  padding-inline: 22px 10px;
  border-radius: 999px;
  transition: width .7s var(--ease), height .7s var(--ease);
}
.nav-bar-bg.glass {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  --tint-a: rgba(255, 255, 255, .74); --tint-b: rgba(255, 255, 255, .54);
}
.site-header.is-condensed { top: 12px; }
.site-header.is-condensed .nav-bar { width: min(1180px, calc(100% - 32px)); height: var(--bar-hc); } /* 9 links: the row still fits */
.site-header.is-condensed .nav-bar-bg { --tint-a: rgba(255, 255, 255, .84); --tint-b: rgba(255, 255, 255, .68); }
.nav-logo { position: relative; display: block; flex: none; border-radius: 12px; }
.nav-logo::before { /* light pool keeps the logo's thin grey strokes crisp over video */
  content: ""; position: absolute; inset: -10px -26px; z-index: -1; border-radius: 999px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .92), rgba(255, 255, 255, .55) 60%, rgba(255, 255, 255, 0));
  transition: opacity .6s var(--ease);
}
.is-condensed .nav-logo::before { opacity: .5; }
.nav-logo img, .footer-logo img { width: auto; filter: url(#ko-logo); }
.nav-logo img { height: 42px; transition: height .7s var(--ease); }
.is-condensed .nav-logo img { height: 36px; }

/* min-width 0 + wrappable labels: the row fits by budget (below); if a wider fallback font is showing (webfont
   still swapping in, or blocked), a multi-word label wraps onto two lines instead of pushing the chips out */
.nav-links { position: relative; display: flex; align-items: baseline; margin-inline: auto; min-width: 0; } /* one baseline for Noto + Archivo labels */
.nav-links a {
  position: relative; z-index: 1;
  padding: 11px 15px; border-radius: 999px;
  font: 500 15px/1.2 var(--font-body); color: var(--ink); text-decoration: none; text-align: center; text-wrap: balance;
  transition: color .3s;
}
.nav-links a[lang="en"] { font-family: var(--font-display); font-size: 14.5px; }
/* inline row budget (logo + 9 links + language chip + LinkedIn, both header states): Hebrew keeps 15px with 15px
   pads from 1280px; English labels run ~16% longer, so 14.5px with 10px pads; 1080–1279px see section 26.
   Below the language's threshold (layout.NAV_SHEET_MAX) html.nav-sheet moves the links into the menu sheet. */
@media (min-width: 1280px) { html[lang="en"]:not(.nav-sheet) .nav-links a { font-size: 14.5px; padding-inline: 10px; } }
/* sliding selection lens — physical left:0 + translateX(r.left - base.left): direction-agnostic math */
.nav-lens {
  position: absolute; z-index: 0; top: 50%; left: 0;
  height: 42px; width: 80px; margin-top: -21px;
  border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .62));
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 1px rgba(255, 255, 255, .7), inset 0 0 0 .5px rgba(10, 31, 68, .05),
    0 1px 2px rgba(10, 31, 68, .1), 0 8px 20px -8px rgba(10, 31, 68, .35);
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s;
}
.nav-lens.is-ready { opacity: 1; }
html:not(.js) .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .85); }
.nav-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-toggle { display: none; }
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger i { position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--spring), top .45s var(--spring); }
.burger i:first-child { top: 1px; }
.burger i:last-child { top: 9px; }
.is-open .burger i:first-child { top: 5px; transform: rotate(45deg); }
.is-open .burger i:last-child { top: 5px; transform: rotate(-45deg); }

/* the menu sheet — html.nav-sheet (JS only: the head script sets it from <html data-nav-sheet>, Hebrew <= 1079px,
   English <= 1199px, and keeps it in sync): the links become a frosted sheet under the bar */
.nav-sheet .nav-tools { margin-inline-start: auto; }
.nav-sheet .nav-lens { display: none; }
.nav-sheet .nav-toggle { display: inline-flex; }
.nav-sheet .nav-links {
  position: fixed; z-index: -1;
  top: calc(var(--nav-top) + var(--bar-h) + 10px); inset-inline: var(--sheet-x, calc(var(--inset) + 4px));
  max-height: calc(100vh - var(--nav-top) - var(--bar-h) - 30px); overflow-y: auto;
  flex-direction: column; align-items: stretch; gap: 2px;
  margin: 0; padding: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .72));
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 1px .5px #fff, inset 0 0 0 .5px rgba(255, 255, 255, .5), 0 30px 70px -24px rgba(10, 31, 68, .5);
  visibility: hidden; opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top center;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.nav-sheet .is-condensed { --sheet-x: var(--sheet-xc); } /* the sheet keeps lining up with the (wider) condensed bar */
.nav-sheet .is-condensed .nav-links { top: calc(12px + var(--bar-hc) + 10px); }
.nav-sheet .is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .55s var(--spring), visibility 0s; }
.nav-sheet .nav-links a { font-size: 20px; padding: 14px 16px; border-radius: 18px; text-align: start; }
.nav-sheet .nav-links a[lang="en"] { font-size: 19px; }
.nav-sheet .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(10, 31, 68, .3); }
/* tablets and small desktops: a menu panel under the button (inline end), not a full-width sheet */
@media (min-width: 641px) {
  .nav-sheet .nav-links { inset-inline-start: auto; width: min(420px, calc(100% - 2 * var(--sheet-x, var(--inset)))); transform-origin: top right; }
  [dir="rtl"] .nav-sheet .nav-links { transform-origin: top left; }
}

/* ---------------------------------------------------------------- 6 · layout */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(880px + 2 * var(--gutter)); }
.wrap--prose { max-width: calc(46rem + 2 * var(--gutter)); }
.section { position: relative; padding-block: var(--sec-y); }
.section--tight { padding-block: calc(var(--sec-y) * .55); }
.section + .section { padding-block-start: calc(var(--sec-y) * .5); }
.stack { display: flex; flex-direction: column; gap: var(--sp-5); }
.grid { display: grid; gap: clamp(14px, 1.8vw, 26px); list-style: none; margin: 0; padding: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-item { display: grid; }
.grid-item > * { min-width: 0; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.bento-cell { display: grid; min-width: 0; grid-column: span 12; }
.bento-cell > * { min-width: 0; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.rows-2 { grid-row: span 2; }

/* ---------------------------------------------------------------- 7 · section heading */
.sec-head { max-width: 50rem; margin-block-end: clamp(28px, 4vw, 56px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-title { font: 900 var(--fs-h2)/1.1 var(--font-display); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.sec-head--xl .sec-title { font-size: var(--fs-display); line-height: 1; letter-spacing: -.018em; }
.sec-lead { margin-block-start: var(--sp-4); font: 400 var(--fs-lead)/1.6 var(--font-body); color: var(--ink-2); text-wrap: pretty; }
.sec-head--light .sec-title { color: #fff; }
.sec-head--light .sec-lead { color: rgba(255, 255, 255, .9); }

/* ---------------------------------------------------------------- 8 · page hero + breadcrumbs */
.page-hero { position: relative; padding: calc(var(--nav-top) + var(--bar-h) + 18px) var(--inset) 0; }
.page-hero-window {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(360px, 52vh, 560px);
  border-radius: var(--r-xl);
  display: grid; align-items: end;
  background: var(--night);
  box-shadow: 0 50px 110px -50px rgba(10, 31, 68, .6), 0 0 0 1px rgba(255, 255, 255, .35);
}
.page-hero-window::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.9); }
.page-hero-shade, .window-grade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(143, 178, 255, .45), rgba(143, 178, 255, 0) 70%),
    linear-gradient(160deg, rgba(35, 67, 246, .86) 0%, rgba(20, 82, 209, .8) 48%, rgba(8, 24, 56, .94) 100%);
  mix-blend-mode: multiply;
}
.page-hero-inner {
  position: relative; width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(36px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-6);
}
.page-hero-copy { max-width: 46rem; }
.page-hero-aside { flex: none; max-width: 100%; } /* an object beside the title keeps its size; wraps under it when narrow */
/* a slab that rests on the hero's bottom edge (book-online's status plate, file-share's window): the page gives the
   hero inner padding-block-end >= var(--lap) so the copy clears it */
:root { --lap: clamp(64px, 7vw, 108px); }
.lap-slab { position: relative; z-index: 3; margin-top: calc(-1 * var(--lap)); }
.page-title { font: 900 var(--fs-h1)/1.02 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.page-lead { margin-block-start: var(--sp-4); font: 500 var(--fs-lead)/1.55 var(--font-body); text-wrap: pretty; }
.page-hero--film { --focus: #fff; }
.page-hero--film .page-title { color: #fff; text-shadow: 0 2px 30px rgba(6, 16, 40, .35); }
.page-hero--film .page-lead { color: rgba(255, 255, 255, .92); }
.page-hero--film .eyebrow { color: #c9d4ff; }
.page-hero--film .crumbs { color: rgba(255, 255, 255, .86); }
.page-hero--glass { padding-inline: var(--gutter); }
.page-hero-field, .cta-band-field, .nf-field { -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.page-hero-field {
  position: absolute; inset: -12% 0; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(35, 67, 246, .5), transparent) no-repeat left -8vw top 10% / 46vw 46vw,
    radial-gradient(closest-side, rgba(20, 82, 209, .45), transparent) no-repeat right -6vw top 30% / 46vw 46vw;
}
.page-hero-sheet { max-width: var(--maxw); margin-inline: auto; border-radius: var(--r-xl); --tint-a: rgba(255, 255, 255, .64); --tint-b: rgba(255, 255, 255, .46); }
.page-hero-sheet .page-hero-inner { padding: clamp(32px, 5vw, 72px) clamp(22px, 5vw, 72px); }
.page-hero-sheet .page-lead { color: var(--ink-2); }

.crumbs { margin-block-end: var(--sp-5); font: 500 14px/1.4 var(--font-body); color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin-inline: 2px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; } /* physical chevron: '>' */
[dir="rtl"] .crumbs li + li::before { transform: rotate(-135deg); } /* '<' points along the RTL reading direction */
.crumbs a { text-decoration: none; padding: 4px 2px; border-radius: 6px; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: .25em; }
.crumbs [aria-current] { font-weight: 700; }

/* ---------------------------------------------------------------- 9 · lens (circular glass title) */
.lens {
  --size: min(520px, 84vw);
  --tint-a: rgba(255, 255, 255, .2); --tint-b: rgba(255, 255, 255, .2);
  width: var(--size); height: var(--size); flex: none;
  border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .44) 46%, rgba(255, 255, 255, .16) 76%, rgba(255, 255, 255, .06) 100%);
  -webkit-backdrop-filter: blur(5px) saturate(150%) brightness(1.08);
  backdrop-filter: blur(5px) saturate(150%) brightness(1.08);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .95), inset 0 -2px 2px rgba(255, 255, 255, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .3),
    inset 0 -50px 90px -50px rgba(255, 255, 255, .75), inset 0 40px 70px -40px rgba(255, 255, 255, .45),
    0 60px 120px -40px rgba(4, 14, 40, .7), 0 14px 34px -12px rgba(4, 14, 40, .4);
}
.lens::before { padding: 2px; }
.lens::after { background: radial-gradient(60% 45% at var(--mx, 30%) var(--my, 14%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); }
.lens--frost { --tint-a: rgba(255, 255, 255, .6); background: radial-gradient(closest-side, rgba(255, 255, 255, .74), rgba(255, 255, 255, .5) 60%, rgba(255, 255, 255, .26)); box-shadow: inset 0 2px 1px #fff, inset 0 -2px 2px rgba(255, 255, 255, .5), inset 0 -50px 90px -50px rgba(255, 255, 255, .8), 0 50px 100px -40px rgba(10, 31, 68, .5), 0 14px 34px -12px rgba(10, 31, 68, .3); }
.lens--sm { --size: min(340px, 72vw); }
.lens-title { font: 600 calc(var(--size) * .168) / .98 var(--font-display); letter-spacing: -.04em; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.lens-title .w { display: block; }
.lens-title strong { font-weight: 600; margin-inline-start: -.1em; color: var(--blue); text-shadow: none; }

/* ---------------------------------------------------------------- 10 · cards */
.card {
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: var(--sp-3);
  min-width: 0;
}
.card > h3, .card-title { font: 700 var(--fs-h3)/1.3 var(--font-display); text-wrap: balance; }
:where(.card) p { color: var(--ink-2); }   /* low specificity: one class on a <p> recolours it */
:where(.card.glass--dark) p { color: rgba(255, 255, 255, .88); }
.card--link { text-decoration: none; color: inherit; transition: transform .5s var(--spring), box-shadow .5s var(--ease); }
.card--link:hover { transform: translateY(-4px); }
.feature { --tint-a: rgba(255, 255, 255, .62); --tint-b: rgba(255, 255, 255, .42); gap: var(--sp-4); }
.feature-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); box-shadow: none; }
.feature-icon img { width: 60%; height: 60%; object-fit: contain; filter: brightness(0) invert(1); }
@media (forced-colors: active) { .feature-icon { border: 1px solid CanvasText; } .feature-icon img { filter: none; } }
.feature-title { font: 900 clamp(22px, 2vw, 30px)/1.2 var(--font-display); color: var(--ink); }
.feature-body { color: var(--ink-2); }
.feature-body .rich > p:first-child strong:only-child { color: var(--ink); }
.feature-cta { margin-block-start: auto; padding-block-start: var(--sp-3); }

/* ---------------------------------------------------------------- 11 · steps timeline + numbered list */
.tl-wrap { position: relative; --gap: clamp(12px, 1.6vw, 24px); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: var(--gap); padding-block-start: 30px; }
.tl-line { position: absolute; inset-inline: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(10, 31, 68, .14); }
.tl-wrap--dark .tl-line { background: rgba(255, 255, 255, .2); }
.tl-fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transform: scaleX(var(--p, 1)); transform-origin: left center;
}
[dir="rtl"] .tl-fill { transform-origin: right center; }
.tl-wrap--dark .tl-fill { background: linear-gradient(90deg, #c4a8ff, #9fb6ff 40%, #fff); box-shadow: 0 0 18px rgba(159, 182, 255, .9); }
[dir="rtl"] .tl-wrap--dark .tl-fill { background: linear-gradient(270deg, #c4a8ff, #9fb6ff 40%, #fff); }
.tl-step { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tl-node {
  position: absolute; z-index: 2; top: -37px; inset-inline-start: clamp(18px, 2vw, 28px);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--night); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.tl-num {
  position: relative; z-index: 0; display: block;
  padding-inline: clamp(14px, 1.6vw, 24px);
  margin-block-end: -.22em; /* ~25% of the glyph sits behind the glass — 75% stays crisp */
  font: 600 clamp(72px, 7.6vw, 128px)/.8 var(--font-display);
  letter-spacing: -.055em; text-align: start;
  direction: ltr; unicode-bidi: isolate;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tl-num { text-align: left; }
[dir="rtl"] .tl-num { text-align: right; } /* the numeral is an LTR island (its own logical props resolve LTR): align by page direction */
.tl-wrap--dark .tl-num { color: #fff; text-shadow: 0 0 40px rgba(159, 182, 255, .55); }
.tl-card {
  position: relative; z-index: 1; flex: 1;
  min-height: clamp(170px, 16vw, 230px);
  padding: clamp(18px, 2vw, 28px);
  border-radius: clamp(24px, 2.2vw, 32px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-3);
}
.tl-title { font: 700 clamp(18px, 1.55vw, 23px)/1.35 var(--font-body); text-wrap: balance; }
.tl-body { font-size: 15.5px; line-height: 1.6; opacity: .9; }
.tl-ring {
  position: absolute; top: clamp(16px, 1.6vw, 24px); inset-inline-end: clamp(16px, 1.6vw, 24px);
  width: clamp(38px, 3.2vw, 50px); height: auto; transform: rotate(-90deg);
}
[dir="rtl"] .tl-ring { transform: rotate(-90deg) scaleY(-1); } /* arcs sweep with the reading direction */
.tl-ring circle { fill: none; stroke-width: 3.6; }
.tl-ring .track { stroke: rgba(10, 31, 68, .14); }
.tl-ring .arc { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: var(--p) 100; transition: stroke-dasharray 1.4s var(--ease) calc(var(--n) * .12s + .2s); }
.tl-wrap--dark .tl-ring .track { stroke: rgba(255, 255, 255, .3); }
.tl-wrap--dark .tl-ring .arc { stroke: #fff; }
.tl-ring .arc--glow { stroke: rgba(35, 67, 246, .16); stroke-width: 8; } /* glow as a stroke: a CSS filter here tiles a square over the refracted card */
.tl-wrap--dark .tl-ring .arc--glow { stroke: rgba(143, 182, 255, .5); }
/* a step without a caption: the arc carries the card, around a clear refracting bead */
.tl-step--quiet .tl-card { justify-content: center; align-items: center; }
.tl-step--quiet .tl-ring { position: absolute; inset: 0; margin: auto; width: clamp(96px, 9vw, 132px); }
.tl-bead {
  position: relative; width: clamp(58px, 5.4vw, 80px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 62% 72%, rgba(159, 182, 255, .55), rgba(20, 82, 209, .28) 58%, rgba(255, 255, 255, .06) 80%);
  -webkit-backdrop-filter: blur(3px) saturate(1.6) brightness(1.15); backdrop-filter: blur(3px) saturate(1.6) brightness(1.15);
  box-shadow: inset 0 -8px 18px rgba(10, 31, 68, .25), inset 0 3px 8px rgba(255, 255, 255, .55), 0 0 0 1px rgba(255, 255, 255, .35), 0 18px 40px -10px rgba(20, 82, 209, .8);
}
.tl-bead i { position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); animation: halo 3.2s var(--ease) infinite; }
@keyframes halo { from { transform: scale(.82); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
/* lit state (all lit by default; site.js sequences them with scroll when .is-live) */
.tl-step .tl-node { background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 0 22px 4px rgba(159, 182, 255, .9); }
.js .is-live .tl-step:not(.on) .tl-node { background: var(--night); box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.tl-wrap:not(.tl-wrap--dark) .tl-step .tl-node { background: var(--blue); box-shadow: 0 0 0 5px rgba(35, 67, 246, .16), 0 0 18px 2px rgba(35, 67, 246, .45); }
.js .tl-wrap:not(.tl-wrap--dark).is-live .tl-step:not(.on) .tl-node { background: #fff; box-shadow: 0 0 0 2px rgba(10, 31, 68, .22); }
.js .is-live .tl-step:not(.on) .tl-num { opacity: .5; text-shadow: none; }
.js .is-live .tl-step:not(.on) .tl-ring .arc { stroke-dasharray: 0 100; }
.js .is-live .tl-step .tl-num { transition: opacity .6s var(--ease), text-shadow .6s var(--ease); }

.num-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); counter-reset: n; }
.num-list li { display: flex; align-items: flex-start; gap: var(--sp-4); }
.num-badge {
  flex: none; display: grid; place-items: start; min-width: 1.4em; padding-block-start: 1px;
  font: 600 15px/1.7 var(--font-display); font-variant-numeric: tabular-nums; color: var(--blue);
  background: none; box-shadow: none;
}
.num-text { color: var(--ink-2); }
/* numbered(auto=False): an item the content does not number gets no numeral at all (v2: no beads) */
.num-badge--bead { display: none; }
.num-list--ruled { gap: 0; }
.num-list--ruled li { padding-block: 12px; border-block-start: 1px solid rgba(10, 31, 68, .13); }

/* ---------------------------------------------------------------- 12 · stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.stat { border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.stat-num {
  font: 600 clamp(52px, 6vw, 92px)/1 var(--font-display); letter-spacing: -.05em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.stat-num .c-brand { color: inherit; }
.stat-num strong { font-weight: 600; }
.stat-label { margin-block-start: 10px; font: 500 clamp(14.5px, 1.15vw, 17px)/1.45 var(--font-body); color: var(--ink); text-wrap: balance; }
.stat--orb { border-radius: 50%; aspect-ratio: 1; padding: 0 8%; align-items: center; }
.stat--orb .stat-label { align-self: stretch; margin-inline: auto; max-width: 15em; font-size: clamp(13.5px, 1.15vw, 17px); }

/* ---------------------------------------------------------------- 13 · logo marquee */
.marquee { position: relative; }
.marquee-viewport {
  position: relative; overflow: hidden;
  padding-block: clamp(30px, 3.6vw, 52px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.marquee-field {
  position: absolute; inset: 22% 0; pointer-events: none;
  background:
    radial-gradient(22% 90% at 8% 50%, rgba(35, 67, 246, .75), transparent 72%),
    radial-gradient(20% 90% at 30% 50%, rgba(20, 82, 209, .7), transparent 72%),
    radial-gradient(18% 90% at 52% 50%, rgba(92, 200, 255, .6), transparent 72%),
    radial-gradient(20% 90% at 74% 50%, rgba(20, 82, 209, .7), transparent 72%),
    radial-gradient(22% 90% at 96% 50%, rgba(35, 67, 246, .75), transparent 72%);
  filter: blur(18px);
  animation: field 20s ease-in-out infinite alternate;
}
@keyframes field { to { background-position: -60px 0; opacity: .8; } }
.logo-tile {
  --tint-a: rgba(255, 255, 255, .76); --tint-b: rgba(255, 255, 255, .54); --blur: 14px;
  flex: none; display: grid; place-items: center;
  width: clamp(150px, 15vw, 224px); aspect-ratio: 16 / 10;
  border-radius: clamp(22px, 2vw, 30px);
  box-shadow: inset 0 1px .5px #fff, inset 0 -1px 1px rgba(255, 255, 255, .5), inset 0 -20px 30px -22px rgba(255, 255, 255, .7), 0 16px 34px -18px rgba(10, 31, 68, .45);
}
.logo-img { width: 80%; height: 74%; object-fit: cover; filter: url(#ko-ink); opacity: .94; transition: scale .6s var(--spring); }
.logo-tile--contain .logo-img { object-fit: contain; height: 84%; }
.logo-tile:hover .logo-img { filter: url(#ko-blue); scale: 1.05; }
/* static cluster (no JS / reduced motion / paused-by-default): 7 in a row, 4+3 on tablet, 2-3-2 on phones */
.logo-wall { position: relative; list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.logo-wall .logo-tile { width: auto; }
/* running loop: site.js places each tile inside the rail (it folds into the edge instead of leaving it) */
.marquee.is-running .marquee-viewport { padding-inline: 0; }
.marquee.is-running .marquee-track { position: relative; display: block; max-width: none; margin: 0; padding: 0; height: var(--th, 140px); }
.marquee.is-running .logo-tile { position: absolute; top: 0; left: 0; width: clamp(150px, 15vw, 224px); transform-origin: 0 50%; will-change: transform, opacity; }
.marquee-controls { display: flex; justify-content: center; margin-block-start: -8px; }
.marquee-toggle[hidden] { display: none; }
.marquee-toggle .i { width: 14px; height: 14px; }
html:not(.js) .marquee-viewport, .marquee:not(.is-running) .marquee-viewport { -webkit-mask-image: none; mask-image: none; }

/* ---------------------------------------------------------------- 14 · chapter (dark window over the graded still) */
.chapter { position: relative; padding-inline: var(--inset); --focus: #fff; }
.chapter-window {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 76px) clamp(18px, 4.4vw, 72px);
  background: var(--night); color: #fff;
  box-shadow: 0 50px 110px -50px rgba(10, 31, 68, .7), 0 0 0 1px rgba(255, 255, 255, .3);
}
.chapter-window::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.chapter-bg {
  position: absolute; top: -32px; left: 0; z-index: -2; width: 100%; height: calc(100% + 64px); object-fit: cover;
  object-view-box: inset(3%);
  filter: grayscale(1) contrast(1.25) brightness(.85);
  transform: scaleY(-1) translateY(var(--py, 0px));
}
.chapter-grade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(143, 178, 255, .5), rgba(143, 178, 255, 0) 70%),
    linear-gradient(160deg, rgba(35, 67, 246, .86) 0%, rgba(20, 82, 209, .82) 45%, rgba(8, 24, 56, .93) 100%);
  mix-blend-mode: multiply;
}
.chapter-grade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 110%, rgba(20, 82, 209, .55), rgba(20, 82, 209, 0) 70%); mix-blend-mode: screen; }
.chapter-inner { position: relative; max-width: var(--maxw); margin-inline: auto; }
.chapter-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-7); margin-block-end: clamp(44px, 5.4vw, 80px); }
.chapter-title { font: 900 clamp(44px, 6.6vw, 104px)/.98 var(--font-display); letter-spacing: -.016em; color: #fff; text-shadow: 0 2px 30px rgba(6, 16, 40, .4); }
.chapter-sub { max-width: 17em; padding-block-end: .3em; font: 500 clamp(18px, 1.7vw, 25px)/1.45 var(--font-body); color: rgba(255, 255, 255, .92); text-wrap: balance; }

/* pinned chapter (chapter(pin=True)): the window sticks while ~75vh scroll past and its steps light in sequence */
@media (min-width: 1021px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .chapter--pin { height: 175vh; }
  .chapter--pin .chapter-pin {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: flex; align-items: center;
    padding-block: calc(12px + 58px + 18px) var(--inset);
  }
  .chapter--pin .chapter-window { width: 100%; height: 100%; max-height: 820px; display: grid; align-content: center; }
}

/* ---------------------------------------------------------------- 15 · media frame */
.frame { align-self: start; border-radius: var(--r-lg); padding: clamp(8px, .9vw, 12px); --tint-a: rgba(255, 255, 255, .6); --tint-b: rgba(255, 255, 255, .36); }
.bento-cell > .frame, .grid-item > .frame { position: sticky; top: calc(12px + 58px + 24px); }
.frame-media { position: relative; overflow: hidden; border-radius: calc(var(--r-lg) - 8px); background: rgba(255, 255, 255, .3); }
.frame--ratio .frame-media { aspect-ratio: var(--ratio); }
.frame-media > img, .frame-media > video { width: 100%; height: 100%; object-fit: cover; }
.frame-cap { padding: 12px 10px 4px; font-size: var(--fs-small); color: var(--ink-3); text-align: center; }

/* ---------------------------------------------------------------- 16 · gallery + lightbox */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  grid-auto-rows: clamp(150px, 15vw, 210px); grid-auto-flow: dense; gap: clamp(10px, 1.2vw, 16px);
}
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.gallery-link {
  position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--r-md);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 18px 40px -22px rgba(10, 31, 68, .55);
}
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease), filter .6s; }
.gallery-link:hover img { scale: 1.045; }
.gallery-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .25); pointer-events: none; }
.gallery-zoom {
  position: absolute; bottom: 12px; inset-inline-end: 12px; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -6px rgba(10, 31, 68, .4);
  opacity: 0; transform: scale(.8); transition: opacity .35s, transform .45s var(--spring);
}
.gallery-zoom .i { width: 18px; height: 18px; }
.gallery-link:hover .gallery-zoom, .gallery-link:focus-visible .gallery-zoom { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #fff; overflow: hidden; --focus: #fff;
}
/* .64: the white 14px counter stays above 6:1 over any light page, whatever is open */
.lightbox::backdrop { background: rgba(10, 31, 68, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
/* v2: no ambient "lit room" (site.js still sets --amb; unused) */
.lb-stage img, .lb-stage video { background: var(--night); border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 30px 70px -30px rgba(0, 0, 0, .7); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px max(16px, env(safe-area-inset-right)) 0; }
.lb-count { font: 600 14px/1 var(--font-display); letter-spacing: .04em; opacity: .9; padding-inline: 8px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 12px clamp(12px, 6vw, 96px); container-type: size; }
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain;
  border-radius: clamp(14px, 1.6vw, 24px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .25);
  background: #000;
}
/* films fill the stage at their true aspect (site.js hands over --ar from the tile), in either orientation */
.lb--video .lb-stage video {
  width: min(100cqw, 100cqh * var(--ar, 1.7778), 1320px); height: auto; aspect-ratio: var(--ar, auto);
  max-width: none; max-height: 100cqh;
}
.lb-cap { padding: 0 16px 20px; text-align: center; font: 500 16px/1.5 var(--font-body); min-height: 1.5em; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  transition: background .25s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-btn .i { width: 22px; height: 22px; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { inset-inline-start: clamp(8px, 2vw, 28px); }
.lb-next { inset-inline-end: clamp(8px, 2vw, 28px); }
[dir="rtl"] .lb-prev .i, [dir="ltr"] .lb-next .i { transform: none; }
[dir="ltr"] .lb-prev .i { transform: scaleX(-1); }
[dir="rtl"] .lb-next .i { transform: scaleX(-1); }
.lb-nav[hidden] { display: none; }
html.lb-lock { overflow: hidden; }

/* ---------------------------------------------------------------- 17 · video tiles */
.vtiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.vtile-link { display: flex; flex-direction: column; gap: 12px; height: 100%; color: inherit; text-decoration: none; border-radius: var(--r-lg); }
.vtile-media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg);
  background: var(--night);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 22px 46px -24px rgba(10, 31, 68, .6);
}
.vtiles .vtile-media { aspect-ratio: 4 / 5; } /* one shape for all tiles; landscape covers crop to centre */
.vtile-img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.vtile-img--blank { display: block; background: linear-gradient(140deg, #2343f6, #1452d1 60%, #0a1f44); }
.vtile-link:hover .vtile-img { scale: 1.05; }
.vtile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 40, 0) 50%, rgba(10, 8, 40, .45)); pointer-events: none; }
.vtile-play {
  position: absolute; z-index: 2; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: transform .45s var(--spring);
}
.vtile-play::before, .vtile-play::after { content: none; }
.vtiles .vtile:not(.vtile--portrait) .vtile-img { object-fit: contain; }
.vtile-play .i { width: 26px; height: 26px; margin-inline-start: 3px; }
[dir="rtl"] .vtile-play .i { margin-inline-start: 0; margin-inline-end: 3px; }
.vtile-link:hover .vtile-play { transform: scale(1.1); }
.vtile-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: 6px; }
.vtile-title { font: 700 18px/1.35 var(--font-display); color: var(--ink); }
.vtile-dur { display: inline-flex; align-items: center; gap: 5px; flex: none; font: 600 13.5px/1 var(--font-display); color: var(--ink-3); font-variant-numeric: tabular-nums; direction: ltr; }
.vtile-dur .i { width: 15px; height: 15px; }
.vtile--soon .vtile-img { filter: grayscale(.6) blur(2px) brightness(.8); scale: 1.06; }
.vtile-soon {
  position: absolute; z-index: 2; inset-inline: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 999px;
  font: 600 14.5px/1.3 var(--font-body); color: var(--ink);
  --tint-a: rgba(255, 255, 255, .82); --tint-b: rgba(255, 255, 255, .66); --blur: 14px;
}
.vtile-soon-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); flex: none; }
.vtile-soon-icon .i { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- 18 · blog: cards, meta, article, prose */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.posts > li { display: grid; }
.post-card { border-radius: var(--r-lg); padding: 10px; --tint-a: rgba(255, 255, 255, .7); --tint-b: rgba(255, 255, 255, .52); transition: transform .5s var(--spring); }
.post-card:hover { transform: translateY(-4px); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: calc(var(--r-lg) - 6px); }
.post-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--r-lg) - 8px); background: linear-gradient(140deg, #2343f6, #1452d1 70%); }
.post-card-img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.post-card:hover .post-card-img { scale: 1.04; }
.post-card-ph { position: absolute; inset: 0; background: var(--night); }
.post-card-ph i, .post-card-ph i::after { display: none; }
.post-card-ph i { position: absolute; width: 42%; aspect-ratio: 1; inset-inline-end: 9%; top: 50%; translate: 0 -50%; border-radius: 50%; border: 10px solid rgba(255, 255, 255, .85); box-shadow: 0 0 40px rgba(255, 255, 255, .4); }
.post-card-ph i::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff; top: -24%; inset-inline-end: -24%; }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 12px 12px; }
.post-card-title { font: 700 clamp(19px, 1.5vw, 22px)/1.35 var(--font-display); color: var(--ink); text-wrap: balance; }
.post-card-excerpt { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-more { margin-block-start: auto; padding-block-start: 6px; display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font-body); color: var(--blue); }
.post-card-more .i { width: 18px; height: 18px; transition: translate .4s var(--spring); }
.post-card:hover .post-card-more .i { translate: 4px 0; }
[dir="rtl"] .post-card:hover .post-card-more .i { translate: -4px 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font: 500 14px/1.4 var(--font-body); color: var(--ink-3); }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .i { width: 16px; height: 16px; color: var(--blue); }
.post-author img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.post-author span { font-weight: 700; color: var(--ink); }

.article { position: relative; padding: calc(var(--nav-top) + var(--bar-h) + 36px) var(--gutter) var(--sec-y); }
.article-sheet { max-width: 52rem; margin-inline: auto; border-radius: var(--r-xl); padding: clamp(26px, 5vw, 72px) clamp(20px, 5vw, 76px); --tint-a: rgba(255, 255, 255, .8); --tint-b: rgba(255, 255, 255, .7); }
.article-title { font: 900 clamp(32px, 4.4vw, 56px)/1.12 var(--font-display); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; margin-block: 4px 18px; }
.article-cover { margin-block: clamp(22px, 3vw, 36px); }
.prose { font: 400 clamp(17px, 1.25vw, 18.5px)/1.9 var(--font-body); color: var(--ink-2); }
.prose > * + * { margin-block-start: 1.05em; }
.prose h2 { margin-block-start: 1.9em; font: 900 clamp(24px, 2.4vw, 32px)/1.25 var(--font-display); color: var(--ink); }
.prose h3 { margin-block-start: 1.6em; font: 700 clamp(20px, 1.8vw, 24px)/1.35 var(--font-display); color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-block-start: .55em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-underline-offset: .22em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-block-start: .4em; }
.prose li::marker { color: var(--blue); }
.prose .bullet { padding-inline-start: 1.1em; text-indent: -1.1em; }
.prose blockquote {
  position: relative; margin-inline: 0; padding: 18px 26px; border-radius: var(--r-md);
  font: 500 1.12em/1.7 var(--font-body); color: var(--ink);
  background: linear-gradient(180deg, rgba(232, 240, 255, .8), rgba(255, 255, 255, .5));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(20, 82, 209, .12);
  border-inline-start: 4px solid var(--violet);
}
.prose-figure { margin-block: 1.8em; }
.prose-figure img { width: 100%; border-radius: var(--r-md); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), 0 24px 50px -26px rgba(10, 31, 68, .55); }
.prose-figure figcaption { margin-block-start: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); text-align: center; }

/* ---------------------------------------------------------------- 19 · empty state + file rows */
.empty {
  max-width: 44rem; margin-inline: auto; text-align: center;
  border-radius: var(--r-xl); padding: clamp(36px, 5vw, 72px) clamp(22px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
  --tint-a: rgba(255, 255, 255, .66); --tint-b: rgba(255, 255, 255, .48);
}
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; color: #fff; background: var(--night); box-shadow: none; }
.empty-icon .i { width: 32px; height: 32px; }
.empty-title { font: 900 clamp(24px, 2.6vw, 34px)/1.25 var(--font-display); color: var(--ink); text-wrap: balance; }
.empty-text { color: var(--ink-2); max-width: 36em; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); margin-block-start: var(--sp-3); }

.files { list-style: none; margin: 0; padding: 8px; border-radius: var(--r-lg); --tint-a: rgba(255, 255, 255, .7); --tint-b: rgba(255, 255, 255, .55); }
.file-row { display: flex; align-items: center; gap: var(--sp-4); padding: 12px 12px; border-radius: calc(var(--r-lg) - 8px); transition: background .3s; }
.file-row + .file-row { border-block-start: 1px solid rgba(10, 31, 68, .07); }
.file-row:hover { background: rgba(255, 255, 255, .6); }
.file-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--blue); background: linear-gradient(180deg, #fff, rgba(232, 240, 255, .8)); box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(10, 31, 68, .45); }
.file-row--folder .file-icon { color: var(--violet); }
.file-icon .i { width: 22px; height: 22px; }
.file-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-name { font: 600 16.5px/1.35 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.file-meta { font-size: 14px; color: var(--ink-3); }
.file-act { flex: none; }

/* ---------------------------------------------------------------- 20 · CTA band */
.cta-band { position: relative; padding: var(--sec-y) var(--gutter); }
.cta-band-field { display: none; } /* v2: no colour fields */
.cta-band-inner {
  max-width: var(--maxw); margin-inline: auto; border-radius: var(--r-xl);
  padding: clamp(30px, 4.4vw, 64px) clamp(24px, 5vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-6);
  --tint-a: rgba(255, 255, 255, .58); --tint-b: rgba(255, 255, 255, .4);
}
.cta-band-copy { max-width: 40rem; }
.cta-band-title { font: 900 clamp(30px, 3.8vw, 56px)/1.08 var(--font-display); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.cta-band-title strong { color: var(--blue); font-weight: inherit; }
.cta-band-text { margin-block-start: 12px; font: 500 var(--fs-lead)/1.5 var(--font-body); color: var(--ink-2); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------------------------------------------------------------- 21 · contact + form */
.contact { position: relative; padding-block: clamp(72px, 8vw, 128px) clamp(56px, 7vw, 100px); }
.contact-field {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(closest-side, rgba(35, 67, 246, .5), transparent) no-repeat left -10vw top 26% / 46vw 46vw,
    radial-gradient(closest-side, rgba(92, 200, 255, .42), transparent) no-repeat right 18vw bottom -6% / 38vw 38vw;
}
[dir="rtl"] .contact-field { background-position: right -10vw top 26%, left 18vw bottom -6%; }
.contact-ring {
  position: absolute; display: block; width: min(540px, 78vw); aspect-ratio: 1; border-radius: 50%;
  top: clamp(120px, 14vw, 220px); inset-inline-end: max(0px, calc(50% - 660px));
  /* closes on the colour it opens with, so the turning band has no hard seam where the conic wraps */
  background: conic-gradient(from var(--turn), var(--blue), var(--violet) 18%, var(--lilac) 36%, var(--sky) 54%, var(--blue) 72%, var(--violet) 87%, var(--blue));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 46px), #000 calc(100% - 45px), #000 calc(100% - 1px), transparent);
  mask: radial-gradient(farthest-side, transparent calc(100% - 46px), #000 calc(100% - 45px), #000 calc(100% - 1px), transparent);
  animation: turn 48s linear infinite;
}
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes turn { to { --turn: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
/* oversized title, its lower third tucked behind the glass panel (plain blur — no displacement on glyphs) */
.contact-title {
  position: relative; z-index: 0;
  font: 900 clamp(68px, 13.4vw, 216px)/.86 var(--font-display); letter-spacing: -.03em;
  margin-block-end: -.32em; padding-inline: clamp(8px, 2vw, 32px);
  white-space: nowrap;
}
.contact-title-in {
  display: inline-block; translate: var(--tx, 0) 0; padding-block-end: .08em;
  background: linear-gradient(180deg, var(--ink) 38%, #2a2a9a 74%, var(--blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contact-panel {
  --tint-a: rgba(255, 255, 255, .6); --tint-b: rgba(255, 255, 255, .44); --blur: 22px;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5.4vw, 84px) clamp(24px, 5vw, 76px) clamp(28px, 4.4vw, 64px);
  border-radius: clamp(32px, 3.6vw, 54px);
}
.contact-lines { display: grid; gap: 10px; justify-items: start; }
.contact-lines br { display: none; }
.contact-row {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  padding: 6px; padding-inline-end: 16px; border-radius: 999px;
  font: 500 clamp(18px, 1.6vw, 23px)/1.3 var(--font-body); color: var(--ink); text-decoration: none;
  transition: background .3s;
}
.contact-row bdi { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
a.contact-row:hover { background: rgba(255, 255, 255, .62); }
.row-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; color: var(--blue);
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px rgba(10, 31, 68, .06), 0 8px 18px -10px rgba(10, 31, 68, .5);
}
.row-icon .i { width: 21px; height: 21px; }
.contact-social { margin-block-start: clamp(20px, 2.4vw, 32px); }

.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 14px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; display: block; margin: 0; border: 0; outline: none; appearance: none;
  padding: 27px 20px 11px; border-radius: 20px;
  font: 500 17px/1.4 var(--font-body); color: var(--ink);
  background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 2px 4px rgba(10, 31, 68, .13), inset 0 0 0 1px rgba(20, 40, 90, .14), 0 1px 0 rgba(255, 255, 255, .95);
  transition: box-shadow .3s var(--ease), background .3s;
}
.field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; } /* LTR value in an RTL form still hugs the RTL start */
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field label {
  position: absolute; top: 19px; inset-inline-start: 21px;
  font: 500 17px/1.2 var(--font-body); color: var(--ink-3);
  transform-origin: right top; pointer-events: none;
  transition: transform .35s var(--ease), color .3s;
}
[dir="ltr"] .field label { transform-origin: left top; }
[dir="ltr"] .field label[dir="rtl"] { inset-inline-start: auto; inset-inline-end: 21px; transform-origin: left top; } /* hebrew label on an LTR page: sits at the page's start */
.field .req { color: var(--blue); margin-inline-start: 3px; }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.74); color: var(--blue); }
.field input:focus, .field textarea:focus { background: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 2px rgba(10, 31, 68, .06), 0 0 0 1.5px var(--blue), 0 0 0 6px rgba(35, 67, 246, .16); }
.field input[aria-invalid="true"] { box-shadow: inset 0 1px 2px rgba(10, 31, 68, .06), 0 0 0 1.5px var(--err), 0 0 0 6px rgba(180, 21, 63, .12); }
.field-err { display: flex; align-items: center; gap: 6px; margin-block-start: 8px; padding-inline: 8px; font: 600 14.5px/1.3 var(--font-body); color: var(--err); }
.field-err[hidden] { display: none; }
.field-err .i { width: 17px; height: 17px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-block-start: 8px; }
.form-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  font: 700 16px/1.3 var(--font-body);
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .74));
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -12px rgba(10, 31, 68, .4);
  animation: pop .6s var(--spring);
}
.form-status--ok { color: var(--ok); }
.form-status--err { color: var(--err); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status .i { width: 20px; height: 20px; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }

/* ---------------------------------------------------------------- 22 · footer */
.site-footer { padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.footer-bar {
  --tint-a: rgba(255, 255, 255, .72); --tint-b: rgba(255, 255, 255, .54);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding-block: 12px; padding-inline: 26px 12px;
  border-radius: 999px;
}
.footer-logo { flex: none; border-radius: 10px; }
.footer-logo img { height: 32px; }
/* 9 links: inline-blocks on balanced lines, so a wrap evens the rows out (5 + 4, never 8 + 1); line-height 0 keeps
   the strut out of the rows, the links carry their own line-height */
.footer-nav { margin-inline: auto; text-align: center; text-wrap: balance; line-height: 0; }
.footer-nav a { display: inline-block; vertical-align: top; margin: 1px; padding: 9px 12px; border-radius: 999px; font: 500 14.5px/1.2 var(--font-body); color: var(--ink); text-decoration: none; transition: background .3s; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { background: rgba(255, 255, 255, .72); }
.footer-nav a[lang="en"] { font-family: var(--font-display); }
.footer-tools { display: flex; gap: 6px; flex: none; }

/* ---------------------------------------------------------------- 23 · floating WhatsApp */
.wa {
  position: fixed; z-index: 45;
  bottom: calc(clamp(16px, 2vw, 26px) + env(safe-area-inset-bottom));
  inset-inline-end: calc(clamp(16px, 2vw, 26px) + env(safe-area-inset-right));
  --foreground: #053a1f; --background: #ffffff;
  transition: transform .5s var(--ease), opacity .4s, visibility 0s;
}
.wa::before { /* green body under the clear glass */
  content: ""; position: absolute; inset: 3px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, #3ee07c, #1ba84f 70%);
  box-shadow: 0 14px 30px -12px rgba(9, 110, 52, .65);
}
.wa .glass-button-text svg { width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 60, 25, .35)); }
.js .wa:not(.is-on) { transform: translateY(140%) scale(.8); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility 0s .5s; }

/* ---------------------------------------------------------------- 24 · 404 */
.nf { position: relative; min-height: calc(100vh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--sp-4); padding: calc(var(--nav-top) + var(--bar-h) + 30px) var(--gutter) var(--sec-y); }
.nf-field { display: none; } /* v2: no colour field behind the 404 lens */
.nf-lens { --size: min(300px, 64vw); --tint-a: rgba(255, 255, 255, .4); }
.nf-code { font: 600 calc(var(--size) * .3)/1 var(--font-display); letter-spacing: -.05em; color: var(--blue); }
.nf-title { margin-block-start: var(--sp-4); font: 900 clamp(30px, 4vw, 52px)/1.1 var(--font-display); }
.nf-text { color: var(--ink-2); font-size: var(--fs-lead); max-width: 30em; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-5); margin-block-start: var(--sp-4); }
.nf-alt { text-align: center; padding-block-end: var(--sp-7); color: var(--ink-2); }
.nf-alt a { color: var(--blue); }

/* ---------------------------------------------------------------- 25 · reveal (JS only — never hides content without it)
   Opacity lives on the glass element itself, never on an ancestor of glass (that would make it a backdrop root). */
.js [data-reveal] { transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
/* only the hidden state sets opacity/transform: once revealed (.in) an element keeps its own rules, so a card's
   :hover lift works again (a revealed-state 'transform: none' at 0,3,0 used to out-rank every hover) */
.js [data-reveal]:not(.in) { opacity: 0; transform: translate3d(0, 28px, 0) scale(.985); }

/* ---------------------------------------------------------------- 26 · responsive */
/* the inline row at 1080–1279px (Hebrew; English from 1200px): the capsule widens to the inset and the links
   tighten to 14px with 9px pads (never below 14px); budget in tools/layout.py NAV_SHEET_MAX */
@media (max-width: 1279px) {
  :root { --sheet-x: calc(var(--inset) + 8px); --sheet-xc: 16px; } /* the sheet lines up with the bar's edge */
  .nav-bar { width: calc(100% - 2 * var(--inset) - 16px); }
  html:not(.nav-sheet) .nav-links a { font-size: 14px; padding-inline: 9px; }
}
@media (max-width: 1079px) {
  :root { --bar-h: 60px; --bar-hc: 56px; --sheet-x: calc(var(--inset) + 4px); --sheet-xc: 12px; }
  .nav-bar, .site-header.is-condensed .nav-bar { width: calc(100% - 2 * var(--inset) - 8px); height: var(--bar-h); padding-inline: 18px 9px; border-radius: 30px; }
  .site-header.is-condensed .nav-bar { width: calc(100% - 24px); height: var(--bar-hc); }
  .nav-logo img, .is-condensed .nav-logo img { height: 40px; }
  .nav-lens { display: none; }
  .page-hero { padding-block-start: calc(var(--nav-top) + var(--bar-h) + 14px); }
}
/* no JS (so no sheet): wherever the inline row may not fit (<= 1199px, either language) the links become a
   scrollable row under the capsule, so every link stays reachable */
@media (max-width: 1199px) {
  html:not(.js) .site-header { position: absolute; }
  html:not(.js) .nav-bar { flex-wrap: wrap; height: auto; padding-block: 8px; row-gap: 4px; border-radius: 30px; }
  html:not(.js) .nav-tools { margin-inline-start: auto; }
  html:not(.js) .nav-lens { display: none; }
  html:not(.js) .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0; padding-block-end: 4px; }
  html:not(.js) .nav-links a { padding: 9px 12px; }
  html:not(.js) .page-hero { padding-block-start: calc(var(--nav-top) + var(--bar-h) + 62px); } /* the nav row wraps under the capsule (~+46px) */
}
/* very narrow phones (320–359px): the logo keeps its 40px (BRIEF), so the bar widens a little and the three
   tool chips tighten to 38px — the menu button stays inside the capsule (it was clipped at the inline end) */
@media (max-width: 359px) {
  :root { --sheet-x: var(--inset); --sheet-xc: var(--inset); }
  .nav-bar, .site-header.is-condensed .nav-bar { width: calc(100% - 2 * var(--inset)); gap: 8px; padding-inline: 14px 6px; }
  .nav-tools { gap: 4px; }
  .nav-tools .chip { height: 38px; min-width: 38px; }
  .nav-tools .chip--lang { padding-inline: 9px; }
}
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5 { grid-column: span 3; }
  .span-6, .span-7, .span-8, .span-12 { grid-column: span 6; }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; padding-block-start: 0; }
  .tl-line, .tl-node { display: none; }
  .logo-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); max-width: 760px; }
  .logo-wall .logo-tile { grid-column: span 2; }
  .logo-wall .logo-tile:nth-child(5) { grid-column: 2 / span 2; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .footer-bar { flex-wrap: wrap; justify-content: center; border-radius: 34px; padding: 18px; }
  .footer-nav { order: 3; flex-basis: 100%; }
  .footer-logo { margin-inline-end: auto; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --fs-body: 16.5px; --lap: 56px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bento-cell, .bento-cell[class*="span-"] { grid-column: 1 / -1; }
  .bento-cell.m-half { grid-column: span 1; }
  .rows-2 { grid-row: auto; }
  .g-wide { grid-column: auto; }
  .vtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .vtile-meta { flex-direction: column; align-items: flex-start; gap: 4px; padding-inline: 4px; }
  .vtile-title { font-size: 15.5px; }
  .vtile-play { width: 52px; height: 52px; }
  .vtile-soon { inset-inline: 8px; bottom: 8px; padding: 6px 10px 6px 6px; font-size: 12.5px; gap: 6px; }
  .vtile-soon-icon { width: 26px; height: 26px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .gallery .g-wide { grid-column: span 2; }
  /* steps: a vertical lit timeline */
  .tl-wrap { padding-inline-start: 26px; }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tl-line { display: block; inset-inline: auto; inset-inline-start: 6px; top: 26px; bottom: 26px; width: 2px; height: auto; }
  .tl-fill, [dir="rtl"] .tl-fill { transform: scaleY(var(--p, 1)); transform-origin: center top; }
  .tl-wrap--dark .tl-fill, [dir="rtl"] .tl-wrap--dark .tl-fill { background: linear-gradient(180deg, #fff, #9fb6ff 60%, #c4a8ff); }
  .tl-node { display: block; top: 30px; inset-inline-start: -26px; }
  .tl-step { flex-direction: row; align-items: stretch; }
  .tl-num { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; left: 18px; margin: 0; padding: 0; font-size: 50px; line-height: 1; pointer-events: none; }
  [dir="rtl"] .tl-num { left: auto; right: 18px; }
  .tl-card { min-height: 92px; padding: 18px 20px; padding-inline-start: 98px; padding-inline-end: 64px; justify-content: center; border-radius: 24px; }
  .tl-title { font-size: 18px; }
  .tl-ring { top: 50%; translate: 0 -50%; inset-inline-end: 16px; width: 36px; }
  .tl-step--quiet .tl-card { align-items: flex-start; }
  .tl-step--quiet .tl-ring { inset: auto; top: 50%; inset-inline-end: 16px; margin: 0; width: 36px; }
  .tl-bead { width: 46px; }
  .logo-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-inline: 16px; }
  .logo-wall .logo-tile, .logo-wall .logo-tile:nth-child(5) { grid-column: span 2; }
  .logo-wall .logo-tile:nth-child(1), .logo-wall .logo-tile:nth-child(6) { grid-column: 2 / span 2; }
  .logo-wall .logo-tile { border-radius: 18px; }
  .contact-title { font-size: clamp(52px, 15.4vw, 96px); margin-block-end: -.2em; padding-inline: 4px; }
  .contact-panel { padding: 30px 18px 22px; border-radius: 32px; gap: 28px; }
  .contact-row { font-size: 18px; gap: 12px; }
  .row-icon { width: 42px; height: 42px; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .form-actions > .cta-pool, .form-actions .cta-pool .glass-button-wrap, .form-actions .cta-pool .glass-button { display: block; width: 100%; }
  .site-footer { padding-inline: 12px; }
  .footer-nav a { font-size: 14px; padding: 8px 10px; }
  .chapter-window { padding: 44px 16px 22px; border-radius: 30px; }
  .chapter-head { margin-block-end: 30px; gap: 10px; }
  .lb-nav { top: auto; bottom: 10px; translate: none; }
  .lb-stage { padding-block-end: 70px; }
}

/* continuous (squircle) corners where supported — non-refracting surfaces only */
@supports (corner-shape: squircle) {
  .chapter-window, .page-hero-window { corner-shape: squircle; border-radius: clamp(52px, 5.4vw, 84px); }
  .logo-tile { corner-shape: squircle; border-radius: clamp(40px, 3.6vw, 54px); }
  .field input, .field textarea { corner-shape: squircle; border-radius: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  /* scroll-driven progress (a reading ring, a progress hairline) is state that follows the reader, not motion */
  [data-scroll-linked] { animation-duration: auto !important; }
  .js [data-reveal]:not(.in), .js [data-reveal].in { opacity: 1; transform: none; } /* no hover lifts either */
}
@media (prefers-reduced-transparency: reduce) {
  /* !important: components and pages set their own tints on a class (+ .glass), which would out-rank a plain
     override. Clear glass over photos and glass inside dark windows keep their own (often white-on-glass) look. */
  .glass:not(.glass--dark, .glass--clear, .on-dark .glass) { --tint-a: rgba(255, 255, 255, .95) !important; --tint-b: rgba(255, 255, 255, .9) !important; }
  .glass--dark { --tint-a: rgba(20, 14, 60, .92) !important; --tint-b: rgba(20, 14, 60, .88) !important; }
  .lens { background: rgba(255, 255, 255, .9); }
  .cta-pool--smoke::before { background: rgb(14, 14, 64); }
}
@media (forced-colors: active) {
  .glass, .chip, .contact-row { border: 1px solid CanvasText; }
  .bg, .marquee-field, .contact-ring, .orb { display: none; }
  .stat-num, .contact-title-in, .nf-code, .brand-grad { -webkit-text-fill-color: CanvasText; color: CanvasText; background: none; }
}
@media print {
  .bg, .site-header, .wa, .marquee-field, .contact-field, video { display: none !important; }
  .glass { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js [data-reveal]:not(.in), .js [data-reveal].in { opacity: 1; transform: none; }
}
