/* =========================================================
   Tektrois — www.tektrois.com
   Tokens from Figma "tektrois-light-homepage" (ysjnYN9ucealesY5crnbGw, node 1:1412)
   Contrast-adjusted where the design failed WCAG AA (marked "a11y").
   ========================================================= */

/* ---------- Self-hosted fonts (OFL; licenses in assets/fonts) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/geist-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/geist-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/geist-mono-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }

:root {
  /* Surfaces */
  --bg-warm: #faf9f6;
  --bg-white: #ffffff;
  --bg-ink: #0f172a;

  /* Text */
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;        /* a11y: design used #94a3b8 (2.4:1) */
  --ink-faint: #94a3b8;    /* decorative only / text on --bg-ink */

  /* Lines */
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Accent: the logo's own navy (sampled from tektrois-logo-blue.png).
     digital.tektrois.com keeps the brighter #0052ff, so the parent site reads navy and Digital reads bright blue.
     Navy is close to --ink, so links must not rely on color alone: keep them underlined. */
  --blue: #001074;
  --blue-hover: #1a2a8c;
  --blue-tint: #e8eaf5;
  --green: #10b981;        /* dots, borders */
  --green-text: #047857;   /* a11y: design used #10b981 for text (2.5:1) */
  --green-tint: #e6f4ea;
  --danger: #c2410c;

  /* Type */
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --gutter: 80px;
  --max: 1280px;
  --header-h: 100px;       /* matches digital.tektrois.com */
  --section-y: 96px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 20px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-warm);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

.icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display-md {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
}
.h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
}
.h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
}
.h3-lg {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-xs);
  background: var(--blue);
}
.eyebrow--plain::before { display: none; }

.mono-label {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--blue-tint);
  color: var(--blue);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pill-dot, .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.dot { width: 8px; height: 8px; }
.dot--green { background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: var(--bg-white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-faint); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }

.text-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: color .2s ease;
}
/* Navy is close to --ink, so hover is shown with an underline, not color alone */
.text-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.text-link--arrow { display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================
   HEADER  (Figma 1:1413)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 249, 246, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Same structure as digital.tektrois.com: logo left, nav centered, actions right */
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo, .footer-logo { display: inline-flex; align-items: center; }
.logo { justify-self: start; }
/* Official logo (shared/brand). Never stretch, recolor or add effects. */
.logo-img { height: 80px; width: auto; }
.footer-logo-img { height: 72px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 14px;
}
.nav-link {
  color: var(--ink-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active { box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 2px; }
.nav-mobile-ctas { display: none; }

/* Only the main action sits on the right, so the centered nav has room on both sides */
.header-cta { justify-self: end; display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* =========================================================
   HERO  (Figma 1:1430)
   ========================================================= */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-warm); }
/* Texture (approved 2026-11-24): fine navy dot grid, strongest behind the visual and fading out
   before the headline, plus a soft navy glow behind the placement-flow card. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 16, 116, 0.18) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 65% 85% at 72% 48%, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 78%);
          mask-image: radial-gradient(ellipse 65% 85% at 72% 48%, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 16, 116, 0.13) 0%, rgba(0, 82, 255, 0.06) 38%, transparent 68%);
  pointer-events: none;
}
@media (max-width: 1100px) {
  .hero::before {
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
            mask-image: radial-gradient(ellipse 90% 60% at 50% 70%, #000 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
  }
  .hero::after { width: 520px; height: 520px; right: 50%; top: auto; bottom: -120px; transform: translateX(50%); }
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-block: var(--section-y);
}
.hero-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero-copy .btn-row { margin-top: 16px; }
.hero-proof {
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero-proof ul { display: flex; gap: 24px; }
.hero-proof li { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.hero-visual { flex: 0 0 480px; }

/* Placement flow (replaces the static Figma 1:1455 diagram).
   States are driven by js/site.js; without JS the finished state shows. */
.flow {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
}
.flow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.flow-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.flow-pulse { position: relative; }
.flow-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: flow-ping 2s var(--ease-out) infinite;
}
@keyframes flow-ping {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.flow.is-paused .flow-pulse::after { animation-play-state: paused; }
.flow-controls { display: flex; align-items: center; gap: 10px; }
.flow-example {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg-white);
}
.flow-pause {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-white);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.flow-pause:hover { border-color: var(--line-strong); color: var(--ink); }
.flow-pause .icon-play { display: none; }
.flow-pause[aria-pressed="true"] .icon-pause { display: none; }
.flow-pause[aria-pressed="true"] .icon-play { display: block; }

.flow-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px 0;
  flex-wrap: wrap;
}
.flow-tab {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-white);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.flow-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.flow-tab[aria-pressed="true"] { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }

