/* 757 Bitcoin by Machamer Consulting
 * One stylesheet. Values measured from the Squarespace site on 2026-10-10
 * (see ../../DESIGN_TOKENS.md) and rebuilt by hand; no Squarespace code.
 * Contrast rule: text on orange is navy or black, never white (2.13:1). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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: "Raleway";
  src: url("/fonts/raleway-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Raleway";
  src: url("/fonts/raleway-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  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;
}

/* Metric-matched fallbacks: Arial scaled to the web fonts' width and
   vertical metrics (measured 2026-10-10), so nothing moves when the real
   fonts finish loading (layout shift). */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 109.24%;
  ascent-override: 89.71%;
  descent-override: 26.55%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Raleway Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 104.63%;
  ascent-override: 89.84%;
  descent-override: 21.98%;
  line-gap-override: 0%;
}

:root {
  --orange: #F3A012;
  --amber: #A85F00;        /* white text on this passes (4.88:1) */
  --navy: #000064;
  --light: #EAEAEE;
  --cream: #FCDFAB;
  --white: #FFFFFF;
  --black: #000000;
  --ink: #111118;
  --muted: #3D3D55;
  --rule: #D4D4DE;
  --ok: #1E6B3A;
  --err: #9B1C1C;

  --display: "Space Grotesk", "Space Grotesk Fallback", "Segoe UI", Arial, sans-serif;
  --body: "Raleway", "Raleway Fallback", "Segoe UI", Arial, sans-serif;

  --radius: 6.4px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(56px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem);
  line-height: 1.7;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.t-bright :focus-visible, .btn-orange:focus-visible { outline-color: var(--navy); }
p, ul, ol, h1, h2, h3, h4, figure, blockquote { margin: 0; }
strong { font-weight: 700; }

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.7rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h3 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); }
h4 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); }
.lede { font-family: var(--display); font-size: clamp(1.3rem, 1.05rem + 1vw, 2rem); line-height: 1.3; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 68ch; display: grid; gap: 1.1em; }
.center { text-align: center; }
.center .prose, .prose.center, .wrap > .prose, .bright-body > .prose { margin-inline: auto; }
.center-row { justify-content: center; }
.statement { font-family: var(--display); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.3; }
.stack { display: grid; gap: 1.25rem; align-content: start; }
.stack-lg { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem); align-content: start; }

/* Buttons: radius and type from the original; text on orange is navy. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.95em 1.6em; border-radius: var(--radius); border: 2px solid transparent;
  background: var(--navy); color: var(--white); text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { background: var(--white); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: block; flex: 0 1 300px; min-width: 0; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-family: var(--body); font-size: 1rem; }
.nav ul { list-style: none; padding: 0; display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { padding: 0.7em 1.3em; font-size: 0.85rem; letter-spacing: .04em; text-transform: none; border-bottom: 0; color: var(--white); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .js .menu-btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0;
  }
  .menu-btn svg { width: 30px; height: 30px; }
  .site-header .wrap { flex-wrap: wrap; }
  .brand { flex: 1 1 0; max-width: 290px; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--rule); font-family: var(--display); font-size: 1.35rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--navy); font-weight: 700; }
  .nav .btn { margin-top: 16px; padding: 1em; font-size: 1rem; }
  .js .nav { display: none; }
  .js .site-header.open .nav { display: flex; padding-bottom: 20px; }
}

/* Section themes: the original's white / light / bright / dark / black */
.sec { position: relative; padding-block: var(--section-y); }
.t-white { background: var(--white); color: var(--ink); }
.t-light { background: var(--light); color: var(--ink); }
.t-bright { background: var(--orange); color: var(--navy); }
.t-bright a:not(.btn) { color: var(--navy); }
.t-dark { background: var(--navy); color: var(--white); }
.t-dark a:not(.btn) { color: var(--orange); }
.t-dark h1, .t-dark h2, .t-dark h3, .t-dark h4 { color: var(--white); }
.t-black { background: #03041a; color: var(--white); }

/* Curved section edges. The wave sits at the bottom of a section and is
   painted in the NEXT section's color via the to-* class. */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(28px, 5vw, 72px); line-height: 0; pointer-events: none; }
