/* Self-hosted fonts (latin subset from Google Fonts, OFL licensed) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-400-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-400-900.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Headwater Surety · site styles
   River-night palette, copper for action, Current mint for prices. */
:root {
  --bg: #0A1626;
  --bg-2: #0C1A2D;
  --surface: #0F2136;
  --surface-2: #15304C;
  --line: #21405F;
  --line-soft: #1A3450;
  --fg: #E6EFF2;
  --muted: #92A8B8;
  --current: #5FE0C3;
  --current-soft: rgba(95, 224, 195, .14);
  --copper: #D9803F;
  --copper-hi: #EE9A5C;
  --on-copper: #1A0E06;
  --clay: #B04E2C;
  --font-schibsted: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --display: var(--font-schibsted);
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--current); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--copper); color: var(--on-copper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--current); }
.eyebrow.muted { color: var(--muted); }
.body { color: var(--muted); font-size: 17px; max-width: 58ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 650 15px/1 var(--body); padding: 15px 22px; border-radius: 10px; border: 1px solid transparent; transition: background .18s, border-color .18s, transform .18s; white-space: nowrap; cursor: pointer; }
.btn.sm { padding: 10px 15px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.copper { background: var(--copper); color: var(--on-copper); }
.btn.copper:hover { background: var(--copper-hi); }
.btn.ghost { border-color: var(--line); color: var(--fg); background: rgba(15, 33, 54, .6); }
.btn.ghost:hover { border-color: var(--current); }
.btn:active { transform: translateY(1px); }

/* Logo mark */
/* Logo ripple: the drop lands and the rings spread once on load, again on hover */
@media (prefers-reduced-motion: no-preference) {
  .nav .mark .drop { animation: hw-drop .7s cubic-bezier(.5,0,.75,0) both; }
  .nav .mark .r1 { animation: hw-ring .9s .62s cubic-bezier(.2,.7,.3,1) both; }
  .nav .mark .r2 { animation: hw-ring .9s .74s cubic-bezier(.2,.7,.3,1) both; }
  .nav .mark .rglow { animation: hw-fade 1s .7s ease-out both; }
  .brand:hover .mark .r1, .brand:focus-visible .mark .r1 { animation: hw-ring .8s cubic-bezier(.2,.7,.3,1) both; }
  .brand:hover .mark .r2, .brand:focus-visible .mark .r2 { animation: hw-ring2 .8s .1s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes hw-drop { from { transform: translateY(-9px) scaleY(1.1); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes hw-ring { from { transform: scale(.25); opacity: 0; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes hw-fade { from { opacity: 0; } to { opacity: .42; } }
@keyframes hw-ring2 { from { transform: scale(.25); opacity: 0; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 46px; height: 46px; flex: none; overflow: visible; }
.svgdefs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark .r1, .mark .r2, .mark .drop { transform-box: fill-box; }
.mark .drop { transform-origin: center bottom; }
.mark .r1, .mark .r2 { transform-origin: center; }
.wm { display: grid; gap: 4px; line-height: 1; }
.wm b { font: 750 23px/1 var(--display); letter-spacing: -0.02em; background: linear-gradient(180deg, #FFFFFF 15%, #BFD0DB 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm span { font: 500 10px/1 var(--mono); letter-spacing: .4em; color: var(--muted); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10, 22, 38, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 14px max(20px, env(safe-area-inset-right, 0px)) 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.links { display: flex; gap: 26px; margin-right: auto; margin-left: 18px; }
.links a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: #C9D6DE; }
.links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; }

/* Hero + world */
.hero { position: relative; min-height: clamp(640px, 88vh, 940px); overflow: hidden; isolation: isolate; background: var(--bg); }
.world-stage { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero.ready .world-stage { opacity: 1; }
.world-stage canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.hero.dragging .world-stage canvas { cursor: grabbing; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 22, 38, .92) 26%, rgba(10, 22, 38, .35) 46%, rgba(10, 22, 38, 0) 60%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 22, 38, 0) 18%); transition: opacity .6s; }
.hero.zoomed::before { opacity: .55; }
.hero-wrap { position: relative; z-index: 3; max-width: 1240px; margin: 0 auto; padding: clamp(64px, 11vh, 120px) max(20px, env(safe-area-inset-right, 0px)) 120px var(--gutter); pointer-events: none; }
.hero-copy { max-width: 560px; pointer-events: auto; transition: opacity .5s, transform .5s; }
.hero.zoomed .hero-copy { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: .98; letter-spacing: -0.035em; font-weight: 800; margin: 20px 0 24px; }
.hero h1 span { display: block; color: var(--current); }
.hero .lede { color: #B5C6D2; font-size: 18.5px; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-proof li::before { content: "✓"; color: var(--current); margin-right: 7px; font-weight: 700; }
.world-hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 0; padding: 0; border: 0; background: none; color: #F2F7F8; cursor: pointer; transition: opacity .35s; will-change: transform; }
.hs-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--current); border: 3px solid #07101D; box-shadow: 0 0 0 0 rgba(95, 224, 195, .6); animation: ping 2.4s ease-out infinite; flex: none; }
.hs-label { margin: -9px 0 0 10px; background: rgba(7, 16, 29, .86); border: 1px solid rgba(95, 224, 195, .32); border-radius: 999px; padding: 6px 12px; font: 600 12.5px/1 var(--body); white-space: nowrap; backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.hs:hover .hs-label, .hs:focus-visible .hs-label { border-color: var(--current); background: rgba(10, 30, 44, .95); }
.hs:hover .hs-dot { background: #fff; }
.hs:focus-visible { outline: none; }
.hs:focus-visible .hs-dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, .7); }
.hero.zoomed .hs { opacity: 0 !important; pointer-events: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95, 224, 195, .55); } 80%, 100% { box-shadow: 0 0 0 16px rgba(95, 224, 195, 0); } }
.world-hint { position: absolute; z-index: 3; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 26px; display: flex; gap: 18px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; transition: opacity .4s; }
.world-hint span::before { content: "·"; margin-right: 8px; color: var(--current); }
.hero.zoomed .world-hint { opacity: 0; }

.zone-card { position: absolute; z-index: 4; left: max(var(--gutter), calc((100vw - 1240px) / 2 + 20px)); top: 50%; transform: translateY(-50%); width: min(380px, calc(100% - 40px)); background: rgba(10, 22, 38, .94); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); animation: cardIn .45s ease both; }
.zone-card[hidden] { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translate(-16px, -50%); } }
.zc-top { display: flex; justify-content: space-between; align-items: center; }
.zc-place { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--current); }
.zc-close { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer; }
.zc-title { font-size: 28px; line-height: 1.05; }
.zc-text { color: var(--muted); font-size: 15px; }
.zc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.zc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.zc-list b { color: var(--current); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.zc-list li a { display: flex; justify-content: space-between; gap: 12px; width: 100%; color: inherit; text-decoration: none; }
.zc-list li a:hover b, .zc-list li a:focus-visible b { color: var(--fg); }
.zc-next { background: none; border: 0; padding: 0; color: var(--muted); font: 500 13.5px var(--body); text-align: left; cursor: pointer; }
.zc-next:hover { color: var(--fg); }
.zc-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.zc-ctas .btn { flex: 1 1 140px; }
.zc-ctas .btn[hidden] { display: none; }
.no-webgl .world-stage, .no-webgl .world-hint, .no-webgl .world-hotspots { display: none; }

/* Carriers */
.carriers { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.carriers-in { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding-block: 28px; }
.carriers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.carriers li { font: 700 19px/1 var(--display); letter-spacing: -0.01em; color: #8EA3B3; }

/* Story chapters */
.story { position: relative; padding-block: 120px 40px; display: grid; gap: 140px; }
.story::before { content: ""; position: absolute; top: 120px; bottom: 40px; left: 50%; width: 1px; background: linear-gradient(var(--line), var(--line) 85%, transparent); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 24px; position: relative; scroll-margin-top: 90px; }
.chapter:nth-child(even) .ch-copy { order: 3; }
.chapter:nth-child(even) .panel { order: 1; }
.chapter:nth-child(even) .ch-node { order: 2; }
.ch-copy { display: grid; gap: 18px; align-content: start; max-width: 540px; }
.chapter:nth-child(odd) .ch-copy { justify-self: end; padding-right: 24px; }
.chapter:nth-child(even) .ch-copy { padding-left: 24px; }
.tag { justify-self: start; font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--current); border: 1px solid rgba(95, 224, 195, .45); padding: 7px 10px; border-radius: 4px; }
.chapter h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.04; }
.chapter h2 em, .cta-band h2 em { font-style: normal; color: var(--current); }
.points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; }
.points li::before { content: ""; grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--current-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%235FE0C3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border: 1px solid rgba(95, 224, 195, .3); }
.points b { font-weight: 650; font-size: 15.5px; }
.points span { color: var(--muted); font-size: 14.5px; }
.points.tight { gap: 12px; margin-top: 22px; }
.more { color: var(--current); font-weight: 650; font-size: 14.5px; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.ch-node { justify-self: center; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font: 600 12px/1 var(--mono); color: var(--muted); transition: background .4s, color .4s, border-color .4s, box-shadow .4s; position: relative; z-index: 1; }
.chapter.in .ch-node { background: var(--current); color: #062019; border-color: var(--current); box-shadow: 0 0 0 8px rgba(95, 224, 195, .12); }

/* Panels */
.panel { background: linear-gradient(180deg, #0F2338, #0C1C2F); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px 22px; position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); max-width: 540px; width: 100%; }
.chapter:nth-child(even) .panel { justify-self: end; }
.panel-bar { display: flex; align-items: center; gap: 6px; margin: 0 -22px 20px; padding: 13px 22px; border-bottom: 1px solid var(--line-soft); font: 500 11.5px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.panel-bar span { margin-right: auto; }
.panel-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.panel-note { margin-top: 16px; font: 400 11.5px/1.5 var(--mono); color: var(--muted); }

/* award demo */
.award { display: grid; gap: 8px; }
.aw-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(10, 22, 38, .6); opacity: .38; transform: translateY(4px); transition: opacity .45s, transform .45s, border-color .45s; }
.aw-row.on { opacity: 1; transform: none; border-color: rgba(95, 224, 195, .35); }
.aw-row b { display: block; font-weight: 650; font-size: 14.5px; }
.aw-row small { color: var(--muted); font-size: 12.5px; }
.aw-row em { font: 600 12.5px/1 var(--mono); font-style: normal; color: var(--current); }
.aw-ic { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); transition: background .35s, border-color .35s; background-position: center; background-repeat: no-repeat; background-size: 14px; }
.aw-row.on .aw-ic { border-color: var(--current); background-color: var(--current); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23062019' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.aw-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 2px; opacity: .3; transition: opacity .45s; }
.aw-total.on { opacity: 1; }
.aw-total span { color: var(--muted); font-size: 13.5px; }
.aw-total b { font: 800 30px/1 var(--display); color: var(--current); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.aw-track { position: relative; height: 4px; background: var(--line-soft); border-radius: 4px; margin: 22px 6px 10px; }
.aw-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--current); border-radius: 4px; transition: width .7s ease; }
.aw-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--current); box-shadow: 0 0 0 5px rgba(95, 224, 195, .2); transition: left .7s ease; }
.aw-labels { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.aw-stamp { position: absolute; right: 22px; top: 62px; border: 2.5px solid var(--current); color: var(--current); font: 700 13px/1 var(--mono); letter-spacing: .22em; padding: 10px 12px; border-radius: 6px; transform: rotate(-12deg) scale(1.6); opacity: 0; transition: opacity .3s, transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.panel.stamped .aw-stamp { opacity: .95; transform: rotate(-12deg) scale(1); }

/* capacity demo */
.cap-stages { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.cap-stages button { font: 600 12.5px/1 var(--body); padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.cap-stages button.on { border-color: var(--current); color: var(--current); background: var(--current-soft); }
.cap-row { display: grid; gap: 9px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.cap-lbl { display: flex; justify-content: space-between; font-size: 14px; }
.cap-lbl span { color: var(--muted); }
.cap-lbl b { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.cap-bar { height: 10px; background: rgba(10, 22, 38, .8); border: 1px solid var(--line-soft); border-radius: 999px; overflow: hidden; }
.cap-bar span { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--copper), var(--copper-hi)); border-radius: 999px; transition: width .9s cubic-bezier(.3, .8, .3, 1); }
.cap-bar span[data-bar="agg"] { background: linear-gradient(90deg, #2b8d78, var(--current)); }
.cap-pips { display: flex; gap: 6px; }
.cap-pips i { width: 26px; height: 10px; border-radius: 3px; background: var(--line-soft); transition: background .4s; }
.cap-pips i.on { background: var(--current); }

/* search demo */
.srch { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(10, 22, 38, .8); border-radius: 10px; padding: 13px 14px; font-size: 15px; min-height: 48px; }
.srch-ic { width: 15px; height: 15px; border: 2px solid var(--muted); border-radius: 50%; position: relative; flex: none; }
.srch-ic::after { content: ""; position: absolute; width: 6px; height: 2px; background: var(--muted); right: -6px; bottom: -3px; transform: rotate(45deg); }
.caret { width: 2px; height: 18px; background: var(--current); animation: blink 1s steps(1) infinite; margin-left: -8px; }
@keyframes blink { 50% { opacity: 0; } }
.srch-res { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.srch-res li, .srch-ok { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(10, 22, 38, .5); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.srch-res li b { display: block; font-size: 14.5px; font-weight: 650; }
.srch-res li small { color: var(--muted); font-size: 12.5px; }
.srch-res li em { font: 600 12.5px/1 var(--mono); font-style: normal; color: var(--current); white-space: nowrap; }
.srch-res li:first-child { border-color: rgba(95, 224, 195, .4); }
.srch-ok { margin-top: 12px; background: var(--current-soft); border-color: rgba(95, 224, 195, .4); font-size: 14px; }
.srch-ok span { color: var(--current); font-weight: 650; }
.srch-ok b { font-weight: 600; }
[data-r].on { opacity: 1; transform: none; }

/* court demo */
.chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: c; }
.chk li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); opacity: .4; transition: opacity .4s; }
.chk li:last-child { border-bottom: 0; }
.chk li.on { opacity: 1; }
.chk b { display: block; font-size: 15px; font-weight: 650; }
.chk small { color: var(--muted); font-size: 13px; }
.ck { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line); transition: background .35s, border-color .35s; background-position: center; background-repeat: no-repeat; background-size: 15px; }
.chk li.on .ck { background-color: var(--current); border-color: var(--current); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23062019' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* How it works */
.how { padding-block: 120px; border-top: 1px solid var(--line-soft); background: radial-gradient(1200px 400px at 50% 0%, rgba(95, 224, 195, .06), transparent 70%); }
.how h2 { font-size: clamp(32px, 3.8vw, 48px); margin: 14px 0 48px; max-width: 18ch; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how-steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; background: var(--surface); position: relative; }
.how-steps .n { font: 600 12px/1 var(--mono); color: var(--copper); letter-spacing: .12em; }
.how-steps h3 { font-size: 22px; }
.how-steps p { color: var(--muted); font-size: 15px; }
.how-steps small { font: 500 11.5px/1 var(--mono); color: var(--current); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }

/* Quote */
.quote-sec { padding-block: 120px; border-top: 1px solid var(--line-soft); scroll-margin-top: 70px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
.quote-sec h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.04; margin: 14px 0 18px; }
.calc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; gap: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.calc-tag { position: absolute; top: -12px; right: 22px; background: var(--bg); border: 1px solid var(--current); color: var(--current); font: 600 10.5px/1 var(--mono); letter-spacing: .14em; padding: 7px 10px; }
.calc label { font-weight: 650; font-size: 14px; }
.calc input[type="text"] { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font: 650 22px/1 var(--body); color: var(--fg); font-variant-numeric: tabular-nums; }
.calc input[type="text"]:focus { outline: none; border-color: var(--current); box-shadow: 0 0 0 3px rgba(95, 224, 195, .25); }
.calc input[type="range"] { width: 100%; accent-color: var(--current); margin: 6px 0 0; }
.calc-scale { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--muted); }
.calc-out { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; border: 1px solid rgba(95, 224, 195, .3); background: var(--current-soft); border-radius: 12px; margin-top: 6px; flex-wrap: wrap; }
.calc-out span { font-weight: 650; font-size: 14.5px; display: block; }
.calc-out small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.calc-out .r { text-align: right; }
.calc-out strong { display: block; font: 800 38px/1 var(--display); color: var(--current); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.assure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.assure li::before { content: "✓ "; color: var(--current); }

/* Browse */
.browse { padding-block: 120px; border-top: 1px solid var(--line-soft); background: var(--bg-2); scroll-margin-top: 70px; }
.browse-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.browse h2 { font-size: clamp(32px, 3.8vw, 48px); margin-top: 14px; }
.state-pick { display: grid; gap: 6px; }
.state-pick label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.state-pick select { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 40px 12px 14px; font: 600 15px var(--body); min-width: 220px; }
.dir { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.dir h3 { font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dir ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dir a { text-decoration: none; color: #C3D1DA; font-size: 14.5px; }
.dir a:hover { color: var(--current); }
.dir-note { margin-top: 40px; color: var(--muted); }
.dir-note a { color: var(--current); }

/* FAQ */
.faq { padding-block: 120px; border-top: 1px solid var(--line-soft); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; }
.faq h2 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 14px; max-width: 14ch; scroll-margin-top: 90px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary { cursor: pointer; font: 650 18px/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--current); font: 400 24px/1 var(--body); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--muted); margin-top: 12px; max-width: 64ch; }

/* CTA band */
.cta-band { padding-block: 100px; border-top: 1px solid var(--line-soft); background: radial-gradient(900px 300px at 20% 100%, rgba(217, 128, 63, .12), transparent 70%), var(--bg-2); scroll-margin-top: 70px; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 56px; }
.cta-copy { display: grid; gap: 4px; align-content: start; }
.assure.left { justify-content: flex-start; margin-top: 20px; font-size: 14px; }
.cta-band p.cta-alt { margin-top: 26px; font-size: 15px; }
.cta-band h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.cta-band p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.foot { border-top: 1px solid var(--line-soft); padding-block: 64px 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand p { color: var(--muted); }
.foot-brand .small { font-size: 13px; max-width: 40ch; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols .fh { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.foot-cols a, .foot-cols span { color: #C3D1DA; text-decoration: none; font-size: 14.5px; }
.foot-cols span { color: var(--muted); }
.foot-cols a:hover { color: var(--current); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }

/* Font preview switch (preview only, remove before launch) */

/* Responsive */
@media (max-width: 1080px) {
  .links { display: none; }
  .dir { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-cta .ghost { display: none; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero::before { display: none; }
  .hs-label { display: none; }
  .hs-dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .hero-wrap { padding-top: 48px; padding-bottom: 0; order: 1; }
  .world-stage { position: relative; inset: auto; height: 400px; order: 2; margin-top: -10px; }
  .world-hotspots { top: auto; bottom: 0; height: 400px; }
  .world-hint { display: none; }
  .hero.zoomed .hero-copy { opacity: 1; transform: none; pointer-events: auto; }
  .zone-card { position: absolute; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; transform: none; padding: 20px; gap: 12px; animation: none; }
  .zc-title { font-size: 23px; }
  .story { gap: 96px; padding-block: 80px 20px; }
  .story::before { left: 23px; }
  .chapter, .chapter:nth-child(even) { grid-template-columns: 46px minmax(0, 1fr); gap: 20px 16px; }
  .chapter .ch-node, .chapter:nth-child(even) .ch-node { order: 0; grid-row: 1; grid-column: 1; align-self: start; }
  .chapter .ch-copy, .chapter:nth-child(even) .ch-copy { order: 1; grid-column: 2; padding: 0; justify-self: start; }
  .chapter .panel, .chapter:nth-child(even) .panel { order: 2; grid-column: 1 / -1; justify-self: stretch; max-width: none; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .quote-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .dir { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .how, .quote-sec, .browse, .faq { padding-block: 80px; }
  }
@media (max-width: 480px) {
  .dir { grid-template-columns: minmax(0, 1fr); }
  .calc { padding: 22px; }
  .calc-out strong { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.text-link { color: var(--current); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(95, 224, 195, .35); }
.text-link:hover { border-bottom-color: var(--current); }
.apply-hint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.apply-hint b { color: var(--current); font-family: var(--mono); font-weight: 600; }

/* Anything marked hidden stays hidden, even when a class sets display */
[hidden] { display: none !important; }

/* ---------- Bond assistant chat (CTA band) ---------- */
.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; }
.hc { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #11263d, var(--surface)); box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04); overflow: hidden; }
.hc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: rgba(10, 22, 38, .55); }
.hc-mark { width: 34px; height: 34px; flex: none; }
.hc-mark.lg { width: 56px; height: 56px; }
.hc-head b { display: block; font: 700 15px/1.2 var(--display); }
.hc-head span { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.hc-head span i { width: 7px; height: 7px; border-radius: 50%; background: var(--current); box-shadow: 0 0 0 3px var(--current-soft); }
.hc-log { height: 340px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.hc-msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.hc-msg.bot { align-self: flex-start; background: #17314d; border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; color: var(--fg); }
.hc-msg.bot strong { color: var(--current); font-weight: 650; }
.hc-msg.user { align-self: flex-end; background: rgba(217, 128, 63, .16); border: 1px solid rgba(217, 128, 63, .45); border-bottom-right-radius: 4px; color: #FBE3CF; }
.hc-typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 15px; border-radius: 14px; background: #17314d; }
.hc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--current); opacity: .35; animation: hcdot 1.1s infinite; }
.hc-typing i:nth-child(2) { animation-delay: .15s; } .hc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hcdot { 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .hc-typing i { animation: none; opacity: .8; } }
.hc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); background: rgba(10, 22, 38, .55); }
.hc-input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 400 15px var(--body); }
.hc-input::placeholder { color: #6E8698; }
.hc-input:focus { outline: none; border-color: var(--current); box-shadow: 0 0 0 3px var(--current-soft); }
.hc-send { height: 46px; padding: 0 18px; }
.hc-send:disabled { opacity: .55; cursor: wait; }
.hc-done { padding: 34px 26px; display: grid; justify-items: center; text-align: center; gap: 10px; }
.hc-done h3 { font-size: 22px; }
.hc-done > p { color: var(--muted); margin: 0; font-size: 15px; }
.hc-upload { width: 100%; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; text-align: left; }
.hc-upload label { font: 650 14.5px/1.3 var(--display); color: var(--current); }
.hc-upload input[type=file] { color: var(--muted); font-size: 13.5px; max-width: 100%; }
.hc-upload .hc-status { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) {
  .cta-in { grid-template-columns: 1fr; gap: 36px; }
  .hc-log { height: 300px; }
}
.popular { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.popular a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(95, 224, 195, .45); text-underline-offset: 3px; }
.popular a:hover { color: var(--current); }

/* ---------- Guide cards (home + guides hub) ---------- */
.guides-home { padding-block: 110px; border-top: 1px solid var(--line-soft); }
.guides-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.guides-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin-top: 14px; max-width: 20ch; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--fg); transition: border-color .18s, transform .18s; }
.guide-card:hover { border-color: var(--current); transform: translateY(-2px); }
.guide-card:focus-visible { outline: 2px solid var(--current); outline-offset: 3px; }
.guide-card .k { font: 500 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--current); }
.guide-card h2, .guide-card h3 { font-size: 22px; line-height: 1.2; }
.guide-card p { color: var(--muted); font-size: 15px; margin: 0; }
.guide-card .go { color: var(--copper-hi); font-weight: 650; font-size: 14.5px; }
@media (max-width: 1020px) { .guide-list { grid-template-columns: 1fr; } .guides-home { padding-block: 72px; } }

/* ---------- Menu button (screens under 1080px) ---------- */
.menu-btn { display: none; width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: rgba(15, 33, 54, .6); cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .2s, opacity .2s; }
.menu-btn:focus-visible { outline: 2px solid var(--current); outline-offset: 2px; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.links .menu-only { display: none; }
@media (max-width: 1080px) {
  .nav-in { position: relative; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav.open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.open .links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); background: var(--bg); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, .55); }
  .nav.open .links a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .nav.open .links a:last-child { border-bottom: 0; }
  .nav.open .links .menu-only { display: block; color: var(--current); }
}
@media (max-width: 520px) {
  .nav-in { gap: 10px; }
  .nav-cta .btn.sm { padding: 10px 12px; }
  .wm b { font-size: 20px; }
  .mark { width: 40px; height: 40px; }
}

/* ---------- Who's behind Headwater ---------- */
.behind { padding-block: 110px; border-top: 1px solid var(--line-soft); }
.behind-in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1000px; }
.behind-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(217, 128, 63, .45); box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 0 0 6px rgba(217, 128, 63, .08); }
.behind-copy h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin: 14px 0 18px; }
.behind-copy p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 14px; max-width: 58ch; }
.behind-copy .behind-sig { display: grid; gap: 4px; margin: 22px 0 18px; }
.behind-sig b { color: var(--fg); font: 700 19px/1.2 var(--display); }
.behind-sig span { font: 500 11.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--current); }
.foot-brand .small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .behind { padding-block: 72px; }
  .behind-in { grid-template-columns: 1fr; gap: 28px; }
  .behind-photo { max-width: 240px; }
}
