/* ==========================================================================
   HOUSE 10 — ARCHITECTURE IN MOTION
   Awwwards-Level Architectural Monograph & Cinematic 3D Experience
   Art Direction: Swiss Minimal Grid, Asymmetric Spatial Typography, 3D WebGL
   ========================================================================== */

:root {
  --bg-deep: #080b0a;
  --bg-subtle: #0d1210;
  --text-main: #f5f2e9;
  --text-muted: rgba(245, 242, 233, 0.62);
  --text-dim: rgba(245, 242, 233, 0.32);
  --hairline: rgba(245, 242, 233, 0.12);
  --hairline-active: rgba(245, 242, 233, 0.38);
  --accent-gold: #c5a059;
  --accent-sand: #d8cfc4;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "Space Grotesk", monospace, sans-serif;

  --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* Lenis smooth scroll */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* Typography Utility Classes */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-gold);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Minimal Architectural Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  transition: opacity 0.8s var(--ease-cinematic), visibility 0.8s;
}

body:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  width: 100%;
  max-width: 540px;
}

.loader__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.loader__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.loader__counter {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-gold);
}

.loader__track {
  width: 100%;
  height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}

.loader__line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--text-main);
  transition: width 0.15s ease-out;
}

/* --------------------------------------------------------------------------
   Architectural Editorial Masthead
   -------------------------------------------------------------------------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(8, 11, 10, 0.8) 0%, transparent 100%);
  border-bottom: 1px solid rgba(245, 242, 233, 0.05);
  transition: transform 0.4s var(--ease-smooth);
}

.masthead__left {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.brand__sep {
  opacity: 0.3;
}

.brand__title {
  letter-spacing: 0.22em;
}

.masthead__sub {
  font-size: 0.65rem;
  opacity: 0.6;
}

.masthead__chapters {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ch-link {
  font-size: 0.68rem;
  color: var(--text-dim);
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.ch-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--text-main);
  transition: width 0.3s var(--ease-smooth);
}

.ch-link:hover, .ch-link.is-active {
  color: var(--text-main);
}

.ch-link.is-active::after {
  width: 100%;
}

.masthead__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.text-ctrl {
  font-size: 0.68rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-ctrl:hover {
  color: var(--text-main);
  border-color: var(--hairline-active);
}

.text-ctrl[aria-pressed="true"] {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   Far-Edge Hairline Progress Indicator (Zero Software Chrome)
   -------------------------------------------------------------------------- */
.scroll-edge {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  pointer-events: none;
}

.scroll-edge__track {
  width: 1px;
  height: 140px;
  background: rgba(245, 242, 233, 0.1);
  position: relative;
}

.scroll-edge__indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent-gold);
  transition: height 0.08s linear;
}

.scroll-edge__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Cinema Pinned Stage & Media
   -------------------------------------------------------------------------- */
.cinema-section {
  position: relative;
  width: 100%;
  height: auto;           /* the scroll length comes from the pin spacer (+520 %), not from this box */
}

.cinema-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-deep);
  z-index: 10;
}

.film-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* The whole shot — film, dissolve, 3D words, dust — is one WebGL canvas */
.cinema-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   Kinetic Editorial Typography Overlays (No Cards, Pure Spatial Layout)
   -------------------------------------------------------------------------- */
.editorial-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.scene-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}

#sceneHero {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Masked typography animation classes */
.mask-line, .mask-text {
  display: block;
  overflow: hidden;
}

.mask-line > span, .mask-text > span {
  display: block;
  transform: translateY(115%);
  will-change: transform;
}

/* scroll-linked reveal is driven from app.js; the hero title is simply present */
#sceneHero .mask-text > span {
  transform: none;
}

/* 00 Hero Prologue */
.scene--hero {
  padding: 5rem 4rem 3.5rem 4rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-label {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem;
}

.hero-center {
  margin: auto 0;
}

.hero-giant {
  font-size: clamp(4.5rem, 16vw, 16rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  margin-bottom: 1.5rem;
}

.hero-word {
  display: inline-block;
}

.hero-word--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-gold);
}

.hero-caption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.hero-bottom-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

