/* The Hemophilia Network website. Mobile first. Tokens first; pages use the names, never raw values.
   Direction and rules: website/DESIGN.md */

@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque-var.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-hyperlegible-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-hyperlegible-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* brand colours (final) */
  --cream: #F6F3E3;
  --navy: #10262F;
  --teal: #1C6E64;
  --red: #C31D21;
  /* roles */
  --ink: var(--navy);
  --muted: #4E6069;          /* secondary text on cream, 6:1 */
  --line: #D6D0B8;           /* hairlines on cream */
  --navy-hover: #1D3B47;
  --teal-soft: #8FCFC3;      /* nodes and lines on navy */
  --on-dark-muted: rgba(246, 243, 227, .8);
  /* type */
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* space (8-based) and shape */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem;
  --gutter: 1rem;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 30em) { :root { --gutter: 1.25rem; } }
@media (min-width: 48em) { :root { --gutter: 2rem; } }
@media (min-width: 75em) { :root { --gutter: 3rem; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.6; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: inherit; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 36em; }
a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.teal :focus-visible, .navy :focus-visible, .menu[open] :focus-visible { outline-color: var(--cream); }
b, strong { font-weight: 700; }

.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 50; padding: .75rem 1rem; background: var(--navy); color: var(--cream); border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: .75rem; }

.wrap { width: 100%; max-width: calc(72rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type scale ---------- */
.display { font-size: clamp(3.1rem, 1.2rem + 9.4vw, 7.25rem); font-weight: 800; line-height: .9; letter-spacing: -.045em; }
.h-big { font-size: clamp(2.375rem, 1.25rem + 5vw, 4.25rem); font-weight: 780; line-height: .96; letter-spacing: -.035em; }
.lead { font-size: 1.25rem; line-height: 1.5; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; border: 0; border-radius: var(--radius); cursor: pointer; text-align: center; line-height: 1.25;
  background: var(--navy); color: var(--cream); font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: -.005em; text-decoration: none;
  transition: background-color .15s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--navy-hover); }
.btn:active { transform: translateY(1px); }
.btn.light { background: var(--cream); color: var(--navy); }
.btn.light:hover { background: #fff; }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; }
.teal .link, .navy .link, .teal a:not(.btn), .navy a:not(.btn) { color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin: var(--s4) 0 0; max-width: none; }

/* ---------- header ---------- */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .625rem; min-height: 44px; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.05; letter-spacing: -.01em; }
.brand span { max-width: 8.5em; }
.brand-mark { flex: none; width: 2.5rem; height: 2.5rem; color: var(--red); } /* the owner wants the red mark here: the brand's one bit of red at the top */
@media (min-width: 30em) { .brand span { max-width: none; } }

.nav-wide { display: none; }
.nav-wide ul { display: flex; align-items: center; gap: .125rem; margin: 0; padding: 0; list-style: none; }
.nav-wide a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .625rem; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; }
.nav-wide a:hover { background: rgba(16, 38, 47, .07); }
.nav-wide a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav-wide a[href="/get-kavach/"] { margin-inline: .375rem; padding: 0 1rem; background: var(--navy); color: var(--cream); }
.nav-wide a[href="/get-kavach/"]:hover { background: var(--navy-hover); }

