/* ============================================================
   ALTA 71 — Template 11 · Residential Tower
   "The Ascent" — the homepage is an elevator ride. Full-bleed
   photographic floor-stops, ticking floor HUD, window-mask
   scrub, day→night view slider. Syne + Onest + Azeret Mono.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/syne.woff2') format('woff2');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/onest.woff2') format('woff2');
}
@font-face {
  font-family: 'Azeret Mono';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/azeret.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --disp: 'Syne', 'Arial Black', sans-serif;
  --sans: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Azeret Mono', 'Courier New', monospace;

  --bg: #0b0e14;
  --bg-2: #10141c;
  --card: #151a24;
  --ink: #f2eee6;
  --ink-soft: rgba(242, 238, 230, 0.62);
  --ink-faint: rgba(242, 238, 230, 0.36);
  --line: rgba(242, 238, 230, 0.15);
  --line-soft: rgba(242, 238, 230, 0.07);
  --copper: #d0824c;
  --copper-bright: #e89a60;
  --copper-soft: rgba(208, 130, 76, 0.16);
  --scrim: linear-gradient(to top, rgba(8, 10, 15, 0.82), rgba(8, 10, 15, 0.18) 45%, rgba(8, 10, 15, 0.42));
  --shadow: 0 34px 90px -34px rgba(0, 0, 0, 0.75);
  --header-h: 74px;
  --ease: cubic-bezier(0.62, 0.03, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme='light'] {
  --bg: #eff0f2;
  --bg-2: #e6e7ea;
  --card: #fafafa;
  --ink: #101520;
  --ink-soft: rgba(16, 21, 32, 0.66);
  --ink-faint: rgba(16, 21, 32, 0.4);
  --line: rgba(16, 21, 32, 0.16);
  --line-soft: rgba(16, 21, 32, 0.08);
  --copper: #ad5c22;
  --copper-bright: #c96f2e;
  --copper-soft: rgba(173, 92, 34, 0.12);
  --scrim: linear-gradient(to top, rgba(8, 10, 15, 0.78), rgba(8, 10, 15, 0.16) 45%, rgba(8, 10, 15, 0.38));
  --shadow: 0 30px 70px -30px rgba(16, 21, 32, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.reduced-motion { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 350;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
body.menu-open, body.pre-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--disp); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--copper); }
p { margin: 0 0 1rem; }
::selection { background: var(--copper); color: #0b0e14; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--ink); color: var(--bg); padding: 0.6rem 1.1rem; font-size: 0.8rem; text-decoration: none; }
.skip-link:focus { left: 8px; }

.container { width: min(1280px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vh, 8rem); position: relative; }

/* ---------- Type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.kicker::before { content: ''; width: 8px; height: 8px; border: 1px solid var(--copper); transform: rotate(45deg); }
.kicker--bare::before { display: none; }
.kicker b { color: var(--copper-bright); font-weight: 600; }
.disp-xl { font-size: clamp(2.8rem, 8.5vw, 7.6rem); }
.disp-lg { font-size: clamp(2rem, 4.8vw, 4rem); }
.disp-md { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.lede { font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.8; color: var(--ink-soft); max-width: 56ch; }
.small { font-size: 0.82rem; color: var(--ink-soft); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Reveals */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-inview { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 0.9s var(--ease-out); }
html.reduced-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Rising-blind image reveal — louvre slats wipe upward */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.js .media[data-reveal-media] img { transform: translateY(6%) scale(1.08); opacity: 0; }
.js .media[data-reveal-media].is-inview img { transform: none; opacity: 1; transition: transform 1.2s var(--ease), opacity 0.7s ease; }
.js .media[data-reveal-media]::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(to bottom, var(--bg-2) 0 11.5%, transparent 11.5% 12.5%);
  background-color: transparent;
  transform: none; transition: transform 1s var(--ease) 0.05s;
}
.js .media[data-reveal-media].is-inview::after { transform: translateY(-102%); }
html.reduced-motion .media[data-reveal-media] img { transform: none !important; opacity: 1 !important; }
html.reduced-motion .media[data-reveal-media]::after { display: none; }

