/* =========================================================
   Kitty — landing page
   Aesthetic: warm editorial / finance-magazine / tactile
   Palette: cream newsprint + deep ink + coral liquid + earth accents
   ========================================================= */

:root {
  /* surface & ink */
  --cream:        #F1EBDE;
  --cream-2:      #EADFC9;
  --cream-deep:   #E4D6B9;
  --ink:          #141210;
  --ink-2:        #2A2522;
  --ink-3:        #4A433E;
  --ink-soft:     #141210cc;
  --rule:         #14121022;
  --rule-soft:    #14121014;

  /* accents */
  --coral:        #ED4A2C;
  --coral-hi:     #FF7B5C;
  --coral-deep:   #9D2B10;
  --ochre:        #C08D3C;
  --moss:         #526A3E;
  --plum:         #5B3F78;
  --brick:        #9F3E29;
  --slate:        #5E5F55;

  /* typography */
  --f-display:    "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-body:       "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:       "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* type scale */
  --t-display:    clamp(3.4rem, 7.8vw, 7.2rem);
  --t-h1:         clamp(2.6rem, 5.4vw, 4.6rem);
  --t-h2:         clamp(2rem, 3.8vw, 3.2rem);
  --t-h3:         clamp(1.15rem, 1.6vw, 1.45rem);
  --t-lede:       clamp(1.12rem, 1.3vw, 1.32rem);
  --t-body:       1rem;
  --t-small:      0.82rem;
  --t-micro:      0.72rem;

  /* layout */
  --gutter:       clamp(20px, 3.6vw, 56px);
  --content-max:  1280px;

  /* motion */
  --ease:         cubic-bezier(.22, 1, .36, 1);
  --ease-out:     cubic-bezier(.16, 1, .3, 1);

  /* hero fill */
  --pot-fill:     0.35;
}

/* --------- Reset --------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv02", "kern";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--coral); color: var(--cream); }

code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: var(--cream-2);
  padding: 0 0.4em;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

em { font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 1; }

u {
  text-decoration: none;
  background-image: linear-gradient(transparent 68%, var(--coral) 68%, var(--coral) 85%, transparent 85%);
  background-size: 100% 100%;
}


/* --------- Grain overlay --------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .18;
  mix-blend-mode: multiply;
}


/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--cream) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}
.wordmark-mark {
  width: 26px;
  height: 26px;
  transform: translateY(5px);
}
.wordmark-type {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  line-height: 1;
}
.wordmark-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  position: relative;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s var(--ease),
              color .2s var(--ease),
              border-color .2s var(--ease),
              transform .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr {
  transition: transform .3s var(--ease);
  display: inline-block;
}
.btn:hover .arr { transform: translate(3px, -3px); }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--coral);
  color: var(--cream);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn--inline {
  padding: 8px 14px;
  font-size: 13px;
  background: var(--ink);
  color: var(--cream);
}
.btn--inline:hover { background: var(--coral); }

.btn--big {
  font-size: 16px;
  padding: 18px 30px;
  font-weight: 500;
}
.btn--cream {
  background: var(--cream);
  color: var(--ink);
}
.btn--cream:hover { background: var(--coral); color: var(--cream); }
.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn--outline:hover {
  background: var(--cream);
  color: var(--ink);
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 52px var(--gutter) 0;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
}

.issue-tag {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp .6s var(--ease) .05s forwards;
}
.issue-tag__no {
  font-family: var(--f-display);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0;
  color: var(--ink);
}
.issue-tag__no sup {
  font-size: 10px;
  top: -6px;
  position: relative;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-bottom: 60px;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .8s var(--ease) forwards;
}
.hero-copy .kicker          { animation-delay: .15s; }
.hero-copy .hero-title      { animation-delay: 0s; opacity: 1; transform: none; }
.hero-copy .lede            { animation-delay: .55s; }
.hero-copy .cta-row         { animation-delay: .72s; }
.hero-copy .pitch-strip     { animation-delay: .92s; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 18px;
}
.kicker__pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 340;
  font-size: var(--t-display);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineReveal 1s var(--ease) var(--d, 0s) forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--coral);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  padding-right: .06em;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 0 34px;
}
.lede em {
  color: var(--ink);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.cta-row--big {
  gap: 18px;
  margin-bottom: 28px;
}

.pitch-strip {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream-2) 55%, transparent);
  flex-wrap: wrap;
}
.pitch-strip .chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.pitch-strip .chip b {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pitch-strip .chip__sub {
  opacity: 0.8;
}
.pitch-strip .chip__rule {
  width: 1px;
  height: 18px;
  background: var(--rule);
}

/* --------- Hero Pot --------- */
.hero-pot-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
  width: 100%;
  animation: fadeUp 1.2s var(--ease) .2s both;
}

