/* ============================================================
   Panta — Marketplace for modern minds
   Palette + type derived from the Panta brand:
   warm ivory canvas, butter-gold / dusty-rose / sage blooms,
   terracotta accent, deep forest green. Lora + Onest.
   ============================================================ */

:root {
  /* base canvas + ink */
  --bg:        #faf7ef;
  --bg-warm:   #f6f1e6;
  --ink:       #1f1c17;
  --ink-soft:  #4a4438;
  --muted:     #948b78;
  --faint:     #b6ac98;
  --line:      rgba(43, 38, 28, 0.10);
  --line-soft: rgba(43, 38, 28, 0.06);
  --card:      #fefcf7;

  /* accents */
  --accent:    #bd6a4d;   /* terracotta — the brand dot */
  --accent-ink:#9c5239;
  --forest:    #2e4034;   /* deep green button */
  --forest-hi: #3a5142;

  /* bloom hues */
  --bloom-gold: 47 78% 80%;
  --bloom-rose: 8 62% 86%;
  --bloom-sage: 138 16% 76%;

  /* atmosphere intensity (0–1.4), driven by Tweaks */
  --atmos: 1;

  /* fonts */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Onest', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---- atmosphere: soft drifting gradient blooms ---- */
.atmosphere {
  position: fixed;
  inset: -10vh -10vw;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: calc(0.9 * var(--atmos));
  will-change: transform;
}
.bloom--gold {
  width: 46vw; height: 46vw;
  top: -10vh; left: -6vw;
  background: radial-gradient(circle, hsl(var(--bloom-gold) / 0.95), hsl(var(--bloom-gold) / 0) 68%);
  animation: drift-a 34s ease-in-out infinite alternate;
}
.bloom--rose {
  width: 40vw; height: 40vw;
  top: -8vh; right: 6vw;
  background: radial-gradient(circle, hsl(var(--bloom-rose) / 0.9), hsl(var(--bloom-rose) / 0) 66%);
  animation: drift-b 42s ease-in-out infinite alternate;
}
.bloom--sage {
  width: 52vw; height: 52vw;
  top: 34vh; left: 36vw;
  background: radial-gradient(circle, hsl(var(--bloom-sage) / 0.85), hsl(var(--bloom-sage) / 0) 64%);
  animation: drift-c 50s ease-in-out infinite alternate;
}
.bloom--gold-2 {
  width: 34vw; height: 34vw;
  bottom: -6vh; left: 8vw;
  background: radial-gradient(circle, hsl(var(--bloom-gold) / 0.7), hsl(var(--bloom-gold) / 0) 66%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
.bloom--rose-2 {
  width: 30vw; height: 30vw;
  bottom: 4vh; right: -4vw;
  background: radial-gradient(circle, hsl(var(--bloom-rose) / 0.7), hsl(var(--bloom-rose) / 0) 66%);
  animation: drift-a 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4vw, 5vh, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0,0,0) scale(1.05); }
  to   { transform: translate3d(-5vw, 4vh, 0) scale(1); }
}
@keyframes drift-c {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(3vw, -6vh, 0) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .bloom { animation: none !important; }
}
body[data-motion="off"] .bloom { animation: none !important; }

/* ---- layout ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { position: relative; }

/* ---- typography helpers ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { color: var(--accent); }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.serif-italic { font-family: var(--serif); font-style: italic; }
.accent { color: var(--accent); }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s, box-shadow .25s, color .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: var(--forest);
  color: #f4f0e6;
  box-shadow: 0 10px 26px -14px rgba(46,64,52,0.8);
}
.btn--primary:hover { background: var(--forest-hi); transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(46,64,52,0.75); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 247, 239, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark .dot { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__menu-btn { display: none; }

@media (max-width: 760px) {
  .nav__links .nav-link { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(56px, 9vw, 110px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero__eyebrow { margin-bottom: 26px; display: inline-flex; gap: 0.7em; align-items: center; }
.hero__eyebrow .rule { width: 34px; height: 1px; background: var(--line); display: inline-block; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; }
.hero h1 .dot { color: var(--accent); }
.hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-transform: uppercase;
}

/* hero visual — stacked "shelf" of placeholder covers */
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}
.cover {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(43,38,28,0.45);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(43,38,28,0.05) 0 1px,
    transparent 1px 11px
  );
}
.cover__tag {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(254,252,247,0.85);
  padding: 4px 8px;
  border-radius: 5px;
}
.cover.c1 { aspect-ratio: 3/4.4; transform: translateY(0); }
.cover.c2 { aspect-ratio: 3/4.9; transform: translateY(-20px); background: linear-gradient(160deg, hsl(var(--bloom-rose)/.5), var(--card)); }
.cover.c3 { aspect-ratio: 3/4.2; transform: translateY(14px); background: linear-gradient(160deg, hsl(var(--bloom-sage)/.5), var(--card)); }

