:root {
  --ink: #0b1f33;
  --ink-soft: #324b61;
  --paper: #f5f9fb;
  --white: #ffffff;
  --aqua: #7ec8c2;
  --aqua-light: #d9eeeb;
  --blue: #1a5f91;
  --line: #cbd9e1;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --page: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: var(--page);
  height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: -0.08em;
}
.brand strong { display: block; font-family: var(--serif); font-size: 16px; letter-spacing: 0.12em; }
.brand small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 10px; letter-spacing: 0.24em; }
.primary-nav { display: flex; gap: 34px; align-items: center; }
.primary-nav a {
  position: relative;
  font-size: 14px;
  text-decoration: none;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--blue);
  transition: right 180ms ease;
}
.primary-nav a:hover::after { right: 0; }
.menu-button { display: none; }

.hero {
  width: var(--page);
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 7vw;
  padding: 70px 0 88px;
}
.eyebrow, .section-kicker {
  margin: 0 0 22px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 5.7vw, 84px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.055em;
}
.hero h1 em { display: block; color: var(--blue); font-style: normal; }
.hero-lead {
  max-width: 610px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.95;
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  text-decoration: none;
}
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--blue); }
.text-link { text-underline-offset: 5px; text-decoration-thickness: 1px; }

.diagnostic-figure {
  position: relative;
  width: min(100%, 600px);
  justify-self: end;
  aspect-ratio: 0.94;
  overflow: hidden;
  color: var(--aqua-light);
  background: var(--ink);
  border-radius: 48% 48% 6px 6px;
  box-shadow: 26px 32px 0 var(--aqua-light);
}
.diagnostic-figure svg { width: 100%; height: 100%; }
.grid-lines path { fill: none; stroke: #416075; stroke-width: 0.8; opacity: 0.6; }
.measure-lines path, .measure-lines circle { fill: none; stroke: var(--aqua); stroke-width: 1.5; stroke-dasharray: 7 7; }
.measure-lines circle { fill: var(--aqua); stroke: none; }
.profile-line path { fill: none; stroke: #f5fafc; stroke-width: 3; stroke-linecap: round; }
.arch-line path { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; }
.diagram-notes text { fill: var(--aqua); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }
.figure-label {
  position: absolute;
  z-index: 1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}
.figure-label-a { top: 80px; right: 23px; }
.figure-label-b { bottom: 80px; left: 22px; }
.figure-caption {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
}

.section-pad { padding: 116px max(24px, calc((100vw - 1180px) / 2)); }
.statement { background: var(--white); }
.statement-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 9vw;
  align-items: start;
}
.statement h2, .section-heading h2, .process h2, .closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.04em;
}
.statement-grid > div { max-width: 490px; color: var(--ink-soft); font-size: 17px; }
.statement-grid > div p:first-child { margin-top: 7px; }

.focus { background: #eaf2f5; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 58px;
}
.section-heading > p { max-width: 440px; margin: 0; color: var(--ink-soft); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.focus-card { min-height: 450px; padding: 42px 36px; background: var(--white); }
.focus-card-featured { color: var(--white); background: var(--blue); }
.card-code { color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; }
.focus-card-featured .card-code { color: var(--aqua-light); }
.focus-card h3 { margin: 73px 0 19px; font-family: var(--serif); font-size: 31px; font-weight: 500; }
.focus-card p { color: var(--ink-soft); }
.focus-card-featured p { color: #e2f0f7; }
.focus-card ul { margin: 31px 0 0; padding: 25px 0 0; border-top: 1px solid var(--line); list-style: none; }
.focus-card li { margin: 7px 0; font-size: 13px; letter-spacing: 0.05em; }

.process { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 9vw; background: var(--ink); color: var(--white); }
.process-intro { position: sticky; top: 60px; align-self: start; }
.process-intro > p:last-child { max-width: 430px; margin-top: 32px; color: #b8cad7; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 31px 0; border-top: 1px solid #3b5264; }
.process-list li:last-child { border-bottom: 1px solid #3b5264; }
.process-list > li > span { color: var(--aqua); font-family: var(--mono); font-size: 12px; }
.process-list h3 { margin: -6px 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.process-list p { max-width: 570px; margin: 0; color: #b8cad7; }

.questions { background: var(--white); }
.section-heading.compact { margin-bottom: 39px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 28px 64px 28px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 23px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 12px; font-family: var(--sans); font-weight: 300; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 780px; margin: 0 0 30px; color: var(--ink-soft); }

.closing {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  align-items: end;
  gap: 80px;
  color: var(--white);
  background: var(--blue);
}
.section-kicker.light { color: var(--aqua-light); }
.closing > p { max-width: 410px; margin: 0 0 10px; color: #d8e9f2; }
.site-footer {
  width: var(--page);
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  font-size: 11px;
}
.site-footer > p { color: var(--ink-soft); }
.site-footer > a { justify-self: end; text-underline-offset: 4px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { max-width: 700px; }
  .diagnostic-figure { width: min(700px, 92%); justify-self: center; }
  .statement-grid, .process { grid-template-columns: 1fr; gap: 60px; }
  .process-intro { position: static; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { min-height: auto; }
  .focus-card h3 { margin-top: 42px; }
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 36px); }
  .site-header { height: 78px; }
  .menu-button {
    position: relative;
    z-index: 12;
    display: grid;
    place-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
  }
  .menu-button span:not(.sr-only) { display: block; width: 24px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .primary-nav {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    color: var(--white);
    background: var(--ink);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { font-family: var(--serif); font-size: 27px; }
  .menu-button[aria-expanded="true"] { position: fixed; top: 17px; right: 18px; color: var(--white); }
  .hero { min-height: auto; gap: 60px; padding: 64px 0 78px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .diagnostic-figure { width: calc(100% - 12px); box-shadow: 12px 15px 0 var(--aqua-light); }
  .section-pad { padding: 82px 18px; }
  .statement-grid, .closing { grid-template-columns: 1fr; gap: 38px; }
  .statement h2, .section-heading h2, .process h2, .closing h2 { font-size: clamp(36px, 10vw, 52px); }
  .section-heading { align-items: start; flex-direction: column; gap: 24px; }
  .focus-card { padding: 36px 26px; }
  .process-list li { grid-template-columns: 42px 1fr; }
  .site-footer { grid-template-columns: 1fr; padding: 38px 0; }
  .site-footer > p { margin: 0; }
  .site-footer > a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
