/* ==========================================================================
   Stonegate Defense — site.css
   Hand-written, no framework, no external requests.

   Everything lives in one stylesheet on purpose: the site is five static
   pages and a strict Content-Security-Policy forbids inline <style> and
   style="" attributes, so all presentation has to be reachable from here.

   Contents
     01  Tokens
     02  Reset + base
     03  Layout primitives
     04  Typography helpers
     05  Buttons + links
     06  Header / navigation
     07  Hero
     08  Cards + grids
     09  Process rail
     10  Framework strip
     11  Founder
     12  Incident banner
     13  Forms
     14  Footer
     15  Page furniture (hero-sm, prose, tables, FAQ)
     16  Reveal animation
     17  Responsive
     18  Reduced motion / print / forced colors
   ========================================================================== */

/* -- 01  Tokens ----------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Surfaces, darkest to lightest. The page sits on ink-800; anything that
     should read as "raised" moves up the scale rather than adding a shadow. */
  --ink-900: #06080b;
  --ink-850: #0a0d12;
  --ink-800: #0e1218;
  --ink-750: #12171f;
  --ink-700: #161c25;
  --ink-600: #1d2530;

  --line: #273040;
  --line-soft: #1a212c;

  --fg: #e9edf3;
  --fg-2: #b7c1d0;
  --fg-3: #7d8a9d;

  /* Brass is the brand accent — used thin and sparingly so it reads as
     machined metal rather than gold plating. */
  --brass: #d6a83f;
  --brass-lit: #f0c76f;
  --brass-wash: rgba(214, 168, 63, 0.12);
  --brass-line: rgba(214, 168, 63, 0.32);

  --steel: #7096bd;
  --alert: #e2494e;
  --alert-wash: rgba(226, 73, 78, 0.12);
  --alert-line: rgba(226, 73, 78, 0.35);
  --ok: #4fb477;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo,
    Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 26px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-3: 0 40px 80px -40px rgba(0, 0, 0, 1);

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --max: 1200px;
  --max-narrow: 760px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 70px;
}

/* -- 02  Reset + base ----------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
canvas { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.35rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); letter-spacing: -0.015em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 2.5rem 0;
}

::selection { background: var(--brass); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--brass-lit);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brass);
  color: var(--ink-900);
  padding: 0.7rem 1.1rem;
  font-weight: 650;
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* -- 03  Layout primitives ------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* A hairline that fades out at both ends — used between major sections so the
   page reads as panels without hard boxes. */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line) 18%,
    var(--line) 82%,
    transparent
  );
}

.bg-750 { background: var(--ink-750); }
.bg-850 { background: var(--ink-850); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* -- 04  Typography helpers ---------------------------------------------- */

/* Small-caps mono label with a short leading rule. Used as the eyebrow above
   every section heading so sections are scannable at a glance. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  opacity: 0.65;
  flex: none;
}
.eyebrow-alert { color: var(--alert); }
.eyebrow-alert::before { background: var(--alert); }

.lead {
  font-size: clamp(1.03rem, 1.35vw, 1.15rem);
  color: var(--fg-2);
  max-width: 62ch;
  line-height: 1.7;
}

.section-head { max-width: 68ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
/* Headings are margin:0 globally, and .lead only has a bottom margin — so a
   heading followed by its lead had nothing between them. */
.section-head h2, .section-head h3 { margin-bottom: 0.95rem; }

.muted { color: var(--fg-3); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); }

.kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* -- 05  Buttons + links -------------------------------------------------- */

