/* ==========================================================================
   Turnex — site styles
   1. Fonts            6. Hero              11. Terrain
   2. Tokens           7. Principal         12. Discretion
   3. Base             8. Unit              13. Contact
   4. Primitives       9. People & capital  14. Footer
   5. Header & menu   10. Method            15. Documents, motion, print
   ========================================================================== */

/* 1. Fonts — self-hosted, trimmed to the axes the site uses
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrainsmono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #091315;
  --bg-raised: #0d1a1c;
  --bg-sunk: #071012;
  --line: #1a2d30;
  --line-strong: #27403f;
  --text: #e2e9e7;
  --muted: #879a98;
  --dim: #778c8a;          /* the design's #5b6f6d, lifted to 5:1 on the raised card */
  --faint: #5b6f6d;        /* decorative marks only */
  --accent: #00c2a8;
  --accent-hi: #2ad9bf;
  --accent-ink: #091315;
  --accent-deep: #0a5d53;
  --accent-glow: rgba(0, 194, 168, 0.14);
  --danger: #ff8a7a;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-h1: clamp(2rem, 0.75rem + 5.1vw, 5.75rem);
  --fs-h2: clamp(2rem, 1rem + 2.97vw, 3.75rem);
  --fs-lede: clamp(1.125rem, 0.9rem + 0.5vw, 1.375rem);
  --fs-body: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
  --fs-text: 1.0625rem;
  --fs-small: 0.96875rem;
  --fs-quote: clamp(1.375rem, 1rem + 0.95vw, 1.875rem);
  --fs-h3: 1.25rem;
  --fs-card-title: clamp(1.5rem, 1.1rem + 0.9vw, 1.875rem);
  --fs-formula: clamp(1.5rem, 1rem + 1.25vw, 2rem);

  --fs-label: 0.65625rem;  /* 10.5px */
  --fs-eyebrow: 0.71875rem; /* 11.5px */
  --fs-mono: 0.75rem;      /* 12px */

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1320px;
  --header-h: 64px;
  --section-pad: clamp(80px, 9vw + 12px, 136px);

  --r-btn: 12px;
  --r-card: 22px;
  --r-input: 8px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 1024px) {
  :root { --header-h: 70px; }
}

/* 3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--fs-text);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: rgba(0, 194, 168, 0.32); color: #fff; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keeps a hyphenated term like "high-agency" from splitting across lines */
.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-btn) 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 var(--fs-mono) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible { transform: none; outline-color: var(--text); }

/* 4. Primitives
   -------------------------------------------------------------------------- */
.wrap {
  --g: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  width: min(var(--maxw), 100% - 2 * var(--g));
  margin-inline: auto;
}

.section { position: relative; }
.section > .wrap { padding-block: var(--section-pad); }
.section + .section > .wrap { border-top: 1px solid var(--line); }
.section--flush > .wrap { border-top: 0 !important; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--text);
  text-wrap: balance;
}
.h2--tight { max-width: 10.5em; }
.h2--unit { max-width: 11.5em; }   /* room to keep "high-agency operators" on one line */

.intro {
  max-width: 33em;
  margin-top: 22px;
  font-size: var(--fs-lede);
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-btn) 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}
.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
}
.btn--primary:hover {
  --btn-bg: var(--accent-hi);
  box-shadow: 0 0 0 6px var(--accent-glow);
}
.btn--ghost {
  --btn-bd: var(--line-strong);
  --btn-bg: rgba(9, 19, 21, 0.4);
}
.btn--ghost:hover {
  --btn-bd: var(--accent);
  --btn-fg: var(--accent);
}
.btn--sm {
  min-height: 37px;
  padding: 0 16px;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}
.btn__arrow {
  width: 16px;
  height: 10px;
  flex: none;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* 5. Header & mobile menu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 19, 21, 0.9);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(9, 19, 21, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
}

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 6px 0;
  color: var(--text);
}
.brand svg { width: auto; height: 24px; }
@media (min-width: 1024px) {
  .brand svg { height: 26px; }
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav__link {
  position: relative;
  display: block;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.15em;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="true"] { color: var(--text); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.site-header__actions {
  grid-column: -2 / -1;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}
.site-header__cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle__icon {
  position: relative;
  display: block;
  width: 22px;
  height: 10px;
}
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out), width 0.35s var(--ease-out);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8.5px; width: 64%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4.25px; width: 100%; transform: rotate(-45deg); }

