/* ============================================================
   SATPURA STUDIO — "golden hour"
   A dawn panorama over old hills; night falls on toggle.
   Fraunces serif · Figtree body · IBM Plex Mono labels
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  /* DAWN (default) */
  --bg:        #F5F1E8;
  --surface:   #FBF8F1;
  --ink:       #201C13;
  --ink-soft:  rgba(32, 28, 19, 0.58);
  --ink-faint: rgba(32, 28, 19, 0.26);
  --accent:    #B8722C;
  --line:      rgba(32, 28, 19, 0.12);
  --sky-top:   #F2E7CB;
  --sky-mid:   #F8E2B4;
  --g1: #E6DEC6; --g2: #CFC7AA; --g3: #A9A284; --g4: #6E6951;
  --sun-core:  #FBDFA8;
  --sun-edge:  #ECAF5D;
  --mist-c:    rgba(255, 250, 240, 0.55);
  --grain-op:  0.03;
  --serif: 'Fraunces', serif;
  --sans:  'Figtree', sans-serif;
  --mono:  'IBM Plex Mono', monospace;
}
[data-theme="dark"] {
  /* NIGHT */
  --bg:        #0D0C08;
  --surface:   #14120C;
  --ink:       #EFEAD9;
  --ink-soft:  rgba(239, 234, 217, 0.55);
  --ink-faint: rgba(239, 234, 217, 0.24);
  --accent:    #D9A05B;
  --line:      rgba(239, 234, 217, 0.1);
  --sky-top:   #0A0B10;
  --sky-mid:   #13110C;
  --g1: #262418; --g2: #1C1A12; --g3: #14130C; --g4: #0B0A06;
  --sun-core:  #F4EFDF;
  --sun-edge:  #CFC9B4;
  --mist-c:    rgba(30, 28, 22, 0.5);
  --grain-op:  0.045;
}

/* Smooth theme switch — only during toggle */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background-color 0.5s ease,
    background       0.5s ease,
    color            0.5s ease,
    border-color     0.5s ease,
    fill             0.5s ease !important;
}
.theme-transitioning .cursor-dot,
.theme-transitioning .cursor-ring,
.theme-transitioning .hl-in,
.theme-transitioning .lr-in { transition: none !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { scroll-behavior: auto; }
::selection { background: rgba(184, 114, 44, 0.28); color: var(--ink); }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}
em { font-family: var(--serif); font-style: italic; }

