/*
 * saasport.net — site stylesheet
 * ==============================
 *
 * One stylesheet, linked from every page and cached once. Page-specific
 * refinements live beside it in /styles/pages/<slug>.css and are linked
 * only by the page that needs them.
 *
 * Contents
 *   1. Fonts and brand tokens
 *   2. Base elements
 *   3. Shared type and actions
 *   4. Home: header, hero, sections, footer
 *   5. Inner pages: header, hero, prose, forms
 *   6. Responsive and reduced motion
 *
 * Brand rules are documented in DESIGN.md. Colours are tokens; please
 * don't hard-code new hex values below the :root block.
 *
 *   ┌──────────────────────────────────────────────────────────────┐
 *   │  Understand the constraint. Decide in the open. Execute.     │
 *   │  Same applies to CSS: one source of truth, no !important     │
 *   │  unless the user has asked for reduced motion.               │
 *   └──────────────────────────────────────────────────────────────┘
 */

/* 1. Fonts and brand tokens
   ========================================================================== */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-variable.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  /* Brand tokens */
      --canvas: #0b0b0f;
  --surface: #111116;
  --raised: #16161c;
  --text: #f5f5f5;
  --body: #d0d0d7;
  --secondary: #a6a6b2;
  --border: #303039;
  --border-quiet: #26262e;
  --border-strong: #71717e;
  --focus: #ffd400;
  --focus-hover: #ffe451;
  --sans: Inter,system-ui,sans-serif;
  --mono: 'JetBrains Mono',ui-monospace,monospace;
  /* Layout: 1280px shell, 6% side padding, 8px rhythm */
      --max:1280px;
  --gutter: max(16px,6vw);
  --section: clamp(80px,10vw,128px);
}

/* 2. Base elements
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: var(--focus);
  color: var(--canvas);
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  padding: 8px 16px;
  background: var(--focus);
  color: var(--canvas);
  transform: translateY(-200%);
  z-index: 50;
}

.skip-link:focus {
  transform: none;
}

/* 3. Shared type and actions
   ========================================================================== */
.eyebrow {
  font: 500 12px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--secondary);
}

.eyebrow b {
  font-weight: 500;
  color: var(--text);
}

.section-title {
  font-size: clamp(36px,4.4vw,60px);
  letter-spacing: -.04em;
  margin-top: 16px;
}

.section-title .quiet {
  color: var(--secondary);
}

.lede {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.75;
  max-width: 52ch;
}

.note {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.6;
  max-width: 80ch;
}

/* Actions (brand .primary-link / .secondary-link) */
.button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  transition: background-color .15s,border-color .15s,color .15s;
}

.button:hover {
  border-color: var(--text);
}

.button--primary {
  background: var(--focus);
  border-color: var(--focus);
  color: var(--canvas);
}

.button--primary:hover {
  background: var(--focus-hover);
  border-color: var(--focus-hover);
  color: var(--canvas);
}

.button--small {
  min-height: 40px;
  padding: 8px 16px;
  gap: 16px;
  font-size: 14px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .4em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border-strong);
}

.link:hover {
  color: var(--focus);
  text-decoration-color: var(--focus);
}

.link span {
  transition: transform .15s;
}

.link:hover span {
  transform: translateX(4px);
}

/* 4. Home
   ========================================================================== */

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,11,15,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.wordmark span {
  color: var(--focus);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px,2.2vw,32px);
  font-size: 15px;
}

.desktop-nav>a:not(.button) {
  color: var(--secondary);
}

.desktop-nav>a:not(.button):hover {
  color: var(--focus);
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.mobile-nav {
  display: none;
}

/* Hero: asymmetric split, full-bleed right panel */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--focus);
  flex: none;
}

/* Both columns share one top/bottom line so kicker/eyebrow, h1/quote and footnote/steps align across the split. */
.hero {
  --hero-top: clamp(64px,7.5vw,112px);
  --hero-bottom: clamp(48px,5vw,72px);
  --shell-edge: max(var(--gutter),calc((100vw - var(--max))/2));
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(380px,.85fr);
  border-bottom: 1px solid var(--border);
}

.hero-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--hero-top) clamp(32px,5vw,80px) var(--hero-bottom) var(--shell-edge);
}

.hero .hero-kicker {
  text-wrap: balance;
}

.hero .hero-kicker::before {
  background: var(--border-strong);
}

.hero h1 {
  margin: 32px 0 0;
  font-size: clamp(48px,6.2vw,92px);
  line-height: 1;
  letter-spacing: -.05em;
  max-width: 13ch;
}

