/* Self-hosted variable Manrope (one file per script subset, weights 200-800).
   Serving from /assets/ removes two render-blocking Google Fonts round trips
   and gets the immutable cache header. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f2f0ea;
  --paper-strong: #fbfaf6;
  --ink: #111417;
  --graphite: #191d20;
  --graphite-2: #24292d;
  --muted: #5f6568;
  --line: #c9c7c0;
  --line-dark: rgba(255, 255, 255, 0.18);
  --blue: #407ecf;
  --blue-dark: #245e9f;
  --white: #ffffff;
  --success: #17643a;
  --error: #a43131;
  --shell: min(1320px, calc(100% - 56px));
  --section-pad: clamp(60px, 7vw, 104px);
  --radius-media: 20px;
  --header-height: 78px;
  --shadow: 0 24px 70px rgba(15, 20, 23, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, p, figure, dl, dd { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-bar {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; width: 126px; text-decoration: none; }
.brand img { display: block; width: 100%; }

.desktop-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); }
.desktop-nav a, .nav-contact {
  position: relative;
  color: #34393b;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.desktop-nav a::after, .nav-contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after,
.nav-contact:hover::after, .nav-contact[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-contact { justify-self: end; }

.mobile-nav { display: none; justify-self: end; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 700;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; display: inline-block; margin-left: 9px; font-size: 1.05rem; }
.mobile-nav[open] summary::after { content: "−"; }
.mobile-nav nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  padding: 22px max(22px, calc((100% - var(--shell)) / 2));
  background: var(--paper-strong);
  border-block: 1px solid var(--line);
  box-shadow: 0 22px 35px rgba(17, 20, 23, 0.12);
}
.mobile-nav nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 600; text-decoration: none; }
.mobile-nav nav a:last-child { border-bottom: 0; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #2d3235; }
.button-outline { border-color: #8d9192; color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }

.section { padding: var(--section-pad) 0; }

.page-intro { padding: clamp(68px, 7vw, 104px) 0 clamp(62px, 7vw, 96px); }
.page-intro h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  font-weight: 550;
  letter-spacing: -0.052em;
  line-height: 1.03;
}
.page-intro > p { max-width: 700px; margin-bottom: 0; color: #4f5557; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.7; }

.section-header { margin-bottom: 42px; }
.section-header h2 { margin-bottom: 0; font-size: clamp(1.85rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.section-header p { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }
.roles-list { border-top: 1px solid var(--line); }
.roles-empty { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1fr auto; gap: 35px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.roles-empty p { margin-bottom: 0; color: var(--muted); }
.role-row { display: grid; grid-template-columns: 1fr 0.55fr auto; gap: 30px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.role-row h3 { margin-bottom: 8px; font-size: 1.3rem; }
.role-row p { margin-bottom: 0; max-width: 560px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.role-meta { display: grid; gap: 5px; padding-top: 4px; color: var(--muted); font-size: 0.82rem; }
.role-status { color: var(--blue-dark); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.role-salary { color: var(--ink); font-weight: 600; }
.role-points { margin-top: 14px; }
.role-points summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.role-points summary::-webkit-details-marker { display: none; }
.role-points summary::after { content: " +"; }
.role-points[open] summary::after { content: " −"; }
.role-points h4 { margin: 18px 0 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #3c4144; }
.role-points ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.role-points li { max-width: 540px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.role-apply { justify-self: start; align-self: start; padding-inline: 18px; font-size: 0.8rem; }
.role-apply:hover { color: var(--white); background: var(--ink); }

.application-section { border-top: 1px solid var(--line); }
.application-layout { display: grid; grid-template-columns: minmax(270px, 0.55fr) minmax(0, 1fr); gap: clamp(52px, 10vw, 145px); align-items: start; }
.application-copy { position: sticky; top: calc(var(--header-height) + 34px); }
.application-copy h2 { margin-bottom: 27px; font-size: clamp(2.7rem, 5.5vw, 5.2rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.application-copy p { max-width: 430px; color: var(--muted); line-height: 1.75; }
.application-copy address { margin-top: 50px; font-size: 1.05rem; font-style: normal; font-weight: 600; }

.form-panel { display: flex; flex-direction: column; gap: 30px; color: var(--ink); }
.form-header { display: flex; justify-content: space-between; gap: 25px; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.form-header h2 { margin-bottom: 0; font-size: 1.5rem; letter-spacing: -0.03em; }
.form-header p { margin-bottom: 0; color: var(--muted); font-size: 0.75rem; }
.form-grid { display: grid; gap: 30px 34px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-panel label { display: flex; flex-direction: column; gap: 6px; }
.form-panel label > span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #3c4144; }
.form-panel label b { color: var(--blue-dark); }
.form-panel label small { margin-left: 5px; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.form-panel input, .form-panel select, .form-panel textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b3b1aa;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  padding: 9px 1px 11px;
  font-size: 1rem;
  transition: border-color 160ms ease;
}
.form-panel input, .form-panel select { min-height: 44px; }
.form-panel select { cursor: pointer; }
.form-panel textarea { resize: vertical; line-height: 1.6; }
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form-panel [aria-invalid="true"] { border-bottom-color: var(--error); }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 11px; }
.checkbox-label input[type="checkbox"] {
  width: 17px;
  min-height: 0;
  height: 17px;
  margin: 0;
  border: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.form-panel .checkbox-label > span { text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.privacy-note { margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.6; }
.submit-button { width: fit-content; padding-inline: 30px; margin-top: 4px; border: 0; }
.submit-button:disabled { opacity: 0.58; cursor: wait; transform: none; }
.form-status { min-height: 1.5em; margin: -8px 0 0; font-size: 0.8rem; font-weight: 700; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

.contact-section { background: #dfddd6; }
.contact-grid { display: grid; grid-template-columns: minmax(270px, 0.55fr) minmax(0, 1fr); gap: clamp(52px, 10vw, 145px); align-items: start; }
.contact-details { display: grid; gap: 40px; padding-top: 12px; }
.contact-details > div { padding-top: 18px; border-top: 1px solid #aaa8a2; }
.contact-details span { display: block; margin-bottom: 18px; color: var(--muted); font-size: 0.74rem; }
.contact-details address, .contact-details a { font-size: clamp(1.22rem, 2.4vw, 2rem); font-style: normal; font-weight: 600; line-height: 1.35; text-decoration: none; }
.contact-details a { border-bottom: 1px solid currentColor; }
.contact-details > p { max-width: 430px; color: var(--muted); font-size: 0.87rem; }

.site-footer { padding: 80px 0 25px; color: var(--white); background: #0e1113; }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; gap: 60px; align-items: start; padding-bottom: 55px; }
.footer-brand { display: block; width: 142px; }
.footer-brand img { display: block; }
.footer-tagline {
  margin: 18px 0 0;
  max-width: 250px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.55;
}
.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
}
.footer-location svg { width: 14px; height: 14px; flex: none; opacity: 0.75; }
.footer-inception {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.footer-inception img {
  display: block;
  width: 126px;
  height: auto;
}
.footer-social-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: rgba(255, 255, 255, 0.72); transition: color 0.16s ease; }
.footer-social a:hover { color: var(--white); }
.footer-social a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.footer-social svg { display: block; width: 26px; height: 26px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 35px; justify-self: center; align-self: center; min-width: 280px; }
.footer-nav a { color: rgba(255, 255, 255, 0.72); font-size: 0.82rem; text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-meta { display: flex; justify-content: space-between; gap: 25px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.13); color: rgba(255, 255, 255, 0.38); font-size: 0.68rem; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: rgba(255, 255, 255, 0.75); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* Legal documents */
.legal-page { background: var(--paper-strong); }
.legal-header { background: var(--paper-strong); }
.legal-document {
  max-width: 820px;
  padding-block: 72px 100px;
}
.legal-title {
  margin-bottom: 48px;
}
.legal-title h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.legal-title p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.legal-section { margin-top: 34px; }
.legal-section:first-of-type { margin-top: 0; }
.legal-number { display: none; }
.legal-section h2 { margin-bottom: 12px; font-size: 1.08rem; font-weight: 650; letter-spacing: -0.015em; }
.legal-section h3 { margin: 22px 0 8px; font-size: 0.94rem; }
.legal-section p, .legal-section li { color: #383d40; font-size: 0.91rem; line-height: 1.75; }
.legal-section p:last-child, .legal-section ul:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0 0 18px; padding-left: 1.25rem; }
.legal-section li + li { margin-top: 7px; }
.legal-section a { text-underline-offset: 3px; }

