/* ADWISE: paper, ink and red-pen accents. A ledger, not a template. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("fonts/fragment-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #eeeae1;
  --paper-hi: #f7f4ed;
  --paper-lo: #e3ddd0;
  --ink: #16150f;
  --ink-soft: #35322a;
  --muted: #5c574c;
  --rule: #c9c1b0;
  --signal: #b9381a;
  --signal-deep: #a3301a;
  --signal-on-dark: #f0714a;
  --on-dark: #eeeae1;
  --on-dark-muted: #b0aa9b;
  --rule-dark: rgba(238, 234, 225, 0.18);

  --serif: "Newsreader", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1320px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (min-width: 600px) {
  :root { --gutter: clamp(24px, 4vw, 56px); --header-h: 72px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* paper grain: an inline SVG tile on the body (no network request, no overlay layer) */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.31 0 0 0 0 0.24 0 0 0 0.11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

a { color: inherit; }

::selection { background: var(--signal); color: var(--paper-hi); }

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

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker-num {
  color: var(--signal);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper-hi);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .i-arrow {
  width: 18px; height: 18px;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.btn:hover .i-arrow { transform: translateX(4px); }
.btn:hover { --btn-bg: var(--signal); --btn-bd: var(--signal); }

.btn--small { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper-hi); --btn-bd: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.2s ease;
}
.text-link:hover { text-underline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 234, 225, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.16em;
}
.brand svg { width: 28px; height: 28px; flex: none; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta-item { display: none; }
.nav-list a.btn { color: var(--btn-fg); }
.nav-list a.btn::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle .bars { position: relative; width: 22px; height: 12px; }
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle .bars::before { top: 2px; }
.menu-toggle .bars::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 5.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 5.5px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 4px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 24px 40px -24px rgba(22, 21, 15, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s;
  }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--serif);
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .js .nav-list a::after { display: none; }
  .js .nav-cta-item { display: block; padding-top: 20px; }
  .js .nav-list .nav-cta-item a.btn {
    color: var(--btn-fg);
    display: flex;
    width: 100%;
    padding: 0 22px;
    border-bottom: 1px solid var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
  }
  .js .header-cta { display: none; }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 144px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .kicker { grid-column: 1 / span 3; padding-top: 0.9em; }
.section-head h2 { grid-column: 4 / -1; }
.section-head .section-intro { grid-column: 4 / span 6; }

.section h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 17ch;
  text-wrap: balance;
}
.section-intro {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  max-width: 54ch;
}

@media (max-width: 860px) {
  .section-head { display: block; }
  .section-head .kicker { display: flex; margin-bottom: 18px; padding-top: 0; }
  .section-head h2 { margin-bottom: 18px; }
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section--dark .kicker { color: var(--on-dark-muted); }
.section--dark .kicker-num { color: var(--signal-on-dark); }
.section--dark .section-intro { color: var(--on-dark-muted); }
.section--dark :focus-visible { outline-color: var(--signal-on-dark); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(28px, 4.5vw, 64px) 0 clamp(72px, 9vw, 128px);
  overflow: clip;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(28px, 4.5vw, 64px);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.75rem, 7.6vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
@media (max-width: 600px) {
  .hero-title { font-size: min(10vw, 2.75rem); line-height: 1.02; }
}
.hero-title .line {
  display: block;
  animation: rise 1s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 110ms + 80ms);
}
.hero-title em {
  font-style: italic;
  font-weight: 340;
  padding-right: 0.06em;
  background-image:
    linear-gradient(var(--signal), var(--signal)),
    linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 0.02em), 0 calc(100% - 0.11em);
  background-size: 0% 0.045em, 0% 0.045em;
  animation: underline 0.9s var(--ease) forwards;
  animation-delay: 0.85s;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  align-items: start;
  margin-top: clamp(36px, 5vw, 72px);
}
.hero-copy {
  grid-column: 1 / span 5;
  animation: rise 1s var(--ease) both;
  animation-delay: 0.45s;
}
.statement { grid-column: 7 / -1; }

.strike-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.strike-row s {
  text-decoration: none;
  color: var(--ink-soft);
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 56%;
  background-size: 0% 1.5px;
  animation: strike 0.5s var(--ease) forwards;
}
.strike-row s:nth-of-type(1) { animation-delay: 1.15s; }
.strike-row s:nth-of-type(2) { animation-delay: 1.3s; }
.strike-row s:nth-of-type(3) { animation-delay: 1.45s; }