.pot-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 40px rgba(20,18,16,0.12));
}

/* the liquid group — position controlled via CSS var --pot-fill */
.liquid-group {
  /* when fill=1, translateY = 174 (liquid top touches rim)
     when fill=0, translateY = 420 (liquid at bottom of bowl) */
  transform: translateY(calc(174px + (1 - var(--pot-fill)) * 246px));
  transition: transform 1.8s var(--ease-out);
}

.liquid-hi {
  animation: bobHi 4.2s ease-in-out infinite;
}
.bubble {
  animation: bubbleUp 6s ease-in-out infinite;
}
.bubble--1 { animation-delay: 0.5s; }
.bubble--2 { animation-delay: 2.1s; }
.bubble--3 { animation-delay: 3.8s; }
.bubble--4 { animation-delay: 1.3s; }

@keyframes bobHi {
  0%, 100% { transform: translateX(0); opacity: .55; }
  50%      { transform: translateX(4px); opacity: .7; }
}
@keyframes bubbleUp {
  0%   { transform: translateY(30px); opacity: 0; }
  20%  { opacity: .6; }
  80%  { opacity: .4; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.hero-pot-label {
  position: absolute;
  top: 4%;
  left: 4%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  z-index: 2;
}
.hero-pot-label .pot-label__mid {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
  margin: 2px 0;
}
.hero-pot-label .pot-label__mid b {
  color: var(--coral);
  font-weight: 600;
}
.hero-pot-label .pot-label__bot {
  color: var(--moss);
}

.deposit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(20,18,16,0.08);
  animation: chipFloat 5s ease-in-out infinite;
}
.deposit-chip .chip-ava {
  width: 20px; height: 20px;
  border-radius: 50%;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 500;
}
.deposit-chip .chip-amt { color: var(--coral-deep); font-weight: 500; }
.deposit-chip--1 { top: 18%; right: 0%; animation-delay: 0s; }
.deposit-chip--2 { top: 52%; left: -6%; animation-delay: 1.5s; }
.deposit-chip--3 { top: 72%; right: -4%; animation-delay: 3s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

/* --------- Marquee --------- */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 14px 0;
  margin: 0 calc(var(--gutter) * -1);
  background: var(--cream-2);
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--cream-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--cream-2), transparent); }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 44s linear infinite;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.marquee__track .dot {
  color: var(--coral);
  font-family: var(--f-display);
  font-size: 14px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =========================================================
   Shared section scaffolding
   ========================================================= */
section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  position: relative;
}

.section-head {
  max-width: var(--content-max);
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.section-head--center {
  text-align: center;
}

.section-eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.section-eyebrow--light { color: color-mix(in srgb, var(--cream) 70%, transparent); }

.section-title {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 24px;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
}
.section-title em {
  color: var(--coral);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
}
.section-title--dark { color: var(--cream); }

.section-lede {
  font-size: var(--t-lede);
  color: var(--ink-2);
  max-width: 58ch;
  line-height: 1.55;
  margin: 0;
}
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }
.section-lede--dark { color: color-mix(in srgb, var(--cream) 70%, transparent); }

.body-lg {
  font-size: 1.18rem;
  line-height: 1.58;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 52ch;
}
.body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 18px;
  max-width: 52ch;
}


/* =========================================================
   PROBLEM
   ========================================================= */