.menu summary { position: relative; z-index: 31; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.125rem; border: 2px solid var(--navy); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; cursor: pointer; list-style: none; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu .menu-close, .menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: inline; }
.menu[open] summary { color: var(--cream); border-color: var(--cream); }
.menu-panel { display: none; }
.menu[open] .menu-panel { display: block; position: fixed; inset: 0; z-index: 30; overflow-y: auto; padding: 6rem var(--gutter) var(--s5); background: var(--navy); color: var(--cream); }
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel a { display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; color: var(--cream); text-decoration: none;
  font-family: var(--display); font-size: 2.125rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.menu-panel a::before { content: ""; flex: none; width: .9rem; height: .9rem; border-radius: 50%; border: 3px solid var(--teal-soft); }
.menu-panel a[aria-current="page"]::before { background: var(--teal-soft); }
@media (prefers-reduced-motion: no-preference) { .menu[open] .menu-panel { animation: panel .2s var(--ease); } }
@keyframes panel { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 72em) {
  .nav-wide { display: block; }
  .menu { display: none; }
}

/* ---------- sections ---------- */
.band { padding: var(--s6) 0; }
.teal { background: var(--teal); color: var(--cream); --on-dark-muted: var(--cream); } /* softened cream fails contrast on teal, so it stays full */
.navy { background: var(--navy); color: var(--cream); }
@media (min-width: 60em) { .band { padding: var(--s7) 0; } }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: var(--s3); }
.hero-text { position: relative; z-index: 2; }
.hero .display span { display: block; text-wrap: wrap; }
.hero-lead { margin-top: var(--s3); font-size: 1.25rem; line-height: 1.5; max-width: 27em; }
.art { position: relative; z-index: 1; width: 150vw; margin: var(--s2) 0 -26vw -25vw; pointer-events: none; }
.art-svg { width: 100%; height: auto; overflow: visible; }
@media (min-width: 40em) { .art { width: 108vw; margin: var(--s3) 0 -16vw -4vw; } }
.art .ln { fill: none; stroke: var(--navy); stroke-width: 10; stroke-linecap: round; }
.art .ln.o { stroke: var(--teal); stroke-width: 5; }
.art .nd { fill: var(--navy); }
.art .nd.o { fill: var(--cream); stroke: var(--teal); stroke-width: 6; }

@media (min-width: 60em) {
  .hero { display: flex; align-items: center; min-height: min(88vh, 50rem); padding: var(--s5) 0 var(--s6); }
  .hero-in { width: 100%; }
  .hero-text { width: 47%; }
  .hero-lead { max-width: 24em; }
  .hero .display { font-size: min(7.25rem, 7.6vw); }
  .art { position: absolute; top: 50%; right: -9vw; width: 62vw; max-width: 66rem; margin: 0; transform: translateY(-48%); }
}

/* the drawing assembles itself once, from the drop outward (not with reduced motion, not without JavaScript) */
@media (prefers-reduced-motion: no-preference) {
  .js .art .ln { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease) var(--d); }
  .js .art .nd { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.35, .5, 1) var(--d); }
  .js .art .dr { transform-box: fill-box; transform-origin: 50% 80%; transform: scale(.9); opacity: 0; transition: transform .7s var(--ease), opacity .45s var(--ease); }
  .js .art.on .ln { stroke-dashoffset: 0; }
  .js .art.on .nd, .js .art.on .dr { transform: none; opacity: 1; }
}

/* ---------- home: Kavach ---------- */
.kv-head .h-big { max-width: 9em; }
.kv-lead { margin-top: var(--s3); font-size: 1.25rem; line-height: 1.5; }
.shots { display: grid; gap: var(--s5); margin: var(--s5) 0; }
.shot { display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 13fr); gap: var(--s3); align-items: center; margin: 0; }
.shot:nth-child(even) { grid-template-columns: minmax(0, 13fr) minmax(0, 10fr); }
.shot:nth-child(even) .phone { order: 2; }
.phone { padding: 5px; border-radius: 24px; background: var(--navy); box-shadow: 0 28px 40px -28px rgba(4, 18, 22, .7); }
.phone img { width: 100%; border-radius: 19px; }
.shot figcaption { font-size: 1.0625rem; line-height: 1.5; }
.shot figcaption b { display: block; margin-bottom: .25rem; font-family: var(--display); font-size: 1.375rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.15; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { position: relative; padding: .5rem 0 .5rem 1.75rem; border-top: 1px solid rgba(246, 243, 227, .25); }
.facts li:last-child { border-bottom: 1px solid rgba(246, 243, 227, .25); }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--cream); }
.kv-act { margin-top: var(--s4); }
.caveat { font-weight: 700; }

@media (min-width: 40em) {
  .kv-head { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s4); align-items: end; }
  .kv-lead { margin: 0; }
}
@media (min-width: 56em) {
  .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); align-items: start; margin: var(--s6) 0; }
  .shot, .shot:nth-child(even) { display: block; }
  .shot:nth-child(even) { margin-top: var(--s6); }
  .shot figcaption { margin-top: var(--s3); padding-right: var(--s1); }
  .kv-foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
  .kv-act { margin-top: 0; }
}

