/* OutLandishly Crafted — site stylesheet
   1. Tokens  2. Base  3. Layout  4. Header/Footer  5. Buttons, badges, tags
   6. Media slots  7. Cards  8. Home sections  9. Page parts  10. Utilities */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* color: neutrals (greyish dark, never pure black) */
  --c-bg: #17151c;
  --c-bg-2: #1c1a22;
  --c-surface: #24212b;
  --c-surface-2: #2c2934;
  --c-line: #3a3645;
  --c-line-strong: #4f4a5d;
  --c-text: #f4f2f8;
  --c-text-2: #c1bccb;
  --c-text-3: #968fa5;
  /* color: brand (logo indigo + white) */
  --c-indigo-950: #12051f;
  --c-indigo-900: #1e0938;
  --c-indigo-800: #2a0d4d;
  --c-indigo-700: #3e1a6e;
  --c-blue-500: #6656f0;
  --c-blue-400: #8b80ff;
  --c-blue-300: #c0b8ff;
  --c-white: #ffffff;
  /* color: status */
  --c-released: #6fd6a2;
  --c-prototype: #c0b8ff;
  --c-beta: #f2c766;
  /* color: art placeholders */
  --c-ph: #2c2935;
  --c-ph-line: #48435a;
  --c-link: var(--c-blue-300);
  --c-accent-text: var(--c-blue-300);
  --page-bg: #17151c;
  color-scheme: dark;
  /* glass (Aero-style): frosted fill, glossy top half, bright rim */
  --glass-gloss: linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.07) 49%, rgba(255,255,255,0) 50%, rgba(255,255,255,.05) 100%);
  --glass-fill: rgba(42,13,77,.38);
  --glass-rim: rgba(255,255,255,.24);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 14px rgba(192,184,255,.14), 0 10px 28px -12px rgba(0,0,0,.6);
  --glass-blur: blur(16px) saturate(170%);

  /* type */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  --fs-xl: clamp(1.6rem, 1.25rem + 1vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 3.4vw, 5rem);
  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.6;

  /* spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4rem, 2.5rem + 5vw, 8rem);
  --container: 1360px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --header-h: 84px;
  --tap: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* light theme: neutrals flip, brand areas stay dark purple */
[data-theme="light"] {
  --c-bg: #f7f5fb; --c-bg-2: #efecf6; --c-surface: #ffffff; --c-surface-2: #f2eff8; --c-line: #e0dbea; --c-line-strong: #c6bfd6;
  --c-text: #1b1526; --c-text-2: #4b4459; --c-text-3: #655e74; --c-ph: #e3dfec; --c-ph-line: #c6bfd6;
  --c-link: #5240d6; --c-accent-text: #5240d6; --page-bg: #f7f5fb; color-scheme: light;
}
[data-theme="light"] :is(.site-header, .hero, .page-hero, .cta-band, .site-footer, .slide, .tile, .panel--brand, .quick-answer, .play-area, .video) {
  color: var(--c-text);
  --c-bg: #17151c; --c-bg-2: #1c1a22; --c-surface: #24212b; --c-surface-2: #2c2934; --c-line: #3a3645; --c-line-strong: #4f4a5d;
  --c-text: #f4f2f8; --c-text-2: #c1bccb; --c-text-3: #968fa5; --c-ph: #2c2935; --c-link: #c0b8ff; --c-accent-text: #c0b8ff; color-scheme: dark;
}
[data-theme="light"] .card, [data-theme="light"] .panel:not(.panel--brand), [data-theme="light"] .filter-bar { box-shadow: 0 1px 2px rgba(30,9,56,.06), 0 8px 24px -16px rgba(30,9,56,.25); }
[data-theme="light"] .btn--site { --btn-bg: var(--c-indigo-800); --btn-fg: #fff; }
[data-theme="light"] .btn--site:hover { --btn-bg: var(--c-indigo-700); }
[data-theme="light"] :is(.btn--ghost, .btn--secondary, .btn--site, .give-btn) > .btn__skin { display: none; }
[data-theme="light"] :is(.btn--ghost, .btn--secondary, .btn--site).has-art { background: var(--btn-bg); border-color: var(--btn-line); }
[data-theme="light"] .give-btn.has-art { background: var(--c-surface); border-color: var(--c-line-strong); }
[data-theme="light"] .slider__btn { background: var(--c-indigo-800); border-color: var(--c-indigo-700); color: #fff; }
[data-theme="light"] .slider__btn:hover { background: var(--c-indigo-700); }
[data-theme="light"] .icon.is-missing { background: rgba(30,9,56,.12); }
@media (min-width: 1920px) { :root { --container: 1560px; } html { font-size: 106.25%; } }
@media (min-width: 2400px) { :root { --container: 1760px; } html { font-size: 118.75%; } }

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-sans); font-size: var(--fs-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: var(--lh-snug); font-stretch: 108%; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-2xl); line-height: 1.1; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-text); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-blue-400); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-blue-500); color: var(--c-text); }
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--c-white); color: var(--c-indigo-900); padding: var(--sp-3) var(--sp-5);
  font-weight: 700; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section:not(.section--alt):not(.play-now) + .section:not(.section--alt):not(.play-now),
.section--alt + .section--alt { padding-top: 0; }
.section--alt { background: var(--c-bg-2); }
.section--tight { padding-block: var(--sp-8); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-7); }
.section__head > div { max-width: 52rem; display: grid; gap: var(--sp-3); }
.section__head .lead { margin-top: var(--sp-1); }
.section__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section__bg .art { width: 100%; height: 100%; object-fit: cover; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text);
}
.lead { font-size: var(--fs-md); color: var(--c-text-2); max-width: 46rem; }
.text-link { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); font-weight: 650; color: var(--c-text); text-decoration: none; }
.text-link::after { content: "\2192"; transition: transform .2s var(--ease); }
.text-link:hover { color: var(--c-accent-text); }
.text-link:hover::after { transform: translateX(4px); }
.grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid--2 { --cols: 2; }
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }
@media (max-width: 1100px) { .grid--4 { --cols: 3; } }
@media (max-width: 900px) { .grid--3, .grid--4 { --cols: 2; } }
@media (max-width: 600px) { .grid, .grid--2, .grid--3, .grid--4 { --cols: 1; } }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.split { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: var(--sp-4); align-content: start; }
.stack--lg { gap: var(--sp-6); }
.divider { display: flex; justify-content: center; padding-block: var(--sp-4); }
.divider .art { width: min(100%, 1200px); height: auto; }

