/* Threads of Aeon: site styles
   ---------------------------------------------------------------------------
   1. Tokens          5. Hero            9. Building Aeon (channel)
   2. Base            6. Thread rail    10. About + footer
   3. Layout/utility  7. Projects       11. Project pages
   4. Buttons/header  8. Vision         12. Motion preferences
*/

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Palette sampled from the Threads of Aeon key art:
     indigo night, spectral blue, nebula violet, sigil-light cream, temple-fire copper. */
  --ink-0: #060812;
  --ink-1: #0a0e1c;
  --ink-2: #0f1528;
  --ink-3: #172038;

  --spectral: #8cc3e0;          /* primary accent: the blue glow of the right-hand figures */
  --spectral-rgb: 140 195 224;
  --spectral-deep: #4f86b8;
  --starlight: #e8d2b8;         /* the pale light of the sigil */
  --starlight-rgb: 232 210 184;
  --nebula: #a597dc;            /* violet nebula */
  --nebula-rgb: 165 151 220;
  --ember: #d09569;             /* temple firelight */
  --youtube: #e8392f;

  --line: rgb(var(--spectral-rgb) / 0.14);
  --line-strong: rgb(var(--spectral-rgb) / 0.32);

  --text: #ebe4da;
  --text-dim: #b2adc2;
  --text-faint: #858399;

  --grad-arcane: linear-gradient(100deg, #f6eadb 0%, var(--starlight) 26%, var(--spectral) 62%, var(--nebula) 100%);
  --grad-thread: linear-gradient(90deg, var(--starlight), var(--spectral) 50%, var(--nebula));

  --font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;  /* large titles */
  --font-arcane: 'Cormorant Unicase', 'Cormorant Garamond', Georgia, serif;  /* small headings + labels */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 3rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4.6rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.6vw, 6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1320px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  background: var(--ink-0);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgb(var(--nebula-rgb) / 0.07), transparent 60%),
    radial-gradient(900px 700px at 0% 40%, rgb(var(--spectral-rgb) / 0.05), transparent 60%),
    var(--ink-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; background-size: cover; background-position: center; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(var(--nebula-rgb) / 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--starlight);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Cinzel Decorative ships in 400 and 700 only; titles use the lighter cut. */
.hero__title, .section-title, .vision__title, .channel__title, .project-card__title,
.p-hero__title, .p-section__title, .p-next__title { font-weight: 400; }

/* 3. Layout & utilities ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(5rem, 3rem + 8vw, 9rem); position: relative; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  background: var(--spectral); color: var(--ink-0); font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--sm { width: 0.95em; height: 0.95em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-arcane);
  font-size: clamp(0.92rem, 0.88rem + 0.15vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--spectral);
}
.eyebrow::before {
  content: '';
  width: 2.25rem; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  letter-spacing: 0.02em;
  margin-block: 0.9rem 0.8rem;
}
.section-lede { color: var(--text-dim); font-size: var(--step-1); max-width: 38rem; }

.subhead {
  font-family: var(--font-arcane);
  font-size: var(--step-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.subhead::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text-dim);
  background: rgb(255 255 255 / 0.02);
}

.thread-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--starlight) 25%, var(--spectral) 55%, var(--nebula) 80%, transparent);
  opacity: 0.35;
}

.img-placeholder {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent, var(--spectral)) 22%, transparent), transparent 60%),
    linear-gradient(135deg, var(--ink-3), var(--ink-1));
  color: var(--text-faint);
  font-family: var(--font-arcane);
  letter-spacing: 0.15em; text-transform: uppercase; font-size: var(--step--1);
}

/* 4. Buttons & header ------------------------------------------------------ */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--btn-border);
  border-radius: 99px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(180deg, #c9e6f5 0%, var(--spectral) 55%, #74a9d2 100%);
  --btn-fg: #08101f;
  --btn-border: transparent;
  box-shadow: 0 6px 24px -8px rgb(var(--spectral-rgb) / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.4);
}
.btn--primary:hover { box-shadow: 0 10px 30px -8px rgb(var(--spectral-rgb) / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.4); }