/* ---------- node lists: filled node = done, open node = not yet (the words say so too) ---------- */
.nodes { margin: var(--s5) 0 0; padding: 0; list-style: none; }
.nodes li { position: relative; padding: 0 0 var(--s4) 2.75rem; }
.nodes li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 3px solid var(--teal); background: var(--cream); }
.nodes li.is-done::before { background: var(--teal); }
.nodes li::after { content: ""; position: absolute; left: calc(.6875rem - 1.5px); top: 1.625rem; bottom: .25rem; width: 3px; border-radius: 2px; background: var(--teal); opacity: .4; }
.nodes li:last-child { padding-bottom: 0; }
.nodes li:last-child::after { display: none; }
.nodes .state { display: block; font-size: 1rem; font-weight: 700; color: var(--muted); }
.nodes .is-done .state { color: var(--teal); }
.nodes b { display: block; margin: .125rem 0 .375rem; font-family: var(--display); font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 750; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.nodes .note { display: block; max-width: 32em; color: var(--muted); }

/* ---------- ledger: where we stand, on navy ---------- */
.ledger { margin: var(--s5) 0 0; }
.ledger > div { display: grid; gap: .25rem; padding: var(--s3) 0; border-top: 1px solid rgba(246, 243, 227, .22); }
.ledger > div:last-child { border-bottom: 1px solid rgba(246, 243, 227, .22); }
.ledger dt { display: flex; align-items: center; gap: .625rem; font-weight: 700; color: var(--teal-soft); }
.ledger dt::before { content: ""; flex: none; width: .875rem; height: .875rem; border-radius: 50%; border: 2.5px solid var(--teal-soft); }
.ledger .is-done dt::before { background: var(--teal-soft); }
.ledger .is-now dt::before { background: linear-gradient(90deg, var(--teal-soft) 50%, transparent 50%); }
.ledger dd { margin: 0; }
.ledger dd b { display: block; font-family: var(--display); font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); font-weight: 750; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.ledger dd span { display: block; margin-top: .375rem; color: var(--on-dark-muted); max-width: 32em; }
.ledger dd span:first-child { margin-top: .125rem; font-size: 1.1875rem; color: var(--cream); }
@media (min-width: 30em) {
  .ledger > div { grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s2); }
  .ledger dt { align-self: start; padding-top: .3rem; }
}

/* ---------- home: tools, stories, support; and where we stand ---------- */
.make-head p, .start-head p { margin-top: var(--s3); font-size: 1.25rem; line-height: 1.5; }
.start-head p.actions { margin-top: var(--s4); }
@media (min-width: 60em) {
  .make-in, .start-in { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
  .make-head, .start-head { grid-column: 1; position: sticky; top: var(--s4); }
  .make-in .nodes, .start-in .ledger { grid-column: 3; margin-top: .5rem; }
}

/* ---------- inner pages: shared ---------- */
.display-2 { font-size: clamp(2.75rem, 1.3rem + 6.4vw, 6rem); font-weight: 800; line-height: .92; letter-spacing: -.042em; max-width: 11em; }
.h-mid { font-size: clamp(1.875rem, 1.25rem + 2.6vw, 2.75rem); font-weight: 780; line-height: 1; letter-spacing: -.03em; }
.h-sub { font-size: 1.5rem; font-weight: 750; line-height: 1.15; letter-spacing: -.015em; }
.page-head { padding: var(--s4) 0 var(--s5); }
.page-head .lead { margin-top: var(--s3); max-width: 30em; }
/* two cream sections in a row share one gap, not two */
.band:not(.teal):not(.navy) + .band:not(.teal):not(.navy) { padding-top: 0; }
@media (min-width: 60em) { .page-head { padding: var(--s6) 0; } .page-head .lead { font-size: 1.375rem; } }
.thanks { min-height: 60vh; }
.head-more { margin-top: var(--s2); max-width: 34em; color: var(--muted); }

/* uneven two columns: heading on the left (sticky on wide screens), content on the right */
.split { display: grid; gap: var(--s4); }
.split .lead { margin-top: var(--s3); }
@media (min-width: 60em) {
  .split { grid-template-columns: 5fr 1fr 6fr; gap: 0; }
  .split > :first-child { grid-column: 1; }
  .split > :last-child { grid-column: 3; }
  .split > .sticky { position: sticky; top: var(--s4); align-self: start; }
}

.prose h2 { margin: var(--s6) 0 var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--s4) 0 .375rem; font-size: 1.375rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.2; }
.prose .lead { margin-top: 0; }
.prose .quote { padding-left: var(--s3); border-left: 4px solid var(--teal); font-weight: 700; }

