/* =========================================================
   Ember & Ink Books — Kansas City, MO
   Palette: ink black + ember orange
   ========================================================= */

:root {
  --bg: #0B0907;
  --surface: #15110D;
  --surface-2: #1D1712;
  --brand: #FF6A13;
  --brand-deep: #C2410C;
  --amber: #FFB067;
  --cream: #F1E6D6;
  --text: #F6EFE6;
  --text-2: #A89C8F;
  --line: #2A231C;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
main { overflow-x: clip; } /* the tilted genre tape bleeds past the edges */

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--brand); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 300;
  background: var(--brand); color: var(--bg);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.muted { color: var(--text-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
}

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

.section-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
}
.section-lead { margin: 0; max-width: 56ch; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.125rem); }

/* "Selection" highlighter — paints behind the word, text flips to ink */
mark {
  --mark-color: var(--brand);
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(var(--mark-color), var(--mark-color));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  padding: .02em .12em .06em;
  margin: 0 -.04em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .75s var(--ease), color .35s ease;
}
.reveal.is-visible mark,
mark.is-drawn {
  background-size: 100% 100%;
  color: var(--bg);
  transition-delay: .35s, .6s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body);
  white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn-primary { background: var(--brand); color: var(--bg); box-shadow: 0 10px 30px -12px rgba(255, 106, 19, .65); }
.btn-primary:hover { background: #FF7D33; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255, 106, 19, .8); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: rgba(255, 255, 255, .02); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--amber); transform: translateY(-2px); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); }
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 9, 7, .78);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
  border-bottom: 1px solid rgba(255, 106, 19, .16);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }

.nav-progress {
  position: absolute; left: 0; bottom: -1px; z-index: 2;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--amber));
  transform: scaleX(0); transform-origin: 0 50%;
}

.nav-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name span { color: var(--brand); font-style: italic; font-weight: 400; }
.brand-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.06, .96) rotate(-2deg); }
  60% { transform: scale(.97, 1.05) rotate(2deg); }
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { position: relative; padding: .3rem 0; font-size: .93rem; color: var(--text-2); transition: color .25s ease; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a.is-active { color: var(--text); }
.nav-links a:not(.btn):hover::after,
.nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { min-height: 42px; padding: .55rem 1.15rem; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    position: relative; z-index: 3;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 44px; height: 44px;
    background: rgba(11, 9, 7, .5); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav-links {
    position: fixed; inset: 0; z-index: 2;
    flex-direction: column; justify-content: center; gap: 1.5rem;
    background:
      radial-gradient(60% 40% at 50% 100%, rgba(255, 106, 19, .18), transparent 70%),
      rgba(11, 9, 7, .98);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
  .nav-links a:not(.btn) { font-family: var(--font-display); font-size: 2.1rem; color: var(--text); }
  .nav-links > a { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s ease; }
  .nav-links.is-open > a { opacity: 1; transform: none; }
  .nav-links.is-open > a:nth-child(2) { transition-delay: .05s; }
  .nav-links.is-open > a:nth-child(3) { transition-delay: .1s; }
  .nav-links.is-open > a:nth-child(4) { transition-delay: .15s; }
  .nav-links.is-open > a:nth-child(5) { transition-delay: .2s; }
  .nav-cta { margin-top: 1rem; min-height: 52px; padding-inline: 2rem; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 5.5rem;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; z-index: -2;
  right: -15%; bottom: -35%; width: 85%; height: 110%;
  background: radial-gradient(closest-side, rgba(255, 106, 19, .30), rgba(194, 65, 12, .12) 50%, transparent 80%);
}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }

.hero-eyebrow .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--brand); animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
}
.hero-title mark { font-style: italic; font-weight: 400; }
.hero-sub { max-width: 52ch; margin: 0 0 2.2rem; color: var(--text-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note { margin: 1.6rem 0 0; font-size: .9rem; color: var(--text-2); }

.status { display: inline-flex; align-items: center; gap: .55rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); }
.status.is-open { color: var(--text); }
.status.is-open::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 106, 19, .2); }

@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-eyebrow { animation: hero-in .7s var(--ease) .05s backwards; }
.hero-title   { animation: hero-in .7s var(--ease) .15s backwards; }
.hero-sub     { animation: hero-in .7s var(--ease) .3s backwards; }
.hero-ctas    { animation: hero-in .7s var(--ease) .42s backwards; }
.hero-note    { animation: hero-in .7s var(--ease) .54s backwards; }