.wave svg { width: 100%; height: 100%; }
.wave path { fill: currentColor; }
.to-white { color: var(--white); } .to-light { color: var(--light); } .to-navy { color: var(--navy); } .to-orange { color: var(--orange); }

/* Hero */
.hero { padding: 0; overflow: hidden; }
.hero-art { height: clamp(320px, 52vw, 640px); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* Phone card (bright section) */
.card-cream { background: var(--cream); color: var(--navy); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px); text-align: center; display: grid; gap: 14px; }
.phone-big { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.9rem); line-height: 1; color: var(--black); text-decoration: none; letter-spacing: -0.01em; }
a.phone-big:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.brandline { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.7rem); color: var(--black); }
.brandline b { color: var(--amber); font-weight: 600; }
.tagline { font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); color: var(--amber); }
.bright-body { display: grid; gap: clamp(24px, 4vw, 40px); }
.callout { background: rgba(255,255,255,.55); border-radius: var(--radius); padding: 18px 20px; }
.disclaim { font-size: 0.92rem; line-height: 1.55; display: grid; gap: .5em; }
.disclaim-title { font-family: var(--display); font-weight: 600; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid currentColor; padding-block: 14px; }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 48s linear infinite; }
.marquee-item { font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2.1rem); white-space: nowrap; }
.marquee-item::after { content: "\301C"; margin-left: 3rem; }
.sec .marquee-wrap { margin-top: clamp(40px, 6vw, 72px); }
.marquee-wrap + .wrap { margin-top: clamp(48px, 7vw, 96px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .marquee-item { white-space: normal; text-align: center; }
  .marquee-item::after { content: none; }
  .marquee-track .dup { display: none; }
}

/* Topic rows (Learn) on navy */
.topics { display: grid; gap: clamp(48px, 7vw, 96px); }
.topic { display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; grid-template-columns: minmax(0, 1fr); scroll-margin-top: 24px; }
@media (min-width: 820px) {
  .topic { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .topic:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .topic:nth-child(even) .topic-art { order: 2; }
}
.topic-art { aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; border-radius: var(--radius); background: var(--orange); color: var(--navy); display: grid; place-items: center; }
.topic-art svg { width: 46%; height: auto; }
.topic-body { display: grid; gap: 1rem; min-width: 0; }
.topic-body ul, .topic-body ol { padding-left: 1.2em; display: grid; gap: .45em; }
.t-dark .topic-body li::marker { color: var(--orange); }
.topic-body blockquote { border-left: 4px solid var(--orange); padding-left: 1rem; font-style: italic; }
.topic-cards { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.topic-cards a, .t-dark .topic-cards a { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.07); color: var(--white); text-decoration: none; font-family: var(--display); font-size: 1.1rem; line-height: 1.25; height: 100%; }
.topic-cards a:hover { background: rgba(255,255,255,.14); }
.topic-cards .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; }
.topic-cards .ic svg { width: 24px; height: 24px; }

/* Page header band for inner pages */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.page-head .prose { gap: .8em; }

/* Two-column helper */
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split.even { grid-template-columns: 1fr 1fr; } }

/* Services */
.svc-list { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.svc { background: var(--white); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; border-top: 4px solid var(--orange); }
.svc h3 { font-size: 1.35rem; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 600; font-size: 1.3rem; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--navy); }
.steps b { font-family: var(--display); font-weight: 600; display: block; font-size: 1.2rem; }

