/* ==========================================================================
   cusp.css — one stylesheet, no build step.

   Two registers: BONE (the page) and PETROL (the hero and the deep bands).
   Every ink token is redefined inside .deep rather than inherited, because a
   dark band that sets only `color` leaves buttons, ledes and accents still
   carrying light-surface tokens — that shipped on a sibling at 1.2:1 with
   twenty-two static checks passing over it. tools/audit-live.mjs measures
   the computed style of every text node in both registers.
   ========================================================================== */

:root {
  --ground: #EDF2F1;
  --tint: #D8E6E3;
  --raise: #F7FAF9;
  --white: #FFFFFF;
  --deep: #0B2E31;
  --deep-raise: #134147;
  --ink: #0E2427;
  --ink-mute: #4E605F;
  --ink-faint: #556765;
  --line: #D3DFDC;
  --line-deep: #22545B;
  --accent: #0A5C63;
  --accent-ink: #073C41;
  --gold: #84551A;
  --gold-deep: #E9BE79;
  --aqua-deep: #7FD9D2;

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 46, 49, .05), 0 4px 14px rgba(11, 46, 49, .05);
  --shadow-md: 0 2px 6px rgba(11, 46, 49, .06), 0 18px 44px rgba(11, 46, 49, .09);
  --shadow-lg: 0 4px 12px rgba(11, 46, 49, .08), 0 34px 80px rgba(11, 46, 49, .16);

  --gut: clamp(20px, 5vw, 48px);
  --max: 1180px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- type ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 11vw, 8.2rem); }
h2 { font-size: clamp(2.35rem, 5.4vw, 4rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.72rem); line-height: 1.18; letter-spacing: -0.012em; }
h4 { font-size: 1.16rem; line-height: 1.25; }

/* The accent clause. One italic phrase in the accent colour per headline —
   the device the whole page hangs on, so it gets a token rather than being
   re-styled per section. */