.hero-prompt {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prompt-line {
  width: 32px;
  height: 1px;
  background: var(--text-muted);
  animation: promptPulse 2s infinite ease-in-out;
}

@keyframes promptPulse {
  0%, 100% { transform: scaleX(0.5); opacity: 0.4; }
  50% { transform: scaleX(1.2); opacity: 1; }
}

.hero-play-link {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--hairline-active);
  padding-bottom: 3px;
  transition: all 0.3s ease;
}

.hero-play-link:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Common Spatial Chapter Typography */
.ch-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.5rem;
}

.ch-badge__num {
  color: var(--accent-gold);
  font-weight: 500;
}

.ch-badge--right {
  margin-left: auto;
}

.spatial-heading {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.75), 0 0 60px rgba(0, 0, 0, 0.45);
}

.spatial-column {
  max-width: 460px;
}

.spatial-column--right {
  margin-left: auto;
  text-align: right;
}

.spatial-column--center {
  margin: 0 auto;
  text-align: center;
}

.body-lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.65;
  color: #f7f5ed;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 0, 0, 0.55);
}

.arch-data {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.68rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.arch-data div {
  display: flex;
  justify-content: space-between;
}

.arch-data span {
  color: var(--text-dim);
}

.arch-data b {
  color: var(--text-main);
  font-weight: 500;
}

/* Chapter 01 Layout: Asymmetric Left-Bottom */
.ch1-layout {
  position: absolute;
  bottom: 6rem;
  left: 5rem;
  max-width: 680px;
}

/* Chapter 02 Layout: Asymmetric Right-Top */
.ch2-layout {
  position: absolute;
  top: 7rem;
  right: 5rem;
  max-width: 680px;
  text-align: right;
}

/* Chapter 03 Layout: Panoramic Center */
.ch3-layout {
  position: absolute;
  top: 50%;
  left: 5rem;
  right: 5rem;
  transform: translateY(-50%);
  text-align: center;
}

.spatial-heading--wide {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Chapter 04 Layout: Asymmetric Right-Bottom */
.ch4-layout {
  position: absolute;
  bottom: 6rem;
  right: 5rem;
  max-width: 720px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Monograph v8 — a fixed 3D stage. The section is only scroll length; app.js places every .m-item in space
   (matrix3d) and flies the camera through them. Sizes are in --u = min(viewport w, h) / 100 (set by app.js),
   so the composition is the same on a phone, a laptop and in the 4K vertical capture.
   -------------------------------------------------------------------------- */
.mono-section {
  position: relative;
  z-index: 40;
  height: 600vh;                 /* app.js sets the exact length after the stage pin is measured */
}

.mono-stage {
  --u: 10px;
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: var(--bg-deep);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  perspective-origin: 50% 50%;
}
.mono-stage.is-on { visibility: visible; }
.mono-stage.is-live { pointer-events: auto; }

.story-world-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mono-world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform-origin: 0 0 0;
}

.m-item {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  transform-origin: 0 0;
  backface-visibility: hidden;
  color: var(--text-main);
}

/* 00 — profile */
.m-meta {
  display: flex;
  gap: calc(var(--u) * 4);
  white-space: nowrap;
  font-size: calc(var(--u) * 1.35);
  letter-spacing: 0.22em;
  color: var(--text-muted);
}
.m-sub {
  white-space: nowrap;
  font-size: calc(var(--u) * 1.5);
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--accent-gold);
}
.m-giant {
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: calc(var(--u) * 21);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.045em;
  transform-style: preserve-3d;
}
.m-ch {
  display: inline-block;
  transform-origin: 50% 60%;
}
.m-ch--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-gold);
  font-size: 0.82em;
  margin-left: 0.06em;
  letter-spacing: 0;
}
.m-vert {
  display: flex;
  gap: calc(var(--u) * 5);
  writing-mode: vertical-rl;
  transform-origin: 0 0;
  font-size: calc(var(--u) * 1.2);
  letter-spacing: 0.24em;
  color: var(--text-dim);
  white-space: nowrap;
}
.m-vert__gold { color: var(--accent-gold); }

