/* =========================================================
   style.css — Sinuous.ai v1.0.0 · A GhostFire Digital Signature Build
   Change summary (v1.0.0): launch identity. Riverbed dark with a quicksilver channel, oxbow water and a salmon accent;
     Gilda Display / Albert Sans / Victor Mono. Current buttons ride a wave that roughens on hover; bend kickers draw
     their own meander; lineage on a sine; channel scopes; downstream steps; Upstream back-to-top.
   Palette: Riverbed #0B1512 · Silt #14211D · Quicksilver #E7EEE9 · Oxbow #3FA08E · Salmon Run #F4876A
   ========================================================= */

:root {
  --riverbed: #0B1512;
  --silt: #14211D;
  --silt-2: #1C2C27;
  --quick: #E7EEE9;
  --quick-2: rgba(231, 238, 233, .72);
  --quick-3: rgba(231, 238, 233, .46);
  --oxbow: #3FA08E;
  --oxbow-2: rgba(63, 160, 142, .35);
  --salmon: #F4876A;
  --line: rgba(231, 238, 233, .1);
  --f-display: 'Gilda Display', 'Didot', Georgia, serif;
  --f-body: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Victor Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(18px, 4.4vw, 60px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--riverbed); color: var(--quick); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(63, 160, 142, .45); color: #fff; }
:focus-visible { outline: 1.5px solid var(--salmon); outline-offset: 5px; }
.sx-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--salmon); color: var(--riverbed); font-family: var(--f-mono); font-size: .8rem; text-decoration: none; }
.sx-skip:focus { top: 12px; }
.sx-wrap { width: min(1180px, 100% - var(--gutter) * 2); margin: 0 auto; }

/* ─── CURRENT: the button rides a wave; on hover the water roughens and runs ─── */
.cur {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 0 4px;
  text-decoration: none;
  color: var(--quick);
}
.cur-t { font-family: var(--f-body); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: color .3s ease; }
.cur-t b { font-weight: 600; }
.cur-w { width: 100%; height: 12px; overflow: visible; }
.cur-w path { fill: none; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 10 6; transition: opacity .35s ease; }
.cur-calm { stroke: var(--quick-3); animation: curRun 2.6s linear infinite; }
.cur-rough { stroke: var(--salmon); opacity: 0; animation: curRun .9s linear infinite; }
.cur:hover .cur-calm, .cur:focus-visible .cur-calm { opacity: 0; }
.cur:hover .cur-rough, .cur:focus-visible .cur-rough { opacity: 1; }
.cur:hover .cur-t, .cur:focus-visible .cur-t { color: #fff; }
@keyframes curRun { to { stroke-dashoffset: -32; } }
.cur--fire .cur-t { color: var(--salmon); }
.cur--fire .cur-calm { stroke: var(--salmon); }
.cur--fire .cur-rough { stroke: var(--quick); }
.cur--fire:hover .cur-t, .cur--fire:focus-visible .cur-t { color: var(--quick); }
.cur--sm .cur-t { font-size: .7rem; }
.cur--btn { align-items: stretch; }

/* ─── NAV ─── */
.sx-nav { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--gutter); transition: background-color .4s ease, box-shadow .4s ease; }
.sx-nav.is-solid { background: rgba(11, 21, 18, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.sx-brand { font-family: var(--f-display); font-size: 1.55rem; letter-spacing: .01em; text-decoration: none; color: var(--quick); }
.sx-brand span { font-family: var(--f-mono); font-style: italic; font-size: .9rem; color: var(--salmon); margin-left: 1px; }
.sx-links { display: flex; gap: 34px; }
.sx-links a { position: relative; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--quick-2); padding: 6px 0; transition: color .25s ease; }
.sx-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 6'%3E%3Cpath d='M0 3 C4 0 8 0 12 3 S20 6 24 3' fill='none' stroke='%23F4876A' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 6px; opacity: 0; transition: opacity .3s ease; }
.sx-links a:hover, .sx-links a:focus-visible { color: var(--quick); }
.sx-links a:hover::after, .sx-links a:focus-visible::after { opacity: 1; animation: navFlow 1.2s linear infinite; }
@keyframes navFlow { to { background-position: 24px 0; } }

/* ─── HERO ─── */
.sx-hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 70% 70%, rgba(63, 160, 142, .1), transparent 70%), var(--riverbed); }
.sx-stage { position: absolute; inset: 0; touch-action: pan-y; }
.sx-stage canvas { position: absolute; inset: 0; }
.sx-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(11, 21, 18, .82) 0%, rgba(11, 21, 18, .5) 34%, transparent 58%), linear-gradient(180deg, rgba(11, 21, 18, .7) 0, transparent 22%, transparent 86%, var(--riverbed) 100%); }
.sx-hero-in { position: relative; z-index: 2; width: min(1180px, 100% - var(--gutter) * 2); margin: 0 auto; padding: calc(var(--nav-h) + clamp(26px, 6vh, 70px)) 0 0; pointer-events: none; }
.sx-hero-in > * { pointer-events: auto; }
.sx-eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: var(--quick-3); }
.sx-eyebrow i { color: var(--oxbow); }
.sx-mark { margin-top: 10px; font-family: var(--f-display); font-size: clamp(3.6rem, 10.5vw, 9.4rem); line-height: .9; letter-spacing: -.01em; color: var(--quick); text-shadow: 0 0 60px rgba(11, 21, 18, .9); }
.sx-mark span { font-family: var(--f-mono); font-style: italic; font-weight: 400; font-size: .3em; letter-spacing: 0; color: var(--salmon); margin-left: .05em; }
.sx-claim { margin-top: 14px; font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; color: var(--quick); }
.sx-claim em { font-style: normal; color: var(--oxbow); }
.sx-lede { max-width: 40ch; margin-top: 14px; font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--quick-2); }
.sx-ctas { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; margin-top: clamp(20px, 3.4vh, 32px); }
.sx-note { margin-top: 14px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; color: var(--quick-3); }