.problem {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

.problem-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.problem-number {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-right: 24px;
}
.problem-number .huge-num {
  font-family: var(--f-display);
  font-size: clamp(12rem, 24vw, 22rem);
  font-weight: 280;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.problem-number .percent {
  font-family: var(--f-display);
  font-size: clamp(5rem, 10vw, 9rem);
  color: var(--coral);
  font-weight: 350;
  line-height: 0.78;
  align-self: flex-end;
  padding-bottom: 0.15em;
  padding-left: 0.05em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.problem-number .huge-num__sub {
  position: absolute;
  bottom: -18px;
  left: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pull-quote {
  max-width: var(--content-max);
  margin: 60px auto 0;
  padding: 54px clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.34;
  color: var(--ink-2);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 72, "SOFT" 80, "WONK" 1;
  text-align: center;
  position: relative;
  letter-spacing: -0.01em;
}
.pull-quote em { color: var(--coral); }
.pull-quote .quote-open {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0 24px;
  font-family: var(--f-display);
  font-size: 52px;
  color: var(--coral);
  line-height: 1;
  font-style: italic;
}


/* =========================================================
   THREE PLANES
   ========================================================= */
.planes {
  background: var(--cream-2);
  border-top: 1px solid var(--rule);
}

.planes-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.plane {
  padding: 48px 36px 44px;
  position: relative;
  background: color-mix(in srgb, var(--cream) 55%, transparent);
  transition: background .35s var(--ease);
}
.plane + .plane { border-left: 1px solid var(--rule); }
.plane:hover { background: color-mix(in srgb, var(--cream) 85%, transparent); }

.plane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}
.plane-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--coral);
  text-transform: lowercase;
}

.plane-name {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin: 18px 0 20px;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
}

.plane-ill {
  width: 100%;
  max-width: 160px;
  height: auto;
  color: var(--ink-2);
  margin: 0 0 22px;
  opacity: 0.85;
}

.plane-body {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 26px;
}
.plane-body b { color: var(--ink); font-weight: 500; }

.plane-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.plane-meta li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.plane-meta li span { color: var(--ink-3); text-transform: uppercase; }
.plane-meta li b { color: var(--ink); font-weight: 500; }


/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.how .section-head {
  max-width: 900px;
}

.how-list {
  max-width: var(--content-max);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.how-step {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: background .3s var(--ease);
}
.how-step:last-child { border-bottom: 1px solid var(--rule); }
.how-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--coral) 6%, transparent), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.how-step:hover::before { opacity: 1; }

.how-num {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--coral);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.how-body h3 {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 10px;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
.how-body p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 48ch;
}

.how-agent {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: start;
  padding-top: 12px;
  text-align: right;
}


/* =========================================================
   AGENTS
   ========================================================= */
.agents {
  background: var(--cream-2);
  border-top: 1px solid var(--rule);
}

.agents-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agent-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(20,18,16,0.08);
}
.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--agent-tint);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.agent-card:hover::before { opacity: 0.3; }
.agent-card > * { position: relative; z-index: 1; }

.agent-band {
  height: 8px;
  background: var(--agent);
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 12px;
  position: relative;
}
.agent-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--agent);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--agent) 22%, transparent);
}
.agent-name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
}
.agent-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--agent);
  margin: 4px 0 0;
  font-weight: 500;
}
.agent-stamp {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.agent-bio {
  padding: 8px 22px 20px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

.agent-sample {
  margin: 0;
  padding: 20px 22px 22px;
  border-top: 1px dashed var(--rule);
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  background: color-mix(in srgb, var(--agent-tint) 35%, transparent);
  position: relative;
  font-variation-settings: "opsz" 14, "SOFT" 50;
  font-weight: 400;
}
.agent-sample::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 22px;
  height: 1px;
  background: var(--agent);
}
.agent-sample b { color: var(--agent); font-weight: 600; }

.agents-foot {
  max-width: var(--content-max);
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-3);
  font-variation-settings: "opsz" 14, "SOFT" 50;
}
.agents-foot em { color: var(--ink); }


/* =========================================================
   LEDGER (dark)
   ========================================================= */
.ledger {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.ledger::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--coral) 12%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--ochre) 8%, transparent) 0%, transparent 50%);
  pointer-events: none;
}

.ledger-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
}

.ledger-head {
  margin-bottom: 48px;
  max-width: 780px;
}

