/* ==========================================================================
   AsynCorp Pty Ltd — site stylesheet
   Editorial light system: warm paper, ink text, one deep ink-blue accent.
   Serif display headings, sans body. Plain rules, no decoration for its own sake.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg: #f6f4ef;
  --bg-deep: #ece8df;
  --bg-alt: #efebe3;
  --panel: #fbfaf7;
  --line: rgba(22, 24, 29, 0.12);
  --line-strong: rgba(22, 24, 29, 0.24);

  --text: #16181d;
  --text-2: #4a4f58;
  --text-3: #5f646c;

  --accent: #1f3a5f;
  --accent-2: #2a4d7a;
  --accent-soft: rgba(31, 58, 95, 0.08);
  --on-accent: #ffffff;

  --ok: #2f6b4f;
  --err: #a23b3b;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 2px;
  --nav-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

/* ---------- Typography ---------- */
h1, h2, .h1, .h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; color: var(--text); }
h3, .h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; color: var(--text); }
h1, .h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2, .h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
h4, .h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--font-sans); }
.nums { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.accent { color: var(--accent); }
strong { font-weight: 600; color: var(--text); }
p + p { margin-top: 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .idx { display: none; }

/* Index labels (01, A-05, Model 01): quiet serif numerals */
.idx { font-family: var(--font-serif); font-style: italic; font-size: 0.9375rem; color: var(--text-3); letter-spacing: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 40px; }
.section-head.split .lede { max-width: none; }
.section-head h2 { max-width: 20ch; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Odd trailing cell spans the row so ruled grids never show an empty panel */
  .rule-grid.cols-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .rule-grid.cols-3 > :last-child:nth-child(odd) { grid-column: auto; }
}

/* Ruled grid: cells separated by 1px lines */
.rule-grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-grid > * { background: var(--bg); }
.section-alt .rule-grid > * { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent); font-size: 0.9375rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(246, 244, 239, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled, .site-header.menu-open { border-bottom-color: var(--line); background: rgba(246, 244, 239, 0.97); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { width: 26px; height: 26px; color: var(--text); flex: none; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); line-height: 1; margin-top: 3px; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border-radius: var(--radius); border: 1px solid var(--line-strong); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .site-nav {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 18px 4px; font-size: 1.125rem; }
  .site-nav a[aria-current="page"]::after { left: 4px; right: auto; width: 24px; bottom: 12px; }
  .site-nav .nav-cta { margin-top: 20px; border-top: 0; }
  .site-nav .nav-cta .btn { display: inline-flex; width: 100%; padding: 16px; color: var(--on-accent); }
  .site-nav .nav-cta .btn::after { display: none; }
}
@media (min-width: 1024px) { .site-nav .nav-cta { display: none; } }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 112px)) 0 clamp(56px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 20px; max-width: 16ch; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero .lede { margin-top: 24px; }
.hero .btn-group { margin-top: 36px; }
.pills { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: 0.8125rem; font-weight: 500; color: var(--text-2); padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); }
.hero .pills + .btn-group { margin-top: 28px; }
.hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.875rem; color: var(--text-3); }
.hero-meta span:not(:last-child)::after { content: "\00B7"; margin: 0 12px; color: var(--line-strong); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 20ch; } }