.btn--accent {
  --btn-bg: var(--accent, var(--spectral));
  --btn-fg: #120e08;
  --btn-border: transparent;
  box-shadow: 0 6px 22px -10px var(--accent, var(--spectral));
}
.btn--accent:hover { --btn-bg: color-mix(in srgb, var(--accent, var(--spectral)) 82%, white); }

.btn--ghost { --btn-bg: rgb(9 12 18 / 0.45); backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-border: var(--spectral); --btn-bg: rgb(var(--spectral-rgb) / 0.08); }

.btn--youtube { --btn-bg: var(--youtube); --btn-fg: #fff; --btn-border: transparent; }
.btn--youtube:hover { --btn-bg: #ff4a3f; }

.btn--text { --btn-border: transparent; padding-inline: 0.6rem; color: var(--text-dim); }
.btn--text:hover { color: var(--text); transform: none; }

.btn--small { min-height: 2.4rem; padding: 0.45rem 1rem; font-size: 0.86rem; }
.btn--large { min-height: 3.3rem; padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(7 9 13 / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: calc(var(--max) + 4rem); margin-inline: auto;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.brand__sigil { width: 2rem; height: 2rem; color: var(--spectral); transition: transform 0.8s var(--ease-out); }
.brand:hover .brand__sigil { transform: rotate(-30deg); }
.brand__name {
  font-family: var(--font-arcane); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem;
}
.brand__name span { font-size: 0.7em; color: var(--spectral); }
.brand--large .brand__sigil { width: 2.6rem; height: 2.6rem; }
.brand--large .brand__name { font-size: 1.15rem; }

.site-nav__list { display: flex; align-items: center; gap: clamp(0.25rem, 1vw, 1rem); }
.site-nav__list a:not(.btn) {
  position: relative; display: block;
  padding: 0.5rem 0.4rem;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.25s;
}
.site-nav__list a:not(.btn)::after {
  content: ''; position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.2rem; height: 1px;
  background: var(--spectral); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav__list a:not(.btn):hover,
.site-nav__list a[aria-current='true'] { color: var(--text); }
.site-nav__list a:not(.btn):hover::after,
.site-nav__list a[aria-current='true']::after { transform: scaleX(1); }
.site-nav__home { display: none; }
.site-nav__cta { margin-left: 0.5rem; }
.site-nav__toggle { display: none; }

@media (max-width: 899px) {
  .site-nav__toggle {
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--line-strong); border-radius: 50%;
    background: rgb(9 12 18 / 0.5);
  }
  .site-nav__toggle .icon { width: 1.3rem; height: 1.3rem; }
  .site-nav__toggle .icon--close,
  .site-nav__toggle[aria-expanded='true'] .icon--open { display: none; }
  .site-nav__toggle[aria-expanded='true'] .icon--close { display: block; }

  .js .site-nav__list {
    position: fixed; inset: var(--header-h) 0 auto; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: rgb(7 9 13 / 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-0.75rem);
    transition: opacity 0.3s, transform 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .js .site-header.is-open .site-nav__list {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.3s, transform 0.35s var(--ease-out);
  }
  .site-nav__home { display: block; }
  .site-nav__list a:not(.btn) { padding: 0.95rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav__list a:not(.btn)::after { display: none; }
  .site-nav__cta { margin: 1.25rem 0 0; }
  .site-nav__cta .btn { width: 100%; min-height: 3rem; }

  /* Without JS the menu is simply shown below the header row. */
  .no-js .site-nav__list { flex-wrap: wrap; justify-content: flex-end; }
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding-top: var(--header-h);
  isolation: isolate;
  overflow: hidden;
}

.hero__media, .hero__slide, .hero__veil, .hero__motes { position: absolute; inset: 0; }
.hero__media { z-index: -3; background: var(--ink-1); }
.hero__slide {
  opacity: 0;
  transition: opacity 1.6s var(--ease-in-out);
}
.hero__slide.is-active { opacity: 1; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero__slide.is-active .hero__img { animation: kenburns 16s linear both; }
@keyframes kenburns {
  from { transform: scale(1.12) translate3d(1.5%, 0.5%, 0); }
  to { transform: scale(1.02) translate3d(-1%, -0.5%, 0); }
}

.hero__motes { z-index: -1; pointer-events: none; }
.hero__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgb(5 7 10 / 0.55) 0%, rgb(5 7 10 / 0.05) 28%, rgb(5 7 10 / 0.35) 58%, var(--ink-0) 100%),
    linear-gradient(90deg, rgb(5 7 10 / 0.85) 0%, rgb(5 7 10 / 0.45) 45%, transparent 75%),
    radial-gradient(ellipse at 20% 80%, rgb(var(--nebula-rgb) / 0.16), transparent 55%);
}

.hero__content { padding-bottom: clamp(2rem, 1rem + 4vw, 4rem); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.1rem + 3.7vw, 4.9rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.04;
  margin: 1.1rem 0 1.5rem;
  max-width: 20ch;
  filter: drop-shadow(0 2px 14px rgb(6 8 18 / 0.75)) drop-shadow(0 0 2px rgb(6 8 18 / 0.5));
}
.hero__title span { display: block; }
.hero__title-2 {
  background: var(--grad-arcane);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lede { max-width: 36rem; font-size: var(--step-1); color: rgb(236 229 214 / 0.92); text-shadow: 0 1px 12px rgb(0 0 0 / 0.6); }
.hero__lede--quiet { margin-top: 0.75rem; font-size: var(--step-0); color: var(--text-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero__now {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding-top: 1.1rem;
}
.hero__now-label { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__now-kicker { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-faint); }
.hero__now-title {
  font-family: var(--font-arcane); font-size: var(--step-1); letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.3s, opacity 0.4s;
}
.hero__now-title:hover { color: var(--starlight); }
.hero__now-title.is-swapping { opacity: 0; }
.hero__dots { display: flex; align-items: center; gap: 0.5rem; }
.hero__dot {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  border: 0; background: none; padding: 0;
}
.hero__dot::before {
  content: ''; position: absolute; left: 0.35rem; right: 0.35rem; top: 50%; height: 2px;
  background: rgb(255 255 255 / 0.22); border-radius: 2px;
}
.hero__dot::after {
  content: ''; position: absolute; left: 0.35rem; right: 0.35rem; top: 50%; height: 2px;
  background: var(--spectral); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
}
.hero__dot[aria-current='true']::after { animation: dot-progress var(--slide-ms, 7000ms) linear forwards; }
.hero[data-paused] .hero__dot[aria-current='true']::after { animation: none; transform: scaleX(1); }
@keyframes dot-progress { to { transform: scaleX(1); } }
.hero__pause {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.18); border-radius: 50%;
  background: rgb(9 12 18 / 0.4);
}
.hero__pause .icon { width: 0.9rem; height: 0.9rem; }
.hero__pause[aria-pressed='true'] { border-color: var(--spectral); color: var(--spectral); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem;
  width: 1.5rem; height: 2.4rem; translate: -50% 0;
  border: 1.5px solid rgb(255 255 255 / 0.35); border-radius: 99px;
  display: none;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 0.45rem;
  width: 3px; height: 0.5rem; translate: -50% 0;
  border-radius: 3px; background: var(--spectral);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(0.75rem); } 100% { opacity: 0; } }
@media (min-width: 900px) and (min-height: 760px) {
  .hero:not(:has(.hero__now)) .scroll-cue { display: block; }
}

/* 6. Thread rail (desktop motif) ------------------------------------------ */
.thread-rail { display: none; }
@media (min-width: 1280px) {
  .js .thread-rail {
    display: block;
    position: fixed; z-index: 40;
    left: max(1rem, calc((100vw - var(--max)) / 2 - 2.5rem));
    top: 22vh; bottom: 22vh; width: 12px;
    pointer-events: none;
    opacity: 0; transition: opacity 0.6s;
  }
  .js .thread-rail.is-visible { opacity: 1; }
}
.thread-rail__line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; translate: -50% 0;
  background: rgb(var(--spectral-rgb) / 0.15);
}
.thread-rail__fill {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--starlight), var(--spectral) 50%, var(--nebula));
  transform-origin: top; transform: scaleY(var(--progress, 0));
  box-shadow: 0 0 10px rgb(var(--spectral-rgb) / 0.6);
}
.thread-rail__node {
  position: absolute; left: 50%;
  width: 7px; height: 7px; translate: -50% -50%;
  border-radius: 50%;
  background: var(--ink-0);
  border: 1px solid rgb(var(--spectral-rgb) / 0.45);
  transition: background 0.4s, box-shadow 0.4s, scale 0.4s var(--ease-out);
}
.thread-rail__node.is-passed { background: var(--spectral); }
.thread-rail__node.is-active { background: var(--starlight); scale: 1.6; box-shadow: 0 0 12px 2px rgb(var(--starlight-rgb) / 0.6); }
.thread-rail__node:nth-child(2) { top: 0%; }
.thread-rail__node:nth-child(3) { top: 25%; }
.thread-rail__node:nth-child(4) { top: 50%; }
.thread-rail__node:nth-child(5) { top: 75%; }
.thread-rail__node:nth-child(6) { top: 100%; }

/* 7. Projects ---------------------------------------------------------------- */
.projects { padding-top: clamp(4rem, 2rem + 6vw, 7rem); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.6rem; padding: 0.4rem 1rem;
  border: 1px solid var(--line); border-radius: 99px;
  background: rgb(255 255 255 / 0.02);
  font-size: 0.88rem; font-weight: 600; color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-pressed='true'] { color: #08101f; background: var(--spectral); border-color: var(--spectral); }
.filter__count { font-size: 0.72rem; opacity: 0.65; font-variant-numeric: tabular-nums; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
}
@media (min-width: 760px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card.is-wide { grid-column: 1 / -1; }
  .project-card.is-wide .project-card__inner { display: grid; grid-template-columns: 1.35fr 1fr; }
  .project-card.is-wide .project-card__media { aspect-ratio: auto; min-height: 100%; }
}
.project-card[hidden] { display: none; }

.project-card__inner {
  --mx: 50%; --my: 30%;
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.project-card__inner::before {
  /* light that follows the pointer */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.project-card__inner:hover,
.project-card__inner:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  transform: translateY(-4px);
}
.project-card__inner:hover::before { opacity: 1; }

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-3);
}
.project-card__img, .project-card__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.8s var(--ease-in-out), filter 0.6s;
  transform: scale(1.02) translate3d(var(--px, 0), var(--py, 0), 0);
}
.project-card__img--alt, .project-card__video { opacity: 0; }
.project-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(5 7 10 / 0.7));
  pointer-events: none;
}
@media (hover: hover) {
  .project-card__inner:hover .project-card__img { transform: scale(1.07) translate3d(var(--px, 0), var(--py, 0), 0); }
  .project-card__inner:hover .project-card__img--alt { opacity: 1; }
  .project-card__inner:hover .project-card__video.is-ready { opacity: 1; }
}
.project-card__badges { position: absolute; left: 1rem; top: 1rem; z-index: 2; display: flex; gap: 0.4rem; }
.project-card__index {
  position: absolute; right: 1.1rem; bottom: 0.6rem; z-index: 2;
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1;
  color: rgb(255 255 255 / 0.12);
  transition: color 0.4s;
}
.project-card__inner:hover .project-card__index { color: color-mix(in srgb, var(--accent) 60%, transparent); }

