:root {
  --bg: #0D1315;
  --bg-night: #07090D;
  --bg-darkroom: #0E0B0A;
  --bg-golden: #2A2018;
  --bg-ink: #16201F;
  --paper: #F6F7F5;
  --paper-ink: #16201F;
  --paper-muted: #52605E;
  --paper-hair: #D9DFDC;
  --surface: #151D20;
  --surface-2: #1D272A;
  --hair: #263236;
  --text: #EDF1EF;
  --text-2: #97A4A2;
  --text-3: #687775;
  --dot: #E0703A;
  --dot-paper: #A94718;
  /* One brand orange (matches the logo dot). Night sections swap to the warmer amber below. */
  --accent: #E0703A;
  --accent-hover: #EA8552;
  --accent-ink: #1A1206;
  --accent-night: #E8A86A;
  --tide: #86BDB4;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Browser surface theming */
::selection {
  background: rgba(224, 112, 58, 0.28);
  color: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #364347 var(--bg);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--dot);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(1160px, calc(100% - 3rem));
  margin-inline: auto;
}

.ui-icon {
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(13, 19, 21, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(237, 241, 239, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.wordmark {
  /* Nav lockup: sonar mark (dot + one echo arc) + wordmark. Below 48px the mark drops its faint rings. */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #FFFFFF;
  line-height: 1;
}

.wordmark-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: currentColor; /* the echo arc follows the header text colour; the dot stays orange */
}

.wordmark-text {
  display: inline-flex;
  align-items: baseline;
  /* Newsreader Medium holds up at 24px; Instrument Serif's hairlines get lost over photos. */
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.wordmark-dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--dot);
  margin: 0 0.05em 0 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
}

.site-nav a:hover {
  color: #FFFFFF;
}

.nav-action {
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 600;
}

/* Shared Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: rgba(13, 19, 21, 0.56);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost[aria-pressed="true"] {
  background: rgba(224, 112, 58, 0.24);
  border-color: var(--dot);
}

.btn-ink-outline {
  background: transparent;
  color: var(--paper-ink);
  border-color: #C3CCC8;
}

.btn-ink-outline:hover {
  border-color: var(--paper-ink);
}

.btn-tuner {
  background: rgba(13, 19, 21, 0.65);
  color: var(--text);
  border-color: rgba(237, 241, 239, 0.24);
  padding: 0.62rem 1.15rem;
  font-size: 0.86rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =========================================================
   ACT I: FULL-BLEED HERO
   ========================================================= */
.hero-band {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4.5rem;
  overflow: hidden;
  background: #0D1315;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 19, 21, 0.56) 0%, rgba(13, 19, 21, 0.34) 40%, rgba(13, 19, 21, 0.9) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 780px;
}

.hero-content h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 54ch;
  font-size: 1.12rem;
  color: rgba(246, 247, 245, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* =========================================================
   ACT II & III: DAYLIGHT PAPER BANDS (#F6F7F5)
   ========================================================= */
.paper-band {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 6.5rem 0 5rem;
}

.paper-band-tight {
  padding-top: 2rem;
  padding-bottom: 6.5rem;
}

.paper-band h2,
.paper-band h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--paper-ink);
}

.paper-band h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.05;
}

.paper-band h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.08;
}

.body-copy {
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.04rem;
  max-width: 54ch;
}

.capture-spread {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--paper-hair);
}

.cleanup-workbench {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-hair);
}

.cleanup-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cleanup-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
}

.cleanup-duration {
  font-size: 0.76rem;
  color: var(--paper-muted);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #E8ECEA;
  border: 1px solid var(--paper-hair);
}

.seg-btn {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--paper-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.seg-btn.is-active {
  background: var(--paper-ink);
  color: #FFFFFF;
}

.cleanup-wave-wrap {
  padding: 0.5rem 0;
}

#cleanup-canvas {
  display: block;
  width: 100%;
  height: 68px;
}

.cleanup-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cleanup-status {
  font-size: 0.86rem;
  color: var(--paper-muted);
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  color: var(--dot-paper);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  flex-shrink: 0;
}

