/* ============================================================
   AXESS INNOVATIONS CONSULTING — site styles
   Dark "Command" theme.
   ============================================================ */

/* Self-hosted latin woff2 subsets (was Google Fonts). Removing the remote font
   service lets the CSP drop fonts.googleapis.com + fonts.gstatic.com and kills two
   cross-origin round-trips on the critical path. display:swap keeps hero text
   visible during the (now same-origin) load. */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/chakra-petch-400.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/chakra-petch-500.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/chakra-petch-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
  /* Brand */
  --axess-blue:        #005080;
  --axess-blue-bright: #0d7ab8;
  --electric:          #2ab6ff;
  --cyan-glow:         #46e0e8;

  /* Neutrals */
  --metallic:          #a2abb5;
  --silver:            #d5dce3;

  /* Status */
  --ok:    #3ddc97;
  --warn:  #ffb347;
  --danger:#ff5d5d;

  /* Type */
  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --corner: 14px; /* angular "X" corner cut size */
  /* the chamfer polygon, defined once. Used as clip-path on the border/fill PLATES
     (::before/::after) rather than on the element itself — clipping the element clips
     its border off at the two cut corners, which rendered the signature motif as open
     notches. Plates give a fully-stroked chamfer on all six edges. */
  --chamfer: polygon(var(--corner) 0, 100% 0, 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, 0 100%, 0 var(--corner));
}

/* ---- DARK (default) ---- */
:root,
[data-theme="dark"] {
  --bg:            #06090d;
  --bg-deep:       #090e14;
  --bg-panel:      #0e141c;
  --bg-panel-2:    #111925;
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text:          var(--silver);
  --text-dim:      var(--metallic);
  --grid-line:     rgba(74, 110, 140, 0.10);
  --shadow:        0 24px 60px rgba(0,0,0,0.5);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.no-scroll { overflow: hidden; }
::selection { background: rgba(42, 182, 255, 0.35); color: #fff; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .45s ease, color .45s ease;
  overflow-x: hidden;
}

/* film grain: kills gradient banding on the dark panels; sits over everything,
   never intercepts input. Generated once via SVG feTurbulence. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.045; mix-blend-mode: overlay;
}

h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: var(--electric); text-decoration: none; }

/* skip link: offscreen until keyboard focus, then shown above the fixed nav */
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 60;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--text);
  background: transparent; border: none; isolation: isolate;
  padding: 12px 18px;
}
.skip-link::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--electric); clip-path: var(--chamfer); }
.skip-link::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg-panel); clip-path: var(--chamfer); }
.skip-link:focus { left: clamp(16px, 4vw, 40px); outline: none; }
.skip-link:focus::before { background: var(--cyan-glow); }
.skip-link:focus::after { inset: 2px; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.dim { color: var(--text-dim); }
.accent { color: var(--electric); }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--electric);
  display: inline-block;
}

