/* =====================================================================
   Crisis Shield — stylesheet
   Light editorial theme: bone paper, deep ink, ember accent, moss secondary.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --paper: #f5f1e8;
  --paper-2: #ece7db;
  --paper-3: #e3ddcf;
  --ink: #141b18;
  --ink-2: #384440;
  --muted: #6d7873;
  --faint: #a2aba5;
  --rule: #d7d0c1;
  --rule-2: #e5dfd2;
  --ember: #cf4f22;
  --ember-2: #e8683a;
  --moss: #235c4c;
  --moss-2: #163d33;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: 1.25rem;
  --max: 1240px;
  --radius: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
html.no-lenis { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { .wrap { padding-inline: 2.5rem; } }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }
.rule { height: 1px; background: var(--rule); }
.rule-ink { height: 1px; background: var(--ink); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.3;
}
.eyebrow-num { color: var(--ember); }
.eyebrow-row { display: flex; align-items: baseline; gap: 1rem; }
.display {
  font-family: var(--font-display); font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: clamp(3rem, 8.5vw, 6.75rem); line-height: 0.92; letter-spacing: -0.03em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--ember); }
.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(1.9rem, 4vw, 3.25rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--moss); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.measure { max-width: 58ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Motion primitives ---------- */
.reveal {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

.draw { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.draw.is-in { transform: scaleX(1); }

.mask { overflow: hidden; display: block; }
.mask > .line { display: block; transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.mask.is-in > .line { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal, .draw, .mask > .line { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 55; transform-origin: left; transform: scaleX(0); background: var(--ember); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 1rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; border-radius: 6px; }
.skip:focus { left: 1rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transform: translateY(-110%); transition: transform 0.6s var(--ease);
  background: rgba(245, 241, 232, 0.82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}
.header.is-visible { transform: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { width: 24px; height: 24px; flex-shrink: 0; }
.brand-tag { display: none; }
@media (min-width: 640px) { .brand-tag { display: inline; margin-left: 0.5rem; } }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-link { font-size: 0.8125rem; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.header-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.9375rem;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform; overflow: hidden; white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--moss-2); box-shadow: 0 12px 30px -12px rgba(20, 27, 24, 0.6); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ink); }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.8125rem; }
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn .price { opacity: 0.7; font-variant-numeric: tabular-nums; }
.link-under {
  position: relative; font-weight: 600; font-size: 0.9375rem; padding-bottom: 2px;
}
.link-under::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: right; transition: transform 0.45s var(--ease);
}
.link-under:hover::after { transform: scaleX(0); transform-origin: right; animation: underline-back 0.45s var(--ease) 0.25s forwards; }
@keyframes underline-back { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 6rem; overflow: hidden; }
@media (min-width: 768px) { .hero { padding-top: 8.5rem; } }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(207, 79, 34, 0.14), transparent 70%),
    radial-gradient(50% 40% at 10% 30%, rgba(35, 92, 76, 0.12), transparent 70%);
  filter: blur(20px);
}
.hero-grid { align-items: start; row-gap: 3rem; }
.hero-copy { grid-column: span 12; }
.hero-visual { grid-column: span 12; }
@media (min-width: 1024px) {
  .hero-copy { grid-column: 1 / span 7; }
  .hero-visual { grid-column: 8 / span 5; }
}
.accent-line { height: 1px; width: 4rem; background: var(--ember); }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 2.5rem; }
.hero-cta .btn { align-self: stretch; }
@media (min-width: 640px) { .hero-cta .btn { align-self: auto; } }
@media (min-width: 640px) { .hero-cta { flex-direction: row; align-items: center; gap: 1.75rem; } }
.hero-note { margin-top: 1.5rem; }
.hero-note .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--moss); margin-right: 0.5rem; vertical-align: middle; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* Cover object */
.cover-stage { perspective: 1400px; max-width: 22rem; margin-inline: auto; }
@media (min-width: 1024px) { .cover-stage { margin-inline: auto 0; } }
.cover {
  position: relative; aspect-ratio: 5 / 7; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #1b3a31 0%, #0f2620 55%, #0a1a16 100%);
  color: #f5f1e8; padding: clamp(1.4rem, 4vw, 2rem);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 40px 80px -30px rgba(20, 27, 24, 0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
  transform-style: preserve-3d; transition: transform 0.6s var(--ease);
  will-change: transform;
}
.cover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, rgba(255,255,255,0.06) 100%);
  transform: translateX(var(--sheen, -30%)); transition: transform 0.6s var(--ease);
}
.cover-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,241,232,0.6); }
.cover-shield { width: 44px; height: 44px; color: var(--ember-2); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.cover-title { font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 40; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 0.95; letter-spacing: -0.03em; margin-top: 1.5rem; }
.cover-title em { font-style: italic; color: var(--ember-2); }
.cover-sub { margin-top: 1rem; font-size: 0.8rem; line-height: 1.45; color: rgba(245,241,232,0.7); max-width: 26ch; }
.cover-grid { margin-top: auto; }
.cover-grid-label { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,241,232,0.6); margin-bottom: 0.7rem; }
.cover-grid-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 10px var(--ember-2); }
.cover-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; align-items: end; height: 46px; }
.cover-bars span { display: block; background: rgba(245,241,232,0.22); border-radius: 2px 2px 0 0; height: var(--h); transform-origin: bottom; animation: bar 3.6s var(--ease-io) infinite alternate; animation-delay: var(--bd); }
.cover-bars span.hot { background: var(--ember-2); box-shadow: 0 0 12px rgba(232,104,58,0.5); }
@keyframes bar { to { transform: scaleY(0.55); } }
.cover-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,241,232,0.55); }
.cover-tags .on { color: var(--ember-2); }
.cover-caption { margin-top: 1rem; text-align: center; }