.photo-plate {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.photo-plate img {
  width: 100%;
  aspect-ratio: 5 / 4.2;
  object-fit: cover;
}

.dynamic-island-pill {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: #07090D;
  color: #FFFFFF;
  font-size: 0.78rem;
  white-space: nowrap;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.island-time {
  color: var(--accent);
}

.island-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.island-action {
  color: rgba(255, 255, 255, 0.86);
}

.island-stop {
  color: var(--accent);
  font-weight: 600;
}

.lock-activity {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  background: rgba(13, 19, 21, 0.88);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
}

.lock-title {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
}

.lock-sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(237, 241, 239, 0.82);
}

.lock-badge {
  font-size: 0.76rem;
  color: var(--accent);
}

/* Ledger Block */
.ledger-block {
  padding-top: 4.5rem;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.ledger-table {
  margin: 0;
  border-top: 1px solid var(--paper-hair);
}

.ledger-row {
  display: grid;
  grid-template-columns: 130px 180px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--paper-hair);
}

.ledger-row dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--paper-ink);
}

.ledger-row dd {
  margin: 0;
}

.ledger-value {
  font-size: 0.84rem;
  color: var(--dot-paper);
  font-weight: 600;
}

.ledger-desc {
  font-size: 0.92rem;
  color: var(--paper-muted);
}

/* Living Map & Audio Postcards */
.section-split-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.living-map-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 440px;
  margin-bottom: 5rem;
}

.living-map-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.living-map-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 32, 31, 0.04) 50%, rgba(22, 32, 31, 0.35) 100%);
  pointer-events: none;
}

.map-memory-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(13, 19, 21, 0.25);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}

.map-memory-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.map-memory-pin.is-selected {
  border-color: var(--dot);
  transform: translate(-50%, -50%) scale(1.12);
}

.pin-pulse {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid var(--dot);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.map-memory-pin.is-selected .pin-pulse {
  opacity: 0.75;
}

.nearby-toast {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  background: rgba(22, 32, 31, 0.92);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.nearby-toast strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.nearby-toast span {
  display: block;
  font-size: 0.9rem;
}

.postcard-spread {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.postcard-copy .btn {
  margin-top: 1.5rem;
}

.postcard-stage {
  perspective: 1200px;
}

.postcard {
  position: relative;
  width: 100%;
  height: 330px;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease-out);
  cursor: pointer;
}

.postcard.is-flipped {
  transform: rotateY(180deg);
}

.postcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #D3DCD8;
  box-shadow: 0 18px 42px rgba(22, 32, 31, 0.12);
  overflow: hidden;
}

.postcard-front {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.postcard-front img {
  width: 100%;
  height: 266px;
  object-fit: cover;
  border-radius: 8px;
}

.postcard-caption-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  font-size: 0.82rem;
  color: var(--paper-muted);
}

.postcard-back {
  transform: rotateY(180deg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.postcard-back-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.postmark {
  font-size: 0.75rem;
  color: var(--paper-muted);
}

.postcard-note {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.22;
  color: var(--paper-ink);
}

.postcard-back-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--paper-muted);
}

.postcard-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  flex: 1;
  max-width: 240px;
}

.postcard-bars span {
  flex: 1;
  background: var(--dot);
  border-radius: 2px;
  height: 8px;
  opacity: 0.78;
}

.postcard-bars span:nth-child(2n) { height: 18px; }
.postcard-bars span:nth-child(3n) { height: 12px; }
.postcard-bars span:nth-child(5n) { height: 22px; }

/* =========================================================
   ACT IV: GOLDEN HOUR — FULL-BLEED TIME TUNER
   ========================================================= */
.tuner-band {
  position: relative;
  min-height: 760px;
  background: var(--bg-golden);
  display: flex;
  align-items: stretch;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

.tuner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.tuner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 32, 24, 0.74) 0%, rgba(14, 11, 10, 0.46) 45%, rgba(14, 11, 10, 0.92) 100%);
}

.tuner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}

.tuner-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tuner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.btn-tuner[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.tuner-top-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  color: #FFFFFF;
}

.tuner-feature-readout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: end;
}

.tuner-big-clock {
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.92;
  color: var(--accent);
}

.tuner-sun-pill {
  display: inline-block;
  font-size: 0.76rem;
  color: #FFE4CE;
  margin-bottom: 0.6rem;
}

.tuner-details h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.05;
  color: #FFFFFF;
}

.tuner-place {
  margin: 0 0 0.85rem;
  color: rgba(237, 241, 239, 0.84);
}

