/* BeniaBot — landing page styles. Hebrew first (RTL), English via [dir=ltr]. */

/* ---- Vendor styles, kept here so the page loads one stylesheet instead of three. ---- */
/* Lenis (MIT, darkroom.engineering): vendor/licenses/lenis.txt */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

/* mouse-follower 1.2.1 (MIT, Cuberto): vendor/licenses/mouse-follower.txt */
.mf-cursor{position:fixed;top:0;left:0;z-index:250;direction:ltr;contain:layout style size;pointer-events:none;transition:opacity .3s,color .4s}.mf-cursor:before{content:"";position:absolute;top:-24px;left:-24px;display:block;width:48px;height:48px;transform:scale(0.2);background:currentColor;border-radius:50%;transition:transform .25s ease-in-out,opacity .1s}.mf-cursor.-inverse{color:#fff}@supports(mix-blend-mode: exclusion){.mf-cursor.-exclusion{mix-blend-mode:exclusion}.mf-cursor.-exclusion:before{background:#fff}}.mf-cursor.-pointer:before{transform:scale(0.15)}.mf-cursor.-text:before{opacity:.85;transform:scale(1.7)}.mf-cursor.-text.-active:before{transform:scale(1.6);transition-duration:.2s}.mf-cursor.-icon:before{transform:scale(1.5)}.mf-cursor.-icon.-active:before{transform:scale(1.4)}.mf-cursor.-hidden:before{transform:scale(0)}.mf-cursor-text{position:absolute;top:-18px;left:-18px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;transform:scale(0) rotate(10deg);opacity:0;color:#fff;font-size:16px;line-height:20px;text-align:center;transition:opacity .4s,transform .3s}.mf-cursor.-text .mf-cursor-text,.mf-cursor.-icon .mf-cursor-text{opacity:1;transform:scale(1)}.mf-cursor-icon{width:100%;height:100%;object-fit:contain}.mf-cursor-media{position:absolute;width:400px;height:400px;margin:-200px 0 0 -200px}.mf-cursor-media img,.mf-cursor-media video{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:50%}@supports(object-fit: cover){.mf-cursor-media img,.mf-cursor-media video{position:static;width:100%;height:100%;object-fit:cover;transform:translateZ(0)}}.mf-cursor-media-box{position:relative;width:100%;height:100%;overflow:hidden;transform:scale(0) translateZ(0);padding:1px;opacity:0;border-radius:50%;transition:transform .35s,opacity .2s .2s}.mf-cursor.-media .mf-cursor-media-box{opacity:1;transform:scale(0.696);transition-duration:.4s,.4s;transition-delay:0s,0s}
/* ---- End of vendor styles ---- */

/* Heebo for reading, Frank Ruhl Libre for the big lines (both OFL, licences in vendor/licenses). */
@font-face {
  font-family: 'Heebo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../../vendor/fonts/heebo-hebrew-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../../vendor/fonts/heebo-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Frank Ruhl Libre Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(../../vendor/fonts/frank-ruhl-libre-hebrew-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(../../vendor/fonts/frank-ruhl-libre-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================= TOKENS ================= */
:root {
  --bg: #09090c;
  --surface: #131319;
  --surface-2: #1a1a22;
  --line: rgb(255 255 255 / .09);
  --line-2: rgb(255 255 255 / .16);
  --text: #f3f1ec;
  --muted: #b3b0ba;
  --dim: #8f8c98;

  --c-tools: #ffb84c;
  --c-games: #5cc8ff;
  --c-cynic: #ff5c7a;
  --c-ai: #3ee6a4;
  --c-vibe: #a493ff;
  --accent: var(--c-tools);

  --font: 'Heebo Variable', 'Heebo', 'Arial Hebrew', Arial, system-ui, sans-serif;
  --font-display: 'Frank Ruhl Libre Variable', 'Frank Ruhl Libre', 'Heebo Variable', Georgia, serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'Heebo Variable', monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);
  --fs-hero: clamp(3.5rem, 1.2rem + 12vw, 11rem);

  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --section: clamp(72px, 4rem + 4vw, 128px);
  --gap: clamp(16px, 1.8vw, 24px);
  --r-card: 20px;
  --r-media: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);

  color-scheme: dark;
}
/* Each wing owns its colour; the html attribute only drives the nav and the backdrop. */
[data-wing="tools"] { --accent: var(--c-tools); }
[data-wing="games"] { --accent: var(--c-games); }
[data-wing="cynic"] { --accent: var(--c-cynic); }
[data-wing="ai"] { --accent: var(--c-ai); }
[data-wing="vibe"] { --accent: var(--c-vibe); }
.nav { --accent: var(--c-tools); transition: --accent .6s; }
html[data-active="games"] .nav { --accent: var(--c-games); }
html[data-active="cynic"] .nav { --accent: var(--c-cynic); }
html[data-active="ai"] .nav { --accent: var(--c-ai); }
html[data-active="vibe"] .nav { --accent: var(--c-vibe); }

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.i18n-wait body { visibility: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--c-tools); color: #0a0a0d; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nw { white-space: nowrap; }
.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Hidden with clip-path, never with a far-off left offset (that blanks the page on RTL phones). */
.skip {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip:focus { clip-path: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow .i { width: 20px; height: 20px; }

/* ================= BACKDROP ================= */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ambient > * { position: absolute; inset: 0; width: 100%; height: 100%; }
/* What you see without WebGL: the same palette, held low under the content. */
.ambient-fallback {
  background:
    radial-gradient(60% 50% at 78% 18%, rgb(255 184 76 / .20), transparent 62%),
    radial-gradient(55% 55% at 18% 26%, rgb(98 74 220 / .32), transparent 65%),
    radial-gradient(70% 60% at 50% 100%, rgb(255 92 122 / .10), transparent 70%),
    #0b0a12;
}
.ambient-gl { opacity: 0; transition: opacity 1.4s ease; }
.ambient-gl.is-on { opacity: 1; }
.ambient-grain {
  opacity: .5;
  background: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, --accent .6s;
}
.nav.is-scrolled {
  background: rgb(9 9 12 / .74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; transition: color .6s; }
.brand-mark .eye { fill: var(--text); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 3px;
  margin-inline: auto;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn, .icon-btn {
  display: inline-grid;
  place-items: center;
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .04);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: border-color .25s, color .25s;
}
.icon-btn { padding: 0; width: 44px; }
.icon-btn .i { width: 20px; height: 20px; }
.lang-btn:hover, .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-progress { position: absolute; inset: auto 0 -1px 0; height: 2px; pointer-events: none; }
.nav-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: background-color .6s;
}
[dir="ltr"] .nav-progress i { transform-origin: 0 50%; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 32px) 0 96px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -.005em;
  text-shadow: 0 4px 40px rgb(0 0 0 / .25);
}
[lang="en"] .hero-title { letter-spacing: -.035em; line-height: .98; }
.hero-title .w-mask { padding-block: .08em; margin-block: -.08em; }
.hero-title .c { font-variation-settings: 'wght' var(--wght, 560); }
.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 26px;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text);
}
.hero-tagline i { font-style: normal; color: var(--c-tools); opacity: .9; }
.hero-quote {
  max-width: 32em;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgb(0 0 0 / .35);
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--spring);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: #0a0a0d; }
.btn-primary:hover { background: var(--c-tools); }
.btn-ghost { border: 1px solid var(--line-2); background: rgb(9 9 12 / .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--text); }
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 22px;
  height: 34px;
  margin-left: -11px;
  border: 1.5px solid rgb(255 255 255 / .3);
  border-radius: 12px;
}
.scroll-cue i {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  25% { opacity: 1; }
  70%, 100% { opacity: 0; transform: translateY(11px); }
}
/* A mouse is the wrong picture on a phone; there the button above says it. */
@media (pointer: coarse) { .scroll-cue { display: none; } }