/* 4. HEADER / FOOTER ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% -40%, rgba(139,128,255,.28) 0%, transparent 55%),
    linear-gradient(180deg, #3a1670 0%, var(--c-indigo-800) 45%, var(--c-indigo-900) 100%);
  box-shadow: 0 10px 30px -12px rgba(14,5,30,.8);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(192,184,255,.15) 20%, rgba(192,184,255,.9) 50%, rgba(192,184,255,.15) 80%, transparent 100%) 0 0 / 50% 100% repeat-x;
  animation: header-tide 9s linear infinite;
}
@keyframes header-tide { to { background-position: 100% 0; } }
.site-header { cursor: cell; }
.site-header a, .site-header button { cursor: pointer; }
.site-header__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-header__inner { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.site-header .nav__link, .site-header .brand__name { text-shadow: 0 1px 10px rgba(18,6,36,.9), 0 0 2px rgba(18,6,36,.7); }
.site-header .brand__logo { filter: drop-shadow(0 0 10px rgba(139,128,255,.45)); transition: transform .3s var(--ease); }
.site-header .brand:hover .brand__logo { transform: rotate(-4deg) scale(1.06); }
.site-header .btn--play { box-shadow: 0 0 0 0 rgba(192,184,255,.6); animation: play-glow 3.2s ease-in-out infinite; }
@keyframes play-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,184,255,0); } 50% { box-shadow: 0 0 22px 2px rgba(192,184,255,.55); } }
.brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--c-text); text-decoration: none; flex-shrink: 0; min-height: var(--tap); }
.brand__logo { width: auto; height: 46px; background: transparent; }
.brand__name { display: flex; gap: .3em; white-space: nowrap; font-weight: 800; font-size: .95rem; line-height: 1.05; font-stretch: 112%; letter-spacing: -0.01em; }
.brand__name span:last-child { color: var(--c-accent-text); font-weight: 650; }
.brand:hover { color: var(--c-text); }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: flex; align-items: center; min-height: var(--tap); padding: 0 .7rem; border-radius: var(--radius);
  color: rgba(255,255,255,.82); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; white-space: nowrap;
  position: relative;
}
.nav__link:hover { color: var(--c-text); background: rgba(139,128,255,.16); box-shadow: inset 0 0 0 1px rgba(192,184,255,.18); }
.nav__link[aria-current] { color: var(--c-text); }
.nav__link[aria-current]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 6px; height: 2px; background: var(--c-white);
  box-shadow: 0 0 10px 1px rgba(192,184,255,.9);
}
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: var(--sp-2); min-height: var(--tap); min-width: var(--tap);
  padding: 0 var(--sp-3); background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius);
  color: var(--c-text); font-weight: 600; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.site-header .btn--play { flex-shrink: 0; }
.theme-toggle, .sound-toggle {
  display: grid; place-items: center; flex-shrink: 0; width: var(--tap); height: var(--tap); padding: 0; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(192,184,255,.35); border-radius: 50%; color: #fff;
  transition: background-color .2s var(--ease), transform .3s var(--ease), border-color .2s;
}
.theme-toggle:hover, .sound-toggle:hover { background: rgba(192,184,255,.18); border-color: rgba(192,184,255,.7); transform: rotate(-15deg); }
.theme-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
.theme-toggle__moon, [data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
@media (max-width: 1220px) {
  .js .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; }
  .js .nav {
    order: 5; flex-basis: 100%; margin: 0; display: none; padding-bottom: var(--sp-4);
  }
  .js .nav.is-open { display: block; }
  .no-js .nav { order: 5; flex-basis: 100%; overflow-x: auto; }
  .js .nav__list { flex-direction: column; align-items: stretch; border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--sp-3); }
  .js .nav__link { font-size: var(--fs-md); padding-inline: var(--sp-3); }
  .js .nav__link[aria-current]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}
@media (max-width: 520px) {
  .site-header__inner { gap: var(--sp-3); }
  .nav-toggle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand__name { display: none; }
  .site-header .btn--play { min-width: 0; padding-inline: var(--sp-4); }
}

.site-footer { background: var(--c-indigo-950); color: var(--c-text-2); padding-block: var(--sp-8) var(--sp-6); margin-top: 0; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-7); }
@media (max-width: 1100px) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }
.footer__brand { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; }
.footer__brand p { overflow-wrap: anywhere; }
.footer__heading { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-3); font-weight: 500; margin-bottom: var(--sp-3); }
.footer__list { list-style: none; display: grid; }
.footer__list a { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--tap); color: var(--c-text); text-decoration: none; }
.footer__list a:hover { color: var(--c-accent-text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.08); font-size: var(--fs-sm); }
.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.social-link { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--tap); color: var(--c-text); text-decoration: none; }
.social-link .icon { width: 24px; height: 24px; }

/* 5. BUTTONS, BADGES, TAGS ---------------------------------------------- */
.btn {
  --btn-bg: var(--c-blue-500); --btn-fg: var(--c-white); --btn-line: transparent;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  min-height: 52px; min-width: 200px; padding: 0 var(--sp-6);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-line); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 750; letter-spacing: .05em; text-transform: uppercase; font-stretch: 110%;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn__skin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: -1; pointer-events: none; }
.btn.has-art { background: transparent; border-color: transparent; }
.btn.has-art:hover .btn__skin, .give-btn.has-art:hover .btn__skin { filter: brightness(1.12); }
.btn .icon { width: 22px; height: 22px; flex-shrink: 0; }
.btn--primary:hover { --btn-bg: var(--c-blue-400); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--c-text); --btn-line: var(--c-text-3); }
.btn--secondary:hover { --btn-bg: var(--c-surface-2); --btn-line: var(--c-text); }
.btn--ghost { --btn-bg: var(--c-surface-2); --btn-fg: var(--c-text); --btn-line: var(--c-line-strong); }
.btn--ghost:hover { --btn-bg: var(--c-line); }
.btn--play { --btn-bg: var(--c-white); --btn-fg: var(--c-indigo-800); min-width: 160px; }
.btn--play:hover { --btn-bg: var(--c-blue-300); }
.btn--site { --btn-bg: var(--c-white); --btn-fg: var(--c-indigo-800); }
.btn--site:hover { --btn-bg: var(--c-blue-300); }
.btn--lg { min-height: 60px; min-width: 260px; font-size: var(--fs-md); padding-inline: var(--sp-7); }
.btn--sm { min-height: var(--tap); min-width: 0; padding-inline: var(--sp-4); font-size: var(--fs-xs); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
@media (max-width: 520px) { .btn-row > .btn { flex: 1 1 100%; min-width: 0; } }

.badge {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 26px; padding: 0 var(--sp-3); border: 1px solid currentColor; border-radius: 3px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-text-2); background: rgba(23,21,28,.72); white-space: nowrap;
}
.badge__skin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: -1; }
.badge.has-art { border-color: transparent; background: transparent; }
.badge--released { color: var(--c-released); }
.badge--prototype { color: var(--c-prototype); }
.badge--beta { color: var(--c-beta); }
.badge--playable { color: #fff; background: var(--c-blue-500); border-color: var(--c-blue-500); }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--sp-3);
  background: var(--c-surface-2); border-radius: 3px; color: var(--c-text-2); font-size: var(--fs-xs); text-decoration: none;
}
a.tag { min-height: var(--tap); }
a.tag:hover { color: var(--c-text); background: var(--c-line); }

.meta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin: 0; }
.meta-row__item { display: grid; gap: 2px; }
.meta-row dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
.meta-row dd { margin: 0; font-weight: 600; color: var(--c-text); }
.meta-row a { color: var(--c-text); }
.meta-row a:hover { color: var(--c-accent-text); }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-2); font-size: var(--fs-sm); }
.breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); color: var(--c-text-3); min-width: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--c-line-strong); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--c-text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* 6. MEDIA SLOTS -------------------------------------------------------- */
.art { background: var(--c-ph); color: transparent; }
.art.is-loaded { background: transparent; }
img[data-ph="none"] { background: transparent; }
.icon { display: inline-block; width: 32px; height: 32px; object-fit: contain; border-radius: 3px; }
.icon.is-missing { background: rgba(255,255,255,.14); }
/* official brand marks (white vector files, v0.02 2026-10-15): no frame, and dark on the light theme's light surfaces */
.icon--mark { border-radius: 0; background: transparent; }
[data-theme="light"] .channel .icon--mark, [data-theme="light"] .social-link .icon--mark { filter: invert(1) brightness(.2); }
.media { position: relative; overflow: hidden; background: var(--c-ph); aspect-ratio: 16 / 9; border-radius: var(--radius); }
.media > img, .media > video, .media > iframe { width: 100%; height: 100%; object-fit: cover; }
.media--square { aspect-ratio: 1; }
.media--wide { aspect-ratio: 21 / 9; }

.video { position: relative; aspect-ratio: 16 / 9; background: #0e0f13; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { position: absolute; inset: 0; display: block; color: var(--c-text); text-decoration: none; }
.video__poster > .art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s var(--ease); }
.video__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,11,15,.7)); }
.video__poster:hover > .art { transform: scale(1.02); filter: brightness(1.08); }
.video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  display: grid; place-items: center; width: clamp(64px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(42,13,77,.88); border: 2px solid var(--c-white);
}
.video__play .icon { width: 44%; height: 44%; }
.video__play.has-art { background: transparent; border-color: transparent; }
.video__play.has-art .icon { width: 100%; height: 100%; }
.video__label { position: absolute; left: var(--sp-4); bottom: var(--sp-4); z-index: 1; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.video__play:not(.has-art)::before { content: ""; position: absolute; margin-left: 6%; border-left: 22px solid var(--c-white); border-block: 14px solid transparent; }
.video__play:not(.has-art) .icon { display: none; }
.video__poster > video.art { width: 100%; height: 100%; object-fit: cover; }
.video__note { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--c-text-3); }

