/* ==========================================================================
   TASHNAZ — one day, from night shift to sunset.
   The page is a single day: it opens at night, the logo rises like a sun,
   each app gets its own light, the studio works in daylight, and the
   contact section sets the sun again.
   ========================================================================== */

/* ---------- fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2-variations"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/ibm-plex-sans-hebrew-300.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/ibm-plex-sans-hebrew-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/ibm-plex-sans-hebrew-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/ibm-plex-sans-hebrew-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/ibm-plex-sans-hebrew-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one.ttf") format("truetype"); font-weight: 400; font-display: swap; }

/* ---------- theme tokens (registered so they animate between sections) ---------- */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #0c0d11; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #ede7dc; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #9d978c; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgb(237 231 220 / 0.14); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #ff8a3d; }
@property --accent-2 { syntax: "<color>"; inherits: true; initial-value: #ffc46b; }

:root {
  /* IBM Plex Sans Hebrew covers Hebrew only (unicode-range): Latin stays Archivo / Instrument Serif / JetBrains Mono,
     Hebrew labels never fall back to a system monospace, and Hebrew accents use its light weight instead of a serif. */
  --sans: "Archivo", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "IBM Plex Sans Hebrew", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Sans Hebrew", ui-monospace, "SF Mono", Menlo, monospace;
  --game: "Lilita One", "Archivo", "IBM Plex Sans Hebrew", sans-serif;

  --night: #07080c;
  --ink: #0c0d11;
  --cream: #ede7dc;
  --ember: #ff8a3d;

  --cc-red: #e0344a; --cc-gold: #d7bd78; --cc-green: #1fcc62;
  --ku-navy: #141b2b; --ku-blue: #203784; --ku-gold: #f3bd68; --ku-clay: #ce765a; --ku-paper: #fff8e9;
  --pm-deep: #1b1245; --pm-violet: #34237a; --pm-ink: #1a1033; --pm-red: #ff5a6b; --pm-yellow: #ffc93c; --pm-mint: #2ee6b8; --pm-purple: #a283ff; --pm-cream: #fff3dc;

  --header-h: 76px;
  --gutter: clamp(16px, 5vw, 64px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --radius: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: linear(0, 0.08, 0.28, 0.52, 0.75, 0.94, 1.07, 1.14, 1.15, 1.12, 1.07, 1.02, 0.99, 0.98, 0.98, 0.99, 1, 1);
  --caffeine: 1;
}

/* Tokens apply wherever data-theme is set: the body follows the dark sections,
   while the daylight sections and the header carry their own. */
[data-theme="ink"]       { --bg: #0c0d11; --fg: #ede7dc; --muted: #9d978c; --line: rgb(237 231 220 / 0.14); --accent: #ff8a3d; --accent-2: #ffc46b; }
[data-theme="chickchak"] { --bg: #0a090c; --fg: #f8f5f2; --muted: #b5b1bd; --line: rgb(248 245 242 / 0.12); --accent: #e0344a; --accent-2: #d7bd78; }
[data-theme="kumu"]      { --bg: #141b2b; --fg: #fff8e9; --muted: #b7c0d1; --line: rgb(255 248 233 / 0.14); --accent: #f3bd68; --accent-2: #ce765a; }
[data-theme="magnet"]    { --bg: #1b1245; --fg: #fff3dc; --muted: #bfb3e6; --line: rgb(255 243 220 / 0.14); --accent: #ffc93c; --accent-2: #2ee6b8; }
[data-theme="dusk"]      { --bg: #0c0d11; --fg: #efe6dc; --muted: #aaa198; --line: rgb(239 230 220 / 0.13); --accent: #ff8a5c; --accent-2: #ffb48a; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--night);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  /* The page itself stays night; sections paint their own light with soft edges. */
  background-color: var(--ink);
  color: var(--fg);
  transition: --bg 0.9s var(--ease-io), --fg 0.9s var(--ease-io), --muted 0.9s var(--ease-io), --line 0.9s var(--ease-io), --accent 0.9s var(--ease-io), --accent-2 0.9s var(--ease-io);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
html:lang(he) body { line-height: 1.7; }
.i18n-pending body { visibility: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 300; padding: 12px 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; transition: top 0.3s var(--ease-out); }
.skip:focus { top: 16px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .icon--flip, [dir="rtl"] .btn .icon:not(.icon--keep), [dir="rtl"] .app-list .icon { transform: scaleX(-1); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
h1 { font-size: clamp(2.7rem, 7.4vw, 7.4rem); font-stretch: 112%; letter-spacing: -0.04em; line-height: 0.94; }
h2 { font-size: clamp(2.4rem, 5.6vw, 5.4rem); font-stretch: 110%; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.1; }
h1 em, h2 em, h3 em, .quip, .footer__night {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -0.015em;
}
h1 em, h2 em, h3 em { font-size: 1.06em; color: var(--accent-2); }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { letter-spacing: -0.015em; line-height: 1.04; }
:lang(he) h1 em, :lang(he) h2 em, :lang(he) h3 em, :lang(he) .quip, :lang(he) .footer__night { font-style: normal; font-weight: 300; letter-spacing: -0.01em; }
:lang(he) h1 em, :lang(he) h2 em, :lang(he) h3 em { font-size: 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow > span:first-child:not(:only-child) { color: var(--accent); }
.eyebrow > span:first-child:not(:only-child)::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-start: 0.7em; opacity: 0.6; }
.eyebrow--center { justify-content: center; }
:lang(he) .eyebrow { letter-spacing: 0.02em; font-size: 0.8125rem; }

.section-head { max-width: 860px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-lead { margin-top: 26px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.5s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn .icon { transition: transform 0.4s var(--ease-out); }
.btn:hover .icon { translate: 0 2px; }
.btn--primary { background: var(--fg); color: var(--bg); box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.5); }
.btn--primary:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--line); background: rgb(255 255 255 / 0.03); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: color-mix(in oklab, var(--fg) 45%, transparent); }
.btn--app { background: var(--accent); color: #fff; box-shadow: 0 14px 40px -14px var(--accent); }
.btn--app:hover .icon { translate: 2px -2px; }
[dir="rtl"] .btn--app:hover .icon { translate: -2px -2px; }
.link-btn { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: var(--fg); }

.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #39e27a; box-shadow: 0 0 0 3px rgb(57 226 122 / 0.15), 0 0 12px #39e27a; animation: led 2.4s ease-in-out infinite; vertical-align: middle; }
@keyframes led { 50% { opacity: 0.45; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--fg);
  transition: transform 0.55s var(--ease-out), background-color 0.4s, border-color 0.4s, --bg 0.6s, --fg 0.6s, --muted 0.6s, --line 0.6s, --accent 0.6s, --accent-2 0.6s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--bg) 74%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { width: min(1400px, 100% - 2 * var(--gutter)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; direction: ltr; padding: 8px 4px; margin-inline-start: -4px; }
.brand__mark { width: 34px; height: auto; transition: transform 0.6s var(--spring); }
.brand__word { width: 104px; height: auto; }
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.06); }
.brand.is-tapped .brand__mark { animation: tap 0.35s var(--ease-out); }
@keyframes tap { 40% { transform: scale(0.86) rotate(-6deg); } }

.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { position: relative; padding: 10px 14px; font-size: 0.9375rem; font-weight: 500; color: color-mix(in oklab, var(--fg) 82%, transparent); transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: var(--origin, left); transition: transform 0.45s var(--ease-out); }
[dir="rtl"] .nav a::after { --origin: right; }
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.trophy, .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--spring);
}
.trophy { font-family: var(--mono); font-size: 0.8125rem; }
.trophy .icon { width: 17px; height: 17px; color: var(--accent-2); }
.trophy:hover, .lang-toggle:hover { border-color: color-mix(in oklab, var(--fg) 40%, transparent); background: rgb(255 255 255 / 0.04); }
.trophy.is-bump { animation: bump 0.6s var(--spring); }
@keyframes bump { 30% { transform: scale(1.18); } }
.lang-toggle[lang="he"] { font-family: "IBM Plex Sans Hebrew", var(--sans); }
.menu-btn { display: none; width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 999px; position: relative; }
.menu-btn > span[aria-hidden] { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.menu-btn > span[aria-hidden]:nth-child(1) { top: 15px; }
.menu-btn > span[aria-hidden]:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded="true"] > span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: menu-in 0.5s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; } }
.mobile-menu__nav a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__nav span { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.mobile-menu__nav b { font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: -0.03em; font-stretch: 110%; }
.mobile-menu__foot { display: flex; gap: 12px; }

/* ==========================================================================
   HERO — the sunrise
   ========================================================================== */
.hero {
  --p: 0; --rise: 0; --dawn: 0; --fade: 0; --beam: 0; --wordin: 0; --mx: 0; --my: 0;
  --d-bar: 0; --d-m: 0; --d-s: 0;
  --r1: #17152d; --r2: #100f22; --r3: #0b0b17; --r4: #06060c;
  --horizon: 62vh;
  --mark-w: min(80vw, 820px, 88vh);
  position: relative;
  height: 250vh;
  height: 250svh;
  background: var(--night);
}
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; color: var(--cream); }
.sky { position: absolute; inset: 0; z-index: 0; }
.sky--night {
  background:
    radial-gradient(60% 34% at 50% 78%, rgb(255 150 100 / 0.13), transparent 70%),
    linear-gradient(180deg, #03040a 0%, #080a16 34%, #121328 68%, #1e1934 100%);
}
.sky--dawn {
  background: linear-gradient(180deg, #0e1130 0%, #2e1d4a 26%, #7c3460 46%, #d0674f 62%, #ffae68 76%, #ffd9a0 100%);
  opacity: var(--dawn);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: calc(1 - var(--dawn) * 1.15); }

.hero-sun {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: var(--horizon);
  width: var(--mark-w);
  transform: translate(-50%, -93.93%) translate3d(calc(var(--mx) * -10px), calc((1 - var(--rise)) * 14vh + var(--my) * -6px), 0);
  will-change: transform;
}
.hero-mark {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  color: #f8efe0;
  filter: drop-shadow(0 0 14px rgb(255 206 150 / 0.55)) drop-shadow(0 0 48px rgb(255 150 80 / 0.35));
}
/* The mark draws itself as you scroll: the horizon first, then the rays grow out of it. */
.hm { stroke-dasharray: 1 1; }
.hm--bar { stroke-dashoffset: calc(1 - var(--d-bar)); opacity: clamp(0, calc(var(--d-bar) * 40), 1); }
.hm--m { stroke-dashoffset: calc(1 - var(--d-m)); opacity: clamp(0, calc(var(--d-m) * 40), 1); }
.hm--l, .hm--r { stroke-dashoffset: calc(1 - var(--d-s)); opacity: clamp(0, calc(var(--d-s) * 40), 1); }
.hero-sun__glow {
  position: absolute;
  left: 50%;
  bottom: 6.07%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, 50%) scale(calc(0.7 + var(--rise) * 0.4));
  background: radial-gradient(closest-side, rgb(255 222 170 / 0.85), rgb(255 170 100 / 0.38) 34%, rgb(255 120 70 / 0.12) 60%, transparent 100%);
  opacity: calc(0.28 + var(--dawn) * 0.72);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-sun__beams i {
  position: absolute;
  left: 50%;
  bottom: 6.07%;
  width: 11%;
  height: 160vh;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(var(--a)) scaleY(calc(0.35 + var(--beam) * 0.65));
  background: linear-gradient(to top, rgb(255 226 180 / 0.55), rgb(255 210 160 / 0.14) 40%, transparent 72%);
  filter: blur(22px);
  opacity: var(--beam);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-sun__beams i:nth-child(1) { --a: -45deg; }
.hero-sun__beams i:nth-child(2) { --a: 0deg; width: 13%; }
.hero-sun__beams i:nth-child(3) { --a: 45deg; }

.hero__word {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: calc(var(--horizon) + var(--mark-w) * 0.0585);
  width: calc(var(--mark-w) * 0.9348);
  height: auto;
  color: #fff6e8;
  opacity: var(--wordin);
  transform: translateX(-50%) translateY(calc((1 - var(--wordin)) * 28px));
  filter: drop-shadow(0 6px 30px rgb(80 20 30 / 0.45));
  pointer-events: none;
}

.ridges { position: absolute; z-index: 3; left: -3%; right: -3%; bottom: 0; height: 46vh; pointer-events: none; }
.ridge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.hero .ridge--1 { fill: var(--r1); transform: translate3d(calc(var(--mx) * 6px), calc(var(--rise) * 6vh), 0); }
.hero .ridge--2 { fill: var(--r2); transform: translate3d(calc(var(--mx) * 12px), calc(var(--rise) * 11vh), 0); }
.hero .ridge--3 { fill: var(--r3); transform: translate3d(calc(var(--mx) * 20px), calc(var(--rise) * 17vh), 0); }
.hero .ridge--4 { fill: var(--r4); transform: translate3d(calc(var(--mx) * 32px), calc(var(--rise) * 25vh), 0); }

.fireflies { position: absolute; z-index: 4; inset: 52% 0 0 0; opacity: calc(1 - var(--dawn) * 1.6); pointer-events: none; }
.firefly {
  position: absolute;
  width: 56px;
  height: 56px;
  margin: -28px;
  border-radius: 50%;
  pointer-events: auto;
  cursor: crosshair;
  animation: drift var(--dur, 9s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.firefly::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #f4ff9a;
  box-shadow: 0 0 6px 2px rgb(230 255 120 / 0.9), 0 0 22px 6px rgb(200 255 90 / 0.35);
  animation: blink var(--blink, 2.6s) ease-in-out infinite;
}
.firefly.is-caught { pointer-events: none; animation: caught 0.9s var(--ease-out) forwards; }
@keyframes drift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(var(--dx1, 30px), var(--dy1, -20px)); }
  66% { transform: translate(var(--dx2, -20px), var(--dy2, -40px)); }
  100% { transform: translate(var(--dx3, 40px), var(--dy3, 10px)); }
}
@keyframes blink { 0%, 100% { opacity: 0.15; } 45%, 60% { opacity: 1; } }
@keyframes caught { 30% { transform: scale(2.4); opacity: 1; } 100% { transform: translateY(-160px) scale(0); opacity: 0; } }

.hero__content {
  position: absolute;
  z-index: 6;
  inset-inline: 0;
  top: calc(var(--header-h) + clamp(16px, 8vh, 96px));
  padding-inline: var(--gutter);
  text-align: center;
  opacity: calc(1 - var(--fade));
  transform: translate3d(0, calc(var(--p) * -22vh), 0);
  /* A full-width layer over the fireflies: only the buttons take the pointer. */
  pointer-events: none;
}
.hero__content .btn { pointer-events: auto; }
.hero__content h1 { max-width: 14ch; margin-inline: auto; font-size: clamp(2.6rem, min(7.6vw, 10.5vh), 7.6rem); text-shadow: 0 2px 40px rgb(0 0 0 / 0.35); }
:lang(he) .hero__content h1 { max-width: 17ch; }
.hero__lead { max-width: 44rem; margin: clamp(18px, 3vh, 30px) auto 0; font-size: clamp(1rem, 1.35vw, 1.1875rem); color: rgb(237 231 220 / 0.74); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(20px, 4vh, 38px); }
.hero__ctas .btn--primary { background: var(--cream); color: var(--ink); }
.hero__ctas .btn--ghost { color: var(--cream); border-color: rgb(237 231 220 / 0.22); }

.hero__meta {
  position: absolute;
  z-index: 6;
  inset-inline: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(1400px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(237 231 220 / 0.62);
  opacity: calc(1 - var(--fade));
  pointer-events: none;
}
.hero__meta > span:last-child { justify-self: end; display: inline-flex; align-items: center; gap: 10px; }
.hero__meta b { color: var(--cream); font-weight: 500; font-variant-numeric: tabular-nums; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(rgb(237 231 220 / 0.7), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
:lang(he) .hero__meta { letter-spacing: 0.04em; font-size: 0.75rem; }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker { position: relative; z-index: 2; overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line); background: var(--bg); }
.ticker__track { display: flex; width: max-content; animation: tick calc(48s / var(--caffeine)) linear infinite; }
.ticker__track > span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-inline-end: 34px;
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.ticker__track > span::after {
  content: "";
  width: 22px;
  height: 12px;
  flex: none;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-598 -573 1196 610'%3E%3Cpath fill='none' stroke='%23000' stroke-width='90' stroke-linecap='round' d='M-561 0H561M0 0V-536M0 0L-385-384M0 0L385-384'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-598 -573 1196 610'%3E%3Cpath fill='none' stroke='%23000' stroke-width='90' stroke-linecap='round' d='M-561 0H561M0 0V-536M0 0L-385-384M0 0L385-384'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker__track { animation-name: tick-rtl; }
@keyframes tick-rtl { to { transform: translateX(50%); } }

/* ==========================================================================
   FAMILY — the logo is the menu
   ========================================================================== */
.family { position: relative; padding-block: clamp(110px, 16vh, 180px); overflow-x: clip; }
.family__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.ray-logo { position: relative; direction: ltr; }
.ray-logo svg { width: 100%; height: auto; overflow: visible; }
.rl-bar, .rl-line { fill: none; stroke: var(--fg); stroke-width: 73; stroke-linecap: round; transition: stroke 0.5s var(--ease-out), opacity 0.5s, filter 0.5s; }
.rl-hit { fill: none; stroke: transparent; stroke-width: 190; stroke-linecap: round; pointer-events: stroke; cursor: pointer; }
.rl-halo { opacity: 0.12; transition: opacity 0.6s; animation: halo 5s ease-in-out infinite; transform-origin: center; }
@keyframes halo { 50% { transform: scale(1.12); } }
.rl-ray { transition: opacity 0.5s; }
.rl-ray[data-app="chickchak"] { --c: var(--cc-red); }
.rl-ray[data-app="kumu"] { --c: var(--ku-gold); }
.rl-ray[data-app="magnet"] { --c: var(--pm-purple); }
.ray-logo[data-hot] .rl-ray .rl-line, .ray-logo[data-hot] .rl-bar { opacity: 0.22; }
.ray-logo[data-hot] .rl-halo { opacity: 0.35; }
.ray-logo[data-hot="chickchak"] .rl-ray[data-app="chickchak"] .rl-line,
.ray-logo[data-hot="kumu"] .rl-ray[data-app="kumu"] .rl-line,
.ray-logo[data-hot="magnet"] .rl-ray[data-app="magnet"] .rl-line { opacity: 1; stroke: var(--c); filter: drop-shadow(0 0 28px var(--c)); }
.rl-label {
  position: absolute;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.4s, transform 0.5s var(--ease-out);
  padding: 6px;
}
.rl-label span { color: var(--accent); }
.rl-label--l { left: 19.9%; top: 35.6%; transform: translate(-100%, -150%); }
.rl-label--m { left: 50%; top: 14.4%; transform: translate(-50%, -190%); }
.rl-label--r { left: 80.1%; top: 35.6%; transform: translate(0, -150%); }
.ray-logo[data-hot="chickchak"] .rl-label--l, .ray-logo[data-hot="kumu"] .rl-label--m, .ray-logo[data-hot="magnet"] .rl-label--r { color: var(--fg); }
.rl-hint { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); opacity: 0.7; white-space: nowrap; }
.family__lead { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.42; font-weight: 500; letter-spacing: -0.012em; margin-top: 30px; max-width: 34ch; }
.family__lead .w { opacity: var(--o, 0.18); transition: opacity 0.25s linear; }
.app-list { margin-top: 44px; border-top: 1px solid var(--line); }
.app-list a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out);
}
.app-list img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 10px 24px -10px rgb(0 0 0 / 0.6); transition: transform 0.6s var(--spring); }
.app-list__text { display: flex; flex-direction: column; min-width: 0; }
.app-list__text b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.app-list__text span { color: var(--muted); font-size: 0.9375rem; }
.app-list__code { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; }
.app-list .icon { opacity: 0.5; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.app-list a:hover, .app-list a.is-hot { padding-inline: 12px; }
.app-list a:hover img, .app-list a.is-hot img { transform: rotate(-6deg) scale(1.06); }
.app-list a:hover .icon, .app-list a.is-hot .icon { opacity: 1; transform: translateX(4px); }
[dir="rtl"] .app-list a:hover .icon, [dir="rtl"] .app-list a.is-hot .icon { transform: scaleX(-1) translateX(4px); }

/* ==========================================================================
   CHAPTERS — one per app
   ========================================================================== */
.chapter {
  --edge: min(28vh, 260px);
  position: relative;
  padding-block: clamp(100px, 14vh, 170px);
  overflow: clip;
  background: linear-gradient(180deg, transparent 0, var(--bg) var(--edge), var(--bg) calc(100% - var(--edge)), transparent 100%);
}
.chapter__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: center; min-height: 82vh; }
.chapter--flip .chapter__copy { order: 2; }
.chapter__bgword {
  --bx: 0%;
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  white-space: nowrap;
  direction: ltr;
  overflow: hidden;
}
.chapter__bgword span {
  display: inline-block;
  font-size: clamp(9rem, 24vw, 26rem);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line);
  transform: translateX(var(--bx));
  will-change: transform;
}
.product-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.product-code b { color: var(--accent); font-weight: 500; padding: 4px 10px; border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent); border-radius: 999px; }
:lang(he) .product-code { letter-spacing: 0.02em; font-size: 0.875rem; }
.app-title { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 18px 40px -16px rgb(0 0 0 / 0.7); }
.app-title h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 0.95; direction: ltr; }
:lang(he) .app-title h2 { letter-spacing: -0.03em; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-2) 22%, transparent); animation: led 2.4s infinite; }
.status--live i { background: #39e27a; box-shadow: 0 0 0 4px rgb(57 226 122 / 0.2), 0 0 10px #39e27a; }
.chapter--ku .btn--app { color: #141b2b; }
.tagline { font-size: clamp(1.9rem, 3.3vw, 3.1rem); margin-bottom: 26px; max-width: 16ch; }
:lang(he) .tagline { max-width: 21ch; }
.chapter__body { color: color-mix(in oklab, var(--fg) 78%, transparent); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); max-width: 50ch; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; margin-top: 34px; max-width: 600px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9688rem; line-height: 1.45; color: color-mix(in oklab, var(--fg) 86%, transparent); }
.features .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.quip { margin-top: 38px; padding-inline-start: 22px; border-inline-start: 2px solid var(--accent); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.3; max-width: 30ch; color: var(--fg); }
.chapter__ctas { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; }
.chapter__visual { position: relative; min-height: 640px; }

/* device frame */
.phone {
  --pw: 250px;
  --rot: 0deg;
  --py: 0px;
  position: absolute;
  width: var(--pw);
  aspect-ratio: 780 / 1688;
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.16);
  background: linear-gradient(150deg, #34343c 0%, #111114 35%, #1b1b20 70%, #3a3a42 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09), inset 0 0 0 calc(var(--pw) * 0.012) #050506, 0 60px 100px -40px rgb(0 0 0 / 0.8), 0 24px 50px -24px rgb(0 0 0 / 0.6);
  transform: translate3d(0, var(--py), 0) rotate(var(--rot));
  will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--pw) * 0.128); background: #000; }