.flow-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "company hub"
    "candidate hub"
    "placed placed";
  column-gap: 44px;
  row-gap: 14px;
  padding: 16px;
}
.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.flow-track { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 4; }
.flow-run { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.flow-run[data-line-run="placed"] { stroke: var(--green); }
.flow-packet {
  fill: var(--blue);
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(0, 16, 116, .55));
}
.flow-packet--green { fill: var(--green); filter: drop-shadow(0 0 4px rgba(16, 185, 129, .6)); }
.flow-packet.is-moving { opacity: 1; }

.flow-card,
.flow-hub,
.flow-placed {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-white);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.flow-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateX(-10px);
}
.flow-card--company { grid-area: company; }
.flow-card--candidate { grid-area: candidate; }
.flow-card.is-in { opacity: 1; transform: none; }
.flow-card.is-sending { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.flow-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--blue);
}
.flow-kicker--green { color: var(--green-text); }
.flow-name { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.flow-meta { display: block; font-size: 12px; line-height: 1.35; color: var(--ink-3); }

.flow-hub {
  grid-area: hub;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.flow-hub.is-working { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.flow-hub-head { display: flex; align-items: center; gap: 10px; }
/* Official square icon (white logo on brand blue) */
.flow-hub-mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: block;
}
.flow-hub-head .flow-kicker { color: var(--ink-3); }
.flow-hub-status { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.flow-steps { display: flex; flex-direction: column; gap: 7px; }
.flow-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-3);
  transition: color .3s ease;
}
.flow-check {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: background-color .3s ease, border-color .3s ease;
}
.flow-steps li.is-active { color: var(--ink); font-weight: 600; }
.flow-steps li.is-active .flow-check {
  border-color: var(--blue);
  border-right-color: transparent;
  animation: flow-spin .8s linear infinite;
}
@keyframes flow-spin { to { transform: rotate(360deg); } }
.flow.is-paused .flow-steps li.is-active .flow-check { animation-play-state: paused; }
.flow-steps li.is-done { color: var(--ink); }
.flow-steps li.is-done .flow-check { background: var(--green); border-color: var(--green); }
.flow-steps li.is-done .flow-check::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.flow-progress {
  height: 4px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.flow-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width .5s var(--ease-out);
}

.flow-placed {
  grid-area: placed;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  opacity: .35;
  border-style: dashed;
}
.flow-placed .flow-name,
.flow-placed .flow-meta { transition: opacity .3s ease; }
.flow-placed:not(.is-in) .flow-name,
.flow-placed:not(.is-in) .flow-meta { opacity: 0; }
.flow-placed.is-in {
  opacity: 1;
  border-style: solid;
  border-color: var(--green);
  background: var(--green-tint);
}
.flow-placed-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  transition: background-color .3s ease, transform .45s var(--ease-out);
}
.flow-placed.is-in .flow-placed-icon { background: var(--green); animation: flow-pop .5s var(--ease-out); }
@keyframes flow-pop {
  0% { transform: scale(.5); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Whole example fades before the next one starts */
.flow-body.is-out .flow-card,
.flow-body.is-out .flow-placed,
.flow-body.is-out .flow-steps,
.flow-body.is-out .flow-hub-status { opacity: 0; transition-duration: .35s; }

@media (max-width: 600px) {
  .flow-body { column-gap: 28px; padding: 14px 12px; }
  .flow-tabs { padding-inline: 12px; }
  .flow-bar { padding-inline: 12px; }
  .flow-name { font-size: 12px; }
  .flow-meta, .flow-steps li { font-size: 11px; }
}
@media (max-width: 380px) {
  /* Too narrow for side-by-side: stack, lines are hidden */
  .flow-body {
    grid-template-columns: 1fr;
    grid-template-areas: "company" "candidate" "hub" "placed";
  }
  .flow-lines { display: none; }
  .flow-placed { margin-top: 0; }
}

/* Entrance motion (Figma motion on 1:1431 / 1:1454). Plays once. */
@keyframes rise {
  from { opacity: 0; transform: translateY(var(--rise, 20px)); }
  to   { opacity: 1; transform: none; }
}
.reveal { animation: rise .72s var(--ease-out) both; }
.reveal--copy   { --rise: 26px; animation-delay: .08s; }
.reveal--visual { --rise: 18px; animation-delay: .24s; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: var(--section-y); }
.section--warm { background: var(--bg-warm); }
.section--white { background: var(--bg-white); }
/* Soft navy tint (approved 2026-11-24): gives the page rhythm without a jump to full navy */
.section--tint {
  --ink-3: #566175;   /* tertiary text stays AA on the tint (5.5:1) */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(0, 16, 116, 0.07) 0%, transparent 60%),
    #eef0f8;
  border-block: 1px solid #e2e5f1;
}
.section--tint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 16, 116, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(0, 16, 116, 0.045) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 0%, transparent 80%);
  pointer-events: none;
}
.section--tint .card { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(0, 16, 116, 0.06); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 56px;
}
.section-head .h2 { max-width: 880px; }
.section-head--center { align-items: center; text-align: center; }
.section-intro { max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- Proof (Figma 1:1499) ---------- */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
}
.stat { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.stat-value {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-align: right; /* while rolling, digits sit against the unit (js reserves the final width) */
}
.stat-unit { font-weight: 600; font-size: 20px; color: var(--blue); }
.stat-text { font-weight: 500; font-size: 15px; color: var(--ink-2); }

/* ---------- Why (Figma 1:1594) ---------- */
.split {
  display: flex;
  align-items: center;
  gap: 80px;
}
.framework-card {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.framework-title { font-family: var(--f-mono); font-weight: 600; font-size: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: 0.02em; }
.framework-list { display: flex; flex-direction: column; gap: 12px; }
.framework-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.fw-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--blue-tint);
  color: var(--blue);
}
.fw-icon--green { background: var(--green-tint); color: var(--green-text); }

