:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066cc;
  --card: #f5f5f7;
  --btn: #0071e3;
  --btn-fg: #fff;
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --line: #424245;
    --accent: #2997ff;
    --card: #161617;
    color-scheme: dark;
  }
}

/* Scene palettes. Each project has its own; the page background glides between them. */
[data-scene="base"]   { --s-bg: var(--bg); --s-fg: var(--fg); --s-muted: var(--muted); --s-accent: var(--accent); --s-btn: var(--btn); --s-btn-fg: #fff; --s-line: var(--line); }
[data-scene="adhd"]   { --s-bg: #1b1140; --s-fg: #ffffff; --s-muted: #cfc6f2; --s-accent: #c4b5fd; --s-btn: #7c3aed; --s-btn-fg: #fff; --s-line: #3b2d75; }
[data-scene="forger"] { --s-bg: #0b1020; --s-fg: #f5f5f7; --s-muted: #b8c0d4; --s-accent: #4ade80; --s-btn: #4ade80; --s-btn-fg: #052e16; --s-line: #26304a; }
[data-scene="ghost"]  { --s-bg: #0b1f33; --s-fg: #f2f8ff; --s-muted: #b8d4ee; --s-accent: #3fa9f5; --s-btn: #3fa9f5; --s-btn-fg: #04223a; --s-line: #1f4266; }
[data-scene="trivia"] { --s-bg: #0b1424; --s-fg: #f3f7ff; --s-muted: #c9d3ea; --s-accent: #ffc93c; --s-btn: #ffc93c; --s-btn-fg: #1b2340; --s-line: #24345c; }
[data-scene="optim"]  { --s-bg: #0f1a12; --s-fg: #f2fff4; --s-muted: #b6d3b0; --s-accent: #a3e635; --s-btn: #a3e635; --s-btn-fg: #1a2e05; --s-line: #24402a; }
[data-scene="ppd"]    { --s-bg: #1f0d1a; --s-fg: #fff5fb; --s-muted: #e8bfd6; --s-accent: #f472b6; --s-btn: #f472b6; --s-btn-fg: #3b0a24; --s-line: #4a2340; }
[data-scene="bbv2"]   { --s-bg: #04161f; --s-fg: #f0fbff; --s-muted: #a7d3df; --s-accent: #22d3ee; --s-btn: #22d3ee; --s-btn-fg: #042f3a; --s-line: #12394a; }
[data-scene="bbv1"]   { --s-bg: #0b0a24; --s-fg: #f8f7ff; --s-muted: #c9c6f0; --s-accent: #fde047; --s-btn: #fde047; --s-btn-fg: #1a1500; --s-line: #2a2860; }
/* Area pages */
[data-scene="dev"]    { --s-bg: #120d2e; --s-fg: #ffffff; --s-muted: #cdc6f0; --s-accent: #a78bfa; --s-btn: #7c3aed; --s-btn-fg: #fff; --s-line: #2e2563; }
[data-scene="fin"]    { --s-bg: #06231a; --s-fg: #f2fff9; --s-muted: #a9dcc6; --s-accent: #34d399; --s-btn: #34d399; --s-btn-fg: #022c1e; --s-line: #134634; }
[data-scene="comp"]   { --s-bg: #0a1830; --s-fg: #f3f7ff; --s-muted: #b3c3e0; --s-accent: #60a5fa; --s-btn: #3b82f6; --s-btn-fg: #fff; --s-line: #1f3a63; }
[data-scene="edu"]    { --s-bg: #2a1606; --s-fg: #fff9f2; --s-muted: #e6c9a8; --s-accent: #fbbf24; --s-btn: #fbbf24; --s-btn-fg: #2a1606; --s-line: #5a3613; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 44px; scroll-snap-type: y mandatory; }
/* Each section is one full screen and the page always settles on a whole one, never halfway. */
main > .scene, #work > .scene { scroll-snap-align: start; scroll-snap-stop: always; min-height: calc(100svh - 44px); display: flex; flex-direction: column; justify-content: center; }
main > .scene > .wrap, #work > .scene > .wrap { width: 100%; }
.foot { scroll-snap-align: end; }
body {
  margin: 0;
  background: var(--s-bg);
  color: var(--s-fg);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  transition: background-color .9s var(--ease), color .9s var(--ease);
}
a { color: var(--s-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 22px; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--s-bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--s-fg) 10%, transparent);
  transition: background-color .9s var(--ease);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 44px; font-size: 12px; letter-spacing: .01em; }
.brand { color: inherit; font-weight: 600; font-size: 17px; letter-spacing: -0.022em; white-space: nowrap; text-decoration: none; }
.brand { display: inline-flex; align-items: center; }
.brand-mark { display: block; width: 76px; height: 40px; background: var(--accent); -webkit-mask: url(media/brand/moya-script.png) center / contain no-repeat; mask: url(media/brand/moya-script.png) center / contain no-repeat; }
:root:not([data-theme]) .brand-mark { background: currentColor; }
.nav nav { display: flex; flex: 1; justify-content: space-evenly; gap: 20px; margin-inline: 32px; }
.nav nav a { color: inherit; opacity: .8; }
.nav nav a:hover, .nav nav a[aria-current] { opacity: 1; text-decoration: none; }
.nav nav a[aria-current] { font-weight: 600; }

/* Project rail */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 4; display: none; flex-direction: column; gap: 14px; opacity: 0; transition: opacity .5s; }
.rail.on { opacity: 1; }
.rail a { position: relative; display: block; width: 8px; height: 8px; border-radius: 8px; background: currentColor; color: inherit; opacity: .35; transition: height .5s var(--ease), opacity .5s; }
.rail a.cur { height: 28px; opacity: 1; }
.rail span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }
@media (min-width: 1000px) { .rail { display: flex; } }

/* Scenes */
.scene { background: var(--s-bg); color: var(--s-fg); padding-block: 96px; position: relative; }
.js .scene { background: transparent; }
.project { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.project .wrap { width: 100%; }

.hero { text-align: center; min-height: calc(100svh - 44px); display: flex; align-items: center; justify-content: center; }
.eyebrow { color: var(--s-muted); font-size: 17px; font-weight: 600; margin: 0 0 12px; }
h1, h2, h3, .lede { text-wrap: balance; }
h1 { font-size: clamp(40px, 7.5vw, 88px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 0; }
.lede { font-size: clamp(19px, 2.4vw, 24px); color: var(--s-muted); max-width: 640px; margin: 24px auto 0; line-height: 1.4; }
.cta { margin-top: 36px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--s-btn); color: var(--s-btn-fg); padding: 12px 22px; border-radius: 980px; font-weight: 500; transition: transform .3s var(--ease), filter .3s; }
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: scale(1.03); }
.cue { position: absolute; left: 50%; bottom: 28px; width: 28px; height: 28px; margin-left: -14px; color: var(--s-muted); }
.cue span { display: block; width: 12px; height: 12px; margin: 6px auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: nudge 1.6s var(--ease) 3; }
@keyframes nudge { 50% { transform: translateY(6px) rotate(45deg); } }

h2 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 32px; font-weight: 700; }
h3 { font-size: clamp(36px, 5.5vw, 64px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev .copy { order: 2; }
.split:has(.wide) { grid-template-columns: 1fr 1.3fr; gap: 48px; }
.split.rev:has(.wide) { grid-template-columns: 1.3fr 1fr; }
.tag { font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 16px; color: var(--s-accent); }
.copy > p { margin: 0 0 16px; color: var(--s-muted); font-size: 19px; }
.copy > .eyebrow { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 28px 0 32px; }
.stats dt { font-size: 13px; color: var(--s-muted); order: 2; max-width: 16ch; }
.stats div { display: flex; flex-direction: column; }
.stats dd { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Media frames */
.media { margin: 0; display: flex; justify-content: center; }
.screen { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--s-accent) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--s-fg) 12%, transparent); width: fit-content; max-width: 100%; background: #000; line-height: 0; }
/* Media always fits the screen: never taller than the viewport, never wider than its column. */
.screen video { display: block; width: auto; height: auto; max-width: 100%; max-height: min(72vh, 640px); max-height: min(72svh, 640px); }
.screen.wide { border-radius: 14px; width: 100%; max-width: 600px; }
.screen.wide video { max-height: none; width: 100%; }
.screen.wide img { display: block; width: 100%; height: auto; }
.vbtn { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vbtn::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; transform: translateX(2px); }
.vbtn[aria-pressed="true"]::before { width: 12px; height: 14px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; transform: none; }

/* Value pillars and offers */
.pillars, .offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.offers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pillar, .offer { background: var(--card); border-radius: 20px; padding: 28px; margin: 0; }
.pillar h3, .offer h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 8px; }
.pillar p, .offer p { margin: 0; color: var(--muted); font-size: 16px; }
.pillar .num { color: var(--accent); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; }
.pillar .num small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.offer .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.offer.build { display: flex; flex-direction: column; }
.offer .buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; }
.intro { margin: 16px 0 40px; }
.offer .price { color: var(--fg); font-weight: 600; font-size: 17px; }
.cta-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.link { font-weight: 500; }

/* Area cards on the hub, and the sub-page hero */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.area { display: flex; flex-direction: column; background: var(--card); color: var(--fg); border-radius: 20px; padding: 28px; border-top: 4px solid var(--a); transition: transform .4s var(--ease), box-shadow .4s; }
.area:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--a) 55%, transparent); }
.area .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.area .num { color: var(--a); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 4px; }
.area .num small { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.area h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; margin: 16px 0 8px; }
.area p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.area .more { margin-top: auto; color: var(--a); font-weight: 500; }
.a-dev { --a: #7c3aed; } .a-fin { --a: #059669; } .a-comp { --a: #2563eb; } .a-edu { --a: #d97706; }
@media (prefers-color-scheme: dark) { .a-dev { --a: #a78bfa; } .a-fin { --a: #34d399; } .a-comp { --a: #60a5fa; } .a-edu { --a: #fbbf24; } }
.hero.sub { min-height: 72svh; }
/* Keynote hero: dark stage, oversized gradient type, one still glow. No motion beyond the entry fade. */
.keynote { overflow: hidden; isolation: isolate; }
.keynote .kn-glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; background: radial-gradient(40% 35% at 30% 45%, color-mix(in srgb, #34d399 22%, transparent), transparent 70%), radial-gradient(38% 32% at 70% 40%, color-mix(in srgb, #60a5fa 24%, transparent), transparent 70%), radial-gradient(45% 30% at 50% 75%, color-mix(in srgb, #fbbf24 14%, transparent), transparent 70%); filter: blur(20px); opacity: .9; }
.kn-title { font-size: clamp(40px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; background: linear-gradient(100deg, #10b981 0%, #3b82f6 38%, #8b5cf6 62%, #f59e0b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.build-logo { display: block; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.repos-h { margin-top: 48px; }
.repos { list-style: none; padding: 0; margin: 12px 0 0; columns: 2 280px; column-gap: 32px; }
.repos li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.repos a { font-weight: 600; }
.repos span { color: var(--muted); }
.kn-pills { list-style: none; padding: 0; margin: 28px auto 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; }
.kn-pills a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card, transparent) 70%, transparent); backdrop-filter: blur(8px); color: inherit; text-decoration: none; font-size: 15px; }
.kn-pills a:hover { border-color: var(--accent); }
.kn-pills b { font-variant-numeric: tabular-nums; }
.kn-pills span { color: var(--muted); }
[data-theme="terminal"] .kn-title, [data-theme="night"] .kn-title, [data-theme="arcade"] .kn-title, [data-theme="grid"] .kn-title { background: none; color: inherit; }
[data-theme="holo"] .kn-title { background-image: linear-gradient(100deg, #f2b84b, #62d6ff); }
.stack { color: var(--muted); font-size: 15px; margin: 32px 0 0; }
.pillar .src { margin-top: 12px; font-size: 13px; }
#proof[class*=" a-"] .pillar .num { color: var(--a); }
.pillars.six { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Hero: one wide laptop picture with live type; Apple look in clean, each theme keeps its own colours, font and buttons. */
#top.v3 { --v3-bg: #000; --v3-fg: #f5f5f7; --v3-muted: #a1a1a6; --v3-btn: #0071e3; --v3-btn-fg: #fff; --v3-ghost: #2997ff; --v3-mark: #5ff2a0; --v3-rule: #fff; --v3-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;
  display: block; padding: 0; min-height: calc(100svh - 44px); color: var(--v3-fg); background: var(--v3-bg); font-family: var(--v3-font); }
/* Themes: dark stage (same base as the live hero), theme font, colours and button shapes. */
[data-theme] #top.v3 { --v3-fg: var(--fg); --v3-muted: var(--muted); --v3-btn: var(--btn); --v3-btn-fg: var(--btn-fg); --v3-ghost: var(--accent); --v3-mark: var(--accent); --v3-rule: var(--accent); --v3-font: var(--font); }
[data-theme="material"] #top.v3 { --v3-bg: #030112; --v3-fg: #f2f3fb; --v3-muted: #b9bdd6; --v3-ghost: #8c9eff; --v3-mark: #8c9eff; --v3-rule: #8c9eff; }
[data-theme="hud"] #top.v3 { --v3-bg: #000813; }
[data-theme="soft"] #top.v3 { --v3-bg: #12000d; --v3-fg: #fbf6ec; --v3-muted: #d9cbb4; --v3-ghost: #e0b98a; --v3-mark: #e0b98a; --v3-rule: #e0b98a; }
[data-theme="night"] #top.v3 { --v3-bg: #000512; }
[data-theme="terminal"] #top.v3 { --v3-bg: #000c0f; }
[data-theme="arcade"] #top.v3 { --v3-bg: #0e0010; --v3-rule: #ff3df0; }
[data-theme="holo"] #top.v3 { --v3-bg: #00050f; }
[data-theme="grid"] #top.v3 { --v3-bg: #000; }
/* Mono and wide themes: smaller headline so it never clips. */
[data-theme="terminal"] #top.v3 h1, [data-theme="arcade"] #top.v3 h1 { font-size: clamp(26px, 3.7vw, 56px); }
[data-theme="hud"] #top.v3 h1, [data-theme="grid"] #top.v3 h1 { font-size: clamp(28px, 4.3vw, 66px); }
#top.v3 .v3-top { padding-top: clamp(20px, 2.6vw, 44px); text-align: center; }
#top.v3 .eyebrow { color: color-mix(in srgb, var(--v3-fg) 70%, transparent); font-weight: 600; }
:root:not([data-theme]) #top.v3 .eyebrow { letter-spacing: -.01em; }
:root:not([data-theme]) #top.v3 h1 { font-weight: 700; letter-spacing: -.035em; }
[data-theme]:not([data-theme="arcade"]) #top.v3 h1 { color: var(--v3-fg); }
[data-theme="arcade"] #top.v3 h1, [data-theme="arcade"] .kn-title { color: #ffe500; text-shadow: 3px 3px 0 #ff3df0, 6px 6px 0 #3b0a74; }
[data-theme="arcade"] #top.v3 .v3-hands { background: url(media/hero/hands-pixel.svg) center / contain no-repeat; -webkit-background-clip: border-box; background-clip: border-box; color: transparent; -webkit-text-stroke: 0; filter: drop-shadow(0 0 14px rgba(255, 61, 240, .55)); -webkit-mask-image: none; mask-image: none; }
#top.v3 h1 { color: var(--v3-fg); line-height: 1.04; font-size: clamp(34px, 5vw, 76px); margin: 0; }
.v3-pic { position: relative; isolation: isolate; width: 100%; aspect-ratio: 3 / 1; margin-top: clamp(4px, 1vw, 16px); -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
.v3-pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(media/hero/v3.webp) center / cover no-repeat; background-image: image-set(url(media/hero/v3.webp) 1x, url(media/hero/v3-4k.webp) 2x); filter: var(--v3-photo, none); }
@media (min-width: 2000px) { .v3-pic::before { background-image: url(media/hero/v3-4k.webp); } }
@media (max-width: 700px) {
  #top.v3 { min-height: 0; padding-bottom: 56px; }
  /* Phones: crop in on the laptop so HANDS ON fills the screen instead of a thin strip. */
  #top.v3 .v3-pic { aspect-ratio: 5 / 4; }
  #top.v3 .v3-pic::before { background-size: auto 100%; }
  #top.v3 .v3-title { top: 9%; }
  #top.v3 .v3-label { font-size: 4.3vw; }
  /* Sized per theme so HANDS ON spans about 92% of the phone width in every font. */
  #top.v3 .v3-hands { font-size: var(--v3-h-phone, 17.6vw); }
  [data-theme="hud"] #top.v3 { --v3-h-phone: 16vw; }
  [data-theme="holo"] #top.v3 { --v3-h-phone: 15.3vw; }
  [data-theme="grid"] #top.v3 { --v3-h-phone: 14.3vw; }
  [data-theme="terminal"] #top.v3 { --v3-h-phone: 19.2vw; }
  [data-theme="arcade"] #top.v3 { --v3-h-phone: 18.3vw; }
  [data-theme="fluent"] #top.v3 { --v3-h-phone: 18.1vw; }
  [data-theme="vision"] #top.v3 { --v3-h-phone: 14.8vw; }
  [data-theme="luxury"] #top.v3 { --v3-h-phone: 14vw; }
  [data-theme="news"] #top.v3 { --v3-h-phone: 15.6vw; }
  [data-theme="traditional"] #top.v3 { --v3-h-phone: 17vw; }
  [data-theme="variety"] #top.v3 { --v3-h-phone: 17vw; }
}
/* Desktop: the whole hero fits the first screen; the photo crops from the bottom, below the laptop. */
@media (min-width: 701px) {
  #top.v3 { display: flex; flex-direction: column; min-height: 0; max-height: calc(100svh - 44px); }
  #top.v3 .v3-top { flex-shrink: 0; padding-top: clamp(12px, 1.6vw, 28px); }
  #top.v3 .v3-pic { flex: 0 1 auto; min-height: 0; margin-top: clamp(2px, .5vw, 8px); }
  #top.v3 .v3-pic::before { background-position: center top; }
  #top.v3 .v3-title { top: 2.33vw; }
  /* Smaller header and HANDS ON so more of the laptop shows. */
  #top.v3 h1 { font-size: clamp(30px, 3.7vw, 60px); }
  [data-theme="terminal"] #top.v3 h1, [data-theme="arcade"] #top.v3 h1 { font-size: clamp(24px, 2.9vw, 46px); }
  [data-theme="hud"] #top.v3 h1, [data-theme="grid"] #top.v3 h1 { font-size: clamp(26px, 3.3vw, 52px); }
  #top.v3 .v3-top .cta { margin-top: clamp(10px, 1.2vw, 20px); }
  #top.v3 .v3-hands { font-size: 11vw; }
  /* Subtitle under the white line, one line as wide as HANDS ON. */
  #top.v3 p.v3-lede { white-space: nowrap; font-size: min(1.02vw, 19px); }
  #top.v3 .cue { display: none; }
}
#top.v3 .v3-lede { flex-shrink: 0; max-width: none; margin: 0 auto; padding: clamp(10px, 1vw, 16px) 16px; text-align: center; font-size: clamp(14px, 4vw, 16px); line-height: 1.38; color: var(--v3-muted); }
@media (min-width: 701px) {
  #top.v3 > :not(.v3-top):not(.v3-pic) { flex-shrink: 0; }
  /* The menu bar spans exactly as wide as HANDS ON (width set by options.js). */
  .nav .nav-in { max-width: calc(var(--hands-w, 1036px) + 44px); }
}
.v3-title { position: absolute; left: 50%; top: 7%; transform: translateX(-50%); width: max-content; text-align: left; }
.v3-label { margin: 0 0 0 .07em; font-size: clamp(9px, 1.6vw, 26px); font-weight: 700; letter-spacing: .02em; color: #fff; }
.v3-label b { color: var(--v3-mark); font-weight: 700; margin-right: .35em; text-shadow: 0 0 12px color-mix(in srgb, var(--v3-mark) 55%, transparent); }
.v3-hands { margin: 0; font-family: var(--v3-h-font, inherit); font-weight: var(--v3-h-weight, 900); font-style: var(--v3-h-style, normal); text-transform: var(--v3-h-case, none); font-size: 13.4vw; line-height: .9; letter-spacing: var(--v3-h-track, -.03em); word-spacing: .12em; background: var(--v3-h-fill, linear-gradient(180deg, #ffffff 0%, #f1f2f4 40%, rgba(200, 204, 210, .8) 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: var(--v3-h-stroke, 0 transparent); filter: var(--v3-h-glow, none); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.35) 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.35) 78%, transparent 100%); }
/* Each theme restyles HANDS ON (fill, font, glow) and tints the photo, so no two themes look alike. */
[data-theme] .v3-hands { --v3-h-font: var(--v3-font); }
[data-theme="material"] #top.v3 { --v3-photo: sepia(1) hue-rotate(195deg) saturate(2.4) contrast(1.05); --v3-h-weight: 700; --v3-h-track: -.01em; --v3-h-fill: linear-gradient(180deg, #fff 0%, #dfe3ff 45%, #8c9eff 100%); }
[data-theme="fluent"] #top.v3 { --v3-photo: sepia(1) hue-rotate(160deg) saturate(1.9) brightness(1.12); --v3-h-weight: 600; --v3-h-track: -.02em; --v3-h-fill: linear-gradient(135deg, #fff 0%, #d6ecff 45%, #60cdff 100%); --v3-h-glow: drop-shadow(0 8px 28px rgba(96, 205, 255, .35)); }
[data-theme="vision"] #top.v3 { --v3-photo: grayscale(1) sepia(1) hue-rotate(225deg) saturate(3) brightness(.75) contrast(1.15); --v3-h-weight: 200; --v3-h-case: uppercase; --v3-h-track: .08em; --v3-h-fill: linear-gradient(180deg, #faf5ff 0%, #d9b8ff 45%, #b072ff 100%); --v3-h-glow: drop-shadow(0 0 14px rgba(176, 114, 255, .75)) drop-shadow(0 0 40px rgba(255, 107, 214, .3)); }
[data-theme="hud"] #top.v3 { --v3-photo: sepia(1) hue-rotate(150deg) saturate(2.8) contrast(1.15); --v3-h-weight: 700; --v3-h-case: uppercase; --v3-h-track: .04em; --v3-h-fill: linear-gradient(180deg, #f0fcff 0%, #45d6ff 100%); --v3-h-glow: drop-shadow(0 0 18px rgba(69, 214, 255, .75)); }
[data-theme="soft"] #top.v3 { --v3-photo: sepia(.85) saturate(1.1) brightness(1.05); --v3-h-font: "Iowan Old Style", "Palatino Linotype", Georgia, serif; --v3-h-weight: 700; --v3-h-style: italic; --v3-h-track: -.01em; --v3-h-fill: linear-gradient(180deg, #fbf6ec 0%, #f0dcc0 50%, #e0b98a 100%); }
[data-theme="night"] #top.v3 { --v3-photo: grayscale(1) contrast(1.35) brightness(.9); --v3-h-fill: linear-gradient(#ffd60a, #ffd60a); }
[data-theme="terminal"] #top.v3 { --v3-photo: grayscale(1) sepia(1) hue-rotate(85deg) saturate(3) contrast(1.15) brightness(.85); --v3-h-weight: 700; --v3-h-track: -.02em; --v3-h-fill: linear-gradient(180deg, #b5ffc8 0%, #33ff66 100%); --v3-h-glow: drop-shadow(0 0 10px rgba(51, 255, 102, .8)); }
[data-theme="arcade"] #top.v3 { --v3-photo: sepia(.8) hue-rotate(255deg) saturate(3) contrast(1.1); --v3-h-weight: 700; --v3-h-case: uppercase; --v3-h-track: .01em; --v3-h-fill: linear-gradient(#ffe500, #ffe500); --v3-h-glow: drop-shadow(.04em .04em 0 #ff3df0) drop-shadow(.04em .04em 0 #3b0a74); }
[data-theme="holo"] #top.v3 { --v3-photo: sepia(1) hue-rotate(170deg) saturate(1.6) brightness(.85) contrast(1.1); --v3-h-weight: 200; --v3-h-track: .06em; --v3-h-fill: linear-gradient(180deg, #fff1c7 0%, #f7d27a 50%, #f2b84b 100%); --v3-h-glow: drop-shadow(0 0 22px rgba(98, 214, 255, .4)); }
[data-theme="grid"] #top.v3 { --v3-photo: grayscale(1) sepia(1) hue-rotate(140deg) saturate(3.4) contrast(1.25) brightness(.95); --v3-h-weight: 800; --v3-h-case: uppercase; --v3-h-track: .08em; --v3-h-fill: linear-gradient(180deg, #fff 0%, #dcfcff 45%, #6ff3ff 100%); --v3-h-glow: drop-shadow(0 0 6px #6ff3ff) drop-shadow(0 0 26px rgba(111, 243, 255, .55)); }
[data-theme="fluent"] #top.v3 { --v3-bg: #050b14; --v3-fg: #f3f8ff; --v3-muted: #b7c6d8; --v3-ghost: #60cdff; --v3-mark: #60cdff; --v3-rule: #60cdff; }
[data-theme="vision"] #top.v3 { --v3-bg: #07031a; --v3-mark: #ff6bd6; }
[data-theme="variety"] #top.v3 { --v3-bg: #0b0d12; --v3-fg: #fff; --v3-muted: #c4c7cf; --v3-ghost: #8ab4f8; --v3-mark: #22c55e; --v3-rule: linear-gradient(90deg, #3b82f6 0 25%, #ef4444 25% 50%, #f59e0b 50% 75%, #22c55e 75%); --v3-photo: saturate(1.25) contrast(1.05); --v3-h-weight: 500; --v3-h-track: -.02em; --v3-h-fill: linear-gradient(#fff, #fff); }
[data-theme="variety"] .v3-hands { --v3-h-font: "Google Sans", "Product Sans", "Avenir Next", "Segoe UI", Roboto, sans-serif; }
[data-theme="traditional"] #top.v3 { --v3-bg: #0a1a33; --v3-fg: #fff; --v3-muted: #c9d6ea; --v3-ghost: #9fd0ff; --v3-mark: #9fd0ff; --v3-rule: linear-gradient(90deg, #003c8f, #4aa3ff); --v3-photo: grayscale(1) sepia(1) hue-rotate(175deg) saturate(2.6) brightness(.9) contrast(1.05); --v3-h-weight: 700; --v3-h-track: -.02em; --v3-h-fill: linear-gradient(180deg, #fff 0%, #e2ecf8 55%, #9fc4ee 100%); --v3-h-glow: drop-shadow(.03em .03em 0 #0a2a5c); }
[data-theme="luxury"] #top.v3 { --v3-bg: #0c0a08; --v3-fg: #f4ede0; --v3-muted: #c8bba3; --v3-ghost: #d8bd84; --v3-mark: #d8bd84; --v3-rule: #c8a96a; --v3-photo: sepia(.55) saturate(.9) brightness(.85) contrast(1.1); --v3-h-weight: 400; --v3-h-case: uppercase; --v3-h-track: .1em; --v3-h-fill: linear-gradient(180deg, #fff6e2 0%, #e6cf9c 50%, #b8955a 100%); }
[data-theme="news"] #top.v3 { --v3-bg: #0d0d0d; --v3-fg: #fbfaf6; --v3-muted: #c9c6bd; --v3-ghost: #fbfaf6; --v3-mark: #fbfaf6; --v3-rule: #fbfaf6; --v3-btn: #fbfaf6; --v3-btn-fg: #121212; --v3-photo: grayscale(1) contrast(1.2); --v3-h-weight: 700; --v3-h-style: normal; --v3-h-track: -.02em; --v3-h-fill: linear-gradient(#fbfaf6, #fbfaf6); }
/* Vision: holographic assistant rings behind the laptop. Grids: glowing lines with nodes over the photo. */
[data-theme="vision"] .v3-pic::after, [data-theme="grid"] .v3-pic::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
[data-theme="vision"] .v3-pic::after { inset: 50% auto auto 50%; height: 96%; aspect-ratio: 1; transform: translate(-50%, -50%); background: url(media/hero/vision-hud.svg) center / contain no-repeat; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { [data-theme="vision"] .v3-pic::after { background-image: url(media/hero/vision-hud-still.svg); } }
[data-theme="grid"] .v3-pic::after { inset: auto -40% 0; height: 46%; background: linear-gradient(rgba(111, 243, 255, .8) 2px, transparent 2px) 0 0 / 72px 72px, linear-gradient(90deg, rgba(111, 243, 255, .8) 2px, transparent 2px) 0 0 / 72px 72px; transform: perspective(320px) rotateX(58deg); transform-origin: 50% 100%; filter: drop-shadow(0 0 4px #6ff3ff); mix-blend-mode: screen; -webkit-mask-image: linear-gradient(transparent, #000 55%), radial-gradient(ellipse 17% 75% at 52% 100%, transparent 70%, #000 73%); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 55%), radial-gradient(ellipse 17% 75% at 52% 100%, transparent 70%, #000 73%); mask-composite: intersect; }
[data-theme="grid"] .v3-rule { position: relative; height: 3px; overflow: hidden; background: rgba(111, 243, 255, .25); box-shadow: 0 0 12px #6ff3ff; }
[data-theme="grid"] .v3-rule::after { content: ""; position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, transparent, #6ff3ff 80%, #fff); animation: grid-cycle 3.5s linear infinite; }
@keyframes grid-cycle { from { transform: translateX(-100%); } to { transform: translateX(230%); } }
@media (prefers-reduced-motion: reduce) { [data-theme="grid"] .v3-rule::after { animation: none; width: 100%; } }
#top.v3 .v3-top .lede { max-width: 760px; margin: 10px auto 0; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.38; color: var(--v3-muted); }
#top.v3 .v3-top .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 18px 0 0; }
#top.v3 .v3-top .btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; text-decoration: none; background: var(--v3-btn); color: var(--v3-btn-fg); }
#top.v3 .v3-top .btn.ghost { background: transparent; color: var(--v3-ghost); border: 1px solid var(--v3-ghost); }
:root:not([data-theme]) #top.v3 { --v3-btn: #f5f5f7; --v3-btn-fg: #1d1d1f; --v3-ghost: #d2d2d7; --v3-mark: #f2b84b; }
:root:not([data-theme]) #top.v3 .v3-top .btn { border-radius: 980px; font-size: 17px; font-weight: 400; letter-spacing: -.01em; border: 1px solid var(--v3-btn); }
:root:not([data-theme]) #top.v3 .v3-label b { background: linear-gradient(90deg, #f7d27a 0%, #fff1c7 25%, #f2b84b 50%, #fff1c7 75%, #f7d27a 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: apple-sheen 9s ease-in-out infinite; }
:root:not([data-theme]) #top.v3 .v3-top .btn:hover { background: #fff; }
:root:not([data-theme]) #top.v3 .v3-top .btn.ghost { border-color: var(--v3-ghost); background: transparent; }
:root:not([data-theme]) #top.v3 .v3-top .btn.ghost:hover { background: #f5f5f7; color: #1d1d1f; }
.v3-rule { height: 12px; width: 100%; background: var(--v3-rule); }
#top.v3 .gold { --g1: #f7d27a; --g2: #fff1c7; --g3: #f2b84b; text-transform: uppercase; letter-spacing: .005em; text-shadow: none; background: linear-gradient(90deg, var(--g1) 0%, var(--g2) 25%, var(--g3) 50%, var(--g2) 75%, var(--g1) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: apple-sheen 9s ease-in-out infinite; }
[data-theme]:not([data-theme="holo"]) #top.v3 .gold { --g1: var(--v3-mark); --g2: color-mix(in srgb, var(--v3-mark) 35%, #fff); --g3: var(--v3-mark); }
@keyframes apple-sheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { #top.v3 .gold, #top.v3 .v3-label b { animation: none; } }

/* Earlier work */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 32px; }
.card { display: flex; flex-direction: column; background: var(--card); color: var(--fg); border-radius: 20px; padding: 32px; transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .1); }
.card h3 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.card p { margin: 0 0 16px; color: var(--muted); }
.card .more { margin-top: auto; color: var(--accent); }

.big { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 20px; }
#contact .big { margin-bottom: 32px; }

.contact { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--s-line); }
.contact li { border-bottom: 1px solid var(--s-line); }
.contact a { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: 21px; color: inherit; }
.contact a:hover { text-decoration: none; color: var(--s-accent); }
.contact span { color: var(--s-muted); font-size: 17px; }

.foot { padding-block: 40px 60px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

/* Motion: copy rises in and media scales in once, when their scene arrives. */
.js .fx { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .fx-media { opacity: 0; transform: scale(.88) translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: .15s; }
.js .in .fx, .js .in .fx-media { opacity: 1; transform: none; }
.js .hero .fx { opacity: 1; transform: none; transition: none; animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Game families: one carousel per game, newest version first; each slide keeps its own palette. */
.fam { flex-direction: column; align-items: stretch; justify-content: center; }
.fam-nav { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 32px; }
.fam-tab, .fam-arrow { font: inherit; font-weight: 700; color: var(--s-fg); background: transparent; border: 1px solid var(--s-line); border-radius: 999px; cursor: pointer; min-height: 44px; }
.fam-tab { padding: 0 20px; }
.fam-arrow { width: 44px; font-size: 22px; line-height: 1; }
.fam-tab[aria-current="true"] { background: var(--s-btn); color: var(--s-btn-fg); border-color: var(--s-btn); }
.fam-tab:hover, .fam-arrow:hover { border-color: var(--s-accent); }
.fam-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.fam-track::-webkit-scrollbar { display: none; }
.fam-track:focus-visible { outline: 2px solid var(--s-accent); outline-offset: -2px; }
.fam-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; background: var(--s-bg); color: var(--s-fg); }
@media (prefers-reduced-motion: reduce) { .fam-track { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .split, .split:has(.wide), .split.rev:has(.wide) { grid-template-columns: 1fr; gap: 48px; }
  .split.rev .copy { order: 0; }
  .project { min-height: 0; }
  .scene { padding-block: 72px; }
  .screen video { max-height: min(64vh, 560px); max-height: min(64svh, 560px); }
}
@media (max-width: 600px) {
  .nav .set-panel { position: fixed; top: 50px; left: 16px; right: 16px; width: auto; }
  [dir="rtl"] .nav .set-panel { left: 16px; right: 16px; }
  .nav .srch-panel, [dir="rtl"] .nav .srch-panel { position: fixed; top: 50px; left: 16px; right: 16px; width: auto; }
  .nav nav { gap: 14px; margin-inline: 12px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav-in { gap: 16px; }
  .brand { white-space: nowrap; }
  .stats { gap: 28px; }
  .stats dd { font-size: 34px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .nav { transition: none; }
  .js .fx, .js .hero .fx, .js .fx-media { opacity: 1; transform: none; transition: none; animation: none; }
  .cue span { animation: none; }
}

/* ---------- Settings: ☰ button at the right of the nav, panel with sound, theme, language ---------- */
.nav-in { position: relative; }
.set-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.set-btn:hover, .set-btn[aria-expanded="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.set-panel { position: absolute; top: calc(100% + 6px); right: 0; width: min(320px, calc(100vw - 32px)); max-height: calc(100svh - 80px); overflow: auto; padding: 14px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 60px -14px rgba(0, 0, 0, .4); z-index: 30; font-size: 14px; text-align: start; }
[dir="rtl"] .set-panel { right: auto; left: 0; }
.set-group { margin: 0; padding: 0; border: 0; }
.set-group + .set-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.set-group legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.set-group > div { clear: both; }
.set-sound { display: flex; align-items: center; gap: 10px; }
.set-sound input { flex: 1; min-width: 0; accent-color: var(--accent); }
.set-sound input:disabled { opacity: .4; }
.set-vol { min-width: 3.2em; text-align: end; font-variant-numeric: tabular-nums; color: var(--muted); }
.set-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.set-icon .x { display: none; }
.set-icon[aria-pressed="false"] .w { display: none; }
.set-icon[aria-pressed="false"] .x { display: inline; }
.set-theme, .set-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.set-opt[hidden] { display: none !important; }
.set-find { width: 100%; box-sizing: border-box; margin: 0 0 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; }
.set-find:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.set-lang .set-opt { min-width: 0; padding-inline: 7px; gap: 7px; }
.set-lang .set-opt span { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.set-opt { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px; cursor: pointer; }
.set-opt:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.set-opt input { position: absolute; opacity: 0; pointer-events: none; }
.set-opt:has(input:checked) { background: color-mix(in srgb, var(--accent) 16%, transparent); font-weight: 600; }
.set-opt:has(input:checked)::after { content: "✓"; margin-inline-start: auto; color: var(--accent); }
.set-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
/* ---------- Search: magnifier button beside the settings button, combobox panel ---------- */
.srch-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.srch-btn:hover, .srch-btn[aria-expanded="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.srch-panel { position: absolute; top: calc(100% + 6px); right: 40px; width: min(400px, calc(100vw - 32px)); padding: 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 60px -14px rgba(0, 0, 0, .4); z-index: 30; font-size: 14px; text-align: start; }
[dir="rtl"] .srch-panel { right: auto; left: 40px; }
.srch-panel input { width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.srch-panel input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.srch-panel ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: min(320px, 50svh); overflow: auto; }
.srch-panel li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.srch-panel li:hover, .srch-panel li[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.srch-t { flex: 1 1 60%; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.srch-p { color: var(--muted); font-size: 12px; }
.srch-near { flex-basis: 100%; color: var(--accent); font-size: 12px; font-weight: 600; }
.srch-msg { margin: 8px 2px 0; color: var(--muted); font-size: 13px; }
.srch-msg:empty { display: none; }
.srch-help { margin: 6px 2px 0; color: var(--muted); font-size: 11px; }
@media (hover: none) { .srch-help { display: none; } }
.mm-hit { border-radius: 12px; animation: mm-hit 2.2s var(--ease); }
@keyframes mm-hit { 0%, 60% { box-shadow: 0 0 0 4px var(--s-accent, var(--accent)); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .mm-hit { animation: none; box-shadow: 0 0 0 4px var(--s-accent, var(--accent)); } }
.flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.sw { width: 16px; height: 16px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent); }
.i18n-wait main, .i18n-wait .nav nav, .i18n-wait .foot { visibility: hidden; }
[dir="rtl"] .more > span, [dir="rtl"] .link > span, [dir="rtl"] .links a > span, [dir="rtl"] .cta-row a > span { display: inline-block; transform: scaleX(-1); }

/* Clean: a slim smoked-glass bar on every scene, quiet links spread across it. */
:root:not([data-theme]) .nav { background: rgba(22, 22, 23, .82); color: #e8e8ed; border-bottom-color: rgba(255, 255, 255, .08); }
:root:not([data-theme]) .nav nav a { opacity: .82; }
:root:not([data-theme]) .nav nav a:hover { opacity: 1; }

/* ---------- Themes. Clean = the original look (no data-theme). Every other theme flattens the
   per-project scene colours into its own palette. Original styling, no third-party assets. ---------- */
[data-theme] [data-scene] { --s-bg: var(--bg); --s-fg: var(--fg); --s-muted: var(--muted); --s-accent: var(--accent); --s-btn: var(--btn); --s-btn-fg: var(--btn-fg); --s-line: var(--line); }
[data-theme] .a-dev, [data-theme] .a-fin, [data-theme] .a-comp, [data-theme] .a-edu { --a: var(--accent); }

/* Material: soft tinted surfaces, rounded cards on layered shadows, tonal buttons. */
[data-theme="material"] { --bg: #f7f8fd; --fg: #1b1c22; --muted: #50536a; --line: #d7dbee; --accent: #3d5afe; --card: #ffffff; --btn: #3d5afe; --btn-fg: #fff; --font: system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, "Noto Sans", sans-serif; color-scheme: light; }
[data-theme="material"] body { letter-spacing: 0; }
[data-theme="material"] h1, [data-theme="material"] h2, [data-theme="material"] h3 { letter-spacing: -0.01em; font-weight: 600; }
[data-theme="material"] .card, [data-theme="material"] .area, [data-theme="material"] .offer, [data-theme="material"] .pillar { border-radius: 16px; box-shadow: 0 1px 2px rgba(30, 40, 90, .12), 0 2px 8px rgba(30, 40, 90, .08); }
[data-theme="material"] .area { border-top: 0; border-inline-start: 4px solid var(--accent); }
[data-theme="material"] .btn { border-radius: 12px; font-weight: 600; box-shadow: 0 2px 6px rgba(61, 90, 254, .35); }
[data-theme="material"] .btn:hover { transform: translateY(-1px); }
[data-theme="material"] .nav { background: color-mix(in srgb, #e9ecfa 88%, transparent); }

/* HUD: deep navy, cyan glow, thin framed panels with a corner mark, a faint grid. */
[data-theme="hud"] { --bg: #04101c; --fg: #d9f6ff; --muted: #7fb6c9; --line: #13405a; --accent: #45d6ff; --card: rgba(10, 40, 62, .55); --btn: transparent; --btn-fg: #45d6ff; --font: "Eurostile", "Bank Gothic", "Segoe UI", system-ui, sans-serif; color-scheme: dark; }
[data-theme="hud"] body { background-image: linear-gradient(rgba(69, 214, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(69, 214, 255, .05) 1px, transparent 1px); background-size: 40px 40px; letter-spacing: .01em; }
[data-theme="hud"] h1, [data-theme="hud"] h2, [data-theme="hud"] h3 { text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 0 18px rgba(69, 214, 255, .45); }
[data-theme="hud"] .eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
[data-theme="hud"] .card, [data-theme="hud"] .area, [data-theme="hud"] .offer, [data-theme="hud"] .pillar { border-radius: 2px; border: 1px solid rgba(69, 214, 255, .35); background: var(--card) linear-gradient(var(--accent), var(--accent)) top left / 14px 2px no-repeat; box-shadow: inset 0 0 24px rgba(69, 214, 255, .08); }
[data-theme="hud"] .btn { border: 1px solid var(--accent); border-radius: 2px; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; box-shadow: 0 0 12px rgba(69, 214, 255, .4), inset 0 0 10px rgba(69, 214, 255, .2); }
[data-theme="hud"] .screen { border-radius: 4px; box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(69, 214, 255, .3); }
[data-theme="hud"] .stats dd { color: var(--accent); font-family: var(--mono); text-shadow: 0 0 14px rgba(69, 214, 255, .6); }
[data-theme="hud"] .set-panel, [data-theme="hud"] .srch-panel { border-radius: 2px; border-color: var(--accent); }

/* Soft: warm paper, gentle contrast, nothing pure white. */
[data-theme="soft"] { --bg: #f3ecdf; --fg: #3a342b; --muted: #6d6456; --line: #ddd2bf; --accent: #8a5a2b; --card: #ebe2d1; --btn: #7a5a3a; --btn-fg: #fbf6ec; color-scheme: light; }
[data-theme="soft"] img, [data-theme="soft"] video { filter: saturate(.9); }

/* Night: true black, white text, yellow accents, underlined links, thick focus rings. */
[data-theme="night"] { --bg: #000; --fg: #fff; --muted: #e6e6e6; --line: #7a7a7a; --accent: #ffd60a; --card: #121212; --btn: #ffd60a; --btn-fg: #000; color-scheme: dark; }
[data-theme="night"] a:not(.btn):not(.card):not(.area):not(.brand) { text-decoration: underline; text-underline-offset: 3px; }
[data-theme="night"] .card, [data-theme="night"] .area, [data-theme="night"] .offer, [data-theme="night"] .pillar { border: 1px solid #5a5a5a; }
[data-theme="night"] :focus-visible { outline: 3px solid #ffd60a; outline-offset: 3px; }

/* Terminal: green phosphor on black, monospace everywhere, scanlines. */
[data-theme="terminal"] { --bg: #000; --fg: #33ff66; --muted: #1fbf4c; --line: #0f5a25; --accent: #7dff9e; --card: #031a09; --btn: #33ff66; --btn-fg: #000; --font: var(--mono); color-scheme: dark; }
[data-theme="terminal"] body { text-shadow: 0 0 4px rgba(51, 255, 102, .5); letter-spacing: 0; }
[data-theme="terminal"] body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .22) 2px 3px); }
[data-theme="terminal"] h1, [data-theme="terminal"] h2, [data-theme="terminal"] h3 { font-weight: 700; letter-spacing: -0.02em; }
[data-theme="terminal"] h1::before, [data-theme="terminal"] h2::before { content: "> "; color: var(--muted); }
[data-theme="terminal"] h1::after { content: "█"; margin-inline-start: .1em; animation: blink 1s steps(1) infinite; }
[data-theme="terminal"] .card, [data-theme="terminal"] .area, [data-theme="terminal"] .offer, [data-theme="terminal"] .pillar { border-radius: 0; border: 1px dashed var(--line); }
[data-theme="terminal"] .btn { border-radius: 0; }
[data-theme="terminal"] .btn::before { content: "[ "; }
[data-theme="terminal"] .btn::after { content: " ]"; }
[data-theme="terminal"] .screen, [data-theme="terminal"] .set-panel, [data-theme="terminal"] .srch-panel, [data-theme="terminal"] .srch-btn, [data-theme="terminal"] .set-opt, [data-theme="terminal"] .set-btn { border-radius: 0; }
[data-theme="terminal"] .screen { box-shadow: 0 0 0 1px var(--fg); }
@keyframes blink { 50% { opacity: 0; } }

/* Arcade: night purple, neon pink and yellow, chunky pixel shadows, square corners. */
[data-theme="arcade"] { --bg: #16002e; --fg: #fff4ff; --muted: #d9b8f2; --line: #4a1d7a; --accent: #ffe500; --card: #2a0a52; --btn: #ff3df0; --btn-fg: #16002e; --font: var(--mono); color-scheme: dark; }
[data-theme="arcade"] h1, [data-theme="arcade"] h2, [data-theme="arcade"] h3 { text-transform: uppercase; letter-spacing: .02em; color: #ffe500; text-shadow: 3px 3px 0 #ff3df0, 6px 6px 0 #3b0a74; }
[data-theme="arcade"] .lede, [data-theme="arcade"] .tag { color: #6ef6ff; }
[data-theme="arcade"] .card, [data-theme="arcade"] .area, [data-theme="arcade"] .offer, [data-theme="arcade"] .pillar { border-radius: 0; border: 3px solid #ff3df0; box-shadow: 6px 6px 0 #6ef6ff; }
[data-theme="arcade"] .btn { border-radius: 0; text-transform: uppercase; font-weight: 700; box-shadow: 4px 4px 0 #ffe500; }
[data-theme="arcade"] .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #ffe500; }
[data-theme="arcade"] .screen { border-radius: 0; box-shadow: 0 0 0 4px #ff3df0, 10px 10px 0 4px #6ef6ff; }
[data-theme="arcade"] .stats dd { color: #6ef6ff; }
[data-theme="arcade"] .set-panel, [data-theme="arcade"] .srch-panel, [data-theme="arcade"] .srch-btn, [data-theme="arcade"] .set-opt, [data-theme="arcade"] .set-btn { border-radius: 0; }

/* Holo: an original holographic-assistant look. Deep space blue, warm gold frames, cyan readouts, thin rings. */
[data-theme="holo"] { --bg: #020812; --fg: #e8f4ff; --muted: #8fb3cc; --line: #1b3550; --accent: #f2b84b; --card: rgba(12, 30, 52, .6); --btn: transparent; --btn-fg: #f2b84b; --font: "Avenir Next", "Segoe UI", system-ui, sans-serif; color-scheme: dark; }
[data-theme="holo"] body { background-image: radial-gradient(circle at 85% 12%, rgba(98, 214, 255, .10), transparent 40%), radial-gradient(circle at 10% 90%, rgba(242, 184, 75, .07), transparent 45%); background-attachment: fixed; }
[data-theme="holo"] h1, [data-theme="holo"] h2, [data-theme="holo"] h3 { font-weight: 300; letter-spacing: .03em; }
[data-theme="holo"] .eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; color: #62d6ff; }
[data-theme="holo"] .card, [data-theme="holo"] .area, [data-theme="holo"] .offer, [data-theme="holo"] .pillar { border-radius: 14px; border: 1px solid rgba(242, 184, 75, .35); box-shadow: inset 0 0 0 1px rgba(98, 214, 255, .08), 0 0 30px rgba(98, 214, 255, .06); }
[data-theme="holo"] .btn { border: 1px solid var(--accent); border-radius: 999px; letter-spacing: .06em; box-shadow: 0 0 16px rgba(242, 184, 75, .25); }
[data-theme="holo"] .screen { border-radius: 14px; box-shadow: 0 0 0 1px rgba(242, 184, 75, .6), 0 0 50px rgba(98, 214, 255, .18); }
[data-theme="holo"] .stats dd { color: #62d6ff; font-weight: 300; }
[data-theme="holo"] .set-panel, [data-theme="holo"] .srch-panel { border-color: rgba(242, 184, 75, .5); }

/* Grid: an original neon-circuit look. Pure black, glowing cyan edges, a perspective floor. */
[data-theme="grid"] { --bg: #000; --fg: #e6fdff; --muted: #7fd8e6; --line: #0d3a44; --accent: #6ff3ff; --card: #02090c; --btn: transparent; --btn-fg: #6ff3ff; --font: "Eurostile", "Avenir Next", "Segoe UI", system-ui, sans-serif; color-scheme: dark; }
[data-theme="grid"] body::before { content: ""; position: fixed; inset: auto 0 0 0; height: 45vh; pointer-events: none; z-index: -1; background-image: linear-gradient(rgba(111, 243, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 243, 255, .22) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(400px) rotateX(60deg); transform-origin: bottom; mask-image: linear-gradient(transparent, #000 70%); -webkit-mask-image: linear-gradient(transparent, #000 70%); }
[data-theme="grid"] body { background-image: linear-gradient(rgba(111, 243, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 243, 255, .07) 1px, transparent 1px); background-size: 80px 80px; background-position: -1px -1px; }
/* Grid: light-cycle trails run across each section and turn down into the next one. */
[data-theme="grid"] .scene:not(#top) { position: relative; }
[data-theme="grid"] .scene:not(#top)::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(111, 243, 255, .35) 20%, #6ff3ff 92%, #fff); box-shadow: 0 0 8px #6ff3ff, 0 0 22px rgba(111, 243, 255, .5); transform-origin: 0 50%; }
[data-theme="grid"] .scene:not(#top)::after { content: ""; position: absolute; top: 0; right: 0; width: 2px; height: 120px; pointer-events: none; background: linear-gradient(#fff, #6ff3ff 15%, transparent); box-shadow: 0 0 8px #6ff3ff; transform-origin: 50% 0; }
[data-theme="grid"] .scene:not(#top):nth-of-type(even)::before { background: linear-gradient(270deg, transparent, rgba(255, 154, 60, .35) 20%, #ff9a3c 92%, #fff); box-shadow: 0 0 8px #ff9a3c, 0 0 22px rgba(255, 154, 60, .5); transform-origin: 100% 50%; }
[data-theme="grid"] .scene:not(#top):nth-of-type(even)::after { right: auto; left: 0; background: linear-gradient(#fff, #ff9a3c 15%, transparent); box-shadow: 0 0 8px #ff9a3c; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-theme="grid"] .scene:not(#top)::before { animation: grid-trail linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    [data-theme="grid"] .scene:not(#top)::after { animation: grid-turn linear both; animation-timeline: view(); animation-range: cover 25% cover 40%; }
  }
}
@keyframes grid-trail { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grid-turn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
[data-theme="grid"] .card, [data-theme="grid"] .area, [data-theme="grid"] .pillar { position: relative; }
[data-theme="grid"] .card::after, [data-theme="grid"] .area::after, [data-theme="grid"] .pillar::after { content: ""; position: absolute; left: 50%; top: -24px; width: 1px; height: 24px; background: linear-gradient(#6ff3ff00, #6ff3ff); box-shadow: 0 0 6px #6ff3ff; pointer-events: none; }
[data-theme="grid"] h2::after { content: ""; display: block; width: 120px; height: 2px; margin-top: 10px; background: linear-gradient(90deg, #6ff3ff, transparent); box-shadow: 0 0 8px #6ff3ff; }
[data-theme="grid"] h1, [data-theme="grid"] h2, [data-theme="grid"] h3 { text-transform: uppercase; letter-spacing: .08em; text-shadow: 0 0 10px rgba(111, 243, 255, .7); }
[data-theme="grid"] .card, [data-theme="grid"] .area, [data-theme="grid"] .offer, [data-theme="grid"] .pillar { border-radius: 0; border: 1px solid #6ff3ff; box-shadow: 0 0 10px rgba(111, 243, 255, .45), inset 0 0 10px rgba(111, 243, 255, .12); }
[data-theme="grid"] .btn { border: 2px solid #6ff3ff; border-radius: 0; text-transform: uppercase; letter-spacing: .12em; box-shadow: 0 0 14px rgba(111, 243, 255, .6); }
[data-theme="grid"] .screen { border-radius: 0; box-shadow: 0 0 0 1px #6ff3ff, 0 0 30px rgba(111, 243, 255, .5); }
[data-theme="grid"] .stats dd { color: #ff9a3c; text-shadow: 0 0 10px rgba(255, 154, 60, .6); }
[data-theme="grid"] .set-panel, [data-theme="grid"] .srch-panel, [data-theme="grid"] .srch-btn, [data-theme="grid"] .set-opt, [data-theme="grid"] .set-btn { border-radius: 0; }

/* Fluent: an original take on light, airy layers. Soft acrylic surfaces, sky-blue accent, gentle depth. */
[data-theme="fluent"] { --bg: #f3f6fa; --fg: #1a1d21; --muted: #555d68; --line: #d9e0e8; --accent: #0f6cbd; --card: rgba(255, 255, 255, .78); --btn: #0f6cbd; --btn-fg: #fff; --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; color-scheme: light; }
[data-theme="fluent"] body { background-image: radial-gradient(circle at 90% 0%, rgba(96, 205, 255, .16), transparent 45%), radial-gradient(circle at 0% 100%, rgba(15, 108, 189, .08), transparent 50%); background-attachment: fixed; }
[data-theme="fluent"] h1, [data-theme="fluent"] h2, [data-theme="fluent"] h3 { font-weight: 600; letter-spacing: -.015em; }
[data-theme="fluent"] .card, [data-theme="fluent"] .area, [data-theme="fluent"] .offer, [data-theme="fluent"] .pillar { border-radius: 8px; border: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 8px 16px rgba(0, 0, 0, .06); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
[data-theme="fluent"] .btn { border-radius: 4px; font-weight: 600; }
[data-theme="fluent"] .btn:hover { filter: brightness(1.08); }
[data-theme="fluent"] .screen { border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
[data-theme="fluent"] .set-panel, [data-theme="fluent"] .srch-panel { border-radius: 8px; }

/* Vision: an original holographic-assistant interface. Violet-black, purple light lines, concentric rings, magenta readouts. */
[data-theme="vision"] { --bg: #07031a; --fg: #f1e9ff; --muted: #b9a6dc; --line: #2a1a5c; --accent: #b072ff; --card: rgba(30, 12, 70, .5); --btn: transparent; --btn-fg: #b072ff; --font: "Avenir Next", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; color-scheme: dark; }
[data-theme="vision"] body { background-image: repeating-radial-gradient(circle at 88% 6%, transparent 0 60px, rgba(176, 114, 255, .05) 60px 61px), radial-gradient(circle at 88% 6%, rgba(176, 114, 255, .12), transparent 40%); background-attachment: fixed; }
[data-theme="vision"] h1, [data-theme="vision"] h2, [data-theme="vision"] h3 { font-weight: 300; text-transform: uppercase; letter-spacing: .08em; text-shadow: 0 0 16px rgba(176, 114, 255, .5); }
[data-theme="vision"] .eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .22em; color: #ff6bd6; }
[data-theme="vision"] .card, [data-theme="vision"] .area, [data-theme="vision"] .offer, [data-theme="vision"] .pillar { border-radius: 24px 4px 24px 4px; border: 1px solid rgba(176, 114, 255, .35); box-shadow: 0 0 24px rgba(176, 114, 255, .10), inset 0 0 30px rgba(176, 114, 255, .06); }
[data-theme="vision"] .btn { border: 1px solid #b072ff; border-radius: 999px; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; box-shadow: 0 0 18px rgba(176, 114, 255, .45), inset 0 0 12px rgba(176, 114, 255, .25); }
[data-theme="vision"] .screen { border-radius: 50% / 8%; box-shadow: 0 0 0 1px rgba(176, 114, 255, .6), 0 0 0 8px rgba(176, 114, 255, .06), 0 0 60px rgba(176, 114, 255, .25); }
[data-theme="vision"] .stats dd { color: #ff6bd6; font-weight: 300; text-shadow: 0 0 12px rgba(255, 107, 214, .55); }
[data-theme="vision"] .set-panel, [data-theme="vision"] .srch-panel { border-radius: 16px; border-color: rgba(176, 114, 255, .5); }

/* Variety: bright white, four playful primary colours, rounded pill buttons. Original styling. */
[data-theme="variety"] { --bg: #ffffff; --fg: #202124; --muted: #5f6368; --line: #dadce0; --accent: #2563eb; --card: #f8f9fa; --btn: #2563eb; --btn-fg: #fff; --font: "Google Sans", "Product Sans", "Avenir Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: light; }
[data-theme="variety"] h1, [data-theme="variety"] h2, [data-theme="variety"] h3 { font-weight: 500; letter-spacing: -.01em; }
[data-theme="variety"] .card, [data-theme="variety"] .area, [data-theme="variety"] .offer, [data-theme="variety"] .pillar { border-radius: 20px; border: 1px solid var(--line); box-shadow: none; }
[data-theme="variety"] .pillar:nth-child(4n+1) .num, [data-theme="variety"] .stats div:nth-child(4n+1) dd { color: #3b82f6; }
[data-theme="variety"] .pillar:nth-child(4n+2) .num, [data-theme="variety"] .stats div:nth-child(4n+2) dd { color: #ef4444; }
[data-theme="variety"] .pillar:nth-child(4n+3) .num, [data-theme="variety"] .stats div:nth-child(4n+3) dd { color: #f59e0b; }
[data-theme="variety"] .pillar:nth-child(4n+4) .num, [data-theme="variety"] .stats div:nth-child(4n+4) dd { color: #22c55e; }
[data-theme="variety"] .btn { border-radius: 999px; font-weight: 500; }
[data-theme="variety"] .btn.ghost { border: 1px solid var(--line); }
[data-theme="variety"] .screen { border-radius: 20px; box-shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px rgba(60, 64, 67, .15); }
[data-theme="variety"] .set-panel, [data-theme="variety"] .srch-panel { border-radius: 20px; }

/* Traditional: a classic desktop look. Light grey windows, blue title strips, bevelled buttons. Original styling. */
[data-theme="traditional"] { --bg: #ececec; --fg: #1b1b1b; --muted: #4a4a4a; --line: #b9b9b9; --accent: #0058b8; --card: #fafafa; --btn: #e1e1e1; --btn-fg: #111; --font: "Segoe UI", Tahoma, Verdana, system-ui, sans-serif; color-scheme: light; }
[data-theme="traditional"] h1, [data-theme="traditional"] h2, [data-theme="traditional"] h3 { font-weight: 600; letter-spacing: 0; }
[data-theme="traditional"] .card, [data-theme="traditional"] .area, [data-theme="traditional"] .offer, [data-theme="traditional"] .pillar { border-radius: 4px; border: 1px solid #a9a9a9; border-top: 6px solid #0058b8; box-shadow: 2px 2px 0 rgba(0, 0, 0, .12); }
[data-theme="traditional"] .btn { border-radius: 3px; border: 1px solid #707070; background: linear-gradient(#f6f6f6, #dcdcdc); box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #a0a0a0; color: #111; }
[data-theme="traditional"] .btn:hover { background: linear-gradient(#eaf4fd, #c9e3fa); border-color: #3c7fb1; }
[data-theme="traditional"] #top.v3 .v3-top .btn:not(.ghost) { color: #111; }
[data-theme="traditional"] .screen { border-radius: 4px; box-shadow: 0 0 0 1px #707070, 0 0 0 7px #0058b8, 0 10px 30px rgba(0, 0, 0, .3); }
[data-theme="traditional"] .set-panel, [data-theme="traditional"] .srch-panel { border-radius: 4px; }

/* Luxury: a quiet five-star look. Warm charcoal, champagne gold hairlines, high-contrast serif, wide spacing. */
[data-theme="luxury"] { --bg: #14110d; --fg: #f1eadc; --muted: #b9ad97; --line: #3a3226; --accent: #c8a96a; --card: #1c1813; --btn: transparent; --btn-fg: #d8bd84; --font: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, serif; color-scheme: dark; }
[data-theme="luxury"] h1, [data-theme="luxury"] h2, [data-theme="luxury"] h3 { font-weight: 400; letter-spacing: .04em; }
[data-theme="luxury"] .eyebrow { text-transform: uppercase; letter-spacing: .3em; color: var(--accent); font-size: 12px; }
[data-theme="luxury"] .card, [data-theme="luxury"] .area, [data-theme="luxury"] .offer, [data-theme="luxury"] .pillar { border-radius: 0; border: 1px solid rgba(200, 169, 106, .35); box-shadow: none; }
[data-theme="luxury"] .btn { border: 1px solid var(--accent); border-radius: 0; text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 400; }
[data-theme="luxury"] .btn:hover { background: var(--accent); color: #14110d; }
[data-theme="luxury"] .screen { border-radius: 0; box-shadow: 0 0 0 1px rgba(200, 169, 106, .6), 0 30px 60px rgba(0, 0, 0, .5); }
[data-theme="luxury"] .stats dd { color: var(--accent); font-weight: 400; }
[data-theme="luxury"] .set-panel, [data-theme="luxury"] .srch-panel, [data-theme="luxury"] .set-opt, [data-theme="luxury"] .set-btn { border-radius: 0; }

/* News: a broadsheet look. Newsprint white, black ink, serif headlines, column rules, no rounded corners. */
[data-theme="news"] { --bg: #fbfaf6; --fg: #121212; --muted: #4f4f4f; --line: #d4d1c7; --accent: #121212; --card: #fbfaf6; --btn: #121212; --btn-fg: #fbfaf6; --font: Georgia, "Times New Roman", Times, serif; color-scheme: light; }
[data-theme="news"] h1, [data-theme="news"] h2, [data-theme="news"] h3 { font-weight: 700; letter-spacing: -.01em; }
[data-theme="news"] h2 { border-top: 3px double #121212; padding-top: 10px; }
[data-theme="news"] .eyebrow { font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
[data-theme="news"] .card, [data-theme="news"] .area, [data-theme="news"] .offer, [data-theme="news"] .pillar { border-radius: 0; border: 0; border-top: 1px solid #121212; box-shadow: none; background: transparent; }
[data-theme="news"] .btn { border-radius: 0; font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; }
[data-theme="news"] .screen { border-radius: 0; box-shadow: 0 0 0 1px #121212; filter: grayscale(.2); }
[data-theme="news"] main a:not(.btn):not(.card):not(.area):not(.brand) { text-decoration: underline; text-underline-offset: 3px; }
[data-theme="news"] .set-panel, [data-theme="news"] .srch-panel, [data-theme="news"] .set-opt, [data-theme="news"] .set-btn { border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  [data-theme="terminal"] h1::after { animation: none; }
}

/* ---------- Settings panel: compact, Apple-style (system font, frosted glass, short language list) ---------- */
.set-panel { width: min(264px, calc(100vw - 32px)); max-height: min(70svh, 520px); padding: 10px; border-radius: 14px; font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif; letter-spacing: -.01em; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
.set-panel .set-group + .set-group { margin-top: 8px; padding-top: 8px; }
.set-panel .set-group legend { margin-bottom: 4px; font-size: 11px; letter-spacing: .02em; }
.set-panel .set-icon { width: 28px; height: 28px; }
.set-panel .set-opt { gap: 7px; padding: 4px 7px; border-radius: 7px; }
.set-panel .set-theme, .set-panel .set-lang { gap: 2px; }
.set-panel .set-find { padding: 5px 8px; font-size: inherit; }
.set-music { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
/* Same font and size as the theme's menu bar; wide enough that every section shows without scrolling. */
.nav .set-panel { width: min(408px, calc(100vw - 32px)); max-height: calc(100svh - 60px); font-family: inherit; font-size: inherit; letter-spacing: inherit; line-height: 1.35; }
.nav .set-panel .set-group legend { font-size: .92em; }
.set-panel .set-theme, .set-panel .set-lang { grid-template-columns: repeat(3, 1fr); }
.set-soon { flex-basis: 100%; margin-top: -2px; font-size: .82em; color: var(--muted); }
.set-lang .set-opt:has(.set-soon) { flex-wrap: wrap; row-gap: 0; }
.set-panel .set-theme { grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
@media (max-width: 600px) { .set-panel .set-lang { grid-template-columns: 1fr 1fr; } .set-music { grid-template-columns: repeat(3, 1fr); } }
.set-music .set-opt { justify-content: center; text-align: center; }
.set-music .set-opt:has(input:checked)::after, .set-panel .set-lang .set-opt:has(input:checked)::after { content: none; }
.set-music .set-opt:has(input:disabled) { opacity: .45; cursor: default; }