@media (min-width: 560px) {
  .site-header__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .site-header__bar { grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
}
.mobile-menu__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-block: 12px max(28px, env(safe-area-inset-bottom, 0px));
}
.mobile-menu__list { border-top: 1px solid var(--line); }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}
.mobile-menu__link span {
  min-width: 2ch;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.mobile-menu__link[aria-current="true"] { color: var(--accent); }
.mobile-menu__foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 32px;
}
.mobile-menu__foot .btn { width: 100%; justify-content: space-between; }
.mobile-menu__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

html.menu-open { overflow: hidden; }

/* 6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a1416;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.art-stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.art-stage.is-ready { opacity: 1; }
.art-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero .art-stage {
  inset: -3%;
  transform-origin: 62% 55%;
}
/* keep moving traffic quiet behind the copy */
@media (min-width: 600px) {
  .hero .art-stage canvas + canvas {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.45) 40%, #000 62%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.45) 40%, #000 62%);
  }
}
.hero .art-stage.is-ready.is-drifting {
  animation: hero-drift 48s var(--ease-in-out) infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-1.2%, -0.8%, 0); }
}

/* Static fallback for visitors without JavaScript or canvas */
.no-js .hero__art,
.art-fallback .hero__art {
  background: #0a1416 url("../img/hero-fallback.jpg") 58% 50% / cover no-repeat;
  background-image: image-set(url("../img/hero-fallback.webp") type("image/webp"), url("../img/hero-fallback.jpg") type("image/jpeg"));
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 19, 21, 0.55) 0%, rgba(9, 19, 21, 0) 22%),
    linear-gradient(0deg, rgba(9, 19, 21, 0.92) 0%, rgba(9, 19, 21, 0.35) 22%, rgba(9, 19, 21, 0) 42%),
    linear-gradient(90deg, rgba(9, 19, 21, 0.88) 0%, rgba(9, 19, 21, 0.72) max(30%, 50% - 300px), rgba(9, 19, 21, 0.3) max(58%, 50% + 200px), rgba(9, 19, 21, 0.06) max(82%, 50% + 520px));
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.07;
}

.hero__content {
  position: relative;
  width: 100%;
  padding-block: clamp(56px, 9vh, 120px) clamp(96px, 13vh, 150px);
}
.hero__inner { max-width: 820px; }

@media (min-width: 1200px) {
  .hero__inner { padding-left: 42px; }
}

.hero__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--text);
}
.hero__line { display: block; }
.hero__title .accent {
  display: block;
  font-weight: 400;
  color: var(--accent);
}

.hero__lede {
  max-width: 680px;
  margin-top: 30px;
  font-size: var(--fs-lede);
  line-height: 1.62;
  color: var(--text);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 36px;
  margin-top: 46px;
}
.hero__stats div { min-width: 0; }
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__stats dd {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  pointer-events: none;
}
.hero__foot .wrap {
  display: flex;
  justify-content: flex-end;
}
.hero__coords {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  color: var(--faint);
}

.reticle {
  position: absolute;
  left: 72.5%;
  top: 34%;
  display: none;
  width: 120px;
  height: 120px;
  pointer-events: none;
}
.reticle__box {
  position: absolute;
  inset: 0;
}
.reticle__box i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--accent);
}
.reticle__box i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.reticle__box i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.reticle__box i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.reticle__box i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.reticle__label {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--accent);
}
.reticle__label em {
  font-style: normal;
}

@media (min-width: 1024px) {
  .reticle { display: block; }
}