.not-found { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-block: 32px clamp(60px, 8vw, 110px); }
.not-found > img { width: 130px; }
.not-found p { margin-bottom: 20px; color: var(--muted); }
.not-found h1 { max-width: 900px; margin-bottom: 40px; font-size: clamp(3.5rem, 9vw, 8.5rem); font-weight: 500; letter-spacing: -0.065em; line-height: 0.94; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 40px, 860px); }
  .desktop-nav, .nav-contact { display: none; }
  .nav-bar { grid-template-columns: 1fr auto; }
  .mobile-nav { display: block; }
  .application-layout, .contact-grid { grid-template-columns: 1fr; }
  .application-copy { position: static; }
  .application-copy address { margin-top: 25px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); --header-height: 68px; --radius-media: 12px; }
  .brand { width: 110px; }
  .page-intro h1 { font-size: clamp(2.35rem, 11vw, 3.25rem); letter-spacing: -0.047em; }
  .page-intro > p { font-size: 1rem; }
  .section { padding-block: 78px; }
  .roles-empty, .role-row { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 36px; }
  .roles-empty { gap: 10px; }
  .two-columns { grid-template-columns: 1fr; }
  .form-panel { padding: 25px 18px; }
  .form-header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; padding-bottom: 55px; }
  .footer-nav { grid-column: auto; min-width: 0; width: 100%; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 9px; }
  .footer-legal { gap: 8px 18px; }
  .legal-document { padding-block: 52px 72px; }
  .legal-title { margin-bottom: 40px; }
  .legal-section { margin-top: 30px; }
  .legal-section p, .legal-section li { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .button:hover, .text-link:hover span { transform: none; }
}