/* ============================================================
   MARQUEE STRIP (logos / trust)
   ============================================================ */
.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  overflow: hidden;
}
.strip__row {
  display: flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.strip__row span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.strip__row span b { color: var(--muted); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }
body[data-motion="off"] .strip__row { animation: none; }
@media (prefers-reduced-motion: reduce) { .strip__row { animation: none; } }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec__head { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 60px); }
.sec__head.center { margin-inline: auto; text-align: center; }
.sec__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 16px;
  margin-bottom: 16px;
}
.sec__title em { font-style: italic; }
.sec__sub { font-size: 18px; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  text-decoration: none;
  color: inherit;
  min-height: 280px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.cat:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -30px rgba(43,38,28,0.5);
  border-color: rgba(189,106,77,0.4);
}
.cat__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.cat__thumb {
  margin: 18px 0 22px;
  height: 92px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.cat__thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(43,38,28,0.05) 0 1px, transparent 1px 12px);
}
.cat:nth-child(1) .cat__thumb { background: linear-gradient(150deg, hsl(var(--bloom-gold)/.55), var(--bg-warm)); }
.cat:nth-child(2) .cat__thumb { background: linear-gradient(150deg, hsl(var(--bloom-rose)/.55), var(--bg-warm)); }
.cat:nth-child(3) .cat__thumb { background: linear-gradient(150deg, hsl(var(--bloom-sage)/.55), var(--bg-warm)); }
.cat:nth-child(4) .cat__thumb { background: linear-gradient(150deg, hsl(28 50% 82% / .6), var(--bg-warm)); }
.cat__name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  margin-top: auto;
}
.cat__desc { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.cat__go {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex;
  gap: 0.4em;
}
.cat__go .arrow { transition: transform .25s; }
.cat:hover .cat__go .arrow { transform: translateX(4px); }

/* ============================================================
   FEATURED SHELF
   ============================================================ */
.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.shelf__item { display: flex; flex-direction: column; gap: 14px; }
.shelf__cover {
  aspect-ratio: 3/4;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 18px 40px -28px rgba(43,38,28,0.5);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  display: flex; align-items: flex-end; padding: 12px;
}
.shelf__item:hover .shelf__cover { transform: translateY(-6px); }
.shelf__cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(43,38,28,0.045) 0 1px, transparent 1px 12px);
}
.shelf__item:nth-child(1) .shelf__cover { background: linear-gradient(165deg, hsl(var(--bloom-gold)/.5), var(--card)); }
.shelf__item:nth-child(2) .shelf__cover { background: linear-gradient(165deg, hsl(var(--bloom-rose)/.5), var(--card)); }
.shelf__item:nth-child(3) .shelf__cover { background: linear-gradient(165deg, hsl(var(--bloom-sage)/.5), var(--card)); }
.shelf__item:nth-child(4) .shelf__cover { background: linear-gradient(165deg, hsl(28 50% 82%/.55), var(--card)); }
.shelf__ph {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(254,252,247,0.82);
  padding: 4px 8px;
  border-radius: 5px;
}
.shelf__meta .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.shelf__meta .t {
  font-family: var(--serif);
  font-size: 17px;
  margin-top: 4px;
  line-height: 1.25;
}

/* ============================================================
   QUOTE MOMENT
   ============================================================ */