.status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  background: rgb(5 7 10 / 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.status--playable::before, .status--prototype::before {
  background: #7fe0a0; box-shadow: 0 0 0 0 rgb(127 224 160 / 0.6);
  animation: live 2.4s infinite;
}
.status--in-development::before { background: var(--ember); }
.status--concept::before { background: var(--nebula); }
@keyframes live { 70% { box-shadow: 0 0 0 6px rgb(127 224 160 / 0); } 100% { box-shadow: 0 0 0 0 rgb(127 224 160 / 0); } }

.project-card__body {
  position: relative;
  display: flex; flex-direction: column; gap: 0.75rem;
  flex: 1;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.project-card.is-wide .project-card__body { justify-content: center; }
.project-card__genre { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.project-card__title { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: 0.03em; }
.project-card__link { text-decoration: none; }
.project-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.project-card__link:focus-visible { outline: none; }
.project-card__link:focus-visible::after { outline: 2px solid var(--starlight); outline-offset: -4px; border-radius: var(--radius); }
.project-card__desc { color: var(--text-dim); }
.project-card__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.project-card__actions .btn--text { margin-left: auto; }

.projects__more {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 1rem;
  color: var(--text-faint); text-align: center; font-size: 0.95rem;
}
.projects__more a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--spectral); font-weight: 600; }

/* 8. Vision ---------------------------------------------------------------- */
.vision {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 3rem + 10vw, 11rem);
}
.vision__bg { position: absolute; inset: -12% 0; z-index: -2; }
.vision__img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; filter: saturate(0.9); }
.vision::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--ink-0) 0%, rgb(5 7 10 / 0.35) 18%, rgb(5 7 10 / 0.6) 55%, rgb(5 7 10 / 0.8) 80%, var(--ink-0) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgb(5 7 10 / 0.6) 80%);
}
.vision__inner { display: grid; justify-items: center; text-align: center; }
.vision__head { max-width: 50rem; }
.vision__head .eyebrow::after {
  content: ''; width: 2.25rem; height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
}
.vision__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  letter-spacing: 0.06em;
  margin: 1.2rem 0 1rem;
  background: var(--grad-arcane);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 30px rgb(var(--nebula-rgb) / 0.35));
}
.vision__motto { font-family: var(--font-serif); font-style: italic; font-size: var(--step-2); color: var(--text); opacity: 0.9; }