.hero-lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}

/* ledger margin lines, desktop only */
@media (min-width: 1180px) {
  .hero::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc((100% - min(var(--max), 100% - 2 * var(--gutter))) / 2 - 28px);
    width: 4px;
    border-left: 1px solid rgba(185, 56, 26, 0.45);
    border-right: 1px solid rgba(185, 56, 26, 0.45);
  }
}

@media (max-width: 960px) {
  .hero-copy, .statement { grid-column: 1 / -1; }
}

/* ---------- Statement (illustrative waterfall, no figures) ---------- */

.statement {
  position: relative;
  z-index: 0;
  isolation: isolate;
  margin: 0;
  animation: rise 1s var(--ease) both;
  animation-delay: 0.3s;
}
.statement::before {
  content: "";
  position: absolute;
  inset: 10px 0 -10px 10px;
  z-index: -1;
  border: 1px solid var(--rule);
  background: var(--paper-lo);
}
@media (min-width: 961px) {
  .statement::before { inset: 14px -14px -14px 14px; transform: rotate(0.8deg); }
}

.statement-sheet {
  position: relative;
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid var(--ink);
  background: var(--paper-hi);
}

.statement-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.statement-head .tag { color: var(--muted); }

.ledger {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 9.5em) 1.1em minmax(0, 1fr) 3.9em;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-bottom: 1px dotted var(--rule);
}
.l-label {
  font-size: 0.9375rem;
  line-height: 1.25;
}
.l-sign {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}
.l-track {
  position: relative;
  height: 14px;
}
.l-track i {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--a) * 1%);
  width: calc((var(--b) - var(--a)) * 1%);
  background: var(--ink);
  transform-origin: left center;
  animation: grow 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms + 0.55s);
}
.ledger .cost .l-track i {
  background: repeating-linear-gradient(135deg, var(--ink) 0 1.2px, transparent 1.2px 5px);
  box-shadow: inset 0 0 0 1px var(--ink);
  transform-origin: right center;
}
.l-tag {
  justify-self: end;
  padding: 2px 6px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.l-tag--us {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--paper-hi);
}

.ledger .total {
  margin-top: 6px;
  border-top: 1px solid var(--ink);
  border-bottom: 0;
  min-height: 52px;
}
.ledger .total .l-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}
.ledger .total .l-track { height: 18px; }
.ledger .total .l-track i { background: var(--signal); }
.ledger-rule {
  height: 5px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.statement figcaption {
  margin-top: 18px;
  text-wrap: pretty;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .ledger li { grid-template-columns: minmax(0, 7.4em) 0.9em minmax(0, 1fr) 3.6em; gap: 8px; }
  .l-label { font-size: 0.875rem; }
}

/* ---------- Channel index strip ---------- */

.index-strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.index-strip ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.index-strip li + li { border-left: 1px solid var(--rule); }
.index-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 0 clamp(12px, 2vw, 24px);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.index-strip li:first-child a { padding-left: 0; }
.index-strip a:hover { background: var(--paper-hi); }
.index-strip a span:last-child { color: var(--signal); }

@media (max-width: 760px) {
  .index-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-strip li:nth-child(3) { border-left: 0; }
  .index-strip li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .index-strip li:nth-child(3) a { padding-left: 0; }
  .index-strip a { min-height: 56px; font-size: 0.75rem; }
}

/* ---------- Channels ---------- */

.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.channel {
  position: relative;
  padding: clamp(28px, 3.6vw, 52px) clamp(24px, 3.6vw, 52px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.channel:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
.channel:nth-child(even) { padding-right: 0; }
.channel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.channel:hover::before { transform: scaleX(1); }

.channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.glyph {
  width: 48px; height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease);
}
.glyph .acc { stroke: var(--signal); }
.glyph .acc-fill { fill: var(--signal); stroke: var(--signal); }
.channel:hover .glyph { transform: translateY(-3px) rotate(-2deg); }

.channel-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.channel-sub {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.channel-desc {
  margin-top: 18px;
  max-width: 44ch;
  color: var(--ink-soft);
}

.ticks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.ticks li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.96875rem;
  line-height: 1.45;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 10px;
  height: 5px;
  border-top: 1px solid var(--signal);
  border-bottom: 1px solid var(--signal);
}

.footnote {
  margin-top: 28px;
  max-width: 80ch;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 800px) {
  .channels { grid-template-columns: 1fr; }
  .channel,
  .channel:nth-child(odd),
  .channel:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
}

/* ---------- Method ---------- */

.method {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--on-dark);
}
.m-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 24px;
  padding: clamp(28px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--rule-dark);
}
.m-key {
  grid-column: 1 / span 1;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--signal-on-dark);
  padding-top: 0.7em;
}
.m-row h3 {
  grid-column: 2 / span 4;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.m-body { grid-column: 7 / -1; }
.m-body p { color: var(--on-dark-muted); max-width: 58ch; }
.m-body p + p { margin-top: 12px; }
.m-lead {
  color: var(--on-dark) !important;
  font-size: 1.1875rem;
  line-height: 1.45;
}
.m-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px !important;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-dark) !important;
}
.m-rule::before {
  content: "";
  flex: none;
  width: 22px;
  height: 5px;
  border-top: 1px solid var(--signal-on-dark);
  border-bottom: 1px solid var(--signal-on-dark);
}