/* 7. CARDS -------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  border-image: url("../img/ui/frame-card.webp") 24 / 12px / 0 stretch;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--c-line-strong); background: var(--c-surface-2); }
.card:focus-within { border-color: var(--c-blue-400); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card__media > .art { width: 100%; height: 100%; object-fit: cover; }
.card__media .badge-row { position: absolute; left: var(--sp-3); top: var(--sp-3); }
.card__body { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-5); flex: 1; }
.card__kicker { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.card__title { font-size: var(--fs-md); font-weight: 700; line-height: 1.3; font-stretch: 104%; overflow-wrap: anywhere; }
.card__title a { color: var(--c-text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { color: var(--c-accent-text); }
.card__text { color: var(--c-text-2); font-size: var(--fs-sm); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 0 var(--sp-5) var(--sp-5); }
.card__price { font-weight: 700; }
.card__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* guide card: clamps long titles to 3 lines */
.card--guide .card__title { font-size: var(--fs-base); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--guide .card__media .duration { position: absolute; right: var(--sp-2); bottom: var(--sp-2); padding: 2px 6px; background: rgba(10,11,15,.85); font-family: var(--font-mono); font-size: .75rem; border-radius: 3px; }
.card--guide .card__body { padding: var(--sp-4); }
.card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-family: var(--font-mono); font-size: .75rem; color: var(--c-text-3); letter-spacing: .04em; }
.card__meta > * + *::before { content: "\00B7"; margin-right: var(--sp-3); color: var(--c-line-strong); }

/* game card */
.card--game .card__media { aspect-ratio: 16 / 9; }
.card--game .card__title { font-size: var(--fs-lg); }

/* app card */
.card--app .card__head { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-5) var(--sp-5) 0; }
.card--app .app-icon { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }
.card--app .card__title { font-size: var(--fs-lg); }

/* service card */
.card--service { padding: var(--sp-6); gap: var(--sp-4); }
.card--service:hover { transform: none; }
.card--service .icon { width: 72px; height: 72px; }
.card--service .card__title { font-size: var(--fs-lg); }

/* course card */
.card--course { flex-direction: row; align-items: stretch; }
.card--course .card__media { flex: 0 0 42%; aspect-ratio: auto; border-radius: var(--radius) 0 0 var(--radius); }
.card--course .parts { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-accent-text); letter-spacing: .08em; text-transform: uppercase; }
.card--course ol { list-style: none; counter-reset: part; display: grid; gap: var(--sp-1); margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-text-2); }
.card--course ol li { counter-increment: part; display: grid; grid-template-columns: 2ch 1fr; gap: var(--sp-2); }
.card--course ol li::before { content: counter(part); font-family: var(--font-mono); color: var(--c-text-3); }
.card--course ol li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .card--course { flex-direction: column; } .card--course .card__media { aspect-ratio: 16/9; border-radius: var(--radius) var(--radius) 0 0; } }

/* subject tile */
.tile {
  position: relative; display: grid; align-content: end; min-height: 200px; overflow: hidden; isolation: isolate;
  padding: var(--sp-5); border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-surface);
  border-image: url("../img/ui/frame-tile.webp") 24 / 12px / 0 stretch;
  color: var(--c-text); text-decoration: none; transition: transform .25s var(--ease);
}
.tile > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,9,56,0) 25%, rgba(30,9,56,.92)); }
.tile:hover { color: var(--c-text); transform: translateY(-3px); }
.tile:hover > .art { transform: scale(1.04); }
.tile__title { font-size: var(--fs-lg); font-weight: 750; line-height: 1.2; font-stretch: 106%; }
.tile__count { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-text); }

/* video card (portfolio, creation) */
.card--video .card__media { aspect-ratio: 16 / 9; }

/* panel: framed content box */
.panel {
  position: relative; padding: clamp(var(--sp-5), 3vw, var(--sp-7)); background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--radius);
  border-image: url("../img/ui/frame-panel.webp") 32 / 16px / 0 stretch;
}
.panel--brand { background: var(--c-indigo-900); border-color: var(--c-indigo-700); border-image: url("../img/ui/frame-panel-brand.webp") 32 / 16px / 0 stretch; }

/* row scroller for card rows on small screens */
.row-scroll { display: grid; gap: var(--sp-5); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .row-scroll { grid-auto-columns: min(78%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-4); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .row-scroll > * { scroll-snap-align: start; }
}

/* 8. HOME SECTIONS ------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c-indigo-900); color: var(--c-text); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg .art { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,9,56,.94) 0%, rgba(30,9,56,.7) 45%, rgba(30,9,56,.1) 100%), linear-gradient(0deg, var(--page-bg) 0%, transparent 22%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--sp-7); align-items: center; min-height: min(86vh, 900px); padding-block: var(--sp-9) var(--sp-8); }
.hero__content { display: grid; gap: var(--sp-5); max-width: 46rem; }
.hero__content h1 { font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.75rem); }
.hero__content .lead { color: rgba(255,255,255,.86); font-size: var(--fs-lg); }
.hero__content .btn-row { margin-top: var(--sp-3); }
.hero__mascot { justify-self: end; width: min(100%, 520px); }
.hero__mascot .art { width: 100%; height: auto; background: transparent; }
.hero__mascot .art:not(.is-loaded) { background: rgba(255,255,255,.06); border-radius: 50%; }
/* home hero mascot is the operator's logo reveal loop (v0.02, 2026-10-15): the loop's black ground is dropped by screen blending */
.hero__mascot-video { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 50%; mix-blend-mode: screen; pointer-events: none;
  /* round like the logo's oval: a soft-edged circle mask so the loop fades out instead of ending at a corner */
  -webkit-mask-image: radial-gradient(circle at center, #000 58%, transparent 71%); mask-image: radial-gradient(circle at center, #000 58%, transparent 71%); }
@media (prefers-reduced-motion: reduce) { .hero__mascot-video { display: none; } }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: var(--sp-8); }
  .hero__mascot { order: -1; justify-self: start; width: 160px; }
}

.proof { background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.proof__list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof__item { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-6) var(--sp-5); border-left: 1px solid var(--c-line); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__num { font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem); font-weight: 800; line-height: 1; font-stretch: 112%; letter-spacing: -0.03em; color: var(--c-text); }
.proof__label { font-size: var(--fs-sm); color: var(--c-text-2); }
.proof__note { padding-bottom: var(--sp-4); font-size: var(--fs-xs); color: var(--c-text-3); font-family: var(--font-mono); }
@media (max-width: 1100px) {
  .proof__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof__item:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__item { padding: var(--sp-5) var(--sp-4); }
  .proof__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof__item:nth-child(4) { border-left: 1px solid var(--c-line); padding-left: var(--sp-4); }
}

.play-now { background: var(--c-bg-2); border-block: 1px solid var(--c-line); }
.play-now .section__head h2 { display: flex; align-items: center; gap: var(--sp-4); }
.play-now .section__head h2 .icon { width: 48px; height: 48px; }

.slider { position: relative; }
.slider__track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { scroll-snap-align: start; min-width: 0; }
.slide { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(420px, 42vw, 760px); overflow: hidden; border-radius: var(--radius); background: var(--c-indigo-900); }
.slide__media { position: absolute; inset: 0; z-index: -2; }
.slide__media .art { width: 100%; height: 100%; object-fit: cover; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,9,56,.92) 0%, rgba(30,9,56,.55) 40%, transparent 70%); }
.slide__body { display: grid; gap: var(--sp-4); max-width: 34rem; padding: clamp(var(--sp-5), 5vw, var(--sp-8)); }
.slide__body h3 { font-size: var(--fs-2xl); line-height: 1.05; }
.slide__body p { color: rgba(255,255,255,.88); font-size: var(--fs-md); }
.slide__body .btn { justify-self: start; }
@media (max-width: 700px) {
  .slide { min-height: 520px; }
  .slide::before { background: linear-gradient(0deg, rgba(30,9,56,.95) 0%, rgba(30,9,56,.6) 50%, transparent 80%); }
}
.slider__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-5); }
.slider__dots { display: flex; gap: var(--sp-2); }
.slider__dot { width: var(--tap); height: var(--tap); padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.slider__dot span { width: 28px; height: 4px; background: var(--c-line-strong); border-radius: 2px; transition: background-color .2s, width .2s; }
.slider__dot[aria-current="true"] span { background: var(--c-text); width: 44px; }
.slider__nav { display: flex; gap: var(--sp-2); }
.slider__btn { display: grid; place-items: center; width: 52px; height: 52px; background: var(--c-surface-2); border: 1px solid var(--c-line-strong); border-radius: 50%; cursor: pointer; color: var(--c-text); font-size: 1.25rem; }
.slider__btn:hover { background: var(--c-line); }
.slider__btn .icon { width: 24px; height: 24px; }
.slider__btn .icon.is-missing { display: none; }
.slider__btn .icon.is-missing + .slider__glyph { display: block; }
.slider__glyph { display: none; line-height: 1; }
.no-js .slider__controls { display: none; }

.feature-layout { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.feature-layout > :first-child { grid-row: span 2; }
.feature-layout > :first-child .card__title { font-size: var(--fs-xl); }
@media (max-width: 900px) { .feature-layout { grid-template-columns: minmax(0, 1fr); } .feature-layout > :first-child { grid-row: auto; } }

.guide-search { display: flex; gap: var(--sp-3); max-width: 46rem; }
.search { position: relative; flex: 1; display: flex; align-items: center; }
.search .icon { position: absolute; left: var(--sp-4); width: 22px; height: 22px; pointer-events: none; z-index: 1; }
.search input {
  width: 100%; min-height: 60px; padding: 0 var(--sp-4) 0 3.25rem; background: var(--c-surface); color: var(--c-text);
  border: 1.5px solid var(--c-line-strong); border-radius: var(--radius); font: inherit; font-size: var(--fs-md);
}
.search input::placeholder { color: var(--c-text-3); }
.search input:focus { outline: none; border-color: var(--c-blue-400); box-shadow: 0 0 0 3px rgba(139,128,255,.3); }
@media (max-width: 600px) { .guide-search { flex-direction: column; } }

.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--c-indigo-800); color: var(--c-text); padding-block: var(--section-y); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center; }
.cta-band h2 { font-size: var(--fs-2xl); }
.cta-band p { color: rgba(255,255,255,.85); font-size: var(--fs-md); margin-top: var(--sp-3); max-width: 40rem; }
@media (max-width: 800px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr); } }

