/* Sphere Media · website styles
   Built from Brand Guidelines v1.2: Night / Paper grounds, one violet moment,
   Raleway for headlines and figures, Roboto for everything else.
   Square corners; pills only for buttons and tags. No gradients, shadows or glows. */

:root {
  /* Core */
  --violet: #CB6CE6;   /* Sphere Violet: on Night only for text */
  --night: #100C14;
  --paper: #FAF8FB;
  /* Supporting violets */
  --orchid: #8E4CA1;   /* violet text on light grounds */
  --petal: #D9A3EC;    /* small accent text on Night */
  --bloom: #F2DAF9;    /* highlight tint on Paper */
  /* Neutrals (plum-tinted) */
  --ink: #17121B;
  --dusk: #3A2F42;
  --graphite: #5C5462;
  --smoke: #8C8393;
  --haze: #B9AFC0;
  --line: #DDD3E3;
  --mist: #F1ECF4;

  --display: "Raleway", Arial, sans-serif;
  --text: "Roboto", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* ease-out */
  --header-h: 96px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--bloom); color: var(--ink); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.paper :focus-visible, .mist :focus-visible { outline-color: var(--orchid); }

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

.sr-only {
  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: 16px; top: -60px; z-index: 100;
  background: var(--violet); color: var(--night);
  padding: 10px 18px; border-radius: 999px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Grounds ---------- */
.night { background: var(--night); color: var(--paper); }
.paper { background: var(--paper); color: var(--ink); }
.mist  { background: var(--mist);  color: var(--ink); }

.section { padding-block: var(--section-y); position: relative; }

/* ---------- Type scale ---------- */
.display, .h1, .h3, .stat-num, .price, .package-name, .person-name, .footer-line {
  font-family: var(--display);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.display {
  font-weight: 800;
  font-size: clamp(44px, 2rem + 5.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.h1 {
  font-weight: 800;
  font-size: clamp(30px, 1.4rem + 1.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-wrap: balance;
}

.h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
}

.lead {
  font-weight: 300;
  font-size: clamp(18px, 1rem + 0.3vw, 20px);
  line-height: 1.5;
  max-width: 60ch;
}
.lead.narrow { max-width: 52ch; margin-top: 20px; }

.label {
  font-family: var(--text);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orchid);
  margin-bottom: 20px;
}
.night .label { color: var(--petal); }

.source, .note {
  font-size: 13px;
  line-height: 20px;
  color: var(--graphite);
}
.night .source, .night .note { color: var(--haze); }
.note { margin-top: 40px; max-width: 70ch; }

.night .lead { color: var(--paper); }

/* ---------- Buttons (pills, on screen only) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
  white-space: nowrap;
}
.btn-violet { background: var(--violet); color: var(--night); }
.btn-violet:hover { background: var(--petal); }
.btn-ghost { border-color: var(--dusk); color: var(--paper); }
.btn-ghost:hover { border-color: var(--haze); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--orchid); color: var(--orchid); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--dusk);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
/* Clear space: at least 2x around the lockup (x = cap height of SPHERE) */
.brand { display: block; padding: 14px 0; flex: none; }
.brand img, .brand-mark { width: 152px; height: auto; }
.brand-mark { display: block; position: relative; }
.lockup { width: 100%; height: auto; }
.sphere-canvas { position: absolute; pointer-events: none; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav ul a {
  color: var(--haze); text-decoration: none; font-size: 15px;
  transition: color 300ms var(--ease);
}
.site-nav ul a:hover { color: var(--paper); }
.site-nav .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }

.menu-toggle {
  display: none;
  background: none; color: var(--paper);
  border: 1px solid var(--dusk); border-radius: 999px;
  font: 500 14px/1 var(--text); letter-spacing: 0.08em;
  padding: 12px 18px; cursor: pointer;
}

@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .brand img, .brand-mark { width: 132px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 24px;
    background: var(--night);
    border-bottom: 1px solid var(--dusk);
    padding: 16px var(--gutter) 28px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block; padding: 14px 0; font-size: 17px; color: var(--paper);
    border-bottom: 1px solid var(--dusk);
  }
  .site-nav .btn { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 12vw, 168px) clamp(72px, 9vw, 128px);
  min-height: min(88vh, 860px);
  display: flex; align-items: center;
}
.hero-inner { position: relative; z-index: 1; }
.hero .display { max-width: 9.5ch; }
.hero .lead { margin-top: 28px; max-width: 46ch; color: var(--haze); }

/* Cropped sphere: scaled up, cropped off the right edge, at least 40% in frame */
.hero-sphere {
  position: absolute;
  top: 50%;
  right: max(-16vw, -240px);
  width: min(58vw, 820px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.sphere-svg { width: 100%; height: 100%; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--dusk);
  max-width: 640px;
  color: var(--haze); font-size: 14px; line-height: 20px;
}
.hero-facts li { max-width: 17ch; }
.hero-facts strong {
  display: block; color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 30px;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}

@media (max-width: 960px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .hero-sphere {
    order: 2; flex: none;
    position: relative; top: auto; transform: none;
    width: 118vw; right: auto; left: 22vw;
    margin-top: 40px; margin-bottom: -38vw;
  }
  .hero .display { max-width: 8ch; }
}

/* Dots appear from the lit side, 0.6 s, ease-out */
@media (prefers-reduced-motion: no-preference) {
  .sphere-svg circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: dot-in 420ms var(--ease) both;
  }
  .sphere-svg .d1  { animation-delay: 30ms; }
  .sphere-svg .d2  { animation-delay: 70ms; }
  .sphere-svg .d3  { animation-delay: 110ms; }
  .sphere-svg .d4  { animation-delay: 150ms; }
  .sphere-svg .d5  { animation-delay: 190ms; }
  .sphere-svg .d6  { animation-delay: 230ms; }
  .sphere-svg .d7  { animation-delay: 270ms; }
  .sphere-svg .d8  { animation-delay: 310ms; }
  .sphere-svg .d9  { animation-delay: 350ms; }
  .sphere-svg .d10 { animation-delay: 390ms; }
  .sphere-svg .d11 { animation-delay: 430ms; }

  .hero-inner > * { animation: rise-in 500ms var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: 80ms; }
  .hero-inner > :nth-child(3) { animation-delay: 160ms; }
  .hero-inner > :nth-child(4) { animation-delay: 240ms; }
  .hero-inner > :nth-child(5) { animation-delay: 320ms; }

  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes dot-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Layout helpers ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split .lead { margin-top: 24px; }
.split-head { align-items: end; margin-bottom: 56px; }
.split-head .lead { margin-top: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-head { margin-bottom: 40px; }
}

/* Dots as bullets: circles from the sphere, never squares or ticks */
.dots li { position: relative; padding-left: 22px; }
.dots li + li { margin-top: 10px; }
.dots li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orchid);
}
.night .dots li::before, .package-focus .dots li::before { background: var(--violet); }

/* ---------- 01 What we do ---------- */
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font: 500 12px/28px var(--text); letter-spacing: 0.3em; color: var(--orchid);
}
.steps p { color: var(--graphite); }