.js .reticle__box { animation: reticle-lock 1.6s 0.9s var(--ease-out) both; }
.js .reticle__label { animation: reticle-label 0.6s 2.1s ease both; }
.js .reticle__label em { animation: reticle-blink 1.2s 2.7s steps(2, jump-none) 3; }
@keyframes reticle-lock {
  0% { opacity: 0; transform: scale(1.9); }
  45% { opacity: 1; }
  70% { transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes reticle-label {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@keyframes reticle-blink {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

@media (max-width: 599px) {
  .hero { align-items: flex-end; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(9, 19, 21, 0.3) 0%, rgba(9, 19, 21, 0.45) 12%, rgba(9, 19, 21, 0.8) 30%, rgba(9, 19, 21, 0.88) 60%, rgba(9, 19, 21, 0.95) 100%);
  }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin-top: 40px;
  }
  .hero__foot { bottom: 22px; }
  .hero__foot .wrap { justify-content: flex-start; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(9, 19, 21, 0.5) 0%, rgba(9, 19, 21, 0) 25%),
      linear-gradient(0deg, rgba(9, 19, 21, 0.94) 0%, rgba(9, 19, 21, 0.4) 30%, rgba(9, 19, 21, 0) 55%),
      linear-gradient(90deg, rgba(9, 19, 21, 0.85) 0%, rgba(9, 19, 21, 0.6) 55%, rgba(9, 19, 21, 0.25) 100%);
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero { min-height: 0; }
}

/* 7. Principal
   -------------------------------------------------------------------------- */
.principal {
  display: grid;
  gap: 56px;
}

.dossier {
  align-self: start;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-card) 0;
  background: var(--bg-raised);
}
.dossier__mark {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--accent);
}
.dossier__list div {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}
.dossier__list div:last-child { padding-bottom: 0; }
.dossier__list dd {
  margin-top: 8px;
  font-size: 1.03125rem;
  line-height: 1.5;
  color: var(--text);
}

.note { max-width: 682px; }
.note .h2 { margin-bottom: 30px; }
.note p:not(.eyebrow) {
  font-size: var(--fs-body);
  line-height: 1.64;
  text-wrap: pretty;
}
.note p:not(.eyebrow) + p { margin-top: 1.1em; }

.note__quote {
  margin: 38px 0;
  padding: 28px 0 30px;
  border-block: 1px solid var(--line);
}
.note__quote p {
  font-size: var(--fs-quote);
  font-style: italic;
  line-height: 1.36;
  letter-spacing: -0.005em;
}
.note__sign {
  display: block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 900px) {
  .principal {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 80px);
  }
  .principal .dossier { grid-column: 1; grid-row: 1; }
  .principal .note { grid-column: 2; grid-row: 1; }
}

/* 8. Unit
   -------------------------------------------------------------------------- */
.roster {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
  counter-reset: roster;
}

.roster__row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px 16px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}
.roster__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s var(--ease-out);
}
.roster__row:hover::before { width: 100%; }

.roster__num {
  grid-row: 1;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.3s ease;
}
.roster__row:hover .roster__num { color: var(--accent); }

.roster__who { grid-row: 1; }
.roster__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
}
.roster__role {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.02em;
  color: var(--dim);
}
.roster__desc {
  grid-column: 2;
  font-size: var(--fs-text);
  line-height: 1.7;
  text-wrap: pretty;
}
.roster__when {
  grid-column: 2;
  padding-top: 2px;
}
.roster__when dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.roster__when dd {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 720px) {
  .roster__row {
    grid-template-columns: 56px minmax(0, 2.6fr) minmax(0, 4fr);
    column-gap: 24px;
  }
  .roster__desc { grid-column: 3; grid-row: 1; }
  .roster__when { grid-column: 3; grid-row: 2; }
}

@media (min-width: 1100px) {
  .roster__row {
    grid-template-columns: 64px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr);
    padding: 28px 0 30px;
  }
  .roster__when { grid-column: 4; grid-row: 1; padding-top: 4px; }
}

/* 9. People & capital
   -------------------------------------------------------------------------- */
.pc-grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 64px);
}
.pc-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 34px) clamp(28px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-card) 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.pc-card:hover {
  border-color: var(--line-strong);
  background: rgba(13, 26, 28, 0.6);
}
.pc-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.pc-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  font-weight: 600;
  line-height: 1.1;
}
.pc-card__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.pc-card__list { margin-top: 6px; }
.pc-card__list li {
  position: relative;
  padding: 13px 0 13px 24px;
  font-size: var(--fs-text);
  line-height: 1.5;
}
.pc-card__list li + li { border-top: 1px solid var(--line); }
.pc-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.pc-card__note {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.7;
  color: var(--muted);
}