/* Events */
.events { display: grid; gap: 16px; min-height: 120px; align-content: start; }
.event { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); border-left: 6px solid var(--orange); text-align: left; }
@media (min-width: 720px) { .event { grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 20px; } }
.event-date { font-family: var(--display); line-height: 1.05; color: var(--navy); }
.event-date .m { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; display: block; }
.event-date .d { font-size: 2.6rem; font-weight: 600; display: block; }
.event-body { display: grid; gap: 6px; min-width: 0; }
.event h3 { font-size: 1.35rem; }
.event .meta { font-size: .95rem; color: var(--muted); }
.event .badge { font-family: var(--display); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; background: var(--cream); color: var(--navy); padding: 2px 8px; border-radius: 99px; justify-self: start; }
.events-empty { background: var(--white); border-radius: var(--radius); padding: 22px 24px; text-align: left; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 1rem; font-weight: 600; }
.field .opt { font-weight: 500; color: var(--muted); font-size: .9em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #8C8CA3; border-radius: 4px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-box { align-self: start; min-width: 0; }
.form[hidden], .form-error[hidden] { display: none; }
.form-error { color: var(--err); font-weight: 600; margin: 0; }
.form-notice { font-size: .88rem; color: var(--muted); margin: 0; }
.form-done { text-align: center; display: grid; justify-items: center; gap: 10px; }
.form-done[hidden] { display: none; }
.form-done svg { width: 52px; height: 52px; fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { margin: 0; }
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.form .fine { font-size: .9rem; color: var(--muted); }
.cf-turnstile { min-height: 65px; }

/* Contact block */
.contact-lines { display: grid; gap: 14px; }
.contact-lines dt { font-family: var(--display); font-weight: 600; }
.contact-lines dd { margin: 0; }
.notice { border: 2px solid var(--navy); border-radius: var(--radius); padding: 18px 20px; background: var(--white); color: var(--ink); display: grid; gap: 8px; }
.notice h2, .notice h3 { font-size: 1.2rem; color: var(--navy); }


/* Placeholder figure (headshot etc.) */
.ph { aspect-ratio: 4 / 5; max-width: 380px; width: 100%; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--light) 0 14px, #DEDEE6 14px 28px); color: var(--muted); display: grid; place-items: center; text-align: center; padding: 20px; font-family: var(--display); }

/* Legal / long text pages */
.doc { max-width: 72ch; display: grid; gap: 1.1em; }
.doc h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: .8em; }
.doc ul { padding-left: 1.2em; display: grid; gap: .4em; }
.doc .updated { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--light); color: var(--ink); padding-block: clamp(48px, 6vw, 80px) 28px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.foot-tag { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.15; max-width: 22ch; }
.foot-small { font-size: .92rem; line-height: 1.6; display: grid; gap: .6em; max-width: 70ch; }
.foot-logo { max-width: 340px; justify-self: start; }
@media (min-width: 900px) { .foot-logo { justify-self: end; } }
.foot-links { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; justify-content: space-between; }
.foot-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ==================================================================
   Depth (upgrade 2026-10-10): gradient light, a faint network texture
   that echoes the hero, layered shadows, raised buttons.
   Contrast holds at both ends of every gradient:
     navy text on #F8B84A..#E08700  >= 6.6:1
     white text on #14149C..#00003F >= 14:1
     amber TEXT uses #8A4E00 on cream/white (5.1:1), never #A85F00.
   Section gradients keep a uniform top edge so the wave from the
   section above (painted in that top color) meets it without a seam.
   ================================================================== */
:root {
  --orange-hi: #F8B84A;
  --orange-lo: #E08700;
  --navy-hi: #14149C;
  --navy-lo: #00003F;
  --light-hi: #F5F5F9;
  --light-lo: #E4E4EC;
  --cream-hi: #FFF4DF;
  --amber-ink: #8A4E00;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 40, .08), 0 2px 6px rgba(0, 0, 40, .06);
  --shadow-md: 0 2px 4px rgba(0, 0, 40, .06), 0 12px 28px rgba(0, 0, 60, .11);
  --shadow-lg: 0 6px 12px rgba(0, 0, 40, .10), 0 28px 56px rgba(0, 0, 60, .20);
  --net-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M22 34L96 76L170 44L238 98M96 76L74 158L150 204L216 170L238 98M74 158L20 214M150 204L170 260M170 44L150 0M216 170L260 196M0 120L22 34'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.14'%3E%3Ccircle cx='22' cy='34' r='2'/%3E%3Ccircle cx='96' cy='76' r='2.6'/%3E%3Ccircle cx='170' cy='44' r='2'/%3E%3Ccircle cx='238' cy='98' r='2.6'/%3E%3Ccircle cx='74' cy='158' r='2'/%3E%3Ccircle cx='150' cy='204' r='2.6'/%3E%3Ccircle cx='216' cy='170' r='2'/%3E%3Ccircle cx='20' cy='214' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --net-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23000064' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M22 34L96 76L170 44L238 98M96 76L74 158L150 204L216 170L238 98M74 158L20 214M150 204L170 260M170 44L150 0M216 170L260 196M0 120L22 34'/%3E%3C/g%3E%3Cg fill='%23000064' fill-opacity='.10'%3E%3Ccircle cx='22' cy='34' r='2'/%3E%3Ccircle cx='96' cy='76' r='2.6'/%3E%3Ccircle cx='170' cy='44' r='2'/%3E%3Ccircle cx='238' cy='98' r='2.6'/%3E%3Ccircle cx='74' cy='158' r='2'/%3E%3Ccircle cx='150' cy='204' r='2.6'/%3E%3Ccircle cx='216' cy='170' r='2'/%3E%3Ccircle cx='20' cy='214' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Sections */
.t-white { background: radial-gradient(70% 60% at 50% 0%, rgba(243, 160, 18, .07), transparent 70%), var(--white); }
.t-light { background: linear-gradient(180deg, var(--light-hi) 0%, var(--light) 55%, var(--light-lo) 100%); }
.t-bright {
  background:
    var(--net-navy),
    radial-gradient(60% 55% at 82% 45%, rgba(255, 255, 255, .26), transparent 70%),
    linear-gradient(180deg, var(--orange-hi) 0%, var(--orange) 45%, var(--orange-lo) 100%);
  background-color: var(--orange);
}
.t-dark {
  background:
    var(--net-light),
    radial-gradient(55% 45% at 18% 40%, rgba(70, 90, 255, .28), transparent 70%),
    radial-gradient(50% 45% at 92% 100%, rgba(243, 160, 18, .14), transparent 70%),
    linear-gradient(180deg, var(--navy-hi) 0%, var(--navy) 40%, var(--navy-lo) 100%);
  background-color: var(--navy);
}
.to-white { color: var(--white); }
.to-light { color: var(--light-hi); }
.to-navy { color: var(--navy-hi); }
.to-orange { color: var(--orange-hi); }

/* Headings: gold sheen on navy, an accent bar under centered section titles */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .t-dark h1, .t-dark h2 {
    background: linear-gradient(180deg, #FFFFFF 35%, #FFE2A0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
/* Title underline: the site's wave (section dividers, slogan separator),
   repeated along the full length of the title. js/site.js sizeTitleWaves()
   measures each title's longest line and sets --tw; without JS it falls back
   to a short wave. Drawn as a mask over a gradient, centered so both ends
   stop at the same point of the wave. */
:root { --title-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M-24 7 C -18 14, -6 14, 0 7 C 6 0, 18 0, 24 7 C 30 14, 42 14, 48 7 C 54 0, 66 0, 72 7' fill='none' stroke='%23000' stroke-width='3.2'/%3E%3C/svg%3E"); }
.page-head h1::after,
#about h1::after,
.sec h2:not(.topic-body h2):not(.doc h2):not(.notice h2):not(.svc h2)::after {
  content: "";
  display: block;
  width: var(--tw, 2.6em);
  max-width: 100%;
  height: clamp(10px, 0.24em, 17px);
  margin-top: 0.3em;
  background: linear-gradient(90deg, var(--orange-hi), var(--orange-lo));
  -webkit-mask: var(--title-wave) repeat-x center / auto 100%;
  mask: var(--title-wave) repeat-x center / auto 100%;
}
.center h2::after, h2.center::after, .page-head h1::after, #about h1::after { margin-inline: auto; }
.t-bright h1::after, .t-bright h2::after { background: linear-gradient(90deg, var(--navy-hi), var(--navy)); }
.t-dark h1::after, .t-dark h2::after { background: linear-gradient(90deg, #FFD27A, var(--orange)); }

/* Header: stays in reach on long pages */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 60, .06), 0 8px 22px rgba(0, 0, 60, .07);
}
[id] { scroll-margin-top: 104px; }

/* Buttons */
.btn {
  background: linear-gradient(180deg, var(--navy-hi), var(--navy));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 16px rgba(0, 0, 100, .26);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { filter: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 22px rgba(0, 0, 100, .32); }
.btn-orange {
  background: linear-gradient(180deg, #FAC45E, var(--orange) 55%, #E99600);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 16px rgba(170, 95, 0, .30);
}
.btn-orange:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 22px rgba(170, 95, 0, .36); }
.btn-white {
  background: linear-gradient(180deg, #FFFFFF, #EEEEF5);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 6px 16px rgba(0, 0, 40, .16);
}
.btn-ghost { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .topic-cards a, .topic-cards a:hover { transition: none; transform: none; } }

/* Phone card */
.card-cream {
  background: linear-gradient(180deg, var(--cream-hi), var(--cream));
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--shadow-lg);
}
.brandline b, .tagline { color: var(--amber-ink); }
.callout { background: rgba(255, 255, 255, .6); border-radius: 10px; box-shadow: var(--shadow-sm); }

/* Cards and panels */
.svc { border-top: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); position: relative; overflow: hidden; padding-top: 28px; }
.svc::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orange-hi), var(--orange-lo)); }
.event, .events-empty, .notice { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.notice { border: 0; border-left: 5px solid var(--navy); }
.form, .form-done { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(20px, 3vw, 34px); align-self: start; }
.field input, .field select, .field textarea { border-radius: 8px; border-color: #A9A9BE; box-shadow: inset 0 1px 2px rgba(0, 0, 40, .06); }
.steps li::before { background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); box-shadow: 0 4px 10px rgba(170, 95, 0, .28); }
.ph { border-radius: var(--radius-lg); }

/* Marquee bands */
.t-bright .marquee { background: rgba(0, 0, 100, .06); border-color: rgba(0, 0, 100, .22); }
.t-dark .marquee { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .18); }

/* Hero photo */
.hero-art { position: relative; height: clamp(300px, 46vw, 640px); }
.hero-art picture, .hero-art img { width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 50% 50%; }
.hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 50% 45%, transparent 55%, rgba(3, 4, 26, .45) 100%); }