@media (max-width: 860px) {
  .m-row { display: block; }
  .m-key { display: block; padding-top: 0; margin-bottom: 10px; }
  .m-row h3 { margin-bottom: 16px; }
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 36px 24px 0 0;
  border-top: 1px solid var(--ink);
}
.step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
@media (min-width: 1101px) {
  .steps { grid-template-rows: repeat(4, auto); }
  .step { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .step .step-out { align-self: start; }
}
.step:nth-child(n + 4)::before { background: var(--signal); border-color: var(--signal); }
.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--signal);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.625rem, 2.2vw, 2.125rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.step p { color: var(--ink-soft); font-size: 0.96875rem; }
.step .step-out {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dotted var(--rule);
  font-size: 0.875rem;
  color: var(--ink);
}
.step-out b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.loop-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(36px, 4vw, 56px);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.loop-note svg { width: 34px; height: 18px; flex: none; color: var(--signal); }

@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; }
  .step {
    display: grid;
    grid-template-columns: minmax(0, 2.75rem) minmax(0, 1fr);
    gap: 0 20px;
    padding: 28px 0 32px 0;
    border-top: 1px solid var(--rule);
  }
  .step:first-child { border-top-color: var(--ink); }
  .step::before { display: none; }
  .step-num { grid-row: 1 / span 3; margin: 0; font-size: 0.875rem; padding-top: 0.6em; }
  .step > :not(.step-num) { grid-column: 2; }
  .step p, .step .step-out { max-width: 60ch; }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
}
.faq-head { grid-column: 1 / span 4; }
.faq-head .kicker { margin-bottom: 18px; }
.faq-head p:not(.kicker) { margin-top: 20px; color: var(--ink-soft); max-width: 32ch; }
.faq-list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }

.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.3125rem, 1.9vw, 1.6875rem);
  line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover .q { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.plus {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background-color 0.2s ease;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--ink);
  transition: background-color 0.2s ease;
}
.plus::after { transform: rotate(90deg); }
details[open] .plus { transform: rotate(45deg); background: var(--ink); }
details[open] .plus::before, details[open] .plus::after { background: var(--paper); }
.faq-a { padding: 0 52px 26px 0; color: var(--ink-soft); max-width: 62ch; }
.faq-a p + p { margin-top: 10px; }
.faq-a a { text-decoration-color: var(--signal); text-underline-offset: 3px; }

@media (max-width: 900px) {
  .faq-grid { display: block; }
  .faq-head { margin-bottom: 36px; }
  .faq-a { padding-right: 0; }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--signal);
  color: var(--paper-hi);
  overflow: clip;
}
.contact .kicker,
.contact .kicker-num { color: var(--paper-hi); }
.contact :focus-visible { outline-color: var(--paper-hi); }
.contact ::selection { background: var(--ink); color: var(--paper-hi); }