.vision__copy {
  max-width: 40rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  display: grid; gap: 1.1rem;
  font-size: var(--step-1);
  color: rgb(236 229 214 / 0.86);
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.8);
}
.vision__question { font-family: var(--font-serif); font-style: italic; font-size: var(--step-3); line-height: 1.2; color: var(--starlight); margin-bottom: 0.5rem; }

.lifeline {
  position: relative;
  width: 100%; max-width: 64rem;
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
  --draw: 1;
}
.lifeline__track { position: relative; height: 7rem; }
.lifeline__svg { width: 100%; height: 100%; overflow: visible; }
.lifeline__path {
  fill: none; stroke: var(--spectral); stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: var(--draw);
  filter: drop-shadow(0 0 6px rgb(var(--spectral-rgb) / 0.7));
  transition: stroke-dashoffset 2.6s var(--ease-in-out);
  vector-effect: non-scaling-stroke;
}
.lifeline.is-in { --draw: 0; }
.no-js .lifeline { --draw: 0; }
.lifeline__soul {
  position: absolute; top: 0; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: #f8f0ff;
  box-shadow: 0 0 10px 3px rgb(var(--starlight-rgb) / 0.9), 0 0 30px 8px rgb(var(--spectral-rgb) / 0.4);
  offset-path: none;
  opacity: 0;
}
.lifeline__eras {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.lifeline__eras li { position: relative; --y: 50%; }
.lifeline__node {
  position: absolute; left: 50%; top: var(--y, 50%);
  width: 12px; height: 12px; translate: -50% -50%; rotate: 45deg;
  border: 1px solid var(--spectral); background: var(--ink-0);
  transition: background 0.6s, box-shadow 0.6s;
}
.lifeline__eras li.is-lit .lifeline__node { background: var(--starlight); box-shadow: 0 0 14px 3px rgb(var(--starlight-rgb) / 0.55); }
.lifeline__era {
  position: absolute; left: 0; right: 0; top: calc(var(--y, 50%) + 1.5rem);
  font-family: var(--font-arcane); font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.95rem); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.6s;
}
.lifeline__eras li.is-lit .lifeline__era { color: var(--text); }
.lifeline figcaption { margin-top: 3.5rem; color: var(--text-faint); font-style: italic; font-family: var(--font-serif); font-size: 1.05rem; }
@media (max-width: 599px) {
  .lifeline__era { font-size: 0.62rem; letter-spacing: 0.06em; }
  .lifeline__eras li:nth-child(even) .lifeline__era { top: auto; bottom: calc(100% - var(--y, 50%) + 1.25rem); }
}