/* ================= INTRO ================= */
.intro { padding-top: var(--section); }
.intro-text {
  max-width: 26em;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 450;
  line-height: 1.25;
  text-wrap: balance;
}
@media (min-width: 640px) { .intro-text bdi, .wi-name bdi, .hl { white-space: nowrap; } }
.wing-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 48px; }
.wi {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  height: 100%;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in oklab, var(--a) 16%, var(--surface)), var(--surface) 62%);
  text-decoration: none;
  transition: transform .5s var(--spring), border-color .3s, box-shadow .4s;
}
.wi:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: color-mix(in oklab, var(--a) 45%, transparent);
  box-shadow: 0 18px 50px -24px color-mix(in oklab, var(--a) 60%, transparent);
}
.wi-ic { width: 26px; height: 26px; color: var(--a); }
.wi-name { flex: 1; min-width: 0; font-weight: 600; font-size: var(--fs-lg); line-height: 1.3; text-wrap: balance; }
.wi-num { color: var(--dim); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }


/* ================= WINGS ================= */
.wing { position: relative; padding-top: var(--section); }
.wing-head { margin-bottom: 40px; }
.wing-num { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.wing-num .i { width: 22px; height: 22px; }
.wing-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.01em;
}
.wing-title .w-mask { padding-block: .08em; margin-block: -.08em; }
.wing-title-ai { font-size: calc(var(--fs-3xl) * .88); letter-spacing: -.035em; line-height: 1; unicode-bidi: isolate; }
.wing-title-ai .sw { display: inline-block; }
[dir="rtl"] .wing-title-ai { text-align: right; }
.wing-sub { margin-top: 14px; max-width: 36em; color: var(--muted); font-size: var(--fs-lg); line-height: 1.5; text-wrap: balance; }
.wing-title { text-wrap: balance; }