/* Scene hero */
.scene-hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  height: calc(100lvh - var(--header-height) + env(safe-area-inset-bottom, 0px));
  min-height: 540px;
  overflow: hidden;
  background: #e9e9e6;
}

.scene-hero-canvas { position: absolute; inset: 0; }
.scene-hero-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.scene-hero-canvas canvas.scene-ready { opacity: 1; }

/* Static render still: shown until the WebGL scene draws its first frame,
   and left in place when WebGL (or scripting) is unavailable. */
.scene-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease;
}

.scene-still-hidden { opacity: 0; }

/* WebGL browsers build the hero scene live instead of showing the still;
   the lower sections keep theirs as posters until their scenes lazy-load. */
.webgl .scene-hero-canvas .scene-still { display: none; }

.scene-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 62% 68% at 14% 12%,
    rgba(233, 233, 230, 0.95),
    rgba(233, 233, 230, 0.55) 45%,
    rgba(233, 233, 230, 0) 72%
  );
}

.scene-hero-copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(44px, 8.5vh, 104px);
}

.scene-hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.scene-hero-sub {
  max-width: 500px;
  margin: 0 0 28px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: #2a2f33;
}

@media (max-width: 640px) {
  .scene-hero {
    min-height: 620px;
    height: calc(100lvh - var(--header-height) + 85px);
  }
  .scene-hero-copy { padding-top: 38px; }
  .scene-hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .scene-hero-sub { font-size: 0.95rem; margin-bottom: 26px; }
  .scene-hero::after {
    background: linear-gradient(
      to bottom,
      rgba(233, 233, 230, 0.95),
      rgba(233, 233, 230, 0.6) 46%,
      rgba(233, 233, 230, 0) 68%
    );
  }
}

/* Platoon section */
.platoon-section {
  background: var(--paper-strong);
  padding: var(--section-pad) 0;
}

.platoon-grid {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.platoon-canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #e9e9e6;
}

.platoon-canvas canvas { display: block; width: 100%; height: 100%; }

/* commercial section: mirrored composition (copy left, visual right),
   sits on plain paper so the two vehicle scenes alternate grounds */
.commercial-section { background: var(--paper); }
.commercial-grid { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
.commercial-grid .platoon-copy { order: 0; }
.commercial-grid .platoon-canvas { order: 1; }
@media (max-width: 860px) {
  .commercial-grid { grid-template-columns: 1fr; }
  .commercial-grid .platoon-copy { order: 1; }
  .commercial-grid .platoon-canvas { order: 0; }
}

.platoon-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.platoon-copy p {
  margin: 0 0 16px;
  max-width: 460px;
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.65;
  color: #2a2f33;
}

.platoon-copy p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .platoon-grid { grid-template-columns: 1fr; }
  .platoon-copy p { max-width: 560px; }
}

/* Mission page */
.mission-intro { padding-bottom: clamp(40px, 5vw, 70px); }

.mission-letter {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  column-gap: clamp(60px, 8vw, 140px);
  padding-bottom: clamp(80px, 9vw, 130px);
}

.letter-body {
  grid-column: 1;
  max-width: 660px;
}

.letter-stats {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: clamp(30px, 4vw, 46px);
  align-content: start;
  justify-self: end;
  width: min(280px, 100%);
  padding-top: 10px;
}