/* Learn images */
/* place-items: normal clears the old icon-tile centering, which made the frame shrink to zero until the image loaded (layout shift). */
.topic-art { background: none; aspect-ratio: auto; display: block; place-items: normal; width: 100%; max-width: 420px; }
.topic-art picture {
  display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-lo);
  box-shadow: 0 0 0 3px rgba(243, 160, 18, .9), 0 24px 48px rgba(0, 0, 0, .45);
}
.topic-art img { width: 100%; height: 100%; object-fit: cover; }
.topic-art.top img { object-position: 50% 0%; }
.topic-art.contain picture { background: var(--white); }
.topic-art.contain img { object-fit: contain; padding: 12px; }
.topic-art.small img { object-fit: scale-down; }
.topic-art figcaption { margin-top: 14px; font-size: .85rem; text-align: center; color: rgba(255, 255, 255, .78); }

/* Learn topic cards (home) and the jump list (Learn page) */
.topic-cards a, .t-dark .topic-cards a {
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 24px rgba(0, 0, 20, .25);
  grid-template-columns: 58px minmax(0, 1fr);
  transition: transform .15s ease, background .15s ease;
}
.topic-cards a:hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); }
.topic-cards .thumb { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--orange), 0 4px 10px rgba(0, 0, 0, .35); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; }
.chips a, .t-dark .chips a:not(.btn) {
  display: inline-block; padding: 8px 16px; border-radius: 99px; text-decoration: none; font-family: var(--display); font-size: .95rem;
  color: var(--white); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
}
.chips a:hover { background: rgba(255, 255, 255, .16); }