.quote {
  text-align: center;
  padding-block: clamp(80px, 12vw, 150px);
}
.quote__mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0;
  color: var(--accent);
  opacity: 0.6;
  display: block;
  margin-bottom: 30px;
  height: 30px;
}
.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 0 auto 28px;
  color: var(--ink);
  text-wrap: balance;
}
.quote__by {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ============================================================
   TWO-UP: readers / creators
   ============================================================ */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.panel {
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.panel--readers { background: linear-gradient(155deg, hsl(var(--bloom-sage)/.45), var(--card)); }
.panel--creators { background: var(--forest); color: #ece6d8; border-color: transparent; }
.panel--creators .panel__eyebrow { color: hsl(var(--bloom-gold)/.95); }
.panel--creators .panel__lead { color: #ece6d8; }
.panel--creators .panel__list li { color: #d4cdbd; }
.panel--creators .panel__list li::before { background: hsl(var(--bloom-gold)/.9); }
.panel--creators .btn--ghost { color: #ece6d8; border-color: rgba(236,230,216,0.3); }
.panel--creators .btn--ghost:hover { border-color: hsl(var(--bloom-gold)/.9); color: hsl(var(--bloom-gold)/1); }
.panel__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-ink);
}
.panel__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  margin: 16px 0 16px;
}
.panel__title em { font-style: italic; }
.panel__lead { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 26px; max-width: 38ch; }
.panel__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.panel__list li {
  position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.45;
}
.panel__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist {
  text-align: center;
  padding-block: clamp(70px, 10vw, 130px);
}
.waitlist__card {
  max-width: 640px;
  margin-inline: auto;
}
.waitlist h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
  line-height: 1.05;
}
.waitlist h2 em { font-style: italic; }
.waitlist p { font-size: 18px; color: var(--ink-soft); margin: 0 auto 36px; max-width: 46ch; }
.form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 7px 7px 22px;
  transition: border-color .25s, box-shadow .25s;
}
.form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(189,106,77,0.12); }
.form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
}
.form input::placeholder { color: var(--faint); }
.form .btn--primary { white-space: nowrap; padding-inline: 22px; }
.form__note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.form--done input { color: var(--forest); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px 24px;
  margin-bottom: 44px;
}
.footer__brand .wordmark { font-size: 30px; }
.footer__tag { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 30ch; line-height: 1.55; }
.footer__col h4 {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.footer__col a:hover { color: var(--accent-ink); }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--faint);
}
.footer__base .mono { color: var(--faint); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
body[data-motion="off"] .reveal,
.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   DIRECTION VARIANTS (set on <body data-direction>)
   ============================================================ */

/* — Editorial (default): centered, calm, serif-forward — */
body[data-direction="editorial"] .hero__grid {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}
body[data-direction="editorial"] .hero__eyebrow { justify-content: center; }
body[data-direction="editorial"] .hero__lede { margin-inline: auto; }
body[data-direction="editorial"] .hero__cta { justify-content: center; }
body[data-direction="editorial"] .hero__visual { display: none; }
body[data-direction="editorial"] .hero h1 { font-size: clamp(46px, 7vw, 92px); }

/* — Gallery: structured, asymmetric, marketplace-forward (uses base two-column hero) — */
body[data-direction="gallery"] .hero h1 { font-size: clamp(40px, 5.6vw, 76px); }

/* — Atmospheric: lush, large, immersive — */
body[data-direction="atmospheric"] .hero { padding-top: clamp(80px, 13vw, 170px); }
body[data-direction="atmospheric"] .hero__grid {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 960px;
  margin-inline: auto;
}
body[data-direction="atmospheric"] .hero__eyebrow { justify-content: center; }
body[data-direction="atmospheric"] .hero__lede { margin-inline: auto; font-size: clamp(18px, 1.7vw, 22px); }
body[data-direction="atmospheric"] .hero__cta { justify-content: center; }
body[data-direction="atmospheric"] .hero__visual { display: none; }
body[data-direction="atmospheric"] .hero h1 { font-size: clamp(52px, 9vw, 120px); }
body[data-direction="atmospheric"] .bloom { opacity: calc(1.25 * var(--atmos)); filter: blur(72px); }

/* ============================================================
   STANDALONE STAGE (404 / in-progress)
   ============================================================ */
.stage {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(60px, 12vh, 140px);
}
.stage__inner { max-width: 680px; }
.stage__code {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(72px, 16vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}
.stage__code .dot { color: var(--accent); }
.stage__eyebrow {
  display: inline-flex; gap: 0.7em; align-items: center;
  margin-bottom: 26px;
}
.stage__eyebrow .rule { width: 30px; height: 1px; background: var(--line); display: inline-block; }
.stage h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.stage h1 em { font-style: italic; }
.stage h1 .dot { color: var(--accent); }
.stage__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 36px;
}
.stage__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.stage__note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* progress meter (in-progress page) */
.progress {
  max-width: 380px;
  margin: 4px auto 32px;
}
.progress__track {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  animation: progress-grow 2.2s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes progress-grow { to { width: 62%; } }
body[data-motion="off"] .progress__fill,
.no-motion .progress__fill { animation: none; width: 62%; }
@media (prefers-reduced-motion: reduce) { .progress__fill { animation: none; width: 62%; } }
.progress__labels {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__eyebrow { justify-content: center; }
  .hero__lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { max-width: 420px; margin: 8px auto 0; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cats { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .form { flex-direction: column; border-radius: 18px; padding: 10px; }
  .form input { padding: 10px 12px; text-align: center; }
  .form .btn--primary { width: 100%; justify-content: center; }
  .hero__visual { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .shelf { grid-template-columns: 1fr; }
}

/* ======================= COOKIE CONSENT ======================= */
.consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 200;
  width: min(680px, calc(100% - 32px));
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--bg-warm);
  border: 1px solid rgba(31, 28, 23, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(31, 28, 23, 0.5);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.consent--in { transform: translate(-50%, 0); opacity: 1; }
.consent__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.consent__text a { color: var(--accent-ink); text-decoration: underline; }
.consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent__actions .btn { padding: 9px 18px; font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  .consent { transition: opacity 0.3s ease; transform: translate(-50%, 0); }
}
@media (max-width: 600px) {
  .consent { flex-direction: column; align-items: stretch; gap: 14px; bottom: 12px; }
  .consent__actions { justify-content: flex-end; }
}