.letter-stats > div {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.letter-stats strong {
  font-size: clamp(2.7rem, 3.6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.letter-stats span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .mission-letter { grid-template-columns: 1fr; }
  .letter-stats { display: none; }
}

.letter-body p {
  margin: 0 0 1.6em;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.8;
  color: #2a2f33;
}

.letter-body p:first-child {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.7;
  color: var(--ink);
}

.letter-signature {
  grid-column: 1;
  display: grid;
  gap: 4px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 660px;
}

.letter-signature strong { font-size: 1.05rem; font-weight: 700; }
.letter-signature span { color: var(--muted); font-size: 0.85rem; }

.mission-cta {
  padding-bottom: clamp(90px, 11vw, 150px);
}

.mission-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.mission-cta p {
  max-width: 520px;
  margin: 0 0 30px;
  color: #4f5557;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
}

/* Hero copy entrance */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.scene-hero-copy h1,
.scene-hero-sub,
.scene-hero-copy .button {
  animation: heroRise 700ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.scene-hero-copy h1 { animation-delay: 120ms; }
.scene-hero-sub { animation-delay: 260ms; }
.scene-hero-copy .button { animation-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .scene-hero-copy h1,
  .scene-hero-sub,
  .scene-hero-copy .button { animation: none; }
}

/* Research pages */
.research-index { padding-bottom: clamp(80px, 9vw, 130px); }
.research-index h2 {
  margin: clamp(46px, 6vw, 72px) 0 22px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
}
.research-index h2:first-child { margin-top: 0; }

.research-card {
  display: block;
  max-width: 860px;
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--paper-strong);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.research-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.research-card + .research-card { margin-top: 18px; }
.research-card h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.research-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.research-card-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue-dark);
}
.research-card-cta {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--ink);
}
.research-roadmap { max-width: 730px; color: var(--muted); line-height: 1.75; margin: 0; }

.research-article { max-width: 860px; padding-top: clamp(60px, 7vw, 96px); padding-bottom: clamp(70px, 8vw, 110px); }
.research-article-head { margin-bottom: clamp(40px, 5vw, 60px); }
.research-backlink {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.research-backlink:hover { color: var(--ink); }
.research-article-head h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.research-standfirst {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.65;
  color: #4f5557;
}
.research-article h2 {
  margin: clamp(40px, 5vw, 60px) 0 16px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
}
.research-article p {
  margin: 0 0 1.5em;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: #2a2f33;
}
.research-citation { text-decoration: none; }
.research-citation:hover { text-decoration: underline; }
.research-references {
  margin: 0;
  padding-left: 1.4rem;
  color: #2a2f33;
}
.research-references li {
  margin-bottom: 0.9rem;
  padding-left: 0.3rem;
  font-size: 0.96rem;
  line-height: 1.7;
}
.research-references a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.results-table-wrap { overflow-x: auto; margin: 26px 0 30px; }
.results-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.results-table th, .results-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.results-table thead th {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--graphite);
  border-bottom: none;
}
.results-table tbody tr:last-child td { border-bottom: none; }
.results-highlight td { background: #eef3fa; }

.replay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 26px 0 34px;
}
.replay-grid figure { margin: 0; }
.replay-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--paper-strong);
}
.replay-grid figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 820px) {
  .replay-grid { grid-template-columns: 1fr; }
}

.research-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.research-byline span:first-child { color: var(--ink); font-weight: 600; }

/* --- Homepage: company news --- */
/* Closing CTA */
.closing-cta { text-align: center; }
.closing-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.closing-cta p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.closing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.news-section { background: var(--paper-strong); }
.news-section h2 {
  margin-bottom: clamp(34px, 4.5vw, 54px);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.news-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.news-card:has(a):hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.news-card-media {
  margin: calc(-1 * clamp(22px, 2.4vw, 30px)) calc(-1 * clamp(22px, 2.4vw, 30px)) clamp(18px, 2.2vw, 26px);
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-media) var(--radius-media) 0 0;
  background: #e6e3db;
}
.news-card-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-media-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(16px, 2vw, 26px);
  padding: clamp(20px, 3vw, 38px) 8%;
  background: var(--white);
}
.news-card-media-lockup > img {
  max-height: 78%;
  height: auto;
  object-fit: contain;
  justify-self: center;
}
.news-card-media-lockup > .inception-badge { width: 96%; }
.news-card-media-lockup > .corvo-lockup { width: 76%; }
.lockup-divider {
  width: 1px;
  height: 48%;
  background: var(--line);
}

.news-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(16px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.news-tag {
  padding: 2px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.news-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.12rem, 1.45vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.28;
  text-wrap: balance;
}
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card h3 a:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 2px; }
.news-card p {
  margin: 0;
  color: #505658;
  font-size: 0.93rem;
  line-height: 1.62;
}
.news-card-cta {
  margin-top: auto;
  padding-top: 16px;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 600;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 980px) {
  .news-row { grid-template-columns: 1fr; max-width: 640px; }
}