.formula {
  display: grid;
  gap: 18px 48px;
  margin-top: clamp(48px, 6vw, 64px);
}
.formula__eq {
  font-family: var(--font-display);
  font-size: var(--fs-formula);
  font-weight: 600;
  line-height: 1.15;
  color: var(--muted);
}
.formula__eq span {
  display: block;
  color: var(--accent);
}
.formula__text {
  max-width: 32em;
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

@media (min-width: 860px) {
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formula { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .formula__text { padding-top: 2px; }
}

/* 10. Method
   -------------------------------------------------------------------------- */
.method-head {
  display: grid;
  gap: 48px;
  align-items: center;
}

.chart {
  position: relative;
  width: 100%;
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: var(--r-card) 0;
  background: var(--bg-raised);
}
.chart__plot {
  position: relative;
  aspect-ratio: 548 / 262;
}
.chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart__grid line { stroke: var(--line); stroke-width: 0.85; }
.chart__marker { stroke: var(--accent-deep); stroke-width: 0.9; stroke-dasharray: 2.6 4.2; }
.chart__before { fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; }
.chart__after { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.chart__start { fill: var(--bg-raised); stroke: var(--accent); stroke-width: 1.7; }
.chart__dot { fill: var(--accent); }

.chart__tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}
.chart__tag small {
  display: block;
  font-size: inherit;
  color: var(--muted);
}
.chart__tag--d0 { left: 40.2%; top: 10.4%; }
.chart__tag--d14 { left: 56.2%; top: 72.2%; }
.chart__tag--d90 { left: 61.8%; top: 22.6%; }
.chart__axis {
  position: absolute;
  left: 6.8%;
  bottom: 6%;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chart__caption {
  padding: 0 0 16px 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* draw-on animation, only when JS is present */
.chart.is-armed .chart__before,
.chart.is-armed .chart__after { stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart.is-armed .chart__marker,
.chart.is-armed .chart__start,
.chart.is-armed .chart__dot,
.chart.is-armed .chart__tag { opacity: 0; }
.chart.is-armed.is-drawn .chart__before { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-in-out) 0.1s; }
.chart.is-armed.is-drawn .chart__marker { opacity: 1; transition: opacity 0.6s ease 0.9s; }
.chart.is-armed.is-drawn .chart__start { opacity: 1; transition: opacity 0.4s ease 1.15s; }
.chart.is-armed.is-drawn .chart__tag--d0 { opacity: 1; transition: opacity 0.5s ease 1.2s; }
.chart.is-armed.is-drawn .chart__after { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-in-out) 1.3s; }
.chart.is-armed.is-drawn .chart__dot--d14,
.chart.is-armed.is-drawn .chart__tag--d14 { opacity: 1; transition: opacity 0.4s ease 1.85s; }
.chart.is-armed.is-drawn .chart__dot--d90,
.chart.is-armed.is-drawn .chart__tag--d90 { opacity: 1; transition: opacity 0.4s ease 2.35s; }

.phases,
.sectors {
  display: grid;
  gap: 1px;
  margin-top: clamp(48px, 6vw, 64px);
  border-block: 1px solid var(--line);
  background: var(--line);
}
.phase,
.sector {
  position: relative;
  padding: 28px 0 32px;
  background: var(--bg);
  transition: background-color 0.3s ease;
}
.phase__when {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.phase__when b {
  font-weight: 500;
  color: var(--accent);
}
.phase__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
}
.phase__desc {
  max-width: 30em;
  margin-top: 10px;
  font-size: var(--fs-text);
  line-height: 1.66;
  color: var(--muted);
  text-wrap: pretty;
}
.phase:hover,
.sector:hover { background: #0b1719; }

@media (min-width: 640px) {
  .phases,
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase,
  .sector { padding: 28px 28px 34px; }
  .phase:nth-child(2n + 1),
  .sector:nth-child(2n + 1) { padding-left: 0; }
  .phase:nth-child(2n),
  .sector:nth-child(2n) { padding-right: 0; }
}

@media (min-width: 1024px) {
  .method-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .method-head .chart { justify-self: end; }
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phase { padding: 28px 28px 36px !important; }
  .phase:nth-child(3n + 1) { padding-left: 0 !important; }
  .phase:nth-child(3n) { padding-right: 0 !important; }
}

/* eight sectors: two rows of four once a column fits the longest name */
@media (min-width: 1280px) {
  .sectors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sector { padding: 28px 20px 36px !important; }
  .sector:nth-child(4n + 1) { padding-left: 0 !important; }
  .sector:nth-child(4n) { padding-right: 0 !important; }
}

/* 11. Terrain
   -------------------------------------------------------------------------- */
.terrain-map {
  position: relative;
  isolation: isolate;
  height: clamp(340px, 30vw + 40px, 520px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a1517;
}
.terrain-map .art-stage { inset: 0; }
.terrain-map::before,
.terrain-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.terrain-map::before {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(9, 19, 21, 0) 16%, rgba(9, 19, 21, 0) 84%, var(--bg) 100%),
    radial-gradient(120% 90% at 50% 50%, rgba(9, 19, 21, 0) 55%, rgba(9, 19, 21, 0.55) 100%);
}
.terrain-map::after {
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.05;
}
.no-js .terrain-map,
.art-fallback .terrain-map {
  background: #0a1517 url("../img/terrain-fallback.jpg") 50% 50% / cover no-repeat;
  background-image: image-set(url("../img/terrain-fallback.webp") type("image/webp"), url("../img/terrain-fallback.jpg") type("image/jpeg"));
}

.terrain-map__sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 194, 168, 0) 0%, rgba(0, 194, 168, 0.025) 80%, rgba(0, 194, 168, 0.1) 99.3%, rgba(0, 194, 168, 0) 100%);
  opacity: 0;
}
.js .terrain-map.is-live .terrain-map__sweep {
  animation: terrain-sweep 11s linear infinite;
}
@keyframes terrain-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  8% { opacity: 1; }
  70% { opacity: 1; }
  78% { transform: translateX(460%); opacity: 0; }
  100% { transform: translateX(460%); opacity: 0; }
}

