/* Initial Reach — built on mss.gs's design language (mssgs-website
   web-static/style/fancy.css + fancy-home.css): warm paper with a soft
   aurora, a glass pill nav, Bricolage Grotesque display over Hanken Grotesk,
   forest-green buttons, glass tiles and a dark #202327 feature card.
   mss.gs is light only; the dark theme here is derived from its dark cards
   and follows the system setting. No script: everything is CSS. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/web/fonts/bricolage-grotesque.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/web/fonts/hanken-grotesk.woff2') format('woff2');
}

:root {
  --paper: #ebe4d3;
  --ink: #20301f;
  --ink-2: #33402f;
  --mut: #525f4c;
  --mut-2: #5d6956;
  --line: rgba(50, 55, 30, .1);
  --line-2: rgba(50, 55, 30, .14);
  --brand: #2f6e48;
  --brand-hover: #265f3e;
  --brand-ink: #f7f3e8;
  --brand-soft: #2f6e48;
  --focus: rgba(51, 117, 77, .45);
  --nav: rgba(255, 253, 244, .72);
  --tile: rgba(255, 255, 255, .55);
  --tile-solid: #fdfaf1;
  --rim-a: rgba(0, 0, 0, .12);
  --rim-b: rgba(0, 0, 0, .05);
  --rim-c: rgba(0, 0, 0, .025);
  --shadow: 0 10px 30px rgba(31, 35, 33, .07);
  --au1: rgba(51, 117, 77, .2);
  --au2: rgba(176, 141, 87, .18);
  --card: #202327;
  --card-ink: #ffffff;
  --card-mut: rgba(255, 255, 255, .72);
  --card-green: #6fd39b;
  --card-shadow: 0 18px 44px rgba(20, 32, 24, .2);
  --paper-2: #fdfaf1;
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121518;
    --ink: #eef0ea;
    --ink-2: #d9ddd4;
    --mut: #a9b2a3;
    --mut-2: #949d8e;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .12);
    --brand: #6fd39b;
    --brand-hover: #8fe0b2;
    --brand-ink: #10241a;
    --brand-soft: #6fd39b;
    --focus: rgba(111, 211, 155, .45);
    --nav: rgba(30, 34, 38, .72);
    --tile: rgba(255, 255, 255, .04);
    --tile-solid: #1b1f23;
    --rim-a: rgba(255, 255, 255, .16);
    --rim-b: rgba(255, 255, 255, .07);
    --rim-c: rgba(255, 255, 255, .03);
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --au1: rgba(111, 211, 155, .14);
    --au2: rgba(104, 168, 218, .1);
    --card: #1b1f23;
    --card-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    --paper-2: #262b30;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section { scroll-margin-top: 96px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); border-radius: 8px; }

/* ---- Aurora ---- */
.aurora { position: fixed; inset: 0; z-index: -2; background: var(--paper); overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(100px); }
.au1 { width: 980px; height: 980px; left: 50%; top: -520px; margin-left: -490px; background: radial-gradient(circle, var(--au1), transparent 62%); opacity: .55; animation: drift 40s var(--ease) infinite alternate; }
.au2 { width: 760px; height: 760px; left: -340px; top: 8%; background: radial-gradient(circle, var(--au2), transparent 62%); opacity: .45; }
@keyframes drift { to { transform: translate(40px, 60px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .au1 { animation: none; } }

/* ---- Glass ---- */
.glass-pill, .glass-tile { position: relative; isolation: isolate; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.glass-pill { background: var(--nav); border-radius: 980px; box-shadow: rgba(31, 35, 33, .08) 0 4px 20px; }
.glass-tile { background: var(--tile); border-radius: 20px; box-shadow: var(--shadow); }
.glass-pill::before, .glass-tile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: conic-gradient(from 135deg at 50% 50%, var(--rim-a) 0deg, var(--rim-b) 60deg, var(--rim-c) 120deg, var(--rim-c) 240deg, var(--rim-b) 300deg, var(--rim-a) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---- Mark ---- */
.mark { width: 24px; height: 24px; display: block; flex: none; }
.mark rect { fill: var(--brand); }
.mark circle { fill: var(--brand-ink); }
.mark path { fill: none; stroke: var(--brand-ink); stroke-width: 2.6; stroke-linecap: round; }

/* ---- Icons ---- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Nav ---- */
.nav-wrap { position: fixed; top: 20px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 26px; padding: 9px 12px 9px 16px; }
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink); }
.navlink { font-size: 14px; font-weight: 500; color: var(--mut); text-decoration: none; transition: color .2s var(--ease); }
.navlink:hover { color: var(--ink); }
.nav-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 980px; font-size: 12.5px; font-weight: 600; color: var(--brand-soft); background: var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-soft); box-shadow: 0 0 0 3px var(--line-2); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; font: 600 15px/1 var(--sans); border-radius: 12px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .2s var(--ease); }
.btn .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 4px 20px rgba(38, 95, 62, .22); }
.btn-secondary { background: var(--tile-solid); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--mut-2); }

/* ---- Hero ---- */
.hero { padding-top: 168px; padding-bottom: 40px; text-align: center; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 26px; padding: 7px 14px; border-radius: 980px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--tile); border: 1px solid var(--line-2); }
.hero h1 { font-size: clamp(46px, 8vw, 92px); line-height: 1; letter-spacing: -.035em; margin: 0 auto 22px; max-width: 980px; }
.hero h1 span { display: block; }
.brandline { color: var(--brand); }
.hero-sub { font-size: 20px; line-height: 1.6; color: var(--mut); max-width: 620px; margin: 0 auto 34px; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--mut-2); }
.hero-404 { min-height: 70vh; }

