:root {
  /* Compliance markers: IntersectionObserver Interval`. "SYS.NOMINAL" bottom-right uses */
  --void: #0e0e0e;
  --deep: #121212;
  --shadow: #1a1a1a;
  --graphite: #3a3a3a;
  --slate: #6b6b6b;
  --system: #8a8a8a;
  --body: #b0b0b0;
  --frame: #c0c0c0;
  --artifact: #e8e8e8;
  --white: #f5f5f5;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { background: var(--void); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--void);
  color: var(--body);
  font-family: "Josefin Sans", "Inter", sans-serif;
  font-weight: 300;
}

.observation-screen { position: relative; background: var(--void); }

.hud-frame { position: fixed; inset: 0; z-index: 50; pointer-events: none; }

.hud-border {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(138, 138, 138, 0.4);
}

.hud-horizon {
  position: absolute;
  top: 24px;
  left: 72px;
  right: 72px;
  height: 1px;
  background: rgba(192, 192, 192, 0.1);
}

.corner { position: absolute; width: 48px; height: 48px; color: var(--frame); }
.corner::before, .corner::after { content: ""; position: absolute; background: var(--frame); }
.corner::before { width: 48px; height: 2px; }
.corner::after { width: 2px; height: 48px; }
.corner-tl { top: 24px; left: 24px; }
.corner-tr { top: 24px; right: 24px; transform: rotate(90deg); }
.corner-br { right: 24px; bottom: 24px; transform: rotate(180deg); }
.corner-bl { left: 24px; bottom: 24px; transform: rotate(270deg); }
.corner::before, .corner::after { top: 0; left: 0; }

.diamond, .dot, .mini-chevron { position: absolute; display: block; background: var(--slate); opacity: 0.9; }
.diamond { width: 4px; height: 4px; left: 58px; top: 10px; transform: rotate(45deg); }
.dot { width: 2px; height: 2px; border-radius: 50%; left: 58px; top: 23px; }
.mini-chevron { width: 8px; height: 8px; left: 54px; top: 34px; background: transparent; border-top: 1px solid var(--slate); border-right: 1px solid var(--slate); transform: rotate(45deg); }

.telemetry {
  position: absolute;
  bottom: 8px;
  font-family: "Share Tech Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--system);
}
.telemetry-left { left: 24px; }
.telemetry-right { right: 24px; animation: pulse-nominal 4s ease-in-out infinite; }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--void);
  padding: 72px 48px;
}

.hero-inner { text-align: center; transform: translateX(0.12em); }

.hero-title {
  margin: 0;
  font-family: "Poiret One", sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--artifact);
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: bounce-enter 780ms var(--bounce) forwards;
  animation-delay: var(--delay);
}

.hero-rule {
  width: 200px;
  height: 1px;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  background: var(--frame);
  opacity: 0;
  animation: fade-in 600ms ease forwards;
  animation-delay: 620ms;
}

.hero-subtitle {
  margin: 1.1rem 0 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--system);
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 800ms ease forwards;
  animation-delay: 980ms;
}

.depth-section {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 12vh clamp(44px, 9vw, 140px);
  overflow: hidden;
  isolation: isolate;
}

.depth-background {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: linear-gradient(135deg, var(--deep), #0a0a0a 60%, var(--void));
  opacity: 0.58;
  transform: translateY(var(--bg-shift, 0));
  will-change: transform;
}

.midground {
  position: absolute;
  z-index: 2;
  transform: translateY(var(--mid-shift, 0));
  will-change: transform;
  opacity: 0.88;
}

.depth-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
  opacity: 0;
  transform: translateY(28px);
}

.reveal-section.in-view .depth-content, .reveal-section.in-view .stone-photo { animation: bounce-enter 740ms var(--bounce) forwards; }

.kicker {
  margin: 0 0 1.15rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--system);
}

h2 {
  margin: 0 0 1.1rem;
  font-family: "Poiret One", sans-serif;
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--artifact);
}

.depth-content p:not(.kicker) {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--body);
}

.mass-content { justify-self: start; margin-left: 8vw; }
.sunburst-layer { left: 10vw; top: 8vh; width: min(68vw, 760px); height: min(68vw, 760px); }
.sunburst { width: 100%; height: 100%; overflow: visible; }
.sunburst line { stroke: var(--graphite); stroke-width: 1; stroke-dasharray: 210; stroke-dashoffset: 210; }
.in-view .sunburst line { animation: draw-ray 800ms ease forwards; animation-delay: calc(var(--ray, 0) * 40ms); }
.sunburst line:nth-child(1) { --ray: 0; } .sunburst line:nth-child(2) { --ray: 1; } .sunburst line:nth-child(3) { --ray: 2; } .sunburst line:nth-child(4) { --ray: 3; } .sunburst line:nth-child(5) { --ray: 4; } .sunburst line:nth-child(6) { --ray: 5; } .sunburst line:nth-child(7) { --ray: 6; } .sunburst line:nth-child(8) { --ray: 7; } .sunburst line:nth-child(9) { --ray: 8; } .sunburst line:nth-child(10) { --ray: 9; } .sunburst line:nth-child(11) { --ray: 10; } .sunburst line:nth-child(12) { --ray: 11; } .sunburst line:nth-child(13) { --ray: 12; } .sunburst line:nth-child(14) { --ray: 13; } .sunburst line:nth-child(15) { --ray: 14; } .sunburst line:nth-child(16) { --ray: 15; } .sunburst line:nth-child(17) { --ray: 16; } .sunburst line:nth-child(18) { --ray: 17; } .sunburst line:nth-child(19) { --ray: 18; } .sunburst line:nth-child(20) { --ray: 19; } .sunburst line:nth-child(21) { --ray: 20; } .sunburst line:nth-child(22) { --ray: 21; } .sunburst line:nth-child(23) { --ray: 22; } .sunburst line:nth-child(24) { --ray: 23; }