.markers {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  margin-left: -15px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateY(-50%);
  transition: color 0.25s ease;
}
.marker__pin {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.marker__pin::before,
.marker__pin::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.marker__pin::after {
  opacity: 0;
}
.marker:hover,
.marker:focus-visible { color: var(--text); }
.marker:hover .marker__pin::before,
.marker:focus-visible .marker__pin::before { background: var(--accent); }
.js .terrain-map.is-live .marker__pin::after {
  animation: marker-ping 8s var(--ease-out) infinite;
  animation-delay: var(--ping, 0s);
}
@keyframes marker-ping {
  0% { opacity: 0.8; transform: rotate(45deg) scale(1); }
  16.5% { opacity: 0; transform: rotate(45deg) scale(3.2); }
  100% { opacity: 0; transform: rotate(45deg) scale(3.2); }
}
/* one ping a second, roughly clockwise round the wide map */
.marker--property { --ping: 0s; }
.marker--financial-services { --ping: 1s; }
.marker--retail { --ping: 2s; }
.marker--technology { --ping: 3s; }
.marker--mining { --ping: 4s; }
.marker--services { --ping: 5s; }
.marker--hospitality { --ping: 6s; }
.marker--rentals { --ping: 7s; }

@media (max-width: 719px) {
  /* labels on the right half read leftwards on narrow screens */
  .marker--retail,
  .marker--technology,
  .marker--services {
    flex-direction: row-reverse;
    margin-left: 15px;
    transform: translate(-100%, -50%);
  }
}

/* marker positions: a zigzag down the map on phones, the designed layout from 720px up */
.marker--property           { left: 9%;  top: 10%; }
.marker--retail             { left: 62%; top: 21%; }
.marker--financial-services { left: 12%; top: 32%; }
.marker--technology         { left: 91%; top: 43%; }
.marker--hospitality        { left: 20%; top: 54%; }
.marker--services           { left: 84%; top: 65%; }
.marker--mining             { left: 56%; top: 77%; }
.marker--rentals            { left: 9%;  top: 88%; }

@media (min-width: 720px) {
  .marker--property           { left: 12.46%; top: 29.97%; }
  .marker--financial-services { left: 33%;    top: 40%; }
  .marker--hospitality        { left: 38.41%; top: 64%; }
  .marker--retail             { left: 57.39%; top: 24%; }
  .marker--services           { left: 57%;    top: 83%; }
  .marker--mining             { left: 74.41%; top: 57.11%; }
  .marker--rentals            { left: 24.41%; top: 79.97%; }
  .marker--technology         { left: 86.43%; top: 32.1%; }
}

.sector__name {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s ease;
}
.sector:hover .sector__name { color: var(--accent); }
.sector__situation {
  margin-top: 14px;
  font-size: var(--fs-text);
  line-height: 1.62;
  text-wrap: pretty;
}
.sector__approach {
  margin-top: 12px;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--muted);
}
.sector:target { animation: sector-flash 2.4s var(--ease-out); }
@keyframes sector-flash {
  0%, 30% { background-color: rgba(0, 194, 168, 0.1); }
  100% { background-color: var(--bg); }
}