/* 9. PAGE PARTS --------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c-indigo-900); color: var(--c-text); padding-block: var(--sp-8) var(--sp-8); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,9,56,.95) 0%, rgba(30,9,56,.75) 50%, rgba(30,9,56,.35) 100%), linear-gradient(0deg, var(--page-bg) 0%, transparent 40%); }
.page-hero__inner { display: grid; gap: var(--sp-4); max-width: 54rem; }
.page-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem); }
.page-hero .lead { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb { margin-bottom: var(--sp-2); }
.page-hero .breadcrumb a, .page-hero .breadcrumb li { color: rgba(255,255,255,.75); }
.page-hero--plain::before { background: linear-gradient(0deg, var(--page-bg) 0%, transparent 60%); }

.filter-bar { display: grid; gap: var(--sp-4); padding: var(--sp-5); margin-bottom: var(--sp-7); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.filter-bar__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.filter-bar__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); min-width: 6rem; }
.filter-bar--sticky { position: sticky; top: calc(var(--header-h) + var(--sp-3)); z-index: 10; }
@media (max-width: 1220px) { .filter-bar--sticky { position: static; } }
.chip-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  min-height: var(--tap); padding: 0 var(--sp-4); background: transparent; color: var(--c-text-2);
  border: 1px solid var(--c-line-strong); border-radius: 10px; font-size: var(--fs-sm); font-weight: 550; cursor: pointer;
}
.chip:hover { color: var(--c-text); border-color: var(--c-text-3); }
.chip[aria-pressed="true"] { background: var(--c-text); color: var(--page-bg); border-color: var(--c-text); }
.select { position: relative; display: inline-grid; gap: 4px; }
.select label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
.select select {
  min-height: var(--tap); min-width: 11rem; padding: 0 2.25rem 0 var(--sp-3); appearance: none;
  background: var(--c-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23968fa5' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .9rem center;
  color: var(--c-text); border: 1px solid var(--c-line-strong); border-radius: var(--radius); font: inherit; font-size: var(--fs-sm);
}
.result-count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-text-3); margin-left: auto; }
.empty-state { padding: var(--sp-7); text-align: center; color: var(--c-text-2); border: 1px dashed var(--c-line-strong); border-radius: var(--radius); }
.group + .group { margin-top: var(--sp-9); }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--c-line); }
.group__head h2 { font-size: var(--fs-xl); }
.group__head p { color: var(--c-text-2); }
.group__count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-text-3); }
.load-more { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-top: var(--sp-7); }
.load-more p { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-text-3); }
.year-head { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-7) 0 var(--sp-5); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--c-text-3); letter-spacing: .1em; }
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

/* product (game / app) header */
.product-head { display: grid; gap: var(--sp-5); }
.product-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.product-head__price { font-size: var(--fs-lg); font-weight: 750; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-7); align-items: start; }
.product-layout > aside { position: sticky; top: calc(var(--header-h) + var(--sp-5)); display: grid; gap: var(--sp-5); }
@media (max-width: 1000px) { .product-layout { grid-template-columns: minmax(0, 1fr); } .product-layout > aside { position: static; } }
.store-list { list-style: none; display: grid; gap: var(--sp-3); }
.store-list .btn { width: 100%; justify-content: flex-start; }
.feature-list { list-style: none; display: grid; gap: var(--sp-3); }
.feature-list li { position: relative; padding-left: 1.75rem; color: var(--c-text-2); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border: 2px solid var(--c-blue-400); border-radius: 50%; }
.feature-list .icon { position: absolute; left: 0; top: .2em; width: 20px; height: 20px; }
.rating { display: flex; align-items: center; gap: var(--sp-4); }
.rating__score { font-size: var(--fs-2xl); font-weight: 800; line-height: 1; font-stretch: 112%; }
.rating__stars { position: relative; width: 140px; height: 28px; }
.rating__stars .art { width: 140px; height: 28px; max-width: none; }
.rating__stars > .art.is-missing { background: var(--c-line-strong); }
.rating__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.rating__fill .art.is-missing { background: var(--c-blue-400); }
.rating__label { color: var(--c-text-2); font-size: var(--fs-sm); }
.soundtrack { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-4); align-items: center; }
.soundtrack .art { width: 96px; height: 96px; border-radius: var(--radius); }
.spec-list { display: grid; gap: 0; margin: 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); }
.spec-list dt { color: var(--c-text-3); font-size: var(--fs-sm); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }

.play-area { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); background: #0b0c10; }
.play-area__frame { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; isolation: isolate; }
.play-area__frame > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .55; }
.play-area__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.play-area__start { display: grid; justify-items: center; gap: var(--sp-3); text-align: center; padding: var(--sp-5); }
.play-area__start p { color: rgba(255,255,255,.85); font-size: var(--fs-sm); }
.play-area__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); background: var(--c-surface); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-text-2); }
.play-area:fullscreen { border: 0; border-radius: 0; }
.play-area:fullscreen .play-area__frame { aspect-ratio: auto; height: calc(100vh - 60px); }
@media (max-width: 600px) { .play-area__frame { aspect-ratio: 4 / 3; } }
.how-to-play { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-4); list-style: none; counter-reset: step; }
.how-to-play li { counter-increment: step; display: grid; gap: var(--sp-2); padding: var(--sp-5); background: var(--c-surface); border-radius: var(--radius); border: 1px solid var(--c-line); }
.how-to-play li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); color: var(--c-accent-text); font-size: var(--fs-sm); }

