/* Inner Sun landing page: the drill tower's HUD (orange instruments, green scanner, hazard stripes)
   over rock that darkens as you scroll down through the strata. */
@font-face { font-family: 'Share Tech Mono'; src: url('fonts/ShareTechMono-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('fonts/SpecialElite-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #0b0907;
  --ink: #e9dfcf;
  --dim: #a89c8a;
  --hud: #ff8a1e;
  --hud-deep: #c2560a;
  --scan: #3dff86;
  --alarm: #ff3b2f;
  --water: #3fd0c9;
  --paper: #d8c79f;
  --paper-ink: #2a2117;
  --line: rgba(255, 138, 30, 0.35);
  --mono: 'Share Tech Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --type: 'Special Elite', 'Courier New', monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --stripe: repeating-linear-gradient(-45deg, var(--hud) 0 8px, #111 8px 16px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--mono); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--hud); }
b { color: #fff3e0; font-weight: normal; }
h1, h2, h3 { font-family: var(--mono); font-weight: normal; letter-spacing: 0.06em; margin: 0 0 0.6em; }
h2 { font-size: clamp(28px, 4vw, 44px); color: var(--hud); text-transform: uppercase; }
h3 { font-size: 20px; color: var(--hud); text-transform: uppercase; }
p { margin: 0 0 1em; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--hud); color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter); background: linear-gradient(rgba(11, 9, 7, 0.92), rgba(11, 9, 7, 0.6));
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.bar-mark { color: var(--hud); text-decoration: none; letter-spacing: 0.3em; font-size: 18px; }
.bar-links { display: flex; gap: 20px; margin-left: auto; }
.bar-links a { color: var(--dim); text-decoration: none; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.bar-links a:hover, .bar-links a:focus-visible { color: var(--hud); }
@media (max-width: 860px) { .bar-links { display: none; } .bar .btn { margin-left: auto; } }

.btn {
  display: inline-block; padding: 12px 22px; border: 2px solid var(--hud); background: var(--hud); color: #140a00;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; font-size: 15px; transition: background 0.15s, color 0.15s;
}
.btn:hover, .btn:focus-visible { background: #ffb15c; border-color: #ffb15c; }
.btn-ghost { background: rgba(0, 0, 0, 0.45); color: var(--hud); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--hud); color: #140a00; }
.btn-small { padding: 6px 14px; font-size: 13px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--hud);
  color: var(--hud); background: rgba(20, 10, 0, 0.7); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px;
}
.pill-dot { width: 9px; height: 9px; background: var(--hud); border-radius: 50%; box-shadow: 0 0 10px var(--hud); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ------------------------------------------------------------ depth gauge */
.gauge {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column;
  align-items: center; gap: 8px; color: var(--hud); font-size: 12px; letter-spacing: 0.15em; pointer-events: none;
}
.gauge-rail { width: 4px; height: 38vh; background: rgba(255, 138, 30, 0.18); position: relative; }
.gauge-fill { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--hud); box-shadow: 0 0 8px var(--hud); }
.gauge-value { font-size: 16px; min-width: 5ch; text-align: center; }
@media (max-width: 860px) { .gauge { display: none; } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero { background: #080604; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* wide screens: the tower stands right of the words, the left edge fades into the dark */
@media (min-width: 1100px) {
  .hero-video { left: auto; right: 0; width: 70%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .hero-shade { background: linear-gradient(90deg, rgba(8, 6, 4, 0.85) 0%, rgba(8, 6, 4, 0.35) 40%, rgba(8, 6, 4, 0) 65%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 7, 0) 30%); }
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 6, 4, 0.92) 0%, rgba(8, 6, 4, 0.55) 45%, rgba(8, 6, 4, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 7, 0) 30%);
}
.hero-text { position: relative; padding: 120px var(--gutter) 120px; max-width: 760px; }
.wordmark { white-space: nowrap; font-size: clamp(44px, 10vw, 128px); line-height: 0.95; letter-spacing: 0.12em; color: #fff3e0; margin: 22px 0 18px; text-shadow: 0 0 30px rgba(255, 138, 30, 0.45); }
.tagline { font-family: var(--type); font-size: clamp(19px, 2.2vw, 25px); line-height: 1.45; color: var(--paper); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero-note { color: var(--dim); font-size: 14px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--hud); text-decoration: none;
  font-size: 12px; letter-spacing: 0.3em; padding-bottom: 26px;
}
.scroll-cue::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 2px; height: 18px; background: var(--hud); animation: drop 1.4s ease-in infinite; }
@keyframes drop { 0% { transform: translateY(-12px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after, .pill-dot { animation: none; } }
@media (max-width: 640px) { .hero-shade { background: linear-gradient(0deg, rgba(8, 6, 4, 0.95) 30%, rgba(8, 6, 4, 0.45) 100%); } .scroll-cue { display: none; } }

/* ------------------------------------------------------------ strata: each section is a deeper bed of rock */
.strata { position: relative; padding: clamp(70px, 10vw, 130px) var(--gutter); }
@media (min-width: 861px) { .strata { padding-right: max(var(--gutter), 84px); } }
.strata::before {
  /* the jagged top edge of the bed */
  content: ''; position: absolute; left: 0; right: 0; top: -28px; height: 30px; background: inherit;
  clip-path: polygon(0 60%, 6% 35%, 13% 55%, 21% 20%, 30% 50%, 38% 30%, 47% 62%, 55% 25%, 63% 48%, 72% 18%, 80% 45%, 88% 28%, 95% 52%, 100% 30%, 100% 100%, 0 100%);
}
.strata > * { position: relative; }
.s1 { background: #1d1711; }
.s2 { background: #19140f; }
.s3 { background: #15120f; }
.s4 { background: #121010; }
.s5 { background: #0f0e0e; }
.s6 { background: #0d0c0c; }
.s7 { background: #0b0a0a; }
.strata:nth-of-type(odd) { background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1.5px); background-size: 7px 7px; }

/* ------------------------------------------------------------ the dossier */
.dossier {
  max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--paper-ink); font: 18px/1.65 var(--type);
  padding: clamp(28px, 5vw, 56px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); transform: rotate(-0.6deg);
}
.dossier h2 { font-family: var(--type); color: var(--paper-ink); text-transform: none; letter-spacing: 0; font-size: clamp(30px, 4vw, 40px); }
.dossier b { color: #000; font-weight: bold; }
.dossier-ref { font-size: 14px; letter-spacing: 0.1em; opacity: 0.75; }
.stamp {
  float: right; margin: 0 0 12px 16px; padding: 4px 12px; border: 3px solid #b3261e; color: #b3261e; transform: rotate(6deg);
  letter-spacing: 0.15em; font-size: 16px;
}
.redact { background: #15110c; color: transparent; padding: 0 3px; border-radius: 1px; user-select: none; transition: color 0.4s, background 0.4s; }
.redact.lifted { background: rgba(21, 17, 12, 0.12); color: var(--paper-ink); }
.topside { font-family: var(--mono); font-size: 15px; background: #15110c; color: var(--scan); padding: 12px 16px; margin: 1.4em 0 0; }
.topside span { color: #15110c; background: var(--scan); padding: 1px 6px; margin-right: 8px; }

/* ------------------------------------------------------------ feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature-text { max-width: 560px; }
.feature-text p { color: var(--ink); }
.layer { font-size: 13px; letter-spacing: 0.25em; color: var(--scan); margin-bottom: 10px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-text { order: 0; } }

.screen { margin: 0; position: relative; border: 2px solid var(--hud-deep); background: #000; padding: 26px 6px 6px; box-shadow: 0 0 0 1px #000, 0 24px 50px rgba(0, 0, 0, 0.55); }
.screen::before { content: ''; position: absolute; top: 0; right: 0; width: 64px; height: 20px; background: var(--stripe); }
.screen-tag { position: absolute; top: 3px; left: 10px; font-size: 12px; letter-spacing: 0.16em; color: var(--hud); }
.screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* ------------------------------------------------------------ gallery */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1240px; margin: 0 auto; }
.shots figure { margin: 0; border: 1px solid var(--line); background: #000; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { padding: 10px 14px; font-size: 14px; color: var(--dim); }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ how it was made */
.making-head { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.lede { font-size: 19px; color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1240px; margin: 0 auto 60px; }
.pillars article { border-top: 3px solid var(--hud); background: rgba(255, 138, 30, 0.05); padding: 22px; }
.pillars p { color: var(--dim); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.chart { max-width: 760px; margin: 0 auto 64px; }
.chart figcaption { text-align: center; color: var(--hud); font-size: 14px; letter-spacing: 0.08em; margin-bottom: 10px; text-transform: uppercase; }
.chart svg { width: 100%; height: auto; font-family: var(--mono); }
.chart .grid line { stroke: rgba(255, 255, 255, 0.1); }
.chart .grid text { fill: var(--dim); font-size: 11px; text-anchor: end; }
.chart .line { fill: none; stroke: var(--hud); stroke-width: 2.5; }
.chart .dots circle { fill: var(--hud); }
.chart .dots circle.g { fill: var(--scan); }
.chart .labels text { fill: var(--ink); font-size: 12px; text-anchor: middle; }
.chart-note { color: var(--dim); font-size: 14px; text-align: center; }

.evolution { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1240px; margin: 0 auto 64px; }
.evolution figure { margin: 0; }
.evolution img { width: 100%; height: auto; border: 1px solid var(--line); }
.evolution figcaption { font-size: 13px; color: var(--dim); padding-top: 8px; }
@media (max-width: 900px) { .evolution { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.timeline { list-style: none; max-width: 820px; margin: 0 auto 40px; padding: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 10px 0 10px 22px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--hud); }
.timeline time { color: var(--scan); font-size: 14px; padding-top: 2px; }
.timeline div { color: var(--dim); font-size: 15px; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 6px solid transparent; border-image: var(--stripe) 6; padding: 40px var(--gutter) 60px; text-align: center; color: var(--dim); font-size: 14px; }
.foot .credits { max-width: 760px; margin: 0 auto 1em; }
