/* Novagenta LLC: site styles. Tokens, base, layout, components, themes, motion. */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #F4F3EE;
  --bg-2: #ECEAE3;
  --ink: #0E1626;
  --text-2: #3A4250;
  --muted: #5C6470;
  --line: rgba(14, 22, 38, .14);
  --line-strong: #858A92;
  --accent: #E39A2D;
  --accent-ink: #945609;
  --accent-display: #B26D14;
  --on-accent: #0E1626;
  --btn-bg: #0E1626;
  --btn-text: #F4F3EE;
  --focus: #0E1626;
  --tag-bg: #F6E3C4;
  --ok: #1E6B45;
  --err: #A8321F;
  --inv-bg: #0E1626;
  --inv-text: #F4F3EE;
  --inv-muted: #A3AAB5;
  --inv-line: rgba(244, 243, 238, .16);

  --font-display: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --m: 32px;
  --g: 24px;
  --maxw: 1360px;
  --header-h: 76px;
  --sec-pad: clamp(96px, 10vw, 144px);
  --W: min(100vw - 2 * var(--m), var(--maxw));
  --col: calc((var(--W) - 11 * var(--g)) / 12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F17; --bg-2: #121724; --ink: #ECEBE6; --text-2: #C4C6CC; --muted: #9199A5;
    --line: rgba(236, 235, 230, .12); --line-strong: #6B727D;
    --accent-ink: #E39A2D; --accent-display: #E39A2D; --on-accent: #0B0F17;
    --btn-bg: #ECEBE6; --btn-text: #0B0F17; --focus: #ECEBE6;
    --tag-bg: rgba(227, 154, 45, .18);
    --ok: #5FC58F; --err: #F0806E;
    --inv-bg: #121A2B; --inv-text: #ECEBE6; --inv-muted: #9199A5; --inv-line: rgba(236, 235, 230, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F17; --bg-2: #121724; --ink: #ECEBE6; --text-2: #C4C6CC; --muted: #9199A5;
  --line: rgba(236, 235, 230, .12); --line-strong: #6B727D;
  --accent-ink: #E39A2D; --accent-display: #E39A2D; --on-accent: #0B0F17;
  --btn-bg: #ECEBE6; --btn-text: #0B0F17; --focus: #ECEBE6;
  --tag-bg: rgba(227, 154, 45, .18);
  --ok: #5FC58F; --err: #F0806E;
  --inv-bg: #121A2B; --inv-text: #ECEBE6; --inv-muted: #9199A5; --inv-line: rgba(236, 235, 230, .14);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ink); text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
address { font-style: normal; }
code { font-family: var(--font-mono); font-size: .88em; }

h1 { font-size: clamp(48px, 7vw, 104px); line-height: .98; letter-spacing: -.03em; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }

.label, dt, .time, .prices, .tool-strip, .markers, .client-strip, .footer-col h2, .step-num, .comp-num, .service-num, .faq-n {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label { font-size: 12px; line-height: 1.5; color: var(--muted); }
.idx { color: var(--accent-ink); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 56ch; }
.accent { color: var(--accent-display); }

.visually-hidden {
  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 {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--btn-bg); color: var(--btn-text);
  font: 500 14px/1 var(--font-body); text-decoration: none; border-radius: 4px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--m)); margin-inline: auto; padding-inline: var(--m); }
.sec-head, .services .service, .about-grid, .contact-grid, .footer-grid, .legal, .notfound {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
}
.section { padding-block: var(--sec-pad); border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(56px, 6vw, 88px); align-items: start; }
.sec-head > .label { grid-column: 1 / 5; padding-top: .9em; }
.sec-title { grid-column: 5 / 13; }
.sec-title h2 { max-width: 18ch; }
.sec-title .lead { margin-top: 24px; }