.chip {
  --py: 0px;
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: #f8f5f2;
  background: rgb(22 21 27 / 0.62);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.8);
  transform: translate3d(0, var(--py), 0);
}

/* --- chickchak --- */
.cc-visual { min-height: 680px; }
.cc-visual__neon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 115%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(224 52 74 / 0.42), rgb(120 20 45 / 0.22) 45%, transparent 72%);
  filter: blur(10px);
  animation: neon 4.5s ease-in-out infinite;
}
@keyframes neon { 0%, 100% { opacity: 1; } 47% { opacity: 0.86; } 50% { opacity: 0.6; } 53% { opacity: 0.9; } }
.cc-visual .phone--center { --pw: 268px; left: calc(50% - var(--pw) / 2); top: calc(50% - var(--pw) * 1.082); z-index: 3; }
.cc-visual .phone--tilt-l { --pw: 228px; --rot: -10deg; left: calc(50% - var(--pw) * 1.42); top: calc(50% - var(--pw) * 0.98); z-index: 2; filter: brightness(0.72); }
.cc-visual .phone--tilt-r { --pw: 228px; --rot: 10deg; left: calc(50% + var(--pw) * 0.42); top: calc(50% - var(--pw) * 0.98); z-index: 2; filter: brightness(0.72); }
.chip--avail { top: 13%; inset-inline-start: 0; }
.chip--avail i { width: 9px; height: 9px; border-radius: 50%; background: var(--cc-green); box-shadow: 0 0 0 0 rgb(31 204 98 / 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgb(31 204 98 / 0); } 100% { box-shadow: 0 0 0 0 rgb(31 204 98 / 0); } }
.chip--sent { bottom: 12%; inset-inline-end: 0; }
.chip--sent .icon { color: var(--cc-gold); width: 18px; height: 18px; }