.hero h1 .quiet {
  color: var(--secondary);
  font-weight: 300;
  letter-spacing: -.045em;
}

.hero-desc {
  max-width: 50ch;
  margin-top: 40px;
  color: var(--secondary);
  font-size: clamp(17px,1.35vw,19px);
  line-height: 1.65;
}

.hero-lead {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  margin-top: 40px;
}

.hero .button--primary span {
  transition: transform .2s ease;
}

.hero .button--primary:hover span,
.hero .button--primary:focus-visible span {
  transform: translate(2px,-2px);
}

.hero-footnote {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  max-width: 640px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-actions {
  margin-bottom: 72px;
}

.hero-sign {
  display: flex;
  flex-direction: column;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}

.hero-sign b {
  color: var(--text);
  font-weight: 600;
}

.hero-footnote .eyebrow {
  font-size: 11px;
  text-align: right;
}

.hero-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--hero-top) var(--shell-edge) var(--hero-bottom) clamp(32px,4vw,56px);
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.hero-quote {
  margin-top: 32px;
  font-size: clamp(30px,2.8vw,42px);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 600;
  max-width: 15ch;
}

.hero-quote,
.hero-quote span {
  text-wrap: balance;
}

.hero-quote span {
  display: block;
  color: var(--secondary);
}

/* Understand → decide → deliver: the diagram and the steps share three bands */
.hero-path {
  position: relative;
  margin-top: auto;
  padding-top: 64px;
}

.hero-path::before,
.hero-path::after {
  content: "";
  position: absolute;
  top: 64px;
  bottom: 0;
  width: 1px;
  background: var(--border-quiet);
  pointer-events: none;
}

.hero-path::before {
  left: calc(100% / 3);
}

.hero-path::after {
  left: calc(200% / 3);
}

.hero-path-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.steps .nw {
  white-space: nowrap;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.steps li {
  padding: 16px 16px 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.steps li:first-child {
  padding-left: 0;
}

.steps li>span:first-child {
  display: block;
  margin-bottom: 8px;
  font: 500 12px/1.5 var(--mono);
  color: var(--secondary);
}

/* One-time arrival: settle into focus (8px, 2px blur), then the diagram resolves and "technology." recedes. */
@keyframes hero-settle {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes hero-recede {
  from {
    color: var(--text);
    font-weight: 600;
    letter-spacing: -.05em;
  }

  to {
    color: var(--secondary);
    font-weight: 300;
    letter-spacing: -.045em;
  }
}

@keyframes hero-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-left>*,
  .hero-right>.hero-eyebrow,
  .hero-right>.hero-quote,
  .hero .steps {
    animation: hero-settle .8s cubic-bezier(.2,.7,.2,1) both;
  }

  .hero-left>:nth-child(2),
  .hero-right>.hero-quote {
    animation-delay: .08s;
  }

  .hero-left>:nth-child(3) {
    animation-delay: .16s;
  }

  .hero-left>:nth-child(4) {
    animation-delay: .24s;
  }

  .hero-left>:nth-child(5) {
    animation-delay: .32s;
  }

  .hero h1 .quiet {
    animation: hero-recede .9s cubic-bezier(.4,0,.2,1) 1s both;
  }

  .hero-path [pathLength] {
    stroke-dasharray: 1;
    animation: hero-draw .7s cubic-bezier(.4,0,.2,1) both;
  }

  .hero-path .hp-band1 path {
    animation-delay: .3s;
    animation-duration: .8s;
  }

  .hp-dots {
    animation: hero-fade .4s ease .2s both;
  }

  .hero-path .hp-drop path,
  .hero-path .hp-keep path {
    animation-delay: 1s;
  }

  .hp-ticks {
    animation: hero-fade .3s ease 1.6s both;
  }

  .hp-node {
    animation: hero-fade .3s ease 1.55s both;
  }

  .hero-path .hp-out path {
    animation-delay: 1.75s;
    animation-duration: .6s;
  }

  .hp-arrow {
    animation: hero-fade .25s ease 2.25s both;
  }

  .hero .steps {
    animation-delay: .4s;
  }

  .hero-path::before,
  .hero-path::after {
    animation: hero-fade .8s ease .4s both;
  }
}

/* Section scaffolding */
.section {
  padding-block: var(--section);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 48px;
}

/* 01 Evidence */
.evidence-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3,1fr);
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--border);
}

.proof {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px 32px 32px;
  border-left: 1px solid var(--border);
}

.proof:first-child {
  padding-left: 0;
  border-left: 0;
}