.tool-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--sp-2); }
.tool { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px var(--sp-3); align-items: center; padding: var(--sp-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.tool .icon { grid-row: span 2; width: 40px; height: 40px; }
.tool__name { font-weight: 650; font-size: var(--fs-sm); line-height: 1.3; }
.tool__text { font-size: var(--fs-xs); color: var(--c-text-3); line-height: 1.4; }

.site-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; }
.site-callout__url { font-family: var(--font-mono); font-size: var(--fs-md); color: var(--c-text); }
@media (max-width: 600px) { .site-callout { grid-template-columns: minmax(0, 1fr); } }

/* guide page */
.guide { display: grid; gap: var(--sp-6); }
.guide__title { font-size: clamp(1.125rem, 0.85rem + 0.7vw, 1.625rem); line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
@media (min-width: 900px) { .guide__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.guide__video { width: 100%; }
.guide__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4) var(--sp-6); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--c-line); }
.guide__meta .btn { flex-shrink: 0; }
@media (max-width: 520px) { .guide__meta .btn { width: 100%; } }
.guide__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-8); align-items: start; }
.guide__layout > aside { position: sticky; top: calc(var(--header-h) + var(--sp-5)); display: grid; gap: var(--sp-5); }
@media (max-width: 1000px) { .guide__layout { grid-template-columns: minmax(0, 1fr); } .guide__layout > aside { position: static; } }
.guide__body { display: grid; gap: var(--sp-7); max-width: 46rem; }
.guide__block { display: grid; gap: var(--sp-4); }
.guide__block h2 { font-size: var(--fs-lg); }
.quick-answer { padding: var(--sp-5) var(--sp-6); background: var(--c-indigo-900); border-radius: var(--radius); border: 1px solid var(--c-indigo-700); font-size: var(--fs-md); }
.quick-answer h2 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: var(--sp-2); }
.check-list { list-style: none; display: grid; gap: var(--sp-3); }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--c-text-2); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border: solid var(--c-blue-400); border-width: 0 0 2.5px 2.5px; rotate: -45deg; }
.need-list { margin: 0; display: grid; gap: 0; }
.need-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); }
.need-list dt { font-weight: 600; }
.need-list dd { margin: 0; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--c-text-3); }
.qa { border-top: 1px solid var(--c-line); }
.qa details { border-bottom: 1px solid var(--c-line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); min-height: 56px; padding: var(--sp-3) 0; cursor: pointer; font-weight: 650; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--c-accent-text); transition: rotate .2s; }
.qa details[open] summary::after { rotate: 45deg; }
.qa details p { padding: 0 0 var(--sp-5); color: var(--c-text-2); }
.course-nav { display: grid; gap: var(--sp-4); padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.course-nav__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); }
.course-nav__part { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-text); }
.course-nav__steps { list-style: none; display: grid; gap: 2px; }
.course-nav__steps a, .course-nav__steps span { display: grid; grid-template-columns: 2.5ch minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); min-height: var(--tap); align-items: center; border-radius: 3px; font-size: var(--fs-sm); color: var(--c-text-2); text-decoration: none; }
.course-nav__steps a:hover { background: var(--c-surface-2); color: var(--c-text); }
.course-nav__steps [aria-current] { background: var(--c-surface-2); color: var(--c-text); font-weight: 650; }
.course-nav__pn { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.course-nav__pn a { display: grid; gap: 2px; padding: var(--sp-3); min-height: var(--tap); border: 1px solid var(--c-line-strong); border-radius: var(--radius); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); }
.course-nav__pn a:hover { border-color: var(--c-blue-400); }
.course-nav__pn small { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
.course-nav__pn .next { text-align: right; grid-column: 2; }

/* portfolio */
.showpiece { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.showpiece + .showpiece { margin-top: var(--sp-9); }
.showpiece:nth-child(even) .showpiece__media { order: 2; }
.showpiece__body { display: grid; gap: var(--sp-4); }
.showpiece__index { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--c-accent-text); }
.showpiece__body h2 { font-size: var(--fs-xl); overflow-wrap: anywhere; }
.showpiece__body p { color: var(--c-text-2); font-size: var(--fs-md); }
@media (max-width: 900px) { .showpiece { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); } .showpiece:nth-child(even) .showpiece__media { order: 0; } }

.loop { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--c-ph); }
.loop video, .loop > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* about */
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--c-line); margin-left: 8px; }
.timeline li { position: relative; display: grid; gap: var(--sp-1); padding: 0 0 var(--sp-6) var(--sp-6); }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--c-bg); border: 3px solid var(--c-blue-400); }
.timeline time, .timeline .when { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-accent-text); letter-spacing: .08em; }
.timeline h3 { font-size: var(--fs-md); }
.timeline p { color: var(--c-text-2); font-size: var(--fs-sm); }
.stat-list { list-style: none; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat-list li { display: grid; gap: var(--sp-1); }
.stat-list strong { font-size: var(--fs-xl); font-weight: 800; font-stretch: 112%; }
.stat-list span { color: var(--c-text-2); font-size: var(--fs-sm); }
.channel-grid { list-style: none; display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.channel { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 var(--sp-3); align-items: center; padding: var(--sp-4); min-height: 72px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-text); text-decoration: none; }
.channel .icon { grid-row: span 2; width: 40px; height: 40px; }
.channel strong { font-weight: 700; }
.channel span { font-size: var(--fs-xs); color: var(--c-text-3); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel:hover { border-color: var(--c-blue-400); color: var(--c-text); }

/* contact */
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 800px) { .contact-options { grid-template-columns: minmax(0, 1fr); } }
.contact-option { display: grid; gap: var(--sp-4); align-content: start; }
.contact-option .icon { width: 64px; height: 64px; }
.contact-option__value { font-family: var(--font-mono); font-size: var(--fs-md); overflow-wrap: anywhere; color: var(--c-text); }
.numbered { list-style: none; counter-reset: n; display: grid; gap: var(--sp-4); }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--sp-3); color: var(--c-text-2); }
.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-mono); color: var(--c-accent-text); }
.numbered strong { color: var(--c-text); display: block; }

/* support */
.give-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 700px) { .give-grid { grid-template-columns: minmax(0, 1fr); } }
.give-btn {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center;
  min-height: 132px; padding: var(--sp-5) var(--sp-6); background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--radius);
  color: var(--c-text); text-decoration: none; transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.give-btn > .btn__skin { z-index: -1; }
.give-btn.has-art { background: transparent; border-color: transparent; }
.give-btn:hover { transform: translateY(-2px); border-color: var(--c-blue-400); color: var(--c-text); }
.give-btn .icon { width: 72px; height: 72px; }
.give-btn strong { display: block; font-size: var(--fs-lg); font-weight: 750; font-stretch: 108%; }
.give-btn span { color: var(--c-text-2); font-size: var(--fs-sm); }
.give-btn::after { content: "\2192"; font-size: 1.5rem; color: var(--c-accent-text); }
.support-list { list-style: none; display: grid; border-top: 1px solid var(--c-line); }
.support-row { display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1.5fr) auto; gap: var(--sp-5); align-items: center; padding: var(--sp-5) 0; border-bottom: 1px solid var(--c-line); }
.support-row .app-icon { width: 56px; height: 56px; border-radius: 12px; }
.support-row h2 { font-size: var(--fs-md); }
.support-row__kind { color: var(--c-text-2); font-size: var(--fs-sm); }
.support-row__none { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.support-row--none h2 { color: var(--c-text-2); }
@media (max-width: 800px) {
  .support-row { grid-template-columns: 48px minmax(0, 1fr); }
  .support-row .app-icon { width: 48px; height: 48px; grid-row: span 2; }
  .support-row > :nth-child(3) { grid-column: 2; }
  .support-row > :last-child { grid-column: 1 / -1; }
}

/* prose (privacy, plain text pages) */
.prose-layout { display: grid; grid-template-columns: 240px minmax(0, 46rem); gap: var(--sp-8); align-items: start; }
@media (max-width: 900px) { .prose-layout { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
.toc ol { list-style: none; display: grid; border-left: 1px solid var(--c-line); }
.toc a { display: flex; align-items: center; min-height: var(--tap); padding-left: var(--sp-4); color: var(--c-text-2); text-decoration: none; font-size: var(--fs-sm); margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--c-text); border-left-color: var(--c-blue-400); }
@media (max-width: 900px) { .toc { position: static; } }
.prose { font-size: var(--fs-md); color: var(--c-text-2); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--fs-xl); color: var(--c-text); margin-top: var(--sp-8); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-lg); color: var(--c-text); margin-top: var(--sp-6); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--sp-2); }
.prose strong { color: var(--c-text); }