a { color: var(--brass-lit); text-decoration-color: rgba(240, 199, 111, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

.btn {
  --btn-bg: var(--brass);
  --btn-fg: var(--ink-900);
  --btn-line: var(--brass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.82rem 1.5rem;
  border: 1px solid var(--btn-line);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 640;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -14px var(--btn-line); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-line: var(--line);
}
.btn-ghost:hover { --btn-line: var(--fg-3); background: rgba(255, 255, 255, 0.03); }

.btn-alert { --btn-bg: var(--alert); --btn-fg: #fff; --btn-line: var(--alert); }

.btn-alert-ghost {
  --btn-bg: var(--alert-wash);
  --btn-fg: #ff9a9d;
  --btn-line: var(--alert-line);
}
.btn-alert-ghost:hover { --btn-fg: #fff; --btn-bg: var(--alert); --btn-line: var(--alert); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.lead + .btn-row, .prose + .btn-row { margin-top: clamp(1.6rem, 2.5vw, 2.1rem); }

/* Text link that grows a trailing arrow on hover. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  font-weight: 500;
}
.arrow-link::after {
  content: "\2192";
  transition: transform 0.2s var(--ease);
  font-family: var(--sans);
}
.arrow-link:hover::after { transform: translateX(4px); }

/* -- 06  Header / navigation --------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(14, 18, 24, 0.6);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-stuck {
  background: rgba(8, 11, 15, 0.92);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fg);
  margin-right: auto;
  flex: none;
}
.brand svg { width: 30px; height: 30px; }
.brand-name {
  font-size: 1.03rem;
  font-weight: 660;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name span { color: var(--brass); }
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--fg-2);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--brass); }

.header-cta { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background-color 0.15s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* -- 07  Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3.5rem) clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

/* Copy left, standing-promises panel right. Below 1080px the panel drops
   underneath rather than disappearing — it carries real content, not decoration. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

/* The canvas paints a slow perimeter lattice. It is decorative; if it never
   initialises the gradients below still carry the section. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(214, 168, 63, 0.10), transparent 55%),
    radial-gradient(90% 70% at 8% 92%, rgba(112, 150, 189, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(14, 18, 24, 0.55) 0%, rgba(14, 18, 24, 0.15) 40%, var(--ink-800) 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 44rem; }

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em {
  font-style: normal;
  color: var(--brass);
  /* Hairline underscore that echoes the eyebrow rules. */
  box-shadow: inset 0 -3px 0 var(--brass-wash);
}

.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); margin-bottom: 0; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
}
.hero-status:hover { border-color: var(--alert-line); color: var(--fg); }

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  box-shadow: 0 0 0 0 rgba(79, 180, 119, 0.55);
  animation: pulse 2.6s var(--ease) infinite;
}
.pulse-alert { background: var(--alert); box-shadow: 0 0 0 0 rgba(226, 73, 78, 0.6); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  70%  { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); opacity: 0.75; }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); opacity: 1; }
}

/* The four things every engagement carries, stated up front. */
.hero-panel {
  background: rgba(10, 13, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, var(--brass-wash), transparent 70%);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero-panel ul { list-style: none; margin: 0; padding: 0.5rem 1.35rem 1.25rem; }
.hero-panel li {
  position: relative;
  margin: 0;
  padding: 0.95rem 0 0.95rem 1.9rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.89rem;
  line-height: 1.55;
  color: var(--fg-3);
}
.hero-panel li:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
.hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}
.hero-panel strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

/* Capability strip under the hero CTAs. */
.capstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.capstrip div {
  background: rgba(10, 13, 18, 0.7);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.capstrip dt {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.capstrip dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.5;
}

/* -- 08  Cards + grids ---------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--ink-750);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
    background-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  overflow: hidden;
}
/* Machined corner bracket that fills in on hover — the one flourish that
   carries the "gate" idea into the components. */
.card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 30px;
  height: 30px;
  border-top: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
  border-top-right-radius: var(--r-lg);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  background: var(--ink-700);
  box-shadow: var(--shadow-2);
}
.card:hover::after { opacity: 0.9; }

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--fg-2); font-size: 0.94rem; margin-bottom: 0; }

.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover h3 { color: var(--brass-lit); }

.icon-tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  border: 1px solid var(--brass-line);
  border-radius: var(--r);
  background: var(--brass-wash);
  color: var(--brass);
}
.icon-tile svg { width: 20px; height: 20px; }
.icon-tile-alert { border-color: var(--alert-line); background: var(--alert-wash); color: var(--alert); }