/* the river gauge */
.sx-gauge { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(18px, 4vh, 40px); width: min(320px, 34vw); padding: 0 0 0 18px; border-left: 1px solid var(--oxbow-2); }
.sx-gauge::before { content: ""; position: absolute; inset: -40px -60px -40px -40px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(11, 21, 18, .82), rgba(11, 21, 18, 0)); }
.sx-g-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.sx-g-k { font-family: var(--f-mono); font-style: italic; font-size: .82rem; color: var(--quick-3); }
.sx-g-v { font-family: var(--f-display); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--quick); font-variant-numeric: tabular-nums; }
.sx-meter { position: relative; height: 18px; margin: 8px 0 6px; --sx-fill: 0; }
.sx-meter::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--line); }
.sx-meter i { position: absolute; left: 0; top: 7px; height: 3px; width: calc(var(--sx-fill) * 100%); border-radius: 2px; background: linear-gradient(90deg, var(--oxbow), var(--salmon)); box-shadow: 0 0 10px rgba(244, 135, 106, .5); transition: width .4s ease; }
.sx-m-a, .sx-m-b { position: absolute; top: -2px; font-family: var(--f-mono); font-size: .62rem; color: var(--quick-3); }
.sx-m-a { left: 0; transform: translateY(14px); }
.sx-m-b { right: 0; transform: translateY(14px); color: var(--salmon); }
.sx-g-sub { margin-top: 14px; justify-content: flex-start; gap: 18px; font-family: var(--f-mono); font-size: .72rem; color: var(--quick-3); }
.sx-g-sub b { font-weight: 500; color: var(--quick); }
.sx-g-note { margin-top: 10px; font-size: .78rem; line-height: 1.5; color: var(--quick-3); }
.sx-g-hint { margin-top: 8px; font-family: var(--f-mono); font-style: italic; font-size: .7rem; color: var(--oxbow); }

/* ─── SECTIONS ─── */
.sx-sec { position: relative; padding: clamp(90px, 12vw, 150px) 0; scroll-margin-top: calc(16px - clamp(90px, 12vw, 150px)); }
.sx-sec + .sx-sec { border-top: 1px solid var(--line); }

/* the bend kicker: a meander draws itself, then the bend number and the name */
.sx-k { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 20px; }
.sx-k-bend { width: 46px; height: 24px; overflow: visible; }
.sx-k-bend path { fill: none; stroke: var(--salmon); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 80; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) .1s; }
.sx-js .sx-k:not(.is-in) .sx-k-bend path { stroke-dashoffset: 80; }
.sx-k.is-in .sx-k-bend path { stroke-dashoffset: 0; }
.sx-k-n { font-family: var(--f-mono); font-style: italic; font-size: .86rem; color: var(--salmon); }
.sx-k-t { font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--quick); }
.sx-h2 { font-family: var(--f-display); font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.005em; max-width: 19ch; }
.sx-h2 em { font-style: normal; color: var(--oxbow); }
.sx-lede2 { max-width: 56ch; margin-top: 18px; font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--quick-2); }
.sx-lede2 i { color: var(--quick); }
.sx-fine { margin-top: 30px; max-width: 70ch; font-size: .82rem; color: var(--quick-3); }
.sx-fine b { font-weight: 500; color: var(--quick-2); }