/* ---------- Stat blocks: figure, meaning, source; 2 px Ink rule on top ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
}
.stat { border-top: 2px solid var(--ink); padding-top: 20px; }
.stat-num {
  font-weight: 800;
  font-size: clamp(40px, 1.6rem + 2.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.stat-text { margin-top: 12px; max-width: 30ch; }
.stat .source { margin-top: 16px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- 03 How it works ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--dusk);
}
.timeline li {
  position: relative;
  padding: 32px 24px 8px 0;
}
.timeline li::before {
  content: ""; position: absolute; top: -6px; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--violet);
}
.timeline li:nth-child(-n+3)::before { background: var(--violet); }
.timeline .when {
  font: 500 12px/16px var(--text); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--petal); margin-bottom: 10px;
}
.timeline p:not(.when) { color: var(--haze); margin-top: 8px; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--dusk); margin-left: 5px; }
  .timeline li { padding: 0 0 36px 32px; }
  .timeline li::before { top: 2px; left: -6px; }
}

/* ---------- 04 Sectors ---------- */
.sectors {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.sector .stat-num { font-size: clamp(36px, 1.4rem + 1.6vw, 44px); }
.sector .stat-text { color: var(--graphite); font-size: 14px; line-height: 22px; min-height: 44px; }
.sector .h3 { margin-top: 28px; }
.sector p:not(.stat-num):not(.stat-text):not(.source) { margin-top: 8px; }
@media (max-width: 1060px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; } }
@media (max-width: 600px)  { .sectors { grid-template-columns: 1fr; } .sector .stat-text { min-height: 0; } }