/* 01 — manifesto */
.m-lead {
  width: calc(var(--u) * 78);
  font-size: calc(var(--u) * 3.6);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.m-lead .w, .m-quote .w {
  display: inline-block;
  white-space: pre;
}

.m-fig { width: calc(var(--u) * 64); }
.m-fig__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0f0e;
}
.m-fig--tall { width: calc(var(--u) * 44); }
.m-fig--tall .m-fig__frame { aspect-ratio: 4 / 5; }
.m-fig--pano { width: calc(var(--u) * 132); }
.m-fig--pano .m-fig__frame { aspect-ratio: 21 / 10; }
.m-fig__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: 50% 50%;
}
.m-fig figcaption {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--u) * 2);
  margin-top: calc(var(--u) * 1.2);
  font-size: calc(var(--u) * 1.1);
  letter-spacing: 0.2em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* 02 — three movements */
.m-block { width: calc(var(--u) * 58); }
.m-num {
  position: absolute;
  left: calc(var(--u) * -2);
  top: calc(var(--u) * -19);
  font-family: var(--font-sans);
  font-size: calc(var(--u) * 22);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: max(1px, calc(var(--u) * 0.14)) rgba(197, 160, 89, 0.75);
}
.m-rule {
  display: block;
  height: max(1px, calc(var(--u) * 0.12));
  background: var(--hairline-active);
  transform-origin: 0 50%;
  margin-bottom: calc(var(--u) * 2.4);
}
.m-block__title {
  overflow: hidden;
  font-size: calc(var(--u) * 4.4);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: calc(var(--u) * 1.8);
}
.m-block__title span { display: inline-block; }
.m-block__text {
  font-size: calc(var(--u) * 1.9);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 03 — materials on a drawing table */
.m-floor {
  width: calc(var(--u) * 420);
  height: calc(var(--u) * 420);
  background-image:
    linear-gradient(rgba(197, 160, 89, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(245, 242, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 233, 0.06) 1px, transparent 1px);
  background-size: calc(var(--u) * 20) calc(var(--u) * 20), calc(var(--u) * 20) calc(var(--u) * 20),
                   calc(var(--u) * 4) calc(var(--u) * 4), calc(var(--u) * 4) calc(var(--u) * 4);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
}
.m-matrix { width: calc(var(--u) * 92); }
.m-matrix__head {
  font-size: calc(var(--u) * 1.5);
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  margin-bottom: calc(var(--u) * 3);
}
.m-matrix__list { display: flex; flex-direction: column; gap: calc(var(--u) * 2.2); }
.m-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(var(--u) * 3);
  padding-bottom: calc(var(--u) * 1.6);
}
.m-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: max(1px, calc(var(--u) * 0.1));
  background: var(--hairline-active);
  transform: scaleX(var(--line, 1));
  transform-origin: 0 50%;
}
.m-row dt { font-size: calc(var(--u) * 1.3); letter-spacing: 0.2em; color: var(--text-dim); white-space: nowrap; }
.m-row dd { font-size: calc(var(--u) * 1.75); letter-spacing: 0.08em; color: var(--text-main); text-align: right; }

/* 04 — coda */
.m-fig--pano img { filter: brightness(0.62) saturate(0.95); }
.m-quote {
  width: calc(var(--u) * 96);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: calc(var(--u) * 5.6);
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 0 calc(var(--u) * 3) rgba(0, 0, 0, 0.55);
}
.m-actions {
  display: flex;
  gap: calc(var(--u) * 5);
  white-space: nowrap;
}
.m-actions .footer-btn { font-size: calc(var(--u) * 1.35); }

.m-line {
  width: calc(var(--u) * 520);
  height: max(1px, calc(var(--u) * 0.1));
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.55) 30%, rgba(245, 242, 233, 0.35) 70%, transparent);
}