/* Bend I: the lineage rides a sine wave */
.sx-lineage { position: relative; margin-top: clamp(40px, 6vw, 70px); height: 460px; }
.sx-lin-h { position: absolute; left: 0; right: 0; top: 130px; width: 100%; height: 200px; overflow: visible; }
.sx-lin-v { display: none; }
.sx-lin-ghost { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sx-lin-line { fill: none; stroke: var(--oxbow); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease) .2s; filter: drop-shadow(0 0 6px rgba(63, 160, 142, .6)); }
.sx-js .sx-lineage:not(.is-in) .sx-lin-line { stroke-dashoffset: 1; }
.sx-stations { position: absolute; inset: 0; }
.sx-st { position: absolute; width: 19%; transform: translateX(-50%); text-align: center; transition: opacity .8s ease; }
.sx-js .sx-lineage:not(.is-in) .sx-st { opacity: 0; }
.sx-st:nth-child(1) { left: 10%; } .sx-st:nth-child(2) { left: 30%; } .sx-st:nth-child(3) { left: 50%; } .sx-st:nth-child(4) { left: 70%; } .sx-st:nth-child(5) { left: 90%; }
.sx-lineage.is-in .sx-st:nth-child(2) { transition-delay: .5s; }
.sx-lineage.is-in .sx-st:nth-child(3) { transition-delay: 1s; }
.sx-lineage.is-in .sx-st:nth-child(4) { transition-delay: 1.5s; }
.sx-lineage.is-in .sx-st:nth-child(5) { transition-delay: 2s; }
/* crests sit at y=40/200 of the wave (top 130 + 40 = 170px); troughs at 160/200 (130 + 160 = 290px) */
.sx-st--up { bottom: calc(460px - 170px + 18px); }
.sx-st--down { top: calc(290px + 18px); }
.sx-st-dot { position: absolute; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--salmon); box-shadow: 0 0 0 4px rgba(244, 135, 106, .15), 0 0 14px rgba(244, 135, 106, .8); }
.sx-st--up .sx-st-dot { bottom: -24px; }
.sx-st--down .sx-st-dot { top: -24px; }
.sx-st-w { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; color: var(--quick); }
.sx-st-l { margin-top: 4px; font-family: var(--f-mono); font-style: italic; font-size: .74rem; color: var(--oxbow); }
.sx-st-d { margin-top: 6px; font-size: .86rem; line-height: 1.45; color: var(--quick-3); }
.sx-st-d i { color: var(--quick-2); }
.sx-st--end .sx-st-w { color: var(--salmon); }

/* Bend II: four channel scopes */
.sx-scopes { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.sx-ch { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 18px clamp(20px, 3.4vw, 48px); padding: 26px 0; border-bottom: 1px solid var(--line); transition: opacity .8s ease, transform .8s var(--ease); }
.sx-js .sx-ch:not(.is-in) { opacity: 0; transform: translateY(12px); }
.sx-ch-id { display: flex; flex-direction: column; gap: 2px; }
.sx-ch-id b { font-family: var(--f-mono); font-weight: 500; font-size: .82rem; letter-spacing: .1em; color: var(--salmon); }
.sx-ch-id span { font-family: var(--f-mono); font-style: italic; font-size: .82rem; color: var(--quick-3); }
.sx-ch-w { width: 100%; height: 76px; overflow: visible; }
.sx-ch-grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 5; }
.sx-ch-line { fill: none; stroke: var(--oxbow); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(63, 160, 142, .55)); }
.sx-ch-dot { fill: var(--salmon); filter: drop-shadow(0 0 5px rgba(244, 135, 106, .9)); }
.sx-ch-tx h3 { font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; color: var(--quick); }
.sx-ch-tx p { margin-top: 6px; font-size: .96rem; color: var(--quick-2); }
.sx-ch:hover .sx-ch-line { stroke: var(--quick); }