/* ---------- Preloader — elevator doors ---------- */
.pre { position: fixed; inset: 0; z-index: 260; pointer-events: none; }
.pre .door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: #0b0e14; border-color: rgba(208, 130, 76, 0.5);
  transition: transform 1s var(--ease) 0.15s;
}
.pre .door--l { left: 0; border-right: 1px solid; }
.pre .door--r { right: 0; border-left: 1px solid; }
.pre.is-done .door--l { transform: translateX(-101%); }
.pre.is-done .door--r { transform: translateX(101%); }
.pre-center {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #f2eee6; transition: opacity 0.4s ease;
}
.pre.is-done .pre-center { opacity: 0; }
.pre-mark { font-family: var(--disp); font-weight: 800; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: 0.14em; text-transform: uppercase; }
.pre-mark b { color: #d0824c; }
.pre-floors { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.4em; color: rgba(242, 238, 230, 0.55); text-align: center; }
html.reduced-motion .pre { display: none; }

/* ---------- Floor HUD ---------- */
.hud {
  position: fixed; left: clamp(0.9rem, 2.4vw, 2.2rem); bottom: clamp(0.9rem, 3vh, 2rem); z-index: 110;
  display: flex; align-items: center; gap: 0.9rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(10px);
  padding: 0.7rem 1.1rem; border-radius: 4px;
  opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
}
.hud.is-on { opacity: 1; transform: none; }
.hud .fl { font-family: var(--mono); font-weight: 500; font-size: 1.7rem; line-height: 1; color: var(--copper-bright); font-variant-numeric: tabular-nums; min-width: 2.4ch; }
.hud .dir { color: var(--copper); font-size: 0.8rem; line-height: 1; }
.hud .dir .up, .hud .dir .dn { display: block; opacity: 0.25; transition: opacity 0.3s ease; }
.hud.going-up .dir .up, .hud.going-dn .dir .dn { opacity: 1; }
.hud .stop-lbl { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); max-width: 130px; line-height: 1.7; }
@media (max-width: 700px) { .hud .stop-lbl { display: none; } }
html.reduced-motion .hud { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: var(--header-h); display: flex; align-items: center; color: #f2eee6;
  transition: background-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-soft); color: var(--ink); }
body.menu-open .site-header { z-index: 90; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-family: var(--disp); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; display: flex; align-items: baseline; gap: 0.45rem; }
.wordmark b { color: var(--copper-bright); font-weight: 800; }
.wordmark .sub { font-family: var(--mono); font-weight: 400; font-size: 0.52rem; letter-spacing: 0.3em; color: currentColor; opacity: 0.55; }
@media (max-width: 700px) { .wordmark .sub { display: none; } }
.header-tools { display: flex; align-items: center; gap: 0.8rem; }
.theme-toggle {
  width: 37px; height: 37px; border-radius: 50%; border: 1px solid currentColor;
  background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center;
  opacity: 0.85; transition: opacity 0.3s ease, transform 0.3s ease;
}
.theme-toggle:hover { opacity: 1; transform: rotate(20deg); }
.theme-toggle svg { width: 15px; height: 15px; }
:root[data-theme='dark'] .icon-moon { display: none; }
:root[data-theme='light'] .icon-sun { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--disp); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  color: #0b0e14; background: var(--copper-bright); border: 1px solid var(--copper-bright);
  padding: 1rem 1.8rem; border-radius: 3px; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #f2eee6; transform: translateY(102%); transition: transform 0.4s var(--ease); }