/* 12. Discretion
   -------------------------------------------------------------------------- */
.discretion {
  display: grid;
  gap: 56px;
}

.cctv {
  position: relative;
  isolation: isolate;
  margin-top: 44px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card) 0;
  background: #0d1618;
}
.cctv .art-stage { inset: 0; }
.cctv::before,
.cctv::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cctv::before {
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    radial-gradient(120% 110% at 50% 50%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
}
.cctv::after {
  background-image: var(--grain);
  background-size: 150px 150px;
  opacity: 0.13;
}
.js .cctv.is-live::after { animation: grain-shift 0.6s steps(3) infinite; }
@keyframes grain-shift {
  0% { background-position: 0 0; }
  33% { background-position: -61px 37px; }
  66% { background-position: 43px -89px; }
  100% { background-position: 0 0; }
}
.no-js .cctv,
.art-fallback .cctv {
  background: #0d1618 url("../img/cctv-fallback.jpg") 50% 50% / cover no-repeat;
  background-image: image-set(url("../img/cctv-fallback.webp") type("image/webp"), url("../img/cctv-fallback.jpg") type("image/jpeg"));
}

.cctv__hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  padding: clamp(12px, 2.4vw, 16px) clamp(14px, 2.8vw, 20px);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 233, 231, 0.78);
  pointer-events: none;
}
.cctv__hud > span:nth-child(even) { text-align: right; }
.cctv__rec::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}
.js .cctv.is-live .cctv__rec::before { animation: rec-blink 2s steps(2, jump-none) infinite; }
@keyframes rec-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}
.cctv__time { font-variant-numeric: tabular-nums; }

.vows { border-top: 1px solid var(--line); counter-reset: vow; }
.vows li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}
.vows__num {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  color: var(--dim);
}
.vows p {
  font-size: 1.125rem;
  line-height: 1.62;
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  .discretion {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(56px, 6vw, 80px);
    align-items: start;
  }
}

/* 13. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  gap: 48px;
}

.contact__assure {
  display: grid;
  gap: 18px;
  max-width: 30em;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.contact__assure dd {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.6;
  color: var(--text);
}
.contact__assure a,
.form__status a,
.intro a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.contact__assure a:hover,
.intro a:hover { text-decoration-color: var(--accent); }

.form-card {
  --fs-label: 0.75rem;     /* 12px: the form's labels and notes are read, not glanced at */
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-card) 0;
  background: var(--bg-raised);
}

.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > .label,
.field legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
}
.field legend {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.label .opt { letter-spacing: 0.12em; text-transform: none; color: var(--dim); }

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: var(--dim); opacity: 1; }
.input:hover { border-color: var(--line-strong); }
.input:focus-visible,
.input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea.input {
  min-height: 112px;
  resize: vertical;
}
select.input {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23e2e9e7' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
select.input.is-placeholder,
select.input:has(option[value=""]:checked) { color: var(--dim); }
select.input option { color: var(--text); background: var(--bg); }

.field.is-invalid .input { border-color: var(--danger); }
.field__error {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--danger);
}
.field__hint {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
}
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
}
.chip:hover span { border-color: var(--line-strong); color: var(--text); }
.chip input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 194, 168, 0.06);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .chip span { min-height: 42px; }
}

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile stays invisible unless Cloudflare needs the visitor to click */
.form__send { display: grid; }
.form__check { min-width: 0; }
.form__check.is-shown { margin-bottom: 14px; }

