:root {
  color-scheme: light;
  --ink: #222;
  --white: #fff;
  --paper: #f3f1e8;
  --concrete: #e4e4e4;
  --yellow: #ffda24;
  --orange: #ff851b;
  --green: #69a843;
  --red: #d92e2e;
  --stamp: #ad2927;
  --muted: #58554d;
  --line: #c6c3b8;
  --display: 'Inspection Display', 'Arial Narrow Bold', 'Franklin Gothic Heavy', 'Arial Black', sans-serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --header-height: 4.5rem;
  --gutter: clamp(1.05rem, 5vw, 4.5rem);
  --hazard: repeating-linear-gradient(130deg, var(--ink) 0 9px, var(--yellow) 9px 18px);
  --inspection-duration: 1500ms;
}

@font-face { font-family: 'Inspection Display'; src: local('Impact'); font-weight: 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.5 var(--sans); }
button, input { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #134f99; outline-offset: 4px; }
.floor:focus, .crew-panel:focus { outline: none; }
.sr-only, .icon-library { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(78rem, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: fixed; top: .65rem; left: .65rem; z-index: 20; transform: translateY(-160%); padding: .65rem 1rem; background: var(--yellow); border: 2px solid; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 10; top: 0; background: var(--white); border-bottom: 2px solid var(--ink); }
.header-inner { min-height: calc(var(--header-height) - 2px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem; }
.wordmark { display: inline-flex; gap: .68rem; align-items: center; width: fit-content; text-decoration: none; line-height: 1.06; }
.brand-icon { display: grid; place-items: center; width: 2.75rem; aspect-ratio: 1; background: var(--yellow); border: 2px solid var(--ink); }
.brand-icon img { width: 91%; height: auto; }
.wordmark strong { display: block; font-size: 1.34rem; font-weight: 900; letter-spacing: -.05em; }
.wordmark small { display: block; margin-top: .24rem; font: 700 .66rem/1 var(--mono); letter-spacing: .06em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(.35rem, 1.65vw, 1.5rem); }
.main-nav a { position: relative; display: grid; place-items: center; min-height: 2.75rem; padding: .35rem .55rem; font: 800 .85rem/1 var(--mono); text-transform: uppercase; text-decoration: none; letter-spacing: .01em; }
.main-nav a::after { content: ''; position: absolute; bottom: .28rem; height: 3px; inset-inline: .55rem; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 140ms; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: .46rem; min-height: 3.15rem; padding: .55rem 1.12rem; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 900 .98rem/1.15 var(--sans); text-transform: uppercase; text-align: center; text-decoration: none; transition: background-color 140ms, transform 140ms, box-shadow 140ms; }
.button:not(:disabled):hover { background: #ffe66c; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.button:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button-outline { background: var(--white); }
.button-outline:not(:disabled):hover { background: #fff5bc; }
.buy-button:disabled { cursor: default; }
.buy-lock { width: .93rem; height: .93rem; opacity: .8; }
.header-buy { justify-self: end; min-height: 2.75rem; padding-inline: .9rem; font-size: .85rem; }

.floor { scroll-snap-align: start; }
.hero-floor { background: var(--white); }
.hero-inner { display: grid; grid-template: 'line line' auto 'copy scene' auto 'controls scene' 1fr 'down down' auto / minmax(0, .86fr) minmax(0, 1.14fr); column-gap: clamp(1.8rem, 4.3vw, 4.1rem); min-height: min(49rem, calc(100vh - var(--header-height) - 1.15rem)); min-height: min(49rem, calc(100svh - var(--header-height) - 1.15rem)); padding-block: clamp(1.55rem, 3.1vh, 2.8rem) .9rem; }
.floor-line { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.hero-line { grid-area: line; margin-bottom: clamp(1.3rem, 3.8vh, 2.55rem); }
.floor-tag { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .58rem; padding: .35rem .64rem .35rem .4rem; background: var(--ink); color: var(--white); font: 800 .86rem/1.18 var(--mono); text-transform: uppercase; letter-spacing: .075em; }
.floor-tag i { width: 1.08rem; height: .77rem; background: var(--hazard); }
.floor-line-track { flex: 1; min-width: 12px; border-top: 1px dashed #aaa69b; }
.floor-line-end { font: 700 .77rem/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-copy { grid-area: copy; align-self: end; min-width: 0; }
.eyebrow { font: 800 .79rem/1.35 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: .52rem; margin-bottom: .95rem; }
.hero-eyebrow::before { content: ''; width: 1.35rem; height: 4px; background: var(--orange); }
.hero-title, .floor-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; }
.hero-title { font-size: clamp(3.75rem, 7.1vw, 7.02rem); line-height: .96; letter-spacing: -.012em; }
.hero-title span { display: block; }
.ticker-tag { display: inline-block; margin: .87rem 0 1.1rem .1rem; padding: .13rem .54rem .16rem; background: var(--yellow); border: 2px solid var(--ink); font: 900 clamp(1.25rem, 2vw, 1.66rem)/1.15 var(--mono); transform: rotate(-3deg); }
.hero-slogan { font: 900 clamp(1.56rem, 2.62vw, 2.48rem)/1.05 var(--sans); letter-spacing: -.055em; }
.hero-description { max-width: 39ch; margin-top: .63rem; color: var(--muted); }
.hero-controls { grid-area: controls; align-self: start; min-width: 0; padding-block: 1.05rem .85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem .8rem; margin-bottom: .88rem; }
.hero-actions .button { min-width: 9.1rem; }
.contract { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'label button' 'value button' 'status status'; align-items: center; width: min(100%, 28rem); padding: .42rem .45rem .42rem .73rem; border: 1.5px solid var(--ink); background: #fbfaf6; }
.contract label { grid-area: label; color: var(--muted); font: 800 .71rem/1.1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.contract input { grid-area: value; min-width: 0; width: 100%; padding: .17rem .4rem .1rem 0; border: 0; background: transparent; color: var(--ink); font: 800 .92rem/1.3 var(--mono); text-overflow: ellipsis; }
.copy-button { grid-area: button; display: flex; align-items: center; gap: .28rem; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: .2rem .52rem; background: #f2efe5; border: 1px solid var(--ink); font: 800 .7rem/1 var(--mono); text-transform: uppercase; }
.copy-button:disabled { border-color: #c1beb4; color: #555147; }
.copy-button:not(:disabled):hover { background: var(--yellow); }
.copy-button[data-copied] { background: #dbeccc; }
.copy-message { grid-area: status; margin-top: .35rem; font: 700 .78rem/1.35 var(--mono); }
.copy-message:empty { margin-top: 0; }
.clipboard-field { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

.hero-scene { grid-area: scene; align-self: center; position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.155; }
.scene-grid { position: absolute; inset: .82rem 0 1.4rem; background: linear-gradient(90deg, #77705f1f 1px, transparent 1px) center / 28px 28px, linear-gradient(#77705f1f 1px, transparent 1px) center / 28px 28px, #f8f6ef; border: 1px solid #d6d2c4; mask-image: linear-gradient(to bottom, #000 0% 71%, transparent 100%); }
.scene-coordinates { position: absolute; inset: .82rem 0 3.05rem; pointer-events: none; }
.scene-coordinates span { position: absolute; width: 1.07rem; height: 1.07rem; border-color: var(--ink); border-style: solid; }
.scene-coordinates span:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.scene-coordinates span:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.scene-coordinates span:nth-child(3) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.scene-coordinates span:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.scene-status { position: absolute; right: .95rem; top: 1.68rem; display: inline-flex; align-items: center; gap: .42rem; padding: .42rem .55rem; border: 1.5px solid var(--ink); background: var(--white); box-shadow: 2px 2px 0 var(--ink); font: 800 .74rem/1.08 var(--mono); letter-spacing: .055em; text-transform: uppercase; z-index: 4; }
.scene-status span { width: .55rem; height: .55rem; border: 1px solid var(--ink); background: var(--green); }
.hero-candles { position: absolute; width: 100%; height: auto; inset: 3% 0 auto; }
.hero-moving-candle { animation: candle-drift 4.6s ease-in-out infinite alternate; }
.candle-delay { animation-delay: -1.6s; }
@keyframes candle-drift { from { transform: translateY(-4px); } to { transform: translateY(10px); } }
.hero-pepe { position: absolute; z-index: 3; left: 2%; bottom: 16%; width: 80%; height: auto; }
.hero-surface { position: absolute; z-index: 2; width: 100%; height: auto; bottom: 3%; }
.scene-caption { position: absolute; bottom: 0; right: .12rem; font: 800 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.descend { display: flex; align-items: center; justify-self: center; width: fit-content; min-height: 2.75rem; gap: .6rem; padding: .26rem .3rem; font: 800 .8rem/1.25 var(--mono); text-transform: uppercase; text-decoration: none; letter-spacing: .08em; }
.hero-inner > .descend { grid-area: down; }
.descend-icon { display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border: 1.5px solid var(--ink); background: var(--yellow); transition: transform 140ms; }
.descend:hover .descend-icon { transform: translateY(3px); }

.floor-divider { height: clamp(1.8rem, 4.4vw, 4rem); background: var(--divider-bg) url('assets/images/floor-divider.svg') center top / 100% 100% no-repeat; }
.report-divider { --divider-bg: var(--paper); }
.evidence-divider { --divider-bg: var(--concrete); }
.evidence-divider::before, .report-divider::before { display: block; width: 100%; height: 8px; border-block: 1px solid var(--ink); background: var(--hazard); content: ''; }
.report-floor { background: var(--paper); }
.evidence-floor { background: var(--concrete); }
.lower-inner { padding-block: clamp(1.2rem, 3.3vw, 2.75rem) 1rem; }
.floor-title { margin: 1.08rem 0 1.25rem; font-size: clamp(3rem, 6.5vw, 6rem); line-height: 1; letter-spacing: -.01em; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: stretch; gap: clamp(1rem, 3.1vw, 2.8rem); padding-right: 4px; }
.report-sheet, .simulator, .chart-panel, .crew-panel { min-width: 0; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.report-sheet { position: relative; display: flex; flex-direction: column; background: #fffefa; padding: clamp(1rem, 2.1vw, 1.65rem); }
.report-sheet-heading { display: flex; gap: .64rem; align-items: center; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.report-file { width: 1.75rem; height: 1.75rem; }
.report-sheet-heading .eyebrow { font-size: .66rem; }
.report-sheet h3, .simulator h3, .crew-panel h3 { font: 900 clamp(1.8rem, 2.8vw, 2.8rem)/1.03 var(--display); text-transform: uppercase; }
.report-sheet h3 { font-size: clamp(1.6rem, 2.45vw, 2.4rem); }
.case-number { margin-left: auto; max-width: 7rem; border: 1px solid; padding: .27rem .37rem; font: 800 .73rem/1.2 var(--mono); text-align: center; }
.case-number span { white-space: nowrap; }
.historical-label { margin: .85rem 0 .45rem; color: var(--muted); font: 800 .72rem/1.35 var(--mono); letter-spacing: .025em; text-transform: uppercase; }
.incident-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .85rem; }
.incident-facts > div { padding: .65rem 0 .6rem; border-bottom: 1px dashed var(--line); }
.incident-facts dt, .verdict-fields dt { font: 800 .71rem/1.22 var(--mono); letter-spacing: .035em; text-transform: uppercase; }
.incident-facts dd { margin-top: .23rem; font: 700 .98rem/1.28 var(--sans); }
.incident-facts .incident-stat { color: var(--stamp); font: 900 clamp(1.04rem, 1.9vw, 1.72rem)/1.15 var(--sans); letter-spacing: -.035em; }
.fact-context { display: block; margin-top: .18rem; color: var(--muted); font: 700 .7rem/1.2 var(--mono); }
.report-story { margin-block: .85rem 1.05rem; color: var(--muted); }
.fictional-report { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .75rem; margin-top: auto; padding: .65rem .07rem .24rem; border-top: 2px solid var(--ink); }
.fictional-report .eyebrow { grid-column: 1 / -1; color: var(--muted); font-size: .7rem; }
.verdict-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .6rem; }
.verdict-fields dd { margin-top: .13rem; font: 900 .87rem/1.2 var(--sans); text-transform: uppercase; }
.report-stamp { align-self: center; width: fit-content; padding: .12em .26em .15em; color: var(--stamp); outline: 1px dashed currentColor; outline-offset: -6px; border: 3px solid; border-radius: 2px 5px 3px 4px; font: 900 clamp(1.2rem, 2.6vw, 2.4rem)/.95 var(--display); text-align: center; text-transform: uppercase; transform: rotate(-7deg); }

.simulator { position: relative; display: flex; flex-direction: column; background: var(--white); }
.sim-header { padding: .9rem 1rem .78rem; border-bottom: 2px solid var(--ink); }
.sim-header .eyebrow { margin-bottom: .24rem; }
.sim-stage { position: relative; isolation: isolate; min-height: 9rem; flex: 1 0 auto; aspect-ratio: 2.57; overflow: hidden; background: linear-gradient(90deg, #77705f29 1px, transparent 1px) center / 20px 20px, linear-gradient(#77705f29 1px, transparent 1px) center / 20px 20px, #e8e5d9; }
.sim-status { position: absolute; z-index: 3; top: .55rem; right: .55rem; max-width: 57%; padding: .33rem .44rem; border: 1px solid; background: var(--white); font: 800 .68rem/1.15 var(--mono); text-transform: uppercase; }
.sim-stage[data-phase='working'] .sim-status { background: var(--yellow); }
.sim-floor { position: absolute; width: min(100%, 36rem); height: auto; left: 50%; bottom: -7%; transform: translateX(-50%); }
.sim-pepe { position: absolute; width: min(43%, 13rem); height: auto; left: 7%; bottom: 18%; }
.sim-scan { position: absolute; width: 15%; height: 17%; left: 31%; bottom: 39%; border-radius: 50%; background: #d7f6ff; opacity: 0; transform: rotate(-39deg); }
.sim-extra-cracks { opacity: 0; }
.sim-stage[data-phase='working'] .sim-scan { animation: scan-floor 720ms ease-out; }
.sim-stage[data-phase='working'] .sim-extra-cracks { animation: reveal-cracks var(--inspection-duration) linear both; }
.sim-stage[data-phase='working'] .sim-candles { animation: break-support var(--inspection-duration) ease-in both; }
.sim-stage[data-phase='working'] .sim-fragments { animation: drop-fragments var(--inspection-duration) ease-out both; }
.sim-stage[data-phase='complete'] .sim-extra-cracks { opacity: 1; }
.sim-stage[data-phase='complete'] .sim-candles { opacity: .68; transform: translateY(22px); }
.sim-stage[data-phase='complete'] .sim-fragments { transform: translateY(4px); }
@keyframes scan-floor { 0%, 100% { opacity: 0; transform: rotate(-39deg) scaleX(.3); } 50% { opacity: .67; transform: rotate(-39deg) scaleX(1); } }
@keyframes reveal-cracks { 0%, 33% { opacity: 0; } 39%, 100% { opacity: 1; } }
@keyframes break-support { 0%, 37% { transform: translateY(0); opacity: 1; } 78%, 100% { transform: translateY(22px); opacity: .68; } }
@keyframes drop-fragments { 0%, 40% { transform: translateY(0); } 55% { transform: translateY(9px); } 75%, 100% { transform: translateY(4px); } }
.sim-counters { display: grid; grid-template-columns: .9fr .91fr 1.19fr; background: #f8f5e7; border-block: 2px solid var(--ink); }
.sim-counters div { min-width: 0; padding: .55rem .63rem .62rem; }
.sim-counters div + div { border-left: 1px solid var(--ink); }
.sim-counters dt { font: 800 .68rem/1.25 var(--mono); letter-spacing: .035em; text-transform: uppercase; }
.sim-counters dd { margin-top: .22rem; overflow-wrap: anywhere; font: 900 clamp(.75rem, 1.15vw, 1rem)/1.05 var(--sans); text-transform: uppercase; }
.sim-controls { position: relative; padding: .75rem .85rem .3rem; }
.inspect-button { width: 100%; min-height: 2.9rem; }
.inspect-button:disabled { background: #efdb83; cursor: progress; }
.sim-verdict { min-height: 2.3rem; width: fit-content; max-width: 100%; margin: 0 0 .62rem; padding: .24rem .55rem .27rem; border: 2px solid var(--stamp); color: var(--stamp); font: 900 .92rem/1.35 var(--mono); text-transform: uppercase; }
.sim-verdict.verdict-in { animation: verdict-stamp 240ms ease-out both; }
@keyframes verdict-stamp { from { opacity: .2; transform: scale(1.06) rotate(-1deg); } to { opacity: 1; transform: none; } }
.sim-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .55rem; padding-top: .3rem; color: var(--muted); font: 700 .72rem/1.4 var(--mono); }
.reset-button { display: inline-flex; align-items: center; gap: .25rem; min-height: 2.75rem; padding: 0 .15rem; border: 0; background: none; color: inherit; font: 800 .68rem/1.2 var(--mono); text-transform: uppercase; }
.reset-button:not(:disabled):hover { text-decoration: underline; }
.reset-button .icon { width: .95rem; height: .95rem; }
.reset-button:disabled { opacity: .68; }
.lower-descend { margin: 1rem auto 0; }

.evidence-intro { margin: -.78rem 0 1.12rem; color: var(--muted); font-size: 1.15rem; }
.evidence-layout { display: grid; grid-template-columns: minmax(0, 2.28fr) minmax(0, 1fr); align-items: stretch; gap: clamp(1rem, 2.45vw, 2rem); padding-right: 4px; }
.chart-panel { display: flex; flex-direction: column; background: #252525; color: #f8f7f1; }
.chart-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .8rem; min-height: 3rem; padding: .58rem .85rem; border-bottom: 1px solid #666258; font: 800 .77rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.chart-head h3 { font: 900 .9rem/1.2 var(--mono); letter-spacing: .04em; }
.chart-network { color: #cecbc0; }
.chart-head > span { color: #f1efdf; }
.chart-body { display: grid; min-height: clamp(19rem, 30vw, 28rem); flex: 1; background: #292929; }
.chart-placeholder { display: grid; align-content: center; justify-items: center; gap: .55rem; padding: 1rem; text-align: center; background-image: linear-gradient(90deg, #ffffff10 1px, transparent 1px), linear-gradient(#ffffff10 1px, transparent 1px); background-size: 26px 26px; background-position: center; }
.evidence-icon { width: 2.72rem; height: 2.72rem; color: var(--yellow); stroke-width: 1.05; }
.pending-title { font: 900 clamp(1.65rem, 2.9vw, 2.4rem)/1.04 var(--display); text-transform: uppercase; }
.chart-placeholder p:last-child { max-width: 33ch; color: #dedbd0; }
.chart-iframe { width: 100%; height: 100%; min-height: clamp(22rem, 35vw, 32rem); border: 0; }
.chart-body[data-chart-state='starting'] > * { grid-area: 1 / 1; }
.chart-body[data-chart-state='starting'] > .chart-placeholder { z-index: 1; pointer-events: none; }
.chart-fallback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1rem; border-top: 1px solid #666258; padding: .35rem .8rem; color: #ece9dd; font-size: .86rem; }
.chart-direct { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--yellow); font-weight: 700; }

.crew-panel { display: flex; flex-direction: column; align-items: flex-start; background: #fbf9ee; padding: clamp(1rem, 2.15vw, 1.6rem); scroll-margin-top: .55rem; }
.crew-panel::before { content: ''; width: 100%; height: .6rem; margin-bottom: 1rem; background: var(--hazard); border: 1px solid var(--ink); }
.crew-badge { width: 3rem; height: auto; margin-bottom: .53rem; }
.crew-panel h3 { font-size: clamp(2rem, 3.25vw, 3.06rem); }
.crew-panel p { margin-top: .55rem; }
.crew-panel .crew-pending { margin: .75rem 0; padding: .28rem .4rem; border: 1px dashed #a7a291; color: var(--muted); font: 700 .78rem/1.35 var(--mono); }
.crew-panel .buy-button { width: 100%; margin-top: auto; }
.crew-panel .contract { margin-top: .8rem; }
.social-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.hero-social { margin-top: .57rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; gap: .37rem; min-width: 2.75rem; min-height: 2.75rem; padding: .34rem; border: 1px solid transparent; font: 800 .8rem/1.2 var(--sans); text-decoration: none; transition: background-color 140ms, transform 140ms; }
.social-link:hover { border-color: var(--ink); background: #fff1a1; transform: translateY(-2px); }
.social-link img { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; object-fit: contain; }
.crew-social { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .5rem 0 .85rem; }
.crew-social .social-link { justify-content: flex-start; border-color: #c4beac; }
.crew-social .social-link:hover { border-color: var(--ink); }

.site-footer { margin-top: clamp(1.9rem, 4vw, 3rem); border-top: 2px solid var(--ink); }
.footer-main, .footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem 1.3rem; }
.footer-main { padding: .9rem 0 .65rem; }
.footer-brand { display: flex; align-items: center; gap: .42rem; }
.footer-brand img { width: 2.85rem; height: auto; }
.footer-brand strong { display: block; font-weight: 900; line-height: 1.1; }
.footer-brand div > span { font: 700 .76rem/1.25 var(--mono); }
.footer-slogan { font-weight: 900; letter-spacing: -.025em; }
.back-to-top { display: inline-flex; gap: .3rem; align-items: center; min-height: 2.75rem; padding: .2rem .38rem; font: 800 .78rem/1.25 var(--mono); text-transform: uppercase; text-decoration: none; }
.back-to-top:hover { text-decoration: underline; }
.footer-legal { border-top: 1px dashed #aaa; padding: .7rem 0 .45rem; color: var(--muted); font-size: .8rem; }

@media (min-width: 64rem) and (min-height: 45rem) {
  html { scroll-snap-type: y proximity; }
}

@media (max-width: 68rem) {
  .hero-title { font-size: clamp(3.2rem, 7.48vw, 5.3rem); }
  .hero-inner { column-gap: clamp(1rem, 3.3vw, 2.5rem); }
  .scene-caption { font-size: .66rem; }
  .case-number { font-size: .65rem; }
}

@media (min-width: 49.01rem) and (max-height: 52rem) {
  .hero-inner { padding-top: 1.35rem; }
  .hero-line { margin-bottom: 1.25rem; }
  .hero-title { font-size: clamp(3.2rem, 6.7vw, 6.15rem); }
  .hero-scene { max-width: 38rem; justify-self: end; }
}

@media (max-width: 49rem) {
  :root { --header-height: 6.3rem; --gutter: clamp(1rem, 4.7vw, 2.3rem); }
  .header-inner { grid-template-columns: 1fr auto; grid-template-rows: 3.62rem 2.55rem; gap: 0 .65rem; }
  .brand-icon { width: 2.42rem; }
  .header-buy { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; align-self: stretch; border-top: 1px solid #e8e3d6; }
  .main-nav a { flex: 1; min-height: 2.55rem; padding-inline: .15rem; }
  .main-nav a::after { inset-inline: max(.08rem, 9%); }
  .hero-inner { grid-template-areas: 'line' 'copy' 'scene' 'controls' 'down'; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding-top: 1.05rem; }
  .hero-line { margin-bottom: 1.1rem; }
  .hero-eyebrow { margin-bottom: .55rem; }
  .hero-title { font-size: clamp(3.25rem, 11vw, 5.75rem); }
  .hero-title span { display: inline; }
  .ticker-tag { margin-block: .61rem .82rem; }
  .hero-slogan { font-size: clamp(1.45rem, 4.6vw, 2.1rem); }
  .desktop-break { display: none; }
  .hero-description { max-width: 45ch; margin-top: .38rem; }
  .hero-scene { width: min(100%, 32rem); justify-self: center; margin-block: .65rem .18rem; }
  .hero-controls { padding-top: .75rem; }
  .report-layout, .evidence-layout { grid-template-columns: minmax(0, 1fr); gap: 1.05rem; }
  .floor-title { margin-block: .85rem 1.04rem; }
  .sim-stage { aspect-ratio: 2.65; }
  .sim-pepe { width: min(42%, 14.3rem); left: 11%; }
  .report-stamp { font-size: clamp(1.4rem, 4vw, 2.15rem); }
  .evidence-intro { margin-top: -.5rem; }
  .chart-body { min-height: 22rem; }
  .chart-iframe { min-height: 26rem; }
  .crew-panel .buy-button { margin-top: .55rem; width: min(100%, 28rem); }
  .crew-break { display: none; }
}

@media (max-width: 32rem) {
  .floor-line { gap: .55rem; }
  .floor-line-end { font-size: .64rem; letter-spacing: .02em; }
  .floor-tag { font-size: .73rem; }
  .floor-tag i { width: .83rem; height: .65rem; }
  .hero-title { font-size: clamp(3.07rem, 12.5vw, 4.2rem); }
  .hero-title span { display: block; }
  .hero-scene { aspect-ratio: 1.13; }
  .scene-status { top: .85rem; right: .5rem; gap: .28rem; padding: .24rem .32rem; font-size: .63rem; }
  .scene-status span { width: .42rem; height: .42rem; }
  .scene-coordinates span { width: .82rem; height: .82rem; }
  .scene-caption { font-size: .63rem; }
  .hero-pepe { width: 75%; bottom: 14.5%; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .57rem; padding-right: 3px; }
  .hero-actions .button { min-width: 0; padding-inline: .46rem; font-size: .9rem; }
  .contract { width: 100%; }
  .report-file { display: none; }
  .fictional-report { gap: .6rem .5rem; }
  .verdict-fields { gap: .5rem .3rem; }
  .floor-title { font-size: clamp(2.65rem, 10.1vw, 4.3rem); }
  .sim-stage { aspect-ratio: 2.24; }
  .sim-pepe { width: 45%; left: 7%; bottom: 19%; }
  .sim-scan { left: 33%; }
  .sim-foot { padding-top: .55rem; }
  .sim-counters div { padding-inline: .43rem; }
  .chart-body { min-height: 18rem; }
  .chart-iframe { min-height: 24rem; }
  .footer-main { column-gap: .3rem; }
  .footer-slogan { order: 4; width: 100%; }
}

@media (max-width: 22rem) {
  .floor-line-end { display: none; }
  .fictional-report { grid-template-columns: minmax(0, 1fr); }
  .report-stamp { margin-top: .24rem; justify-self: end; }
  .wordmark { gap: .42rem; }
  .wordmark strong { font-size: 1.1rem; }
  .wordmark small { font-size: .56rem; }
  .header-buy { padding-inline: .5rem; font-size: .73rem; white-space: nowrap; }
  .main-nav a { font-size: .75rem; }
  .hero-title { font-size: clamp(2.55rem, 13.4vw, 2.93rem); }
  .hero-actions .button { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