/* ---------- 05 Packages: Growth is the only package on Night ---------- */
.packages-section { padding-top: 0; }
.packages-section > .wrap { position: relative; padding-top: var(--section-y); }
.packages-section > .wrap::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--line);
}

.packages {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border: 1px solid var(--line);
}
.package {
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--paper);
}
.package + .package { border-left: 1px solid var(--line); }
.package-focus { background: var(--night); color: var(--paper); border-left-color: var(--night) !important; }
.package-focus + .package { border-left-color: var(--line); }

.package-name {
  font-weight: 700; font-size: 20px; line-height: 28px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tag {
  font: 500 11px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--violet); color: var(--night);
  padding: 6px 10px; border-radius: 999px;
}
.price {
  margin-top: 28px;
  font-weight: 800; font-size: clamp(44px, 1.8rem + 2vw, 56px); line-height: 1;
  letter-spacing: -0.01em; white-space: nowrap;
}
.price .cur { font-size: 0.4em; letter-spacing: 0.05em; vertical-align: 0.95em; margin-right: 2px; }
.package-focus .price { color: var(--violet); }
.per { margin-top: 8px; font-size: 13px; color: var(--graphite); }
.package-focus .per { color: var(--haze); }
.package .dots { margin: 28px 0 36px; padding-top: 24px; border-top: 1px solid var(--line); flex: 1; }
.package-focus .dots { border-top-color: var(--dusk); }
.package .btn { align-self: flex-start; }
.package-focus .btn-violet:focus-visible { outline-color: var(--violet); }

@media (max-width: 960px) {
  .packages { grid-template-columns: 1fr; }
  .package + .package { border-left: 0; border-top: 1px solid var(--line); }
}

.addons { margin-top: 48px; }
.addons dl {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.addons dl > div { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.addons dt { font-weight: 500; }
.addons dd { color: var(--graphite); font-size: 14px; margin-top: 4px; }
@media (max-width: 860px) { .addons dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .addons dl { grid-template-columns: 1fr; } }

/* ---------- 06 Range chart (log scale) ---------- */
.range-chart { margin-top: 8px; }
.rc-plot { position: relative; padding-top: 36px; padding-bottom: 40px; }
.rc-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--dusk);
  position: relative; z-index: 1;
}
.rc-gap + .rc-row { border-top: 1px solid var(--dusk); }
.rc-label { display: flex; flex-direction: column; padding-block: 12px; }
.rc-label strong { font-weight: 500; color: var(--paper); }
.rc-label span { font-size: 13px; line-height: 18px; color: var(--haze); }
.rc-label em {
  font-style: normal; font-size: 13px; line-height: 18px; color: var(--haze);
  margin-top: 4px; font-variant-numeric: tabular-nums;
}
.rc-us .rc-label strong { color: var(--violet); }
.rc-us .rc-label em { color: var(--petal); }

.rc-track { position: relative; height: 72px; }
.rc-bar {
  position: absolute; top: 50%; height: 12px; transform: translateY(-50%);
  left: var(--a); width: calc(var(--b) - var(--a));
  background: var(--smoke); border-radius: 999px;
  cursor: default; outline-offset: 4px;
}
.rc-us .rc-bar { background: var(--violet); height: 16px; }
.rc-bar::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--paper); color: var(--ink);
  font-size: 13px; line-height: 18px; white-space: nowrap;
  padding: 6px 10px;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease);
  z-index: 3;
}
.rc-bar:hover::after, .rc-bar:focus-visible::after { opacity: 1; }

.rc-marker {
  position: absolute; left: var(--a); top: 10px; bottom: 10px;
  width: 2px; margin-left: -1px; background: var(--paper);
}
.rc-marker span {
  position: absolute; top: -2px; left: 8px;
  font: 500 11px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper); white-space: nowrap;
}

