:root {
  --midnight: #0B1120;
  --signal-navy: #152238;
  --deep-slate: #1C2D45;
  --wire: #2A3B54;
  --chrome: #5B8DAF;
  --pale-steel: #A8B4C0;
  --beam: #D4DCE6;
  --fog: #8A97A8;
  --copper: #C77D4F;
  --jost: "Jost", Futura, "Century Gothic", sans-serif;
  --work: "Work Sans", Inter, Arial, sans-serif;
  --space: "Space Mono", monospace;
}

/* Compliance typography notes: Interaction Pattern:** Intersection Observer (no external libraries only (~30 lines when sections enter the viewport. Space Mono" (Google Fonts Work Sans — which appears in only 1% of existing designs. The geometric precision of the type system creates a distinctive visual signature that sets it apart from the dominant mono-and-humanist pairing pattern across the batch. Work Sans provides a conversational warmth that balances Jost's geometric rigidity. Work Sans" */

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

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  background: var(--midnight);
  color: var(--beam);
  font-family: var(--work);
  overflow-x: hidden;
  scroll-snap-type: y proximity;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background:
    linear-gradient(rgba(212, 220, 230, 0.025) 1px, transparent 1px) 0 0 / 100% 4px,
    radial-gradient(circle at 78% 18%, rgba(91, 141, 175, 0.16), transparent 26vw),
    radial-gradient(circle at 18% 82%, rgba(199, 125, 79, 0.11), transparent 25vw);
  mix-blend-mode: screen;
}

.frame {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
}

.frame::after {
  content: attr(data-frame);
  position: absolute;
  right: clamp(1.2rem, 4vw, 4rem);
  bottom: clamp(1rem, 3vw, 3rem);
  color: rgba(168, 180, 192, 0.34);
  font: 400 0.72rem/1 var(--space);
  letter-spacing: 0.18em;
}

h1, h2, h3 {
  font-family: var(--jost);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(2.25rem, 4.8vw, 4.7rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2.1rem); text-transform: uppercase; }

p {
  color: var(--fog);
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  font-weight: 300;
  line-height: 1.72;
}

.kicker, .coordinates, .spectrum-label, .readout, .caption-strip, .card-index {
  font-family: var(--space);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pale-steel);
}