.contact-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 24px;
}
.contact-inner > .kicker { grid-column: 1 / span 3; padding-top: 0.9em; align-self: start; }
.contact-main { grid-column: 4 / -1; }
.contact h2 {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(2.5rem, 6vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.contact-lede {
  margin-top: 24px;
  max-width: 50ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: rgba(247, 244, 237, 0.92);
}

.contact-card {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid rgba(247, 244, 237, 0.55);
}
.contact-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-hi);
}
.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.75rem, 5.4vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper-hi);
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.4s var(--ease);
}
.contact-email:hover { background-size: 0% 1px; background-position: 100% 100%; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 30px;
}
.contact .btn { --btn-bg: var(--ink); --btn-fg: var(--paper-hi); --btn-bd: var(--ink); }
.contact .btn:hover { --btn-bg: var(--paper-hi); --btn-fg: var(--ink); --btn-bd: var(--paper-hi); }
.contact .btn--ghost { --btn-bg: transparent; --btn-fg: var(--paper-hi); --btn-bd: rgba(247, 244, 237, 0.8); }
.contact .btn--ghost:hover { --btn-bg: var(--paper-hi); --btn-fg: var(--ink); --btn-bd: var(--paper-hi); }
.btn .i-copy { width: 17px; height: 17px; flex: none; }

.copy-status {
  min-height: 1.5em;
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--paper-hi);
}

@media (max-width: 860px) {
  .contact-inner { display: block; }
  .contact-inner > .kicker { display: flex; margin-bottom: 18px; padding-top: 0; }
}
@media (max-width: 480px) {
  .contact-actions .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(48px, 6vw, 80px) 0 32px;
}
.site-footer :focus-visible { outline-color: var(--signal-on-dark); }
.footer-mark {
  width: 100%;
  height: auto;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.footer-mark text {
  font-family: var(--sans);
  font-weight: 800;
  fill: var(--on-dark);
}
.footer-mark .bar { fill: var(--signal-on-dark); }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 40px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}
.footer-row address { font-style: normal; }
.footer-row address span { white-space: nowrap; }
.footer-row a { color: var(--on-dark); text-decoration-color: var(--rule-dark); text-underline-offset: 3px; }
.footer-row a:hover { text-decoration-color: var(--signal-on-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-block; padding: 10px 0; }
.footer-row address a { display: inline-block; padding: 6px 0; }

/* ---------- Legal pages ---------- */

.legal-head {
  padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--ink);
}
.legal-head .kicker { margin-bottom: 18px; }
.legal-head h1 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.75rem, 6.4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.legal-meta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 9vw, 128px);
}
.legal-toc {
  grid-column: 1 / span 3;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.legal-toc p {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.legal-toc li { border-bottom: 1px solid var(--rule); }
.legal-toc a {
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink-soft);
}
.legal-toc a:hover { color: var(--signal); }

.prose { grid-column: 5 / span 7; max-width: 68ch; }
.prose .summary {
  padding: 22px 24px;
  margin-bottom: 40px;
  border: 1px solid var(--ink);
  background: var(--paper-hi);
}
.prose .summary p { color: var(--ink); }
.prose .summary ul { margin: 10px 0 0; }
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 48px 0 14px;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h2 .n {
  flex: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--signal);
}
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--signal); }
.prose a { text-decoration-color: var(--signal); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose address { font-style: normal; margin-top: 14px; color: var(--ink-soft); }

@media (max-width: 960px) {
  .legal-grid { display: block; }
  .legal-toc { display: none; }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - var(--header-h) - 260px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 120px) 0;
}
.notfound h1 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.notfound h1 em { font-style: italic; }
.notfound p:not(.kicker) { color: var(--ink-soft); max-width: 46ch; font-size: 1.125rem; }
.notfound .hero-actions { margin-top: 32px; }

/* ---------- Reveal on scroll (only when JS marks elements) ---------- */

.reveal-pre { opacity: 0; transform: translateY(22px); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
}

/* ---------- Keyframes ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes underline {
  to { background-size: 100% 0.045em, 100% 0.045em; }
}
@keyframes strike {
  to { background-size: 100% 1.5px; }
}
@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal-pre { opacity: 1; transform: none; }
}

@media print {
  body::before, .site-header, .menu-toggle { display: none; }
  .section--dark, .contact, .site-footer { background: none; color: #000; }
}