.proof-value {
  margin-top: 32px;
  font-size: clamp(28px,2.6vw,40px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 600;
}

.proof-value--number {
  font-size: clamp(72px,7vw,112px);
  line-height: .9;
  letter-spacing: -.06em;
  margin-top: 24px;
}

.proof-desc {
  margin-top: auto;
  padding-top: 24px;
  max-width: 28ch;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
}

.evidence .note {
  margin-top: 16px;
}

/* 02 Services */
.service-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--text);
}

.service {
  display: grid;
  grid-template-columns: 64px minmax(0,.9fr) minmax(0,1.1fr);
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.service .eyebrow {
  padding-top: 8px;
}

.service h3 {
  font-size: clamp(26px,2.6vw,36px);
  letter-spacing: -.035em;
}

.service p {
  max-width: 56ch;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* 03 Selected work */
.example {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr) minmax(0,.9fr);
  gap: 48px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.example:last-child {
  border-bottom: 1px solid var(--border);
}

.example-context {
  margin-top: 16px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.6;
}

.example h3 {
  font-size: clamp(28px,2.8vw,40px);
  line-height: 1.12;
  letter-spacing: -.035em;
  max-width: 18ch;
}

.example p {
  max-width: 52ch;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.75;
}

.example p strong {
  color: var(--text);
  font-weight: 600;
}

/* 04 Approach */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--border);
}

.approach-step {
  padding: 32px 32px 8px;
  border-left: 1px solid var(--border);
}

.approach-step:first-child {
  padding-left: 0;
  border-left: 0;
}

.approach-step .index {
  font-size: 56px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.04em;
  color: var(--secondary);
}

.approach-step h3 {
  margin: 24px 0 16px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.approach-step p {
  max-width: 40ch;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* 05 About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(48px,8vw,128px);
}

.about-body p {
  max-width: 64ch;
  margin-bottom: 24px;
  color: var(--body);
  font-size: clamp(17px,1.3vw,19px);
  line-height: 1.75;
}

.career {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--text);
}

.career-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
}

.career-head .note {
  max-width: 48ch;
}

.career-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(20px,2vw,28px);
  font-weight: 600;
  letter-spacing: -.025em;
}

.career-list li+li::before {
  content: "/";
  margin-right: 24px;
  color: var(--focus);
  font-weight: 400;
}

/* 06 Writing */
.insight-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}

.insight {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding-top: 24px;
  border-top: 1px solid var(--text);
}