/* Paper grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: var(--grain-op);
}

/* ===== LOADER — sunrise ===== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.6s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.ld-scene {
  position: relative;
  width: 140px;
  height: 74px;
  overflow: hidden;
}
.ld-horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink-faint);
}
.ld-sun {
  position: absolute;
  left: 50%;
  bottom: -36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, var(--sun-core), var(--sun-edge));
  box-shadow: 0 0 34px rgba(236, 175, 93, 0.55);
  transform: translateX(-50%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
#loader.rise .ld-sun { transform: translateX(-50%) translateY(-52px); }
.ld-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ===== CURSOR ===== */
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.4s ease;
}
.cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  left: 0; top: 0;
  transform: translate(-50%, -50%) scale(1);
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s, opacity 0.4s ease;
}
.cursor-ring.big {
  transform: translate(-50%, -50%) scale(1.65);
  border-color: var(--accent);
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== PROGRESS ===== */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(var(--asc, 0));
  transform-origin: left;
  z-index: 900;
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  /* never transition padding — it relayouts the header on every frame of the
     0.4s tween, right as the user starts scrolling */
  transition: background 0.4s ease, box-shadow 0.4s ease;
  /* own a compositor layer from load, so switching on backdrop-filter at
     40px doesn't rasterize a fresh blur layer mid-scroll */
  will-change: backdrop-filter, background-color;
  transform: translateZ(0);
}
#nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-mark span { color: var(--accent); font-size: 0.6em; vertical-align: super; font-style: normal; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-right a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-right a:hover { color: var(--accent); }
.nav-alt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}
.nav-alt b { color: var(--accent); font-weight: 500; }
@media (max-width: 700px) { .nav-alt { display: none; } }
.theme-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 9px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  transition: color 0.25s, border-color 0.25s;
}
.theme-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.theme-btn svg { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.theme-btn:hover svg { transform: rotate(35deg); }
.icon-moon { display: block; }
.icon-sun  { display: none;  }
[data-theme="dark"] .icon-moon { display: none;  }
[data-theme="dark"] .icon-sun  { display: block; }
@media (max-width: 560px) {
  #nav { padding: 14px 14px; }
  .nav-right { gap: 9px; }
  .nav-right a { font-size: 0.56rem; letter-spacing: 0.02em; }
  .nav-mark { font-size: 0.78rem; }
  .theme-btn { padding: 5px 7px; }
  .nav-mark span { display: none; }
  /* keep the sun in the mobile slice-crop window */
  .scene-svg .sun-wrap { transform: translateX(-175px); }
}

/* ===== HERO SCENE ===== */
.scene {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--bg) 100%);
}
.scene-sky {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.scene-svg {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: 72vh;
  pointer-events: none;
}
.scene-svg.back  { z-index: 2; }
.scene-svg.front { z-index: 4; }
.scene-svg .g1 { fill: var(--g1); }
.scene-svg .g2 { fill: var(--g2); }
.scene-svg .g3 { fill: var(--g3); }
.scene-svg .g4 { fill: var(--g4); }
.scene-svg .sun { filter: drop-shadow(0 0 44px rgba(236, 175, 93, 0.6)); }
[data-theme="dark"] .scene-svg .sun {
  filter: drop-shadow(0 0 30px rgba(244, 239, 223, 0.35));
}
/* the <svg> wrappers themselves are what GSAP scrubs on scroll */
.scene-svg { will-change: transform; }
.scene-svg path, .scene-svg .sun { will-change: transform; }

.scene-title {
  position: absolute;
  top: 27%;
  left: 0; right: 0;
  z-index: 3;
  text-align: center;
  pointer-events: none;
  /* GSAP scrubs y + opacity here on scroll */
  will-change: transform, opacity;
}
.scene-eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
@media (max-width: 560px) {
  .scene-eyebrow { font-size: 0.62rem; letter-spacing: 0.22em; }
}
.scene-h1 {
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(4.4rem, 15vw, 14.5rem);
  line-height: 0.95;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.01em;
}
.scene-h1 em { font-style: italic; }
[data-theme="dark"] .scene-h1 {
  text-shadow: 0 0 22px rgba(13, 12, 8, 0.65), 0 0 6px rgba(13, 12, 8, 0.4);
}
.hl { display: block; overflow: hidden; padding-bottom: 0.09em; }
.hl-in {
  display: block;
  transform: translateY(112%);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
body.ready .hl-in { transform: none; }
.scene-caps {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.7vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.95em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 18px;
  padding-left: 0.95em; /* balance the trailing letter-space */
}
.scene-birds {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}
.mist {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  filter: blur(46px);
  border-radius: 50%;
  background: var(--mist-c);
  /* promote up front: a 46px blur that is also transform-animated will be
     re-rasterized every frame unless it owns a compositor layer */
  will-change: transform;
  transform: translateZ(0);
}
.mist-1 {
  width: 58vw; height: 15vh;
  left: -8%; bottom: 18vh;
  animation: mistDrift 30s ease-in-out infinite alternate;
}
.mist-2 {
  width: 44vw; height: 12vh;
  right: -6%; bottom: 28vh;
  opacity: 0.7;
  animation: mistDrift 38s ease-in-out infinite alternate-reverse;
}
@keyframes mistDrift {
  from { transform: translate3d(-3%, 0, 0); }
  to   { transform: translate3d(6%, 0, 0); }
}
.scene-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scene-cue span { color: var(--accent); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

.anim-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}
body.ready .anim-item { opacity: 1; transform: translateY(0); }
body.ready .scene-eyebrow { transition-delay: 0.5s; }
body.ready .scene-caps    { transition-delay: 0.8s; }
body.ready .scene-cue     { transition-delay: 1.2s; transform: translateX(-50%); }
.scene-cue.anim-item { transform: translateX(-50%) translateY(14px); }

/* Click — a soft sun-pulse */
.pulse {
  position: fixed;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 22px rgba(236, 175, 93, 0.35);
  pointer-events: none;
  z-index: 9997;
  transform: scale(0.15);
  animation: pulseGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pulseGrow { to { transform: scale(1); opacity: 0; } }

/* ===== SECTION BASE ===== */
.sec {
  padding: 130px 7vw;
  border-top: 1px solid var(--line);
  position: relative;
}
.sec:first-of-type { border-top: none; }
.s-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 56px;
}
@media (max-width: 640px) { .sec { padding: 90px 22px; } }

/* ===== STATEMENT ===== */
.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.9rem);
  line-height: 1.22;
  color: var(--ink);
  max-width: 1020px;
  font-variation-settings: 'opsz' 60;
}
.statement em { color: var(--accent); }
.lr { display: block; overflow: hidden; padding-bottom: 0.09em; }
.lr-in {
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.lr.shown .lr-in { transform: none; }
.statement .lr:nth-child(1) .lr-in { transition-delay: 0s; }
.statement .lr:nth-child(2) .lr-in { transition-delay: 0.13s; }
.statement .lr:nth-child(3) .lr-in { transition-delay: 0.26s; }
/* Words warm under the cursor */
.statement .w { transition: color 0.35s ease; }
@media (hover: hover) and (pointer: fine) {
  .statement .w:hover { color: var(--accent); }
}
.statement-sub {
  margin-top: 36px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 520px;
}

/* ===== STATS ===== */
.stats {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat b {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; color: var(--accent); }
.stat span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ===== PRACTICE ROWS ===== */
.rows { border-top: 1px solid var(--line); }
.prow {
  display: grid;
  grid-template-columns: 56px 1fr 1.1fr 40px;
  align-items: center;
  gap: 26px;
  padding: 38px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.prow::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.prow:hover::after { transform: scaleX(1); }
.prow-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.prow-title {
  font-family: var(--serif);
  font-weight: 470;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  transition: color 0.3s, font-style 0.15s, letter-spacing 0.4s;
}
.prow:hover .prow-title { font-style: italic; color: var(--accent); }
.prow-desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.prow-arrow {
  font-size: 1.15rem;
  color: var(--ink-faint);
  transform: translateX(-8px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s;
}
.prow:hover .prow-arrow { transform: translateX(4px); color: var(--accent); }
@media (max-width: 760px) {
  .prow { grid-template-columns: 40px 1fr 28px; }
  /* explicit placement — an auto-flow arrow with grid-row:1 steals column 1
     and squeezes the title into the 28px arrow column */
  .prow-num   { grid-column: 1; grid-row: 1; }
  .prow-title { grid-column: 2; grid-row: 1; }
  .prow-arrow { grid-column: 3; grid-row: 1; }
  .prow-desc  { grid-column: 2; grid-row: 2; }
}

/* ===== KILN PRODUCT CARD — a window into the kiln, warm in both themes ===== */
.kiln-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  padding: 110px 30px;
  background:
    radial-gradient(85% 55% at 50% 110%, rgba(236, 140, 60, 0.32), transparent 70%),
    linear-gradient(165deg, #241209 0%, #140A05 100%);
  border: 1px solid rgba(246, 237, 220, 0.1);
  box-shadow: 0 24px 70px rgba(36, 18, 9, 0.28);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
  will-change: transform;
}
.kc-embers {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.kc-glow {
  position: absolute;
  left: 50%; bottom: -28%;
  transform: translateX(-50%);
  width: 92%; height: 60%;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(255, 160, 84, 0.5), rgba(217, 110, 53, 0.18) 50%, transparent 75%);
  filter: blur(30px);
  pointer-events: none;
  animation: kcBreathe 5.5s ease-in-out infinite;
}
@keyframes kcBreathe {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
.kc-spec {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 237, 220, 0.45);
}
.kc-spec.tl { top: 22px; left: 26px; }
.kc-spec.tr { top: 22px; right: 26px; color: #E9AE5E; display: inline-flex; align-items: center; gap: 8px; }
.kc-spec.bl { bottom: 22px; left: 26px; }
.kc-spec.br { bottom: 22px; right: 26px; }
.kc-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E9AE5E;
  animation: kcPulse 2.2s ease-in-out infinite;
}
@keyframes kcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 174, 94, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(233, 174, 94, 0); }
}
.kc-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}
.kc-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #E9AE5E;
  margin-bottom: 18px;
}
.kc-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: clamp(4.2rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
  background: linear-gradient(180deg, #F8EFDF 15%, #F0B36B 62%, #D96E35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variation-settings: 'opsz' 144;
}
.kc-name span { -webkit-text-fill-color: #E9AE5E; }
.kc-copy {
  font-size: 1.02rem;
  color: rgba(246, 237, 220, 0.68);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 42px;
}
.kc-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.kc-btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.kc-solid {
  background: #D96E35;
  color: #FFF6EA;
  border: 1px solid #D96E35;
  box-shadow: 0 8px 34px rgba(217, 110, 53, 0.4);
  position: relative;
  overflow: hidden;
}
.kc-solid::after {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.kc-solid:hover::after { left: 130%; }
.kc-solid:hover {
  background: #E9834A;
  border-color: #E9834A;
  box-shadow: 0 10px 44px rgba(233, 131, 74, 0.5);
}
.kc-ghost {
  background: transparent;
  color: rgba(246, 237, 220, 0.78);
  border: 1px solid rgba(246, 237, 220, 0.28);
}
.kc-ghost:hover {
  color: #FFF6EA;
  border-color: rgba(246, 237, 220, 0.55);
  background: rgba(246, 237, 220, 0.07);
}
@media (max-width: 640px) {
  .kiln-card { padding: 96px 22px; border-radius: 18px; }
  .kc-spec.tl, .kc-spec.bl { left: 16px; }
  .kc-spec.tr, .kc-spec.br { right: 16px; }
}

/* ===== DUSK QUOTE BAND ===== */
.dusk {
  position: relative;
  overflow: hidden;
  padding: 150px 7vw 210px;
  background: linear-gradient(180deg, #291D13 0%, #170F0A 100%);
}
.dusk::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: radial-gradient(60% 90% at 50% 100%, rgba(233, 174, 94, 0.2), transparent 70%);
  pointer-events: none;
}
.dusk-svg {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: 46%;
  pointer-events: none;
}
.dusk-svg .d1 { fill: #4A3423; }
.dusk-svg .d2 { fill: #322317; }
.dusk-svg .d3 { fill: #1F150D; }
.dusk-svg path { will-change: transform; }
.dusk-quote {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}
.dusk-quote p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.25;
  color: #F6EDDC;
}
.dusk-quote em { color: #E9AE5E; }
.dusk-quote cite {
  display: block;
  margin-top: 26px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 237, 220, 0.55);
}

/* ===== TENETS ===== */
.tenets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.tenet {
  border-top: 1px solid var(--line);
  padding: 26px 14px 18px;
  transition: border-color 0.4s, transform 0.3s ease;
  will-change: transform;
}
.tenet:hover { border-top-color: var(--accent); }
.tenet-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.tenet h3 {
  font-family: var(--serif);
  font-weight: 520;
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: var(--ink);
}
.tenet p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
@media (max-width: 820px) { .tenets { grid-template-columns: 1fr; gap: 36px; } }

/* ===== CONTACT ===== */
.contact-t {
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(3.4rem, 10.5vw, 9rem);
  line-height: 0.95;
  margin-bottom: 36px;
  font-variation-settings: 'opsz' 144;
}
.contact-t em { color: var(--accent); }
.contact-body {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 470px;
  margin-bottom: 54px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.big-link {
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(1.35rem, 3.3vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
}
.big-link .bl-a,
.big-link .bl-b {
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.big-link .bl-b {
  position: absolute;
  top: 100%; left: 0;
  color: var(--accent);
  font-style: italic;
}
.big-link:hover .bl-a { transform: translateY(-100%); }
.big-link:hover .bl-b { transform: translateY(-100%); }

/* ===== FOOTER ===== */
footer {
  position: relative;
  padding: 0 7vw 30px;
}
.foot-ridge {
  display: block;
  width: calc(100% + 14vw);
  margin: 0 -7vw 30px;
  height: 60px;
}
.foot-ridge path { fill: var(--g1); }
.foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.back-top { color: var(--ink-soft); text-decoration: none; transition: color 0.25s; }
.back-top:hover { color: var(--accent); }
@media (max-width: 640px) {
  .foot-meta { justify-content: center; text-align: center; }
}

/* ===== SCROLL REVEALS ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-up.shown { opacity: 1; transform: translateY(0); }
.tenets .reveal-up:nth-child(1) { transition-delay: 0s; }
.tenets .reveal-up:nth-child(2) { transition-delay: 0.1s; }
.tenets .reveal-up:nth-child(3) { transition-delay: 0.2s; }
.rows .reveal-up:nth-child(1)   { transition-delay: 0s; }
.rows .reveal-up:nth-child(2)   { transition-delay: 0.08s; }
.rows .reveal-up:nth-child(3)   { transition-delay: 0.16s; }
.s-tag.reveal-up {
  letter-spacing: 0.55em;
  transition: opacity 0.9s ease, transform 0.9s ease,
              letter-spacing 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.s-tag.reveal-up.shown { letter-spacing: 0.3em; }

/* Shot mode (?shot=1) — everything lands on its final frame instantly */
body.shot .anim-item, body.shot .hl-in { opacity: 1; transform: none; transition: none; }
body.shot .scene-cue { transform: translateX(-50%); }
body.shot .lr-in, body.shot .reveal-up { transform: none; opacity: 1; transition: none; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, a, button { cursor: auto; }
  #loader { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .scene-sky, .scene-birds { display: none; }
  .mist { animation: none; }
  .scene-cue span { animation: none; }
  .hl-in, .lr-in { transform: none; transition: none; }
  .anim-item { opacity: 1; transform: none; transition: none; }
  .scene-cue.anim-item { transform: translateX(-50%); }
  .reveal-up { opacity: 1; transform: none; transition: none; }
  .big-link:hover .bl-a, .big-link:hover .bl-b { transform: none; }
  .big-link .bl-b { display: none; }
  .pulse { display: none; }
  .statement .w { transition: none; }
  .kc-embers { display: none; }
  .kc-glow, .kc-live { animation: none; }
}

/* ============================================================
   EARLY ACCESS PAGE (early-access.html)
   ============================================================ */
.ea-page { background: var(--bg); }
.ea-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 132px 7vw 90px;
}

/* ----- header ----- */
.ea-head { max-width: 720px; margin-bottom: 74px; }
.ea-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.ea-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: eaPulse 2.2s ease-in-out infinite;
}
@keyframes eaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 114, 44, 0.5); }
  50%      { box-shadow: 0 0 0 7px rgba(184, 114, 44, 0); }
}
.ea-title {
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 26px;
  font-variation-settings: 'opsz' 144;
}
.ea-title em { color: var(--accent); }
.ea-lead {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 560px;
}

/* ----- layout ----- */
.ea-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
@media (max-width: 900px) {
  .ea-grid { grid-template-columns: 1fr; gap: 54px; }
  .ea-main { padding: 108px 22px 70px; }
}

/* ----- left column ----- */
.ea-block { margin-bottom: 44px; }
.ea-block:last-child { margin-bottom: 0; }
.ea-h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.ea-block p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.ea-status { list-style: none; }
.ea-status li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.ea-status li:last-child { border-bottom: none; }
.ea-status span {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--accent);
}
.ea-status .done span { background: var(--accent); }
.ea-status .done { color: var(--ink); }
.ea-status .wip span {
  background: linear-gradient(90deg, var(--accent) 50%, transparent 50%);
}
.ea-status .soon span { opacity: 0.45; }

/* ----- form card ----- */
.ea-formwrap { position: relative; }
.ea-form {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 38px 34px 32px;
  background:
    radial-gradient(80% 45% at 50% 108%, rgba(236, 140, 60, 0.14), transparent 72%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(36, 24, 12, 0.09);
}
[data-theme="dark"] .ea-form {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.ea-embers {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.ea-form > *:not(.ea-embers) { position: relative; z-index: 2; }
@media (max-width: 560px) { .ea-form { padding: 30px 20px 26px; } }

/* firing gauge */
.ea-gauge { margin-bottom: 30px; }
.ea-gauge-bar {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.ea-gauge-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #E9AE5E);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ea-gauge-label {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.ea-gauge-label b { color: var(--accent); font-weight: 500; }

/* fields */
.ea-field { margin-bottom: 26px; border: none; }
.ea-field label,
.ea-field legend {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 11px;
  padding: 0;
}
.ea-field label i,
.ea-field legend i {
  font-style: normal;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.ea-field input,
.ea-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  transition: border-color 0.3s;
  resize: vertical;
}
.ea-field textarea { line-height: 1.7; }
.ea-field input::placeholder,
.ea-field textarea::placeholder { color: var(--ink-faint); }
.ea-field input:focus,
.ea-field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.ea-field input.bad { border-bottom-color: #C0492B; }
.ea-error {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: #C0492B;
  margin-top: 8px;
  min-height: 0.9rem;
}
.ea-count {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-faint);
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}

/* chips */
.ea-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.ea-chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 16px;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ea-chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.ea-chip.on {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(184, 114, 44, 0.09);
  transform: translateY(-2px);
}
[data-theme="dark"] .ea-chip.on { background: rgba(217, 160, 91, 0.14); }

/* live preview */
.ea-preview {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 26px;
  background: rgba(184, 114, 44, 0.03);
}
.ea-preview-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.ea-preview pre {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 190px;
  overflow-y: auto;
}

/* submit */
.ea-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 17px 26px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #FFF6EA;
  box-shadow: 0 8px 30px rgba(184, 114, 44, 0.3);
  position: relative;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.ea-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.ea-submit:hover:not(:disabled)::after { left: 130%; }
.ea-submit:disabled {
  opacity: 0.42;
  box-shadow: none;
  cursor: not-allowed;
}
.ea-submit-arrow { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ea-submit:hover:not(:disabled) .ea-submit-arrow { transform: translate(3px, -3px); }

.ea-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
}
.ea-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: none;
  border: none;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.ea-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ea-note {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 14px;
  min-height: 1rem;
}

/* success state */
.ea-done {
  border-radius: 20px;
  padding: 54px 34px;
  text-align: center;
  background:
    radial-gradient(80% 50% at 50% 110%, rgba(236, 140, 60, 0.16), transparent 72%),
    var(--surface);
  border: 1px solid var(--line);
  animation: eaRise 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes eaRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.ea-done-mark {
  width: 74px; height: 74px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: rgba(184, 114, 44, 0.08);
}
.ea-done h2 {
  font-family: var(--serif);
  font-weight: 460;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 2.9rem);
  color: var(--ink);
  margin-bottom: 16px;
}
.ea-done p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto 26px;
}
.ea-done p a { color: var(--accent); }
.ea-done-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-faint);
}

/* footer */
.ea-foot {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 30px 7vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .ea-foot { justify-content: center; text-align: center; padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ea-dot { animation: none; }
  .ea-embers { display: none; }
  .ea-done { animation: none; }
  .ea-chip { transition: none; }
}