.form-content { text-align: center; }
.chevron-layer { width: min(72vw, 780px); top: 8vh; left: 50%; transform: translate(-50%, var(--mid-shift, 0)); }
.chevrons { width: 100%; height: auto; }
.chevrons polyline { fill: none; stroke: var(--graphite); stroke-width: 1; opacity: 0; transform: translateY(20px); }
.in-view .chevrons polyline { animation: chevron-enter 620ms var(--bounce) forwards; animation-delay: calc(var(--chev, 0) * 150ms); }
.chevrons polyline:nth-child(1) { --chev: 0; } .chevrons polyline:nth-child(2) { --chev: 1; } .chevrons polyline:nth-child(3) { --chev: 2; } .chevrons polyline:nth-child(4) { --chev: 3; } .chevrons polyline:nth-child(5) { --chev: 4; }

.typographic-pyramid { display: grid; justify-items: center; gap: 0.55rem; color: var(--body); text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.45; }
.typographic-pyramid span:nth-child(1) { font-size: clamp(1.55rem, 3.2vw, 3rem); color: var(--artifact); }
.typographic-pyramid span:nth-child(2) { font-size: clamp(1.25rem, 2.5vw, 2.25rem); }
.typographic-pyramid span:nth-child(3) { font-size: clamp(1rem, 1.8vw, 1.55rem); }
.typographic-pyramid span:nth-child(4) { font-size: clamp(0.85rem, 1.25vw, 1.05rem); color: var(--system); }

.material-punctuation {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 8vh 48px;
  background: var(--void);
  overflow: hidden;
}

.stone-photo {
  width: min(40vw, 520px);
  min-width: 280px;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--graphite);
  opacity: 0;
  transform: translateY(30px);
  filter: grayscale(100%) contrast(1.3);
  background:
    radial-gradient(circle at 18% 28%, rgba(245,245,245,0.18), transparent 8%),
    radial-gradient(circle at 68% 38%, rgba(232,232,232,0.12), transparent 13%),
    linear-gradient(115deg, rgba(245,245,245,0.04) 0 12%, transparent 12% 22%, rgba(192,192,192,0.08) 22% 24%, transparent 24% 44%, rgba(245,245,245,0.05) 44% 48%, transparent 48%),
    repeating-linear-gradient(168deg, #0a0a0a 0 7px, #1a1a1a 7px 12px, #3a3a3a 12px 13px, #121212 13px 20px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55);
}

.signal-content { justify-self: end; text-align: right; margin-right: 8vw; }
.signal-layer { inset: 0; display: grid; place-items: center; }
.signal-rings { position: relative; width: 80px; height: 80px; }
.signal-rings span { position: absolute; inset: 0; margin: auto; border: 1px solid var(--frame); border-radius: 50%; }
.signal-rings span:nth-child(1) { width: 40px; height: 40px; }
.signal-rings span:nth-child(2) { width: 60px; height: 60px; animation: pulse-ring 7s ease-in-out infinite; opacity: 0.68; }
.signal-rings span:nth-child(3) { width: 80px; height: 80px; animation: pulse-ring 6s ease-in-out infinite; opacity: 0.76; }

.empty-hold { height: 20vh; background: var(--void); }

@keyframes bounce-enter { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pulse-nominal { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } }
@keyframes draw-ray { to { stroke-dashoffset: 0; } }
@keyframes chevron-enter { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-ring { 0%, 100% { transform: scale(0.95); } 50% { transform: scale(1.05); } }

@media (max-width: 760px) {
  .hud-border { inset: 16px; }
  .corner-tl { top: 16px; left: 16px; } .corner-tr { top: 16px; right: 16px; } .corner-br { right: 16px; bottom: 16px; } .corner-bl { left: 16px; bottom: 16px; }
  .hud-horizon { top: 16px; left: 64px; right: 64px; }
  .telemetry-left { left: 16px; } .telemetry-right { right: 16px; }
  .hero-title { letter-spacing: 0.16em; }
  .mass-content, .signal-content { justify-self: center; margin: 0; text-align: center; }
  .depth-section { padding-inline: 38px; }
}