.vision__note {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  max-width: 44rem;
  padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(9 12 18 / 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-dim);
}
.vision__note strong { color: var(--text); font-weight: 600; }
.vision__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.sound-toggle[aria-pressed='true'] { color: var(--starlight); }
.sound-toggle[aria-pressed='true'] .icon { animation: pulse-sound 1.6s ease-in-out infinite; }
@keyframes pulse-sound { 50% { opacity: 0.45; } }

.journey {
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: 100%; max-width: 54rem;
  margin-top: clamp(3.5rem, 2rem + 4vw, 5rem);
  counter-reset: journey;
}
.journey li { position: relative; }
.journey li + li::before {
  content: ''; position: absolute; left: -12%; width: 24%; top: 1.15rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--spectral), transparent);
}
.journey a { display: grid; justify-items: center; gap: 0.25rem; padding: 0.5rem; text-decoration: none; border-radius: var(--radius-sm); }
.journey__step { font-family: var(--font-arcane); font-size: var(--step-1); letter-spacing: 0.08em; color: var(--starlight); transition: color 0.3s; }
.journey__what { font-size: 0.85rem; color: var(--text-faint); }
.journey a:hover .journey__step { color: #fff; }
@media (max-width: 599px) {
  .journey { grid-template-columns: 1fr; gap: 1rem; }
  .journey li + li::before { left: 50%; top: -0.75rem; width: 1px; height: 1rem; background: var(--spectral); }
}

/* 9. Building Aeon ----------------------------------------------------------- */
.channel { background: linear-gradient(180deg, var(--ink-0), var(--ink-1) 30%, var(--ink-1) 75%, var(--ink-0)); }
.channel__intro {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (min-width: 960px) { .channel__intro { grid-template-columns: 1fr 1.05fr; } }
.channel__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 0.95;
  margin: 1rem 0 1rem;
  background: linear-gradient(180deg, #f6eadb 5%, var(--spectral) 60%, var(--nebula) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.channel__strap { font-family: var(--font-serif); font-style: italic; font-size: var(--step-2); color: var(--text); max-width: 26rem; line-height: 1.3; }
.channel__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.channel__copy { display: grid; gap: 1.1rem; color: var(--text-dim); font-size: var(--step-1); padding-top: 0.75rem; }
.channel__pull {
  margin-top: 0.5rem; padding-left: 1.25rem;
  border-left: 2px solid var(--spectral);
  color: var(--text);
}

.video-grid { display: grid; gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.video-card { display: flex; flex-direction: column; gap: 0.85rem; }
.video-card__body { display: grid; gap: 0.35rem; }
.video-card__project {
  justify-self: start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.video-card__project:hover { text-decoration: underline; }
.video-card__title { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.video-card__title a { text-decoration: none; }
.video-card__title a:hover { color: var(--starlight); }
.video-card__desc { font-size: 0.9rem; color: var(--text-faint); }

.yt {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), filter 0.5s; filter: saturate(0.9) brightness(0.85); }
.yt:hover { border-color: var(--line-strong); }
.yt:hover img { transform: scale(1.04); filter: none; }
.yt__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: rgb(5 7 10 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.4);
  backdrop-filter: blur(4px);
  transition: background 0.3s, scale 0.4s var(--ease-out), border-color 0.3s;
}
.yt__play .icon { width: 1.4rem; height: 1.4rem; margin-left: 3px; }
.yt:hover .yt__play { background: var(--youtube); border-color: var(--youtube); scale: 1.08; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt--feature { border-radius: var(--radius); }
.yt--feature .yt__play { width: 5rem; height: 5rem; }

/* 10. About + footer --------------------------------------------------------- */
.about__inner {
  display: grid; gap: 1.5rem 4rem;
}
@media (min-width: 900px) { .about__inner { grid-template-columns: 0.8fr 1.2fr; } }
.about .section-title { font-size: var(--step-3); }
.about__copy { display: grid; gap: 1.1rem; color: var(--text-dim); font-size: var(--step-1); max-width: 40rem; }
.about__lead { font-family: var(--font-serif); font-style: italic; font-size: var(--step-2); line-height: 1.35; color: var(--text); }

.site-footer { padding-bottom: 2rem; }
.site-footer__inner {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) var(--gutter) 2rem;
  display: grid; gap: 2.5rem;
}
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer__tagline { margin-top: 1rem; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--text-dim); }
.site-footer__heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--spectral); margin-bottom: 0.9rem; }
.site-footer__nav ul { display: grid; gap: 0.35rem; list-style: none; padding: 0; }
.site-footer__nav a { display: inline-flex; align-items: center; gap: 0.45rem; padding-block: 0.2rem; color: var(--text-dim); text-decoration: none; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__legal { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); font-size: 0.82rem; color: var(--text-faint); }

/* 11. Project pages ---------------------------------------------------------- */
.p-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 56rem);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.p-hero__media { position: absolute; inset: 0 0 -10%; z-index: -2; }
.p-hero__img { width: 100%; height: 100%; object-fit: cover; }
.p-hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(5 7 10 / 0.6) 0%, transparent 25%, rgb(5 7 10 / 0.35) 55%, var(--ink-0) 100%),
    linear-gradient(90deg, rgb(5 7 10 / 0.75), transparent 65%);
}
.crumbs a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text-dim); text-decoration: none;
}
.crumbs a:hover { color: var(--text); }
.p-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.p-hero__title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  letter-spacing: 0.03em;
  margin: 0.75rem 0 0.5rem;
  text-shadow: 0 4px 40px rgb(0 0 0 / 0.6);
}
.p-hero__subtitle { font-family: var(--font-serif); font-style: italic; font-size: var(--step-2); color: var(--text); opacity: 0.9; }
.p-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.p-body {
  display: grid; gap: 2.5rem 4rem;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}