/* Bend III: price and the downstream steps */
.sx-acq-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 90px); margin-top: clamp(36px, 5vw, 56px); align-items: start; }
.sx-price { transition: opacity .8s ease, transform .8s var(--ease); }
.sx-js .sx-price:not(.is-in) { opacity: 0; transform: translateY(12px); }
.sx-price-k { font-family: var(--f-mono); font-style: italic; font-size: .86rem; color: var(--oxbow); }
.sx-price-v { margin-top: 4px; font-family: var(--f-display); font-size: clamp(3.4rem, 7.4vw, 6rem); line-height: 1; color: var(--quick); font-variant-numeric: lining-nums; }
.sx-price-s { margin: 8px 0 22px; color: var(--quick-2); }
.sx-facts { margin: 30px 0 0; }
.sx-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sx-facts dt { font-family: var(--f-mono); font-style: italic; font-size: .8rem; color: var(--quick-3); }
.sx-facts dd { margin: 0; font-size: .94rem; color: var(--quick); }
.sx-flow { position: relative; padding-left: 46px; transition: opacity .8s ease; }
.sx-js .sx-flow:not(.is-in) { opacity: 0; }
.sx-flow::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 48'%3E%3Cpath d='M8 0 C16 6 16 18 8 24 S0 42 8 48' fill='none' stroke='%233FA08E' stroke-width='1.4'/%3E%3C/svg%3E") repeat-y 0 0 / 16px 48px; animation: downstream 2.4s linear infinite; opacity: .8; }
@keyframes downstream { to { background-position: 0 48px; } }
.sx-fl { position: relative; padding: 0 0 34px; }
.sx-fl:last-child { padding-bottom: 0; }
.sx-fl::before { content: ""; position: absolute; left: -38px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--riverbed); border: 1.5px solid var(--salmon); box-shadow: 0 0 10px rgba(244, 135, 106, .6); }
.sx-fl-n { font-family: var(--f-mono); font-style: italic; font-size: .8rem; color: var(--salmon); }
.sx-fl h3 { margin-top: 2px; font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; color: var(--quick); }
.sx-fl p:last-child { margin-top: 6px; color: var(--quick-2); }

/* Bend IV: the form, written on water */
.sx-inq { background: radial-gradient(ellipse 60% 70% at 18% 80%, rgba(63, 160, 142, .08), transparent 70%); }
.sx-mail { color: var(--salmon); text-decoration: none; border-bottom: 1px solid rgba(244, 135, 106, .4); }
.sx-mail:hover { color: var(--quick); }
.sx-form { margin-top: clamp(32px, 4vw, 48px); max-width: 860px; }
.sx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sx-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 44px; }
.sx-f { display: flex; flex-direction: column; gap: 6px; }
.sx-f--full { grid-column: 1 / -1; }
.sx-f label { font-family: var(--f-mono); font-style: italic; font-size: .8rem; color: var(--quick-3); }
.sx-f input, .sx-f select, .sx-f textarea {
  width: 100%; margin: 0; padding: 10px 0 14px; border: 0; border-radius: 0; outline: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 C7 0 13 0 20 4 S33 8 40 4' fill='none' stroke='%23E7EEE9' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E") repeat-x left bottom / 40px 8px;
  color: var(--quick); font-family: var(--f-body); font-size: 1.12rem; -webkit-appearance: none; appearance: none;
}
.sx-f select { cursor: pointer; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 C7 0 13 0 20 4 S33 8 40 4' fill='none' stroke='%23E7EEE9' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1 L6 6 L11 1' fill='none' stroke='%23F4876A' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: repeat-x, no-repeat; background-position: left bottom, right 4px center; background-size: 40px 8px, 12px 8px; }
.sx-f select option { background: var(--silt); color: var(--quick); }
.sx-f textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.sx-f input::placeholder, .sx-f textarea::placeholder { color: rgba(231, 238, 233, .3); }
.sx-f input:focus, .sx-f select:focus, .sx-f textarea:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 C7 0 13 0 20 4 S33 8 40 4' fill='none' stroke='%23F4876A' stroke-width='1.4'/%3E%3C/svg%3E"); animation: fieldFlow 1.4s linear infinite; }
.sx-f select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 C7 0 13 0 20 4 S33 8 40 4' fill='none' stroke='%23F4876A' stroke-width='1.4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1 L6 6 L11 1' fill='none' stroke='%23F4876A' stroke-width='1.4'/%3E%3C/svg%3E"); animation: none; }
.sx-f:focus-within label { color: var(--salmon); }
@keyframes fieldFlow { to { background-position: 40px 100%; } }
.sx-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 34px; }
.sx-status { font-family: var(--f-mono); font-style: italic; font-size: .82rem; color: var(--oxbow); min-height: 1.4em; }
.sx-status.is-err { color: var(--salmon); }
.sx-direct { margin-top: 22px; font-family: var(--f-mono); font-size: .82rem; color: var(--oxbow); }