/* Bookshelf illustration */
.hero-figure { --k: 1; position: relative; height: clamp(340px, 44vw, 500px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-figure::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 15%; bottom: 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 138, 60, .22), transparent 75%);
}
.shelf { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 100%; }

.spine {
  position: relative; flex: none;
  width: calc(var(--w) * var(--k)); height: var(--h);
  display: flex; align-items: center; justify-content: center;
  padding: 18px 0;
  border-radius: 4px 4px 2px 2px;
  box-shadow: inset -7px 0 12px rgba(0, 0, 0, .28), inset 3px 0 0 rgba(255, 255, 255, .08);
  animation: spine-rise .9s var(--ease) backwards;
  animation-delay: calc(.35s + var(--i) * .07s);
  transition: transform .45s var(--ease);
}
.spine span {
  max-height: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  writing-mode: vertical-rl;
  font-family: var(--font-display); font-size: calc(.92rem * var(--k)); font-weight: 600; letter-spacing: .02em;
}
.spine::before, .spine::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  background: currentColor; opacity: .45;
}
.spine::before { top: 9%; }
.spine::after { bottom: 9%; }
.spine:hover { transform: translateY(-14px); }
.spine.lean { rotate: -8deg; transform-origin: 0 100%; margin-left: calc(20px * var(--k)); }

.s-orange { background: var(--brand); color: var(--bg); }
.s-ink    { background: #1B1511; color: var(--brand); outline: 1px solid rgba(255, 106, 19, .35); outline-offset: -1px; }
.s-cream  { background: var(--cream); color: var(--bg); }
.s-char   { background: #2C231C; color: var(--cream); }
.s-amber  { background: var(--amber); color: var(--bg); }
.s-rust   { background: var(--brand-deep); color: var(--cream); }

@keyframes spine-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.cat {
  flex: none; width: calc(66px * var(--k)); height: auto; margin-left: calc(8px * var(--k));
  overflow: visible;
  animation: spine-rise .9s var(--ease) backwards; animation-delay: 1s;
}
.cat-body { fill: var(--bg); stroke: rgba(255, 138, 60, .45); stroke-width: 1; }
.cat-tail { transform-origin: 58px 86px; animation: tail 4s ease-in-out infinite; }
.cat-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5s infinite; }
@keyframes tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.shelf-board {
  height: 14px; border-radius: 3px;
  background: linear-gradient(#2E251D, #15110D);
  box-shadow: inset 0 1px 0 rgba(255, 176, 103, .28), 0 22px 40px -10px rgba(0, 0, 0, .9);
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
  transition: border-color .3s ease;
}
.hero-scroll:hover { border-color: var(--brand); }
.hero-scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--brand); animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { --k: .78; height: 300px; }
  .hero-scroll { display: none; }
}
@media (max-width: 520px) {
  .hero-figure { --k: .58; height: 230px; }
  .shelf { gap: 3px; }
}

/* =========================================================
   GENRE TAPE (marquee)
   ========================================================= */
.strip {
  position: relative; z-index: 2;
  margin: 0 -2%;
  padding: 1rem 0;
  background: var(--brand); color: var(--bg);
  rotate: -1.6deg;
  overflow: clip;
  box-shadow: 0 20px 50px -20px rgba(255, 106, 19, .5);
}
.strip-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip ul { display: flex; margin: 0; padding: 0; list-style: none; }
.strip li {
  display: flex; align-items: center; gap: 2.2rem; margin-right: 2.2rem; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 600; font-style: italic;
}
.strip li::after { content: "✦"; font-style: normal; font-size: .55em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   STAFF PICKS — 3D books
   ========================================================= */
.picks { padding-top: clamp(6rem, 11vw, 9rem); }
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.books .reveal:nth-child(2) { transition-delay: .1s; }
.books .reveal:nth-child(3) { transition-delay: .2s; }
.books .reveal:nth-child(4) { transition-delay: .3s; }

.book-card { display: flex; flex-direction: column; gap: 1.5rem; }
.book { position: relative; display: flex; justify-content: center; padding: 1.5rem 0 1.2rem; perspective: 1100px; }
.book::after {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: .3rem; height: 22px; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .85), transparent);
}
.book-3d {
  --t: 24px;
  position: relative; width: 70%; aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateY(-32deg);
  transition: transform .8s var(--ease);
}
.book-card:hover .book-3d { transform: rotateY(-8deg) translateY(-10px); }