/* read it to me */
.reader { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); line-height: 1.7; color: var(--c-text); }
.reader p + p { margin-top: 1.2em; }
.reader p.is-speaking { color: var(--c-text); background: linear-gradient(transparent 60%, rgba(102,86,240,.35) 60%); }
.reader-controls { position: sticky; top: calc(var(--header-h) + var(--sp-3)); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-4); margin-bottom: var(--sp-7); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.reader-controls__status { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--c-text-3); margin-left: auto; }

/* 404 */
.not-found { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--sp-8); align-items: center; min-height: 70vh; padding-block: var(--sp-9); }
.not-found__art .art { width: 100%; height: auto; background: transparent; }
.not-found__art .art:not(.is-loaded) { background: var(--c-ph); border-radius: 50%; }
.not-found__code { font-family: var(--font-mono); color: var(--c-accent-text); letter-spacing: .1em; }
@media (max-width: 800px) { .not-found { grid-template-columns: minmax(0, 1fr); } .not-found__art { max-width: 220px; } }

/* GLASS ----------------------------------------------------------------- */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 45% 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.05) 55%, rgba(255,255,255,0) 100%);
}
.nav__link:hover, .nav__link[aria-current] {
  background: var(--glass-gloss), rgba(192,184,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.12);
}
.theme-toggle, .sound-toggle, .slider__btn, .video__play, .video__play.has-art {
  background: var(--glass-gloss), var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow);
}
.video__play.has-art .icon { width: 44%; height: 44%; }
.video__poster:hover .video__play { background: var(--glass-gloss), rgba(102,86,240,.55); }
.slide__body {
  margin: clamp(var(--sp-4), 3vw, var(--sp-7)); border-radius: 10px;
  background: var(--glass-gloss), rgba(30,9,56,.42);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow);
}
.filter-bar, .reader-controls, .course-nav, .play-area__bar {
  background: var(--glass-gloss), color-mix(in srgb, var(--c-surface) 72%, transparent);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid color-mix(in srgb, var(--c-text) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 30px -18px rgba(0,0,0,.6);
}
.panel--brand, .quick-answer { background-image: var(--glass-gloss); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 18px rgba(192,184,255,.10); }
.btn--primary::after, .btn--play::after, .btn--site::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.12) 48%, rgba(255,255,255,0) 52%, rgba(255,255,255,.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.chip {
  background: var(--glass-gloss), rgba(192,184,255,.06);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 12px -8px rgba(0,0,0,.6);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.chip:hover { background: var(--glass-gloss), rgba(192,184,255,.16); border-color: rgba(255,255,255,.35); color: var(--c-text); }
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.14) 48%, rgba(255,255,255,0) 52%, rgba(255,255,255,.1) 100%), var(--c-blue-500);
  color: #fff; border-color: rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 16px -2px rgba(139,128,255,.65);
}
[data-theme="light"] .chip { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.8) 49%, rgba(239,236,246,.9) 50%, #f6f4fa 100%); border-color: var(--c-line-strong); box-shadow: inset 0 1px 0 #fff, 0 2px 6px -3px rgba(30,9,56,.3); }
[data-theme="light"] .chip:hover { border-color: var(--c-text-3); }
[data-theme="light"] .chip[aria-pressed="true"] { background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.14) 48%, rgba(255,255,255,0) 52%, rgba(255,255,255,.1) 100%), var(--c-blue-500); color: #fff; border-color: var(--c-blue-500); }
.card__media .badge { -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); }
[data-theme="light"] :is(.filter-bar, .reader-controls, .course-nav) {
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.7) 49%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.6) 100%), rgba(239,236,246,.55);
  border-color: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(30,9,56,.08), 0 12px 30px -16px rgba(30,9,56,.35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .slide__body { background: var(--glass-gloss), rgba(30,9,56,.82); }
}

