/* Shared application shell. Individual product components keep their own styles. */
:root {
  --paper: #f4f6f3;
  --ink: #172c26;
  --muted: #51665e;
  --accent: #165e49;
  --line: #d2ddd5;
  --soft: #e5eee8;
  --white: #fff;
  --font: Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --radius: 24px;
  --shadow: 0 12px 36px #172c2608;
  --dock-space: 0px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  scroll-padding-bottom: calc(var(--dock-space) + 24px);
}
body {
  margin: 0;
  padding-bottom: var(--dock-space);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a, button, input, select, textarea, summary, [tabindex] {
  scroll-margin-block: 112px calc(var(--dock-space) + 24px);
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 { max-width: 18ch; font-size: clamp(2.5rem, 4.6vw, 4.9rem); }
h2 { max-width: 22ch; font-size: clamp(2rem, 3.4vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: .6rem 0 1.2rem; }
main { min-width: 0; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 100;
  top: -120px;
  left: 16px;
  padding: 14px 20px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--white);
  font-weight: 700;
}
.skip:focus { top: 12px; }
.topline {
  padding: 8px 0;
  background: var(--ink);
  color: var(--paper);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.nav-wrap {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.wordmark {
  display: flex;
  width: 310px;
  max-width: 310px;
  flex: 0 1 310px;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  order: 1;
}
.brand-logo { width: 310px; height: 65px; object-fit: contain; object-position: left center; }
.brand-compact { display: none; min-width: 0; align-items: center; gap: 12px; }
.brand-compact > span { overflow-wrap: anywhere; }
.brand-symbol { width: 44px; height: 44px; flex: 0 0 44px; }
.mark { border: 1px solid currentColor; padding: 10px; border-radius: 10px; }
.nav-links { display: flex; order: 2; margin-left: auto; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current] { background: var(--soft); color: var(--accent); }
.header-actions { display: flex; min-width: 0; order: 3; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  min-height: 48px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid var(--accent);
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: box-shadow .18s ease, transform .18s ease;
}
.btn:after { content: '↗'; flex-shrink: 0; font-size: 1.2em; }
.btn:hover:not(:disabled) { box-shadow: 0 5px 14px #172c2624; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn.secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn:disabled { border-style: dashed; background: var(--soft); color: var(--muted); box-shadow: none; }
.nav-cta { min-height: 44px; padding: 10px 16px; white-space: nowrap; font-size: .83rem; }
.menu-toggle {
  display: none;
  min-width: 64px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
}
.menu-toggle[aria-expanded=true] { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.app-dock { display: none; }
.app-icon { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; flex: 0 0 22px; }
.app-icon svg, svg.app-icon { display: block; width: 22px; height: 22px; }

/* A useful introduction, framed as a workspace rather than an oversized banner. */
.hero { padding: 24px 0 48px; }
.hero-context {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.hero-context > span, .hero-context > p { margin: 0; overflow-wrap: anywhere; }
.hero-context nav { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 4px; }
.hero-context a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.hero-context a:hover { background: var(--soft); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch;
  gap: 24px;
}
.hero-workspace {
  display: flex;
  min-height: 490px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 3.2vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.6;
  text-transform: uppercase;
}
.lead { max-width: 58ch; margin: 14px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.actions { display: flex; max-width: 100%; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.actions > * { min-width: 0; }
.hero-shortcuts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-shortcuts a {
  display: flex;
  min-width: 0;
  min-height: 88px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.hero-shortcuts a:hover { border-color: var(--accent); background: var(--soft); }
.hero-shortcuts .app-icon { color: var(--accent); }
.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 490px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  isolation: isolate;
}
.hero-visual img, .hero-visual > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual:after {
  position: absolute;
  z-index: 0;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #000c);
  content: '';
  pointer-events: none;
}
.caption {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 24px;
  left: 26px;
  color: #fff;
  font-size: .76rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.caption strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
.caption a { min-height: 44px; text-decoration-thickness: 1px; }
.hero-tag, .hero-number {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.hero-workspace .hero-tag { margin-bottom: 18px; }
.hero-visual > .hero-tag, .hero-visual > .hero-number {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  left: 18px;
  width: fit-content;
  max-width: calc(100% - 36px);
  border-color: #ffffff73;
  background: #15231ee6;
  color: #fff;
}
.signal-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.signal-bar > div { padding: 18px 24px; border-right: 1px solid var(--line); color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.signal-bar > div:last-child { border-right: 0; }
.signal-bar strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: .9rem; }

.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { max-width: 46ch; margin-bottom: 3px; color: var(--muted); font-size: .96rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.card .ordinal {
  display: inline-flex;
  min-width: 38px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.card p { color: var(--muted); font-size: .94rem; }
.card p:last-child { margin-bottom: 0; }
.card img { width: 100%; height: 220px; margin-bottom: 22px; border-radius: 12px; object-fit: cover; }
.card .btn { margin-top: 14px; }
.product-card { display: flex; flex-direction: column; align-items: flex-start; }
.product-card > img { object-fit: contain; background: #fff; }
.product-card > .btn { margin-top: auto; }
.product-card > p:last-of-type { margin-bottom: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 76px); }
.editorial { max-width: 30ch; font-family: var(--serif); font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.4; letter-spacing: -.025em; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.steps li:before { padding-top: 2px; color: var(--accent); font-size: .73rem; font-weight: 700; counter-increment: step; content: '0' counter(step); }
.steps strong { display: block; font-size: .97rem; }
.steps p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq summary { min-height: 60px; padding: 18px 0; font-size: .95rem; font-weight: 700; cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq details[open] { border-color: var(--accent); }
.faq details p { margin: 0 0 22px; color: var(--muted); font-size: .94rem; }
.contact-panel { padding: 36px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.contact-panel p, .contact-panel .fine, .contact-panel .eyebrow { color: var(--paper); }
.contact-panel .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.contact-panel a:focus-visible { outline-color: var(--paper); }
.fine { color: var(--muted); font-size: .8rem; line-height: 1.7; }
.notice { padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--white); font-size: .9rem; }

/* Controls remain native and comfortable on touch, keyboard and zoomed layouts. */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.filters button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
.search { width: 100%; max-width: 700px; margin: 20px 0; }
.search > label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 700; }
.search input { width: 100%; }
.field { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 18px; }
.field input, .field select, .field textarea, .search input {
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.field > input, .field > select, .field > textarea { width: 100%; max-width: 100%; }
.field textarea { min-height: 144px; resize: vertical; }
.field label { min-width: 0; font-size: .88rem; font-weight: 700; line-height: 1.65; }
.field label:has(input[type=checkbox]) { display: block; min-height: 44px; padding: 4px 0; font-weight: 400; cursor: pointer; }
.field input[type=checkbox] { width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 0 7px 0 0; padding: 0; accent-color: var(--accent); vertical-align: -.22em; }
.field .fine { margin: 0; }
[data-contact-form] { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
[data-contact-form] [data-turnstile] { display: block; width: 100%; max-width: 100%; min-width: 0; margin: 20px 0; }
[data-contact-form] button[type=submit] { width: 100%; }
[data-form-status] { color: var(--muted); font-size: .88rem; }
[data-form-status]:not(:empty) { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.calculator { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.calculator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.result { display: block; min-height: 1px; margin-top: 22px; color: var(--ink); font-size: 1.05rem; line-height: 1.7; }
.result:not(:empty) { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
[data-loan-error] { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--soft); }
.empty { padding: 28px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.empty[hidden], [hidden] { display: none !important; }

.site-footer { padding: 36px 0 28px; }
.site-footer > .wrap > .fine { max-width: 94ch; margin-bottom: 26px; }
.footer-wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.footer-links { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px 12px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px; border-radius: 10px; }
.footer-links a:hover { background: var(--soft); }
.legal { max-width: 900px; padding-top: 54px; padding-bottom: 48px; overflow-wrap: anywhere; }
.legal h1 { max-width: 22ch; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.legal h2 { max-width: none; margin-top: 32px; font-family: var(--font); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.legal p { max-width: 75ch; color: var(--muted); }
body[data-page=privacy] .legal { margin-top: 28px; margin-bottom: 28px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
body[data-page=contact] .legal { max-width: 1280px; padding-bottom: 0; }
body[data-page=contact] #contact { padding-top: 36px; }
body[data-page=missing] .legal { min-height: 48vh; }

/* Brand voices share the same accessible structure, with their own colour and type. */
.model { --paper: #f7f3f1; --ink: #2d222a; --muted: #69565f; --accent: #863653; --line: #e2d7db; --soft: #f1e4ea; --radius: 28px; }
.model h1, .model h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
.model .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
.model .hero-visual { min-height: 540px; }
.tech { --paper: #f3f6fc; --ink: #172a47; --muted: #51617b; --accent: #245fc8; --line: #d2ddec; --soft: #e7eefb; --radius: 22px; }
.tech h1 { max-width: 17ch; }
.finance { --paper: #f0f5f2; --ink: #173b32; --muted: #53685e; --accent: #16654e; --line: #cfded4; --soft: #deeee4; }
.skin { --paper: #f5f7f1; --ink: #273e32; --muted: #5b6d60; --accent: #3f6947; --line: #d7e0d3; --soft: #e8efdf; --radius: 26px; }
.skin h1, .skin h2 { font-family: var(--serif); font-weight: 400; }
.business { --paper: #f8f4ed; --ink: #333b2d; --muted: #626952; --accent: #785b25; --line: #e0dccf; --soft: #f1ead6; }
.fan { --paper: #f5f3f9; --ink: #23253e; --muted: #5b6179; --accent: #a72f54; --line: #dbdbe8; --soft: #f5e5ec; --radius: 28px; }
.fan h1, .fan h2 { font-family: var(--serif); font-weight: 400; }
.ai { --paper: #f4f2fb; --ink: #2b2544; --muted: #645c7b; --accent: #6547b0; --line: #dcd7eb; --soft: #ede7fa; }
.jobs { --paper: #f2f7f9; --ink: #163542; --muted: #526b75; --accent: #17677f; --line: #d0e0e6; --soft: #e0eff3; }

/* Intrinsic content must shrink; third-party challenge frames are never scaled. */
.hero-grid > *, .split > *, .cards > *, .calculator-grid > *,
.signal-bar > *, .section-head > *, .footer-wrap > *, .nav-wrap > * { min-width: 0; }
.legacy-anchor { display: block; height: 0; overflow: hidden; }

@media (max-width: 1180px) {
  .wordmark { width: auto; max-width: 270px; flex-basis: 270px; }
  .brand-logo { display: none; }
  .brand-compact { display: flex; }
  .nav-wrap { gap: 14px; }
  .nav-links a { padding-inline: 9px; font-size: .8rem; }
  .hero-workspace { padding: 28px; }
  .hero-visual, .model .hero-visual { min-height: 490px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { gap: 28px; }
}

/* Desktop begins at 900px, matching the navigation script's media query. */
@media (max-width: 899.98px) {
  :root { --dock-space: calc(var(--measured-dock-space, 104px) + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: 100px; }
  .wrap { width: calc(100% - 40px); }
  .topline { font-size: .65rem; letter-spacing: .1em; }
  .nav-wrap { min-height: 78px; flex-wrap: wrap; gap: 0 14px; padding-block: 10px; }
  .wordmark { max-width: calc(100% - 82px); flex: 1 1 0; font-size: .95rem; }
  .header-actions { order: 2; flex: 0 0 auto; margin-left: auto; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; order: 3; width: 100%; flex-basis: 100%; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-links.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .nav-links a { min-height: 48px; justify-content: flex-start; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; }
  .app-dock {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 0;
    display: grid;
    width: min(480px, calc(100% - 24px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-inline: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: var(--white);
    box-shadow: 0 8px 32px #172c2626;
  }
  .app-dock a {
    display: flex;
    min-width: 0;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 7px 3px;
    border-radius: 16px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .app-dock a[aria-current], .app-dock a.is-active, .app-dock a.active { background: var(--soft); color: var(--accent); }
  .app-dock a:hover { background: var(--soft); color: var(--ink); }
  .app-dock a:focus-visible { outline-offset: 1px; }
  body.is-editing .app-dock { visibility: hidden; pointer-events: none; }
  .hero { padding: 18px 0 36px; }
  .hero-context { gap: 4px 16px; margin-bottom: 14px; }
  .hero-grid, .model .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-workspace { min-height: 0; padding: 32px; }
  .hero-workspace h1 { max-width: 20ch; font-size: clamp(2.6rem, 6.4vw, 4rem); }
  .hero-visual, .model .hero-visual { height: 390px; min-height: 0; }
  .hero-visual img, .hero-visual > svg { height: 100%; min-height: 0; }
  .signal-bar { margin-top: 18px; }
  .signal-bar > div { padding: 16px; }
  .section { padding: 48px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 26px; }
  .section-head > p { max-width: 68ch; margin: 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .editorial { max-width: 44ch; }
  .calculator-grid { gap: 14px; }
  .footer-wrap { flex-direction: column; gap: 14px; }
  body[data-page=privacy] .legal { padding: 30px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topline { padding: 7px 0; font-size: .6rem; }
  .nav-wrap { min-height: 76px; }
  .brand-compact { gap: 10px; font-size: .9rem; line-height: 1.25; }
  .brand-symbol { width: 40px; height: 40px; flex-basis: 40px; }
  .hero-context { align-items: flex-start; flex-direction: column; }
  .hero-context nav { margin-left: -10px; }
  .hero-workspace { padding: 24px 22px; border-radius: 22px; }
  .hero-workspace h1 { font-size: clamp(2.2rem, 9.5vw, 3.2rem); line-height: 1.13; }
  .hero-workspace .lead { font-size: 1rem; line-height: 1.7; }
  .hero-visual, .model .hero-visual { height: 320px; border-radius: 22px; }
  .caption { right: 20px; bottom: 20px; left: 20px; font-size: .72rem; }
  .caption strong { font-size: 1.2rem; }
  .signal-bar { border-radius: 16px; }
  .signal-bar > div { padding: 14px 10px; font-size: .73rem; line-height: 1.55; }
  .signal-bar strong { font-size: .8rem; }
  .eyebrow { margin-bottom: 14px; font-size: .67rem; letter-spacing: .12em; }
  .actions { width: 100%; align-items: stretch; margin-top: 22px; }
  .actions .btn { width: 100%; flex: 1 1 100%; }
  h2 { font-size: clamp(1.9rem, 7.4vw, 2.5rem); }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 22px; border-radius: 18px; }
  .card .ordinal { margin-bottom: 24px; }
  .card img { height: 210px; }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 18px; }
  .faq details { padding-inline: 18px; }
  .contact-panel { padding: 24px; }
  .calculator { padding: 22px; }
  .calculator-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .calculator .btn { width: 100%; }
  .result:not(:empty) { padding: 18px; font-size: 1rem; }
  .filters button { padding-inline: 13px; }
  .legal { padding-top: 36px; padding-bottom: 32px; }
  body[data-page=privacy] .legal { padding: 24px 20px; }
  .legal h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .legal h2 { font-size: 1.3rem; line-height: 1.3; }
  .footer-links { width: 100%; justify-content: space-between; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
@media (prefers-contrast: more) {
  body { --muted: var(--ink); --line: var(--ink); }
  .btn, .card, .faq details, .app-dock { border-width: 2px; }
  .app-dock a[aria-current] { outline: 2px solid var(--accent); outline-offset: -3px; }
}
@media print {
  .site-header, .topline, .app-dock, .menu-toggle { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
  .wrap { width: 100%; }
  .hero-workspace, .card, .calculator { box-shadow: none; }
}

/* The journal uses the same app shell with a quieter reading measure. */
.article-intro { max-width: 850px; padding-block: 12px 30px; }
.article-intro h1 { font-size: clamp(2.25rem, 5vw, 4.4rem); line-height: 1.06; text-wrap: balance; }
.article-intro > .editorial { max-width: 65ch; font-family: var(--font); font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.65; letter-spacing: -.01em; }
.article-page { padding-top: 28px; padding-bottom: 64px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-size: .9rem; }
.article-figure { margin: 0 auto 36px; max-width: 1000px; }
.article-figure img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: center 20%; border-radius: 20px; }
.article-figure figcaption { color: var(--muted); font-size: .8rem; line-height: 1.65; padding: 12px 2px 0; }
.article-reading { max-width: 760px; margin-inline: auto; font-size: 1.075rem; line-height: 1.85; }
.article-reading h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); line-height: 1.25; margin-top: 42px; }
.article-reading li { padding-left: 6px; margin-bottom: 10px; }
.article-scope { border-left: 3px solid var(--accent); padding: 8px 20px; margin: 24px 0 32px; background: var(--surface, #fff); border-radius: 0 12px 12px 0; }
.article-scope .eyebrow { font-size: .7rem; line-height: 1.7; }
.article-search { max-width: 560px; margin-block: 12px 28px; }
.article-card .article-image-link { display: block; margin: -6px -6px 22px; border-radius: 12px; overflow: hidden; }
.article-card .article-image-link img { display: block; width: 100%; height: 210px; margin: 0; object-fit: cover; }
.article-card h3 a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.article-read { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.article-sources { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 8px; font-size: .95rem; overflow-wrap: anywhere; }
.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; }
@media (max-width: 600px) {
  .article-page { padding-top: 20px; }
  .article-intro { padding-bottom: 20px; }
  .article-reading { font-size: 1rem; line-height: 1.8; }
  .article-scope { padding-inline: 14px; }
  .article-figure img { border-radius: 14px; }
}