/* ---- buttons (chamfer via border/fill plates, not clip-on-element) ---- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text);
  position: relative;
  isolation: isolate; /* keep the negative-z plates local to the button */
  transition: color .2s, transform .2s;
}
.btn::before { /* border plate: full size, stroke color, fully chamfered */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--border-strong); clip-path: var(--chamfer); transition: background .2s;
}
.btn::after { /* fill plate: inset 1px so the plate below reads as a 1px chamfered border */
  content: ""; position: absolute; inset: 1px; z-index: -1;
  background: var(--bg); clip-path: var(--chamfer); transition: background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--solid { color: #02121f; font-weight: 600; }
.btn--solid::before, .btn--solid::after { background: var(--electric); }
.btn--solid:hover::before, .btn--solid:hover::after { background: var(--cyan-glow); }
.btn--ghost:hover { color: var(--electric); }
.btn--ghost:hover::before { background: var(--electric); }
.btn--lg { padding: 16px 26px; font-size: 14px; }

/* keyboard focus — chamfered controls brighten + thicken their border plate so the
   focus ring follows the cut; un-clipped links get a normal offset outline. */
.btn:focus-visible, .nav__toggle:focus-visible { outline: none; }
.btn:focus-visible::before, .nav__toggle:focus-visible::before { background: var(--cyan-glow); }
.btn:focus-visible::after, .nav__toggle:focus-visible::after { inset: 2px; }
.nav__links a:focus-visible, .nav__brand:focus-visible,
.mobile-menu a:not(.btn):focus-visible, .hero__scroll:focus-visible {
  outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 2px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(to bottom, rgba(6,9,13,0.85), rgba(6,9,13,0));
  backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
/* nav text stays light over the dark hero until scrolled */
.nav:not(.is-scrolled) { color: var(--silver); }
.nav:not(.is-scrolled) .nav__links a,
.nav:not(.is-scrolled) .nav__name,
.nav:not(.is-scrolled) .theme-toggle { color: var(--silver); }

.nav__brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.nav__logo { height: 24px; width: auto; display: block; }
/* legacy text mark (kept for fallback) */
.nav__x { color: var(--electric); display: grid; place-items: center; }
.nav__x svg { stroke: currentColor; stroke-width: 2.4; fill: none; }
.nav__name { font-weight: 700; letter-spacing: 0.30em; font-size: 18px; color: var(--text); }

.nav__links { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.nav__links a {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color .2s;
}
.nav__links a:hover { color: var(--electric); }
.nav__links a.is-active { color: var(--electric); }

.nav__right { display: flex; align-items: center; gap: 16px; }

/* ---- mobile menu (hamburger + drop panel, shown ≤860px) ---- */
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 38px; padding: 0 10px; cursor: pointer;
  background: transparent; border: none;
  position: relative; isolation: isolate;
}
.nav__toggle::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--border-strong); clip-path: var(--chamfer); transition: background .2s; }
.nav__toggle::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: rgba(14,20,28,0.5); clip-path: var(--chamfer); }
.nav__toggle span { display: block; height: 2px; width: 100%; background: var(--silver); transition: transform .25s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; z-index: 49; inset: 0 0 auto 0;
  padding: 76px clamp(16px, 4vw, 40px) 26px;
  display: flex; flex-direction: column; gap: 2px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(14px);
  transform: translateY(-14px); opacity: 0;
  transition: transform .26s ease, opacity .26s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { transform: none; opacity: 1; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.06em; color: var(--text);
  padding: 15px 4px; border-bottom: 1px solid var(--border); transition: color .2s;
}
.mobile-menu a:not(.btn):hover { color: var(--electric); }
.mobile-menu .btn { margin-top: 18px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  background: var(--bg);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* center copy */
.hero__copy {
  position: absolute;
  z-index: 6;
  left: clamp(16px, 4vw, 40px);
  bottom: clamp(120px, 22vh, 200px);
  max-width: 620px;
  pointer-events: none;
}
.hero__copy .btn { pointer-events: auto; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--electric); margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.75rem, 1.5rem + 4.5vw, 5rem);
  color: #fff; letter-spacing: -0.022em; line-height: 1.05;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero__lede {
  margin-top: 20px; color: var(--silver); font-size: clamp(15px, 1.5vw, 18px);
  max-width: 540px; opacity: 0.92;
}
.hero__cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* figure annotation: instrument-style caption in the hero corner. Hidden until
   the first WebGL frame paints (.hero-ready) so it never labels a blank canvas. */
.hero__fig {
  position: absolute; z-index: 6; left: clamp(16px, 4vw, 40px);
  bottom: clamp(28px, 6vh, 56px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--metallic);
  opacity: 0; visibility: hidden;
}
.hero-ready .hero__fig { opacity: 1; visibility: visible; transition: opacity .6s; }

.hero__scroll {
  position: absolute; z-index: 6; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 18px; height: 18px; display: grid; place-items: center;
}
/* angular chevron (matches the chamfer language; the old rounded pill was the one
   rounded element on the page) */
.hero__scroll span {
  width: 11px; height: 11px;
  border-right: 2px solid var(--electric); border-bottom: 2px solid var(--electric);
  transform: rotate(45deg); animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: rotate(45deg) translate(-2px, -2px); }
  45% { opacity: 1; }
  80%, 100% { opacity: 0; transform: rotate(45deg) translate(3px, 3px); }
}

/* ============================================================
   STRIP (intro paragraph)
   ============================================================ */
.strip {
  background: var(--bg-deep);
  border-block: 1px solid var(--border);
  padding: clamp(48px, 8vw, 92px) 0;
}
.strip__text {
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.45; max-width: 920px; color: var(--text);
  font-weight: 500; letter-spacing: -0.01em;
}

/* ---- proof bar: verifiable facts a CO can check in ten seconds, right under the hero ---- */
.proofbar { background: var(--bg-deep); border-bottom: 1px solid var(--border); padding: 15px 0; }
.proofbar__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 24px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--text-dim);
}
.proofbar__item i { font-style: normal; color: var(--metallic); margin-right: 6px; }
.proofbar__item a { color: var(--electric); }
.proofbar__item a:hover { text-decoration: underline; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-deep); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__title { font-size: clamp(28px, 4.2vw, 52px); margin: 14px 0 14px; }
.section__sub { color: var(--text-dim); font-size: clamp(15px, 1.6vw, 19px); }

/* tactical grid background on dark sections */
.section::before, .strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .7;
}
.section .wrap, .strip .wrap { position: relative; z-index: 1; }