/* ---------- Stats ---------- */
.stats { margin-top: 4rem; }
@media (min-width: 768px) { .stats { margin-top: 6.5rem; } }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.75rem 1.25rem 1.75rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) {
  .stat { border-bottom: 0; border-right: 1px solid var(--rule); padding-left: 1.75rem; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}
.stat-num { font-family: var(--font-display); font-variation-settings: "opsz" 144; font-size: clamp(2.5rem, 4.5vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }
.stat-num sup { font-size: 0.4em; color: var(--ember); vertical-align: top; margin-left: 0.1em; }
.stat-label { margin-top: 0.7rem; font-weight: 700; font-size: 0.9375rem; }
.stat-desc { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; margin-top: 0.2rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--rule); padding-block: 1rem; overflow: hidden; margin-top: 4rem; background: var(--paper-2); }
@media (min-width: 768px) { .marquee { margin-top: 6rem; } }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.marquee-item b { color: var(--ember); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro (two-col) ---------- */
.intro-grid { row-gap: 2rem; }
.intro-l { grid-column: span 12; }
.intro-r { grid-column: span 12; }
@media (min-width: 1024px) { .intro-l { grid-column: 1 / span 6; } .intro-r { grid-column: 8 / span 5; padding-top: 0.4rem; } }
.body { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }
.body + .body { margin-top: 1.25rem; }

/* ---------- Layers (sticky stack) ---------- */
.section-head { margin-bottom: 3rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 4.5rem; } }
.layers-grid { align-items: start; row-gap: 2rem; }
.layers-aside { grid-column: span 12; display: none; }
.layers-list { grid-column: span 12; }
@media (min-width: 1024px) {
  .layers-aside { display: block; grid-column: 1 / span 4; position: sticky; top: 6.5rem; }
  .layers-list { grid-column: 5 / span 8; }
}
.aside-num { font-family: var(--font-display); font-variation-settings: "opsz" 144; font-size: clamp(6rem, 12vw, 11rem); line-height: 0.85; letter-spacing: -0.06em; color: var(--paper-3); position: relative; height: 1em; }
.aside-num span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.aside-num span.is-active { opacity: 1; transform: none; }
.aside-name { margin-top: 1.25rem; font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.02em; position: relative; height: 1.3em; }
.aside-name span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.aside-name span.is-active { opacity: 1; transform: none; }
.aside-track { margin-top: 1.5rem; display: flex; gap: 0.4rem; }
.aside-track i { display: block; height: 3px; flex: 1; background: var(--rule); border-radius: 2px; transition: background-color 0.4s; }
.aside-track i.is-active { background: var(--ember); }

.layer {
  border-top: 1px solid var(--ink); padding: 2.25rem 0 2.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 768px) { .layer { grid-template-columns: 5rem 1fr; column-gap: 2rem; padding: 3rem 0 3.25rem; } }
.layer:last-child { border-bottom: 1px solid var(--ink); }
.layer-num { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.layer-name { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.025em; line-height: 1; }
.layer-range { margin-top: 0.5rem; }
.layer-head { font-size: 1.125rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; margin-top: 1rem; }
.layer-body { margin-top: 0.85rem; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.layer-points { margin-top: 1.25rem; display: grid; gap: 0.5rem; }
@media (min-width: 768px) { .layer-points { grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; } }
.layer-points li { display: flex; gap: 0.75rem; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); padding: 0.5rem 0; border-bottom: 1px solid var(--rule-2); }
.layer-points li::before { content: ""; flex-shrink: 0; width: 0.75rem; height: 1px; background: var(--ember); margin-top: 0.65rem; }

/* ---------- Signals ---------- */
.signals-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .signals-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .signals-grid { grid-template-columns: repeat(3, 1fr); } }
.signal { background: var(--paper); padding: 1.5rem; position: relative; transition: background-color 0.35s var(--ease); }
.signal:hover { background: var(--paper-2); }
.signal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.signal-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ember); }
.signal-cadence { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.signal-name { margin-top: 0.75rem; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.signal-desc { margin-top: 0.35rem; font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }
.spark { margin-top: 1.25rem; width: 100%; height: 44px; overflow: visible; }
.spark path { fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spark path.hot { stroke: var(--ember); }
.spark circle { fill: var(--ember); opacity: 0; transition: opacity 0.4s 0.9s; }
.spark.is-in circle { opacity: 1; }

/* ---------- Audience ---------- */
.aud-grid { row-gap: 3rem; }
.aud-col { grid-column: span 12; }
@media (min-width: 1024px) { .aud-col { grid-column: span 6; } }
.aud-list { margin-top: 1.5rem; border-top: 1px solid var(--ink); }
.aud-list.muted { border-top-color: var(--rule); }
.aud-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.4; display: flex; gap: 1rem; align-items: baseline; }
.aud-list li .idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--moss); flex-shrink: 0; }
.aud-list.muted li { color: var(--muted); }
.aud-list.muted li .idx { color: var(--faint); }

