/* VOICE   occasion: a company website, confident and quiet, read by engineers and security buyers
   IDEA    a confidential case file stamped in red, like the logo
   PICTURE a full-width SDR spectrum waterfall with real bands annotated
   COLOUR  white paper, black ink, stamp red #d4000f, one warm grey
   TYPE    Archivo (wide, heavy) for headings + Archivo for text, Special Elite for stamps only
   LAYOUT  laptop: title left, stamp right, waterfall across the full width beneath; phone: title, waterfall, stamp hidden */

:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #0e0d0d);
  --ink: light-dark(#141212, #f1eeec);
  --muted: light-dark(#5d5756, #a9a2a0);
  --line: light-dark(#e4dedc, #2b2726);
  --tint: light-dark(#f6f2f1, #171515);
  --red: light-dark(#d4000f, #ff3b45);
  --red-ink: #ffffff;
  --band: light-dark(#141212, #050505);
  --band-ink: #f1eeec;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --stamp: "Special Elite", "Courier New", monospace;
  --head: "Archivo", system-ui, sans-serif;
  --gut: max(5vw, 16px);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--head); font-variation-settings: "wdth" 100; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-variation-settings: "wdth" 115; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 850; max-width: 20ch; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 8vw, 112px); }
.band.tint { background: var(--tint); }
.band.ink { background: var(--band); color: var(--band-ink); --muted: #a9a2a0; --line: #2f2a29; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 2px solid var(--red); border-radius: 4px; background: var(--red); color: var(--red-ink); font: 650 16px/1.2 var(--head); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: transparent; color: var(--red); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-variation-settings: "wdth" 115; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 52px; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 550; }
nav a:not(.btn):hover { color: var(--red); }

/* hero */
.hero { border-bottom: 4px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(36px, 4.5vw, 64px) clamp(28px, 3vw, 44px); }
.file-no { font-size: 15px; color: var(--muted); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stamp-sm { font-family: var(--stamp); color: var(--red); border: 2px solid var(--red); padding: 2px 10px 0; font-size: 15px; transform: rotate(-3deg); display: inline-block; letter-spacing: .04em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); max-width: 58ch; margin-top: 24px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stamp img { width: 100%; max-width: 380px; margin-left: auto; transform: rotate(4deg); }

.waterfall { position: relative; margin: 0; background: #050404; color: #f1eeec; }
.waterfall canvas { display: block; width: 100%; height: clamp(200px, 26vw, 320px); }
.wf-labels { position: absolute; inset: 0 0 auto 0; height: clamp(200px, 26vw, 320px); pointer-events: none; }
.wf-tag { position: absolute; font: 500 13px/1.3 var(--mono); white-space: nowrap; background: rgba(5, 4, 4, .8); padding: 4px 8px; border-left: 2px solid #ff3b45; }
.wf-tag.r { transform: translateX(-100%); border-left: 0; border-right: 2px solid #ff3b45; text-align: right; }
.wf-tag small { display: block; color: #b9b1ae; font-size: 12px; }
.wf-caption { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; font: 13px/1.4 var(--mono); }
.wf-caption .muted { color: #9a928f; }

/* section heads */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--muted); max-width: 60ch; }
.ink .section-head p { color: #c9c1be; }

/* services as case files */
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.case { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.case:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.case-id { font-family: var(--stamp); color: var(--red); font-size: 20px; border: 2px solid var(--red); height: 48px; display: grid; place-items: center; transform: rotate(-4deg); }
.case h3 { margin-bottom: 10px; }
.case p { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 13px/1.3 var(--mono); padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--tint); }

/* engagements */
.eng-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #3a3433; }
.eng { padding: 32px 32px 8px 0; }
.eng + .eng { padding-left: 32px; border-left: 1px solid #3a3433; }
.eng-time { color: #ff5a62; font-weight: 650; margin: 6px 0 14px; }
.eng p:not(.eng-time) { color: #c9c1be; }
.eng ul { padding: 0; margin: 18px 0 0; list-style: none; }
.eng li { padding: 8px 0 8px 22px; border-top: 1px solid #2f2a29; position: relative; }
.eng li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 2px; background: #ff3b45; }

/* process */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font: 800 34px/1 var(--head); font-variation-settings: "wdth" 115; color: var(--red); }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); }

.report { margin: 0; position: sticky; top: 96px; }
.paper { position: relative; background: light-dark(#fff, #1a1717); border: 1px solid var(--line); padding: 28px 28px 84px; box-shadow: 8px 8px 0 var(--tint); transform: rotate(.6deg); overflow: hidden; }
.paper-head { display: flex; justify-content: space-between; align-items: center; font: 500 13px/1 var(--mono); color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.sev { background: var(--red); color: #fff; padding: 5px 10px; border-radius: 3px; font-weight: 600; }
.paper h3 { font-size: 22px; margin-bottom: 16px; }
.paper dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0 0 16px; font: 14px/1.5 var(--mono); }
.paper dt { color: var(--muted); }
.paper dd { margin: 0; }
.paper p { font-size: 16px; margin-top: 10px; }
.fix { padding: 10px 12px; background: var(--tint); border-left: 3px solid var(--red); }
.redact { background: var(--ink); color: transparent; border-radius: 1px; user-select: none; }
.paper-stamp { position: absolute; right: 22px; bottom: 18px; font: 28px/1 var(--stamp); color: var(--red); border: 3px solid var(--red); padding: 8px 16px 4px; transform: rotate(-14deg); opacity: .8; letter-spacing: .06em; }
.report figcaption { font-size: 14px; margin-top: 18px; }

/* principles */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 40px; }
.rules h3 { font-size: 19px; margin-bottom: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.rules p { color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-grid > div > p { color: var(--muted); margin-top: 20px; max-width: 52ch; }
.contact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 32px 0 0; font-size: 18px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--red); font-weight: 650; }
.brief { display: grid; gap: 6px; padding: 28px; border: 2px solid var(--ink); }
.brief label { font-weight: 650; font-size: 15px; margin-top: 10px; }
.brief label:first-child { margin-top: 0; }
.brief input, .brief select, .brief textarea { font: 16px/1.4 var(--head); color: var(--ink); background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 3px; padding: 11px 12px; width: 100%; }
.brief textarea { resize: vertical; }
.brief .invalid { border-color: var(--red); }
.brief button { margin-top: 18px; justify-self: start; }
.form-note { font-size: 14px; }

/* footer */
.foot { border-top: 4px solid var(--ink); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; font-size: 15px; }
.foot-grid img { width: 90px; }
.foot-grid p:nth-of-type(1) { flex: 1; }

/* narrower screens */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
  .eng-grid { grid-template-columns: minmax(0, 1fr); }
  .eng, .eng + .eng { padding: 28px 0; border-left: 0; }
  .eng + .eng { border-top: 1px solid #3a3433; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  nav a:not(.btn) { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stamp { display: none; }
  .section-head, .process-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case, .case:nth-child(even) { padding: 28px 0; border-left: 0; }
  .report { position: static; }
  .wf-tag:nth-child(2), .wf-tag:nth-child(4), .wf-tag:nth-child(6) { display: none; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .case { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .case-id { font-size: 16px; height: 40px; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brief { padding: 20px; }
  .paper { padding: 20px 20px 76px; transform: none; }
  .paper-stamp { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