/* ---- capability cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 18px; }
.card {
  position: relative; isolation: isolate; background: transparent; border: none;
  padding: 28px 26px 30px;
  transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
.card::before { /* border plate */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--border); clip-path: var(--chamfer); transition: background .25s;
}
.card:hover::before { background: var(--border-strong); }
.card::after { /* fill plate + the electric hover-tick baked into the bottom-left */
  content: ""; position: absolute; inset: 1px; z-index: -1;
  background-color: var(--bg-panel);
  background-image: linear-gradient(90deg, var(--electric), var(--electric));
  background-repeat: no-repeat; background-position: 25px 100%; background-size: 34px 2px;
  clip-path: var(--chamfer); transition: background-size .3s;
}
.card:hover::after { background-size: 64px 2px; }
.card__no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--electric); display: block; margin-bottom: 16px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15.5px; }

/* ---- capability ledger: indexed rows. The CY-01 code system is the star here,
   not a uniform 3x2 card grid (which reads generic / staffing-brochure). ---- */
.ledger { border-bottom: 1px solid var(--border); }
.cap-row {
  position: relative;
  display: grid; grid-template-columns: 96px 1.15fr 1.5fr; gap: 28px; align-items: baseline;
  padding: 26px 16px; border-top: 1px solid var(--border);
  transition: background .25s;
}
.cap-row::before { /* electric edge tick that slides in on hover (the .step tick language) */
  content: ""; position: absolute; left: 0; top: 27px; width: 3px; height: 20px;
  background: var(--electric); transform: scaleY(0); transform-origin: top; transition: transform .28s;
}
.cap-row:hover { background: var(--bg-panel); }
.cap-row:hover::before { transform: scaleY(1); }
.cap-row__no { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--electric); }
.cap-row__title { font-size: 22px; letter-spacing: -0.012em; }
.cap-row__desc { color: var(--text-dim); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 700px) {
  .cap-row { grid-template-columns: 76px 1fr; gap: 6px 20px; padding: 22px 12px; }
  .cap-row__desc { grid-column: 2; }
}
@media (max-width: 460px) {
  .cap-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 12px; }
  .cap-row__desc { grid-column: 1; }
  .cap-row::before { display: none; }
}

/* ---- approach split ---- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.split__item { border-top: 1px solid var(--border-strong); padding-top: 22px; }
.split__item h3 { font-size: 22px; margin-bottom: 10px; }
.split__item p { color: var(--text-dim); }
.split__item strong { color: var(--text); }

/* ---- facts ---- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--border); background: var(--bg-panel);
}
.fact { padding: 22px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact__k { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--text-dim); margin-bottom: 8px; }
.fact__v { font-family: var(--font-mono); font-size: 19px; color: var(--electric); letter-spacing: 0.04em; }

.naics { margin-top: 40px; }
.naics__list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 28px;
  font-family: var(--font-mono); font-size: 14px; color: var(--text-dim);
}
.naics__list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.naics__list b { color: var(--text); margin-right: 10px; }

/* ---- working with us (process steps) ---- */
.engage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(228px, 100%), 1fr)); gap: 30px 34px; }
.step { position: relative; border-top: 2px solid var(--border-strong); padding-top: 24px; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 42px; height: 2px; background: var(--electric); }
.step__no { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.22em; color: var(--electric); display: block; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15.5px; }

/* ---- what we build for ourselves (Labs proof surfaced on the main site) ---- */
.build { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.build__proof { position: relative; isolation: isolate; padding: 28px 26px 30px; }
.build__proof::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--border); clip-path: var(--chamfer); }
.build__proof::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg-panel); clip-path: var(--chamfer); }
.build__stat {
  font-size: clamp(21px, 2.5vw, 29px); line-height: 1.32; color: #fff; font-weight: 600;
  margin: 14px 0 14px; letter-spacing: -0.01em;
}
.build__note { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }
.build__rows { display: flex; flex-direction: column; }
.build__row {
  display: flex; gap: 16px; align-items: baseline; padding: 14px 2px;
  border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 13.5px;
}
.build__row:first-child { border-top: 1px solid var(--border); }
.build__code { color: var(--electric); flex: 0 0 auto; letter-spacing: 0.08em; }
.build__desc { color: var(--text-dim); flex: 1; min-width: 0; }
.build__status { color: var(--metallic); flex: 0 0 auto; }
.build__cta { margin-top: 24px; align-self: start; }
@media (max-width: 760px) { .build { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(72px, 11vw, 132px) 0;
  background: var(--bg-deep); border-block: 1px solid var(--border);
}
.cta-band::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 720px; height: 360px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(42, 182, 255, 0.13), transparent 70%);
}
.cta-band__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.cta-band__title { font-size: clamp(28px, 4.4vw, 52px); margin-bottom: 18px; }
.cta-band__text { color: var(--text-dim); font-size: clamp(16px, 1.7vw, 19px); max-width: 600px; margin: 0 auto 30px; }