.form__submit {
  width: 100%;
  justify-content: space-between;
  min-height: 48px;
}
.form__submit[aria-busy="true"] { pointer-events: none; opacity: 0.8; }
.form__submit[aria-busy="true"] .btn__arrow { animation: nudge 0.9s var(--ease-in-out) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.form__fine {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.form__fine a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.form__fine a:hover { color: var(--text); text-decoration-color: var(--accent); }

.form__status {
  min-height: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--danger);
}
.form__status:empty { display: none; }

.form-done {
  display: grid;
  gap: 14px;
  padding: clamp(8px, 2vw, 20px) 0;
}
.form-done__mark {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  color: var(--accent);
}
.form-done h3 {
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  font-weight: 600;
  line-height: 1.1;
}
.form-done p {
  max-width: 30em;
  font-size: var(--fs-text);
  line-height: 1.65;
  color: var(--muted);
}
.form-done .label { margin-top: 10px; }

@media (min-width: 560px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1024px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 596px);
    column-gap: clamp(48px, 5vw, 64px);
    align-items: start;
  }
}

/* 14. Footer
   -------------------------------------------------------------------------- */
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-block: 40px max(44px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.site-footer .brand svg { height: 22px; }
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-footer__meta a { transition: color 0.2s ease; }
.site-footer__meta a:hover { color: var(--text); }
.site-footer__meta a[href^="mailto:"] { letter-spacing: 0.08em; text-transform: none; }

/* 15. Documents (privacy, 404), motion, print
   -------------------------------------------------------------------------- */
.doc > .wrap { padding-block: clamp(56px, 8vw, 104px) var(--section-pad); }
.doc__body {
  max-width: 44em;
  margin-top: 40px;
}
.doc__body h2 {
  margin-top: 44px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
}
.doc__body p:not(.label),
.doc__body li {
  margin-top: 14px;
  font-size: var(--fs-text);
  line-height: 1.7;
  color: var(--muted);
}
.doc__body ul { margin-top: 6px; }
.doc__body li {
  position: relative;
  margin-top: 8px;
  padding-left: 22px;
}
.doc__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.doc__body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.doc__body a:hover { text-decoration-color: var(--accent); }
.doc__updated { margin-top: 48px; }

.lost {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 120px);
  min-height: calc(100svh - var(--header-h) - 120px);
}
.lost .wrap { padding-block: 80px; }
.lost .btn { margin-top: 36px; }

/* Scroll reveal: content is only hidden once site.js has taken charge of showing it */
.reveal-ready .reveal {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-ready .reveal:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

/* Hero entrance: pure CSS, so the headline never waits for JavaScript */
.rise {
  animation: rise 1s var(--ease-out) both;
}
.hero .eyebrow.rise { animation-delay: 0.05s; }
.hero__title .rise:nth-child(1) { animation-delay: 0.12s; }
.hero__title .rise:nth-child(2) { animation-delay: 0.2s; }
.hero__title .accent .rise:nth-child(1) { animation-delay: 0.3s; }
.hero__title .accent .rise:nth-child(2) { animation-delay: 0.38s; }
.hero__lede.rise { animation-delay: 0.5s; }
.hero__actions.rise { animation-delay: 0.6s; }
.hero__stats.rise { animation-delay: 0.7s; }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to { opacity: 1; transform: none; }
}

@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;
    transition-delay: 0s !important;
  }
  .reveal-ready .reveal:not(.is-in) { opacity: 1; transform: none; }
  .hero .art-stage.is-ready.is-drifting { animation: none; }
}

@media (forced-colors: active) {
  .btn,
  .chip span,
  .input { border: 1px solid CanvasText; }
  .chip input:checked + span { border-width: 2px; }
}

@media print {
  :root { --bg: #fff; --text: #111; --muted: #444; --dim: #555; --line: #ccc; }
  body { background: #fff; color: #111; }
  .site-header, .mobile-menu, .hero__art, .hero__scrim, .hero__grain, .reticle,
  .terrain-map, .cctv, .form-card, .skip-link { display: none !important; }
  .hero { min-height: 0; background: none; }
  .section > .wrap { padding-block: 32px; }
  .reveal-ready .reveal:not(.is-in) { opacity: 1; transform: none; }
  .rise { animation: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; }
}