/* Pillar card — larger, numbered, used for the three top-level offerings. */
.pillar { display: flex; flex-direction: column; gap: 0.35rem; }
.pillar .pillar-no {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  margin-bottom: 0.9rem;
}
.pillar ul {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 1.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
}
.pillar li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--fg-2);
  margin-bottom: 0.5rem;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}
.pillar .arrow-link { margin-top: auto; align-self: flex-start; }

/* Compact stat block. */
.stat { padding: 1.4rem 0; }
.stat dt {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.55rem;
}
.stat dd { margin: 0; font-size: 0.88rem; color: var(--fg-3); max-width: 26ch; }

/* -- 09  Process rail ----------------------------------------------------- */

.rail { position: relative; padding-left: 2.9rem; }
.rail::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--brass), var(--line) 35%, var(--line-soft));
}

.step { position: relative; padding-bottom: 2.4rem; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: -2.9rem;
  top: 4px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink-800);
}
.step::after {
  content: attr(data-step);
  position: absolute;
  left: -2.9rem;
  top: 4px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brass);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--fg-2); font-size: 0.94rem; max-width: 60ch; }
.step .kicker { display: block; margin-bottom: 0.35rem; }

/* -- 10  Framework strip -------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  margin: 0;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  background: var(--ink-750);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--fg-2);
  white-space: nowrap;
}
.chips-brass li { border-color: var(--brass-line); background: var(--brass-wash); color: var(--brass-lit); }

/* -- 11  Founder ---------------------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(214, 168, 63, 0.14), transparent 65%),
    linear-gradient(160deg, var(--ink-700), var(--ink-850));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop upward: the square mobile frame centred would clip
     the top of the head. */
  object-position: 50% 18%;
}
.portrait .monogram {
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  color: var(--brass);
  opacity: 0.85;
}
.portrait .portrait-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 11, 0.9));
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.creds {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.creds li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--brass);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--ink-750);
  font-size: 0.92rem;
  color: var(--fg-2);
}
.creds strong { color: var(--fg); font-weight: 620; }

/* -- 12  Incident banner -------------------------------------------------- */

.incident {
  position: relative;
  border-top: 1px solid var(--alert-line);
  border-bottom: 1px solid var(--alert-line);
  background: linear-gradient(180deg, rgba(226, 73, 78, 0.10), rgba(226, 73, 78, 0.03));
  overflow: hidden;
}
/* Faint hazard chevrons, purely textural. */
.incident::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    var(--alert) 0 10px,
    transparent 10px 26px
  );
}
.incident-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: space-between;
}
.incident h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.6rem; }
.incident p { color: var(--fg-2); max-width: 48ch; margin: 0; font-size: 0.97rem; }

/* -- 13  Forms ------------------------------------------------------------ */

.form-shell {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--ink-750);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}

.field { display: grid; gap: 0.45rem; margin-bottom: 1.15rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field label .req { color: var(--brass); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #707d8f; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #33405270; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--ink-800);
  box-shadow: 0 0 0 3px var(--brass-wash);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--alert-line); }

.field select {
  appearance: none;
  /* Inline SVG data URI keeps the chevron self-contained — no network fetch. */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237d8a9d' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 11px;
  padding-right: 2.4rem;
}

.field-hint { font-size: 0.8rem; color: var(--fg-3); }

/* Honeypot: off-screen, not display:none, so bots that check visibility
   still fill it in. Real users never reach it (tabindex -1, aria-hidden). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--ink-800);
  font-size: 0.9rem;
  color: var(--fg-2);
}
.form-status[hidden] { display: none; }
.form-status.is-ok { border-color: rgba(79, 180, 119, 0.4); background: rgba(79, 180, 119, 0.08); color: #a8e0bf; }
.form-status.is-err { border-color: var(--alert-line); background: var(--alert-wash); color: #ffabae; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-aside { display: grid; gap: 1.1rem; }
.contact-item {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--ink-750);
}
.contact-item .kicker { display: block; margin-bottom: 0.45rem; }
.contact-item a { font-size: 0.98rem; font-weight: 550; word-break: break-word; }
.contact-item p { font-size: 0.86rem; color: var(--fg-3); margin: 0.4rem 0 0; }

/* -- 14  Footer ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-900);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 2.75rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--fg-3); font-size: 0.88rem; max-width: 36ch; }

.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer ul a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s var(--ease);
}
.site-footer ul a:hover { color: var(--brass-lit); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  color: var(--fg-3);
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { color: var(--fg-3); text-decoration: none; }
.footer-legal a:hover { color: var(--fg-2); }

/* -- 15  Page furniture --------------------------------------------------- */