/* About image */
.bio-art { max-width: 420px; width: 100%; }
.bio-art img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--light-hi) 0%, var(--light-lo) 100%);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--orange-hi), var(--orange-lo)) 1;
}

/* Polish (2026-10-10, pass 2) */
p, li { text-wrap: pretty; }
.prose .lead { font-size: 1.16em; line-height: 1.6; color: var(--ink); }
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(84px, 11vw, 136px); }
.page-head .lede { color: rgba(255, 255, 255, .92); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none;
  font-family: var(--display); font-weight: 600; color: var(--navy);
}
.nav-phone svg { width: 18px; height: 18px; }
.nav .nav-phone { border-bottom: 0; }
@media (min-width: 861px) and (max-width: 1100px) { .nav-phone { display: none; } }
@media (max-width: 860px) {
  .nav .nav-phone { display: flex; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--rule); font-size: 1.35rem; }
}

/* Wave marquee (site.js waveMarquee): the slogan flows along a curve, as on
   the old site. With JS the plain CSS marquee is hidden at once and the space
   is reserved, so swapping in the SVG doesn't move the page. */
.marquee-wrap { --wm-h: clamp(64px, 6vw, 84px); }
.t-bright .marquee-wrap { color: var(--navy); }
.t-dark .marquee-wrap { color: var(--white); }
.js .marquee-wrap[data-wave] { position: relative; min-height: var(--wm-h); }
.js .marquee-wrap[data-wave] .marquee { display: none; }
.wm-svg { display: block; width: 100%; height: var(--wm-h); overflow: visible; }
.wm-svg text { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.6rem); letter-spacing: -0.03em; fill: currentColor; }
.wm-toggle {
  position: absolute; right: var(--gutter); bottom: -14px; width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor;
  background: transparent; color: inherit; opacity: .6; cursor: pointer;
}
.wm-toggle:hover, .wm-toggle:focus-visible { opacity: 1; }
.wm-toggle[hidden] { display: none; }
.wm-toggle::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.wm-toggle[data-state="paused"]::before {
  width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}