/* HUD: where you are in the monograph */
.mono-hud {
  position: absolute;
  left: calc(var(--u) * 4);
  bottom: calc(var(--u) * 4);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.6);
  font-size: calc(var(--u) * 1.3);
  letter-spacing: 0.22em;
  color: var(--text-muted);
}
.mono-hud__idx { color: var(--accent-gold); font-size: calc(var(--u) * 2.2); letter-spacing: 0.05em; }
.mono-hud__bar { width: calc(var(--u) * 12); height: 1px; background: var(--hairline); }
.mono-hud__bar i { display: block; height: 100%; width: 100%; background: var(--accent-gold); transform-origin: 0 50%; transform: scaleX(0); }

/* Portrait: the same space, larger type (a phone is read at arm's length) */
.mono-stage.is-portrait .m-meta { flex-direction: column; gap: calc(var(--u) * 1.4); font-size: calc(var(--u) * 2.3); text-align: center; }
.mono-stage.is-portrait .m-sub { font-size: calc(var(--u) * 2.5); }
.mono-stage.is-portrait .m-giant { font-size: calc(var(--u) * 25); text-align: center; line-height: 0.9; }
.mono-stage.is-portrait .m-ch--serif { display: block; font-size: 1.35em; margin: -0.06em 0 0 0; }
.mono-stage.is-portrait .m-vert { font-size: calc(var(--u) * 1.9); }
.mono-stage.is-portrait .m-lead { width: calc(var(--u) * 84); font-size: calc(var(--u) * 5.4); }
.mono-stage.is-portrait .m-fig { width: calc(var(--u) * 84); }
.mono-stage.is-portrait .m-fig--tall { width: calc(var(--u) * 74); }
.mono-stage.is-portrait .m-fig--pano { width: calc(var(--u) * 96); }
.mono-stage.is-portrait .m-fig--pano .m-fig__frame { aspect-ratio: 9 / 13; }
.mono-stage.is-portrait .m-fig figcaption { font-size: calc(var(--u) * 1.8); }
.mono-stage.is-portrait .m-block { width: calc(var(--u) * 84); }
.mono-stage.is-portrait .m-num { font-size: calc(var(--u) * 30); top: calc(var(--u) * -26); }
.mono-stage.is-portrait .m-block__title { font-size: calc(var(--u) * 7); }
.mono-stage.is-portrait .m-block__text { font-size: calc(var(--u) * 3.4); }
.mono-stage.is-portrait .m-matrix { width: calc(var(--u) * 86); }
.mono-stage.is-portrait .m-matrix__head { font-size: calc(var(--u) * 2.4); }
.mono-stage.is-portrait .m-row { flex-direction: column; align-items: flex-start; gap: calc(var(--u) * 0.8); }
.mono-stage.is-portrait .m-row dt { font-size: calc(var(--u) * 2.1); }
.mono-stage.is-portrait .m-row dd { font-size: calc(var(--u) * 3); text-align: left; }
.mono-stage.is-portrait .m-quote { width: calc(var(--u) * 86); font-size: calc(var(--u) * 8.4); }
.mono-stage.is-portrait .m-actions { flex-direction: column; align-items: center; gap: calc(var(--u) * 2.4); }
.mono-stage.is-portrait .m-actions .footer-btn { font-size: calc(var(--u) * 2.2); }
.mono-stage.is-portrait .mono-hud { font-size: calc(var(--u) * 2); }
.mono-stage.is-portrait .mono-hud__idx { font-size: calc(var(--u) * 3.4); }
.mono-stage.is-portrait .mono-hud__bar { width: calc(var(--u) * 16); }

.footer-btn {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-main);
  border-bottom: 1px solid var(--hairline-active);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.footer-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}


/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .masthead {
    padding: 0 2rem;
  }
  .masthead__chapters {
    display: none;
  }
  .scene--hero {
    padding: 4rem 2rem 2rem 2rem;
  }
  .ch1-layout, .ch2-layout, .ch3-layout, .ch4-layout {
    left: 2rem;
    right: 2rem;
    max-width: none;
    text-align: left;
  }
  .spatial-column--right {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .masthead {
    padding: 0 1.25rem;
  }
  .scroll-edge {
    display: none;
  }
  .hero-giant {
    font-size: 4.2rem;
  }
}

/* the stage's own progress edge belongs to the film, not to the monograph */
body.is-mono .scroll-edge { opacity: 0; }