/* Vetting card animation (played once when scrolled into view; js adds .fx).
   Without JS or with reduced motion the finished state shows. */
.framework-list { position: relative; }
.fx .framework-list::before,
.fx .framework-list::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 1px;
  background: var(--line);
}
.fx .framework-list::after {
  background: var(--blue);
  transform-origin: top;
  transform: scaleY(var(--fw-progress, 0));
  transition: transform .55s var(--ease-out);
}
.fw-icon { position: relative; z-index: 1; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s var(--ease-out); }
.framework-list li { transition: color .3s ease; }
.fx .framework-list li:not(.is-on) { color: var(--ink-3); }
.fx .framework-list li:not(.is-on) .fw-icon { background: var(--bg-white); color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line); }
.fx .framework-list li.is-on .fw-icon { animation: fw-pop .4s var(--ease-out); }
@keyframes fw-pop { 0% { transform: scale(.7); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.fx .framework-foot .status { opacity: 0; transition: opacity .4s ease; }
.fx.is-done .framework-foot .status { opacity: 1; }
.fx.is-done .framework-foot .dot { position: relative; }
.fx.is-done .framework-foot .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: fw-ping 2.4s var(--ease-out) infinite;
}
@keyframes fw-ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.framework-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--green-text);
}
.split-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.split-copy .body { margin-top: 16px; }
.mini-stats { display: flex; gap: 32px; padding-top: 32px; }
.mini-stats li { display: flex; flex-direction: column; gap: 4px; }
.mini-value { font-family: var(--f-mono); font-weight: 700; font-size: 24px; }
.mini-label { font-size: 12px; color: var(--ink-3); }

