/* Layout: one black field. Home is a single fixed screen with the wordmark at the centre of a 3D field of names;
   inner pages are one left-aligned column of label / copy rows. Type only. */
:root {
  /* PALETTE — change these five values to re-colour the whole site */
  --bg: #000000;      /* page */
  --ink: #f2f2f2;     /* primary text */
  --mute: #bfbfbf;    /* labels, secondary text */
  --faint: #58595b;   /* field underlines, far labels */
  --line: #1c1c1c;    /* hairlines */
  --board: #1c1c1c;   /* the evidence board surface */
  --thread: #7a2e2e;  /* the red string */
  --paper: #333333;   /* polaroid paper: 80% black */
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --label: 11px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
.label { font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); font-weight: 500; }

/* ---------- header / nav ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) var(--gutter) 26px;
  background: linear-gradient(var(--bg) 55%, transparent);
}
.top .mark { display: block; line-height: 0; }
.top .mark .logo { display: block; height: 11px; width: auto; }
.is-home .top .mark { display: none; }
.home-claim { display: none; font-size: var(--label); letter-spacing: 0.3em; font-weight: 600; text-transform: uppercase; color: var(--ink); }
.is-home .home-claim { display: block; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav a { font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); font-weight: 500; transition: color .3s; white-space: nowrap; }
.nav a i { font-style: normal; color: var(--faint); margin-right: 8px; font-variant-numeric: tabular-nums; transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover i, .nav a[aria-current="page"] i { color: var(--mute); }
/* menu button: a thin three-line burger that turns into a cross */
.menu-btn { display: none; position: relative; z-index: 31; width: 44px; height: 44px; margin: -12px -10px -12px 0; padding: 0;
  background: none; border: 0; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.burger { position: relative; display: block; width: 24px; height: 13px; }
.burger i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.menu-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-open { overflow: hidden; }
/* every page, every width: burger opens a full-screen list of the six pages */
.menu-btn { display: flex; }
.nav { position: fixed; inset: 0; z-index: 30; background: var(--bg); flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 24px);
  padding: 0 var(--gutter); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.nav a { font-size: clamp(28px, 4.6vw, 56px); letter-spacing: -0.03em; text-transform: none; color: var(--mute); font-weight: 500; line-height: 1.15; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a i { display: inline-block; width: 4.2em; font-size: var(--label); letter-spacing: 0.18em; vertical-align: middle; color: var(--faint); }
.menu-open .nav { opacity: 1; visibility: visible; }

/* ---------- home ---------- */
.is-home { height: 100vh; height: 100dvh; overflow: hidden; }
.home { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* evidence board: everything is laid out at full brightness, then a darkness layer leaves only the spotlight */
.home { background: var(--board); --gx: 50%; --gy: 50%; --gr: 0px; }
.board { position: absolute; inset: 0; z-index: 1; }
.is-home .top { background: none; }
.wordmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; line-height: 0; width: 70vw; max-width: none; z-index: 1; }
.wordmark .logo { display: block; width: 100%; height: auto; color: var(--ink); }
.polaroid { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; flex-direction: column; gap: 0;
  width: clamp(84px, min(11vw, 21vh), 168px); padding: clamp(5px, 0.55vw, 9px) clamp(5px, 0.55vw, 9px) 0; background: var(--paper); color: var(--mute);
  transform: translate(-50%, -50%) rotate(var(--rot)); box-shadow: 0 6px 14px rgba(0,0,0,.55); }
.polaroid .photo { display: block; aspect-ratio: 1; background: linear-gradient(170deg, var(--mute), var(--faint)); overflow: hidden; }
.polaroid .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.polaroid .cap { display: block; padding: 0.9em 0 1.05em; text-align: center; font-size: clamp(8px, 0.75vw, 11px); font-weight: 600; letter-spacing: 0.22em; margin-right: -0.22em; text-transform: uppercase; }
@media (max-width: 700px) { .polaroid { left: var(--px); top: var(--py); width: 20vw; padding: 4px 4px 0; } .polaroid .cap { font-size: 7px; letter-spacing: 0.18em; margin-right: -0.18em; padding: 0.8em 0 0.9em; } }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.threads path { fill: none; stroke: var(--thread); stroke-width: 1.3; stroke-linecap: round; filter: drop-shadow(1px 3px 1.5px rgba(0,0,0,.6)); }
.home.static .dark { display: none; }
.home.static { background: var(--bg); }
.home.static .wordmark .logo { filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.dark { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle var(--gr) at var(--gx) var(--gy), rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 25%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.9) 80%, rgba(0,0,0,.968) 100%); }
.home-foot { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.home-foot .r { text-align: right; }
@media (max-width: 700px) {
  .home-foot { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .home-foot .cta { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .op b { font-size: 11px; }
}

/* ---------- button: angled ends, 45° cuts left and right ---------- */
.cta { --h: 38px; --c: calc(var(--h) / 2);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 calc(var(--c) + 12px); border: 0; background: var(--faint); color: var(--mute);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, var(--c) 100%, 0 50%);
  font: inherit; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: color .35s; }
.cta::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg); transition: background .35s;
  clip-path: polygon(calc(var(--c) - 0.59px) 0, calc(100% - var(--c) + 0.59px) 0, calc(100% - 0.41px) 50%, calc(100% - var(--c) + 0.59px) 100%, calc(var(--c) - 0.59px) 100%, 0.41px 50%); }
.cta:hover { color: var(--ink); }
.cta:hover::before { background: transparent; }
.cta:focus-visible { outline: none; color: var(--ink); }
.cta:focus-visible::before { background: transparent; }

/* ---------- inner pages ---------- */
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); padding-block: clamp(130px, 20vh, 210px) clamp(72px, 12vh, 130px); flex: 1; }
.page > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.page > *:nth-child(2) { animation-delay: .06s; } .page > *:nth-child(3) { animation-delay: .12s; }
.page > *:nth-child(4) { animation-delay: .18s; } .page > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
h1 { margin: 22px 0 0; font-weight: 500; font-size: clamp(34px, 5.8vw, 80px); line-height: 1.02; letter-spacing: -0.04em; max-width: 15ch; text-wrap: balance; }
.lede { margin: clamp(22px, 3vw, 36px) 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--mute); max-width: 44ch; }
.block { margin-top: clamp(64px, 10vh, 120px); }
.block > .label { display: block; margin-bottom: 18px; }
.row { display: grid; grid-template-columns: minmax(150px, 280px) minmax(0, 1fr); gap: 8px 32px; padding-block: 24px; border-top: 1px solid var(--line); align-items: baseline; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .v { min-width: 0; }
.row .v p { margin: 0; max-width: 52ch; }
.row .v p + p { margin-top: 6px; color: var(--mute); font-size: 14px; }
.row .v .big { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.row .v a { border-bottom: 1px solid var(--faint); transition: border-color .3s; } .row .v a:hover { border-color: var(--ink); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; padding-block: 20px; } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 28px 0; }
.stats b { display: block; font-weight: 400; font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 12px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.act { margin-top: clamp(48px, 8vh, 88px); display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }

/* ---------- form ---------- */
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 32px; max-width: 860px; }
.f { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .f.wide { grid-column: 1 / -1; }
@media (max-width: 640px) { form { grid-template-columns: 1fr; } }
input, select, textarea { width: 100%; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--faint); border-radius: 0;
  padding: 10px 0 12px; font: inherit; font-size: 17px; outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--ink); }
::placeholder { color: var(--faint); opacity: 1; }
select option { background: var(--bg); color: var(--ink); }
.status { margin: 0; color: var(--mute); font-size: 14px; min-height: 1.5em; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-inline: var(--gutter); padding-block: 26px calc(env(safe-area-inset-bottom, 0px) + 30px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; }
.foot span { font-size: var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.foot .r { text-align: right; }
.foot .s { display: flex; gap: 18px; justify-content: center; }
.foot .s a { display: block; width: 20px; height: 20px; color: var(--mute); transition: color .3s; }
.foot .s a:hover { color: var(--ink); }
.foot .s svg { display: block; width: 100%; height: 100%; }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr 1fr; } .foot .s { grid-column: 1 / -1; grid-row: 1; padding-bottom: 6px; } }
.is-home .foot { display: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