/* The gap band and axis are positioned over the track column only */
.rc-gap, .rc-axis {
  position: absolute; left: calc(260px + 24px); right: 0;
}
.rc-gap {
  top: 0; bottom: 40px; z-index: 0;
}
.rc-gap::before {
  content: ""; position: absolute; top: 36px; bottom: 0;
  left: var(--a); width: calc(var(--b) - var(--a));
  background: var(--dusk); opacity: 0.55;
}
.rc-gap span {
  position: absolute; top: 12px; left: var(--a);
  font: 500 11px/1 var(--text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--petal);
}
.rc-axis { bottom: 0; height: 24px; }
.rc-axis span {
  position: absolute; left: var(--a); transform: translateX(-50%);
  font-size: 12px; color: var(--haze); font-variant-numeric: tabular-nums;
}
.range-chart > .source { margin-top: 20px; }

@media (max-width: 760px) {
  .rc-row { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .rc-label { padding-bottom: 0; }
  .rc-track { height: 44px; }
  .rc-gap, .rc-axis { left: 0; }
  .rc-gap span { top: 14px; }
  .rc-bar::after { display: none; }
  /* Growth marker: label sits centred under the bar, clear of it */
  .rc-us .rc-track { height: 64px; }
  .rc-us .rc-bar { top: 22px; }
  .rc-marker { top: 10px; bottom: auto; height: 24px; }
  .rc-marker span { top: auto; bottom: -20px; left: 50%; transform: translateX(-50%); }
}

/* ---------- 07 Pillars ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px; margin-top: 56px;
}
.pillars article { border-top: 1px solid var(--line); padding-top: 24px; position: relative; }
.pillars article::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%; background: var(--orchid);
}
.pillars p { color: var(--graphite); margin-top: 10px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; } }
@media (max-width: 600px)  { .pillars { grid-template-columns: 1fr; } }

/* ---------- 08 FAQ ---------- */
.faq-wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.faq-wrap .lead { margin-top: 20px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--orchid);
  transition: background-color 300ms var(--ease);
}
.faq details[open] summary::after { background: var(--orchid); }
.faq summary:hover { color: var(--orchid); }
.faq details p { padding: 0 0 24px; color: var(--graphite); max-width: 62ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Contact: halftone field, text on the empty side ---------- */
.contact {
  background: var(--night) url("/assets/halftone-violet.svg") no-repeat right top / min(52vw, 760px) auto;
  padding-block: clamp(96px, 12vw, 160px);
}
.contact-title { max-width: 11ch; }
.contact .lead { color: var(--haze); }

.people {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px; margin-top: 80px; max-width: 880px;
}
.person { border-top: 1px solid var(--dusk); padding-top: 20px; font-size: 15px; line-height: 24px; }
.person-name { font-weight: 800; font-size: 18px; line-height: 26px; }
.person-role {
  font: 500 12px/16px var(--text); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--petal); margin: 4px 0 12px;
}
.person a { color: var(--haze); text-decoration: none; border-bottom: 1px solid var(--dusk); }
.person a:hover { color: var(--paper); border-bottom-color: var(--haze); }
.person p:not(.person-name):not(.person-role) { color: var(--haze); }
@media (max-width: 760px) {
  .people { grid-template-columns: 1fr; margin-top: 56px; }
  .contact { background-size: 88vw auto; padding-top: calc(52vw + 24px); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--dusk); padding-top: 72px; }
.footer-inner {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 8vw, 120px);
  padding-bottom: 56px;
}
.footer-brand { padding: 8px 16px 8px 0; }
.footer-brand img { width: 112px; height: auto; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.footer-line { font-weight: 800; font-size: 24px; line-height: 32px; color: var(--paper); margin-bottom: 10px; }
.footer-cols p { color: var(--haze); max-width: 40ch; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: var(--haze); text-decoration: none; }
.footer-cols a:hover { color: var(--paper); }
.footer-base {
  border-top: 1px solid var(--dusk);
  padding-block: 24px 40px;
  display: grid; gap: 8px;
  font-size: 13px; line-height: 20px; color: var(--haze);
}
.footer-base .source { max-width: 110ch; }
@media (max-width: 760px) {
  .footer-inner, .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--night) url("/assets/halftone-dusk.svg") no-repeat right top / min(60vw, 900px) auto;
  color: var(--paper);
}
.notfound main { flex: 1; display: flex; align-items: center; padding-block: 80px; }
.notfound .lead { color: var(--haze); margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