/* ─── FOOTER ─── */
.sx-foot { position: relative; padding: 84px var(--gutter) 90px; text-align: center; border-top: 1px solid var(--line); background: #08100E; }
.sx-foot::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(520px, 70vw); height: 8px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 C7 0 13 0 20 4 S33 8 40 4' fill='none' stroke='%233FA08E' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.sx-foot-mark { font-family: var(--f-display); font-size: 2rem; }
.sx-foot-mark span { font-family: var(--f-mono); font-style: italic; font-size: .5em; color: var(--salmon); }
.sx-foot-creed { margin-top: 8px; font-family: var(--f-display); font-size: 1.15rem; color: var(--quick-2); }
.sx-foot-meta, .sx-foot-ug { margin-top: 14px; font-family: var(--f-mono); font-size: .74rem; color: var(--quick-3); }
.sx-foot-ug { margin-top: 4px; }
.sx-foot-ug i { font-style: italic; font-weight: 500; color: var(--salmon); }

/* ─── UPSTREAM (back to top) ─── */
.sx-up { position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(16px, 3vh, 30px); z-index: 70; width: 40px; height: 86px; padding: 4px; border-radius: 22px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s ease, transform .4s var(--ease), background-color .3s ease; }
.sx-up.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sx-up svg { width: 100%; height: 100%; overflow: visible; }
.sx-up-path { fill: none; stroke: var(--oxbow); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(63, 160, 142, .5)); }
.sx-up-tip { fill: none; stroke: var(--quick-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease, transform .3s var(--ease); }
.sx-up-dot { fill: var(--salmon); filter: drop-shadow(0 0 6px rgba(244, 135, 106, .9)); }
.sx-up:hover, .sx-up:focus-visible { background: rgba(20, 33, 29, .7); }
.sx-up:hover .sx-up-tip, .sx-up:focus-visible .sx-up-tip { stroke: var(--salmon); transform: translateY(-3px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1080px) {
  .sx-ch { grid-template-columns: 90px minmax(0, 1fr); }
  .sx-ch-tx { grid-column: 2; }
  .sx-acq-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sx-gauge { width: min(280px, 44vw); }
  .sx-g-note { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .sx-links { display: none; }
  .sx-hero { min-height: 0; padding-bottom: 0; }
  .sx-hero::after { background: linear-gradient(180deg, rgba(11, 21, 18, .75) 0, rgba(11, 21, 18, .35) 50%, transparent 64%, var(--riverbed) 100%); }
  .sx-hero-in { padding-top: calc(var(--nav-h) + 22px); padding-bottom: 300px; }
  .sx-mark { font-size: clamp(3rem, 17vw, 4.6rem); }
  .sx-claim { font-size: 1.45rem; }
  .sx-gauge { left: var(--gutter); right: auto; bottom: 18px; width: auto; max-width: 260px; }
  .sx-g-hint { display: none; }
  .sx-g-v { font-size: 1.8rem; }
  /* the lineage turns: a vertical sine with each station beside its bend */
  .sx-lineage { height: auto; }
  .sx-lin-h, .sx-lin-v { display: none; }
  .sx-stations { position: relative; inset: auto; padding-left: 46px; }
  .sx-stations::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 48'%3E%3Cpath d='M8 0 C16 6 16 18 8 24 S0 42 8 48' fill='none' stroke='%233FA08E' stroke-width='1.4'/%3E%3C/svg%3E") repeat-y 0 0 / 16px 48px; animation: downstream 2.4s linear infinite; }
  .sx-st, .sx-st--up, .sx-st--down { position: relative; left: auto !important; top: auto; bottom: auto; width: auto; transform: none; text-align: left; padding: 0 0 30px; }
  .sx-st:last-child { padding-bottom: 0; }
  .sx-st .sx-st-dot { top: 12px; bottom: auto; left: -40px; margin-left: 0; }
  .sx-ch { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sx-ch-id { flex-direction: row; gap: 10px; }
  .sx-ch-tx { grid-column: 1; }
  .sx-fields { grid-template-columns: minmax(0, 1fr); }
  .sx-foot { padding-bottom: 120px; }
}
@media (max-width: 420px) {
  .sx-ctas { gap: 14px 26px; }
  .cur-t { font-size: .74rem; letter-spacing: .16em; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .sx-hero-in { padding-top: calc(var(--nav-h) + 10px); }
  .sx-mark { font-size: clamp(3rem, 8vw, 6.4rem); }
  .sx-claim { margin-top: 8px; font-size: 1.7rem; }
  .sx-lede { margin-top: 8px; }
  .sx-ctas { margin-top: 14px; }
  .sx-g-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cur-calm, .cur-rough, .sx-flow::before, .sx-stations::before, .sx-links a::after, .sx-f input:focus, .sx-f textarea:focus { animation: none; }
  .sx-k-bend path, .sx-lin-line { transition: none; }
  .sx-ch, .sx-price, .sx-flow, .sx-st { transition: none; }
  .sx-meter i { transition: none; }
}
