/* Stakeout — shared styles
   Palette: taken from the homepage photo (navy table, brass lock, paper cards). Light pages, navy ink.
   --tape is a paper fill behind navy text; --brand is the main button with white text; --brass only on navy. */
:root {
  --ivory: #f2f1ec;
  --gray: #e6e3da;
  --gray-2: #cfcabd;
  --char: #111e2b;
  --ink-2: #3a4656;
  --mute: #586374;
  --tape: #e6dcc3;
  --tape-deep: #d3bb8b;
  --brand: #1b2b40;
  --night: #111e2b;
  --brass: #d3bb8b;
  --err: #b3261e;
  --ok: #2e6b3f;
  --line: #111e2b22;

  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-type: "Courier Prime", "Courier New", monospace;

  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 1px 0 #111e2b10, 0 10px 30px -12px #111e2b40;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--char);
  font: 400 1.0625rem/1.6 var(--f-body);
  font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 750; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--char); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--tape); }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tape); color: var(--char); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--char); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--char); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 650 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -1px var(--char); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--tape { --bg: var(--brand); --fg: #fff; border-color: var(--brand); }
.btn--ghost { --bg: transparent; --fg: var(--char); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--gray); font: 600 .85rem/1.6 var(--f-body); }
.chip--tape { background: var(--tape); }
.eyebrow { font: 700 .8rem/1 var(--f-type); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin-bottom: 14px; display: block; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ivory) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 1.45rem/1 var(--f-head); letter-spacing: -.04em; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 550; color: var(--ink-2); }
.nav ul a:hover { color: var(--char); text-decoration: underline; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
@media (max-width: 760px) { .nav ul { display: none; } }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); font-size: 1.12rem; }
.alt { background: var(--gray); }

/* ---------- footer ---------- */
footer { background: var(--char); color: var(--gray); padding: 56px 0 40px; }
footer a { color: var(--ivory); }
footer .wrap { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
footer .logo { color: var(--ivory); }
footer small { color: #b3bccb; display: block; margin-top: 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer h4 { font: 700 .8rem/1 var(--f-type); letter-spacing: .12em; text-transform: uppercase; color: #b3bccb; margin-bottom: 14px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* ---------- paper / evidence ---------- */
.paper { background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.typed { font-family: var(--f-type); }
.stamp { display: inline-block; border: 3px solid currentColor; padding: 4px 12px; font: 700 .95rem/1 var(--f-type); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-6deg); border-radius: 4px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
