/* Refractive
   Tokens live here. Page copy is in index.html.
   Example briefs are in CASE_STUDIES at the top of main.js.
*/

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --ink: #16140f;
  --ink-soft: #3f3b34;
  --muted: #5c564c;
  --paper: #f4f0e7;
  --paper-raised: #fbf8f2;
  --paper-sunken: #e9e3d6;
  --line: rgba(22, 20, 15, 0.14);
  --hero: #0c0b09;
  --cream: #f6f1e7;
  --cream-dim: #ddd6c8;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 72rem;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --header: 4.25rem;
  --spectral: linear-gradient(90deg, #ff6b86 0%, #ffb15a 24%, #ffe08a 42%, #7dffe0 64%, #7ec8ff 82%, #c4a6ff 100%);
  --glow: rgba(126, 200, 255, 0.28);
  --glow-shadow: rgba(126, 200, 255, 0.12);
  color-scheme: light;
}

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

html {
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.6rem;
  transform: translateY(-160%);
  background: var(--cream);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  z-index: 50;
  border-radius: 0.45rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--measure), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--spectral);
  flex: none;
}

.eyebrow.light {
  color: var(--cream-dim);
}

.section {
  padding: clamp(4.25rem, 8vw, 7.25rem) 0;
}

.section-head h2,
.cta h2 {
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  max-width: 14ch;
}

.intro {
  margin-top: 1.2rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.075rem;
}

.intro + .intro {
  margin-top: 0.85rem;
}

.band {
  background: var(--paper-sunken);
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  font-weight: 500;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  text-decoration: none;
  cursor: pointer;
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 241, 231, 0.4);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(246, 241, 231, 0.06);
}

.edge {
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--edge-fill, var(--paper-raised)), var(--edge-fill, var(--paper-raised))),
    var(--spectral);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

main:focus {
  outline: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: var(--header);
  margin-bottom: calc(var(--header) * -1);
  padding: 0 var(--gutter);
  color: var(--cream);
}

.site-header.is-solid {
  background: #f4f0e7;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 520;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.mark {
  width: 1.55rem;
  height: 1.55rem;
  background: currentColor;
  -webkit-mask: url("assets/mark.svg") center / contain no-repeat;
  mask: url("assets/mark.svg") center / contain no-repeat;
  flex: none;
}

.mark-sm {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: -0.12em;
  margin-right: 0.35rem;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-nav {
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--ink);
}

.site-header.is-solid .btn-nav {
  background: var(--ink);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero and aura */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--hero);
  color: var(--cream);
  overflow: hidden;
}

.hero-media,
.aura-canvas,
.aura-fallback,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.aura-canvas,
.aura-fallback {
  width: 100%;
  height: 100%;
}

.aura-canvas {
  display: block;
  visibility: hidden;
}

.aura-fallback {
  background:
    radial-gradient(ellipse 50% 46% at 76% 30%, rgba(255, 112, 146, 0.55), transparent 62%),
    radial-gradient(ellipse 38% 42% at 64% 46%, rgba(126, 200, 255, 0.38), transparent 64%),
    radial-gradient(ellipse 30% 34% at 80% 18%, rgba(255, 196, 120, 0.32), transparent 68%),
    radial-gradient(ellipse 26% 34% at 10% 52%, rgba(125, 255, 224, 0.16), transparent 70%),
    linear-gradient(118deg, transparent 36%, rgba(196, 166, 255, 0.16) 49%, rgba(126, 200, 255, 0.12) 54%, transparent 66%),
    var(--hero);
}

html.has-gl .aura-canvas {
  visibility: visible;
}

html.has-gl .aura-fallback {
  visibility: hidden;
}

.hero-scrim {
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.62) 0%, rgba(12, 11, 9, 0.08) 18%, rgba(12, 11, 9, 0) 34%),
    linear-gradient(180deg, rgba(12, 11, 9, 0) 30%, rgba(12, 11, 9, 0.72) 58%, rgba(12, 11, 9, 0.94) 100%),
    linear-gradient(90deg, rgba(12, 11, 9, 0.72) 0%, rgba(12, 11, 9, 0.34) 38%, rgba(12, 11, 9, 0) 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--measure), calc(100% - var(--gutter) * 2));
  margin: auto auto 0;
  padding: calc(var(--header) + 1.5rem) 0 clamp(3.25rem, 8vh, 5.75rem);
}

