/* Hallmark · macrostructure: Marquee Hero + editorial feature rows · tone: warm editorial · anchor hue: terracotta
 * Scentprint marketing styles. Tokens live in tokens.css (imported below).
 * Solid surfaces only. No glass, no page gradients, no neon, no third font.
 * Legal documents keep their own inline styles; the legal hub uses the classes
 * at the bottom of this file. */

@import url("tokens.css");

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-function);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-feeling);
  font-style: normal;
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* —— Header —— */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.35rem var(--gutter) 0;
  position: relative;
  z-index: 2;
}

.wordmark {
  font-family: var(--font-feeling);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; opacity: 0.85; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--accent); }

.site-header nav .nav-cta {
  color: var(--cream);
  background: var(--accent);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.site-header nav .nav-cta:hover { color: var(--cream); filter: brightness(1.07); }

/* Legacy dark-header variant kept for any page that still uses it */
.site-header--on-dark { position: absolute; left: 0; right: 0; top: 0; color: var(--cream); }
.site-header--on-dark .wordmark { color: var(--cream); }
.site-header--on-dark nav a { color: var(--cream-60); }
.site-header--on-dark nav a:hover { color: var(--cream); }

/* —— Buttons —— */

.btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-function);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  transition: transform var(--dur-fast) ease-out, filter var(--dur-fast) ease-out;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--cream); }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }

/* —— Hero —— */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter) var(--sect);
}

.hero-copy { animation: rise 800ms var(--ease-out) both; }

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 580;
  line-height: 1.02;
  margin: 0 0 1.4rem;
}

.hero-lede {
  margin: 0 0 2.1rem;
  max-width: 46ch;
  font-size: var(--text-lede);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-art {
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-art img { width: min(100%, 24rem); height: auto; }

@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 2.75rem; }
  .hero-art { order: -1; }
  .hero-art img { width: min(58vw, 15rem); }
}

/* —— Waitlist form —— */

.waitlist { max-width: 34rem; }

.waitlist-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.waitlist input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85rem 1.05rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist input[type="email"]:focus-visible { outline-offset: 0; border-color: var(--accent); }

/* Consent — deliberately legible, never pre-ticked, never hidden in small
 * print. The whole label is the hit target so a thumb can reach it. */
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.9rem 0 0;
  max-width: 44ch;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.12rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent a { color: var(--accent); }

.waitlist .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-note {
  margin: 0.8rem 0 0;
  font-size: var(--text-small);
  color: var(--muted);
  max-width: 44ch;
  text-wrap: pretty;
}

.waitlist-done {
  padding: 1rem 1.2rem;
  background: var(--highlight);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .waitlist-done { background: var(--night-card); }
}

/* —— Manifesto band —— */

.manifesto {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.manifesto-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--sect) var(--gutter);
}

.manifesto p {
  margin: 0;
  font-family: var(--font-feeling);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.5;
  text-wrap: pretty;
}

.manifesto p + p { margin-top: 1.2em; }

/* —— Feature rows —— */

.rows {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--sect) var(--gutter);
  display: grid;
  gap: var(--sect);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-row:nth-child(even) .feature-shot { order: 1; }

.feature-copy h2, .feature-copy h3 {
  font-size: var(--text-title);
  margin: 0 0 0.85rem;
}

.feature-copy p {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  text-wrap: pretty;
}

.feature-copy p + p { margin-top: 0.8em; }

.feature-copy .more {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.feature-shot { margin: 0; display: grid; justify-items: center; min-width: 0; }

.feature-shot img {
  width: min(100%, 21rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-shot figcaption {
  margin-top: 0.7rem;
  font-size: var(--text-tag);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 800px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
  .feature-row:nth-child(even) .feature-shot { order: 0; }
  .feature-shot img { width: min(100%, 17rem); }
}

/* —— Night band (archive, dark statements) —— */

.band-night {
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--page);
}

.band-night-inner {
  background: var(--night);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.75rem, 5vw, 3.5rem);
}

.band-kicker {
  margin: 0 0 1.2rem;
  font-size: var(--text-tag);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}

.band-count {
  margin: 0 0 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
}

.band-num {
  font-family: var(--font-feeling);
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.band-unit {
  font-family: var(--font-feeling);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 420;
  color: var(--cream-60);
}

.band-note { margin: 0; max-width: 34ch; color: var(--cream-60); font-size: 0.98rem; }

/* —— Founder pull —— */

.founder-pull {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--sect) var(--gutter);
  text-align: center;
}

.founder-pull blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--font-feeling);
  font-style: italic;
  font-size: clamp(1.35rem, 2.9vw, 1.9rem);
  font-weight: 420;
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.founder-pull cite {
  font-family: var(--font-function);
  font-style: normal;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.founder-pull cite a { color: inherit; }
.founder-pull cite a:hover { color: var(--accent); }

/* —— Subpage hero —— */

.page-hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
}

.page-hero .kicker {
  margin: 0 0 1rem;
  font-size: var(--text-tag);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-hero h1 { font-size: var(--text-display); max-width: 18ch; margin: 0 0 1.2rem; }

.page-hero .lede {
  margin: 0;
  max-width: 52ch;
  font-size: var(--text-lede);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* —— Long-form prose (technology, about) —— */

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sect);
}