/* Review marks are inert outside preview (review.css styles them there). */
mark.rv { background: none; color: inherit; }

/* ==================================================================
   Growth chart (2026-10-11): replaces the CoinGecko widget on the home
   page. Drawn by js/growth.js as inline SVG; these are its styles. Every
   control is at least 44 px tall and no text is below 1rem.
   ================================================================== */
.statements { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.growth { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(18px, 3vw, 32px); display: grid; gap: 22px; min-width: 0; }
.gc-live { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin: 0; }
.gc-controls { display: grid; gap: 14px; }
.gc-group { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 16px 14px; margin: 0; min-width: 0; }
.gc-group legend { font-family: var(--display); font-weight: 600; padding: 0 6px; }
.gc-buttons, .gc-checks, .gc-amounts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.gc-pill { font: 600 1rem/1.2 var(--display); min-height: 44px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.gc-pill[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.gc-date { display: inline-flex; align-items: center; gap: 8px; }
.gc-controls input[type="number"], .gc-controls input[type="date"], .gc-controls select { font: inherit; font-size: 1rem; min-height: 44px; padding: 6px 10px; border: 1px solid #A9A9BE; border-radius: 8px; background: var(--white); color: var(--ink); }
.gc-controls input[type="number"] { width: 7.5em; }
.gc-controls select { max-width: 100%; }
.gc-checks label.gc-wrap { flex-wrap: wrap; }
.gc-money { display: inline-flex; align-items: center; gap: 4px; }
.gc-or { font-family: var(--display); font-weight: 600; }
.gc-checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.gc-checks input[type="checkbox"], .gc-checks input[type="radio"] { width: 22px; height: 22px; accent-color: var(--navy); margin: 0; }
.gc-note { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }
.gc-status { margin: 0; color: var(--muted); }
.gc-figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.gc-chartbox { width: 100%; min-height: 300px; }
.gc-svg { display: block; width: 100%; height: auto; font-family: var(--body); }
.gc-svg:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.gc-grid { stroke: var(--rule); stroke-width: 1; }
.gc-axis { stroke: #A9A9BE; stroke-width: 1; }
.gc-tick { font-size: 13px; fill: var(--muted); }
.gc-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.gc-invested { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
.gc-cursor { stroke: var(--navy); stroke-width: 1; stroke-dasharray: 3 3; }
.gc-readout { margin: 0; min-height: 1.6em; font-size: 1rem; color: var(--ink); }
.gc-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 1rem; }
.gc-legend li { display: inline-flex; align-items: center; gap: 8px; }
.gc-swatch { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.gc-swatch-dash { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 11px); }
.gc-summary { margin: 0; font-size: 1.05rem; }
.gc-tablewrap { overflow-x: auto; }
.gc-table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.gc-table caption { text-align: left; font-family: var(--display); font-weight: 600; padding-bottom: 8px; }
.gc-table th, .gc-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; vertical-align: top; }
.gc-table th[scope="row"], .gc-table thead th:first-child { text-align: left; }
.gc-table thead th { font-family: var(--display); font-weight: 600; border-bottom: 2px solid var(--navy); }
.gc-up { color: var(--ok); }
.gc-down { color: var(--err); }
.gc-details summary { cursor: pointer; font-family: var(--display); font-weight: 600; padding: 8px 0; }
.gc-fine { font-size: 1rem; color: var(--muted); display: grid; gap: .6em; line-height: 1.55; }
.gc-fine strong { color: var(--ink); }
/* Phones: each table row becomes a small card with the column name beside each figure. */
@media (max-width: 600px) {
  .gc-table th, .gc-table td { white-space: normal; }
  .gc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gc-table tbody tr { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .gc-table tbody th { border: 0; padding: 0 0 4px; }
  .gc-table tbody td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 2px 0; }
  .gc-table tbody td::before { content: attr(data-label); color: var(--muted); text-align: left; }
  .gc-table tbody td[colspan] { justify-content: flex-start; text-align: left; }
}

/* Bitcoin price band (2026-10-11): one reading per page load, under the chart */
.price-band .stack { gap: 1rem; }
.price-big { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: 1; letter-spacing: -0.02em; color: var(--white); margin: 0; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .price-big { background: linear-gradient(180deg, #FFFFFF 30%, #FFD27A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.price-meta { font-family: var(--display); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); color: rgba(255, 255, 255, .92); margin: 0; }
.price-note { font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 60ch; margin: 0 auto; }
.price-note a { color: var(--orange); }

/* Price band: the 1-, 5- and 10-year change row and the button */
.price-returns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font-family: var(--display); font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
.price-returns li.gc-up { color: #8FE3A8; }
.price-returns li.gc-down { color: #FFB4A8; }
.price-returns strong { font-weight: 700; }
.price-band .btn-row { margin-top: .5rem; }

/* About: the illustration's credit */
.bio-art figcaption { margin-top: 10px; font-size: 1rem; text-align: center; color: var(--muted); }

/* Charts page (2026-10-11) */
.inbtc { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(18px, 3vw, 32px); display: grid; gap: 22px; min-width: 0; }
.t-dark .inbtc a { color: var(--navy); }
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.quote { background: rgba(255, 255, 255, .6); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; display: grid; gap: 12px; align-content: start; margin: 0; }
.quote p { font-family: var(--display); font-size: 1.15rem; line-height: 1.4; margin: 0; }
.quote footer { font-size: 1rem; color: var(--navy); }
.essay { max-width: 72ch; display: grid; gap: 1.1em; margin-inline: auto; }
.essay h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin-top: .6em; }
.essay ul { padding-left: 1.2em; display: grid; gap: .4em; }
.essay .aside { background: var(--light-hi); border-left: 5px solid var(--orange); border-radius: 10px; padding: 16px 20px; font-size: 1rem; line-height: 1.6; }
.essay .sources { font-size: 1rem; color: var(--muted); }
.keep-list { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.keep { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 26px 24px 24px; display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; }
.keep::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orange-hi), var(--orange-lo)); }
.keep h3 { font-size: 1.35rem; }
.keep .eyebrow { font-family: var(--display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); font-weight: 600; }

/* Charts page: the national debt band (2026-10-11), four figures in a row, baked in at build time */
.debt-band .stack { gap: 1.25rem; }
.debt-list { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.debt { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); padding: 20px 14px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.debt p { margin: 0; }
.debt-nation { font-family: var(--display); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .82); font-weight: 600; }
.debt-amount { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 0.9rem + 1.7vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--white); overflow-wrap: anywhere; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .debt-amount { background: linear-gradient(180deg, #FFFFFF 30%, #FFD27A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.debt-ratio { font-family: var(--display); font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
.debt-q { display: grid; gap: .5rem; margin-top: .75rem; justify-items: center; }
.debt-question { font-family: var(--display); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); color: var(--white); margin: 0; }
.debt-answer { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--orange); margin: 0; max-width: 24ch; text-wrap: balance; }
@media (max-width: 760px) {
  .debt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
