/* ==========================================================================
   XML - Coming Soon | Swiss-Architectural Monochrome System (Santalarch Ref)
   ========================================================================== */

:root {
  --bg: #f0f0f0;
  --fg: #0f0f0f;
  --muted: rgba(15, 15, 15, 0.44);
  --hairline: rgba(15, 15, 15, 0.1);
  --hairline-strong: rgba(15, 15, 15, 0.28);
  --chamber-bg: #0f0f0f;
  --chamber-fg: #f0f0f0;
  --chamber-muted: rgba(240, 240, 240, 0.56);
  --chamber-hairline: rgba(240, 240, 240, 0.12);
  --error-color: #8f2424;

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --theme-dur: 0.5s;

  --font-swiss: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0f0f0f;
  --fg: #f0f0f0;
  --muted: rgba(240, 240, 240, 0.48);
  --hairline: rgba(240, 240, 240, 0.11);
  --hairline-strong: rgba(240, 240, 240, 0.3);
  --chamber-bg: #f0f0f0;
  --chamber-fg: #0f0f0f;
  --chamber-muted: rgba(15, 15, 15, 0.55);
  --chamber-hairline: rgba(15, 15, 15, 0.12);
  --error-color: #d97373;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  width: 100%;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-swiss);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--theme-dur) var(--ease-out),
    color var(--theme-dur) var(--ease-out);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

body.is-preloading {
  overflow-y: hidden;
  height: 100vh;
}

@media (pointer: fine) and (hover: hover) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor [role="button"] {
    cursor: none;
  }
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Typographic Scale (Santalarch Proportions) ---------- */
.h1 {
  font-size: clamp(2.85rem, 11.8vw, 11.5rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.87;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(2rem, 5.8vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.h4 {
  font-size: clamp(1.32rem, 2.25vw, 2.0625rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.p1 {
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

.c1 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.c2 {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- 8-Column Swiss Architectural Grid ---------- */
.grid-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: clamp(10px, 1.1vw, 16px);
  padding: 0 clamp(14px, 1.5vw, 24px);
}

/* ---------- Santalarch Micro-Interactions ---------- */
.slide-up-button {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
}

.slide-up-button .button-inner {
  display: flex;
  flex-direction: column;
  height: 1.25em;
  line-height: 1.25em;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}

.slide-up-button:hover .button-inner,
a:hover .slide-up-button .button-inner,
button:hover .slide-up-button .button-inner,
a:focus-visible .slide-up-button .button-inner,
button:focus-visible .slide-up-button .button-inner {
  transform: translateY(-100%);
}

.underline-btn {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 2px 0 5px;
  cursor: pointer;
}

.underline-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.5s var(--ease-out);
}

.underline-btn:hover::after,
.underline-btn:focus-visible::after {
  clip-path: inset(0 0 0 100%);
}

/* Masked Word Reveal */
.word-mask {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
}

.word-token {
  display: inline-block;
  transform: translate3d(0, 112%, 0);
  opacity: 0;
  transition: transform 0.85s var(--ease-out), opacity 0.65s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 42ms);
  will-change: transform, opacity;
}

/* ==========================================================================
   PRELOADER (2-Phase Light -> Inverted Dark)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: var(--bg);
  color: var(--fg);
  clip-path: inset(0 0 0% 0);
  transition: background-color 0.55s var(--ease-out),
    color 0.55s var(--ease-out),
    clip-path 0.82s var(--ease-out);
}

.preloader.is-dark {
  background-color: var(--chamber-bg);
  color: var(--chamber-fg);
}

.preloader.is-done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.preloader-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.p-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: currentColor;
  opacity: 0.09;
}

.p-vline-1 {
  left: 12.5%;
}

.p-vline-2 {
  left: 50%;
}

.p-vline-3 {
  left: 62.5%;
}

.p-hline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-color: currentColor;
  opacity: 0.14;
}

.preloader-inner {
  position: relative;
  height: 100%;
  grid-template-rows: 1fr auto;
}

.preloader-midline {
  grid-column: 1 / 9;
  align-self: center;
  position: relative;
  padding-bottom: 24px;
}

.preloader-split {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: clamp(10px, 1.1vw, 16px);
  align-items: center;
  transition: opacity 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}

.preloader-split .p-phrase {
  grid-column: 1 / 5;
}

.preloader-split .p-token:nth-of-type(2) {
  grid-column: 5 / 6;
}

.preloader-split .p-token:nth-of-type(3) {
  grid-column: 6 / 7;
}

.preloader-split .p-token:nth-of-type(4) {
  grid-column: 7 / 9;
  text-align: right;
}

.preloader.is-dark .preloader-split {
  opacity: 0;
  transform: translateY(-10px);
}

.preloader-whole {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 10px);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease-out) 0.12s,
    transform 0.55s var(--ease-out) 0.12s;
}

.preloader.is-dark .preloader-whole {
  opacity: 1;
  transform: translate(-50%, 0);
}

.preloader-footer {
  grid-column: 1 / 9;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: clamp(10px, 1.1vw, 16px);
  align-items: end;
  padding-bottom: clamp(18px, 2.5vh, 28px);
}

.preloader-caption {
  grid-column: 1 / 4;
  opacity: 0.65;
  max-width: 32ch;
}

.preloader-counter {
  grid-column: 4 / 6;
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.preloader-pct {
  font-weight: 500;
}

/* ==========================================================================
   FIXED CHROME (mix-blend-mode: difference directly on body)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  color: #f0f0f0;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

body.is-ready .site-header {
  opacity: 1;
  transform: translateY(0);
}

.header-grid {
  align-items: center;
  height: 40px;
  border-bottom: 1px solid rgba(240, 240, 240, 0.24);
}

.header-col-brand {
  grid-column: 1 / 2;
  display: flex;
  align-items: center;
}

.cross-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 6px 6px 6px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.cross-btn svg {
  transition: transform 0.55s var(--ease-out);
}

.cross-btn:hover svg,
.cross-btn:focus-visible svg {
  transform: rotate(90deg);
}

.cross-btn:focus-visible {
  outline: 1px solid #f0f0f0;
  outline-offset: 2px;
}

.header-nav {
  grid-column: 2 / 9;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  height: 100%;
}

.nav-link {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  pointer-events: auto;
  cursor: pointer;
  justify-self: start;
}

.nav-link[data-section="overview"] {
  grid-column: 1 / 2;
}

.nav-link[data-section="manifesto"] {
  grid-column: 3 / 4;
}

.nav-link[data-section="notify"] {
  grid-column: 5 / 6;
}

.nav-replay {
  grid-column: 7 / 8;
  justify-self: end;
}

/* 1px x 7px Architectural Tick Marks under section nav anchors */
.nav-link[data-section]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 1px;
  height: 7px;
  background-color: rgba(240, 240, 240, 0.65);
}

.link-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background-color: #f0f0f0;
  transform-origin: left center;
  transform: scaleX(0);
}

.nav-link:focus-visible {
  outline: 1px solid #f0f0f0;
  outline-offset: 2px;
}

/* Bottom-Left Polarity Invert Toggle */
.invert-toggle {
  position: fixed;
  left: clamp(14px, 1.5vw, 24px);
  bottom: clamp(16px, 2.2vh, 24px);
  z-index: 20;
  color: #f0f0f0;
  mix-blend-mode: difference;
  appearance: none;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

body.is-ready .invert-toggle {
  opacity: 1;
}

.invert-icon .dot-orbit {
  transform-origin: 7px 7px;
  transition: transform 0.6s var(--ease-out);
}

html[data-theme="dark"] .invert-icon .dot-orbit {
  transform: rotate(-180deg);
}

.invert-label {
  position: relative;
  padding-bottom: 2px;
}

.invert-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.45s var(--ease-out);
}

.invert-toggle:hover .invert-label::after,
.invert-toggle:focus-visible .invert-label::after {
  transform: scaleX(0);
}

.invert-toggle:focus-visible {
  outline: 1px solid #f0f0f0;
  outline-offset: 4px;
}

/* Custom Optical Difference Cursor */
.cursor-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  z-index: 50;
  pointer-events: none;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}

body.cursor-visible .cursor-wrap {
  opacity: 1;
}

.cursor-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  transform: scale(0.15);
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease,
    border-color 0.25s ease;
}

body.cursor-hover .cursor-dot {
  transform: scale(0.55);
  background-color: transparent;
  border: 2px solid #ffffff;
}

body.cursor-logo .cursor-dot {
  transform: scale(0.85);
  background-color: transparent;
  border: 1.5px solid #ffffff;
}

/* ==========================================================================
   ACT 1 - HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 64px 0 56px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-out);
}

.hero.is-revealed .hero-grid {
  clip-path: inset(0 0 0% 0);
}

.hero-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--hairline);
  transition: background-color var(--theme-dur) var(--ease-out);
}

.hero-vline-left {
  left: 12.5%;
}

.hero-vline-right {
  left: 62.5%;
}

.hero-diag-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-diag-svg line {
  stroke: var(--hairline);
  stroke-width: 1;
  transition: stroke var(--theme-dur) var(--ease-out);
}

.hero-layout {
  position: relative;
  z-index: 2;
  align-items: center;
  min-height: calc(100svh - 140px);
}

.hero-logo-col {
  grid-column: 2 / 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-right: clamp(12px, 3vw, 48px);
}

.logo-stage {
  width: clamp(230px, 28vw, 390px);
  perspective: 920px;
  outline: none;
  user-select: none;
}

.logo-stage:focus-visible {
  outline: 1px solid var(--hairline-strong);
  outline-offset: 12px;
}

#xml-logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
}

#visual-square-rect,
#letters-fg use,
#letters-inv use {
  transition: fill var(--theme-dur) var(--ease-out);
}

#logo-guides {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

#logo-guides .guide-line {
  stroke: var(--hairline-strong);
  stroke-width: 0.65;
  stroke-dasharray: 2 3;
}

.hero-micro {
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s var(--ease-out) 0.35s,
    transform 0.7s var(--ease-out) 0.35s,
    color var(--theme-dur) var(--ease-out);
}

.hero.is-revealed .hero-micro {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy-col {
  grid-column: 6 / 9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.8vh, 28px);
}

.hero-statement {
  max-width: 24ch;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25em;
  row-gap: 0.06em;
}

.hero.is-revealed .hero-statement .word-token {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.75s var(--ease-out) 0.35s,
    transform 0.75s var(--ease-out) 0.35s;
}

.hero.is-revealed .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background-color: var(--fg);
  color: var(--bg);
  transition: background-color var(--theme-dur) var(--ease-out),
    color var(--theme-dur) var(--ease-out);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--bg);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.scroll-indicator {
  position: absolute;
  left: 62.5%;
  bottom: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.7s var(--ease-out) 0.45s,
    color var(--theme-dur) var(--ease-out);
}

.hero.is-revealed .scroll-indicator {
  opacity: 1;
}

.scroll-line {
  width: 1px;
  height: clamp(40px, 6.5vh, 68px);
  background: linear-gradient(180deg, var(--fg), transparent);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out) 0.55s;
}

.hero.is-revealed .scroll-line {
  transform: scaleY(1);
}

/* ==========================================================================
   ACT 2 - STICKY DARK PERSPECTIVE CHAMBER (#manifesto)
   ========================================================================== */
.manifesto {
  position: relative;
  height: 240vh;
}

.manifesto-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.manifesto-curtain {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--chamber-bg);
  color: var(--chamber-fg);
  clip-path: inset(0 34% 0 34%);
  will-change: clip-path;
  transition: background-color var(--theme-dur) var(--ease-out),
    color var(--theme-dur) var(--ease-out);
}

