:root {
  --ink: #102a2b;
  --ink-soft: #345253;
  --paper: #f5f1e8;
  --paper-2: #ebe5d9;
  --white: #fffdf8;
  --blue: #2d63ff;
  --gold: #e7a928;
  --coral: #e66d50;
  --mint: #b8dbc8;
  --line: rgba(16, 42, 43, 0.18);
  --shadow: 0 24px 70px rgba(16, 42, 43, 0.12);
  --radius: 22px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(245, 241, 232, 0.93); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .78rem; font-weight: 800; line-height: 1.02; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; color: var(--paper); background: var(--ink); border-radius: 50%; font-size: .72rem; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 27px; font-size: .9rem; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { padding: 11px 18px; color: var(--white); background: var(--ink); border-radius: 999px; }
.menu-button { display: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 14px; color: var(--ink); font-weight: 700; }
.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: clamp(36px, 7vw, 100px); align-items: center; padding-block: clamp(72px, 10vw, 138px); }
.hero-copy { position: relative; }
.hero-copy::before { content: ""; position: absolute; width: 180px; height: 180px; right: 3%; top: -28%; border: 1px solid var(--gold); border-radius: 50%; opacity: .55; pointer-events: none; }
.eyebrow, .kicker { margin: 0 0 16px; font-size: .73rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; line-height: .98; }
h1 { max-width: 850px; margin-bottom: 28px; font-size: clamp(3.2rem, 7.5vw, 6.9rem); font-weight: 500; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.3rem); font-weight: 500; }
h3 { line-height: 1.2; }
.hero-lead { max-width: 770px; margin-bottom: 32px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.32rem); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 12px 28px rgba(45, 99, 255, .2); }
.button-primary:hover { background: #184fe6; transform: translateY(-1px); }
.button-quiet, .button-secondary { border-color: var(--line); background: transparent; }
.button-light { color: var(--ink); background: var(--white); }
.hero-aside { position: relative; padding: 34px; color: var(--white); background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero-aside::after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; bottom: -90px; background: var(--coral); border-radius: 50%; opacity: .3; }
.hero-aside .kicker { color: var(--mint); }
.aside-big { margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.08; }
.location-stamp { margin: 0 0 25px; color: var(--gold); font-size: 4.4rem; font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.section { margin-bottom: clamp(80px, 12vw, 150px); }
.split-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 100px); align-items: start; }
.split-intro h2 { margin-bottom: 0; }
.lede-small { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.25; }
.section-heading { max-width: 780px; margin-bottom: 40px; }
.card-grid { display: grid; gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; min-height: 280px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card::after { content: ""; position: absolute; width: 90px; height: 8px; left: 30px; bottom: 0; background: var(--mint); }
.card.accent-blue::after { background: var(--blue); }
.card.accent-gold::after { background: var(--gold); }
.card.accent-coral::after { background: var(--coral); }
.card h2 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.08; }
.card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; }
.card-index { display: block; margin-bottom: 50px; color: var(--ink-soft); font-size: .75rem; font-weight: 900; }
.text-link { display: inline-flex; gap: 9px; align-items: center; font-weight: 850; text-decoration: none; }
.text-link:hover { color: var(--blue); }
.text-link span { font-size: 1.25rem; }
.dark-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; padding: clamp(36px, 7vw, 78px); color: var(--white); background: var(--ink); border-radius: calc(var(--radius) + 8px); }
.dark-panel h2 { max-width: 700px; }
.kicker.light { color: var(--mint); }
.mini-grid { display: grid; gap: 12px; align-content: center; }
.mini-grid div { padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; }
.mini-grid strong, .mini-grid span { display: block; }
.mini-grid span { color: rgba(255,255,255,.7); font-size: .9rem; }
.callout { padding: 28px; color: var(--ink); background: var(--gold); border-radius: var(--radius); }
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.market-grid a { min-height: 245px; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.market-grid a:hover { background: var(--white); }
.market-grid span { color: var(--blue); font-size: .73rem; font-weight: 900; letter-spacing: .15em; }
.market-grid strong { margin-top: auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.1; }
.market-grid small { margin-top: 12px; color: var(--ink-soft); }
.evidence-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding-block: 55px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.evidence-band h2 { margin-bottom: 0; }
.evidence-band ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.evidence-band li strong, .evidence-band li span { display: block; }
.evidence-band li span { color: var(--ink-soft); }
.final-cta { max-width: 900px; text-align: center; margin-inline: auto; padding-block: 20px; }
.final-cta p:not(.kicker) { max-width: 680px; margin-inline: auto; color: var(--ink-soft); }
.plain-list { padding-left: 1.1rem; }
.plain-list li { margin-bottom: 8px; }
.plain-list.large { font-size: 1.12rem; }
.artifact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.artifact-grid div { min-height: 145px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.artifact-grid strong, .artifact-grid span { display: block; }
.artifact-grid span { margin-top: 10px; color: var(--ink-soft); }
.process { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.process li > span { color: var(--blue); font-weight: 900; }
.process strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; }
.process p { margin-bottom: 0; color: var(--ink-soft); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 30px; margin: 0; padding: 0; list-style: none; }
.check-grid li::before { content: "✓"; margin-right: 9px; color: var(--blue); font-weight: 900; }
.fit { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.location-list { border-top: 2px solid var(--ink); }
.location-list a { display: grid; grid-template-columns: 100px 1fr auto; gap: 30px; align-items: center; padding: 28px 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.location-list a:hover { padding-inline: 20px; background: var(--white); }
.location-list h2 { margin-bottom: 7px; font-size: 2.2rem; }
.location-list p { margin-bottom: 0; color: var(--ink-soft); }
.location-code { color: var(--blue); font-weight: 900; letter-spacing: .12em; }
.notice { padding: 25px 30px; background: rgba(231,169,40,.18); border-left: 5px solid var(--gold); }
.notice p { margin-bottom: 0; }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.people-grid a { min-height: 230px; display: flex; flex-direction: column; padding: 25px; color: var(--white); background: var(--ink); border-radius: var(--radius); text-decoration: none; }
.people-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.people-grid span { color: var(--gold); font-weight: 900; }
.people-grid h3 { margin-top: auto; margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.people-grid p { margin-bottom: 0; color: rgba(255,255,255,.7); }
.local-person { display: grid; grid-template-columns: 1fr .75fr; gap: 60px; align-items: center; }
.location-map { min-height: 310px; display: flex; flex-direction: column; justify-content: center; padding: 40px; color: white; background: var(--blue); border-radius: 50% 50% 12px 50%; }
.location-map span { font-size: 4rem; font-weight: 900; letter-spacing: -.07em; opacity: .35; }
.location-map strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 500; }
.location-map small, .location-map em { display: block; }
.location-map em { margin-top: 22px; font-size: .85rem; }
.tool-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; padding: clamp(25px, 5vw, 55px); background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); }
form { display: grid; gap: 18px; }
fieldset { display: grid; gap: 9px; margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
legend { margin-bottom: 10px; font-weight: 850; }
label { display: grid; gap: 7px; font-size: .9rem; font-weight: 750; }
fieldset label { display: flex; align-items: center; padding: 10px; background: var(--paper); border-radius: 10px; cursor: pointer; }
input, textarea, select { width: 100%; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
input[type="radio"] { width: auto; margin-right: 8px; accent-color: var(--blue); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.tool-result { align-self: stretch; padding: 30px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.tool-result h2 { font-size: 2.4rem; }
.tool-result .kicker { color: var(--mint); }
.copy-button { margin-top: 15px; }
.prose { max-width: 800px; }
.prose h2 { margin-top: 55px; font-size: 2.3rem; }
.benchmark-panel { display: grid; grid-template-columns: .75fr 1.45fr; gap: 28px; padding: clamp(24px, 5vw, 52px); background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); }
.benchmark-controls { display: grid; align-content: start; gap: 28px; }
.method-note { padding: 22px; background: var(--paper); border-radius: 15px; }
.method-note p { margin-bottom: 8px; font-size: .88rem; }
.benchmark-result h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.benchmark-chart { width: 100%; height: auto; margin: 15px 0; background: var(--paper); border-radius: 12px; }
.series { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.series.actual { stroke: var(--ink); stroke-width: 4; }
.series.naive { stroke: var(--blue); }
.series.seasonal { stroke: var(--coral); }
.series.average { stroke: var(--gold); }
.split-line { stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 15px; font-size: .78rem; font-weight: 800; }
.chart-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; background: currentColor; }
.chart-legend .actual { color: var(--ink); }
.chart-legend .naive { color: var(--blue); }
.chart-legend .seasonal { color: var(--coral); }
.chart-legend .average { color: #a66b00; }
.evaluation-matrix { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.evaluation-matrix article { min-height: 320px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evaluation-matrix article > span { color: var(--blue); font-size: .75rem; font-weight: 900; }
.evaluation-matrix h3 { margin-top: 55px; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.evaluation-matrix strong, .evaluation-matrix small { display: block; }
.evaluation-matrix small { margin-top: 5px; color: var(--ink-soft); }
.comparison-wrap { overflow-x: auto; }
.comparison { width: 100%; border-collapse: collapse; background: var(--white); }
.comparison th, .comparison td { padding: 19px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison thead th { color: var(--white); background: var(--ink); }
.comparison tbody th { min-width: 170px; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.comparison.compact th, .comparison.compact td { padding: 12px; font-size: .84rem; }
.tool-result pre { max-height: 420px; overflow: auto; white-space: pre-wrap; color: var(--white); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 25px 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.2; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--blue); font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 800; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 850px; padding: 0 4px 25px; color: var(--ink-soft); }
.site-footer { padding-top: 70px; color: var(--white); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr 1fr; gap: 45px; padding-bottom: 55px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-grid p, .footer-grid span, .footer-grid small { color: rgba(255,255,255,.65); }
.footer-brand { color: var(--white) !important; margin-bottom: 15px; }
.footer-brand .brand-mark { color: var(--ink); background: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav { display: none; position: absolute; inset: 82px 0 auto; flex-direction: column; align-items: stretch; padding: 25px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-aside { max-width: 580px; }
  .card-grid.three, .people-grid { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .dark-panel, .evidence-band, .local-person, .tool-panel, .benchmark-panel { grid-template-columns: 1fr; }
  .evaluation-matrix { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 26px), var(--shell)); }
  .header-inner { min-height: 72px; }
  .nav { top: 72px; }
  h1 { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .hero { padding-block: 60px 85px; }
  .hero-actions .button { width: 100%; }
  .split-intro, .card-grid.three, .card-grid.two, .people-grid, .artifact-grid, .form-row, .evaluation-matrix { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .market-grid a { min-height: 190px; }
  .evidence-band ol, .check-grid { grid-template-columns: 1fr; }
  .location-list a { grid-template-columns: 60px 1fr; gap: 14px; }
  .location-list a > span:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .card, .people-grid a, .location-list a { transition: transform .2s ease, background .2s ease, padding .2s ease, box-shadow .2s ease; }
}

@media print {
  .site-header, .site-footer, .hero-actions { display: none; }
  body { background: white; }
  .hero { min-height: auto; padding-block: 30px; }
  .section { margin-bottom: 45px; }
}