.prose h2 {
  font-size: var(--text-title);
  margin: var(--sp-12) 0 0.9rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin: 0 0 1em; color: var(--ink); text-wrap: pretty; }
.prose p.quiet { color: var(--muted); }

.prose .rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-12) 0;
}

/* —— Values —— */

.value-grid {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sect);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.value-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}

.value-card p { margin: 0; color: var(--muted); font-size: 0.98rem; text-wrap: pretty; }

@media (max-width: 700px) {
  .value-grid { grid-template-columns: minmax(0, 1fr); }
}

/* —— Socials —— */

.socials {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: var(--text-small);
}

.socials a { font-weight: 500; }

/* —— End-cap waitlist —— */

.cta-cap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sect);
}

.cta-cap-inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 3.75rem);
  display: grid;
  gap: 1.6rem;
}

.cta-cap h2 { font-size: var(--text-title); max-width: 22ch; margin: 0; }

/* —— Footer —— */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--sp-8);
}

.site-footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 4.5rem) var(--gutter) 2.5rem;
}

.footer-line {
  font-family: var(--font-feeling);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 2.2rem;
  max-width: 20ch;
  text-wrap: balance;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.footer-col h2 {
  font-family: var(--font-function);
  font-size: var(--text-tag);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }

.footer-base {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: var(--text-small);
  color: var(--muted);
}

.footer-base p { margin: 0; }

.footer-note {
  margin: 2rem 0 0;
  max-width: 52ch;
  font-size: var(--text-small);
  color: var(--muted);
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* —— Legal hub (legal.html) —— */

.legal-page { min-height: 100dvh; display: flex; flex-direction: column; }

.legal-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}

.legal-card {
  width: min(100%, 28rem);
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-align: center;
}

.legal-card .wordmark { display: inline-block; font-size: 2rem; margin-bottom: 0.35rem; }
.legal-card .lede { margin: 0 0 1.75rem; color: var(--muted); font-size: 0.95rem; }
.legal-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.legal-note { margin: 1.5rem 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; text-align: left; }
.legal-note a { font-weight: 500; }

/* —— Motion —— */

@keyframes rise {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Atmosphere: vellum grain over everything —— */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* —— Atmosphere: scent ripples breathing behind the mark —— */

.hero-art { position: relative; }

.hero-art::before {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%,
    transparent 0 2.6rem,
    color-mix(in srgb, var(--accent) 22%, transparent) 2.6rem calc(2.6rem + 1px),
    transparent calc(2.6rem + 1px) 5.2rem);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85), transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85), transparent 68%);
  animation: ripple-breathe 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-art img { position: relative; animation: spin-slow 160s linear infinite; }

@keyframes ripple-breathe {
  from { transform: scale(0.96); opacity: 0.5; }
  to { transform: scale(1.05); opacity: 0.95; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.band-night-inner { position: relative; overflow: hidden; }

.band-night-inner::after {
  content: "";
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%,
    transparent 0 2.2rem,
    rgba(206, 139, 87, 0.18) 2.2rem calc(2.2rem + 1px),
    transparent calc(2.2rem + 1px) 4.4rem);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8), transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8), transparent 70%);
  pointer-events: none;
}

.band-night-inner > * { position: relative; }

/* —— Scroll reveals (classes added by site.js; no-JS never hides content) —— */

.reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}

.reveal.in { opacity: 1; transform: none; }

/* —— Screenshot crops (raw device captures, framed) —— */

.shot-crop {
  width: min(100%, 21rem);
  aspect-ratio: 9 / 17;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.shot-crop--card { aspect-ratio: 10 / 11; }

.feature-shot .shot-crop img,
.card-anatomy .shot-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--crop-y, 30%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-shot img,
.feature-shot .shot-crop {
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.feature-shot:hover img,
.feature-shot:hover .shot-crop { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }

/* —— Card anatomy (features.html#card) —— */

.card-anatomy {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sect);
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  scroll-margin-top: 2rem;
}

.card-anatomy-head h2 { font-size: var(--text-title); margin: 0 0 0.5rem; }

.card-anatomy .lede-small { margin: 0; color: var(--muted); max-width: 44ch; text-wrap: pretty; }

.card-piece {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.card-piece-copy { border-left: 2px solid var(--accent); padding-left: 1.05rem; }

.card-piece-copy h3 { font-size: 1.12rem; margin: 0 0 0.3rem; }

.card-piece-copy p { margin: 0; color: var(--muted); font-size: 0.97rem; max-width: 48ch; text-wrap: pretty; }

.shot-strip {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shot-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--crop-y, 50%);
}

@media (max-width: 800px) {
  .card-piece { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .shot-crop { width: min(100%, 17rem); }
}

/* —— Vision band (about.html) —— */

.vision {
  background: var(--night);
  color: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sect);
}

.vision-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--sect) var(--gutter);
}