/* ---- careers (ready, not yet displayed) ---- */
.careers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.opening {
  position: relative; isolation: isolate; background: transparent; border: none; padding: 26px;
}
.opening::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--border); clip-path: var(--chamfer); }
.opening::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg-panel); clip-path: var(--chamfer); }
.opening h3 { font-size: 19px; }
.opening__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--electric); margin: 6px 0 12px; }
.opening p { color: var(--text-dim); font-size: 15px; }
.opening .btn { margin-top: 18px; }
.careers__note { margin-top: 28px; color: var(--text-dim); }

/* ---- team (ready, not yet displayed) ---- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.member {
  background: var(--bg-panel); border: 1px solid var(--border); padding: 0 0 26px;
  clip-path: polygon(var(--corner) 0, 100% 0, 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, 0 100%, 0 var(--corner));
  transition: transform .25s, border-color .25s;
}
.member:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.member__photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  filter: grayscale(0.25) contrast(1.02); border-bottom: 1px solid var(--border);
}
.member__name { font-size: 20px; margin: 22px 26px 4px; }
.member__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--electric); margin: 0 26px 12px; }
.member__bio { color: var(--text-dim); font-size: 15px; margin: 0 26px; }

/* ---- contact ---- */
.section--contact { background: var(--bg-deep); }
.contact { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__left .btn { margin-top: 26px; }
.contact__left .contact__cap { margin-top: 12px; display: inline-flex; }
.contact__facts {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  font-family: var(--font-mono); font-size: 14px; color: var(--text);
}
.contact__facts .fact__k { display: inline; margin-right: 8px; color: var(--text-dim); }

.contact__form {
  position: relative; isolation: isolate; background: transparent; border: none; padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.contact__form::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--border); clip-path: var(--chamfer); }
.contact__form::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg-panel); clip-path: var(--chamfer); }
.contact__form label {
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--text-dim);
}
.contact__form input, .contact__form textarea {
  font-family: var(--font-display); font-size: 15px; color: var(--text);
  background: var(--bg-panel-2); border: 1px solid var(--border); padding: 12px 14px;
  border-radius: 2px; transition: border-color .2s; resize: vertical;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 2px rgba(42, 182, 255, 0.35); }
.contact__form .btn { margin-top: 6px; justify-content: center; }
.contact__note { font-family: var(--font-display); font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.contact__status { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--electric); min-height: 1.1em; }
.contact__status.is-error { color: var(--warn); }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 30px; overflow: hidden; }
/* end-mark: oversized wordmark at whisper contrast */
.footer__mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4rem, 17vw, 15rem); line-height: 0.85; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.05); text-align: center;
  user-select: none; pointer-events: none;
  margin-bottom: clamp(12px, 3vw, 40px);
}
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer__logo { height: 34px; width: auto; display: block; margin-bottom: 16px; }
.footer__legal { color: var(--text-dim); font-family: var(--font-mono); font-size: 13px; }
.footer__facts { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.footer__facts span { line-height: 1.5; }
.footer__facts i { font-style: normal; color: var(--metallic); display: inline-block; min-width: 64px; }
.footer__facts-h { font-size: 11px; letter-spacing: 0.2em; color: var(--electric); margin-bottom: 4px; }
.footer__naics { font-size: 12px; }
.footer__naics i { vertical-align: top; }
.footer__naics em { font-style: normal; color: var(--metallic); }
.footer__tagline { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.footer__base {
  border-top: 1px solid var(--border); padding: 20px 0; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.08em;
}

/* ============================================================
   REVEAL ANIMATION
   Two engines, one look. Browsers with CSS scroll-driven animation
   get .reveal-vt: compositor-thread, zero JS work per scroll (craft
   pass 2026-07-05). Everything else keeps the IntersectionObserver
   path (.reveal/.is-in). site.js picks exactly one per page load.
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  .reveal-vt {
    animation: reveal-in both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links, .nav__right { display: none; }
  .nav__toggle { display: flex; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__copy { bottom: 140px; }
  /* scrim so hero copy stays legible over the 3D building on small screens */
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: linear-gradient(to top, rgba(6,9,13,0.82), rgba(6,9,13,0.25) 46%, transparent 68%);
  }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__fig { display: none; }
  .split { grid-template-columns: 1fr; }
  /* the email + PDF CTAs hold long single-line text — shrink so they never
     overflow the viewport on small phones (was overflowing at ≤360px). */
  .contact__left .btn { max-width: 100%; font-size: 12px; letter-spacing: 0.03em; padding: 13px 14px; }
  .contact__left .btn--lg { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-vt { animation: none; }
  .hero__scroll span { animation: none; }
  .btn, .card, .member { transition: none; }
}
