/* Assure X Future Works
   Layout: editorial grid on a cool paper ground, mono eyebrows, hairline rules, one navy band. */
:root {
  --bg: #f7f9fc;
  --bg-alt: #eaf0f8;
  --surface: #ffffff;
  --ink: #0b1b30;
  --muted: #4a5a70;
  --soft: #7a889c;
  --line: #c9d6e8;
  --accent: #1d5fd6;
  --accent-ink: #ffffff;
  --navy: #0a2a5e;
  --navy-ink: #e6eefb;
  --navy-muted: #a9bddc;
  --navy-accent: #6fa3ff;
  --ph: #fff1b8;
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap {
  max-width: calc(var(--wrap) + 2 * 20px);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Placeholder marker: remove once real details are filled in */
.ph { background: var(--ph); padding: 0 .25em; border-radius: 2px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-name small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--ink); width: 42px; height: 38px; cursor: pointer; color: var(--ink); }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.btn { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--ink); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--accent-ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* Sections */
section { padding-block: clamp(72px, 10vw, 128px); }
.alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(38px, 5.6vw, 64px); }
.section-head p { color: var(--muted); font-size: 18px; max-width: 620px; }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 96px) 0; }
.hero h1 { font-size: clamp(48px, 8.4vw, 104px); letter-spacing: -0.035em; line-height: .98; margin-top: 28px; max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 44px; }
.hero-foot p { color: var(--muted); font-size: 18.5px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.scan { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scan canvas { width: 100%; height: clamp(200px, 28vw, 300px); }
.scan-cap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }

/* Statement */
.statement p { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.18; letter-spacing: -0.02em; max-width: 26ch; color: var(--ink); text-wrap: balance; }
.statement p span { color: var(--soft); }

/* Disciplines / solutions grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid-2 > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell { padding: clamp(28px, 4vw, 44px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.cell h3 { font-size: clamp(26px, 2.8vw, 34px); }
.cell p { color: var(--muted); }
.cell a.more { font-weight: 600; text-decoration: none; color: var(--accent); font-size: 15px; margin-top: 6px; }
.cell a.more:hover { text-decoration: underline; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Sector list */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; }
.row p { color: var(--muted); max-width: 520px; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.step { padding: 22px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step h3 { font-size: 28px; }
.step p { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 10px; color: var(--muted); background: var(--surface); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); margin-top: 8px; }
}

/* Lifecycle strip */
.lifecycle { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.lifecycle li { list-style: none; flex: 1 1 120px; padding: 18px 16px; border-right: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.lifecycle li:last-child { border-right: 0; }
.lifecycle b { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.lifecycle ol { margin: 0; padding: 0; display: contents; }
@media (max-width: 700px) { .lifecycle li { flex-basis: 50%; border-bottom: 1px solid var(--line); } }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--ink); padding-top: 28px; }
.audience div { display: grid; gap: 10px; align-content: start; }
.audience h3 { font-size: 22px; letter-spacing: -0.015em; }
.audience p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

/* Questions */
.questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.questions li { list-style: none; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; display: flex; gap: 14px; align-items: baseline; }
.questions li span { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; }
.questions { padding: 0; margin: 0; }
@media (max-width: 860px) { .questions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .questions { grid-template-columns: 1fr; } }

/* Navy band */
.band { background: var(--navy); color: var(--navy-ink); }
.band .eyebrow { color: var(--navy-muted); }
.band .eyebrow::before { background: var(--navy-accent); }
.band h2 { font-size: clamp(56px, 10vw, 128px); letter-spacing: -0.04em; font-weight: 500; margin-top: 24px; }
.band h2.band-sm { font-size: clamp(44px, 7vw, 88px); }
.band h2 em { font-style: normal; color: var(--navy-accent); }
.band .lede { font-size: 19px; color: var(--navy-muted); max-width: 640px; margin-top: 28px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; border-top: 1px solid color-mix(in srgb, var(--navy-ink) 25%, transparent); padding-top: 24px; }
.pillars h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.pillars p { color: var(--navy-muted); font-size: 15.5px; margin-top: 10px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* CTA */
.cta h2 { font-size: clamp(48px, 7.6vw, 92px); letter-spacing: -0.035em; max-width: 12ch; margin-top: 24px; }
.cta p { color: var(--muted); font-size: 18.5px; max-width: 520px; margin-top: 28px; }
.cta .btn { margin-top: 32px; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.035em; margin-top: 24px; max-width: 14ch; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 640px; margin-top: 24px; }

/* Solution detail */
.solution { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.solution:last-child { border-bottom: 0; }
.solution-intro { display: grid; gap: 18px; align-content: start; position: sticky; top: 100px; }
.solution-intro h2 { font-size: clamp(34px, 4.4vw, 52px); }
.solution-intro p { color: var(--muted); font-size: 18px; }
.solution-body { display: grid; gap: 36px; min-width: 0; }
.block { display: grid; gap: 14px; }
.block h3 { font-size: 21px; letter-spacing: -0.01em; }
.block > p { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.checklist li { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.checklist li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; transform: translateY(-2px); }
.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; }
.flow span { border: 1px solid var(--line); background: var(--surface); padding: 6px 10px; }
.flow i { font-style: normal; color: var(--accent); }
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--ink); font-size: 16px; }
@media (max-width: 860px) {
  .solution { grid-template-columns: 1fr; }
  .solution-intro { position: static; }
}
@media (max-width: 520px) { .checklist { grid-template-columns: 1fr; } }

/* Stack table */
.stack { border-top: 1px solid var(--ink); }
.stack-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack-row h3 { font-size: 20px; }
.stack-row .tags { margin-top: 0; }
@media (max-width: 700px) { .stack-row { grid-template-columns: 1fr; gap: 12px; } }

/* About */
.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.prose { display: grid; gap: 20px; font-size: 18px; color: var(--muted); max-width: 66ch; }
.prose strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); }
form.contact { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.consent input { width: auto; margin-top: 4px; }
.form-status { font-size: 15px; padding: 14px 16px; border: 1px solid var(--accent); background: var(--surface); }
.details { display: grid; gap: 28px; align-content: start; border-top: 1px solid var(--ink); padding-top: 24px; }
.details div { display: grid; gap: 6px; }
.details p { font-size: 17px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Legal */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); padding-block: clamp(48px, 7vw, 80px); }
.legal nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 10px; }
.legal nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.legal nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal article { max-width: 70ch; display: grid; gap: 18px; min-width: 0; }
.legal h2 { font-size: 26px; letter-spacing: -0.015em; margin-top: 24px; }
.legal h3 { font-size: 19px; margin-top: 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 760px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; background: var(--bg); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-top p { color: var(--muted); font-size: 15px; max-width: 320px; margin-top: 16px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 24px; }
.notfound h1 { font-size: clamp(56px, 10vw, 120px); letter-spacing: -0.04em; }