/* Compact hero for interior pages. */
.hero-sm {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 7vw, 5.5rem)) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(80% 100% at 12% 0%, rgba(214, 168, 63, 0.09), transparent 60%),
    linear-gradient(180deg, var(--ink-850), var(--ink-800));
  overflow: hidden;
}
.hero-sm.is-alert {
  background:
    radial-gradient(80% 100% at 12% 0%, rgba(226, 73, 78, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-850), var(--ink-800));
}
.hero-sm h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 1.1rem; }
.hero-sm .lead { margin-bottom: 0; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--fg-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }

/* Long-form body copy on interior pages. */
.prose { max-width: 68ch; }
.prose h2 { margin: 2.75rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.7rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul { padding-left: 1.1em; }
.prose li::marker { color: var(--brass); }

/* Detailed service block used on services.html */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc-meta { position: sticky; top: calc(var(--header-h) + 2rem); }
.svc h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-bottom: 0.85rem; }
.svc-body p { color: var(--fg-2); }

.deliverables {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.deliverables li {
  position: relative;
  margin: 0;
  padding-left: 1.7rem;
  font-size: 0.92rem;
  color: var(--fg-2);
}
.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}

/* Definition-style FAQ using native disclosure. */
.faq { border-top: 1px solid var(--line-soft); }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 1.15rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1.02rem;
  font-weight: 580;
  color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--brass);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0.85rem 0 0;
  color: var(--fg-2);
  font-size: 0.94rem;
  max-width: 68ch;
}

/* Callout panel. */
.note {
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--ink-750);
  font-size: 0.93rem;
  color: var(--fg-2);
}
.note-alert { border-left-color: var(--alert); background: var(--alert-wash); }

/* Big 404 numeral. */
.code-404 {
  font-family: var(--mono);
  font-size: clamp(4.5rem, 16vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--brass);
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

/* -- 16  Reveal animation ------------------------------------------------- */

/* Elements marked data-reveal start shifted and are released by
   IntersectionObserver in site.js. If JS never runs, the .js-on class is
   absent and nothing is ever hidden. */
.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js-on [data-reveal].is-in { opacity: 1; transform: none; }

/* Stagger children of a revealed group. */
.js-on [data-reveal-group] > * { transition-delay: 0ms; }
.js-on [data-reveal-group] > *:nth-child(2) { transition-delay: 70ms; }
.js-on [data-reveal-group] > *:nth-child(3) { transition-delay: 140ms; }
.js-on [data-reveal-group] > *:nth-child(4) { transition-delay: 210ms; }
.js-on [data-reveal-group] > *:nth-child(5) { transition-delay: 280ms; }
.js-on [data-reveal-group] > *:nth-child(6) { transition-delay: 350ms; }

/* -- 17  Responsive ------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-panel { max-width: 34rem; }
}

@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }

  /* Mobile nav drops out of the fixed header as a full-width panel. */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: rgba(8, 11, 15, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }

  .header-cta .btn-desktop { display: none; }

  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; aspect-ratio: 1 / 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc-meta { position: static; }
}

@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .capstrip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header-cta .btn { width: auto; }
  .incident-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* -- 18  Reduced motion / print / forced colors --------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-on [data-reveal] { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
}

@media (forced-colors: active) {
  .card, .chips li, .form-shell, .contact-item { border-color: CanvasText; }
  .btn { border-color: CanvasText; }
}

@media print {
  .site-header, .hero-canvas, .nav-toggle, .incident, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .form-shell { border: 1px solid #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