#chamber-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.chamber-perimeter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(14px, 2vw, 32px);
}

.perim-word {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.065;
  writing-mode: vertical-rl;
  user-select: none;
}

.perim-left {
  transform: rotate(180deg);
}

.chamber-stage {
  position: relative;
  z-index: 2;
  height: 100%;
  align-items: center;
}

.chamber-content {
  grid-column: 2 / 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.chamber-beats {
  position: relative;
  width: 100%;
  min-height: clamp(180px, 26vh, 250px);
}

.chamber-beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  pointer-events: none;
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.chamber-beat.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.chamber-title {
  max-width: 14ch;
}

.chamber-desc {
  color: var(--chamber-muted);
  max-width: 44ch;
}

.chamber-progress-track {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  bottom: clamp(24px, 3.5vh, 40px);
  height: 1px;
  background-color: var(--chamber-hairline);
}

.chamber-progress-fill {
  width: 100%;
  height: 100%;
  background-color: var(--chamber-fg);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ==========================================================================
   ACT 3 - CLOSING LIGHT GALLERY & EARLY ACCESS (#notify)
   ========================================================================== */
.closing {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(72px, 10vh, 112px);
  border-top: 1px solid var(--hairline);
  transition: border-color var(--theme-dur) var(--ease-out);
}

.closing-top {
  align-items: center;
  padding-bottom: clamp(24px, 4vh, 44px);
}

.closing-cross-wrap {
  grid-column: 1 / 3;
}

.closing-cross {
  display: block;
  will-change: transform;
}

.closing-headline-wrap {
  padding-top: clamp(16px, 3vh, 36px);
  padding-bottom: clamp(36px, 6vh, 72px);
}

.closing-headline {
  grid-column: 1 / 9;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.22em;
  row-gap: 0.08em;
}

.closing.is-inview .closing-headline .word-token {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.closing-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(28px, 4.5vh, 48px) 0 clamp(60px, 8vh, 84px);
  transition: border-color var(--theme-dur) var(--ease-out);
}

.footer-grid {
  row-gap: 36px;
}

.footer-label {
  display: block;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col-access {
  grid-column: 1 / 5;
}

.footer-col-status {
  grid-column: 5 / 7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-meta {
  color: var(--fg);
}

.footer-note {
  margin-top: 10px;
  color: var(--muted);
  max-width: 28ch;
}

.footer-col-index {
  grid-column: 7 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-action {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  padding: 2px 0;
}

.footer-brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}

.footer-mini-logo {
  color: var(--fg);
  flex-shrink: 0;
}

/* Waitlist Email Form */
.notify-box {
  max-width: 440px;
}

.notify-form {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline-strong);
  transition: border-color var(--theme-dur) var(--ease-out);
}

.notify-form:focus-within {
  border-bottom-color: var(--fg);
}

.notify-form[hidden],
.notify-confirm[hidden] {
  display: none;
}

.notify-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--fg);
  padding: 4px 0;
}

.notify-input::placeholder {
  color: var(--muted);
}

.notify-error {
  margin-top: 10px;
  min-height: 16px;
  color: var(--error-color);
}

.notify-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .hero-logo-col {
    grid-column: 1 / 5;
  }

  .hero-copy-col {
    grid-column: 5 / 9;
  }

  .hero-vline-right,
  .scroll-indicator {
    left: 50%;
  }

  .chamber-content {
    grid-column: 1 / 9;
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 10px;
    padding: 0 16px;
  }

  .preloader-split {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .preloader-split .p-phrase {
    grid-column: 1 / 5;
    margin-bottom: 10px;
  }

  .preloader-split .p-token:nth-of-type(2) {
    grid-column: 1 / 2;
  }

  .preloader-split .p-token:nth-of-type(3) {
    grid-column: 2 / 3;
  }

  .preloader-split .p-token:nth-of-type(4) {
    grid-column: 3 / 5;
  }

  .preloader-footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 14px;
  }

  .preloader-caption {
    grid-column: 1 / 5;
  }

  .preloader-counter {
    grid-column: 1 / 5;
    justify-content: flex-start;
  }

  .p-vline-2,
  .p-vline-3 {
    display: none;
  }

  /* Header mobile layout: 1 col brand + 3 col nav */
  .header-nav {
    grid-column: 2 / 5;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-link[data-section="overview"] {
    grid-column: 1 / 2;
  }

  .nav-link[data-section="manifesto"] {
    display: none;
  }

  .nav-link[data-section="notify"] {
    grid-column: 2 / 3;
  }

  .nav-replay {
    grid-column: 3 / 4;
  }

  /* Hero mobile stacking */
  .hero {
    padding: 68px 0 64px;
  }

  .hero-layout {
    row-gap: 28px;
    align-content: center;
  }

  .hero-vline-left {
    left: 16px;
  }

  .hero-vline-right,
  .hero-diag-svg {
    display: none;
  }

  .hero-logo-col {
    grid-column: 1 / 5;
    padding-right: 0;
  }

  .logo-stage {
    width: clamp(190px, 56vw, 250px);
  }

  .hero-copy-col {
    grid-column: 1 / 5;
    gap: 18px;
  }

  .scroll-indicator {
    left: auto;
    right: 16px;
    align-items: flex-end;
    padding-left: 0;
  }

  .scroll-line {
    height: 36px;
  }

  /* Manifesto mobile */
  .perim-word {
    font-size: 2rem;
    opacity: 0.05;
  }

  .chamber-content {
    grid-column: 1 / 5;
  }

  .chamber-progress-track {
    left: 16px;
    right: 16px;
  }

  /* Closing mobile */
  .closing-cross-wrap {
    grid-column: 1 / 3;
  }

  .closing-headline {
    grid-column: 1 / 5;
    font-size: clamp(2.6rem, 13.5vw, 4.2rem);
  }

  .footer-col-access,
  .footer-col-status,
  .footer-col-index {
    grid-column: 1 / 5;
  }
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .preloader {
    display: none !important;
  }

  .site-header,
  .invert-toggle,
  .hero-micro,
  .hero-actions,
  .scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-grid {
    clip-path: inset(0) !important;
    transition: none !important;
  }

  .scroll-line {
    transform: scaleY(1) !important;
    transition: none !important;
  }

  .word-token {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .status-dot {
    animation: none !important;
  }

  .manifesto {
    height: auto;
  }

  .manifesto-sticky {
    position: relative;
    height: auto;
  }

  .manifesto-curtain {
    clip-path: none !important;
    padding: 80px 0;
  }

  .chamber-beats {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .chamber-beat {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }
}