/* ================= CARDS ================= */
/* Three across on six tracks, so a lone card in the last row can sit in the middle. */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.grid > .card { grid-column: span 2; }
.grid > .card:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }

/* The reveal animates .card's opacity, so the hover dim lives on .card-inner. */
.card { position: relative; display: flex; min-width: 0; }
.card-inner {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #16161d, #111117);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
  isolation: isolate;
  transition: border-color .35s, box-shadow .45s, opacity .35s;
}
/* Light that follows the pointer, inside and on the border. */
.card-inner::before, .card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
.card-inner::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%);
}
.card-inner::after {
  z-index: 3;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 85%, transparent), transparent 65%);
  -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);
}

.media {
  position: relative;
  margin: 8px;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-media);
  border: 1px solid rgb(255 255 255 / .06);
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 50% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 62%),
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / .06) 1px, transparent 0) 0 0 / 16px 16px,
    #0e0e13;
}
.media > * { transition: transform .7s var(--ease); }
.media-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.media-ic {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 6px 18px rgb(0 0 0 / .4);
  z-index: 2;
}
.art { position: absolute; inset: 0; display: grid; place-items: center; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 22px 18px; }
.card-title { font-size: var(--fs-lg); font-weight: 600; line-height: 1.25; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.card-title a { text-decoration: none; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-card); }
.stretched:focus-visible { outline: none; }
.alt-name { color: var(--dim); font-size: var(--fs-xs); font-weight: 500; }
.alt-name:empty { display: none; }
.card-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
  text-wrap: pretty;
}
.card-desc bdi { white-space: nowrap; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  min-height: 48px;
  border-top: 1px solid rgb(255 255 255 / .06);
}
.card-desc + .card-foot { margin-top: auto; }
.card-body > .card-desc { margin-bottom: 16px; }
.platform { color: var(--dim); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .01em; }
.platform-note { color: var(--accent); font-weight: 600; }
.pill {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .03);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.pill .i { width: 15px; height: 15px; }
.pill-quiet { z-index: auto; color: var(--muted); pointer-events: none; }
.pill:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0d; }

/* Keyboard focus anywhere in a card lifts it like a hover. */
.card:has(.stretched:focus-visible) .card-inner {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
}