.insight h3 {
  margin: 16px 0 32px;
  font-size: clamp(22px,1.9vw,28px);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.insight small {
  margin-top: auto;
  color: var(--secondary);
  font-size: 13px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: 56px;
  align-items: end;
}

.contact h2 {
  margin-top: 24px;
  font-size: clamp(56px,7.5vw,112px);
  line-height: .98;
  letter-spacing: -.055em;
}

.contact-copy p {
  max-width: 46ch;
  margin-bottom: 32px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.7;
}

.contact-copy .note {
  margin: 16px 0 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 24px 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  color: var(--secondary);
  font-size: 13px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: .3em;
}

.footer a:hover {
  color: var(--focus);
}

/* Text links inside headings that lead to a detail page. */
.detail-link {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 6px;
}

.detail-link:hover {
  color: var(--focus);
}

/* Easter egg: type "execute" on the home page. See /scripts/home.js. */
.summit-route {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: var(--focus);
  transform-origin: left;
  animation: summit-route 2s cubic-bezier(.2,.7,.2,1) forwards;
  pointer-events: none;
}

@keyframes summit-route {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }

  60% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* Home: responsive and motion
   ========================================================================== */

@media (max-width: 1140px) {
  .hero {
    grid-template-columns: minmax(0,1.04fr) minmax(340px,.96fr);
  }

  .hero-left {
    padding-right: 40px;
  }

  .hero-footnote {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-footnote .eyebrow {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(48px,6.2vw,72px);
  }

  .example {
    grid-template-columns: 200px 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav[data-open="true"] {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-quiet);
    font-weight: 500;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
    color: var(--focus);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 72px var(--gutter) 56px;
  }

  .hero h1 {
    font-size: clamp(48px,9vw,76px);
  }

  .hero-actions {
    margin-bottom: 64px;
  }

  .hero-right {
    padding: 64px var(--gutter);
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .hero-quote {
    max-width: 20ch;
  }

  .hero-path {
    max-width: 520px;
    margin-top: 0;
    padding-top: 48px;
  }

  .hero-footnote {
    flex-direction: row;
    align-items: flex-end;
  }

  .hero-footnote .eyebrow {
    text-align: right;
  }

  .hero-path::before,
  .hero-path::after {
    top: 48px;
  }

  .section-intro,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-intro {
    align-items: start;
  }

  .evidence-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .proof:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .proof:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }

  .example {
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
  }

  .example>div:first-child {
    grid-column: 1/-1;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-step,
  .approach-step:first-child {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .approach-step:last-child {
    border-bottom: 0;
  }

  .approach-step h3 {
    margin-top: 16px;
  }

  .career-head {
    flex-direction: column;
    gap: 8px;
  }

  .contact-layout {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wordmark {
    font-size: 20px;
  }

  .hero-left {
    padding-block: 56px 48px;
  }

  .hero h1 {
    margin-top: 24px;
    font-size: clamp(44px,12.5vw,64px);
  }

  .hero-desc {
    margin-top: 32px;
  }

  .hero-actions {
    margin-bottom: 56px;
  }

  .hero-footnote {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-footnote .eyebrow {
    text-align: left;
  }

  .hero-right {
    padding-block: 48px;
  }

  .hero-quote {
    margin-top: 24px;
    font-size: 30px;
  }

  .hero-path {
    padding-top: 40px;
  }

  .hero-path::before,
  .hero-path::after {
    top: 40px;
  }

  .steps li {
    padding: 12px 8px 0 12px;
    font-size: 14px;
  }

  .hp-band1,
  .hp-drop,
  .hp-keep,
  .hp-ticks {
    stroke-width: 1.3;
  }

  .hp-node,
  .hp-out,
  .hp-arrow {
    stroke-width: 2;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .proof,
  .proof:first-child,
  .proof:nth-child(3) {
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .proof:first-child {
    border-top: 0;
  }

  .proof-value {
    margin-top: 16px;
  }

  .proof-value--number {
    font-size: 80px;
    margin-top: 16px;
  }

  .proof-desc {
    max-width: none;
    padding-top: 16px;
  }

  .service {
    grid-template-columns: 40px 1fr;
    gap: 8px 16px;
    padding: 24px 0;
  }

  .service p {
    grid-column: 2;
    margin-top: 8px;
  }

  .example {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .example>div:first-child {
    grid-column: auto;
  }

  .career-list li+li::before {
    margin-right: 16px;
  }

  .career-list {
    gap: 8px 16px;
  }

  .insight-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .insight {
    min-height: 0;
  }

  .insight h3 {
    margin-bottom: 24px;
  }

  .contact h2 {
    font-size: clamp(52px,14vw,80px);
  }

  dialog {
    padding: 40px 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* 5. Inner pages
   ========================================================================== */

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.site-header .container,
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav [aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--focus);
  text-underline-offset: 8px;
}

.site-nav a:hover,
.link-list a:hover,
.prose a:hover {
  color: var(--focus);
}

.breadcrumb {
  padding-top: 32px;
  color: var(--secondary);
  font-size: 14px;
}

.page-hero {
  padding: 64px 0 48px;
}

.page-hero h1 {
  font-size: clamp(36px,5vw,72px);
  max-width: 20ch;
  letter-spacing: -.035em;
}

.lead {
  max-width: 68ch;
  font-size: 20px;
  color: var(--body);
  margin-top: 24px;
}

.section {
  padding-block: 48px;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(26px,3vw,40px);
  margin-bottom: 24px;
}

.section h3 {
  font-size: 23px;
  margin-bottom: 16px;
}

.prose {
  max-width: 72ch;
}

.prose p,
.section p {
  margin-bottom: 20px;
}

.prose a,
.link-list a {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.link-list {
  padding-left: 20px;
}

.link-list li {
  padding: 12px 0;
}

.button-primary {
  background: var(--focus);
  color: var(--canvas);
  border-color: var(--focus);
}

/* The primary action keeps its dark text on yellow, even inside prose links. */
.button-primary:hover,
.prose a.button-primary:hover {
  color: var(--canvas);
  background: var(--focus-hover);
  border-color: var(--focus-hover);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin-top: 64px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

input,
textarea,
select {
  max-width: 100%;
  width: 100%;
  padding: 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font: inherit;
}

label {
  display: block;
  margin-block: 20px 8px;
}

input[type=checkbox] {
  width: auto;
}

details {
  border-block: 1px solid var(--border);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 20px;
}

table {
  border-collapse: collapse;
  max-width: 100%;
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

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

p,
li,
a {
  overflow-wrap: break-word;
}

/* 6. Inner pages: responsive and reduced motion
   ========================================================================== */

@media (max-width: 700px) {
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-nav {
    gap: 16px;
  }

  .page-hero {
    padding-top: 40px;
  }

  .site-header .container {
    align-items: flex-start;
    flex-direction: column;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