.tape-card {
  background: #0A0907;
  border: 1px solid #ffffff12;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.tape-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #ffffff08;
  border-bottom: 1px solid #ffffff12;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}
.tape-head__right {
  margin-left: auto;
  color: color-mix(in srgb, var(--cream) 40%, transparent);
}
.tape-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3F6B4A;
  box-shadow: 0 0 0 3px color-mix(in srgb, #3F6B4A 35%, transparent);
}
.tape-dot--live { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, #3F6B4A 35%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, #3F6B4A 0%, transparent); }
}

.tape {
  height: 420px;
  overflow: hidden;
  position: relative;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.tape-row {
  display: grid;
  grid-template-columns: 90px 190px 110px 1fr 80px;
  gap: 18px;
  padding: 6px 0;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  opacity: 0;
  animation: rowIn .6s var(--ease) forwards;
  white-space: nowrap;
}
.tape-row .time      { color: color-mix(in srgb, var(--cream) 40%, transparent); }
.tape-row .evt       { font-weight: 500; }
.tape-row .actor     { color: color-mix(in srgb, var(--cream) 90%, transparent); }
.tape-row .msg       { color: color-mix(in srgb, var(--cream) 60%, transparent); overflow: hidden; text-overflow: ellipsis; }
.tape-row .amt       { text-align: right; font-weight: 500; }
.tape-row .amt--pos  { color: #93C582; }
.tape-row .amt--neg  { color: #FF7B5C; }
.tape-row .amt--info { color: color-mix(in srgb, var(--cream) 50%, transparent); }

.tape-row[data-type="contribute.posted"]   .evt { color: #93C582; }
.tape-row[data-type="contribute.staged"]   .evt { color: #E3B86B; }
.tape-row[data-type="reminder.sent"]       .evt { color: #D6976A; }
.tape-row[data-type="mediator.verdict"]    .evt { color: #B49CE0; }
.tape-row[data-type="emergency.executed"]  .evt { color: #FF7B5C; }
.tape-row[data-type="payout.posted"]       .evt { color: #FF7B5C; font-weight: 600; }
.tape-row[data-type="charter.signed"]      .evt { color: #E3B86B; }
.tape-row[data-type="passport.issued"]     .evt { color: #93C582; }

@keyframes rowIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ledger-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  padding: 28px 24px;
  border: 1px solid #ffffff14;
  border-radius: 4px;
  background: #ffffff05;
}
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 350;
  font-style: italic;
  color: var(--coral-hi);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  margin-top: 14px;
  display: block;
  line-height: 1.5;
}


/* =========================================================
   SAFETY
   ========================================================= */
.safety {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

.safety-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
}

.safety-copy {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.safety-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.safety-no {
  font-family: var(--f-display);
  font-size: 28px;
  font-style: italic;
  color: var(--coral);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.safety-list h4 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
.safety-list p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 58ch;
}


/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--coral);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 100%, var(--coral-deep) 0%, transparent 55%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.cta-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 12px 0 36px;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
}
.cta-title em {
  font-style: italic;
  color: var(--cream);
  opacity: 0.88;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.cta-fine {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  margin: 18px 0 0;
}
.cta-fine code {
  background: rgba(0,0,0,0.15);
  color: var(--cream);
  border-color: rgba(255,255,255,0.15);
}

.cta-seal {
  display: flex;
  justify-content: center;
  align-items: center;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
}
.seal-svg {
  width: 100%;
  max-width: 280px;
  animation: sealSpin 48s linear infinite;
}
@keyframes sealSpin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}


/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 36px;
}
.foot-top {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
}
.foot-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 45%, transparent);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  transition: color .2s var(--ease);
}
.foot-col a:hover { color: var(--coral-hi); }

.foot-col--brand .wordmark-type { color: var(--cream); }
.foot-tag {
  font-family: var(--f-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  margin: 20px 0 0;
  max-width: 30ch;
  font-variation-settings: "opsz" 14, "SOFT" 50;
}

.foot-rule {
  max-width: var(--content-max);
  margin: 48px auto 20px;
  height: 1px;
  background: #ffffff1a;
}

.foot-bot {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 50%, transparent);
}
.foot-bot__mid {
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  font-style: italic;
  font-family: var(--f-display);
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
  font-variation-settings: "SOFT" 80;
}


/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineReveal {
  from { opacity: 0; transform: translateY(80%); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-pot-wrap { max-width: 420px; justify-self: center; margin-top: 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 24px; }
  .problem-number .huge-num { font-size: clamp(9rem, 38vw, 16rem); }
  .problem-number .percent  { font-size: clamp(3.8rem, 14vw, 6rem); }
  .planes-grid { grid-template-columns: 1fr; border: none; }
  .plane + .plane { border-left: none; border-top: 1px solid var(--rule); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .how-step { grid-template-columns: 60px 1fr; }
  .how-agent { grid-column: 1 / -1; text-align: left; padding-top: 6px; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-copy { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-seal { justify-self: center; }
  .seal-svg { max-width: 220px; }
  .ledger-stats { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { padding: 12px 18px; }
  .issue-tag { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 24px; }
  .hero { padding-top: 32px; }
  .pitch-strip { padding: 12px 16px; gap: 12px; font-size: 12px; }
  .pitch-strip .chip b { font-size: 14px; }
  .pitch-strip .chip__rule { display: none; }
  .agents-grid { grid-template-columns: 1fr; }
  .tape { font-size: 11px; padding: 10px 14px; }
  .tape-row { grid-template-columns: 72px 120px 80px 1fr 70px; gap: 10px; }
  .ledger-stats { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; align-items: flex-start; }
  .wordmark-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