/* --- Kumu. --- */
.ku-dot { color: var(--ku-gold); }
.ku-visual { min-height: 700px; }
.ku-visual__orbit { position: absolute; inset: 14% 2% 10%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2a46a3, var(--ku-blue) 60%); transform: rotate(-16deg); }
.ku-visual__orbit::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgb(243 189 104 / 0.3); }
.phone--ku-back { --pw: 232px; --rot: 9deg; inset-inline-end: 4%; top: 4%; z-index: 1; filter: brightness(0.8); }
.phone--ku-front { --pw: 262px; --rot: -5deg; inset-inline-end: 32%; top: 9%; z-index: 2; }
.ku-card {
  --py: 0px;
  position: absolute;
  z-index: 3;
  inset-inline-start: 0;
  bottom: 0;
  width: min(330px, 86%);
  padding: 22px 22px 0;
  border-radius: 30px;
  overflow: hidden;
  color: var(--ku-paper);
  background: linear-gradient(180deg, #24409a, var(--ku-blue));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 50px 90px -40px rgb(0 0 0 / 0.85);
  transform: translate3d(0, var(--py), 0);
}
.ku-card__top { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: #c8d2f0; }
.ku-card__top .icon { width: 18px; height: 18px; }
.ku-card__time { font-size: 4.6rem; font-weight: 250; letter-spacing: -0.02em; line-height: 1; margin: 10px 0 18px; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.ku-task label { display: block; font-size: 0.9375rem; color: #dfe5f7; margin-bottom: 10px; }
.ku-task label b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ku-task__row { display: flex; gap: 8px; }
.ku-task input {
  width: 86px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.1);
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ku-task input:focus { outline: 2px solid var(--ku-gold); outline-offset: 2px; }
.ku-task button, .ku-snooze { height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ku-gold); color: #141b2b; font-weight: 700; transition: transform 0.3s var(--spring), background-color 0.3s; }
.ku-task button:hover, .ku-snooze:hover { background: #ffd593; transform: translateY(-1px); }
.ku-msg { min-height: 1.5em; margin-top: 8px; font-size: 0.875rem; color: #ffd8a8; }
.ku-awake p { font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin-bottom: 12px; }
.ku-snooze { background: transparent; color: var(--ku-gold); border: 1px solid rgb(243 189 104 / 0.5); height: 38px; font-size: 0.875rem; }
.ku-card.is-wrong { animation: shake 0.5s; }
@keyframes shake { 20%, 60% { transform: translate3d(-7px, var(--py), 0); } 40%, 80% { transform: translate3d(7px, var(--py), 0); } }
.ku-scene { width: calc(100% + 44px); margin: 2px -22px 0; height: auto; overflow: hidden; }
.ku-ring { fill: none; stroke: rgb(255 248 233 / 0.28); stroke-width: 1.2; transition: stroke 1s; }
.ku-sun { fill: var(--ku-gold); transform: translateY(34px); transition: transform 1.6s var(--spring), fill 1s; }
.ku-hill { fill: var(--ku-clay); }
.ku-leaf path:first-child { fill: none; stroke: #9fb79e; stroke-width: 2.2; stroke-linecap: round; }
.ku-leaf path:last-child { fill: #a9c1a8; }
.ku-spark { fill: none; stroke: var(--ku-paper); stroke-width: 2; stroke-linecap: round; transform-origin: 268px 59px; transition: transform 1.4s var(--ease-out), opacity 1s; opacity: 0.6; }
.ku-card.is-awake .ku-sun { transform: translateY(-14px); fill: #ffcd7a; }
.ku-card.is-awake .ku-ring { stroke: rgb(255 220 160 / 0.7); }
.ku-card.is-awake .ku-spark { transform: rotate(180deg) scale(1.4); opacity: 1; }
.ku-card.is-awake { background: linear-gradient(180deg, #3b5fc4, #2a46a3 55%, #e49a6a 130%); }

/* --- Pocket Magnet --- */
.pm-wordmark { font-family: var(--game); font-weight: 400; letter-spacing: 0.01em; color: var(--pm-cream); text-transform: uppercase; font-stretch: 100%; }
.pm-wordmark span { color: var(--pm-yellow); }
.chapter--pm .tagline em { color: var(--pm-mint); }
.pm-visual { display: grid; place-items: center; min-height: 680px; }
.pm-float { position: absolute; border-radius: 50%; box-shadow: 0 0 0 3px var(--pm-ink), inset -6px -8px 0 rgb(0 0 0 / 0.16), 0 20px 40px -14px rgb(0 0 0 / 0.6); transform: translate3d(0, var(--py, 0px), 0); }
.pm-float::before { content: ""; position: absolute; top: 14%; left: 20%; width: 36%; height: 22%; border-radius: 50%; background: rgb(255 255 255 / 0.55); transform: rotate(-20deg); }
.pm-float--1 { width: 62px; height: 62px; top: 4%; inset-inline-start: 6%; background: radial-gradient(circle at 35% 30%, #7dffd9, var(--pm-mint) 55%, #17a985); }
.pm-float--2 { width: 44px; height: 44px; top: 12%; inset-inline-end: 4%; background: radial-gradient(circle at 35% 30%, #ffe48a, var(--pm-yellow) 55%, #d99a10); }
.pm-float--3 { width: 52px; height: 52px; bottom: 8%; inset-inline-start: 2%; background: radial-gradient(circle at 35% 30%, #ff9aa4, var(--pm-red) 55%, #c42a3c); }
.pm-float--4 { width: 36px; height: 36px; bottom: 16%; inset-inline-end: 8%; background: radial-gradient(circle at 35% 30%, #cdb9ff, var(--pm-purple) 55%, #6a48e0); }

.pm-game {
  --py: 0px;
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  padding: 22px 20px 18px;
  border-radius: 34px;
  color: var(--pm-cream);
  background:
    radial-gradient(circle, rgb(140 115 255 / 0.16) 1.6px, transparent 2px) 0 0 / 18px 18px,
    radial-gradient(120% 90% at 50% 0%, #4a35a3, var(--pm-violet) 50%, var(--pm-deep));
  box-shadow: 0 0 0 3px var(--pm-ink), inset 0 1px 0 rgb(255 255 255 / 0.14), 0 60px 100px -40px rgb(0 0 0 / 0.8);
  transform: translate3d(0, var(--py), 0);
  touch-action: manipulation;
}
.pm-game__head { margin-bottom: 14px; }
.pm-game__title { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pm-yellow); text-align: center; margin-bottom: 12px; }
.pm-hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pm-hud > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pm-hud span { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c8bdf0; }
.pm-hud b { font-family: var(--game); font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--pm-cream); font-variant-numeric: tabular-nums; paint-order: stroke fill; -webkit-text-stroke: 4px var(--pm-ink); }
.pm-hud > div:last-child b { color: var(--pm-yellow); }
.pm-hud b.is-bump { animation: bump 0.4s var(--spring); }
.pm-next { display: flex; gap: 5px; min-height: 22px; align-items: center; }
.pm-next i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--pm-ink); }

.pm-arena { direction: ltr; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; grid-template-rows: 40px auto 40px; gap: 6px; align-items: center; justify-items: center; }
.pm-magnet--up { grid-area: 1 / 2; }
.pm-magnet--left { grid-area: 2 / 1; }
.pm-board { grid-area: 2 / 2; }
.pm-magnet--right { grid-area: 2 / 3; }
.pm-magnet--down { grid-area: 3 / 2; }
.pm-magnet { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; transition: transform 0.25s var(--spring), filter 0.25s, background-color 0.25s; }
.pm-magnet svg { width: 32px; height: 32px; }
.pm-magnet--down svg { transform: rotate(180deg); }
.pm-magnet--left svg { transform: rotate(-90deg); }
.pm-magnet--right svg { transform: rotate(90deg); }
.pm-magnet:hover { background: rgb(255 255 255 / 0.08); filter: drop-shadow(0 0 10px rgb(255 90 107 / 0.7)); }
.pm-magnet--up:hover { transform: translateY(3px); }
.pm-magnet--down:hover { transform: translateY(-3px); }
.pm-magnet--left:hover { transform: translateX(3px); }
.pm-magnet--right:hover { transform: translateX(-3px); }
.pm-magnet:active, .pm-magnet.is-pull { transform: scale(0.86); }
.pm-magnet.is-nope { animation: nope 0.35s; }
@keyframes nope { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }

.pm-board {
  --n: 6;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2a1c70, #22165c);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.06), inset 0 8px 18px rgb(0 0 0 / 0.35), 0 0 0 3px var(--pm-ink);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.pm-board:focus-visible { outline: 3px solid var(--pm-yellow); outline-offset: 4px; }
.pm-slots { position: absolute; inset: 6px; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.pm-slots i { margin: 18%; border-radius: 50%; background: rgb(255 255 255 / 0.045); box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.25); }
.pm-discs { position: absolute; inset: 6px; }
.pm-disc {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% / var(--n));
  height: calc(100% / var(--n));
  padding: 4%;
  transform: translate(calc(var(--c) * 100%), calc(var(--r) * 100%));
  transition: transform 0.17s cubic-bezier(0.3, 0.7, 0.35, 1);
}
.pm-disc > i {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--hi), var(--base) 56%, var(--lo));
  box-shadow: 0 0 0 2.5px var(--pm-ink), inset -3px -4px 0 rgb(0 0 0 / 0.16);
}
.pm-disc > i::before { content: ""; position: absolute; top: 13%; left: 20%; width: 38%; height: 22%; border-radius: 50%; background: rgb(255 255 255 / 0.6); transform: rotate(-22deg); }
.pm-disc > i::after { content: ""; position: absolute; inset: 34%; background: var(--sym); }
.pm-disc.d0 > i { --hi: #ffa3ac; --base: var(--pm-red); --lo: #c42a3c; --sym: #a81f31; }
.pm-disc.d0 > i::after { border-radius: 3px; inset: 36%; }
.pm-disc.d1 > i { --hi: #ffe58c; --base: var(--pm-yellow); --lo: #d99a10; --sym: #b47800; }
.pm-disc.d1 > i::after { clip-path: polygon(50% 8%, 95% 90%, 5% 90%); inset: 32%; }
.pm-disc.d2 > i { --hi: #8bffdc; --base: var(--pm-mint); --lo: #12a37f; --sym: #0d8a6b; }
.pm-disc.d2 > i::after { border-radius: 50%; inset: 37%; }
.pm-disc.d3 > i { --hi: #d6c6ff; --base: var(--pm-purple); --lo: #6a48e0; --sym: #5332c4; }
.pm-disc.d3 > i::after { transform: rotate(45deg); inset: 37%; border-radius: 2px; }
.pm-next i.d0 { background: var(--pm-red); } .pm-next i.d1 { background: var(--pm-yellow); } .pm-next i.d2 { background: var(--pm-mint); } .pm-next i.d3 { background: var(--pm-purple); }
.pm-disc.is-spawn > i { animation: spawn 0.42s var(--spring) both; }
.pm-disc.is-pop > i { animation: pop 0.28s var(--ease-out) forwards; }
@keyframes spawn { from { transform: scale(0); } }
@keyframes pop { 40% { transform: scale(1.28); filter: brightness(1.6); } 100% { transform: scale(0); opacity: 0; } }
.pm-chain {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 3;
  transform: translate(-50%, -50%);
  font-family: var(--game);
  font-size: 2rem;
  color: var(--pm-yellow);
  paint-order: stroke fill;
  -webkit-text-stroke: 6px var(--pm-ink);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.pm-chain.is-on { animation: chain 0.9s var(--ease-out); }
@keyframes chain { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.6); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }
.pm-hint { margin-top: 12px; text-align: center; font-size: 0.8125rem; color: #c8bdf0; }
.pm-over {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  border-radius: 34px;
  background: rgb(27 18 69 / 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: menu-in 0.4s var(--ease-out);
}
.pm-over[hidden] { display: none; }
.pm-over__title { font-family: var(--game); font-size: 2.2rem; color: var(--pm-cream); paint-order: stroke fill; -webkit-text-stroke: 6px var(--pm-ink); }
.pm-over__score { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c8bdf0; }
.pm-over__score b { display: block; font-family: var(--game); font-size: 3.4rem; letter-spacing: 0; color: var(--pm-yellow); paint-order: stroke fill; -webkit-text-stroke: 7px var(--pm-ink); line-height: 1.1; }
.pm-over__note { max-width: 26ch; font-size: 0.9375rem; color: var(--pm-cream); opacity: 0.85; }
.pm-over__btn { margin-top: 10px; height: 52px; padding: 0 30px; border-radius: 999px; background: var(--pm-yellow); color: var(--pm-ink); font-family: var(--game); font-size: 1.25rem; box-shadow: 0 0 0 3px var(--pm-ink), 0 6px 0 var(--pm-ink); transition: transform 0.2s; }
.pm-over__btn:active { transform: translateY(4px); box-shadow: 0 0 0 3px var(--pm-ink), 0 2px 0 var(--pm-ink); }

/* ==========================================================================
   NUMBERS
   ========================================================================== */
.numbers { position: relative; padding-block: clamp(110px, 15vh, 180px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); }
.stat { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.stat__n {
  display: block;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 800;
  font-stretch: 114%;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
  direction: ltr;
  text-align: start;
}
[dir="rtl"] .stat__n { text-align: right; }
.stat p { color: var(--muted); max-width: 30ch; }
.stat--coffee .stat__n { color: var(--accent-2); }
.steam { position: absolute; top: 4px; inset-inline-end: 6px; display: flex; gap: 6px; }
.steam i { width: 2px; height: 22px; border-radius: 2px; background: linear-gradient(transparent, var(--muted)); opacity: 0; animation: steam 2.8s ease-in-out infinite; }
.steam i:nth-child(2) { animation-delay: 0.6s; }
.steam i:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleY(0.6); } 50% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-14px) scaleY(1.2) skewX(10deg); } }

/* ==========================================================================
   NIGHT SKY — numbers, principles and studio float in one continuous,
   slowly drifting sky that warms toward the sunset below.
   ========================================================================== */
.atmosphere { position: relative; }
.atmosphere__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 88%, transparent 100%);
}
.nebula {
  --py: 0px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform: translate3d(0, var(--py), 0);
}
.nebula i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  animation: nebula calc(var(--d, 40s) / var(--caffeine)) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes nebula {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(var(--dx), var(--dy)) scale(1.14); }
  100% { transform: translate(calc(var(--dx) * -0.7), calc(var(--dy) * -0.8)) scale(0.9); }
}
/* Hairlines of light that flow sideways forever (the path repeats every 1440 units). */
.flow {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(200px, 32vh, 340px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.flow g { animation: flow calc(var(--flow-d) / var(--caffeine)) linear infinite; }
.flow use { fill: none; stroke: var(--flow-c); stroke-width: 1; vector-effect: non-scaling-stroke; }
.flow--a { top: 21%; --flow-c: rgb(160 200 255 / 0.2); --flow-d: 70s; }
.flow--b { top: 66%; --flow-c: rgb(255 184 150 / 0.2); --flow-d: 90s; transform: scaleX(-1) scaleY(-1); }
@keyframes flow { to { transform: translateX(-1440px); } }
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   PRINCIPLES
   ========================================================================== */
.principles { position: relative; padding-block: clamp(120px, 16vh, 190px) clamp(60px, 8vh, 100px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px 60px; align-items: start; }
.section-head--split .eyebrow { margin-top: 0.8em; }
.principles__list { border-top: 1px solid var(--line); }
.principle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 40px;
  gap: 20px 40px;
  align-items: baseline;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease-out);
}
.principle__num { font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 800; font-stretch: 125%; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.3px var(--fg); transition: color 0.5s, -webkit-text-stroke-color 0.5s; direction: ltr; }
.principle h3 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); }
.principle p { color: var(--muted); max-width: 46ch; }
.principle__icon { width: 30px; height: 30px; align-self: center; color: var(--accent); opacity: 0; transform: translateX(-10px) rotate(-10deg); transition: opacity 0.4s, transform 0.6s var(--spring); }
.principle:hover { padding-inline: 18px; }
.principle:hover .principle__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.principle:hover .principle__icon { opacity: 1; transform: none; }

/* ==========================================================================
   STUDIO — spec sheet and controller
   ========================================================================== */
.studio { position: relative; padding-block: clamp(150px, 22vh, 240px) clamp(110px, 15vh, 180px); }
.studio__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.spec { border-top: 1px solid color-mix(in oklab, var(--fg) 45%, transparent); font-size: 1rem; }
.spec > div { display: grid; grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr); gap: 20px; padding: 14px 0; border-bottom: 1px dashed var(--line); transition: background-color 0.3s; }
.spec > div:hover { background: rgb(255 255 255 / 0.03); }
.spec dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
:lang(he) .spec dt { letter-spacing: 0.03em; font-size: 0.8125rem; }
.spec dd { font-weight: 500; }

.device-wrap { position: relative; padding-top: 56px; position: sticky; top: calc(var(--header-h) + 24px); }
.device {
  position: relative;
  padding: 30px 30px 26px;
  border-radius: 36px;
  color: #2b271f;
  background: linear-gradient(165deg, #f4efe5 0%, #e6dfd1 55%, #d9d0bf 100%);
  border: 1px solid rgb(0 0 0 / 0.06);
  box-shadow: inset 0 1.5px 0 rgb(255 255 255 / 0.9), inset 0 -3px 0 rgb(0 0 0 / 0.07), 0 2px 0 rgb(0 0 0 / 0.2), 0 60px 100px -40px rgb(0 0 0 / 0.85), 0 20px 40px -20px rgb(0 0 0 / 0.6), 0 0 120px -30px rgb(255 160 120 / 0.28);
}
.device__screw { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #b9b0a0 70%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.device__screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5px; height: 1.5px; background: rgb(0 0 0 / 0.35); transform: rotate(var(--sr, 35deg)); }
.device__screw:nth-of-type(1) { top: 14px; left: 14px; }
.device__screw:nth-of-type(2) { top: 14px; right: 14px; --sr: -20deg; }
.device__screw:nth-of-type(3) { bottom: 14px; left: 14px; --sr: 80deg; }
.device__screw:nth-of-type(4) { bottom: 14px; right: 14px; --sr: 10deg; }
.device__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-inline: 8px; }
.device__model, .device__led { font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.device__model span { color: #8a8274; font-weight: 500; }
.device__led { display: inline-flex; align-items: center; gap: 8px; color: #6d6659; }
.lcd {
  position: relative;
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 12px;
  overflow: hidden;
  direction: ltr;
  background: #1c2616;
  box-shadow: inset 0 3px 10px rgb(0 0 0 / 0.6), 0 1px 0 rgb(255 255 255 / 0.7);
  font-family: var(--mono);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #a6ff5e;
  text-shadow: 0 0 10px rgb(166 255 94 / 0.65);
  white-space: nowrap;
}
.lcd::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(0 0 0 / 0.18) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, rgb(0 0 0 / 0.18) 0 1px, transparent 1px 4px); pointer-events: none; }
.lcd span::after { content: "_"; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.device__controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; align-items: end; }
.control { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.control__label { font-family: var(--mono); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #6d6659; text-align: center; }
.control__label b { color: var(--accent); font-weight: 700; }
.control__label--warn { color: #c0392b; }
:lang(he) .control__label { letter-spacing: 0.04em; font-size: 0.75rem; }

.rocker { position: relative; width: 48px; height: 78px; border-radius: 12px; background: #cfc6b3; box-shadow: inset 0 3px 7px rgb(0 0 0 / 0.28), 0 1px 0 rgb(255 255 255 / 0.8); }
.rocker i {
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3a352c 0%, #2b271f 50%, #403a30 51%, #2f2a22 100%);
  box-shadow: 0 6px 0 -1px #1a1712, 0 8px 14px rgb(0 0 0 / 0.3);
  transform: perspective(200px) rotateX(-14deg);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s;
}
.rocker i::before { content: ""; position: absolute; left: 50%; top: 9px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--ember); box-shadow: 0 0 8px var(--ember); transition: opacity 0.2s; }
.rocker[aria-checked="false"] i { transform: perspective(200px) rotateX(14deg); box-shadow: 0 -6px 0 -1px #1a1712, 0 -2px 10px rgb(0 0 0 / 0.25); }
.rocker[aria-checked="false"] i::before { opacity: 0.15; box-shadow: none; }

.knob {
  --angle: -54deg;
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  background: repeating-conic-gradient(from -135deg, #6d6659 0 1.2deg, transparent 1.2deg 24.5deg);
  -webkit-mask: radial-gradient(circle, transparent 0, #000 0);
}
.knob::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 36px, #e8e1d4 36.5px); -webkit-mask: conic-gradient(from 135deg, #000 0 90deg, transparent 90deg); mask: conic-gradient(from 135deg, #000 0 90deg, transparent 90deg); }
.knob__dial {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff, #e2dacb 50%, #bdb3a1 100%);
  box-shadow: 0 6px 12px rgb(0 0 0 / 0.25), inset 0 -2px 3px rgb(0 0 0 / 0.12), 0 0 0 1px rgb(0 0 0 / 0.08);
  transform: rotate(var(--angle));
  transition: transform 0.15s var(--ease-out);
}
.knob__dial i { position: absolute; left: 50%; top: 7px; width: 4px; height: 16px; margin-left: -2px; border-radius: 3px; background: var(--ember); }
.knob:active { cursor: grabbing; }
.knob.is-max .knob__dial { animation: rattle 0.12s linear infinite; }
@keyframes rattle { 50% { translate: 1px -1px; } }

.big-red { position: relative; width: 82px; height: 82px; border-radius: 50%; background: #d8cfbd; box-shadow: inset 0 4px 8px rgb(0 0 0 / 0.3), 0 1px 0 rgb(255 255 255 / 0.8); }
.big-red::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ff8c7e, #e0342a 52%, #a3160f 100%);
  box-shadow: 0 7px 0 #7e110b, 0 12px 18px rgb(0 0 0 / 0.3), inset 0 -3px 6px rgb(0 0 0 / 0.2);
  transition: transform 0.08s, box-shadow 0.08s;
}
.big-red:active::before, .big-red.is-down::before { transform: translateY(6px); box-shadow: 0 1px 0 #7e110b, 0 3px 6px rgb(0 0 0 / 0.3), inset 0 -2px 4px rgb(0 0 0 / 0.2); }
.device__grille { height: 54px; margin-top: 26px; border-radius: 14px; background: radial-gradient(circle, rgb(0 0 0 / 0.32) 1.7px, transparent 2.1px) 0 0 / 12px 12px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.05); }

.duck { position: absolute; z-index: 2; top: 2px; inset-inline-end: 54px; width: 76px; animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.duck svg { width: 100%; height: auto; overflow: visible; }
.duck__body { fill: #ffd23f; }
.duck__wing { fill: #f2b705; }
.duck__beak { fill: #ff8a1f; }
.duck__eye { fill: #1a1033; }
.duck__shine { fill: #fff; opacity: 0.75; }
.duck__shadow { fill: rgb(0 0 0 / 0.12); }
.duck:hover { animation: wobble 0.6s ease-in-out; }
[dir="rtl"] .duck svg { transform: scaleX(-1); }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes wobble { 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }

.dark-secret {
  position: absolute;
  inset-inline: 0;
  top: clamp(40px, 7vh, 80px);
  padding-inline: var(--gutter);
  text-align: center;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #b9ff7a;
  text-shadow: 0 0 18px rgb(160 255 100 / 0.8), 0 0 60px rgb(120 255 80 / 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s;
}
.dark-secret em { font-size: 0.6em; color: #d8ffb8; }

/* ==========================================================================
   CONTACT — the sunset
   ========================================================================== */
.contact {
  --set: 0;
  position: relative;
  overflow: clip;
  padding-block: clamp(130px, 18vh, 200px) max(58vh, 460px);
  color: var(--cream);
  isolation: isolate;
}
.contact__sky { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, rgb(26 20 48 / 0) 0%, #1f1736 12%, #2a1840 22%, #4d2149 40%, #a63f59 56%, #e8784a 70%, #ffb46a 82%, #ffd9a0 100%); }
.contact__sun { position: absolute; z-index: -2; left: 50%; bottom: 21vh; width: min(52vw, 540px); transform: translate(-50%, calc(var(--set) * 16vh)); color: #ffe7c2; }
.contact__sun svg { width: 100%; height: auto; filter: drop-shadow(0 0 20px rgb(255 210 150 / 0.7)) drop-shadow(0 0 70px rgb(255 140 80 / 0.5)); }
.contact__glow { position: absolute; left: 50%; bottom: 6%; width: 140%; aspect-ratio: 1; transform: translate(-50%, 50%); background: radial-gradient(closest-side, rgb(255 228 180 / 0.8), rgb(255 160 90 / 0.3) 40%, transparent 72%); mix-blend-mode: screen; }
.ridges--sunset { z-index: -1; height: 44vh; min-height: 300px; }
.ridges--sunset .ridge--1 { fill: #7c3554; }
.ridges--sunset .ridge--3 { fill: #3c1b38; }
.ridges--sunset .ridge--4 { fill: #120a16; }
.contact__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__inner h2 { font-size: clamp(2.8rem, 7vw, 6.6rem); max-width: 14ch; }
.contact__inner h2 em { color: #ffcf96; }
.contact__lead { margin-top: 26px; max-width: 46ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: rgb(255 240 222 / 0.82); }
.email { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; direction: ltr; }
.email__link { position: relative; max-width: 100%; font-size: clamp(1.25rem, 5.6vw, 3.6rem); font-weight: 700; font-stretch: 108%; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.email__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0.25); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.email__link:hover::after { transform: scaleX(1); }
.email__copy { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgb(255 240 222 / 0.35); font-size: 0.875rem; font-weight: 500; transition: background-color 0.3s; }
.email__copy:hover { background: rgb(255 255 255 / 0.1); }
.email__copy .icon { width: 17px; height: 17px; }
.support-list { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 0.875rem; color: rgb(255 240 222 / 0.72); }
.support-list li { display: flex; gap: 10px; }
.support-list a { color: var(--cream); text-decoration: underline; text-decoration-color: rgb(255 240 222 / 0.35); text-underline-offset: 4px; direction: ltr; }
.support-list a:hover { text-decoration-color: currentColor; }
/* Sits on the front ridge: 0.171 is that ridge's height at x = 24%, from the generated path. */
.cat { position: absolute; z-index: 0; left: 24%; bottom: calc(max(44vh, 300px) * 0.171 - 3px); width: 46px; color: #120a16; transform: translateX(-50%); }
.cat svg { width: 100%; height: auto; overflow: visible; }
.cat__body { fill: currentColor; }
.cat__tail { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; transform-origin: 44px 66px; animation: tail 3.6s ease-in-out infinite; }
@keyframes tail { 50% { transform: rotate(-16deg); } }
.cat.is-meow svg { animation: meow 0.5s var(--ease-out); }
@keyframes meow { 30% { transform: translateY(-6px) scale(1.06); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; background: var(--night); color: var(--cream); padding-block: 90px 40px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 54px; border-bottom: 1px solid rgb(237 231 220 / 0.12); }
.footer__logo svg { width: clamp(150px, 18vw, 230px); height: auto; }
.footer__night { font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; max-width: 22ch; text-align: end; }
.footer__night a { color: var(--ku-gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 40px; padding-block: 50px; }
.footer__grid h3 { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #8d877c; margin-bottom: 18px; }
.footer__grid a { display: block; width: fit-content; padding: 5px 0; color: rgb(237 231 220 / 0.85); transition: color 0.2s, transform 0.4s var(--ease-out); }
.footer__grid a:hover { color: #fff; transform: translateX(4px); }
[dir="rtl"] .footer__grid a:hover { transform: translateX(-4px); }
.secrets-meter { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; text-align: start; font-family: var(--mono); font-size: 0.8125rem; color: rgb(237 231 220 / 0.85); }
.secrets-meter__bar { display: block; width: 100%; height: 6px; border-radius: 6px; background: rgb(237 231 220 / 0.1); overflow: hidden; }
.secrets-meter__bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--cc-red), var(--ku-gold), var(--pm-purple)); transition: width 1s var(--ease-out); }
[dir="rtl"] .secrets-meter__bar i { background: linear-gradient(-90deg, var(--cc-red), var(--ku-gold), var(--pm-purple)); }
.footer__tiny { margin-top: 12px; font-size: 0.8125rem; color: #8d877c; max-width: 34ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; padding-top: 28px; border-top: 1px solid rgb(237 231 220 / 0.12); font-size: 0.8125rem; color: #8d877c; }
.footer__bottom p:first-child { max-width: 56ch; }
.footer__bottom .sep { margin-inline: 6px; opacity: 0.5; }
.bottom-sentinel { height: 1px; }

/* ==========================================================================
   DIALOGS, TOASTS
   ========================================================================== */
.sheet {
  width: min(560px, 100% - 32px);
  max-height: min(84vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--cream);
  background: #121318;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 60px 120px -30px rgb(0 0 0 / 0.8);
  overflow: hidden;
}
.sheet[open] { animation: sheet-in 0.5s var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.sheet::backdrop { background: rgb(4 4 8 / 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet__inner { display: flex; flex-direction: column; max-height: inherit; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 26px 18px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.sheet__head .eyebrow { margin-bottom: 10px; color: var(--ku-gold); }
.sheet__head h2 { font-size: 2rem; }
.sheet__sub { margin-top: 8px; color: #9d978c; font-size: 0.9375rem; }
.sheet__close { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.14); font-size: 1.5rem; line-height: 1; transition: background-color 0.2s; }
.sheet__close:hover { background: rgb(255 255 255 / 0.08); }
.sheet__foot { padding: 16px 26px 22px; border-top: 1px solid rgb(255 255 255 / 0.08); display: flex; justify-content: flex-end; }
.ach-list { overflow-y: auto; padding: 10px 14px; }
.ach { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; }
.ach + .ach { margin-top: 2px; }
.ach__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.375rem; background: linear-gradient(145deg, rgb(255 196 107 / 0.22), rgb(255 138 61 / 0.12)); box-shadow: inset 0 0 0 1px rgb(255 196 107 / 0.3); }
.ach__text b { display: block; font-weight: 650; }
.ach__text span { display: block; font-size: 0.875rem; color: #a49e93; line-height: 1.4; }
.ach__g { font-family: var(--mono); font-size: 0.75rem; color: var(--ku-gold); }
.ach.is-locked .ach__icon { background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); color: #5d5a54; font-family: var(--mono); font-size: 1rem; }
.ach.is-locked .ach__text b { color: #77726a; }
.ach.is-locked .ach__text span { font-style: italic; }
.ach.is-locked .ach__g { color: #55524c; }

.sheet--duck { width: min(480px, 100% - 32px); }
.duck-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; min-height: 160px; max-height: 340px; overflow-y: auto; }
.duck-chat p { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.4; animation: sheet-in 0.35s var(--ease-out); }
.duck-chat .me { align-self: flex-end; background: #2a2b33; border-end-end-radius: 6px; }
.duck-chat .duck-says { align-self: flex-start; background: #ffd23f; color: #2b2208; border-end-start-radius: 6px; font-weight: 500; }
.duck-chat .duck-says::before { content: "🦆 "; }
.duck-form { display: flex; gap: 8px; padding: 14px 18px 20px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.duck-form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.05); }
.duck-form input:focus { outline: 2px solid #ffd23f; outline-offset: 2px; }
.duck-form button { height: 48px; padding: 0 20px; border-radius: 999px; background: #ffd23f; color: #2b2208; font-weight: 700; }

.toasts { position: fixed; z-index: 1200; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(440px, 100vw - 32px); pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  color: var(--cream);
  background: rgb(18 19 24 / 0.9);
  border: 1px solid rgb(255 255 255 / 0.1);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7);
  animation: toast-in 0.6s var(--spring) both;
  pointer-events: auto;
}
[dir="rtl"] .toast { padding: 12px 12px 12px 18px; }
.toast.is-out { animation: toast-out 0.4s var(--ease-io) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(30px) scale(0.92); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(16px) scale(0.96); } }
.toast__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; font-size: 1.25rem; background: rgb(255 255 255 / 0.06); }
.toast--ach { border-color: rgb(255 196 107 / 0.35); }
.toast--ach .toast__icon { background: linear-gradient(145deg, #ffc46b, #ff8a3d); box-shadow: 0 6px 20px -6px #ff8a3d; }
.toast__text small { display: block; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ku-gold); }
.toast__text strong { display: block; font-weight: 650; line-height: 1.3; }
.toast__text span { display: block; font-size: 0.875rem; color: #b2aca1; line-height: 1.35; }

/* ==========================================================================
   EASTER EGG MODES
   ========================================================================== */
/* lights out: a flashlight follows the pointer */
.flashlight {
  --fx: 50%; --fy: 50%;
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s, visibility 0s 0.6s;
  background: radial-gradient(circle 190px at var(--fx) var(--fy), rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 0.1) 50%, rgb(2 2 4 / 0.975) 100%);
}
.lights-off .flashlight { opacity: 1; visibility: visible; transition: opacity 0.6s; }
.lights-off .dark-secret { opacity: 1; z-index: 1001; }

/* konami: CRT */
.retro-fx { position: fixed; inset: 0; z-index: 999; pointer-events: none; display: none; background: repeating-linear-gradient(to bottom, rgb(0 0 0 / 0.22) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 180px rgb(0 0 0 / 0.65); animation: flicker 0.15s steps(2) infinite; }
.retro-fx span { position: absolute; top: calc(var(--header-h) + 12px); inset-inline-start: 16px; padding: 6px 10px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.2em; color: #39ff88; background: rgb(0 0 0 / 0.7); border: 1px solid #39ff88; text-shadow: 0 0 8px #39ff88; }
.retro .retro-fx { display: block; }
.retro body { font-family: var(--mono); }
.retro h1, .retro h2, .retro h3, .retro .stat__n, .retro .email__link { font-family: var(--mono); font-stretch: 100%; letter-spacing: -0.04em; text-shadow: 2px 0 rgb(255 0 90 / 0.55), -2px 0 rgb(0 220 255 / 0.55); }
.retro h1 em, .retro h2 em, .retro h3 em { font-family: var(--mono); font-style: normal; }
.retro img { image-rendering: pixelated; }
@keyframes flicker { 50% { opacity: 0.94; } }

/* caffeine at eleven: the whole site rattles hard for a moment, then keeps a nervous tremble
   until it's turned down. eggs.js tags each object with .shake and its own tempo (--jd, --jdl,
   --jdir) and strength (--k), so nothing moves in sync. */
.jitter { --amp: 1.2px; --rot: 0.12deg; }
.jitter--hard { --amp: 3.8px; --rot: 0.55deg; }
.jitter .shake { animation: jitter var(--jd, 0.1s) linear var(--jdl, 0s) infinite var(--jdir, normal); }
.jitter .duck { animation: panic 0.36s ease-in-out infinite; }
@keyframes jitter {
  0%, 100% { translate: calc(var(--amp) * var(--k, 1)) calc(var(--amp) * var(--k, 1) * -0.7); rotate: calc(var(--rot) * var(--k, 1)); }
  25% { translate: calc(var(--amp) * var(--k, 1) * -0.9) calc(var(--amp) * var(--k, 1) * 0.5); rotate: calc(var(--rot) * var(--k, 1) * -1); }
  50% { translate: calc(var(--amp) * var(--k, 1) * 0.6) calc(var(--amp) * var(--k, 1)); rotate: calc(var(--rot) * var(--k, 1) * 0.5); }
  75% { translate: calc(var(--amp) * var(--k, 1) * -0.7) calc(var(--amp) * var(--k, 1) * -0.9); rotate: calc(var(--rot) * var(--k, 1) * -0.6); }
}
@keyframes panic { 50% { transform: translateY(-16px) rotate(-14deg); } }

/* blueprint */
.blueprint {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #e8f1ff;
  background: radial-gradient(120% 90% at 50% 40%, #134aa8, #0d3584 60%, #0a2a6a);
  cursor: zoom-out;
  overflow: hidden;
}
.blueprint[open] { display: grid; place-items: center; animation: menu-in 0.5s var(--ease-out); }
.blueprint::backdrop { background: #0a2a6a; }
.blueprint svg { width: min(92vw, 128vh); height: auto; margin-bottom: 40px; }
.bp-construct { stroke: #9cc3ff; stroke-opacity: 0.55; stroke-width: 2; fill: none; }
.bp-construct * { stroke-dashoffset: 0; }
.bp-mark__outer { stroke: #e8f1ff; stroke-width: 77; }
.bp-mark__inner { stroke: #0f3d92; stroke-width: 71; }
.bp-dims { stroke: #e8f1ff; stroke-width: 2; fill: none; }
.bp-dot { fill: #ffc46b; stroke: none; }
.bp-text text, .bp-block text { fill: #e8f1ff; font-family: var(--mono); font-size: 22px; letter-spacing: 0.06em; }
.bp-block text { font-size: 17px; }
.bp-block rect, .bp-block path { stroke: #e8f1ff; stroke-width: 2; fill: none; }
.blueprint[open] .bp-construct circle, .blueprint[open] .bp-dims path { animation: bp-draw 1.6s var(--ease-out) both; }
@keyframes bp-draw { from { opacity: 0; } }
.blueprint__note { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(720px, 100% - 32px); text-align: center; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; color: #b8d2ff; }

/* confetti canvas */
.confetti { position: fixed; inset: 0; z-index: 1300; pointer-events: none; width: 100vw; height: 100vh; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.js .reveal { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.9s var(--ease-out) calc(var(--d, 0) * 90ms), transform 1.1s var(--ease-out) calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .ray-logo.reveal { transform: scale(0.94); }
.js .ray-logo.reveal.is-in { transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .chapter__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .chapter--flip .chapter__copy { order: 0; }
  .chapter__visual { min-height: 620px; max-width: 640px; width: 100%; margin-inline: auto; }
  .family__grid { grid-template-columns: minmax(0, 1fr); }
  .ray-logo { max-width: 560px; width: 100%; margin-inline: auto; }
  .studio__grid { grid-template-columns: minmax(0, 1fr); }
  .device-wrap { position: relative; top: 0; max-width: 560px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle { grid-template-columns: 90px minmax(0, 1fr) 30px; }
  .principle p { grid-column: 2; }
  .principle__icon { grid-row: 1; grid-column: 3; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .header-tools { margin-inline-start: auto; }
  .header-tools > .lang-toggle, .header-tools > .trophy { display: none; }
  .header-tools > .trophy.has-secrets { display: inline-flex; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand__mark { width: 28px; }
  .brand__word { width: 88px; }
  .hero { --horizon: 64vh; --mark-w: min(92vw, 62vh); height: 220vh; height: 220svh; }
  .hero__content { top: calc(var(--header-h) + 5vh); }
  .hero__content h1 { font-size: clamp(2.4rem, 11.5vw, 3.6rem); max-width: 11ch; }
  .hero__lead { font-size: 0.98rem; max-width: 34ch; }
  .hero__ctas .btn { min-height: 50px; padding: 0 22px; }
  .hero__meta { grid-template-columns: 1fr auto; font-size: 0.625rem; }
  .hero__meta > span:first-child { display: none; }
  /* Wider layers on phones so the 1440-unit ridges aren't squeezed into spikes. */
  .ridges { height: 40vh; left: -70%; right: -70%; }
  .ticker { padding-block: 16px; }
  .rl-hint { display: none; }
  .rl-label { font-size: 0.625rem; }
  .rl-label--l { left: -6px; transform: translate(0, -150%); }
  .rl-label--r { left: auto; right: -6px; transform: translate(0, -150%); }
  .app-list a { grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 14px; }
  .app-list img { width: 48px; height: 48px; border-radius: 12px; }
  .app-list__code { display: none; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .app-title { gap: 16px; }
  .app-icon { width: 60px; height: 60px; border-radius: 15px; }
  .chapter__visual { min-height: 520px; }
  .cc-visual { min-height: 540px; }
  .cc-visual .phone--center { --pw: 200px; }
  .cc-visual .phone--tilt-l, .cc-visual .phone--tilt-r { --pw: 168px; }
  .cc-visual .phone--tilt-l { left: calc(50% - var(--pw) * 1.22); }
  .cc-visual .phone--tilt-r { left: calc(50% + var(--pw) * 0.22); }
  .chip { font-size: 0.8125rem; padding: 10px 14px; }
  .ku-visual { min-height: 620px; }
  .phone--ku-back { --pw: 178px; inset-inline-end: 0; }
  .phone--ku-front { --pw: 196px; inset-inline-end: 26%; }
  .ku-card { width: min(310px, 92%); }
  .ku-card__time { font-size: 3.8rem; }
  .pm-visual { min-height: 0; padding-block: 20px; }
  .pm-game { padding: 18px 12px 14px; border-radius: 28px; }
  .pm-arena { grid-template-columns: 34px minmax(0, 1fr) 34px; grid-template-rows: 34px auto 34px; gap: 4px; }
  .pm-magnet { width: 34px; height: 34px; }
  .pm-magnet svg { width: 28px; height: 28px; }
  .pm-float--1, .pm-float--3 { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 20px; }
  .stat__n { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .stat p { font-size: 0.9375rem; }
  .principle { grid-template-columns: minmax(0, 1fr) 28px; gap: 12px; padding: 30px 0; }
  .principle__num { font-size: 2.6rem; grid-column: 1; }
  .principle h3, .principle p { grid-column: 1 / -1; }
  .principle__icon { grid-row: 1; grid-column: 2; opacity: 1; transform: none; }
  .principle:hover { padding-inline: 0; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .device { padding: 26px 20px 22px; border-radius: 30px; }
  .device__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .lcd { font-size: 1.25rem; height: 58px; }
  .duck { inset-inline-end: 30px; width: 64px; }
  .contact { padding-bottom: max(52vh, 400px); }
  .contact__sun { bottom: 20vh; width: 78vw; }
  .cat { width: 38px; bottom: calc(max(44vh, 300px) * 0.098 - 3px); } /* front ridge height at x = 24% with the wider layers */
  .footer__night { text-align: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__secrets { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .hero__ctas .btn--ghost { display: none; }
}

@media (max-height: 640px) and (min-width: 761px) {
  .hero__lead { display: none; }
}

/* ==========================================================================
   ACCESSIBILITY PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero { height: 100vh; height: 100svh; }
  .hero-mark, .hero__word { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 0; padding-inline: var(--gutter); }
  .ticker__track > span:nth-child(n+9) { display: none; }
  .family__lead .w { opacity: 1 !important; }
}

/* Keep the hero's bottom line clear of the accessibility button (a11y.css, bottom start corner). */
.hero__meta { padding-inline-start: max(0px, 80px - max(var(--gutter), (100vw - 1400px) / 2)); }

/* "Stop animations" in the accessibility menu (a11y.css kills every animation and transition). */
html.a11y-still .hero { height: 100vh; height: 100svh; }
html.a11y-still :is(.hero-mark, .hero__word) { display: none; }
html.a11y-still.js .reveal { opacity: 1; transform: none; }
html.a11y-still .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 0; padding-inline: var(--gutter); }
html.a11y-still .ticker__track > span:nth-child(n+9) { display: none; }
html.a11y-still .family__lead .w { opacity: 1 !important; }
html.a11y-still .fireflies { display: none; }

@media (forced-colors: active) {
  .btn, .trophy, .lang-toggle { border: 1px solid ButtonText; }
  .hero-mark { filter: none; }
}