/* Hero figure: a static, report-style diagram */
.hero-visual { position: relative; }
.hero-visual .frame { margin: 0; border-top: 1px solid var(--text); padding-top: 16px; }
.hero-visual figcaption { margin-top: 14px; font-size: 0.8125rem; color: var(--text-3); line-height: 1.5; }
.hero-visual figcaption b { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--text-2); margin-right: 6px; }
.topology { width: 100%; height: auto; }
/* The figure's labels are unreadable on phones; the same steps are in "How we work" */
@media (max-width: 600px) { .hero-visual { display: none; } }
.topology text { font-family: var(--font-sans); fill: var(--text-2); font-size: 10.5px; }
.topology .t-label { fill: var(--text-3); font-size: 8.5px; letter-spacing: 0.08em; }
.topology .t-title { fill: var(--text); font-size: 11.5px; font-weight: 500; }
.topology .t-core { fill: var(--accent); font-family: var(--font-serif); font-size: 13px; font-style: italic; }
.topology .node { fill: var(--panel); stroke: var(--line-strong); stroke-width: 1; }
.topology .node-core { fill: var(--accent-soft); stroke: var(--accent); }
.topology .edge { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.topology .tick { fill: var(--accent); }

/* ---------- Cards ---------- */
.card { position: relative; padding: clamp(28px, 3.2vw, 44px) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; transition: background-color .3s var(--ease); }
.card:hover { background: var(--panel); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card .icon { width: 40px; height: 40px; color: var(--accent); flex: none; display: grid; place-items: center; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-top: 4px; }
.card p { color: var(--text-2); font-size: 0.9875rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--accent); }
.bullets.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
@media (max-width: 680px) { .bullets.two-col { grid-template-columns: 1fr; } }

/* Services 2x2 */
.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Principles / how we work ---------- */
.principle { padding: 36px 32px 36px 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle .num { font-family: var(--font-serif); font-style: italic; font-size: 2rem; font-weight: 400; color: var(--accent); line-height: 1; }
.principle h3 { margin-top: 20px; }
.principle p { margin-top: 12px; color: var(--text-2); font-size: 0.9875rem; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
}

/* Delivery pipeline */
.pipeline { margin-top: clamp(48px, 6vw, 72px); position: relative; }
.pipeline ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.pipeline ol::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line-strong); }
.pipeline li { position: relative; padding-top: 28px; }
.pipeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border: 1px solid var(--accent); border-radius: 50%; background: var(--bg); }
.pipeline li:first-child::before, .pipeline li:last-child::before { background: var(--accent); }
.section-alt .pipeline li::before { background: var(--bg-alt); }
.section-alt .pipeline li:first-child::before, .section-alt .pipeline li:last-child::before { background: var(--accent); }
.pipeline .step { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.pipeline h4 { margin-top: 8px; font-family: var(--font-serif); text-transform: none; letter-spacing: 0; font-size: 1.125rem; font-weight: 600; color: var(--text); }
.pipeline p { margin-top: 8px; font-size: 0.875rem; color: var(--text-2); }
@media (max-width: 960px) {
  .pipeline ol { grid-template-columns: 1fr; gap: 0; }
  .pipeline ol::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .pipeline li { padding: 0 0 28px 32px; }
}

/* ---------- Feature / split panels ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.big-stat { border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0; position: relative; }
.big-stat .value { font-family: var(--font-serif); font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 400; letter-spacing: -0.03em; line-height: 0.95; color: var(--accent); }
.big-stat .value small { font-size: 0.35em; letter-spacing: 0; color: var(--text-2); margin-left: 6px; }
.big-stat .caption { margin-top: 20px; color: var(--text-2); max-width: 36ch; font-size: 0.9875rem; }
.big-stat .foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 32px; flex-wrap: wrap; }
.big-stat .foot div { font-size: 0.875rem; color: var(--text-2); }
.big-stat .foot b { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--text); font-weight: 400; }

/* ---------- Rows list ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); color: inherit; transition: background-color .2s var(--ease); }
a.row:hover { background: var(--panel); }
a.row:hover .row-arrow { transform: translateX(4px); color: var(--accent); }
.row h3 { font-size: 1.25rem; }
.row p { color: var(--text-2); font-size: 0.9375rem; }
.row-arrow { width: 20px; height: 20px; color: var(--text-3); transition: transform .25s var(--ease), color .25s var(--ease); }
@media (max-width: 760px) { .row { grid-template-columns: 40px 1fr auto; } .row p { grid-column: 2 / span 2; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); padding: clamp(48px, 6vw, 88px) clamp(8px, 4vw, 48px); text-align: center; }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 24ch; margin: 18px auto 0; }
.cta-band p { max-width: 58ch; margin: 20px auto 0; color: var(--text-2); font-size: 1.0625rem; }
.cta-band .btn-group { justify-content: center; margin-top: 32px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 18px; max-width: 18ch; }
.page-hero .lede { margin-top: 24px; }
.page-hero .grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
@media (max-width: 900px) { .page-hero .grid-2 { grid-template-columns: 1fr; } }
.kv { border-top: 1px solid var(--line); margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.kv dt { color: var(--text-3); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; color: var(--text); text-align: right; }
.kv a { border-bottom: 1px solid var(--line-strong); }
.kv a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 6vw, 88px) 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: 0; }
.service-block .sticky { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.service-block h2 { margin-top: 18px; max-width: 16ch; }
.service-block .lede { margin-top: 20px; font-size: 1.0625rem; }
.service-block .icon { width: 44px; height: 44px; color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.service-block .icon svg { width: 30px; height: 30px; }
.detail-grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail { background: var(--bg); padding: 28px 0; }
.detail h4 { color: var(--accent); }
.detail p, .detail li { color: var(--text-2); font-size: 0.9375rem; }
.detail .bullets { margin-top: 14px; }
.detail p { margin-top: 12px; }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; } .service-block .sticky { position: static; } }

/* Tech grid */
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech-grid > div { background: var(--bg-alt); padding: 24px 24px 24px 0; }
.tech-grid > div + div { padding-left: 24px; }
.tech-grid h4 { font-family: var(--font-serif); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1.125rem; font-weight: 600; margin-top: 8px; }
.tech-grid .eyebrow-sm { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tech-grid ul { margin-top: 14px; display: grid; gap: 6px; }
.tech-grid li { font-size: 0.875rem; color: var(--text-2); }
@media (max-width: 1000px) { .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tech-grid > div, .tech-grid > div + div { padding: 24px; } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case { padding: clamp(28px, 3.2vw, 44px) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; position: relative; }
.case .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.case .meta b { color: var(--accent); font-weight: 600; }
.case h3 { margin-top: 14px; max-width: 24ch; font-size: clamp(1.375rem, 2vw, 1.75rem); }
.case .summary { margin-top: 14px; color: var(--text-2); font-size: 0.9875rem; }
.case .outcomes { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); align-self: start; }
.case .outcome { background: var(--bg); padding: 18px 0; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline; }
.section-alt .case .outcome { background: var(--bg-alt); }
.case .outcome b { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 400; color: var(--accent); min-width: 88px; line-height: 1; }
.case .outcome span { color: var(--text-2); font-size: 0.9rem; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* Sector grid */
.sector { padding: 28px 28px 28px 0; }
.rule-grid .sector { padding: 28px; }
.sector h3 { margin-top: 10px; font-size: 1.1875rem; }
.sector p { margin-top: 10px; color: var(--text-2); font-size: 0.9rem; }

/* ---------- Engagement models ---------- */
.model { padding: clamp(28px, 3.2vw, 44px) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.model .model-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.model .model-head .idx { text-transform: none; letter-spacing: 0 !important; font-size: 0.9375rem !important; }
.model .tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding: 5px 9px; border: 1px solid rgba(31, 58, 95, 0.3); border-radius: var(--radius); white-space: nowrap; }
.model h3 { font-size: 1.625rem; }
.model .summary { color: var(--text-2); }
.model dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
.model dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.model dd { margin: 6px 0 0; font-size: 0.9375rem; color: var(--text); }
.model dd.span { grid-column: 1 / -1; }
.model .bullets { margin-top: 4px; }
@media (max-width: 560px) { .model dl { grid-template-columns: 1fr; } }

/* Comparison table */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.9rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare thead th { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.compare tbody th { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; color: var(--text); width: 180px; }
.compare td { color: var(--text-2); }
.compare td .y { color: var(--accent); font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.1875rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 20px; height: 20px; flex: none; color: var(--accent); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq summary .plus::before { width: 14px; height: 1px; }
.faq summary .plus::after { width: 1px; height: 14px; }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq .answer { padding: 0 0 24px; color: var(--text-2); max-width: 70ch; font-size: 0.9875rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-panel { border-top: 1px solid var(--text); padding-top: clamp(20px, 2.5vw, 28px); }
.form-panel .form-head { margin-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.form-panel .form-head h2 { font-size: 1.75rem; }
.form-panel .form-head span { font-size: 0.8125rem; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { -webkit-appearance: none; appearance: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field .error { display: none; font-size: 0.8125rem; color: var(--err); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field.invalid .error { display: block; }
/* One-click "I'm..." choice: radios drawn as pills */
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 8px 14px; font-size: 0.875rem; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.chips label:hover span { border-color: var(--text); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-actions .note { font-size: 0.8125rem; color: var(--text-3); max-width: 40ch; }
.form-actions .note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.form-status { display: none; margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.9375rem; color: var(--text-2); background: var(--panel); }
.form-status.show { display: block; }
.form-status.ok { border-color: rgba(47, 107, 79, 0.4); background: rgba(47, 107, 79, 0.06); }
.form-status.err { border-color: rgba(162, 59, 59, 0.4); background: rgba(162, 59, 59, 0.05); }
.form-status a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.contact-aside { display: grid; gap: 0; border-top: 1px solid var(--text); }
.contact-aside > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-aside h4 { color: var(--text-3); }
.contact-aside .email { display: inline-block; margin-top: 10px; font-family: var(--font-serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--accent); border-bottom: 1px solid rgba(31, 58, 95, 0.3); padding-bottom: 2px; transition: border-color .2s var(--ease); word-break: break-all; }
.contact-aside .email:hover { border-color: var(--accent); }
.contact-aside button.email { cursor: pointer; text-align: left; }
.contact-aside p { margin-top: 10px; color: var(--text-2); font-size: 0.9375rem; }
.contact-aside .kv { margin-top: 12px; }
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 14px; }
.steps li { position: relative; padding-left: 32px; color: var(--text-2); font-size: 0.9375rem; }
.steps li::before { counter-increment: step; content: counter(step) "."; position: absolute; left: 0; top: -1px; font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; color: var(--accent); }
.steps li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* ---------- Prose (privacy, 404) ---------- */
.prose { max-width: 70ch; color: var(--text-2); }
.prose h2 { font-size: 1.625rem; margin-top: 2em; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin-top: 0.9em; font-size: 1.0625rem; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ul li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: clamp(48px, 6vw, 80px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--text-2); font-size: 0.9375rem; max-width: 34ch; }
.footer-brand .loc { margin-top: 16px; font-size: 0.8125rem; color: var(--text-3); }
.site-footer h4 { margin-bottom: 16px; color: var(--text-3); }
.site-footer ul { display: grid; gap: 10px; }
.site-footer li a { color: var(--text-2); font-size: 0.9375rem; transition: color .2s var(--ease); }
.site-footer li a:hover { color: var(--accent); }
.site-footer .contact-email { color: var(--text); font-weight: 500; }
.site-footer .legal { margin-top: 16px; display: grid; gap: 6px; font-size: 0.8125rem; color: var(--text-3); }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--text-3); }
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--accent); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.center { text-align: center; }
.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; }
.divider { height: 1px; background: var(--line); }