.tuner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tuner-tags span {
  font-size: 0.78rem;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: rgba(13, 19, 21, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dial-bar {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dial-track {
  position: relative;
  padding: 10px 0 18px;
}

.dial-ticks-svg {
  display: block;
  width: 100%;
  height: 22px;
}

.dial-needle {
  position: absolute;
  top: 0;
  width: 2px;
  height: 38px;
  background: var(--accent);
  transition: left 0.35s var(--ease-out);
}

.dial-needle::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.dial-stations {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.dial-station {
  background: rgba(13, 19, 21, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dial-station span {
  display: block;
  font-size: 0.76rem;
  color: var(--accent);
}

.dial-station strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

.dial-station.is-selected {
  background: rgba(224, 112, 58, 0.2);
  border-color: var(--dot);
  color: #FFFFFF;
}

/* =========================================================
   ACT V: DARKROOM — DOUBLE EXPOSURE
   ========================================================= */
.darkroom-band {
  background: var(--bg-darkroom);
  padding: 6.5rem 0;
  border-top: 1px solid #221B18;
  border-bottom: 1px solid #1B1D20;
}

.darkroom-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.exposure-plate {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 4.3;
  background: #07090D;
  border: 1px solid #2A221E;
}

.exp-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-blend {
  mix-blend-mode: screen;
}

.exposure-dimmer {
  position: absolute;
  inset: 0;
  background: #07090D;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}

.exposure-plate.is-developing .exposure-dimmer {
  opacity: 0.62;
}

.film-strip {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(242, 166, 90, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.exposure-overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 13, 0.88) 100%);
}

.exposure-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exposure-chips span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 11, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.darkroom-controls h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.darkroom-sub {
  margin: 0 0 1.75rem;
  color: var(--text-2);
}

.exposure-audio-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid #2A221E;
  border-bottom: 1px solid #2A221E;
  margin-bottom: 1.25rem;
}

#exposure-waveform {
  flex: 1;
  min-width: 0;
  height: 44px;
}

.preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.preset-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #352A25;
  background: #171210;
  color: var(--text-2);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.preset-btn:hover {
  color: var(--text);
  border-color: #54423A;
}

.preset-btn.is-selected {
  background: rgba(242, 166, 90, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

.fader-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.75rem;
}

.fader-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: opacity 0.18s ease;
}

.fader-row.is-muted {
  opacity: 0.45;
}

.layer-mute-btn {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.layer-mute-btn:hover {
  border-color: var(--accent);
}

.layer-mute-btn img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.fader-track-wrap {
  flex: 1;
}

.fader-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.fader-label-row .mono {
  font-size: 0.78rem;
  color: var(--accent);
}

.layer-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #2C2420;
  cursor: pointer;
}

.layer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dot);
  border: 2px solid var(--bg-darkroom);
}

.layer-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dot);
  border: 2px solid var(--bg-darkroom);
}

.develop-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-radius: 12px;
  background: #1A1412;
  border: 1px solid #352A25;
  color: var(--text);
  cursor: pointer;
}

.develop-action[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(242, 166, 90, 0.12);
}

.develop-action .mono {
  font-size: 0.76rem;
  color: var(--text-2);
}

/* =========================================================
   ACT VI: MIDNIGHT — LIGHTS OUT SLEEP
   ========================================================= */
.midnight-band {
  background: var(--bg-night);
  padding: 6.5rem 0;
  border-bottom: 1px solid #161B22;
}

.midnight-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.midnight-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1C232D;
}

.midnight-visual img {
  width: 100%;
  aspect-ratio: 4 / 3.8;
  object-fit: cover;
}

.midnight-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 13, 0.92) 100%);
}

.midnight-photo-caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
}

.midnight-photo-caption span {
  font-size: 0.78rem;
  color: var(--accent-night);
}

.midnight-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.04;
}

.midnight-lead {
  margin: 0 0 2.25rem;
  color: var(--text-2);
  max-width: 50ch;
}

.sleep-queue-list {
  border-top: 1px solid #1A212B;
  margin-bottom: 1.75rem;
}

.sleep-queue-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #1A212B;
}

.sleep-queue-row img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.sleep-queue-row strong {
  display: block;
  font-weight: 500;
  font-size: 0.96rem;
}