@media (min-width: 960px) { .p-body { grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr); align-items: start; } }
.p-story { display: grid; gap: 1.1rem; color: var(--text-dim); font-size: var(--step-1); max-width: 44rem; }
.p-story__lead { color: var(--text); font-size: var(--step-2); line-height: 1.45; font-family: var(--font-serif); font-style: italic; }
.p-subhead { margin-top: 1.5rem; font-family: var(--font-arcane); font-size: var(--step-1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.highlights { display: grid; gap: 0.6rem; list-style: none; padding: 0; }
@media (min-width: 600px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li {
  position: relative; padding: 0.85rem 1rem 0.85rem 2.4rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.015);
  font-size: var(--step-0); color: var(--text);
}
.highlights li::before {
  content: ''; position: absolute; left: 1rem; top: 1.35rem;
  width: 7px; height: 7px; rotate: 45deg;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.p-facts {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
}
.p-facts dl { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.p-facts dl > div { display: grid; gap: 0.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.p-facts dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.p-facts dd { color: var(--text); }
.p-facts dd a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.p-facts dd a:hover { text-decoration: underline; }

.p-section { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.p-section__title {
  font-family: var(--font-display); font-size: var(--step-3); letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.p-section__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.p-section__note { margin-top: 0.85rem; font-size: 0.85rem; color: var(--text-faint); }
.p-section__note a { color: var(--text-dim); display: inline-flex; align-items: center; gap: 0.3rem; }

.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery--1, .gallery--3 > li:first-child { grid-column: 1 / -1; }
}
.gallery__item {
  display: block; overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.04); }

.video-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }

.p-next { padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(4rem, 3rem + 3vw, 6rem); }
.p-next__link {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  min-height: 18rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
}
.p-next__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.p-next__link::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(5 7 10 / 0.9), rgb(5 7 10 / 0.35)); }
.p-next__link:hover .p-next__img { transform: scale(1.05); }
.p-next__link:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.p-next__text { display: grid; gap: 0.4rem; max-width: 34rem; }
.p-next__text .eyebrow { color: var(--accent); }
.p-next__title { font-family: var(--font-display); font-size: var(--step-3); }
.p-next__desc { color: var(--text-dim); }
.p-next__arrow { width: 2.5rem; height: 2.5rem; color: var(--accent); transition: transform 0.4s var(--ease-out); }
.p-next__link:hover .p-next__arrow { transform: translateX(6px); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  padding: 0; border: 0;
  background: rgb(3 4 6 / 0.94);
  color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(3 4 6 / 0.7); }
.lightbox__img { max-width: min(94vw, 1700px); max-height: 82vh; width: auto; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgb(0 0 0 / 0.6); }
.lightbox__caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; padding-inline: 4rem; text-align: center; color: var(--text-dim); font-size: 0.9rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgb(9 12 18 / 0.7);
}
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--spectral); color: var(--starlight); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }

.lost { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.lost__inner { display: grid; justify-items: center; gap: 0.5rem; }
.lost .btn { margin-top: 1.5rem; }

/* 12. Motion ----------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__slide.is-active .hero__img { animation: none; transform: none; }
  .lifeline__soul { display: none; }
  .project-card__inner:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Small-screen refinements --------------------------------------------------- */
@media (max-width: 599px) {
  .hero__now-label { flex: 1; min-width: 0; }
  .hero__now-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero__dot { width: 1.6rem; }
  .hero__dot::before, .hero__dot::after { left: 0.2rem; right: 0.2rem; }

  /* Featured videos become a swipeable row instead of a long column. */
  .channel .video-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.75rem;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .channel .video-card { scroll-snap-align: start; }
}
.yt--feature { max-width: 64rem; }

/* Contact (in About) ----------------------------------------------------------- */
.contact { margin-top: 1.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.contact__title { font-family: var(--font-arcane); font-size: var(--step-1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.contact__list { display: grid; gap: 0.75rem; }
@media (min-width: 600px) { .contact__list { grid-template-columns: 1fr 1fr; } }
.contact__item {
  display: flex; align-items: center; gap: 0.9rem;
  height: 100%; padding: 0.95rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.02);
  text-decoration: none; color: var(--text);
  transition: border-color 0.25s, background 0.25s;
}
.contact__item .icon { width: 1.4rem; height: 1.4rem; color: var(--spectral); }
.contact__item > span { display: grid; min-width: 0; }
.contact__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.contact__value { font-size: 0.98rem; font-weight: 600; overflow-wrap: anywhere; }
a.contact__item:hover { border-color: var(--spectral); background: rgb(var(--spectral-rgb) / 0.06); }
.contact__item--soon { border-style: dashed; color: var(--text-dim); }
.contact__item--soon .icon { color: var(--text-faint); }
.contact__item--soon .contact__value { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.1rem; }
.site-footer__soon { display: inline-flex; align-items: center; gap: 0.45rem; padding-block: 0.2rem; color: var(--text-faint); }
.site-footer__soon em { font-family: var(--font-serif); font-size: 1.05em; }