.btn:hover::before { transform: none; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost::before { background: var(--copper-bright); }
.btn--ghost:hover { color: #0b0e14; border-color: var(--copper-bright); }
.link-rule {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 0.45rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.link-rule:hover { color: var(--copper-bright); border-color: var(--copper-bright); }

.menu-btn {
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  font-family: var(--disp); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.85rem 1.35rem; border-radius: 3px; display: inline-flex; align-items: center; gap: 0.7rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.menu-btn:hover { color: var(--copper-bright); }
.menu-btn .dots { display: inline-grid; grid-template-columns: repeat(2, 4px); gap: 3px; }
.menu-btn .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ---------- Elevator-panel menu ---------- */
.panel-veil {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 8, 12, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease;
  color: #f2eee6; overflow-y: auto;
}
body.menu-open .panel-veil { opacity: 1; visibility: visible; }
.panel-inner { min-height: 100%; width: min(1280px, 92vw); margin-inline: auto; display: flex; flex-direction: column; padding-block: 1.5rem 2.5rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(2rem, 6vh, 4rem); }
.panel-close {
  border: 1px solid rgba(242, 238, 230, 0.35); background: transparent; color: #f2eee6;
  border-radius: 3px; padding: 0.8rem 1.5rem; cursor: pointer;
  font-family: var(--disp); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.panel-close:hover { background: #f2eee6; color: #0b0e14; }
.panel-body { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; flex: 1; }
.panel-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.panel-link {
  display: flex; align-items: center; gap: 1.3rem; text-decoration: none; color: #f2eee6;
  padding: 0.55rem 0; transform: translateY(16px); opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.55s ease;
}
body.menu-open .panel-link { transform: none; opacity: 1; }
body.menu-open .panel-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .panel-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .panel-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .panel-link:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .panel-link:nth-child(5) { transition-delay: 0.3s; }
body.menu-open .panel-link:nth-child(6) { transition-delay: 0.35s; }
.panel-link .fbtn {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  border: 1px solid rgba(242, 238, 230, 0.4); display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.78rem; color: rgba(242, 238, 230, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.panel-link .word { font-family: var(--disp); font-weight: 700; font-size: clamp(1.4rem, 3.6vh, 2rem); letter-spacing: 0.06em; text-transform: uppercase; }
.panel-link .hint { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; color: rgba(242, 238, 230, 0.4); margin-left: auto; text-transform: uppercase; }
.panel-link:hover .fbtn, .panel-link[aria-current='page'] .fbtn {
  border-color: #e89a60; color: #e89a60;
  box-shadow: 0 0 0 4px rgba(232, 154, 96, 0.18), 0 0 22px rgba(232, 154, 96, 0.35);
  background: rgba(232, 154, 96, 0.08);
}
.panel-link:hover .word { color: #e89a60; }
.panel-side { position: relative; }
.panel-side .media { aspect-ratio: 3 / 4; max-height: 62vh; border-radius: 4px; }
.panel-side .plate {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(242, 238, 230, 0.85); background: rgba(6, 8, 12, 0.55); backdrop-filter: blur(6px);
  padding: 0.7rem 1rem; border-radius: 3px; display: flex; justify-content: space-between; gap: 1rem;
}
.panel-foot { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(242, 238, 230, 0.45); flex-wrap: wrap; }
@media (max-width: 860px) { .panel-body { grid-template-columns: 1fr; } .panel-side { display: none; } }

/* ---------- Full-bleed floor stops ---------- */
.stop { position: relative; min-height: 100svh; display: grid; align-content: end; color: #f2eee6; overflow: hidden; }
.stop-bg { position: absolute; inset: 0; }
.stop-bg img { width: 100%; height: 106%; object-fit: cover; }
.stop-scrim { position: absolute; inset: 0; background: var(--scrim); }
.stop-content { position: relative; z-index: 2; padding-bottom: clamp(3rem, 9vh, 6rem); padding-top: calc(var(--header-h) + 3rem); }
.stop-tag {
  position: absolute; top: calc(var(--header-h) + 1.2rem); right: clamp(1rem, 4vw, 3rem); z-index: 2;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(242, 238, 230, 0.75);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 0.8rem;
}
.stop-tag::before { content: ''; width: 1px; height: 44px; background: var(--copper-bright); }

/* HERO */
.hero-title { font-size: clamp(3.4rem, 13vw, 12rem); font-weight: 800; letter-spacing: 0.02em; line-height: 0.88; }
.hero-title .row { display: block; overflow: hidden; }
.hero-title .row span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.booted .hero-title .row span { transform: none; }
.booted .hero-title .row:nth-child(2) span { transition-delay: 0.12s; }
.hero-title .no { color: transparent; -webkit-text-stroke: 2px var(--copper-bright); }
html.reduced-motion .hero-title .row span { transform: none !important; }
.hero-under { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: clamp(1.4rem, 4vh, 2.4rem); }
.hero-lede { color: rgba(242, 238, 230, 0.85); max-width: 44ch; margin: 0; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.stop-foot {
  position: relative; z-index: 2; border-top: 1px solid rgba(242, 238, 230, 0.25);
  background: rgba(6, 8, 12, 0.35); backdrop-filter: blur(8px);
}
.stop-foot .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(242, 238, 230, 0.75); flex-wrap: wrap; }

/* Amenity cards over full-bleed */
.amen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.amen-card {
  background: rgba(6, 8, 12, 0.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 238, 230, 0.16); border-radius: 4px;
  padding: 1.3rem 1.3rem 1.1rem; transition: border-color 0.35s ease, transform 0.35s var(--ease-out), background-color 0.35s ease;
}
.amen-card:hover { border-color: var(--copper-bright); transform: translateY(-5px); background: rgba(6, 8, 12, 0.75); }
.amen-card .fl-no { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.26em; color: var(--copper-bright); display: block; margin-bottom: 0.6rem; }
.amen-card h3 { font-size: 1.02rem; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.amen-card p { font-size: 0.84rem; color: rgba(242, 238, 230, 0.65); margin: 0; line-height: 1.6; }
@media (max-width: 960px) { .amen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amen-grid { grid-template-columns: 1fr; } }

/* ---------- Residences ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.8rem); }
.res-card { position: relative; display: block; text-decoration: none; color: #f2eee6; overflow: hidden; border-radius: 4px; }
.res-card .media { aspect-ratio: 3 / 4; }
.res-card .media img { transition: transform 0.9s var(--ease); }
.res-card:hover .media img { transform: scale(1.06); }
.res-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 8, 12, 0.88), transparent 55%); }
.res-card .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.4rem 1.5rem; }
.res-card .fl-range { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--copper-bright); }
.res-card h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin: 0.4rem 0 0.5rem; }
.res-card .specs { display: flex; gap: 1.2rem; font-family: var(--mono); font-size: 0.68rem; color: rgba(242, 238, 230, 0.75); flex-wrap: wrap; }
.res-card .specs b { color: #f2eee6; font-weight: 500; }
.res-card .go { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(242, 238, 230, 0.4); display: grid; place-items: center; font-size: 1rem; transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease); }
.res-card:hover .go { background: var(--copper-bright); color: #0b0e14; transform: rotate(45deg); }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr; } .res-card .media { aspect-ratio: 16 / 10; } }

/* ---------- Window-mask scrub ---------- */
.window { position: relative; height: 300vh; }
.window-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; background: var(--bg); }
.window-img { position: absolute; inset: 0; clip-path: inset(30% 34% 26% 34% round 14px); will-change: clip-path; }
.window-img img { width: 100%; height: 100%; object-fit: cover; }
.window-cap {
  position: relative; z-index: 3; text-align: center; padding-inline: 1rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.window-cap .kicker { justify-content: center; }
.window-cap h2 { font-size: clamp(2rem, 5.4vw, 4.6rem); }
.window-sticky.is-open .window-cap { opacity: 0; transform: scale(0.96); pointer-events: none; }
.window-cap2 {
  position: absolute; left: 0; right: 0; bottom: clamp(2rem, 7vh, 4rem); z-index: 3; text-align: center;
  color: #f2eee6; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
.window-sticky.is-open .window-cap2 { opacity: 1; transform: none; }
.window-cap2 .mono { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(242, 238, 230, 0.8); }
html.reduced-motion .window { height: auto; }
html.reduced-motion .window-sticky { position: static; height: 70vh; }
html.reduced-motion .window-img { clip-path: none !important; }
html.reduced-motion .window-cap { display: none; }
html.reduced-motion .window-cap2 { opacity: 1; transform: none; }
@media (max-width: 760px) { .window { height: 220vh; } .window-img { clip-path: inset(30% 16% 26% 16% round 12px); } }

/* ---------- Day → Night scrub ---------- */
.dn { position: relative; }
.dn-stage { position: relative; overflow: hidden; border-radius: 6px; box-shadow: var(--shadow); }
.dn-stage img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; display: block; }
.dn-night {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse at 22% 68%, rgba(255, 190, 110, 0.35) 0 1.2%, transparent 2.4%),
    radial-gradient(ellipse at 44% 60%, rgba(255, 200, 120, 0.28) 0 1%, transparent 2%),
    radial-gradient(ellipse at 68% 72%, rgba(255, 185, 100, 0.3) 0 1.4%, transparent 2.6%),
    radial-gradient(ellipse at 85% 58%, rgba(255, 205, 130, 0.26) 0 0.9%, transparent 1.8%),
    linear-gradient(to bottom, rgba(6, 10, 24, 0.92), rgba(8, 12, 28, 0.55) 55%, rgba(10, 14, 30, 0.72));
}
.dn-label {
  position: absolute; top: 1.2rem; left: 1.2rem; z-index: 3;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: #f2eee6; background: rgba(6, 8, 12, 0.5); backdrop-filter: blur(6px);
  padding: 0.55rem 0.9rem; border-radius: 3px;
}
.dn-ctl { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.4rem; }
.dn-ctl .ic { font-size: 1.05rem; line-height: 1; color: var(--ink-soft); }
.dn-ctl input[type='range'] { -webkit-appearance: none; appearance: none; flex: 1; height: 30px; background: transparent; cursor: pointer; }
.dn-ctl input[type='range']::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, #e89a60, #2a3550); border-radius: 2px; }
.dn-ctl input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--copper-bright);
  box-shadow: 0 0 14px rgba(232, 154, 96, 0.5); transition: transform 0.2s ease;
}
.dn-ctl input[type='range']:active::-webkit-slider-thumb { transform: scale(1.2); }
.dn-ctl input[type='range']::-moz-range-track { height: 2px; background: linear-gradient(to right, #e89a60, #2a3550); }
.dn-ctl input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--copper-bright); }

/* ---------- Stats over image ---------- */
.stat-row { display: flex; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; margin-top: 2rem; }
.stat-row .stat b { display: block; font-family: var(--disp); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; }
.stat-row .stat b i { font-style: normal; color: var(--copper-bright); }
.stat-row .stat span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(242, 238, 230, 0.65); }

/* ---------- Ledger rows (specs / process) ---------- */
.spec-row { border-top: 1px solid var(--line); padding-block: clamp(1.5rem, 4vh, 2.4rem); display: grid; grid-template-columns: 110px 1fr 0.85fr; gap: clamp(1.2rem, 3vw, 3rem); align-items: start; }
.spec-row:last-child { border-bottom: 1px solid var(--line); }
.spec-row .no { font-family: var(--mono); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.4rem); color: var(--copper); line-height: 1.1; }
.spec-row h3 { font-size: clamp(1.2rem, 2.2vw, 1.8rem); margin-bottom: 0.5rem; }
.spec-row p { color: var(--ink-soft); margin: 0; }
.spec-row .aside { font-family: var(--mono); font-size: 0.76rem; line-height: 2; color: var(--ink-faint); border-left: 1px solid var(--line); padding-left: 1.4rem; }
.spec-row .aside b { color: var(--copper-bright); font-weight: 500; }
@media (max-width: 860px) { .spec-row { grid-template-columns: 60px 1fr; } .spec-row .aside { grid-column: 2; border-left: 0; padding-left: 0; } }

/* ---------- Cards (updates / gallery) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.u-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color 0.35s ease, transform 0.35s var(--ease-out); }
.u-card:hover { border-color: var(--copper); transform: translateY(-4px); }
.u-card .media { aspect-ratio: 16 / 9; }
.u-card .media img { transition: transform 0.8s var(--ease); }
.u-card:hover .media img { transform: scale(1.05); }
.u-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.u-card .tag-line { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--copper-bright); }
.u-card h3 { font-size: 1.15rem; letter-spacing: 0.04em; }
.u-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.u-card .foot { margin-top: auto; padding-top: 0.9rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* Progress bar (construction) */
.prog { margin-top: 1rem; }
.prog .bar { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-bright)); transition: width 1.4s var(--ease); }
.prog .lbl { display: flex; justify-content: space-between; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.prog .lbl b { color: var(--copper-bright); }

/* ---------- Page head (inner pages) ---------- */
.page-head { position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 5.5rem)); padding-bottom: clamp(2.2rem, 5vh, 3.6rem); }
.page-head .crumb { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem; display: flex; gap: 0.8rem; }
.page-head .crumb a { text-decoration: none; }
.page-head .crumb a:hover { color: var(--copper-bright); }
.page-head h1 { font-size: clamp(2.3rem, 6.4vw, 5.4rem); }
.page-head .lede { margin-top: 1.5rem; }

/* ---------- Prose ---------- */
.prose { max-width: 66ch; margin-inline: auto; font-size: 1.04rem; line-height: 1.85; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 2.5rem 0 1rem; }
.prose p { color: var(--ink-soft); }
.prose blockquote { margin: 2.2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--copper); font-size: 1.2rem; line-height: 1.6; color: var(--ink); font-weight: 450; }
.prose .note { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.08em; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 0.9rem 1rem;
  font: inherit; color: var(--ink); transition: border-color 0.3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper-bright); }
.field textarea { min-height: 130px; resize: vertical; }
.form-success { display: none; padding: 2rem; border: 1px solid var(--copper); border-radius: 4px; background: var(--card); }
.form-success.is-visible { display: block; }
.form-success h3 { color: var(--copper-bright); margin-bottom: 0.5rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-rail { display: flex; flex-direction: column; gap: 1.7rem; }
.info-rail .blk h3 { font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 0.4rem; color: var(--copper-bright); }
.info-rail .blk p { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.split-media { position: sticky; top: calc(var(--header-h) + 2rem); }
.split-media .media { aspect-ratio: 4 / 5; border-radius: 4px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-media { position: static; } }

/* ---------- Utility ---------- */
.rule-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 5vh, 3.2rem); flex-wrap: wrap; }
.bg-alt { background: var(--bg-2); }
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.1rem, 6vw, 4.8rem); margin-bottom: 2rem; }
.cta-band .row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-note { margin-top: 2rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vh, 4.5rem); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.6rem; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-grid a:hover { color: var(--copper-bright); }
.footer-brand p { color: var(--ink-soft); font-size: 0.9rem; max-width: 32ch; }
.footer-bar { border-top: 1px solid var(--line-soft); padding-block: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