.book-cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 12% 11%;
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  transform: translateZ(calc(var(--t) / 2));
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, .22), inset 12px 0 16px -8px rgba(0, 0, 0, .35);
}
.book-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 62%);
  transform: translateX(-60%); transition: transform 1s var(--ease);
}
.book-card:hover .book-cover::after { transform: translateX(60%); }

.book-pages {
  position: absolute; top: 2%; bottom: 2%;
  left: calc(100% - var(--t) / 2 - 3px); width: var(--t);
  background: repeating-linear-gradient(90deg, #EFE4D2 0 2px, #D4C5AE 2px 3px);
  transform: rotateY(90deg);
}
.book-back {
  position: absolute; inset: 0; border-radius: 6px 2px 2px 6px;
  background: #120E0B; transform: translateZ(calc(var(--t) / -2));
}

.cover-kicker { position: relative; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.cover-title {
  position: relative; margin-top: auto;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.01em;
}
.cover-author { position: relative; margin-top: .6rem; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* fountain ripples */
.cover-1 {
  color: var(--bg);
  background:
    radial-gradient(circle at 50% 36%, var(--bg) 0 5%, transparent 5.5% 14%, rgba(11, 9, 7, .85) 14.5% 16%, transparent 16.5% 25%, rgba(11, 9, 7, .6) 25.5% 27%, transparent 27.5% 36%, rgba(11, 9, 7, .35) 36.5% 38%, transparent 38.5%),
    var(--brand);
}
/* piano keys */
.cover-2 {
  color: var(--cream);
  background:
    linear-gradient(180deg, transparent 52%, #0E0B08 52%),
    repeating-linear-gradient(90deg, var(--brand) 0 11%, #0E0B08 11% 14%),
    #0E0B08;
}
.cover-2 .cover-kicker { color: var(--bg); }
/* prairie sun + horizon */
.cover-3 {
  color: var(--bg);
  background:
    radial-gradient(circle at 68% 34%, var(--brand) 0 15%, transparent 15.5%),
    linear-gradient(180deg, transparent 50%, rgba(11, 9, 7, .9) 50% 51%, transparent 51% 55%, rgba(11, 9, 7, .5) 55% 56%, transparent 56% 61%, rgba(11, 9, 7, .25) 61% 62%, transparent 62%),
    var(--cream);
}
/* noir diagonal */
.cover-4 {
  color: var(--cream);
  background:
    repeating-linear-gradient(135deg, rgba(11, 9, 7, .55) 0 6px, transparent 6px 16px) 0 0 / 100% 45% no-repeat,
    linear-gradient(180deg, var(--bg) 0 45%, transparent 45%),
    var(--brand-deep);
}

.book-meta h3 { margin: 0 0 .2rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.by { margin: 0 0 .9rem; color: var(--text-2); font-size: .85rem; }
.book-meta blockquote { margin: 0; padding-left: .9rem; border-left: 2px solid var(--brand); font-size: .95rem; }
.picker { margin: .7rem 0 0; color: var(--amber); font-size: .8rem; font-weight: 500; }

@media (max-width: 1000px) { .books { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; } }
@media (max-width: 520px)  {
  .books { grid-template-columns: 1fr; }
  .book-3d { width: 52%; }
  .books .reveal { transition-delay: 0s !important; }
}

/* =========================================================
   EVENTS — ember trail (anchor gesture)
   ========================================================= */
.events { background: linear-gradient(180deg, var(--bg), #110C08 18%, #110C08 82%, var(--bg)); }

.trail { position: relative; max-width: 1000px; margin-inline: auto; }
.trail-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail-ghost { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 9; }
.trail-glow, .trail-line { fill: none; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.trail-glow { stroke: rgba(255, 106, 19, .22); stroke-width: 12; }
.trail-line { stroke: var(--brand); stroke-width: 3; }

.trail-head {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: radial-gradient(circle, #FFF1E2 0 18%, var(--amber) 32%, var(--brand) 48%, rgba(255, 106, 19, 0) 72%);
  opacity: 0; transition: opacity .3s ease;
  will-change: transform;
  pointer-events: none;
}
.trail.is-active .trail-head { opacity: 1; }

.stops { position: relative; display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; }
.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18%; align-items: center; padding: 1.4rem 0; }
.stop:nth-child(odd) .stop-card { grid-column: 1; }
.stop:nth-child(even) .stop-card { grid-column: 2; }

.stop-node {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--bg); border: 2px solid #3A3027;
  transition: background-color .4s ease, border-color .4s ease, transform .5s var(--ease), box-shadow .4s ease;
}
.stop.is-lit .stop-node { background: var(--brand); border-color: var(--brand); transform: scale(1.2); box-shadow: 0 0 0 6px rgba(255, 106, 19, .18); }

.stop-card {
  position: relative;
  padding: 1.6rem 1.7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  opacity: .35; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .7s ease;
}
.stop.is-lit .stop-card { opacity: 1; transform: none; border-color: rgba(255, 106, 19, .45); }
.stop-card::before {
  content: ""; position: absolute; top: -1px; left: 1.7rem; right: 1.7rem; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0); transition: transform .8s var(--ease) .15s;
}
.stop.is-lit .stop-card::before { transform: scaleX(1); }

.stop-day { margin: 0 0 .5rem; color: var(--brand); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stop-card h3 { margin: 0 0 .6rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.stop-card p:not(.stop-day) { margin: 0 0 1rem; color: var(--text-2); font-size: .95rem; }
.stop-tag { display: inline-block; padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--amber); font-size: .78rem; }

.trail-rail { display: none; }

@media (max-width: 760px) {
  .trail-svg, .trail-head { display: none; }
  .trail-rail { display: block; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--line); }
  .trail-rail span { display: block; height: 100%; background: var(--brand); transform: scaleY(0); transform-origin: top; }
  .stops { grid-auto-rows: auto; }
  .stop { grid-template-columns: 1fr; padding: .8rem 0 .8rem 2.6rem; }
  .stop:nth-child(n) .stop-card { grid-column: 1; }
  .stop-node { left: 12px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-copy > p:not(.eyebrow) { max-width: 58ch; color: var(--text-2); }
.perks { display: grid; margin: 2rem 0 0; padding: 0; list-style: none; }
.perks li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--text-2); }
.perks li::before { content: ""; width: 9px; height: 9px; margin-top: .55rem; background: var(--brand); rotate: 45deg; }
.perks strong { color: var(--text); font-weight: 600; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition-delay: .15s;
}
.stat { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.4vw, 1.8rem); background: var(--surface); overflow: hidden; }
.stat::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 0% 0%, rgba(255, 106, 19, .16), transparent 60%);
  opacity: 0; transition: opacity .5s ease;
}
.stat:hover::before { opacity: 1; }
.stat-num {
  position: relative;
  font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 600; line-height: 1;
  letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums;
}
.stat-label { position: relative; color: var(--text-2); font-size: .9rem; line-height: 1.4; }

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* =========================================================
   IGNITE QUOTE — words catch fire on scroll
   ========================================================= */
.ignite { position: relative; overflow: clip; padding: clamp(5rem, 12vw, 10rem) 0; border-block: 1px solid var(--line); }
.ignite::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 106, 19, .1), transparent 70%);
  pointer-events: none;
}
.ignite-text {
  position: relative; max-width: 24ch; margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 4rem); font-weight: 400; line-height: 1.14; letter-spacing: -.025em;
  color: var(--text);
}
.ignite-text em { font-style: italic; color: var(--brand); }
.ignite-text.is-split .w { color: rgba(246, 239, 230, .14); transition: color .5s var(--ease); }
.ignite-text.is-split .w.is-lit { color: var(--text); }
.ignite-text.is-split .w.hot { font-style: italic; }
.ignite-text.is-split .w.hot.is-lit { color: var(--brand); }