/* ---- Sections ---- */
.section { padding-top: 120px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--brand-soft); }
.section-head h2 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 12px 0 14px; }
.section-head p:last-child { margin: 0; font-size: 18px; color: var(--mut); }

/* ---- Desks ---- */
.desk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.desk { padding: 28px; }
.desk-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; color: var(--brand-soft); background: var(--line); }
.desk-icon .icon { width: 22px; height: 22px; }
.desk h3 { font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
.desk p { margin: 0; font-size: 15.5px; color: var(--mut); }

/* ---- Chips ---- */
.morerow { margin-top: 44px; text-align: center; }
.morelead { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--mut-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 780px; margin: 0 auto; }
.chip { padding: 8px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: none; }

/* ---- Dark feature card ---- */
.feat-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px;
  padding: 56px; border-radius: 20px; color: var(--card-ink);
  background: radial-gradient(circle at 22% 50%, rgba(111, 211, 155, .22), transparent 58%), radial-gradient(circle at 84% 40%, rgba(104, 168, 218, .14), transparent 50%), var(--card);
  box-shadow: var(--card-shadow);
}
.feat-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 18px; font-weight: 600; color: #e9ecef; }
.feat-brand b { color: var(--card-green); font-weight: 600; }
.feat-brand .mark rect { fill: var(--card-green); }
.feat-brand .mark circle { fill: #10241a; }
.feat-brand .mark path { stroke: #10241a; }
.feat-card h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.03; margin-bottom: 16px; color: #fff; }
.feat-sub { margin: 0 0 26px; font-size: 17px; color: var(--card-mut); max-width: 460px; }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.feat-list .icon { width: 16px; height: 16px; margin-top: 2px; stroke: var(--card-green); stroke-width: 2.4; }

/* the story anatomy: a sketch of the layout, not a story */
.anatomy { margin: 0; display: grid; gap: 22px; justify-items: center; }
.anatomy-paper {
  display: grid; gap: 10px; width: min(360px, 100%); padding: 26px 26px 22px; border-radius: 16px;
  background: var(--paper-2); transform: rotate(2.5deg);
  box-shadow: 0 26px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}
.anatomy-paper span { display: block; border-radius: 6px; background: rgba(32, 48, 31, .14); }
@media (prefers-color-scheme: dark) { .anatomy-paper span { background: rgba(255, 255, 255, .12); } }
.an-kicker { width: 34%; height: 10px; background: rgba(47, 110, 72, .55) !important; }
.an-head { height: 18px; }
.an-head.an-short { width: 72%; margin-bottom: 8px; }
.an-line { height: 9px; }
.an-line.an-short { width: 58%; }
.an-sources { display: flex !important; gap: 8px; margin-top: 10px; background: none !important; }
.an-sources i { height: 22px; flex: 1; border-radius: 980px; border: 1.5px dashed rgba(47, 110, 72, .55); }
.an-fix { height: 26px; margin-top: 6px; border-left: 3px solid rgba(230, 179, 76, .9); background: rgba(230, 179, 76, .16) !important; border-radius: 4px !important; }
.anatomy-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; counter-reset: an; font-size: 13.5px; color: var(--card-mut); }
.anatomy-notes li { counter-increment: an; display: flex; gap: 8px; align-items: baseline; }
.anatomy-notes li::before { content: counter(an); flex: none; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #10241a; background: var(--card-green); }
.anatomy-notes b { color: #fff; font-weight: 600; }

/* ---- Regions ---- */
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.region { padding: 26px; }
.region-offset { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 980px; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; color: var(--brand-soft); background: var(--line); font-variant-numeric: tabular-nums; }
.region h3 { font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.region p { margin: 0; font-size: 14.5px; color: var(--mut); }

/* ---- Closing panel ---- */
.cta-panel { text-align: center; padding: 76px 40px; overflow: hidden; }
.cta-panel h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; margin-bottom: 14px; }
.cta-panel p { margin: 0 auto 30px; max-width: 520px; font-size: 17.5px; color: var(--mut); }

/* ---- Footer ---- */
.footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 40px 0 34px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-brand .mark { width: 20px; height: 20px; }
.footer-brand b { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.footer-tag { font-size: 13px; color: var(--mut-2); }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--mut-2); }
.footer-badges span { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-2); }
.footer-fine { margin-top: 22px; font-size: 13px; color: var(--mut-2); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--mut); }
.footer-links a:hover { color: var(--ink); }

/* ---- Narrower screens ---- */
@media (max-width: 960px) {
  .feat-card { grid-template-columns: minmax(0, 1fr); padding: 44px 36px; }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .desk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .navlink { display: none; }
  .nav { gap: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-wrap { top: 12px; }
  .hero { padding-top: 124px; }
  .hero-sub { font-size: 17.5px; }
  .hero-cta .btn { width: 100%; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 36px; }
  .section-head p:last-child { font-size: 16.5px; }
  .desk-grid, .region-grid, .feat-list, .anatomy-notes { grid-template-columns: minmax(0, 1fr); }
  .feat-card { padding: 34px 22px; gap: 36px; }
  .cta-panel { padding: 52px 22px; }
  .footer { margin-top: 80px; }
}
