/* =========================================================
   ABOVE SEE · abovesee.com
   Surveillance HUD + declassified paper + the logo's copper and blue.
   ========================================================= */
:root {
  --ink: #07090d;          /* night */
  --ink-2: #0d1118;
  --ink-3: #151b25;
  --line: rgba(244, 241, 234, .12);
  --paper: #efe9df;        /* declassified paper */
  --brown: #2b1709;        /* logo dark brown */
  --amber: #e2782c;        /* logo copper */
  --amber-2: #ff9a4d;
  --red: #ff3b30;          /* red string */
  --blue: #3ab0f0;         /* logo lens / LED blue */
  --bone: #f4f1ea;
  --mute: #9aa3b2;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1280px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 17px/1.6 var(--display); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.02; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 4.2vw, 58px); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.hl { color: var(--amber); }
.eyebrow { font-size: 13px; color: var(--amber); text-transform: uppercase; margin-bottom: 18px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: 14px 24px;
  font: 700 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--r); transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-2); box-shadow: 0 0 0 4px rgba(226,120,44,.25); transform: translateY(-1px); }
.btn--ghost { border: 1px solid rgba(244,241,234,.4); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.link-arrow {
  font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; gap: .6em; align-items: center; border-bottom: 2px solid var(--amber); padding-bottom: 4px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(5px); }
.stamp {
  display: inline-block; font: 800 13px var(--mono); letter-spacing: .2em; color: var(--red);
  border: 2px solid var(--red); padding: 4px 10px; transform: rotate(-6deg);
}

/* ---------- utility bar ---------- */
.utility { background: #000; font-size: 11px; color: var(--mute); border-bottom: 1px solid var(--line); }
.utility__in { display: flex; gap: 28px; align-items: center; height: 34px; }
.utility__yt { margin-left: auto; color: var(--bone); font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.utility__yt:hover { color: var(--amber); }
.live { color: var(--red); font: 700 11px var(--mono); letter-spacing: .14em; display: inline-flex; gap: 8px; align-items: center; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(7,9,13,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; height: 78px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--bone); }
.brand__img { height: 46px; width: auto; filter: drop-shadow(0 0 10px rgba(58,176,240,.25)); transition: filter .3s; }
.brand:hover .brand__img { filter: drop-shadow(0 0 14px rgba(58,176,240,.6)); }
.brand__word { font: 900 21px/1 var(--display); font-variation-settings: "wdth" 125; letter-spacing: .06em; }
.brand__word b { color: var(--amber); font-weight: 900; margin-left: .28em; }
.brand__A { display: inline-block; width: .92em; height: .72em; vertical-align: baseline; margin-right: .02em; overflow: visible; }
.nav { margin-left: auto; display: flex; gap: 8px; }
.nav__link { padding: 10px 14px; font: 600 15px var(--display); font-variation-settings: "wdth" 108; position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--amber);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav__link:hover::after, .nav__link.is-on::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 920px); display: flex; align-items: flex-end; overflow: hidden; background: radial-gradient(ellipse at 70% 40%, #1a1008 0%, var(--ink) 60%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, rgba(7,9,13,.92) 0%, rgba(7,9,13,.55) 45%, transparent 75%),
    linear-gradient(0deg, rgba(7,9,13,.9) 0%, transparent 40%);
}
.hero__hud { position: absolute; inset: 24px; pointer-events: none; z-index: 2; }
.hud { position: absolute; font-size: 11px; color: rgba(244,241,234,.6); line-height: 1.7; }
.hud b { color: var(--amber); font-weight: 500; }
.hud.tl { top: 0; left: 0; color: var(--blue); }
.hud.tr { top: 0; right: 0; text-align: right; color: var(--amber); }
.hud.bl { bottom: 0; left: 0; display: none; }
.hud.br { bottom: 0; right: 0; color: var(--red); animation: blink 1.4s infinite; }
.hero__hud::before, .hero__hud::after { content: ""; position: absolute; width: 40px; height: 40px; border: 2px solid rgba(226,120,44,.7); }
.hero__hud::before { top: 40px; left: 0; border-right: 0; border-bottom: 0; }
.hero__hud::after { bottom: 30px; right: 0; border-left: 0; border-top: 0; border-color: rgba(58,176,240,.7); }
.hero__copy { position: relative; z-index: 3; padding: 0 0 clamp(56px, 9vh, 110px); }
.hero__h { font-size: clamp(54px, 9.4vw, 148px); line-height: .9; font-weight: 900; font-variation-settings: "wdth" 120; letter-spacing: -.02em; margin-bottom: 28px; }
.hero__h span { display: block; }
.hero__h2 { color: var(--amber); }
.hero__sub { font-size: clamp(20px, 2vw, 28px); font-weight: 600; font-variation-settings: "wdth" 108; margin-bottom: 10px; }
.hero__small { max-width: 560px; color: var(--mute); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- origin ---------- */
.origin { padding: 120px 0; background: var(--ink-2); }
.origin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.origin__board canvas { width: 100%; aspect-ratio: 5/4; border-radius: var(--r); background: #2b1d12; }
.caption { font-size: 11px; color: var(--mute); margin-top: 12px; }
.origin__copy p { color: #c9ccd3; font-size: 18px; }
.origin__copy strong { color: var(--bone); }

/* ---------- case files index ---------- */
.files-hero { padding: 110px 0 60px; border-bottom: 1px solid var(--line);
  background: linear-gradient(rgba(58,176,240,.05) 1px, transparent 1px) 0 0/100% 32px, radial-gradient(ellipse at 80% 0%, #1a1008, var(--ink) 60%); }
.files-hero__h { font-size: clamp(56px, 9vw, 132px); font-weight: 900; font-variation-settings: "wdth" 122; line-height: .9; }
.files-hero__sub { max-width: 640px; color: var(--mute); font-size: 19px; }
.files { padding: 70px 0 120px; }
.filelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.filelist:has(.file) + .files-empty { display: none; }
.file {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
.file::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--amber); transform: scaleY(0); transition: transform .25s; transform-origin: top; }
.file:hover { border-color: rgba(226,120,44,.6); transform: translateY(-3px); }
.file:hover::before { transform: scaleY(1); }
.file__num { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.file__meta { color: var(--mute); font-size: 11px; }
.file__title { font: 800 26px/1.08 var(--display); font-variation-settings: "wdth" 110; }
.file__dek { color: #c9ccd3; }
.files-empty { text-align: center; padding: 80px 24px; border: 1px dashed var(--line); border-radius: var(--r); }
.files-empty .stamp { font-size: 18px; margin-bottom: 26px; }
.files-empty .mono { color: var(--amber); font-size: 13px; }
.files-empty p:not(.mono) { color: var(--mute); max-width: 460px; margin: 0 auto 28px; }

/* ---------- case file post ---------- */
.post__head { padding: 70px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0%, #1a1008, var(--ink) 60%); }
.post__wrap { max-width: 1000px; }
.post__back { font-size: 12px; color: var(--mute); display: inline-block; margin-bottom: 34px; }
.post__back:hover { color: var(--amber); }
.post__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; color: var(--mute); margin-bottom: 26px; text-transform: uppercase; }
.post__meta .stamp { margin-right: 10px; }
.post__h { font-size: clamp(40px, 6vw, 84px); font-weight: 900; font-variation-settings: "wdth" 118; line-height: .95; }
.post__dek { font-size: clamp(19px, 1.8vw, 24px); color: #c9ccd3; max-width: 760px; }
.post__grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; padding: 64px 0 120px; align-items: start; }
.post__video { position: sticky; top: 130px; }
.post__phone { padding: 10px; background: #111; border-radius: 34px; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px var(--line); }
.post__phone iframe { width: 100%; aspect-ratio: 9/16; border: 0; border-radius: 26px; }
.post__yt { margin-top: 18px; width: 100%; justify-content: center; }
.post__body { max-width: 720px; font-size: 19px; line-height: 1.7; color: #d6d8de; }
.post__body h2 { font-size: 30px; color: var(--bone); margin-top: 2em; }
.post__body h2:first-child { margin-top: 0; }
.post__body a { color: var(--amber); border-bottom: 1px solid rgba(226,120,44,.4); }
.post__body strong { color: var(--bone); }
.timeline { list-style: none; padding: 0; margin: 0 0 1.5em; border-left: 2px solid rgba(226,120,44,.5); }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--amber); }
.timeline time { display: block; font-size: 12px; color: var(--amber); text-transform: uppercase; }
.finding-box { margin: 2em 0; padding: 26px 28px; border: 1px solid rgba(58,176,240,.5); border-left: 4px solid var(--blue); background: rgba(58,176,240,.06); border-radius: var(--r); }
.finding-box__label { color: var(--blue); font-size: 12px; margin-bottom: 8px; }
.finding-box p:last-child { margin: 0; color: var(--bone); font-weight: 600; }
.post__closer { font: 800 26px/1.2 var(--display); font-variation-settings: "wdth" 112; color: var(--amber); margin: 1.6em 0; }
.sources { font-size: 13px; padding-left: 20px; }
.sources li { margin-bottom: 10px; }
.post__note { font-size: 13px; color: var(--mute); margin-top: 2em; }

/* ---------- footer ---------- */
.ftr { background: #000; padding: 26px 0; color: var(--mute); border-top: 1px solid var(--line); }
.ftr__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; }
.ftr__base a:hover { color: var(--amber); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 900px) { .hud.bl { display: block; } }
@media (max-width: 860px) {
  .origin__grid, .post__grid { grid-template-columns: 1fr; }
  .post__video { position: static; max-width: 340px; }
  .origin { padding: 80px 0; }
  .hide-sm, .hdr__sub { display: none; }
  .hud.tl, .hero__hud::before { display: none; }
  .hdr__in { gap: 12px; }
  .brand__word { font-size: 17px; }
}
@media (max-width: 480px) { .brand__img { height: 36px; } .nav__link { padding: 10px 8px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