/* ---------- Buy ---------- */
.buy-grid { row-gap: 2.5rem; align-items: start; }
.buy-copy { grid-column: span 12; order: 2; }
.buy-card-wrap { grid-column: span 12; order: 1; }
@media (min-width: 1024px) { .buy-copy { grid-column: 1 / span 6; order: 1; } .buy-card-wrap { grid-column: 8 / span 5; order: 2; position: sticky; top: 6.5rem; } }
.pull { margin-top: 1.5rem; border-left: 2px solid var(--ember); padding-left: 1.25rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); }
.pull b { color: var(--ink); font-weight: 700; }
.bundle { margin-top: 2rem; border-top: 1px solid var(--rule); }
.bundle li { display: flex; align-items: baseline; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.bundle .idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ember); }
.bundle .fmt { margin-left: auto; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.card {
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: 0 30px 60px -30px rgba(20, 27, 24, 0.6); position: relative; overflow: hidden;
}
@media (min-width: 768px) { .card { padding: 2.25rem; } }
.card::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -25%; top: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(207,79,34,0.35), transparent 65%); pointer-events: none; }
.card .eyebrow { color: rgba(245,241,232,0.55); }
.card-top { display: flex; justify-content: space-between; gap: 1rem; }
.card-price { margin-top: 1.25rem; display: flex; align-items: baseline; gap: 0.6rem; }
.card-amount { font-family: var(--font-display); font-variation-settings: "opsz" 144; font-size: 3.25rem; line-height: 1; letter-spacing: -0.04em; }
.card-per { font-size: 0.8125rem; color: rgba(245,241,232,0.6); }
.field { margin-top: 1.5rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,241,232,0.6); margin-bottom: 0.5rem; }
.field input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 8px; background: rgba(245,241,232,0.06);
  border: 1px solid rgba(245,241,232,0.15); color: var(--paper); transition: border-color 0.25s, background-color 0.25s;
}
.field input::placeholder { color: rgba(245,241,232,0.35); }
.field input:focus { outline: none; border-color: var(--ember-2); background: rgba(245,241,232,0.1); }
.field input.is-invalid { border-color: var(--ember-2); animation: shake 0.4s var(--ease); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.card .btn { width: 100%; margin-top: 1rem; padding: 1.05rem 1.5rem; }
.card-fine { margin-top: 1.1rem; font-size: 0.78rem; line-height: 1.5; color: rgba(245,241,232,0.6); }
.card-fine a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.disclaimer { margin-top: 4rem; max-width: 72ch; font-size: 0.75rem; line-height: 1.6; color: var(--faint); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; text-align: left; }
.faq-q span:first-child { font-weight: 600; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.01em; transition: color 0.2s; }
.faq-q:hover span:first-child { color: var(--ember); }
.faq-icon { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule); margin-top: 0.05rem; transition: border-color 0.25s, background-color 0.25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--ink); border-color: var(--ink); }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after { background: var(--paper); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s var(--ease), opacity 0.4s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; opacity: 1; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 1.6rem; padding-right: 3rem; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.faq-more { margin-top: 2.25rem; font-size: 0.9375rem; color: var(--muted); }
.faq-more a { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { margin-top: 3rem; border-top: 1px solid var(--ink); padding: 3.5rem 0 2rem; overflow: hidden; }
.footer-word { font-family: var(--font-display); font-variation-settings: "opsz" 144, "SOFT" 60; font-size: clamp(3.5rem, 15vw, 13rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--paper-3); white-space: nowrap; user-select: none; }
.footer-grid { margin-top: 2.5rem; row-gap: 2rem; }
.footer-brand { grid-column: span 12; }
.footer-nav { grid-column: span 12; }
.footer-cta { grid-column: span 12; }
@media (min-width: 768px) { .footer-brand { grid-column: span 5; } .footer-nav { grid-column: span 4; } .footer-cta { grid-column: span 3; } }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a, .footer-cta a { font-size: 0.875rem; color: var(--ink-2); transition: color 0.2s; }
.footer-nav a:hover, .footer-cta a:hover { color: var(--ember); }
.footer-bottom { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: 0.75rem; color: var(--faint); }

/* ---------- Dialogs ---------- */
dialog.sheet {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%;
  margin: 0; inset: 0; position: fixed;
}
dialog.sheet::backdrop { background: rgba(20, 27, 24, 0.45); backdrop-filter: blur(4px); }
.sheet-panel {
  position: absolute; inset: auto 0 0 0; max-height: 88vh; overflow: auto; background: var(--paper); color: var(--ink);
  border-radius: 20px 20px 0 0; padding: 1.75rem var(--gutter) 2.5rem;
  transform: translateY(100%); transition: transform 0.6s var(--ease);
}
@media (min-width: 768px) {
  .sheet-panel { inset: 50% auto auto 50%; width: min(640px, calc(100% - 3rem)); max-height: 82vh; border-radius: 16px; padding: 2.5rem; transform: translate(-50%, -46%); opacity: 0; transition: transform 0.55s var(--ease), opacity 0.4s var(--ease); }
}
dialog.sheet[open] .sheet-panel { transform: none; }
@media (min-width: 768px) { dialog.sheet[open] .sheet-panel { transform: translate(-50%, -50%); opacity: 1; } }
.sheet-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: background-color 0.25s, color 0.25s; }
.sheet-close:hover { background: var(--ink); color: var(--paper); }
.sheet-title { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.1; padding-right: 3rem; }
.sheet-meta { margin-top: 0.4rem; }
.sheet-body { margin-top: 1.5rem; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-2); }
.sheet-body h3 { font-weight: 700; color: var(--ink); margin-top: 1.5rem; margin-bottom: 0.4rem; font-size: 1rem; }
.sheet-body p + p { margin-top: 0.75rem; }
.sheet-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.sheet-body ul { margin: 0.5rem 0 0.75rem; }
.sheet-body li { position: relative; padding-left: 1.25rem; margin-top: 0.4rem; }
.sheet-body li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.6rem; height: 1px; background: var(--ember); }
.sheet-body strong { color: var(--ink); }
.sheet-form .field label { color: var(--muted); }
.sheet-form .field input, .sheet-form .field select, .sheet-form .field textarea { background: #fff; border-color: var(--rule); color: var(--ink); }
.sheet-form .field input:focus, .sheet-form .field select:focus, .sheet-form .field textarea:focus { border-color: var(--ember); }
.field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 8px; border: 1px solid var(--rule); font: inherit; color: var(--ink);
  transition: border-color 0.25s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d7873' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; line-height: 1.55; min-height: 7rem; }
.field textarea:focus, .field select:focus { outline: none; }
.field textarea.is-invalid { border-color: var(--ember); animation: shake 0.4s var(--ease); }
.contact-form { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.contact-form .field { margin-top: 1rem; }
.sheet-form .btn { width: 100%; margin-top: 1rem; }
.sheet-hint { margin-top: 0.9rem; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 70; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 0.8rem 1.2rem; border-radius: 999px; font-size: 0.875rem;
  max-width: calc(100% - 2rem); text-align: center; pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
/* Popover mode: undo the UA popover defaults so the toast keeps its own placement. */
.toast[popover] { inset: auto; left: 50%; bottom: 1.5rem; margin: 0; border: 0; padding: 0.8rem 1.2rem; overflow: visible; width: auto; height: auto; }
.toast[popover]:popover-open { display: block; }