.hero h1 {
  font-size: clamp(3.2rem, 7.8vw, 6.85rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  max-width: 9.4ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero .lede,
.cta .lede {
  max-width: 34rem;
  margin-top: 1.45rem;
  color: #e7e1d5;
  font-size: 1.125rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

/* Problem */

.leak-list {
  list-style: none;
  padding: 0;
  margin: clamp(2.2rem, 5vw, 3.5rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  counter-reset: leak;
}

.leak-list li {
  counter-increment: leak;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.leak-list li::before {
  content: counter(leak, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.leak-list h3,
.outcomes h3,
.steps h3,
.offer h3,
.who h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

.leak-list p,
.outcomes p,
.steps p,
.offer p,
.tool-panel p,
.combine p,
.who p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

/* Refractive design */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.prism-art {
  margin: 0;
  color: var(--ink);
}

.prism-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.prism-art figcaption {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

/* Tooling */

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.tool-panel,
.combine,
.offer-lead {
  --edge-fill: var(--paper-raised);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 2.2vw, 1.85rem);
}

.tool-panel p + p,
.combine p + p {
  margin-top: 0.75rem;
}

.combine {
  --edge-fill: #16140f;
  margin-top: 1rem;
  color: var(--cream);
}

.combine h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  color: var(--cream);
}

.combine p {
  color: var(--cream-dim);
  max-width: 46rem;
}

/* Briefs */

.notice {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem 1rem 1.2rem;
  background: var(--paper-raised);
  border-radius: 0.9rem;
  box-shadow: inset 3px 0 0 var(--ink);
}

.notice p {
  color: var(--ink-soft);
  max-width: 62rem;
}

.notice strong {
  color: var(--ink);
  font-weight: 600;
}

.studies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.studies-fallback {
  grid-column: 1 / -1;
  color: var(--ink-soft);
}

.study {
  --edge-fill: var(--paper-raised);
  position: relative;
  overflow: hidden;
  border-radius: 1.3rem;
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow:
    0 16px 40px rgba(22, 20, 15, 0.045),
    0 0 42px var(--glow-shadow);
}

.study[data-hue="rose"] {
  --glow: rgba(255, 107, 134, 0.38);
  --glow-shadow: rgba(255, 107, 134, 0.16);
}

.study[data-hue="amber"] {
  --glow: rgba(255, 177, 90, 0.4);
  --glow-shadow: rgba(255, 177, 90, 0.18);
}

.study[data-hue="mint"] {
  --glow: rgba(125, 255, 224, 0.32);
  --glow-shadow: rgba(80, 190, 170, 0.16);
}

.study[data-hue="violet"] {
  --glow: rgba(176, 150, 255, 0.4);
  --glow-shadow: rgba(150, 130, 255, 0.18);
}

.study::after {
  content: "";
  position: absolute;
  width: 68%;
  height: 48%;
  right: -8%;
  top: -18%;
  background: radial-gradient(circle at 70% 40%, var(--glow), transparent 68%);
  pointer-events: none;
}

.study > * {
  position: relative;
  z-index: 1;
}

.study-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.badge,
.line-tag,
.metrics-note,
.offer-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  max-width: 70%;
}

.badge-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.line-tag {
  margin: 0;
  white-space: nowrap;
}

.study h3 {
  margin-top: 0.85rem;
  font-size: clamp(2.05rem, 3vw, 2.7rem);
}

.study h3 .kicker {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta {
  margin-top: 0.45rem;
  color: var(--ink-soft);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.95rem 0 0;
}

.facts li {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.7);
}

.study h4 {
  margin: 1.15rem 0 0.3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.study h4 + p {
  color: var(--ink);
}

.chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1rem;
}

.chip {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(22, 20, 15, 0.05);
}

.chip b {
  font-weight: 600;
}

.metrics-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.2rem 0 0.7rem;
}

.metrics-note::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--spectral);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.metric dt {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 400;
}

.metric dd {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}

.footnote {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Process */

.steps {
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
}

/* Engagement */

.offers {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}

.offer {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: transparent;
}

.offer-kicker {
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.offer-span {
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.offer .text-link {
  display: inline-block;
  margin-top: 1.1rem;
}

.who {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  gap: 1rem 1.75rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  align-items: start;
}

.who p {
  margin-top: 0;
  max-width: 40rem;
}

/* Close */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: var(--cream);
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.cta-glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: min(52rem, 80%);
  height: 140%;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(255, 107, 134, 0.38), transparent 56%),
    radial-gradient(ellipse at 42% 62%, rgba(126, 200, 255, 0.3), transparent 52%),
    radial-gradient(ellipse at 60% 28%, rgba(255, 177, 90, 0.22), transparent 48%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-mail {
  margin-top: 1rem;
  color: var(--cream-dim);
}

.site-footer {
  background: var(--hero);
  color: var(--cream-dim);
  padding: 0 0 1.6rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
  padding-top: 1.15rem;
}

.site-footer a {
  color: var(--cream);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  html:not(.has-gl) .aura-fallback {
    animation: aura-drift 26s ease-in-out infinite alternate;
    transform-origin: 72% 28%;
  }

  .study {
    transition: transform 0.25s ease;
  }

  .study:hover {
    transform: translateY(-3px);
  }

  .btn,
  .site-header {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
}

@keyframes aura-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.05) translate3d(-1.5%, 1.2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .aura-fallback {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(22, 20, 15, 0.55);
    --muted: #3a342c;
    --ink-soft: #241f1a;
  }

  .offer,
  .study,
  .tool-panel {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .aura-canvas,
  .aura-fallback,
  .cta-glow,
  .hero-scrim,
  .study::after {
    display: none;
  }

  .hero,
  .cta,
  .site-footer,
  .combine {
    background: Canvas;
    color: CanvasText;
  }

  .btn,
  .study,
  .offer,
  .tool-panel,
  .notice {
    border: 1px solid CanvasText;
  }
}

@media (max-width: 1040px) {
  .offers,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .offers .offer-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.35rem var(--gutter) 1.1rem;
    background: #0c0b09;
    color: var(--cream);
  }

  .site-header.is-solid .site-nav {
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .site-header:has(.site-nav.is-open) {
    background: #0c0b09;
  }

  .site-header.is-solid:has(.site-nav.is-open) {
    background: rgba(244, 240, 231, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    font-size: 1.2rem;
    padding: 0.65rem 0;
    font-family: var(--serif);
    letter-spacing: -0.02em;
  }
}

@media (max-width: 800px) {
  .split,
  .leak-list,
  .outcomes,
  .tool-grid,
  .studies,
  .who {
    grid-template-columns: 1fr;
  }

  .prism-art {
    max-width: 20rem;
  }

  .badge {
    max-width: none;
  }

  .section-head h2,
  .cta h2,
  .hero h1 {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }
}

@media (max-width: 640px) {
  .steps,
  .offers {
    grid-template-columns: 1fr;
  }

  .offers .offer-lead {
    grid-column: auto;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .study-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .line-tag {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .btn-nav {
    padding-inline: 0.7rem;
  }
}