/* The swell. GSAP adds tilt and depth on a mouse; this is the CSS part that
   every pointer device shares (and the whole effect when scripts are off). */
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-inner {
    border-color: color-mix(in oklab, var(--accent) 45%, transparent);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / .08),
      0 28px 60px -22px rgb(0 0 0 / .85),
      0 18px 70px -26px color-mix(in oklab, var(--accent) 60%, transparent);
  }
  .card:hover .card-inner::before, .card:hover .card-inner::after { opacity: 1; }
  html:not(.tilt-on) .card:hover .media-shot, html:not(.tilt-on) .card:hover .art { transform: scale(1.05); }
  html.tilt-on .media > * { transition: none; }
  .card:hover .pill-quiet { color: var(--text); border-color: var(--text); }
  .grid:has(.card:hover) .card:not(:hover) .card-inner { opacity: .62; }
  html:not(.tilt-on) .card:hover .card-inner { transform: translateY(-6px) scale(1.025); }
  html:not(.tilt-on) .card-inner { transition: transform .5s var(--spring), border-color .35s, box-shadow .45s, opacity .35s; }
  /* The card stays on top while it settles back, so its shadow doesn't slip under the next one. */
  .card { z-index: 0; transition: z-index 0s .6s; }
  .card:hover { z-index: 2; transition-delay: 0s; }
  /* Perspective on the card, not on the transform, so a resting card has no 3D transform and its text stays crisp. */
  html.tilt-on .card { perspective: 900px; }
}
@media (hover: none) {
  .card:active .card-inner { transform: scale(.985); transition: transform .12s; }
}

/* The turn-over (html.flip-on: a mouse and motion allowed; see initFlip in main.js).
   The two sides carry the card's surface themselves, so the whole card turns,
   not just its contents. Nothing that flattens 3D (opacity, overflow) sits
   above the sides while a card is turning. */
html.flip-on .card-inner,
html.flip-on .card:hover .card-inner {
  display: block;
  border-color: transparent;
  background: none;
  box-shadow: none;
  transform-style: preserve-3d;
}
html.flip-on .card-inner::before, html.flip-on .card-inner::after { display: none; }
html.flip-on .grid:has(.card:hover) .card:not(:hover) .card-inner { opacity: 1; }
html.flip-on .grid:has(.card:hover) .card:not(:hover) .face { opacity: .62; }

.flip {
  position: relative;
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .75, .15, 1);
}
.card.is-flipped .flip { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #16161d, #111117);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color .35s, box-shadow .45s, opacity .35s;
}
.face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%);
}
/* The back is mirrored, so its light comes from the mirrored side. */
.face-back::before { background: radial-gradient(420px circle at calc(100% - var(--mx)) var(--my), color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%); }
.card:hover .face::before { opacity: 1; }
.card:hover .face {
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .08),
    0 28px 60px -22px rgb(0 0 0 / .85),
    0 18px 70px -26px color-mix(in oklab, var(--accent) 60%, transparent);
}
.face-back { transform: rotateY(180deg); }
.card:not(.is-flipped) .face-back, .card.is-flipped .face-front { pointer-events: none; }
.face-front { cursor: pointer; }
.face-front .media { flex: 1 0 auto; }
.front-name {
  padding: 4px 22px 20px;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}
.face-back .card-body { padding-top: 22px; }
.face-back .card-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; line-height: 1.2; }
.face-back .card-title .alt-name { font-family: var(--font); }