/* GLASS, PART 2: shared surfaces ------------------------------------------- */
.glass-card {
  background: var(--glass-gloss), rgba(30,9,56,.48);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-rim); border-radius: 12px; box-shadow: var(--glass-shadow);
}
[data-theme="light"] .glass-card:not(:is(.hero, .page-hero, .cta-band, .slide) *) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.82) 49%, rgba(255,255,255,.6) 50%, rgba(255,255,255,.75) 100%), rgba(239,236,246,.6);
  border-color: rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(30,9,56,.08), 0 18px 40px -22px rgba(30,9,56,.45);
}
.tag {
  background: var(--glass-gloss), color-mix(in srgb, var(--c-blue-300) 9%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--c-text) 14%, transparent); border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22); color: var(--c-text-2);
}
a.tag:hover, .tag-list--lg a.tag:hover { background: var(--glass-gloss), color-mix(in srgb, var(--c-blue-400) 22%, transparent); border-color: color-mix(in srgb, var(--c-text) 30%, transparent); color: var(--c-text); }
[data-theme="light"] .tag { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.85) 49%, rgba(239,236,246,.95) 50%, #f6f4fa 100%); box-shadow: inset 0 1px 0 #fff, 0 1px 3px -1px rgba(30,9,56,.2); }
.badge { background: var(--glass-gloss), rgba(23,21,28,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn--ghost, .btn--secondary { -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%); }
.btn--ghost::after, .btn--secondary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 48%, rgba(255,255,255,0) 52%, rgba(255,255,255,.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.06);
}
.btn--ghost:hover::after, .btn--secondary:hover::after { background: linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 52%, rgba(139,128,255,.12) 100%); }
.give-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: var(--glass-gloss); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.search input { background: var(--glass-gloss), color-mix(in srgb, var(--c-surface) 78%, transparent); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 2px 8px rgba(0,0,0,.18); }
.hero .search input, .page-hero .search input { background: var(--glass-gloss), rgba(30,9,56,.45); border-color: rgba(255,255,255,.28); }
.select select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23968fa5' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .9rem center, var(--glass-gloss), color-mix(in srgb, var(--c-surface) 80%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.tool, .channel, .how-to-play li, .toc, .need-list > div, .support-row {
  background-image: var(--glass-gloss);
}
.tool, .channel, .how-to-play li { box-shadow: inset 0 1px 0 rgba(255,255,255,.12); border-color: color-mix(in srgb, var(--c-text) 12%, transparent); }
.channel:hover, .tool:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(192,184,255,.25), 0 12px 30px -18px rgba(102,86,240,.7); }
.support-row { background-image: none; transition: background .2s; padding-inline: var(--sp-4); border-radius: 8px; }
.support-row:hover { background-image: var(--glass-gloss); background-color: color-mix(in srgb, var(--c-surface) 70%, transparent); }
.toc { padding: var(--sp-4); border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c-text) 10%, transparent); background-color: color-mix(in srgb, var(--c-surface) 60%, transparent); }
.panel:not(.panel--brand) { background-image: var(--glass-gloss); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.card { box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(192,184,255,.22), 0 22px 44px -24px rgba(102,86,240,.65); }
.tile__count { justify-self: start; margin-top: var(--sp-2); padding: 3px 10px; border-radius: 8px; background: var(--glass-gloss), rgba(30,9,56,.4); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .eyebrow, .page-hero .eyebrow {
  justify-self: start; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; color: #fff;
  background: var(--glass-gloss), rgba(192,184,255,.12); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero h1, .page-hero h1 { text-shadow: 0 2px 40px rgba(102,86,240,.45); }
.timeline li::before { background: radial-gradient(circle at 35% 30%, #fff 0 16%, var(--c-blue-400) 45%, var(--c-indigo-700) 100%); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 0 12px rgba(139,128,255,.7); left: -9px; }
.guide__meta { padding: var(--sp-4) var(--sp-5); border: 1px solid color-mix(in srgb, var(--c-text) 12%, transparent); border-radius: 12px; background: var(--glass-gloss), color-mix(in srgb, var(--c-surface) 70%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.cta-band__inner.glass-card { padding: clamp(var(--sp-6), 4vw, var(--sp-8)); }
.contact-option { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-option:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 22px 44px -24px rgba(102,86,240,.7); }

/* PORTFOLIO ---------------------------------------------------------------- */
.hero--portfolio .hero__inner { min-height: min(78vh, 820px); }
.glass-stats { justify-self: end; width: min(100%, 420px); padding: var(--sp-6); display: grid; gap: var(--sp-5); }
.glass-stats__title { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text); }
.glass-stats ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); }
.glass-stats li { display: grid; gap: 2px; min-width: 0; }
.glass-stats strong { font-size: clamp(1.4rem, 1rem + 1vw, 2.25rem); font-weight: 800; font-stretch: 108%; line-height: 1; letter-spacing: -0.02em; }
.glass-stats span { font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.4; }
@media (max-width: 900px) { .glass-stats { justify-self: stretch; width: 100%; order: 2; } }
.skill-index { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); padding: var(--sp-4) var(--sp-5); }
.tag-list--lg a.tag { min-height: var(--tap); padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.showcase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.showcase + .showcase { margin-top: clamp(var(--sp-8), 8vw, 9rem); }
.showcase__media { grid-column: 1 / 10; grid-row: 1; position: relative; }
.showcase__media::after { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); pointer-events: none; box-shadow: 0 30px 80px -30px rgba(102,86,240,.55); }
.showcase__card { grid-column: 8 / 13; grid-row: 1; position: relative; z-index: 2; margin-bottom: calc(var(--sp-8) * -1); padding: clamp(var(--sp-5), 2.5vw, var(--sp-7)); display: grid; gap: var(--sp-4); }
.showcase:nth-child(even) .showcase__media { grid-column: 4 / 13; }
.showcase:nth-child(even) .showcase__card { grid-column: 1 / 6; }
.showcase__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.showcase__num { font-size: clamp(2.5rem, 2rem + 2vw, 4rem); font-weight: 800; font-stretch: 125%; line-height: .9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--c-blue-300); }
.showcase__card h2 { font-size: var(--fs-xl); line-height: 1.15; overflow-wrap: anywhere; }
.showcase__card > p { color: var(--c-text-2); }
.showcase__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin: 0; padding-block: var(--sp-3); border-block: 1px solid color-mix(in srgb, var(--c-text) 12%, transparent); }
.showcase__facts dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-3); }
.showcase__facts dd { margin: 0; font-weight: 650; }
@media (max-width: 1000px) {
  .showcase, .showcase:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .showcase__media, .showcase:nth-child(even) .showcase__media, .showcase__card, .showcase:nth-child(even) .showcase__card { grid-column: 1; grid-row: auto; }
  .showcase__card { margin: calc(var(--sp-6) * -1) var(--sp-4) 0; }
}
.shipped { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; padding: clamp(var(--sp-5), 3vw, var(--sp-7)); }
.shipped__media { border-radius: var(--radius); overflow: hidden; }
.shipped__media .art { width: 100%; height: auto; }
.shipped__body { display: grid; gap: var(--sp-5); }
.shipped__body .stat-list { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .shipped { grid-template-columns: minmax(0, 1fr); } }
.cap-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: minmax(0, 1fr); } }
.cap-grid li { display: grid; }
.cap { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--sp-4); align-items: center; padding: var(--sp-5); min-height: 96px; color: var(--c-text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.cap .icon { width: 56px; height: 56px; }
.cap strong { font-weight: 700; font-size: var(--fs-md); line-height: 1.3; }
.cap:hover { color: var(--c-text); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(192,184,255,.3), 0 20px 40px -22px rgba(102,86,240,.8); }

/* PAGE OCEANS -------------------------------------------------------------- */
.ocean { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ocean--front { z-index: 45; }
body[data-ocean] main, body[data-ocean] .site-footer { position: relative; z-index: 1; }
body[data-ocean] .proof { background: transparent; }
body[data-ocean] .section--alt, body[data-ocean] .play-now { background: color-mix(in srgb, var(--c-bg-2) 55%, transparent); }
.is-inspected { outline: 2px solid rgba(255,214,110,.85) !important; outline-offset: 5px; box-shadow: 0 0 26px rgba(255,214,110,.4) !important; transition: outline-color .3s, box-shadow .3s; }

/* see-through banners */
.hero, .page-hero { background: color-mix(in srgb, var(--c-indigo-900) 38%, transparent); }
.hero__bg .art, .page-hero .hero__bg .art { opacity: .55; }
.hero::before, .page-hero::before { opacity: .7; }

/* see-through closing band and footer (v0.02, operator order): on ocean pages the creatures show
   behind the "Start a project" band and fade out down the footer. Text stays solid: the band's
   copy sits in a .glass-card. Pages without an ocean scene keep the solid fills above. */
body[data-ocean] .cta-band {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-indigo-800) 20%, transparent) 0%, color-mix(in srgb, var(--c-indigo-800) 44%, transparent) 100%);
}
body[data-ocean] .cta-band .section__bg .art { opacity: .4; }
body[data-ocean] .site-footer {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-indigo-950) 44%, transparent) 0%, color-mix(in srgb, var(--c-indigo-950) 78%, transparent) 55%, color-mix(in srgb, var(--c-indigo-950) 92%, transparent) 100%);
}
/* light theme: the page behind is pale, so the brand areas keep more of their purple */
[data-theme="light"] body[data-ocean] .cta-band {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-indigo-800) 62%, transparent) 0%, color-mix(in srgb, var(--c-indigo-800) 78%, transparent) 100%);
}
[data-theme="light"] body[data-ocean] .site-footer {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-indigo-950) 80%, transparent) 0%, color-mix(in srgb, var(--c-indigo-950) 94%, transparent) 100%);
}

/* portfolio skills strip matches the games filter bar */
.skill-index.glass-card {
  padding: var(--sp-5); border-radius: var(--radius);
  background: var(--glass-gloss), color-mix(in srgb, var(--c-surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-text) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 30px -18px rgba(0,0,0,.6);
}
[data-theme="light"] .skill-index.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.7) 49%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.6) 100%), rgba(239,236,246,.55);
  border-color: rgba(255,255,255,.9); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(30,9,56,.08), 0 12px 30px -16px rgba(30,9,56,.35);
}
.tag-list--lg a.tag {
  min-height: var(--tap); padding: 0 var(--sp-4); border-radius: 10px; font-size: var(--fs-sm); font-weight: 550; color: var(--c-text-2);
  background: var(--glass-gloss), rgba(192,184,255,.06); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 4px 12px -8px rgba(0,0,0,.6);
}
.tag-list--lg a.tag:hover { background: var(--glass-gloss), rgba(192,184,255,.16); border-color: rgba(255,255,255,.35); color: var(--c-text); }
.tag-list--lg a.tag:active, .tag-list--lg a.tag:focus-visible {
  background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.14) 48%, rgba(255,255,255,0) 52%, rgba(255,255,255,.1) 100%), var(--c-blue-500);
  color: #fff; border-color: rgba(255,255,255,.45);
}
[data-theme="light"] .tag-list--lg a.tag { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.8) 49%, rgba(239,236,246,.9) 50%, #f6f4fa 100%); border-color: var(--c-line-strong); box-shadow: inset 0 1px 0 #fff, 0 2px 6px -3px rgba(30,9,56,.3); }
[data-theme="light"] .tag-list--lg a.tag:hover { border-color: var(--c-text-3); color: var(--c-text); }