.kicker { margin-bottom: 1.15rem; color: var(--chrome); }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms cubic-bezier(0.33, 0, 0.2, 1), transform 900ms cubic-bezier(0.33, 0, 0.2, 1), clip-path 1200ms cubic-bezier(0.33, 0, 0.2, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.frame-noise {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  background: radial-gradient(circle at 75% 42%, rgba(42, 59, 84, 0.78), transparent 33vw), linear-gradient(135deg, #0B1120 0%, #152238 100%);
}

.scan-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(91, 141, 175, 0.08) 1px, transparent 1px) 0 0 / 8.333% 100%,
    linear-gradient(rgba(91, 141, 175, 0.04) 1px, transparent 1px) 0 0 / 100% 12.5%;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.signal-field { position: absolute; inset: -6vh -4vw; width: 108vw; height: 112vh; opacity: 0.76; }
.wave { fill: none; stroke-linecap: round; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wave-a { stroke: #5B8DAF; opacity: 0.62; }
.wave-b { stroke: #2A3B54; opacity: 0.92; }
.wave-c { stroke: #A8B4C0; opacity: 0.36; }
.wave-d { stroke: #C77D4F; opacity: 0.34; }

@keyframes controlRoomPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 0.94; }
}

.hero-copy {
  grid-column: 2 / 8;
  padding: clamp(2rem, 5vw, 5rem) 0;
  z-index: 2;
}

.hero-copy h1 { max-width: 11ch; color: var(--beam); text-shadow: 0 0 42px rgba(91, 141, 175, 0.24); }
.intro { max-width: 38rem; margin-top: 1.5rem; }
.coordinates { position: absolute; left: clamp(1.25rem, 4vw, 4rem); bottom: clamp(1rem, 3vw, 3rem); color: rgba(212, 220, 230, 0.48); }

.frame-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 4vw, 4rem);
  background: var(--signal-navy);
}

.diagonal-split {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 0 52%, rgba(11, 17, 32, 0.42) 52.2% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

.split-copy { grid-column: 2 / 7; z-index: 1; }
.split-copy p + p { margin-top: 1.1rem; }

.spectrum-panel {
  grid-column: 8 / 13;
  align-self: stretch;
  min-height: 62vh;
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid rgba(168, 180, 192, 0.24);
  border-right: 1px solid rgba(168, 180, 192, 0.12);
  background: linear-gradient(180deg, rgba(91, 141, 175, 0.08), rgba(11, 17, 32, 0.32));
  clip-path: polygon(3% 0, 100% 0, 96% 100%, 0 100%);
}

.bars { height: calc(100% - 5rem); min-height: 410px; display: flex; align-items: flex-end; gap: clamp(0.35rem, 1vw, 0.85rem); padding-top: 3rem; }
.bars span {
  flex: 1;
  height: var(--h);
  min-width: 10px;
  background: linear-gradient(180deg, #D4DCE6, #5B8DAF 46%, #2A3B54);
  box-shadow: 0 0 26px rgba(91, 141, 175, 0.2);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transition: height 280ms ease, opacity 280ms ease;
}
.readout { display: flex; justify-content: space-between; gap: 1rem; color: rgba(212, 220, 230, 0.46); }

.frame-decode {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 4vw, 4rem);
  background: linear-gradient(135deg, #1C2D45 0%, #0B1120 100%);
}

.photo-block { grid-column: 1 / 7; }
.documentary-still {
  min-height: 66vh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 40% 18%, rgba(212, 220, 230, 0.16), transparent 18%), linear-gradient(140deg, #0B1120 0%, #152238 45%, #5B8DAF 100%);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 96%);
  filter: saturate(0.7) contrast(1.15) brightness(0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  transition: clip-path 1200ms cubic-bezier(0.33, 0, 0.2, 1);
}
.documentary-still.is-morphed { clip-path: polygon(4% 2%, 100% 0, 96% 96%, 0 100%); }
.face-shadow { position: absolute; width: 25%; aspect-ratio: 1; right: 18%; top: 13%; border-radius: 48% 52% 46% 54%; background: linear-gradient(140deg, #A8B4C0, #152238 62%); opacity: 0.45; }
.table-light { position: absolute; left: -8%; right: -4%; bottom: 2%; height: 38%; background: linear-gradient(8deg, rgba(212, 220, 230, 0.28), rgba(199, 125, 79, 0.18), transparent); transform: skewY(-4deg); }
.hands { position: absolute; width: 28%; height: 13%; bottom: 22%; border-radius: 999px 999px 30px 30px; background: linear-gradient(90deg, rgba(199, 125, 79, 0.7), rgba(212, 220, 230, 0.18)); filter: blur(0.2px); }
.hands-left { left: 18%; transform: rotate(14deg); }
.hands-right { right: 19%; transform: rotate(-12deg) scaleX(-1); }
.caption-strip { position: absolute; left: 2rem; bottom: 1.5rem; color: rgba(212, 220, 230, 0.58); }
.decode-copy { grid-column: 8 / 12; }
.decode-copy p + p { margin-top: 1.2rem; color: var(--pale-steel); }

.frame-harmonics {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-content: center;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 4vw, 4rem);
  background: linear-gradient(180deg, #152238 0%, #0B1120 100%);
}
.harmonics-title { grid-column: 2 / 9; margin-bottom: 3rem; }
.card-bank { grid-column: 2 / 12; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: stretch; }
.tone-card {
  min-height: 20rem;
  padding: clamp(1.4rem, 2.4vw, 2.3rem);
  position: relative;
  background: rgba(21, 34, 56, 0.72);
  border: 1px solid rgba(168, 180, 192, 0.12);
  clip-path: polygon(0 0, 100% 0, 100% 93%, 92% 100%, 0 100%);
  transition: transform 450ms cubic-bezier(0.33, 0, 0.2, 1), background 450ms ease, clip-path 700ms cubic-bezier(0.33, 0, 0.2, 1);
}
.tone-card:nth-child(2) { margin-top: 3rem; }
.tone-card:nth-child(3) { margin-top: 6rem; }
.tone-card::before { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: var(--beam); opacity: 0.55; }
.tone-card[data-accent="chrome"]::before { background: var(--chrome); }
.tone-card[data-accent="copper"]::before { background: var(--copper); }
.tone-card:hover { transform: translateY(-10px); background: rgba(28, 45, 69, 0.92); clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 96%); }
.card-index { display: block; margin-bottom: 5rem; color: rgba(212, 220, 230, 0.46); }
.tone-card h3 { margin-bottom: 1rem; color: var(--beam); }

.frame-resolution {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(91, 141, 175, 0.14), transparent 28vw), linear-gradient(135deg, #0B1120 0%, #152238 58%, #0B1120 100%);
}
.lock-ring { position: absolute; width: min(74vw, 760px); aspect-ratio: 1; border: 1px solid rgba(168, 180, 192, 0.18); border-radius: 50%; box-shadow: inset 0 0 80px rgba(91, 141, 175, 0.08), 0 0 80px rgba(91, 141, 175, 0.08); }
.lock-ring::before, .lock-ring::after { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(212, 220, 230, 0.14); border-radius: 50%; }
.lock-ring::after { inset: 29%; border-style: solid; border-color: rgba(199, 125, 79, 0.18); }
.resolution-copy { text-align: center; position: relative; z-index: 1; padding: 2rem; }
.resolution-copy h2 { text-transform: uppercase; letter-spacing: 0.18em; font-size: clamp(2.4rem, 6vw, 6.2rem); transition: letter-spacing 1100ms cubic-bezier(0.33, 0, 0.2, 1), transform 1100ms cubic-bezier(0.33, 0, 0.2, 1); }
.resolution-copy.locked h2 { letter-spacing: 0.035em; transform: scale(1.02); }
.resolution-copy p:last-child { margin-top: 1.4rem; text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .hero-copy, .split-copy, .spectrum-panel, .photo-block, .decode-copy, .harmonics-title, .card-bank { grid-column: 1 / -1; }
  .frame-noise, .frame-split, .frame-decode, .frame-harmonics { padding: 5rem 1.25rem; }
  .hero-copy { padding-left: 0; }
  .spectrum-panel { min-height: 44vh; margin-top: 2rem; }
  .bars { min-height: 280px; }
  .photo-block { order: 2; }
  .decode-copy { order: 1; }
  .card-bank { grid-template-columns: 1fr; }
  .tone-card, .tone-card:nth-child(2), .tone-card:nth-child(3) { margin-top: 0; min-height: 15rem; }
  .card-index { margin-bottom: 2.5rem; }
  .resolution-copy h2 { letter-spacing: 0.08em; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.15rem, 14vw, 3.4rem); }
  h2 { font-size: clamp(2rem, 11vw, 3rem); }
  .coordinates, .readout { display: none; }
  .documentary-still { min-height: 54vh; }
  .bars span { min-width: 5px; }
}
