  :root {
    --void: #07060f;
    --abyss: #030208;
    --deep-blue: #1c2a66;
    --cosmic-blue: #3f78e0;
    --ember: #e0603f;
    --gold: #e8b44a;
    --starlight: #f3eee2;
    --dust: #9a96b3;

    --display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.375rem;
    --step-2: 2rem;
    --step-3: clamp(2.5rem, 5vw, 3.5rem);
    --step-hero: clamp(4rem, 13vw, 11rem);

    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --measure: 34rem;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    background: var(--void);
    color: var(--starlight);
    font-family: var(--body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  img { max-width: 100%; display: block; }
  a { color: var(--gold); text-underline-offset: 0.2em; }
  a:hover { color: var(--starlight); }

  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .skip-link {
    position: absolute; left: 1rem; top: -4rem;
    background: var(--gold); color: var(--void);
    padding: 0.5rem 1rem; z-index: 100; text-decoration: none; font-weight: 600;
  }
  .skip-link:focus { top: 1rem; }

  /* ---------- Navigation ---------- */
  .site-nav {
    position: absolute; inset: 0 0 auto 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem var(--gutter);
  }
  .site-nav .mark {
    font-family: var(--display); font-size: var(--step-1);
    color: var(--starlight); text-decoration: none; letter-spacing: 0.01em;
  }
  .site-nav ul { list-style: none; display: flex; gap: clamp(1rem, 3vw, 2.25rem); margin: 0; padding: 0; }
  .site-nav ul a { color: var(--starlight); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
  .site-nav ul a:hover { color: var(--gold); }

  /* ---------- Hero: deep space and the emblem ---------- */
  .hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 4rem);
    padding: 6rem var(--gutter) 4rem;
    overflow: hidden;
    background:
      radial-gradient(ellipse 45% 40% at 78% 38%, rgba(232, 180, 74, 0.22), transparent 70%),
      radial-gradient(ellipse 35% 30% at 92% 15%, rgba(224, 96, 63, 0.22), transparent 70%),
      radial-gradient(ellipse 40% 35% at 62% 80%, rgba(63, 120, 224, 0.22), transparent 70%),
      radial-gradient(ellipse 60% 50% at 10% 100%, rgba(28, 42, 102, 0.45), transparent 70%),
      var(--abyss);
  }
  .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-text { position: relative; z-index: 2; pointer-events: none; }
  .hero h1 {
    font-family: var(--display); font-weight: 400;
    font-size: clamp(3.5rem, 9.5vw, 8.5rem); line-height: 0.9;
    letter-spacing: -0.02em; margin: 0;
  }
  .hero h1 span { display: block; }
  .hero h1 span:last-child {
    padding-left: 0.5em;
    background: linear-gradient(100deg, var(--ember) 0%, var(--gold) 40%, #f6d98c 60%, var(--cosmic-blue) 115%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero p {
    margin: 1.75rem 0 0; max-width: 28rem;
    font-size: var(--step-1); line-height: 1.45; color: var(--starlight);
  }
  .hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; pointer-events: auto; }

  .emblem-wrap { position: relative; z-index: 2; display: grid; place-items: center; }
  .emblem { width: min(100%, 34rem); height: auto; overflow: visible; filter: drop-shadow(0 0 60px rgba(232, 180, 74, 0.25)); }
  .emblem .lid { transform-origin: 200px 214px; transform-box: view-box; }
  .emblem .pupil { transition: transform 0.12s ease-out; }
  .emblem.opening .lid { animation: eye-open 1.6s cubic-bezier(.2,.8,.2,1) 0.4s both; }
  @keyframes eye-open { from { transform: scaleY(0.04); } to { transform: scaleY(1); } }
  .emblem.opening .halo { animation: halo-in 2.2s ease-out both; }
  @keyframes halo-in { from { opacity: 0; transform: scale(0.92); } }
  .emblem .halo { transform-origin: 200px 200px; transform-box: view-box; }
  @media (prefers-reduced-motion: reduce) {
    .emblem.opening .lid, .emblem.opening .halo { animation: none; }
    .emblem .pupil { transition: none; }
  }

  .btn {
    display: inline-block; padding: 0.8rem 1.4rem;
    font: 600 var(--step--1) / 1 var(--body);
    text-decoration: none; border-radius: 999px;
    border: 1px solid var(--gold);
    transition: background-color 0.2s, color 0.2s;
  }
  .btn-solid { background: var(--gold); color: var(--void); }
  .btn-solid:hover { background: var(--starlight); border-color: var(--starlight); color: var(--void); }
  .btn-line { color: var(--gold); }
  .btn-line:hover { background: rgba(232, 180, 74, 0.12); color: var(--starlight); }

  /* ---------- Sections ---------- */
  .section { padding: clamp(4.5rem, 12vw, 9rem) var(--gutter); }
  .section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
  .section-head h2 {
    font-family: var(--display); font-weight: 400; font-size: var(--step-3);
    line-height: 1.05; margin: 0; letter-spacing: -0.01em;
  }
  .section-head p { margin: 0; max-width: 26rem; color: var(--dust); }

  /* ---------- Gallery ---------- */
  .filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
  .filters button {
    font: 500 var(--step--1) / 1 var(--body);
    color: var(--starlight); background: transparent;
    border: 1px solid rgba(243, 238, 226, 0.25);
    padding: 0.6rem 1.1rem; border-radius: 999px; cursor: pointer;
  }
  .filters button:hover { border-color: var(--starlight); }
  .filters button[aria-pressed="true"] { background: var(--starlight); color: var(--void); border-color: var(--starlight); }

  .gallery { columns: 3 18rem; column-gap: 1.25rem; }
  .piece { break-inside: avoid; margin: 0 0 1.25rem; }
  .piece[hidden] { display: none; }
  .piece button {
    display: block; width: 100%; padding: 0; border: 0; background: none;
    cursor: zoom-in; text-align: left; color: inherit; font: inherit;
  }
  .piece .frame { overflow: hidden; background: var(--deep-blue); }
  .piece img, .piece svg { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
  .piece button:hover img, .piece button:hover svg,
  .piece button:focus-visible img, .piece button:focus-visible svg { transform: scale(1.03); }
  .piece figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0 0; }
  .piece .title { font-family: var(--display); font-size: var(--step-1); line-height: 1.2; }
  .piece .kind { color: var(--dust); font-size: var(--step--1); white-space: nowrap; padding-top: 0.25rem; }

  /* ---------- Lightbox ---------- */
  dialog.lightbox {
    border: 0; padding: 0; max-width: min(92vw, 70rem); width: 100%;
    background: var(--abyss); color: var(--starlight);
  }
  dialog.lightbox::backdrop { background: rgba(3, 2, 8, 0.92); }
  dialog.lightbox[open] { animation: open 0.25s ease-out; }
  @keyframes open { from { opacity: 0; transform: scale(0.98); } }
  .lightbox-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); }
  .lightbox-art { background: var(--void); display: grid; place-items: center; }
  .lightbox-art img, .lightbox-art svg { max-height: 82vh; width: auto; max-width: 100%; }
  .lightbox-text { padding: 2rem; position: relative; }
  .lightbox-text h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; margin: 0 0 0.5rem; }
  .lightbox-text .kind { color: var(--ember); margin: 0 0 1.25rem; font-size: var(--step--1); }
  .lightbox-text p { margin: 0 0 1rem; }
  .lightbox-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: 1px solid rgba(243, 238, 226, 0.3); color: var(--starlight);
    width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.25rem; cursor: pointer; line-height: 1;
  }
  .lightbox-close:hover { border-color: var(--starlight); }
  @media (prefers-reduced-motion: reduce) {
    dialog.lightbox[open] { animation: none; }
    .piece img, .piece svg { transition: none; }
  }

  /* ---------- Stories ---------- */
  .stories { background: var(--abyss); }
  .story-feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
  .story-screen {
    aspect-ratio: 16 / 9; position: relative; overflow: hidden;
    background:
      radial-gradient(circle at 30% 40%, rgba(224, 96, 63, 0.35), transparent 55%),
      radial-gradient(circle at 75% 70%, rgba(232, 180, 74, 0.25), transparent 50%),
      var(--deep-blue);
    display: grid; place-items: center;
  }
  .story-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .story-screen .soon { font-family: var(--display); font-size: var(--step-2); text-align: center; padding: 1rem; }
  .story-copy h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; margin: 0 0 1rem; }
  .story-copy p { margin: 0 0 1.5rem; max-width: var(--measure); color: var(--starlight); }

  /* ---------- Music ---------- */
  .music-player { max-width: 52rem; }
  .music-player iframe { width: 100%; height: 400px; border: 0; display: block; }
  .music-empty {
    display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(243, 238, 226, 0.14);
    background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(224, 96, 63, 0.18), transparent 70%), var(--abyss);
  }
  .music-empty svg { width: 4.5rem; height: 4.5rem; }
  .music-empty h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; margin: 0 0 0.5rem; }
  .music-empty p { margin: 0 0 1.25rem; max-width: var(--measure); }

  /* ---------- About ---------- */
  .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .about-portrait { aspect-ratio: 4 / 5; background: var(--deep-blue); overflow: hidden; }
  .about-portrait img { width: 100%; height: 100%; object-fit: cover; }
  .about-portrait svg { width: 100%; height: 100%; display: block; }
  .about-copy h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-3); line-height: 1.05; margin: 0 0 2rem; }
  .about-copy p { max-width: var(--measure); margin: 0 0 1.25rem; }
  .about-copy .lede { font-size: var(--step-1); line-height: 1.45; }

  footer {
    padding: 3rem var(--gutter) 2rem;
    border-top: 1px solid rgba(243, 238, 226, 0.12);
    display: grid; gap: 2rem;
  }
  .socials { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; padding: 0; margin: 0; }
  .socials a { color: var(--starlight); font-weight: 500; }
  .socials a:hover { color: var(--gold); }
  .footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--dust); font-size: var(--step--1); }

  /* ---------- Responsive ---------- */
  @media (max-width: 52rem) {
    .lightbox-inner, .story-feature, .about-grid { grid-template-columns: 1fr; }
    .about-portrait { max-width: 22rem; }
    .hero { grid-template-columns: 1fr; padding-top: 5rem; }
    .emblem-wrap { order: -1; }
    .emblem { width: min(80vw, 22rem); }
  }
  @media (max-width: 34rem) {
    .site-nav ul { gap: 1rem; }
    .site-nav ul li:nth-child(n+3) { display: none; }
    .hero h1 span:last-child { padding-left: 0.3em; }
  }