/* ---------- Services (Figma 1:1630) ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
.service-card:hover .service-arrow { color: var(--blue); transform: translate(2px, -2px); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.icon-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-tint);
  color: var(--blue);
}
.service-arrow { color: var(--ink-faint); transition: color .2s ease, transform .2s ease; }
.card-text { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ext-label {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  vertical-align: middle;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.tags li {
  padding: 4px 8px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
}

/* ---------- Latest insights (posts from blog.tektrois.com, rendered by js/site.js) ---------- */
.insight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.insight-card:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); transform: translateY(-2px); }
.insight-cover { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; background: var(--blue-tint); }
.insight-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.insight-cat {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.insight-title { font-family: var(--f-serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--ink); }
.insight-title a::after { content: ""; position: absolute; inset: 0; }
.insight-card:hover .insight-title a { text-decoration: underline; text-underline-offset: 4px; }
.insight-excerpt { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.insight-meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.insights-more { margin-top: 40px; }

/* ---------- Engagement models (Figma 1:1740 panel) ---------- */
.panel {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.model-list {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.model-list ul { display: flex; flex-direction: column; gap: 12px; }
/* Options are buttons: selecting one swaps the explanation on the right (js/site.js) */
.model {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.model:hover { border-color: var(--line-strong); background: var(--bg-white); }
.model[aria-pressed="true"] { border-color: var(--blue); background: var(--bg-white); box-shadow: 0 0 0 3px var(--blue-tint); }
.model-hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.panel-copy [data-model-title],
.panel-copy [data-model-text] { transition: opacity .2s ease; }
.panel-copy.is-swapping [data-model-title],
.panel-copy.is-swapping [data-model-text] { opacity: 0; }
.model-name { font-weight: 600; font-size: 13px; }
.model-tag { font-family: var(--f-mono); font-size: 11px; color: var(--blue); }
.model-tag--green { color: var(--green-text); }
.panel-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.panel-copy .body { font-size: 15px; }

/* ---------- Process (Figma 1:1761) ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.phase {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  cursor: default;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.phase:focus-visible { outline-offset: 2px; }
.phase-num {
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink-faint);
  opacity: .6;
  transition: color .25s ease, opacity .25s ease;
}
.phase-title { font-family: var(--f-sans); font-weight: 600; font-size: 18px; }
.phase-text { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.phase.is-active {
  background: var(--bg-white);
  border-color: var(--blue);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.05);
}
.phase.is-active .phase-num { color: var(--blue); opacity: 1; }

/* Process timeline: one line ABOVE the cards with a node per step, so it never
   collides with a highlighted card's border. js adds .fx, sets --proc (0..1) and .is-reached.
   Without JS / with reduced motion the line is full and every node is filled. */
.process { position: relative; padding-top: 32px; }
.process::before,
.process::after {
  content: "";
  position: absolute;
  top: 9px;                                   /* centre of the 12px nodes */
  left: 30px;                                 /* first node centre: 24px card padding + 6px */
  right: calc((100% - 48px) / 4 - 30px);      /* last node centre: last column start + 30px */
  height: 2px;
  border-radius: 1px;
  background: var(--line);
}
.process::after {
  background: var(--blue);
  transform-origin: left;
  transform: scaleX(var(--proc, 1));
}
.fx.process::after { transform: scaleX(var(--proc, 0)); transition: transform .7s linear; }
.phase { position: relative; }
.phase-node {
  position: absolute;
  top: -29px;                                 /* sits on the line, above the card */
  left: 24px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--blue);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.fx .phase:not(.is-reached) .phase-node { background: var(--bg-warm); border-color: var(--line-strong); }
.phase.is-active .phase-node { box-shadow: 0 0 0 4px var(--blue-tint); }
.phase.is-reached .phase-num { color: var(--blue); opacity: 1; }

/* Narrow screens: a vertical timeline down the left, outside the cards (steps stack in one column).
   Each segment joins a node to the next one and fills when the next step is reached. */
@media (max-width: 1100px) {
  .process { padding-top: 0; padding-left: 32px; }
  .process::before, .process::after { display: none; }
  .phase-node { top: 34px; left: -32px; }          /* centre at -26px, level with the step number */
  .phase:not(:last-child)::before,
  .phase:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -27px;
    width: 2px;
    top: 46px;                                     /* bottom of this node */
    bottom: -50px;                                 /* top of the next node: 16px gap + 34px */
    border-radius: 1px;
    background: var(--line);
  }
  .phase:not(:last-child)::after { background: var(--blue); transform-origin: top; }
  .fx .phase:not(:last-child)::after { transform: scaleY(0); transition: transform .5s linear; }
  .fx .phase:has(+ .phase.is-reached)::after { transform: scaleY(1); }
}

/* ---------- Clients ---------- */
/* Logos sit on white tiles: the source files have white backgrounds, which would otherwise
   show as boxes on the off-white section. Greyscale by default, full colour on hover. */
.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.logo-tile {
  display: grid;
  place-items: center;
  height: 140px;
  padding: 8px 24px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.logo-tile:hover { border-color: var(--line-strong); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05); }
.logo-tile img {
  width: 100%;
  max-width: 180px;
  height: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .2s ease, opacity .2s ease;
}
.logo-tile:hover img { filter: none; opacity: 1; }
@media (max-width: 860px) { .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .logo-tile { height: 112px; } .logo-tile img { height: 96px; } }

/* ---------- Testimonials ---------- */
.quote-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-warm);
}
.quote-mark { color: var(--blue); }
.quote-text { margin: 0; flex: 1; }
.quote-text p {
  font-family: var(--f-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}
.quote-by {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.quote-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}
.quote-name { display: block; font-weight: 600; font-size: 15px; color: var(--ink); }
.quote-role,
.quote-org { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-3); }

/* ---------- CTA (Figma 1:1839) ---------- */
/* CTA (approved 2026-11-24): a framed navy card floating on the cream section,
   not a full-width band, so the switch from cream to navy isn't abrupt. */
.cta { padding-block: 96px; }
.cta-inner {
  /* Re-token inside the card so headings, text and the eyebrow read on navy */
  --ink: #ffffff;
  --ink-2: #c9d1f2;      /* 10.5:1 on navy */
  --ink-3: #aab5e3;
  --blue: #a9bbff;       /* accent on navy, 8.5:1 */
  --blue-tint: rgba(255, 255, 255, 0.08);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: calc(100% - var(--gutter) * 2);  /* keep cream margins around the card at every width */
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 72px 48px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(70% 100% at 85% 0%, rgba(38, 74, 220, 0.55) 0%, transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(0, 82, 255, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #001074 0%, #000b56 100%);
  box-shadow: 0 30px 70px -30px rgba(0, 16, 116, 0.55);
}
/* Faint grid inside the card, fading toward the bottom */
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  pointer-events: none;
}
.cta-inner .lead { max-width: 640px; }
.cta-inner .btn-row { margin-top: 20px; }
.cta-inner :focus-visible { outline-color: #fff; } /* navy outline would vanish on the card */
.cta-inner .btn-primary { background: #ffffff; color: #001074; }
.cta-inner .btn-primary:hover { background: #e8eaf5; }
.cta-inner .btn-secondary { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.35); }
.cta-inner .btn-secondary:hover { border-color: #ffffff; }

/* ---------- Contact (Figma 1:1854) ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: 80px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-list dd { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.contact-list dd a { font-weight: 600; }
.contact-list dd a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.contact-info .text-link { margin-top: 8px; }

.form-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.seg input:checked + span { background: var(--bg-white); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.optional { text-transform: none; font-weight: 400; color: var(--ink-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-2); }
.phone-input { display: flex; }
.phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
}
.phone-input input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.field.has-error input,
.field.has-error select,
.field.has-error .phone-prefix { border-color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger); }
.field-error:empty { display: none; }

.consent { gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.consent-text { font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.consent-text a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.btn-submit { align-self: flex-start; }
.form-status { font-size: 14px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--green-text); }
.form-status.is-error { color: var(--danger); }
.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; } /* link inside a sentence */

/* =========================================================
   PAGE HERO (service pages)
   ========================================================= */
.page-hero { padding-block: 80px 96px; }
.page-hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 880px; }

/* ---------- Legal pages (privacy-policy.html, terms-and-conditions.html) ---------- */
.page-hero--legal { padding-block: 64px 72px; }
.legal-updated { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 80px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-toc ol { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.legal-toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  transition: color .2s ease, border-color .2s ease;
}
.legal-toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.legal-prose { display: flex; flex-direction: column; gap: 48px; }
.legal-section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-h2 { font-family: var(--f-serif); font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--ink); }
.legal-section p,
.legal-section li { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-section ul { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; list-style: disc; }
.legal-section li::marker { color: var(--blue); }
.legal-section ul.legal-contact { list-style: none; padding: 20px 24px; background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-lg); }
/* Links in running text: underlined, since navy is close to the body text color */
.legal-section a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { text-decoration-thickness: 2px; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-toc { display: none; }
}
@media (max-width: 600px) {
  .page-hero--legal { padding-block: 48px 56px; }
  .legal-h2 { font-size: 27px; }
  .legal-prose { gap: 40px; }
}
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.role-card { display: flex; flex-direction: column; gap: 12px; }
.role-card .h3 { font-size: 24px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.check-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001074' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* =========================================================
   FOOTER (Figma 1:1885)
   ========================================================= */
.site-footer { background: var(--bg-ink); color: #fff; padding-block: 80px 40px; }
.site-footer :focus-visible { outline-color: #fff; } /* navy outline is invisible on --bg-ink */
.footer-top { display: flex; justify-content: space-between; gap: 48px; }
.footer-brand { width: 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: var(--ink-faint); } /* a11y: design used #475569 on ink (2.3:1) */
.social {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #1e293b;
  border-radius: var(--r-sm);
  color: var(--ink-faint);
  transition: color .2s ease, border-color .2s ease;
}
.social:hover { color: #fff; border-color: #334155; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 160px; }
.footer-col-title {
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
}
.footer-col a, .footer-col p { font-size: 13px; line-height: 1.5; color: var(--ink-faint); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-faint);
}
.footer-bottom > p { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: #fff; }

/* =========================================================
   404
   ========================================================= */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 120px; }
.not-found .page-hero-inner { align-items: center; margin-inline: auto; }

/* =========================================================
   RESPONSIVE (no Figma frames below 1440 — layout decisions are ours)
   ========================================================= */
/* Common laptop widths: tighter margins and nav spacing keep the nav centered */
@media (max-width: 1366px) {
  :root { --gutter: 56px; }
  .nav { gap: 24px; }
}

@media (max-width: 1280px) {
  .display { font-size: 64px; }
  .hero-visual { flex-basis: 420px; }
  .framework-card, .model-list { flex-basis: 420px; }
  .split { gap: 56px; }
  .contact { gap: 56px; }
}

/* Header switches to the menu button earlier than the page layout does:
   the full nav needs ~1260px to stay centered with room on both sides. Keep in sync with js/site.js (min-width: 1261px). */
@media (max-width: 1260px) {
  :root { --header-h: 76px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .logo-img { height: 60px; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-link.is-active { box-shadow: none; color: var(--blue); padding-bottom: 14px; }
  .nav-mobile-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
}

@media (max-width: 1100px) {
  .hero-inner { flex-direction: column; align-items: stretch; gap: 56px; }
  .hero-visual { flex-basis: auto; max-width: 560px; width: 100%; }
  .split { flex-direction: column; align-items: stretch; }
  .framework-card { flex-basis: auto; order: 2; }
  .panel { flex-direction: column; align-items: stretch; }
  .model-list { flex-basis: auto; }
  .process { grid-template-columns: 1fr; } /* vertical timeline: one step per row */
  .contact { grid-template-columns: 1fr; }
  .footer-top { flex-wrap: wrap; }
  .footer-brand { width: 100%; max-width: 480px; }
}

@media (max-width: 860px) {
  :root { --section-y: 72px; }
  .display { font-size: 52px; }
  .display-md { font-size: 48px; }
  .h2 { font-size: 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .service-card { min-height: 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section-y: 64px; }
  .logo-img { height: 56px; }
  .hero-inner { padding-block: 56px 64px; }
  .display { font-size: 42px; }
  .display-md { font-size: 38px; }
  .h2 { font-size: 34px; }
  .h3-lg { font-size: 26px; }
  .lead { font-size: 17px; }
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card, .framework-card, .form-card { padding: 24px 20px; }
  .panel { padding: 20px; }
  .model-list { padding: 16px; }
  .process { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .btn-submit { align-self: stretch; }
  .cta { padding-block: 56px; }
  .cta-inner { padding: 48px 20px; border-radius: 16px; }
  .footer-col { min-width: calc(50% - 24px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero { padding-block: 56px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Split card (service pages) */
.split-card { flex: 1 1 0; min-width: 0; margin: 0; padding: 32px; gap: 16px; }
@media (max-width: 1100px) { .split-card { flex: none; } }

/* Consent label must not inherit the mono field-label style */
.field .check {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}

/* Avoid one-word last lines on headings */
.display, .display-md, .h2, .h3-lg { text-wrap: balance; }