/* MOTION: page transitions, parallax, reveals, tilt ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-sink .7s cubic-bezier(.4, 0, .2, 1) both; }
  ::view-transition-new(root) {
    animation: vt-rise 1.05s cubic-bezier(.22, .8, .25, 1) .05s both;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 240' preserveAspectRatio='none'%3E%3Cpath d='M0 115 C83 100 167 100 250 115 S417 130 500 115 S667 100 750 115 S917 130 1000 115 V240 H0 Z' fill='white'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 240' preserveAspectRatio='none'%3E%3Cpath d='M0 115 C83 100 167 100 250 115 S417 130 500 115 S667 100 750 115 S917 130 1000 115 V240 H0 Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: 200% 240%; mask-size: 200% 240%; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  }
  ::view-transition-group(hero-media) { animation-duration: .9s; animation-timing-function: cubic-bezier(.22, .8, .25, 1); }
  ::view-transition-old(hero-media), ::view-transition-new(hero-media) { height: 100%; object-fit: cover; animation-duration: .9s; }
  ::view-transition-group(site-header) { animation-duration: .5s; }
  .is-leaving main { opacity: 0; transform: translateY(24px) scale(.985); filter: blur(6px); transition: opacity .38s ease, transform .38s ease, filter .38s ease; }
  html:not(.has-vt) main { animation: page-enter .7s cubic-bezier(.22, .8, .25, 1) both; }
}
@keyframes vt-sink { to { transform: translateY(46px) scale(.95); filter: blur(10px) brightness(.45) saturate(1.3); opacity: .2; } }
@keyframes vt-rise {
  from { -webkit-mask-position: 0% 0%; mask-position: 0% 0%; transform: translateY(60px); filter: brightness(1.25) saturate(1.2); }
  to { -webkit-mask-position: 100% 100%; mask-position: 100% 100%; transform: none; filter: none; }
}
@keyframes page-enter { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
.vt-bubbles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.hero__bg, .page-hero .hero__bg { will-change: transform; transform-origin: 50% 0; }

/* images surface out of the blur as they load */
.js :is(.card__media, .hero__bg, .slide__media, .media, .shipped__media, .video__poster, .tile, .card__head) > .art {
  transition: opacity .9s ease, filter .9s ease, transform 1.2s cubic-bezier(.22, .8, .25, 1);
}
.js :is(.card__media, .hero__bg, .slide__media, .media, .shipped__media, .video__poster, .tile) > .art:not(.is-loaded):not(.is-missing) { opacity: 0; filter: blur(14px); transform: scale(1.05); }

.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(5px); transition: opacity .8s ease, transform .9s cubic-bezier(.22, .8, .25, 1), filter .8s ease; transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

.is-tilting { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px) !important; transition: transform .12s ease-out, box-shadow .25s, border-color .25s !important; }
.card.is-tilting, .cap.is-tilting, .give-btn.is-tilting, .contact-option.is-tilting {
  background-image: radial-gradient(520px circle at var(--mx) var(--my), rgba(255,255,255,.09), transparent 42%), var(--glass-gloss);
}

/* hover video previews */
.video__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.video.is-previewing .video__preview { opacity: 1; }
.video.is-previewing .video__play { opacity: 0; transform: scale(.85); }
.video__play { transition: opacity .3s, transform .3s, background .3s; }

/* depth gauge */
.depth-gauge { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30; display: none; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: rgba(255,255,255,.65); }
@media (min-width: 1280px) { .depth-gauge { display: flex; } }
.depth-gauge__track { position: relative; width: 6px; height: 42vh; border-radius: 6px; background: var(--glass-gloss), rgba(30,9,56,.4); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.depth-gauge__fill { position: absolute; left: 0; right: 0; top: 0; border-radius: 6px; background: linear-gradient(180deg, #c0b8ff, #6656f0 60%, #2a0d4d); box-shadow: 0 0 10px rgba(139,128,255,.6); }
.depth-gauge__mark { position: absolute; right: 14px; transform: translateY(-50%); display: grid; justify-items: end; gap: 2px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; color: #fff;
  background: var(--glass-gloss), rgba(30,9,56,.55); border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px -10px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.depth-gauge__mark b { font-weight: 500; font-size: .78rem; }
.depth-gauge__mark i { font-style: normal; font-size: .62rem; color: var(--c-blue-300); }
.depth-gauge__end { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
[data-theme="light"] .depth-gauge { color: var(--c-text-3); }
[data-theme="light"] .depth-gauge__end { text-shadow: none; }

/* hire card inside the closing band */
.cta-band__inner--hire { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: stretch; }
@media (max-width: 900px) { .cta-band__inner--hire { grid-template-columns: minmax(0, 1fr); } }
.hire-card { display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-6); background: var(--glass-gloss), rgba(255,255,255,.06) !important; }
.hire-card__list { display: grid; gap: var(--sp-3); margin: 0; }
.hire-card__list > div { display: grid; gap: 2px; padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(255,255,255,.12); }
.hire-card__list dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-blue-300); }
.hire-card__list dd { margin: 0; color: #fff; }
.cta-band__lead { display: grid; gap: var(--sp-5); align-content: center; }

/* logo wink */
.brand__mark { position: relative; display: block; flex-shrink: 0; }
.brand__lid { position: absolute; left: 57%; top: 14%; width: 25%; height: 58%; border-radius: 50%; background: #26053f; transform: scaleY(0); transform-origin: 50% 0; pointer-events: none; }
.brand { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.brand.is-winking .brand__lid { animation: wink .55s ease-in-out; }
.brand.is-winking .brand__logo { animation: wink-bob .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wink { 0%, 100% { transform: scaleY(0); } 35%, 60% { transform: scaleY(1); } }
@keyframes wink-bob { 0% { transform: none; } 30% { transform: rotate(-10deg) scale(1.18); } 60% { transform: rotate(6deg) scale(1.08); } 100% { transform: none; } }

/* sound toggle uses the theme toggle look */
.sound-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
.sound-toggle__on { display: none; }
.sound-toggle[aria-pressed="true"] .sound-toggle__on { display: block; }
.sound-toggle[aria-pressed="true"] .sound-toggle__off { display: none; }
.sound-toggle[aria-pressed="true"] { border-color: rgba(192,184,255,.8); box-shadow: var(--glass-shadow), 0 0 14px rgba(139,128,255,.5); }
@media (max-width: 520px) { .sound-toggle { display: none !important; } }

/* 404 shipwreck */
.wreck-404 { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; padding-block: var(--sp-8); }
.wreck-404__card { max-width: 34rem; padding: clamp(var(--sp-6), 4vw, var(--sp-8)); display: grid; gap: var(--sp-5); }
.wreck-404__card .eyebrow { justify-self: start; padding: 6px 12px; border-radius: 8px; color: #fff; background: var(--glass-gloss), rgba(192,184,255,.12); border: 1px solid rgba(255,255,255,.22); }
.wreck-404__card h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); text-shadow: 0 2px 40px rgba(102,86,240,.45); }
@media (max-width: 900px) { .wreck-404 { align-items: start; } }

/* footer legal links + credits */
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.credits { padding: clamp(var(--sp-5), 3vw, var(--sp-7)); display: grid; gap: var(--sp-4); }
.credits h2 { font-size: var(--fs-xl); }
.credits__list { display: grid; gap: 0; margin: 0; }
.credits__list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid color-mix(in srgb, var(--c-text) 12%, transparent); }
.credits__list dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.credits__list dd { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
@media (max-width: 600px) { .credits__list > div { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); } }

/* rendered title art (v0.02, operator order): the words stay in the HTML; the art shows when its file exists */
.title-art { display: block; }
.title-art__img { display: none; width: auto; max-width: 100%; height: clamp(3.5rem, 2.2rem + 4.5vw, 6.5rem); object-fit: contain; object-position: left center; background: transparent; }
.title-art__img--l2 { height: clamp(7rem, 4.4rem + 9vw, 13rem); }
.title-art.has-art .title-art__img { display: block; }
.title-art.has-art .title-art__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 10. UTILITIES --------------------------------------------------------- */
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.muted { color: var(--c-text-3); }
[hidden] { display: none !important; }
