/* ============================================================
   NOMA — v2 design system
   Editorial print-studio: cream paper, ink type, one magenta
   spot color. Identity carried from gonoma.ai (Geist + IBM
   Plex Mono, uppercase display, hairline grid) minus the
   scroll-jacking, blur stacks, and 3D renders.
   ============================================================ */

:root {
  /* Paper + ink (from the live Framer build) */
  --paper:      #fafaf8;
  --paper-2:    #f5f5f2;
  --ink:        #171717;
  --ink-soft:   #4f4f4f;
  --ink-faint:  #8a8a86;

  /* Spot color — used sparingly: hero keyword, eyebrow dots, focus.
     Deep magenta on light surfaces (~7:1 on paper); ink bands override
     it with a lighter variant of the same hue, since this value drops
     to ~2.3:1 on #171717. */
  --accent:     #a90859;

  /* Hairlines */
  --line:        rgba(23, 23, 23, 0.14);
  --line-soft:   rgba(23, 23, 23, 0.08);

  /* Type */
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* Ink band scope — sections that flip to black flip these */
.band--ink {
  --paper:     #171717;
  --paper-2:   #1f1f1f;
  --ink:       #f5f5f2;
  --ink-soft:  rgba(245, 245, 242, 0.64);
  --ink-faint: rgba(245, 245, 242, 0.38);
  --line:      rgba(245, 245, 242, 0.18);
  --line-soft: rgba(245, 245, 242, 0.10);
  --accent:    #ef5a96; /* lighter magenta, ~5.6:1 on #171717 */
  background: var(--paper);
  color: var(--ink);
}

/* On ink bands the accent is light, so accent-filled surfaces need
   dark text instead of white. */
.band--ink ::selection { color: var(--paper); }
.band--ink .btn--solid:hover { color: var(--paper); }

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

/* Faint column rules across the page — the live site's grid, at a whisper */
.page-rules {
  position: fixed;
  inset: 0;
  margin: 0 auto;
  max-width: var(--maxw);
  pointer-events: none;
  z-index: 0;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(to right,
      transparent calc(33.333% - 0.5px), rgba(23,23,23,0.05) 33.333%, transparent calc(33.333% + 0.5px),
      transparent calc(66.666% - 0.5px), rgba(23,23,23,0.05) 66.666%, transparent calc(66.666% + 0.5px));
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 6.5vw, 96px);
  border-top: 1px solid var(--line);
}
.section--tight { padding-block: clamp(44px, 5vw, 72px); }
.section--flush { border-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

/* Results: case study (narrative block + metric stack) */
.case + .case { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.case-metrics { display: grid; gap: clamp(22px, 2.6vw, 34px); align-content: start; }
.case-metric .figure {
  font-weight: 800;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
}
.case-metric .label {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: 22px; }
.stack-sm > * + * { margin-top: 12px; }
.measure { max-width: 62ch; }

/* ---------- Type ---------- */

/* Eyebrow: mono caps with a blue tick — carried from the live build */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.display {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-size: clamp(34px, 8.2vw, 118px);
  text-wrap: balance;
}
.display--sub { font-size: clamp(34px, 5.6vw, 80px); }

.h2 {
  font-weight: 750;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.8vw, 52px);
  text-wrap: balance;
}

.h3 {
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-size: clamp(20px, 2.2vw, 26px);
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.accent { color: var(--accent); }

.mono-note {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* Big pull-quote (the founder quote) */
.pullquote {
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pullquote .qmark { color: var(--accent); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .18s ease; font-family: var(--sans); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .18s ease, color .18s ease;
}
.link:hover { border-color: var(--accent); color: var(--accent); }
.link .arrow { transition: transform .18s ease; }
.link:hover .arrow { transform: translateX(4px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-tag {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-top: 4px;
  white-space: nowrap;
}
/* Hide the tagline before the nav gets tight, so it only shows with room to breathe */
@media (max-width: 1120px) { .brand-tag { display: none; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .16s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.nav-label-full { display: none; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 11px 20px; }

/* Compact CTA shown only on mobile, where the full header button is hidden */
.btn--mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 10px 16px;
  cursor: pointer;
}

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

.hero {
  padding-block: clamp(60px, 8vw, 112px) clamp(48px, 6vw, 84px);
}
.hero .display { max-width: 14ch; margin-top: 30px; }
.hero .lede { margin-top: 30px; }
.hero-actions { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stat strip — static, hairline-framed, mono */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}
.ticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker-row .sep { color: var(--accent); padding-inline: 18px; }

/* Load-in reveal — pure CSS, runs once, never hides content on scroll */
.reveal > * {
  animation: rise .7s cubic-bezier(.2,.65,.25,1) both;
}
.reveal > *:nth-child(1) { animation-delay: .05s; }
.reveal > *:nth-child(2) { animation-delay: .14s; }
.reveal > *:nth-child(3) { animation-delay: .23s; }
.reveal > *:nth-child(4) { animation-delay: .32s; }
.reveal > *:nth-child(5) { animation-delay: .41s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Numbered rows (method / steps) ---------- */

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(26px, 3.2vw, 42px);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background .18s ease;
}
.step:hover { background: var(--paper-2); }
.step .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.step h3 + p { margin-top: 10px; }

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(24px, 2.6vw, 34px);
}
.card .index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.card h3 { margin-top: 16px; }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* Card that acts as a link (homepage offering teasers) */
.card--link {
  display: block;
  transition: border-color .18s ease, background .18s ease;
}
.card--link:hover { border-color: var(--accent); background: var(--paper-2); }
.card--link .h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Compact method teaser (homepage; full steps live on approach.html) */
.mini-step {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.mini-step .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.mini-step .h3 { margin-top: 10px; }

/* Outcome words — three giant verbs */
.outcomes { border-top: 1px solid var(--line); }
.outcome {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 3.4vw, 46px);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background .18s ease;
}
.outcome:hover { background: var(--paper-2); }
.outcome .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.outcome .word {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(30px, 4.4vw, 60px);
}
.outcome p { color: var(--ink-soft); }

/* ---------- Offer rows ---------- */

.offer {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(34px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .18s ease;
}
.offer:first-child { border-top: 1px solid var(--line); }
.offer:hover { background: var(--paper-2); }
.offer .num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 8px; }
.offer h3 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-transform: uppercase; font-weight: 750; letter-spacing: -0.01em; font-size: clamp(22px, 2.6vw, 32px); }
.offer .meta { display: grid; gap: 18px; }
.offer .meta dt, .dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.offer .meta dd { margin: 5px 0 0; }

.pill {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  font-weight: 400;
}
.pill--accent { color: var(--accent); border-color: var(--accent); }

/* ---------- Stats / proof ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.stat {
  padding: clamp(24px, 2.6vw, 38px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .figure {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
}
.stat .label {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Ledger table */
.ledger { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.ledger th, .ledger td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.ledger th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}
.ledger td:last-child { font-family: var(--mono); font-size: 14px; text-align: right; white-space: nowrap; }
.ledger tr.total td { font-weight: 700; padding-block: 22px; border-bottom: 0; }
.ledger tr.total td:last-child { color: var(--accent); }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band .h2, .cta-band .display--sub { margin-inline: auto; max-width: 18ch; }
.cta-band .lede { margin: 22px auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Form ---------- */

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  padding: 10px 2px 12px;
  transition: border-color .16s ease;
  appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: 10px; }

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

.site-footer {
  background: #171717;
  color: #f5f5f2;
  padding-top: clamp(44px, 5.5vw, 72px);
  overflow: hidden;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-footer .tagline { color: rgba(245,245,242,0.6); margin-top: 14px; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,245,242,0.4);
  font-weight: 400;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(245,245,242,0.72);
  transition: color .16s ease;
}
.footer-col a:hover { color: #fff; }

.footer-mark {
  margin-top: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.78;
  font-size: clamp(96px, 19vw, 280px);
  color: rgba(245,245,242,0.95);
  user-select: none;
  text-indent: -0.068em;   /* pull the "N" ink flush-left so it aligns with the lines beneath it */
}
.footer-identity {
  font-family: var(--mono);
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,245,242,0.55);
  margin-top: 10px;
}

.footer-base {
  border-top: 1px solid rgba(245,245,242,0.16);
  margin-top: -6px;
  padding-block: 20px 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,245,242,0.4);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .offer { grid-template-columns: 1fr; gap: 16px; }
  .offer .num { padding-top: 0; }
  .outcome { grid-template-columns: 48px 1fr; }
  .outcome p { grid-column: 2; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; }

  .nav-links, .nav-cta .btn { display: none; }
  .nav-cta .btn--mobile { display: inline-flex; padding: 10px 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
  }
  .nav-links.open .nav-label-short { display: none; }
  .nav-links.open .nav-label-full { display: inline; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .ticker-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ticker-row .sep { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .reveal > * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Motion layer — scroll reveal, hover polish, condensing header,
   stat marquee. Inspired by austere defense-tech sites (sequential
   numbered reveals, count-up numerics, precise hover states) but
   kept inside Noma's cream editorial system. Hidden states apply
   only under .js-motion, so no-JS / reduced-motion = full static page.
   ============================================================ */

/* Scroll reveal */
.js-motion .reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s cubic-bezier(.2,.65,.25,1),
    transform .7s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js-motion .reveal-init.is-in { opacity: 1; transform: none; }

/* Condensing, elevating sticky header */
.site-header { transition: background .25s ease, box-shadow .25s ease; }
.nav { transition: height .25s ease; }
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(23,23,23,.06);
}
.site-header.is-scrolled .nav { height: 60px; }

/* Nav links: underline draws in from the left */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s cubic-bezier(.2,.65,.25,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { border-bottom: 0; padding-bottom: 3px; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Card hover lift (link cards) + gentle lift on plain cards */
.card {
  transition:
    border-color .18s ease, background .18s ease,
    transform .24s cubic-bezier(.2,.65,.25,1), box-shadow .24s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(23,23,23,.08); }

/* Stat marquee — seamless, pauses on hover */
.ticker[data-marquee] { overflow: hidden; }
.ticker[data-marquee] .marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  will-change: transform;
  animation: marquee 60s linear infinite;
}
.ticker[data-marquee]:hover .marquee-track { animation-play-state: paused; }
.ticker[data-marquee] .marquee-group { display: inline-flex; align-items: center; }
.ticker[data-marquee] .m-item { padding-block: 2px; }
.ticker[data-marquee] .sep { color: var(--accent); padding-inline: 52px; }
@keyframes marquee {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker[data-marquee] .marquee-track { animation: none; }
}

/* Hero keyword cycle — word rolls within a fixed masked slot on its own line */
.hero-cycle {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
}
.hero-cycle-in {
  display: inline-block;
  line-height: 1;
  transition: transform .5s cubic-bezier(.2,.65,.25,1);
  will-change: transform;
}
.hero-cycle-in.swap-out  { transform: translateY(-110%); }
.hero-cycle-in.swap-prep { transform: translateY(110%); transition: none; }

/* Outcome verbs wipe up from behind their hairline rule */
.outcome .word { display: block; }
.js-motion .outcome .word { overflow: hidden; }
.js-motion .outcome .word-in {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .75s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform;
}
.js-motion .outcome.is-in .word-in { transform: translateY(0); }

/* Forwardable one-pager: results.html prints clean, advisors can save/forward as PDF */
.print-only { display: none; }

@media print {
  .site-header,
  .site-footer,
  .page-rules,
  .nav-toggle,
  .hero-actions,
  .cta-band,
  [data-no-print] { display: none !important; }

  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; }

  /* Neutralize the dark band so it reads (and prints) as part of one clean page */
  .band--ink { background: #fff !important; border-top: 1px solid #ddd; }
  .band--ink, .band--ink * { color: #000 !important; }

  .section { padding: 20px 0 !important; }
  .hero { padding-top: 8px !important; }

  .print-only { display: block !important; }
  .print-head { margin-bottom: 8px; }
  .print-head .brand { font-weight: 800; letter-spacing: 0.04em; font-size: 20px; }

  a[href]::after { content: ""; }       /* don't append raw URLs */
  @page { margin: 1.4cm; }
}