.sleep-queue-row > div span {
  font-size: 0.8rem;
  color: var(--text-2);
}

.queue-state {
  font-size: 0.76rem;
  color: var(--accent-night);
}

.stop-after-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.stop-label {
  font-size: 0.86rem;
  color: var(--text-2);
}

.sleep-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sleep-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #222B38;
  color: var(--text-2);
  font-size: 0.8rem;
  cursor: pointer;
}

.sleep-chip.is-selected {
  border-color: var(--accent-night);
  color: var(--accent-night);
  background: rgba(232, 168, 106, 0.1);
}

/* =========================================================
   ACT VII: PRIVACY & EARLY ACCESS
   ========================================================= */
.closing-band {
  background: var(--bg);
  padding: 6.5rem 0 5.5rem;
  text-align: center;
}

.closing-inner {
  max-width: 680px;
}

.closing-band h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.06;
}

.closing-copy {
  margin: 0 auto 2.25rem;
  max-width: 52ch;
  color: var(--text-2);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.channel-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hair);
}

.channel-btn {
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 0.82rem;
  cursor: pointer;
}

.channel-btn.is-selected {
  background: var(--surface-2);
  color: var(--text);
}

.waitlist-input-row {
  display: flex;
  width: min(460px, 100%);
  gap: 0.6rem;
}

.waitlist-input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--text);
}

.waitlist-input-row input::placeholder {
  color: var(--text-2);
}

.waitlist-input-row input:focus {
  outline: none;
  border-color: var(--dot);
}

.waitlist-error {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--accent);
}

.waitlist-confirmation {
  margin-top: 1.25rem;
}

.confirm-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--tide);
}

.confirm-detail {
  margin: 0 0 0.65rem;
  color: var(--text-2);
}

.reset-link {
  background: none;
  border: 0;
  color: var(--text-2);
  text-decoration: underline;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-note {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-credits {
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: underline;
}

.footer-credits:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-2);
}

/* Responsive */
@media (max-width: 960px) {
  .capture-spread,
  .ledger-block,
  .section-split-head,
  .postcard-spread,
  .darkroom-grid,
  .midnight-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tuner-feature-readout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dial-stations {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-action) {
    display: none;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .dial-stations {
    grid-template-columns: 1fr;
  }

  .exposure-audio-bar,
  .waitlist-input-row {
    flex-direction: column;
    align-items: stretch;
  }
}


/* =========================================================
   DAY-TO-NIGHT ARC
   ========================================================= */
/* Night sections use the amber from the app's Sleep screen instead of daylight orange. */
.tuner-band,
.darkroom-band,
.midnight-band,
.closing-band {
  --accent: var(--accent-night);
  --accent-hover: #F2B880;
}

.time-stamp {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: var(--paper-muted);
}

.darkroom-band .time-stamp,
.midnight-band .time-stamp {
  color: var(--text-2);
}

.time-stamp-clock {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dot-paper);
  letter-spacing: 0.02em;
}

.darkroom-band .time-stamp-clock,
.midnight-band .time-stamp-clock {
  color: var(--accent-night);
}

.day-dial {
  position: fixed;
  right: 0.75rem;
  top: 50%;
  width: 6.8rem;
  text-align: center;
  z-index: 50;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.day-dial.is-visible {
  opacity: 1;
}

.day-dial-track {
  position: relative;
  width: 2px;
  height: 140px;
  border-radius: 2px;
  background: rgba(127, 140, 138, 0.28);
  overflow: hidden;
}

.day-dial-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #F4E2B8, #E0703A 60%, #3A4A7A);
}

.day-dial-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px rgba(224, 112, 58, 0.18);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.day-dial-time {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #7F8C8A; /* mid-grey reads on both paper and night bands */
}

.day-dial-phase {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-3);
}

/* Hero device */
.hero-device {
  display: none;
  margin: 0;
}

@media (min-width: 1100px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: end;
    gap: 4rem;
  }

  .hero-device {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
  }
}

.device-frame {
  width: 280px;
  height: 600px;
  padding: 9px;
  border-radius: 46px;
  background: #0B0F10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 38px;
}

.device-caption {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1023px) {
  .day-dial {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .day-dial,
  .day-dial-dot {
    transition: none;
  }
}