/* =========================================================
   VISIT
   ========================================================= */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
address { margin: 0 0 1.8rem; color: var(--text-2); font-style: normal; line-height: 1.7; }
address strong { display: block; color: var(--text); font-size: 1.1rem; }
address .muted { display: inline-block; margin-top: .4rem; font-size: .88rem; }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .62rem 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours td { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hours td.late { color: var(--amber); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brand); font-weight: 600; }
.hours tr.is-today th::after {
  content: "Today"; margin-left: .6rem; padding: .1rem .5rem; border-radius: 999px;
  background: var(--brand); color: var(--bg); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: .15em;
}
.hours-note { margin: .9rem 0 2rem; color: var(--text-2); font-size: .88rem; }
.visit-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.visit-map { position: relative; min-height: 440px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); transition-delay: .15s; }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.88) brightness(.85); }
.visit-map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(255, 106, 19, .5); mix-blend-mode: color;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 19, .25), inset 0 0 80px rgba(11, 9, 7, .7);
}
.map-chip {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1; margin: 0;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: rgba(11, 9, 7, .88); border: 1px solid rgba(255, 106, 19, .35);
  font-size: .85rem; font-weight: 500; pointer-events: none;
}
.map-chip .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.newsletter {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem 2rem; align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 106, 19, .22), transparent 55%), var(--surface);
  border: 1px solid rgba(255, 106, 19, .25); border-radius: 24px;
}
.newsletter h3 { margin: 0 0 .4rem; font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; }
.newsletter p { margin: 0; color: var(--text-2); }
.nl-field { display: flex; gap: .5rem; padding: .35rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; transition: border-color .25s ease; }
.nl-field:focus-within { border-color: var(--brand); }
.nl-field input { flex: 1; min-width: 0; padding: 0 1rem; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; }
.nl-field input::placeholder { color: #6E6258; }
.newsletter .nl-msg { grid-column: 1 / -1; min-height: 1.5em; color: var(--amber); font-size: .9rem; }
.nl-msg:empty { display: none; }

@media (max-width: 860px) {
  .visit-grid, .newsletter { grid-template-columns: 1fr; }
  .visit-map { min-height: 320px; }
}
@media (max-width: 480px) {
  .nl-field { flex-direction: column; border-radius: 18px; }
  .nl-field input { padding: .85rem 1rem; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.footer-tag { max-width: 34ch; margin: .9rem 0 0; color: var(--text-2); font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; padding-top: .5rem; color: var(--text-2); font-size: .92rem; }
.footer-nav a { transition: color .25s ease; }
.footer-nav a:hover { color: var(--brand); }
.socials { display: flex; gap: .6rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--text-2); transition: color .25s ease, border-color .25s ease, transform .35s var(--ease); }
.socials a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer-word {
  margin: 3rem 0 0; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--font-display); font-size: min(12vw, 10.5rem); font-weight: 600; font-style: italic; line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 106, 19, .45);
  background: linear-gradient(180deg, rgba(255, 106, 19, .16), transparent 80%);
  -webkit-background-clip: text; background-clip: text;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-2); font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* =========================================================
   MOBILE CTA BAR
   ========================================================= */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 90;
    display: grid; grid-template-columns: 1.5fr 1fr; gap: .5rem;
    padding: .45rem; border-radius: 999px;
    background: rgba(21, 17, 13, .94); border: 1px solid rgba(255, 106, 19, .3);
    box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .9);
    transition: transform .45s var(--ease), opacity .3s ease;
  }
  .mobile-cta .btn { min-height: 46px; }
  .mobile-cta.is-hidden, body.menu-open .mobile-cta { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .footer { padding-bottom: 6.5rem; }
}

/* =========================================================
   REDUCED MOTION — checked effect by effect
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  mark { transition: none; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-ctas, .hero-note, .spine, .cat { animation: none; }
  .brand-flame, .dot::after, .cat-tail, .cat-eyes, .hero-scroll span { animation: none; }
  .strip-track { animation: none; }
  .spine:hover, .btn:hover, .socials a:hover { transform: none; }
  .book-3d, .book-cover::after { transition: none; }
  .book-card:hover .book-3d { transform: rotateY(-32deg); }
  .stop-card { opacity: 1; transform: none; transition: none; }
  .stop-card::before { transform: scaleX(1); transition: none; }
  .trail-glow, .trail-line { stroke-dashoffset: 0; }
  .trail-rail span { transform: none; }
  .ignite-text.is-split .w { transition: none; }
  .nav-links, .nav-links > a { transition: none; }
}