.vision-line {
  margin: 0 0 1.4rem;
  font-family: var(--font-feeling);
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 480;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--cream);
  text-wrap: pretty;
}

.vision-note {
  margin: 0;
  color: var(--cream-60);
  max-width: 52ch;
  text-wrap: pretty;
}

/* —— Room tags + the six-room index —— */

.room-tag {
  margin: 0 0 0.5rem;
  font-size: var(--text-tag);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.rooms {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  counter-reset: room;
}

.rooms li { counter-increment: room; }

.rooms a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}

.rooms a::before {
  content: counter(room) " ";
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rooms a:hover { border-color: var(--accent); color: var(--accent); }

/* —— Blend visualisation carousel —— */

.viz {
  background: var(--night);
  color: var(--cream);
  padding: var(--sect) 0;
}

.viz {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  max-width: var(--page);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.viz .kicker { color: var(--ember); margin: 0 0 0.9rem; }

.viz h2 { font-size: var(--text-title); margin: 0 0 0.9rem; max-width: 18ch; color: var(--cream); }

.viz .lede-small { margin: 0; color: var(--cream-60); max-width: 46ch; text-wrap: pretty; }

.viz-legend {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--cream-60);
}

.viz-legend span {
  color: var(--cream);
  font-weight: 500;
  margin-right: 0.5rem;
}

.viz-stage { margin: 0; display: grid; justify-items: center; min-width: 0; }

.viz-frames {
  position: relative;
  width: min(100%, 19rem);
  aspect-ratio: 9 / 17;
  border: 1px solid rgba(246, 237, 222, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night-panel);
}

.viz-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

.viz-frame.is-on { opacity: 1; }

.viz-stage figcaption {
  margin-top: 0.9rem;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  font-size: var(--text-tag);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-40);
}

.viz-dots { display: flex; gap: 0.4rem; }

.viz-dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(246, 237, 222, 0.25);
  transition: background var(--dur-fast) ease-out;
}

.viz-dots i.is-on { background: var(--ember); }

@media (max-width: 800px) {
  .viz { grid-template-columns: minmax(0, 1fr); }
  .viz-frames { width: min(70vw, 17rem); }
}

/* —— Why a pyramid (features.html#pyramid) —— */

.pyramid-why {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.pyramid-why-inner {
  max-width: 58rem;
  margin: 0 auto;
  padding: var(--sect) var(--gutter);
}

.pyramid-why h2 { font-size: var(--text-title); margin: 0 0 0.9rem; max-width: 20ch; }

.pyramid-why .lede-small {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  color: var(--muted);
  font-size: var(--text-lede);
  line-height: 1.55;
  max-width: 52ch;
  text-wrap: pretty;
}

.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tier, var(--accent));
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* One accent, three weights of it — never three new hues. */
.tier-top { --tier: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tier-heart { --tier: color-mix(in srgb, var(--accent) 75%, var(--line)); }
.tier-base { --tier: var(--accent); }

.tier-label {
  margin: 0 0 0.35rem;
  font-size: var(--text-tag);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.tier h3 { font-size: 1.2rem; margin: 0 0 0.45rem; }

.tier p { margin: 0; color: var(--muted); font-size: 0.97rem; max-width: 60ch; text-wrap: pretty; }

.pyramid-note {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding-left: 1.05rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 60ch;
  text-wrap: pretty;
}

/* —— Stamps gallery —— */

.stamps {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--sect) var(--gutter);
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.stamps-head h2 { font-size: var(--text-title); margin: 0 0 0.8rem; max-width: 22ch; }

.stamps-head .lede-small { margin: 0; color: var(--muted); max-width: 56ch; text-wrap: pretty; }

.stamp-family {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

.stamp-family-copy h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }

.stamp-family-copy p { margin: 0; color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }

.stamp-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.1rem);
}

.stamp-row li { display: grid; justify-items: center; gap: 0.45rem; text-align: center; }

.stamp-row img {
  width: min(100%, 5.5rem);
  height: auto;
  transition: transform 0.35s var(--ease-out);
}

.stamp-row li:hover img { transform: translateY(-4px) scale(1.06) rotate(-2deg); }

.stamp-row span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 800px) {
  .stamp-family { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

@media (max-width: 460px) {
  .stamp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.1rem; }
}

/* —— Nav underline draw —— */

.site-header nav a:not(.nav-cta) { position: relative; }

.site-header nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease-out);
}

.site-header nav a:not(.nav-cta):hover::after,
.site-header nav a[aria-current="page"]::after { right: 0; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .hero-copy { animation: none; }
  html:not(.force-motion) .btn, html:not(.force-motion) .btn:active { transition: none; transform: none; }
  html:not(.force-motion) .hero-art::before, html:not(.force-motion) .hero-art img { animation: none; }
  html:not(.force-motion) .reveal { opacity: 1; transform: none; transition: none; }
  html:not(.force-motion) .feature-shot,
  html:not(.force-motion) .feature-shot img,
  html:not(.force-motion) .feature-shot .shot-crop { transition: none; transform: none !important; }
  html:not(.force-motion) .site-header nav a:not(.nav-cta)::after { transition: none; }
}