/* ================= CARD VISUALS ================= */
/* Offline store: internet → USB → offline machine */
.viz-flow { display: flex; justify-content: center; align-items: center; }
.viz-flow .node {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--muted);
}
.viz-flow .node .i { width: 22px; height: 22px; }
.viz-flow .node-mid { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, transparent); box-shadow: 0 0 34px -6px color-mix(in oklab, var(--accent) 55%, transparent); }
.viz-flow .wire {
  width: clamp(24px, 5vw, 44px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: wire 1s linear infinite;
  opacity: .8;
}
@keyframes wire { to { background-position: -24px 0; } }
[dir="ltr"] .viz-flow .wire { animation-direction: reverse; }

/* Room planner: a floor sheet */
.floor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 14px auto;
  gap: 6px;
  width: 76%;
}
.corridor { grid-column: 1 / -1; align-self: center; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.room {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 5px;
  min-height: 52px;
  padding: 20px 8px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--line-2);
  background: rgb(255 255 255 / .02);
}
.room b { position: absolute; top: 5px; inset-inline-start: 8px; font-size: .62rem; font-weight: 500; color: var(--dim); font-variant-numeric: tabular-nums; }
.room i { width: 11px; height: 11px; border-radius: 50%; }
.room .g1 { background: var(--accent); }
.room .g2 { background: #8fb0ff; }
.room .g3 { background: #e9e4d8; }

/* Csharf: a console window */
.term { width: 80%; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -20px rgb(0 0 0 / .8); }
.term-bar { display: flex; justify-content: space-between; align-items: center; padding: 7px 11px; background: #1c1c24; color: var(--muted); font: 500 .7rem/1 var(--mono); }
.term-bar .win { display: flex; gap: 9px; }
.term-bar .win i { width: 8px; height: 8px; border: 1.5px solid var(--dim); border-radius: 2px; }
.term-bar .win i:first-child { height: 0; border-width: 1.5px 0 0; align-self: center; }
.term-body { padding: 10px 13px 12px; background: #0c0c10; font-size: .82rem; line-height: 1.8; }
.t-line { display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; }
/* On a very narrow phone a long menu line ends in an ellipsis, like a real terminal window would cut it. */
.t-line > span[data-i18n] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.t-k { color: var(--accent); font: 600 .75rem/1 var(--mono); min-width: 1ch; }
.t-ok { color: var(--text); }
.caret { display: inline-block; width: .5em; height: 1em; margin-inline-start: 3px; background: var(--accent); vertical-align: -.12em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Tik-Nick: local-only nick cards */
.viz-nicks { align-content: center; gap: 6px; }
.viz-nicks .nick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 64%;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.nick .av { width: 22px; height: 22px; border-radius: 50%; flex: none; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 80%, #fff), color-mix(in oklab, var(--accent) 70%, #000)); }
.nick .bar { height: 7px; border-radius: 4px; background: var(--line-2); transform-origin: 100% 50%; }
[dir="ltr"] .nick .bar { transform-origin: 0 50%; }
.nick .bar.soft { opacity: .45; }
.w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w55 { width: 55%; } .w70 { width: 70%; } .w80 { width: 80%; }
.local {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 16%, #0e0e13);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
}
.local .i { width: 13px; height: 13px; }

/* ovpn-kit: a spec sheet, nothing more */
.viz-spec { grid-template-columns: max-content; justify-content: center; justify-items: start; align-content: center; gap: 4px; padding: 0; font: 500 .74rem/1.55 var(--mono); color: var(--dim); text-align: left; }
.viz-spec p { white-space: nowrap; }
.viz-spec b { color: var(--muted); font-weight: 600; }
.viz-spec span { color: var(--accent); }

/* Websites band */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: center;
  gap: 32px;
  margin-top: var(--gap);
  padding: 26px 32px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 100% 50%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, #16161d, #111117);
}
[dir="ltr"] .band { background:
    radial-gradient(80% 140% at 0% 50%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, #16161d, #111117); }
.band-title { font-size: var(--fs-xl); font-weight: 600; line-height: 1.25; }
.band-desc { margin-top: 6px; color: var(--muted); font-size: var(--fs-md); }
.band-desc strong { color: var(--text); font-weight: 600; }
.mini-browser { width: 100%; border-radius: 10px; border: 1px solid var(--line-2); background: #0e0e13; overflow: hidden; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .8); }
.mb-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #1c1c24; }
.mb-bar > i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.mb-url { margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; background: rgb(255 255 255 / .05); color: var(--dim); font: 500 .62rem/1.4 var(--mono); }
.mb-body { display: grid; gap: 8px; padding: 9px; }
/* A miniature of this page's own opening: the same colours, the name, two buttons. */
.mb-hero {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px 10px 14px;
  border-radius: 6px;
  background:
    radial-gradient(55% 75% at 72% 28%, rgb(96 66 214 / .62), transparent 72%),
    radial-gradient(45% 70% at 18% 92%, rgb(255 168 72 / .38), transparent 70%),
    #0b0b10;
}
.mb-hero b { color: var(--text); font-size: 1.55rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.mb-tags, .mb-cta { display: flex; gap: 5px; }
.mb-tags i { width: 30px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .55); }
.mb-cta { margin-top: 2px; }
.mb-cta i { width: 40px; height: 11px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .35); }
.mb-cta i:first-child { background: var(--text); border-color: var(--text); }
.mb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mb-grid i { height: 30px; border-radius: 5px; border: 1px solid var(--line); background: linear-gradient(var(--c, var(--c-tools)) 0 0) 0 0 / 100% 3px no-repeat, #15151b; }
.mb-grid i:nth-child(2) { --c: var(--c-cynic); }
.mb-grid i:nth-child(3) { --c: var(--c-ai); }

/* not-free: the bypass that never bypasses */
.bp { width: 76%; }
.bp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; color: var(--muted); font-size: .92rem; }
.bp-pct { color: var(--accent); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bp-bar { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bp-bar i { display: block; width: 99%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ffa36b); }
.bp-out { margin-top: 14px; font-size: 1.45rem; font-weight: 800; }

/* 2049: four tiles */
.tiles { display: flex; gap: 7px; padding: 9px; border-radius: 12px; background: #b5a79a; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .8); filter: brightness(.94); }
.tile { position: relative; display: grid; place-items: center; width: clamp(44px, 4.4vw, 54px); aspect-ratio: 1; border-radius: 7px; font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 800; }
.tile.v2 { background: #eee4da; color: #776e65; }
.tile.v0 { background: #f2b179; color: #fff; }
.tile.v4 { background: #ede0c8; color: #776e65; }
.tile.v9 { background: #edc22e; color: #fff; }
.tile-prev { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: #f59563; color: #fff; opacity: 0; }

/* Hosmim o Mefanim: two sides */
.viz-sides { isolation: isolate; }
.sides { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 72%; height: 52px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(9 9 12 / .6); }
.side { position: relative; z-index: 1; display: grid; place-items: center; font-weight: 600; font-size: 1rem; }
.knob { position: absolute; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc(50% - 5px); border-radius: 999px; background: color-mix(in oklab, var(--accent) 28%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 70%, transparent); animation: knob 3.4s var(--ease) infinite; }
@keyframes knob { 0%, 38% { translate: 0 0; } 50%, 88% { translate: -100% 0; } 100% { translate: 0 0; } }
[dir="ltr"] .knob { animation-name: knob-ltr; }
@keyframes knob-ltr { 0%, 38% { translate: 0 0; } 50%, 88% { translate: 100% 0; } 100% { translate: 0 0; } }
.siren { position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(34px); opacity: .4; animation: siren 1.7s ease-in-out infinite alternate; }
.siren.s1 { background: #ff3b5c; inset-inline-start: 6%; top: 4%; }
.siren.s2 { background: #3b6bff; inset-inline-end: 6%; bottom: -6%; animation-delay: -.85s; }
@keyframes siren { from { opacity: .12; } to { opacity: .45; } }

/* Orbitap: a ship circling a planet whose time is running out, the next planet waiting above */
@property --o-t { syntax: '<percentage>'; inherits: false; initial-value: 72%; }
.orbit { position: relative; width: 220px; height: 160px; }
.o-ring { position: absolute; left: 40px; top: 46px; width: 104px; height: 104px; border-radius: 50%; border: 1.5px solid rgb(143 227 255 / .35); }
.o-timer {
  position: absolute; left: 32px; top: 38px; width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(#f0b95a var(--o-t), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  opacity: .9;
  animation: o-time 6.4s linear infinite;
}
.o-planet { position: absolute; left: 66px; top: 72px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #ffe2a0, #f0b95a 50%, #8c5a1c); box-shadow: 0 0 36px rgb(240 185 90 / .35); }
.o-arm { position: absolute; left: 92px; top: 98px; width: 0; height: 0; animation: o-spin 3.2s linear infinite; }
.o-ship { position: absolute; left: 45px; top: -9px; width: 14px; height: 18px; background: #f4fbff; clip-path: polygon(50% 100%, 0 0, 50% 28%, 100% 0); filter: drop-shadow(0 0 6px rgb(170 240 255 / .9)); }
/* the trail behind the ship: an arc of the ring, turning with it (the ship sits at 90deg, moving clockwise) */
.o-trail {
  position: absolute; left: 39px; top: 45px; width: 106px; height: 106px; border-radius: 50%;
  background: conic-gradient(transparent 0deg 22deg, rgb(160 235 255 / 0) 22deg, rgb(160 235 255 / .85) 86deg, transparent 88deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  animation: o-spin 3.2s linear infinite;
}
.o-next { position: absolute; right: 18px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #c4f2ff, #5cc8ff 50%, #1d4f7a); box-shadow: 0 0 22px rgb(92 200 255 / .35); }
.o-next::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px dashed rgb(143 227 255 / .4); }
.o-gold { position: absolute; right: 70px; top: 52px; width: 7px; height: 7px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 10px 4px rgb(255 200 100 / .45); animation: o-bob 2.2s ease-in-out infinite alternate; }
@keyframes o-spin { to { transform: rotate(360deg); } }
@keyframes o-time { from { --o-t: 100%; } to { --o-t: 8%; } }
@keyframes o-bob { to { translate: 0 -4px; } }

/* biTime: a phone, cropped through its own white space */
.viz-phone { align-items: start; padding-top: 16px; }
.phone {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  width: 150px;
  height: 260px;
  padding: 16px 12px;
  border-radius: 28px;
  border: 6px solid #1d1d26;
  background: #f2f0ea;
  color: #16243f;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8), 0 0 0 1px var(--line-2);
  overflow: hidden;
  filter: brightness(.86);
}
.ph-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #ffb36b, #ff6f8e); color: #fff; }
.ph-ic .i { width: 18px; height: 18px; }
.ph-l { font-size: .7rem; color: #6b7891; margin-top: 2px; }
.ph-n { display: flex; align-items: baseline; gap: 4px; }
.ph-n b { font-size: 2.2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ph-n small { color: #0a7f9f; font-weight: 700; font-size: .8rem; }
.ph-btn { margin-top: 8px; padding: 7px 24px; border-radius: 999px; background: linear-gradient(90deg, #0fb5be, #0b6fc0); color: #fff; font-weight: 700; font-size: .8rem; }
.ph-done { position: absolute; inset: 0 0 auto; height: 172px; display: grid; place-items: center; padding: 14px; background: rgb(242 240 234 / .97); color: #127a4e; font-weight: 800; font-size: .98rem; text-align: center; line-height: 1.35; opacity: 0; }

/* Lavan Haarami: gold logo and a very serious number */
.viz-lavan { align-content: center; justify-items: center; gap: 10px; }
.viz-lavan::before { content: ''; position: absolute; inset: 0; background: radial-gradient(45% 55% at 50% 42%, rgb(214 168 74 / .22), transparent 70%); }
.lavan-logo { position: relative; width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 60px -10px rgb(214 168 74 / .6); }
.params { position: relative; display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: .88rem; }
.params b { font-size: 1.5rem; font-weight: 700; color: #e9c46a; font-variant-numeric: tabular-nums; }

/* Tom Riddle's Diary: a Word page that answers back */
.viz-word { align-items: start; padding-top: 18px; }
.viz-word .page {
  width: 66%;
  height: 260px;
  padding: 16px 18px;
  border-radius: 6px 6px 0 0;
  background: #f2f0ea;
  color: #2b2b2b;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8);
  font-size: .78rem;
  line-height: 1.5;
  filter: brightness(.86);
}
.w-q { min-height: 1.6em; }
.w-q .caret { background: #2b579a; width: 2px; }
.w-a { margin-top: 3px; color: #2b579a; font-weight: 500; }
.ttt { display: grid; grid-template-columns: repeat(3, 22px); margin-top: 10px; justify-content: start; }
[dir="rtl"] .ttt { justify-content: end; }
.ttt i { display: grid; place-items: center; height: 22px; border: 1px solid #c9c6bd; font: 700 .75rem/1 var(--mono); font-style: normal; color: #2b579a; }
.ttt i:nth-child(-n+3) { border-top: 0; }
.ttt i:nth-child(n+7) { border-bottom: 0; }
.ttt i:nth-child(3n+1) { border-left: 0; }
.ttt i:nth-child(3n) { border-right: 0; }

/* ================= VIBE CODING ================= */
.vibe { padding-top: var(--section); }
.vibe-inner > * { max-width: 46rem; }
.vibe-big { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 450; line-height: 1.22; letter-spacing: -.01em; text-wrap: pretty; }
/* Inline, so a full stop after a Latin word can't start a line of its own. */
.vibe-big .w { display: inline !important; will-change: opacity; }
.vibe-lead { margin-top: 40px; color: var(--muted); font-size: var(--fs-lg); text-wrap: pretty; }
.answers { margin-top: 18px; }
.answers li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.3;
}
.answers li:last-child { border-bottom: 1px solid var(--line); }
.ans-n {
  flex: none;
  width: 1.2em;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  font-variant-numeric: tabular-nums;
}
.vibe-note { margin-top: 28px; color: var(--muted); font-size: var(--fs-md); line-height: 1.75; text-wrap: pretty; }

/* ================= OUTRO ================= */
.outro { padding-block: calc(var(--section) * 1.4); text-align: center; }
.outro-inner { position: relative; }
.outro-inner::before {
  content: '';
  position: absolute;
  inset: -20% 5%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(9 9 12 / .55), transparent);
}
.outro .eyebrow { justify-content: center; }
.outro-big {
  max-width: 22em;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(0 0 0 / .55);
}
.outro-sign { margin-top: 24px; color: var(--text); font-size: var(--fs-xl); text-wrap: balance; text-shadow: 0 2px 30px rgb(0 0 0 / .55); }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--line); padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: var(--fs-sm); background: rgb(9 9 12 / .7); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 26px; height: 26px; color: var(--c-tools); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-label { color: var(--muted); }
.footer-links a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-block: 6px; transition: border-color .25s; }
.footer-links a:hover { border-color: var(--c-tools); }

/* ================= CURSOR (mouse-follower) ================= */
.mf-cursor { color: var(--text); z-index: 60; }
.mf-cursor:before { opacity: .9; }
.mf-cursor-text { color: #0a0a0d; font: 600 12px/1.2 var(--font); direction: rtl; white-space: nowrap; }
[dir="ltr"] .mf-cursor-text { direction: ltr; }

/* ================= ANIMATION STATES ================= */
/* Hidden only while the animation script is alive; .no-anim (set on failure,
   reduced motion, or the 4s failsafe) and no-JS both leave everything visible. */
.js:not(.no-anim) [data-reveal],
.js:not(.no-anim) [data-split],
.js:not(.no-anim) [data-split-hero],
.js:not(.no-anim) [data-hero-item],
.js:not(.no-anim) [data-scramble-title] { opacity: 0; }
/* On a phone the opening is there at once: it is what a phone visitor
   waits for, and the scripts arrive last on a slow connection. */
@media (hover: none), (pointer: coarse) {
  .js:not(.no-anim) [data-split-hero],
  .js:not(.no-anim) [data-hero-item] { opacity: 1; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .wing-index { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid > .card:last-child:nth-child(3n + 1) { grid-column: span 2; }
  .grid > .card:last-child:nth-child(2n + 1) { grid-column: 2 / span 2; }
}
@media (pointer: coarse) {
  .pill { min-height: 44px; padding-inline: 16px; }
  .footer-links a { padding-block: 12px; }
  .brand { min-height: 44px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 700px) {
  .band { grid-template-columns: 1fr; gap: 20px; }
  .band-art { max-width: 360px; }
}
@media (min-width: 641px) {
  /* Same height for every description, so rows in different wings line up. */
  .card-desc { min-height: calc(1.55em * 3); }
}
@media (max-width: 640px) {
  :root { --r-card: 18px; --nav-h: 60px; }
  .hero-tagline { gap: 6px 18px; }
  .hero-tagline i { display: none; }
  body { font-size: 1rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > .card, .grid > .card:last-child:nth-child(n) { grid-column: auto; }
  .card-body { padding: 10px 18px 16px; }
  .hero { min-height: 92svh; padding-bottom: 64px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .wing-head { margin-bottom: 28px; }
  .band { padding: 22px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .card .card-inner, .card .media > * { transform: none !important; }
  .knob { translate: 0 0; }
  .scroll-cue { display: none; }
}

/* Sections focused by an in-page link don't need a ring; their content does. */
[tabindex="-1"]:focus { outline: none; }
/* If the motion layer gives up, nothing may stay unclickable. */
.no-anim [data-reveal] { pointer-events: auto !important; }
/* The language button only appears once the script that runs it has loaded. */
html:not(.i18n-on) [data-lang-toggle] { visibility: hidden; }

/* Windows high-contrast (forced colours): the system palette takes over, so the
   moving backdrop goes away, and the decorative demos inside the cards keep
   their own colours; without them the room dots and bars simply vanish. */
@media (forced-colors: active) {
  .ambient { display: none; }
  .media { forced-color-adjust: none; }
  /* A filled button loses its fill here; an outline keeps it a button. */
  .btn { border: 1px solid currentColor; }
}