/* rows: a list with hairlines, a bold title and a line of text */
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows b { display: block; margin-bottom: .25rem; font-family: var(--display); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.rows span { display: block; max-width: 34em; color: var(--muted); }
.rows.plain > li { font-size: 1.25rem; line-height: 1.45; }
.teal .rows > li, .navy .rows > li { border-color: rgba(246, 243, 227, .25); }
.teal .rows span, .navy .rows span { color: var(--on-dark-muted); }

.form-note { font-size: 1rem; color: var(--muted); }
.form-note-light { font-size: 1rem; color: var(--on-dark-muted); }
.caveat-dark { margin-top: var(--s3); padding-left: var(--s2); border-left: 4px solid var(--navy); font-weight: 700; }

/* node list on navy */
.nodes.on-navy li::before { border-color: var(--teal-soft); background: var(--navy); }
.nodes.on-navy li::after { background: var(--teal-soft); }
.nodes.on-navy .state, .nodes.on-navy .note { color: var(--on-dark-muted); }
.nodes.on-navy b { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); }
.split > .nodes { margin-top: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s3); max-width: 34rem; }
.field label { display: block; margin-bottom: .375rem; font-weight: 700; }
.hint { margin: -.125rem 0 .5rem; font-size: 1rem; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  display: block; width: 100%; min-height: 3.25rem; padding: .75rem 1rem; border: 2px solid var(--muted); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; line-height: 1.4; }
.form textarea { min-height: 9rem; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 3rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310262F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 1.25rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-color: var(--navy); }
.form [aria-invalid="true"] { border-width: 3px; border-color: var(--navy); }
.err { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0 0; font-weight: 700; }
.err::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.375rem; height: 1.375rem; margin-top: .125rem; border-radius: 50%; background: var(--navy); color: var(--cream); font-size: .9375rem; line-height: 1; }
.err[hidden] { display: none; }
.checks { display: grid; gap: .25rem; }
.check, .field label.check { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .75rem; align-items: start; min-height: 44px; margin: 0; padding: .375rem 0; font-weight: 400; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; margin: .125rem 0 0; accent-color: var(--teal); cursor: pointer; }
.form-act { margin: var(--s2) 0 0; }
.form-act .btn { min-width: 12rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Get Kavach ---------- */
.gk { padding-top: var(--s5); }
.gk-lead { margin-top: var(--s3); font-size: 1.3125rem; line-height: 1.45; max-width: 26em; }
.gk-phones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s5); max-width: 34rem; }
.gk-phones .phone:nth-child(2) { margin-top: var(--s5); }
.feats .caveat-dark { max-width: 24em; }
.feats .lead { max-width: 24em; }
.use-note { margin-top: var(--s2); font-size: 1rem; color: var(--muted); }
@media (min-width: 60em) {
  .gk { padding: var(--s6) 0; }
  .gk-in { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s5); align-items: center; }
  .gk-phones { margin-top: 0; max-width: 27rem; justify-self: end; }
}

/* ---------- Support ---------- */
.notice-band { padding: 0 0 var(--s6); }
.notice { padding: var(--s4) var(--s3); border-radius: 22px; background: var(--navy); color: var(--cream); }
.notice p { max-width: 40em; margin: 0; color: var(--on-dark-muted); }
.notice .notice-big { margin-bottom: var(--s2); font-family: var(--display); font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem); font-weight: 750; line-height: 1.12; letter-spacing: -.02em; color: var(--cream); }
@media (min-width: 48em) { .notice { padding: var(--s5); } }