em.q { font-style: italic; color: var(--accent); font-family: var(--font-display); }
.deep em.q { color: var(--gold-deep); }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .705rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.deep .eyebrow { color: var(--gold-deep); }

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 56ch;
}
.deep .lede { color: var(--on-deep-mute, #A2BCBD); }

.mono { font-family: var(--font-mono); font-size: .86em; letter-spacing: -.01em; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---- layout -------------------------------------------------------------- */

.wrap { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - var(--gut) * 2, 1340px); margin-inline: auto; }

section { padding-block: clamp(74px, 10vw, 132px); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(42px, 5vw, 66px); }
.section-head .lede { margin-inline: auto; margin-top: 1.15rem; }

/* THE TINT IS THE PAGE, and `ground` is the exception rather than the rule.
   The reference this was built against gets its calm from a near-white hero
   handing off into one tinted field that carries most of the document; a page
   that alternates white and off-white reads as a report. */
.band { background: var(--ground); }
.band-tint { background: var(--tint); }
.band-raise { background: linear-gradient(180deg, #E4EEEC, var(--tint)); }

.deep {
  background: var(--deep);
  color: var(--ground);
  --ink: #EDF2F1;
  --ink-mute: #A2BCBD;
  --ink-faint: #92AEB0;
  --line: #22545B;
  --accent: #E9BE79;
  --raise: #134147;
  --white: #134147;
  --on-deep-mute: #A2BCBD;
  --tint: #134147;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 18px 44px rgba(0,0,0,.34);
  --shadow-lg: 0 34px 80px rgba(0,0,0,.44);
}
.deep a { color: var(--gold-deep); }

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body);
  font-size: .955rem; font-weight: 560; letter-spacing: -.008em;
  padding: .82em 1.5em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background-color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--deep); color: #EDF2F1; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #103C40; box-shadow: var(--shadow-md); }
.deep .btn-primary { background: var(--gold-deep); color: #0B2E31; }
.deep .btn-primary:hover { background: #F2CD91; }

.btn-ghost { background: rgba(255,255,255,.72); color: var(--ink); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: #fff; border-color: #BFCFCC; }
.deep .btn-ghost { background: rgba(255,255,255,.07); color: #EDF2F1; border-color: rgba(237,242,241,.24); }
.deep .btn-ghost:hover { background: rgba(255,255,255,.13); }

.btn .arw { transition: transform .18s cubic-bezier(.2,.7,.3,1); }
.btn:hover .arw { transform: translateX(3px); }

/* ---- nav ----------------------------------------------------------------- */

.nav-shell { position: fixed; inset: 0 0 auto; z-index: 60; padding: 14px var(--gut) 0; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: min(100%, 1260px); margin-inline: auto;
  display: flex; align-items: center; gap: 1.1rem;
  padding: 7px 8px 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(250, 253, 252, .74);
  border: 1px solid rgba(255,255,255,.66);
  box-shadow: 0 1px 2px rgba(11,46,49,.06), 0 14px 40px rgba(11,46,49,.10);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  transition: background-color .3s, box-shadow .3s;
}
.nav-brand { display: inline-flex; align-items: center; gap: .58rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.42rem; letter-spacing: -.02em; }
.nav-brand .glyph { width: 30px; height: 30px; border-radius: 9px; background: var(--deep); display: grid; place-items: center; flex: none; }
.nav-links { display: flex; gap: .15rem; margin-left: .5rem; }
.nav-links a {
  font-size: .905rem; font-weight: 480; color: var(--ink-mute); text-decoration: none;
  padding: .48em .74em; border-radius: var(--r-pill); transition: color .16s, background-color .16s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(11,46,49,.06); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.nav .btn { padding: .62em 1.12em; font-size: .9rem; }
.nav-burger { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none;
    border-radius: var(--r-pill); border: 1px solid var(--line);
    background: rgba(255,255,255,.6); cursor: pointer; color: var(--ink);
  }
  .nav-drawer {
    pointer-events: auto;
    width: min(100%, 1260px); margin: 8px auto 0;
    background: rgba(248,247,244,.94); backdrop-filter: blur(20px);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 10px; box-shadow: var(--shadow-md);
    display: grid; gap: 2px;
  }
  .nav-drawer[hidden] { display: none; }
  .nav-drawer a { padding: .72em .9em; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
  .nav-drawer a:hover { background: rgba(11,46,49,.06); }
}

/* ---- hero ----------------------------------------------------------------
   A LIGHT REGISTER OVER A BRIGHT PICTURE. The first build put white type on
   dark glass over a night-diving version of the same canvas; it was handsome
   and it was the wrong genre for a product page. The reference this is built
   against is bright, airy and legible at a glance, and everything below is
   that: sunlit water, frosted glass the colour of foam, and petrol ink. */

.hero { position: relative; min-height: min(102vh, 980px); display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; background: #9EC6CE; }
/* A LIGHT scrim, not a dark one: it lifts the water toward the page's own
   ground at the edges so the hero dissolves into the document instead of
   ending at a line, and gives the nav pill something quiet to sit on. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 42% at 50% 46%, rgba(237,242,241,.34), rgba(237,242,241,0) 78%),
    radial-gradient(140% 92% at 50% 24%, rgba(237,242,241,0) 46%, rgba(237,242,241,.42) 100%),
    linear-gradient(180deg, rgba(237,242,241,.42), rgba(237,242,241,0) 22%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 20vh; z-index: -1;
  background: linear-gradient(180deg, rgba(237,242,241,0), rgba(237,242,241,.86) 62%, var(--ground));
}

.hero-inner { padding: 150px 0 clamp(150px, 20vh, 250px); text-align: center; }

.hero-card {
  position: relative;
  margin-inline: auto;
  width: min(100%, 840px);
  padding: clamp(34px, 4.4vw, 56px) clamp(24px, 4vw, 58px) clamp(38px, 4.6vw, 58px);
  border-radius: clamp(24px, 3vw, 40px);
  background: rgba(252, 254, 253, .52);
  border: 1px solid rgba(255,255,255,.80);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 90px rgba(9, 48, 56, .18);
  backdrop-filter: blur(26px) saturate(1.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.1);
}

.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .805rem; font-weight: 500; letter-spacing: -.004em;
  padding: .46em 1em; border-radius: var(--r-pill);
  background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.95);
  color: var(--ink); backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(9,48,56,.06);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #12866F; box-shadow: 0 0 0 3px rgba(18,134,111,.20); }

.hero h1 { color: var(--deep); margin: .26em 0 .18em; }
.hero .lede { color: var(--ink-mute); margin-inline: auto; max-width: 40rem; font-size: clamp(1.02rem, 1.5vw, 1.19rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.9rem; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.78); border-color: rgba(255,255,255,.95); }
.hero-cta .btn-ghost:hover { background: #fff; }

.hero-chips { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 1.5rem; }
/* --ink, not --ink-mute: these sit on a translucent pill over live
   water, where the effective background is unknowable and the audit
   cannot measure it. The only safe answer is the darkest ink. */
.hero-chips .chip { font-size: .79rem; color: var(--ink); background: rgba(255,255,255,.80); }

/* The floating product card, overlapping the hero's bottom edge. */
.hero-float {
  position: relative; z-index: 2;
  width: min(100% - 2rem, 470px);
  margin: clamp(-118px, -9vw, -80px) auto 0;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  padding: 20px 22px 22px;
  text-align: left;
}

/* ---- strip --------------------------------------------------------------- */

.strip { background: #DFEAE8; border-block: 1px solid var(--line); padding-block: 15px; }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem 1.4rem; font-size: .88rem; color: var(--ink-mute); }
.strip-in b { color: var(--ink); font-weight: 570; }
.strip-in .sep { width: 4px; height: 4px; border-radius: 50%; background: #A8BDB9; }

/* ---- cards --------------------------------------------------------------- */

.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px);
  min-width: 0;
}
.card-flat { background: transparent; border-color: transparent; padding-inline: 0; }
.deep .card { background: var(--deep-raise); border-color: var(--line-deep); }

.card-icon {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; margin-bottom: 1.15rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.deep .card-icon { background: rgba(233,190,121,.14); color: var(--gold-deep); }

.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-mute); font-size: .96rem; }

.ticks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .58rem; }
.ticks li { display: flex; gap: .62rem; font-size: .905rem; color: var(--ink-mute); line-height: 1.5; }
.ticks svg { flex: none; margin-top: .28em; }
.ticks .yes { color: var(--accent); }
.ticks .no { color: #A4442F; }
.deep .ticks .yes { color: var(--aqua-deep); }

/* ---- numbered steps ------------------------------------------------------ */

.steps { counter-reset: s; display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0,1fr); } }
.step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line); min-width: 0; }
.step .n { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .13em; color: var(--accent); display: block; margin-bottom: .9rem; }
.step h4 { margin-bottom: .45rem; font-family: var(--font-display); font-size: 1.24rem; }
.step p { font-size: .925rem; color: var(--ink-mute); }

/* ---- figures ------------------------------------------------------------- */

.stat { min-width: 0; }
.stat .v { font-family: var(--font-display); font-size: clamp(2.5rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -.028em; display: block; margin-bottom: .55rem; }
.stat .v i { font-style: italic; color: var(--accent); }
.stat .k { font-size: .875rem; color: var(--ink-mute); line-height: 1.45; display: block; max-width: 26ch; }

table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tbl th, table.tbl td { text-align: left; padding: .68em .8em; border-bottom: 1px solid var(--line); }
table.tbl th { font-family: var(--font-mono); font-size: .705rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
table.tbl td.n, table.tbl th.n { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; min-width: 0; -webkit-overflow-scrolling: touch; }
.scroll-x > table { min-width: 34rem; }

/* ---- disclosure ---------------------------------------------------------- */

.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.4rem 1.15rem 0; position: relative;
  font-family: var(--font-display); font-size: 1.24rem; letter-spacing: -.012em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; position: absolute; right: .4rem; top: 50%; width: 11px; height: 11px;
  border-right: 1.6px solid var(--ink-faint); border-bottom: 1.6px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa .a { padding: 0 2.4rem 1.35rem 0; color: var(--ink-mute); max-width: var(--measure); font-size: .965rem; }

/* ---- footer -------------------------------------------------------------- */

.foot { background: var(--deep); color: #EDF2F1; padding-block: clamp(56px, 7vw, 84px) 34px; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.4rem; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }
.foot h5 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: #92AEB0; margin: 0 0 1rem; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a { color: rgba(237,242,241,.84); text-decoration: none; font-size: .93rem; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-bar { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-deep); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .845rem; color: #92AEB0; }

/* ---- reveal --------------------------------------------------------------
   Scoped to .js so the entire page is not invisible without JavaScript. The
   class is set by an inline script in <head> before any stylesheet loads. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--deep); color: #EDF2F1; padding: .7em 1.1em; border-radius: 0 0 var(--r-sm) 0; }
.skip:focus { left: 0; }

.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .34em .7em; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent-ink);
}
.deep .tag { background: rgba(233,190,121,.16); color: var(--gold-deep); }

/* ---- asset tiles ----------------------------------------------------------
   The reference this is built against carries a wall of asset tiles, and it
   is doing real work: it is the fastest way to say "this is a market, not an
   essay". Ours has no logos to show — the project ships no image assets — so
   the mark is the ticker set in the mono face, which is honest about being a
   symbol read off the chain rather than a brand. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 430px) { .tiles { grid-template-columns: minmax(0,1fr); } }

.tile {
  display: flex; align-items: center; gap: .7rem; min-width: 0;
  background: var(--raise); border: 1px solid var(--line);
  border-radius: 16px; padding: .78rem .9rem;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s;
}
.tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.mono-mark {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent-ink);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .02em;
}
.tile-t { display: grid; min-width: 0; line-height: 1.25; }
.tile-t b { font-weight: 570; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-t i { font-style: normal; font-size: .78rem; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-d {
  margin-left: auto; flex: none; font-family: var(--font-mono); font-size: .86rem;
  color: var(--ink-faint); display: flex; align-items: baseline; gap: .18em;
}
.tile-d small { font-size: .62rem; letter-spacing: .06em; }