/* ---------- 4. Components ---------- */

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.header-inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-condensed { border-bottom-color: var(--line); }
.site-header.is-condensed .header-inner { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark .lead { stroke: var(--accent); }
.brand-name { font: 600 21px/1 var(--font-display); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { position: relative; font-size: 14px; font-weight: 500; text-decoration: none; padding-block: 6px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.nav a.is-active::before, .nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2px;
  border-radius: 50%; background: var(--accent);
}
.nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-cta { font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); }
.header-cta:hover { text-decoration-color: var(--accent); }
.theme-toggle, .nav-toggle {
  min-height: 32px; min-width: 32px; padding: 6px 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 400 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.theme-toggle { padding-inline: 10px; border: 1px solid var(--line); border-radius: 999px; }
.theme-toggle:hover { border-color: var(--line-strong); }
.nav-toggle { display: none; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 4px;
  background: var(--btn-bg); color: var(--btn-text);
  font: 500 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); }
.link-arrow:hover { text-decoration-color: var(--accent); }
.arr { display: inline-block; transition: transform .25s var(--ease); }
a:hover > .arr, .btn:hover > .arr { transform: translateX(4px); }

/* Hero */
.hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); }
.hero-main { position: relative; flex: 1; display: flex; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; padding-block: 48px 72px; }
.hero-copy { grid-column: 1 / 10; }
.hero-label { margin-bottom: 40px; }
.hero h1 { font-size: clamp(56px, 8.5vw, 128px); line-height: .94; letter-spacing: -.035em; max-width: 7.6em; }
.hero-mark { position: absolute; top: 50%; right: calc(-1 * clamp(40px, 6vw, 120px)); width: min(64vh, 46vw); height: auto; transform: translateY(-50%); color: var(--ink); opacity: .06; pointer-events: none; }
.hero-sub { margin-top: 32px; max-width: 44ch; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 40px; }
.hero-facts { border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.facts h2 { grid-column: 1 / -1; padding-top: 16px; font-size: 12px; font-family: var(--font-mono); letter-spacing: .08em; }
.facts dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.facts dl > div { padding: 10px 20px 22px; border-left: 1px solid var(--line); }
.facts dl > div:first-child { padding-left: 0; border-left: 0; }
dt { font-size: 11px; line-height: 1.5; color: var(--muted); margin-bottom: 8px; }
.facts dd { font-size: 14px; line-height: 1.5; }
.facts .no { font-weight: 600; }

/* Services */
.services { border-bottom: 1px solid var(--line); isolation: isolate; }
.service { position: relative; padding-block: 44px 48px; border-top: 1px solid var(--line); row-gap: 24px; }
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--m) * -.5); z-index: -1;
  background: var(--bg-2); opacity: 0; transition: opacity .3s ease;
}
.service:hover::before { opacity: 1; }
.service-head { grid-column: 1 / 5; padding-right: 16px; }
.service-num { display: block; font-size: 12px; color: var(--muted); margin-bottom: 20px; transition: color .3s ease; }
.service:hover .service-num { color: var(--accent-ink); }
.service h3 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.audience { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 36ch; }
.service-body { grid-column: 5 / 9; padding-top: 34px; }
.service-list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.service-list li + li { margin-top: 10px; }
.service-list li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.service-list strong { color: var(--ink); font-weight: 500; }
.note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
.tool-strip { display: flex; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tool-strip li:not(:last-child)::after { content: "·"; padding-inline: 7px; }
.service-price { grid-column: 9 / 13; padding-top: 34px; display: flex; flex-direction: column; gap: 24px; }
.prices { font-size: 12px; line-height: 1.4; }
.prices li { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.prices li:first-child { border-top: 1px solid var(--line); }
.prices span { color: var(--muted); }
.prices strong { font-weight: 500; color: var(--ink); text-align: right; }
.service-price .link-arrow { align-self: flex-end; font-size: 14px; }
@media (hover: hover) {
  .service .service-price .arr { opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s var(--ease); }
  .service:hover .service-price .arr, .service .service-price a:focus-visible .arr { opacity: 1; transform: none; }
}

/* Proof band */
.proof { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(72px, 7vw, 104px); }
.proof-label { font-size: 12px; margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats li { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px 36px; border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { font: 500 clamp(44px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: -.04em; }
.stats span { font: 400 12px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.client-strip { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.client-strip-label { color: var(--muted); }

/* Process */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--accent); transform-origin: 0 50%;
}
.step { display: flex; flex-direction: column; padding: 32px 24px 8px; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step-num { font-size: 12px; color: var(--accent-ink); margin-bottom: 48px; }
.step h3 { margin-bottom: 14px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-2); flex: 1; }
.time { margin-top: 28px; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* Compliance (inverted band) */
.section--invert {
  --ink: var(--inv-text); --text-2: var(--inv-text); --muted: var(--inv-muted); --line: var(--inv-line);
  --accent-ink: var(--accent); --focus: var(--inv-text);
  background: var(--inv-bg); color: var(--inv-text); border-top: 0;
}
.markers { display: flex; flex-wrap: wrap; margin-top: 32px; font-size: 12px; color: var(--ink); }
.markers li:not(:last-child)::after { content: "·"; padding-inline: 10px; color: var(--accent); }
.comp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.comp-item { background: var(--inv-bg); padding: 32px 32px 44px; }
.comp-item:nth-child(3n+1) { padding-left: 0; }
.comp-num { display: block; font-size: 12px; color: var(--muted); margin-bottom: 36px; }
.comp-item h3 { margin-bottom: 12px; }
.comp-item p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 42ch; }
.comp-item--rule .comp-num { color: var(--accent); }

/* About */
.about-grid { align-items: start; }
.about-label { grid-column: 1 / 5; padding-top: .9em; }
.about-text { grid-column: 5 / 13; }
.about-text h2 { max-width: 14em; margin-bottom: 32px; }
.about-text p + p { margin-top: 20px; color: var(--text-2); max-width: 60ch; }

/* FAQ */
.faq { margin-left: calc(4 * (var(--col) + var(--g))); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: grid; grid-template-columns: 56px 1fr 32px; align-items: baseline; gap: 0 8px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font: 500 clamp(18px, 1.6vw, 22px)/1.35 var(--font-display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq-q { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.faq-n { font-size: 12px; color: var(--accent-ink); }
.faq-i { justify-self: end; font: 400 22px/1 var(--font-mono); color: var(--muted); }
.faq-i::before { content: "+"; }
.faq details[open] .faq-i::before { content: "−"; }
.faq details p { padding: 0 40px 32px 64px; max-width: calc(62ch + 64px); color: var(--text-2); }

/* Contact */
.contact-aside { grid-column: 1 / 6; }
.contact-aside .label { margin-bottom: 28px; }
.contact-aside h2 { margin-bottom: 28px; }
.contact-aside > p { color: var(--text-2); max-width: 46ch; }
.contact-facts { margin-top: 48px; }
.contact-facts dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.contact-facts dl > div:last-child { border-bottom: 1px solid var(--line); }
.contact-facts dt { margin: 0; padding-top: 3px; }
.contact-facts dd { font-size: 15px; }
.contact-facts .link-arrow { font-size: 15px; }
.form { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 32px; padding-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--g); align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 400 11px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.opt { text-transform: none; letter-spacing: 0; }
input, select, textarea {
  width: 100%; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 17px/1.5 var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: no-repeat right 2px center / 12px 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23858A92' stroke-width='1.5'/%3E%3C/svg%3E");
}
select option { background: var(--bg); color: var(--ink); }
textarea { min-height: 132px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-bottom-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.hint, .form-note { font: 400 12px/1.5 var(--font-mono); letter-spacing: .01em; color: var(--muted); }
.hint { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form-status { font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-ok, .form-status.is-err { padding: 14px 0 14px 16px; border-left: 2px solid currentColor; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }
.form-status a { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(72px, 8vw, 112px); overflow: hidden; }
.footer-grid { row-gap: 40px; }
.footer-brand { grid-column: 1 / 5; }
.footer-blurb { margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 36ch; }
.footer-col { grid-column: span 2; }
.footer-col h2 { font-size: 11px; line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { font-size: 15px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.footer-legal { margin-top: clamp(64px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); font: 400 12px/1.75 var(--font-mono); letter-spacing: .01em; color: var(--muted); display: grid; gap: 8px; }
.footer-legal p { max-width: 150ch; }
.footer-legal a { color: var(--ink); }
.footer-mark { max-width: calc(var(--maxw) + 2 * var(--m)); margin: clamp(24px, 4vw, 48px) auto 0; padding-inline: var(--m); height: .8em; font: 600 clamp(64px, 14.6vw, 200px)/.78 var(--font-display); letter-spacing: -.05em; color: var(--ink); opacity: .1; white-space: nowrap; }
.footer-mark::before { content: "Novagenta"; }

/* Legal pages and 404 */
.legal, .notfound { padding-block: clamp(64px, 8vw, 120px) var(--sec-pad); }
.legal > * { grid-column: 5 / 13; max-width: 68ch; }
.legal > .eyebrow { grid-column: 1 / 5; grid-row: 1 / span 2; padding-top: 1.2em; max-width: none; font: 400 12px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.legal h1 { font-size: clamp(44px, 5.6vw, 80px); max-width: none; }
.legal .updated { margin-top: 24px; font: 400 12px/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal .lead { margin-top: 40px; max-width: 60ch; }
.legal h2, .legal .box { max-width: none; }
.legal h2 { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.015em; }
.h-num, .legal--counted h2::before { display: block; margin-bottom: 14px; font: 400 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--accent-ink); }
.legal--counted { counter-reset: sec; }
.legal--counted h2 { counter-increment: sec; }
.legal--counted h2::before { content: counter(sec) "."; }
.legal p, .legal ul { margin-top: 18px; color: var(--text-2); }
.legal h2 + p, .legal h2 + ul, .legal h2 + .box { margin-top: 20px; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li + li { margin-top: 10px; }
.legal ul li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .box { margin-top: 24px; padding: 20px 0 20px 24px; border-left: 2px solid var(--accent); }
.legal .box p { margin: 0; }
.legal .box p + p { margin-top: 14px; }
.placeholder { font-family: var(--font-mono); font-size: .86em; padding: 1px 5px; background: var(--tag-bg); color: var(--ink); border-radius: 2px; }
.legal table { grid-column: 5 / 13; max-width: none; width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal th { text-align: left; vertical-align: bottom; padding: 0 16px 12px 0; font: 400 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.legal td { vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.legal td:first-child { color: var(--ink); font-weight: 500; }
.notfound { min-height: calc(100svh - var(--header-h) - 200px); align-content: center; }
.notfound > div { grid-column: 5 / 13; }
.notfound .code { display: block; margin-bottom: 28px; font: 400 12px/1.5 var(--font-mono); letter-spacing: .08em; color: var(--accent-ink); }
.notfound h1 { font-size: clamp(44px, 6vw, 88px); }
.notfound .lead { margin-top: 28px; }
.notfound .hero-ctas { margin-top: 40px; }

/* ---------- 5. Responsive ---------- */
@media (max-width: 1100px) {
  .facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts dl > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .facts dl > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .service-head { grid-column: 1 / 6; }
  .service-body { grid-column: 6 / 13; }
  .service-price { grid-column: 6 / 13; padding-top: 0; }
  .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); }
  .step { padding-bottom: 40px; }
  .comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp-item:nth-child(3n+1) { padding-left: 32px; }
  .comp-item:nth-child(2n+1) { padding-left: 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { grid-column: span 3; }
}

@media (max-width: 860px) {
  :root { --m: 16px; --g: 16px; --header-h: 64px; }
  .site-header.is-condensed .header-inner { height: 56px; }
  .header-inner { gap: 16px; }
  .header-actions { gap: 16px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--m) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-header.is-condensed .nav { top: 56px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 24px/1.2 var(--font-display); letter-spacing: -.01em; }
  .nav a.is-active::before, .nav a[aria-current="page"]::before { left: auto; right: 0; }
  .nav .nav-cta { display: block; border-bottom: 0; }

  .sec-head, .services .service, .about-grid, .contact-grid, .footer-grid, .legal, .notfound, .hero-grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .sec-head > .label, .sec-title, .service-head, .service-body, .service-price, .about-label, .about-text, .contact-aside, .form, .footer-brand, .legal > *, .legal > .eyebrow, .legal table, .notfound > div, .hero-copy { grid-column: 1 / -1; }
  .sec-head > .label { padding-top: 0; margin-bottom: 20px; }
  .legal > .eyebrow { grid-row: auto; padding-top: 0; margin-bottom: 20px; }

  .hero { min-height: 0; }
  .hero-main { display: block; }
  .hero-grid { padding-block: 48px 64px; }
  .hero-label { margin-bottom: 28px; }
  .hero-sub { margin-top: 24px; }
  .hero-ctas { margin-top: 32px; gap: 20px 28px; }
  .hero-mark { display: none; }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div, .facts dl > div:nth-child(4) { padding: 14px 12px 20px; border-left: 1px solid var(--line); }
  .facts dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .service { padding-block: 36px 40px; row-gap: 0; }
  .service-num { margin-bottom: 14px; }
  .service-body { padding-top: 24px; }
  .service-price { padding-top: 28px; }
  .service-price .link-arrow { align-self: flex-start; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 20px 10px 24px; gap: 12px; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats strong { font-size: clamp(30px, 9.6vw, 48px); }
  .stats span { font-size: 10px; letter-spacing: .06em; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:first-child, .step:nth-child(3) { padding: 28px 0 32px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step-num { margin-bottom: 20px; }

  .comp-grid { grid-template-columns: minmax(0, 1fr); }
  .comp-item, .comp-item:nth-child(3n+1), .comp-item:nth-child(2n+1) { padding: 28px 0 32px; }
  .comp-num { margin-bottom: 20px; }

  .about-label { padding-top: 0; margin-bottom: 20px; }
  .faq { margin-left: 0; }
  .faq summary { grid-template-columns: 40px 1fr 24px; padding: 22px 0; }
  .faq details p { padding: 0 0 28px 48px; }

  .contact-grid { row-gap: 56px; }
  .contact-facts dl > div { grid-template-columns: 112px 1fr; }
  .field-row { grid-template-columns: minmax(0, 1fr); }

  .footer-col { grid-column: span 1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .legal h2 { margin-top: 48px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .legal td { padding: 6px 0; border: 0; }
  .legal td::before { content: attr(data-label); display: block; font: 400 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}

/* ---------- 6. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js-motion .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
  .js-motion .reveal.is-in { opacity: 1; transform: none; }
  .js-motion .steps::before { transform: scaleX(0); transition: transform 1.4s var(--ease) .15s; }
  .js-motion .steps.is-drawn::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