.costs { margin: 0; padding: 0; list-style: none; }
.costs li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.costs li:last-child { border-bottom: 1px solid var(--line); }
.cost-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem var(--s2); }
.cost-top b { font-family: var(--display); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.amt { font-weight: 700; color: var(--teal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.costs p { margin: .375rem 0 0; color: var(--muted); }

.slider { padding: var(--s4) var(--s3); border-radius: 22px; background: var(--navy); }
.slider-label { display: block; margin-bottom: var(--s2); font-weight: 700; }
.slider input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.slider input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--teal-soft) var(--p, 0%), rgba(246, 243, 227, .5) var(--p, 0%)); }
.slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(246, 243, 227, .5); }
.slider input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--teal-soft); }
.slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -13px; border-radius: 50%; background: var(--cream); border: 6px solid var(--teal-soft); }
.slider input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 6px solid var(--teal-soft); }
.slider input[type="range"]:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.sl-track { position: relative; }
.sl-track input { position: relative; z-index: 1; }
.sl-ticks { position: absolute; left: 16px; right: 16px; top: 50%; height: 0; pointer-events: none; }
.sl-ticks i { position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid rgba(246, 243, 227, .7); background: var(--navy); transform: translate(-50%, -50%); transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.sl-ticks i.on { background: var(--teal-soft); border-color: var(--teal-soft); }
.sl-steps { display: flex; justify-content: space-between; margin: .25rem 0 0; padding: 0; list-style: none; font-size: 1rem; color: var(--on-dark-muted); }
.sl-steps li { display: none; }
.sl-steps li:first-child, .sl-steps li:last-child { display: block; }
.sl-steps li:last-child { text-align: right; }
.sl-out { min-height: 6.5em; margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid rgba(246, 243, 227, .25); font-size: 1.1875rem; line-height: 1.5; color: var(--cream); }
.sl-out b { color: var(--teal-soft); }
.slider .actions { margin-top: var(--s2); }
@media (min-width: 48em) { .slider { padding: var(--s5) var(--s4); } }

/* the thank-you thread: people who helped, as nodes on one line; with four or more it drifts slowly (pause on hover, focus or the button) */
.thanks-wall .lead { margin-top: var(--s2); }
.ty-count { display: block; margin-bottom: .25rem; font-family: var(--display); font-size: clamp(3.5rem, 2rem + 6vw, 6rem); font-weight: 800; line-height: .9; letter-spacing: -.045em; color: var(--teal); }
.thread { position: relative; margin-top: var(--s5); overflow: hidden; }
.thread::before { content: ""; position: absolute; left: 0; right: 0; top: .5625rem; height: 3px; background: var(--teal); opacity: .35; }
.thread-track { display: flex; width: max-content; }
.thread:not(.moving) { overflow-x: auto; }
.thread:not(.moving) .thread-track { max-width: calc(72rem + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.thread-list { display: flex; gap: var(--s4); margin: 0; padding: 0 var(--s4) 0 0; list-style: none; }
.thread-list li { display: grid; flex: none; align-content: start; justify-items: start; gap: .375rem; width: 11.5rem; }
.thread-list li.tn-gap { width: 2.5rem; }
.tn-node { position: relative; z-index: 1; width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 3px solid var(--teal); background: var(--teal); transition: scale .2s var(--ease), background-color .2s var(--ease); }
.thread-list li:hover .tn-node { scale: 1.3; background: var(--navy); border-color: var(--navy); }
.thread-list b { margin-top: .375rem; font-family: var(--display); font-size: 1.5rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.tn-how { font-size: 1rem; line-height: 1.45; color: var(--muted); }
.thread.empty .tn-node { background: var(--cream); }
.thread.empty .tn-you b { color: var(--teal); }
.thanks-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s4); }
.thanks-foot .form-note { margin: 0; }
@media (prefers-reduced-motion: no-preference) { /* one steady, unbroken drift: it never pauses (the owner's wish) */
  .thread.moving .thread-track { animation: thread-move calc(var(--n) * 4.5s) linear infinite; }
}
@keyframes thread-move { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { /* for people whose phones ask for less motion: the names sit on the line and can be swiped */
  .thread.moving { overflow-x: auto; }
  .thread.moving .thread-track { padding-inline: var(--gutter); }
  .thread.moving .thread-list[aria-hidden], .thread.moving li[aria-hidden] { display: none; }
}

.skill { margin-top: var(--s5); }
.skill .h-sub { margin-bottom: .5rem; }
.roles.one { grid-template-columns: 1fr; }
.roles.one li { font-family: var(--text); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.other-way { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); }
.other-way a { overflow-wrap: anywhere; }
.flag { font-family: var(--text); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--teal); }
.ideas { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid rgba(246, 243, 227, .22); }
.ideas .form-note-light { margin: 0; }
.navy .err::before { background: var(--cream); color: var(--navy); }
.navy .form [aria-invalid="true"] { border-color: var(--cream); box-shadow: 0 0 0 2px var(--cream); }
.navy .hint { color: var(--on-dark-muted); }
.navy .form textarea { border-color: transparent; }

/* ---------- Collaborate ---------- */
.doors-band { padding: 0 0 var(--s6); }
.doors { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.doors a { display: block; height: 100%; padding: var(--s3); border: 2px solid var(--navy); border-radius: 20px; color: var(--ink); text-decoration: none; transition: background-color .15s var(--ease); }
.doors a:hover { background: rgba(16, 38, 47, .05); }
.doors b { display: block; margin-bottom: .375rem; font-family: var(--display); font-size: 1.625rem; font-weight: 780; letter-spacing: -.02em; line-height: 1.1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.doors span { display: block; color: var(--muted); }
@media (min-width: 56em) {
  .doors { grid-template-columns: 1.25fr 1fr 1fr; }
  .doors li:first-child a { background: var(--navy); color: var(--cream); }
  .doors li:first-child span { color: var(--on-dark-muted); }
}
.partner-get { margin-top: var(--s3); padding-left: var(--s2); border-left: 4px solid var(--cream); font-weight: 700; }
.slots { margin: 0; padding: 0; list-style: none; }
.slots > li { padding: var(--s3) 0; border-top: 1px solid rgba(246, 243, 227, .25); }
.slots > li:last-child { border-bottom: 1px solid rgba(246, 243, 227, .25); }
.slots b { display: block; margin-bottom: .5rem; font-family: var(--display); font-size: 1.625rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.slots dl { display: grid; gap: .375rem; margin: 0; }
.slots dl div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s2); }
.slots dt { font-weight: 700; color: var(--on-dark-muted); }
.slots dd { margin: 0; }
.roles { display: grid; gap: 0 var(--s4); margin: 0; padding: 0; list-style: none; }
.roles li { display: flex; gap: .75rem; align-items: center; min-height: 3rem; padding: .5rem 0; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.1875rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
@media (min-width: 60em) { .roles li { padding: .875rem 0; font-size: 1.375rem; } }
.roles li::before { content: ""; flex: none; width: .875rem; height: .875rem; border-radius: 50%; border: 3px solid var(--teal); }
@media (min-width: 40em) { .roles { grid-template-columns: 1fr 1fr; } }

/* ---------- Transparency ---------- */
.facts-table { margin: 0; }
.facts-table div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem var(--s3); padding: var(--s3) 0; border-top: 1px solid rgba(246, 243, 227, .22); }
.facts-table div:last-child { border-bottom: 1px solid rgba(246, 243, 227, .22); }
.facts-table dt { font-size: 1.1875rem; color: var(--on-dark-muted); }
.facts-table dd { margin: 0; font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 780; letter-spacing: -.025em; line-height: 1; }

/* ---------- About ---------- */
.logo-band { overflow: hidden; }
.logo-text .lead { margin-top: var(--s3); }
.logo-art { width: 120vw; max-width: none; margin: var(--s3) 0 0 -10vw; }
@media (min-width: 40em) { .logo-art { width: 90vw; margin-left: 0; } }
@media (min-width: 60em) {
  .logo-in { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s4); align-items: center; }
  .logo-art { position: static; width: 100%; margin: 0; transform: none; }
}

/* ---------- Contact ---------- */
.mail-big { margin: var(--s3) 0 0; max-width: none; font-family: var(--display); font-size: clamp(1.5rem, .9rem + 3.4vw, 3.25rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.mail-big a { color: var(--teal); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }

/* ---------- Community, Resources ---------- */
.soon-in { display: grid; gap: var(--s5); }
.soon-in p:not(.lead):not(.actions) { margin-top: var(--s3); }
.soon-ring { width: min(18rem, 70vw); }
.ring { width: 100%; height: auto; }
.ring-ln line { stroke: var(--teal); stroke-width: 9; stroke-linecap: round; opacity: .5; }
.ring circle { fill: var(--cream); stroke: var(--teal); stroke-width: 12; }
.ext { font-weight: 700; }
@media (min-width: 60em) {
  .soon-in { grid-template-columns: 7fr 4fr; align-items: center; }
  .soon-ring { width: 100%; max-width: 24rem; justify-self: end; }
}

/* ---------- Community: the review network ---------- */
.web-head .wrap + .wrap { margin-top: var(--s4); }
.web { overflow-x: clip; } /* the tap areas of the outermost circles must not make the page scroll sideways */
.web-stage { position: relative; width: 100%; max-width: 46rem; margin: 0 auto; aspect-ratio: 1 / 1; container-type: inline-size; }
@media (max-width: 39.99em) { .web-stage { width: calc(100% + 2 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); } } /* edge to edge on phones: bigger circles */
.web-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.web-ln line { stroke: var(--navy); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 1; transition: stroke .2s var(--ease), stroke-width .2s var(--ease); }
.web-ln line.open { stroke: var(--teal); stroke-width: 3; opacity: .6; }
.web-ln line.hot { stroke: var(--teal); stroke-width: 9; opacity: 1; }
.web-nodes { position: absolute; inset: 0; }
.web-node, .web-open, .web-add { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.web-node { display: grid; place-items: center; padding: 0; border: 0; background: var(--navy); color: var(--cream); cursor: pointer;
  font-family: var(--display); font-weight: 750; font-size: calc(var(--s) * .44cqw); line-height: 1;
  transition: scale .22s var(--ease), background-color .22s var(--ease), box-shadow .22s var(--ease); }
.web-node::before, .web-add::before { content: ""; position: absolute; inset: min(0px, calc((100% - 44px) / 2)); border-radius: 50%; }
.web-node:hover, .web-node:focus-visible, .web-node[aria-expanded="true"] { scale: 1.2; background: var(--teal); box-shadow: 0 0 0 calc(var(--s) * .14cqw) rgba(28, 110, 100, .25); }
.web-node:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.web-open { border: 2px solid var(--teal); background: var(--cream); pointer-events: none; }
.web-add { display: grid; place-items: center; border: 2px dashed var(--teal); background: var(--cream); color: var(--teal); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * .55cqw); line-height: 1; transition: scale .22s var(--ease), background-color .22s var(--ease); }
.web-add:hover, .web-add:focus-visible { scale: 1.15; background: #fff; }
.web-card { position: absolute; z-index: 5; width: min(20rem, 92%); padding: var(--s3); border: 2px solid var(--navy); border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: 0 22px 40px -22px rgba(16, 38, 47, .55); opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; }
.web-card.show { opacity: 1; transform: none; pointer-events: auto; }
.web-card blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.web-card .wc-who { margin: .875rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.4; color: var(--muted); }
.web-card .wc-who b { font-family: var(--display); font-size: 1.1875rem; color: var(--ink); }
.web-msg { margin: var(--s3) auto 0; max-width: 32em; text-align: center; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .web:not(.on) .web-node, .web:not(.on) .web-open, .web:not(.on) .web-add, .web:not(.on) .web-ln line { opacity: 0; }
  .web.on .web-node, .web.on .web-open, .web.on .web-add { animation: web-pop .5s cubic-bezier(.3, 1.35, .5, 1) var(--d, 0ms) backwards; }
  .web.on .web-ln line { animation: web-draw .6s var(--ease) var(--d, 0ms) backwards; }
}
@keyframes web-pop { from { opacity: 0; scale: 0; } }
@keyframes web-draw { from { stroke-dashoffset: 1; } }

fieldset.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.choice legend { margin-bottom: .25rem; padding: 0; font-weight: 700; }
.teal .check input { accent-color: var(--navy); }
.teal .hint { color: var(--cream); }
.soon .h-big + .lead { margin-top: var(--s2); }

/* ---------- Legal ---------- */
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; }
@media (max-width: 59.99em) { .toc { padding-bottom: var(--s3); border-bottom: 1px solid var(--line); } }

/* ---------- footer ---------- */
.foot { padding: var(--s5) 0 var(--s4); border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: .75rem; margin: 0; font-family: var(--display); font-weight: 750; font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.1; }
.foot-mark { flex: none; width: 3rem; height: 3rem; color: var(--red); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: var(--s3) 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; }
.foot-mail { color: var(--muted); }
.foot-mail a { display: inline-block; padding-block: .625rem; overflow-wrap: anywhere; }
.foot-social { display: flex; gap: .75rem; margin: 0 0 var(--s3); padding: 0; list-style: none; }
.foot-social a { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; }
.foot-social a:hover { background: var(--teal, var(--ink)); }
.foot-social svg { width: 22px; height: 22px; }
.foot-small { margin: 0; font-size: 1rem; color: var(--muted); }
@media (min-width: 60em) {
  .foot-in { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s5); align-items: center; }
  .foot-links { margin: 0; justify-content: flex-end; }
  .foot-mail, .foot-small { margin: 0; }
  .foot-small { text-align: right; grid-column: 2; }
  .foot-social { margin: 0; justify-content: flex-end; grid-column: 2; grid-row: 2; }
  .foot-mail { grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
