/* ============ TOKENS ============ */
:root {
  --ink: #0B2318;
  --ink-2: #0F2E1E;
  --cream: #FCF9F5;
  --green: #004524;
  --green-bright: #0B7A45;
  --clay: #B0431A;
  --brass: #C9A227;
  --text-dim: #B9CBBE;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

@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;
  }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

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

/* ============ WORDMARK ============ */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.wordmark-icon { font-size: 1.1rem; filter: saturate(1.3); }
.wordmark-logo {
  height: 34px;
  width: auto;
  border-radius: 6px;
  background: var(--cream);
  padding: 3px 5px;
}
.footer-brand .wordmark-logo { height: 30px; }
.wordmark-text em { font-style: italic; color: var(--green-bright); font-weight: 400; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(28, 20, 16, 0.88);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 241, 229, 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.25s var(--ease); position: relative; }
.nav-links a:hover { color: var(--cream); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--green-bright);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(247, 241, 229, 0.25);
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--green);
  border-color: var(--green);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  width: 22px; height: 1.5px;
  background: var(--cream);
  transition: all 0.3s var(--ease);
}

.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: var(--ink-2);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 40px;
  transition: right 0.45s var(--ease);
  border-left: 1px solid rgba(247, 241, 229, 0.08);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(0, 69, 36, 0.28), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(11, 122, 69, 0.35) 0%, rgba(0, 69, 36, 0.12) 45%, transparent 70%);
  filter: blur(20px);
  animation: glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.ember-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span,
.hero-title .line {
  opacity: 0;
  transform: translateY(100%);
  animation: rise 1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) { animation-delay: 0.45s; }
.hero-title em { font-style: italic; color: var(--green-bright); font-weight: 400; }

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

.hero-sub {
  margin: 28px auto 0;
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--text-dim);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.75s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.35s var(--ease);
}
.btn-primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 0 0 0 rgba(0, 69, 36, 0.5);
}
.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 8px 30px rgba(11, 122, 69, 0.45);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid rgba(247, 241, 229, 0.28);
  color: var(--cream);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(247, 241, 229, 0.06);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.full { width: 100%; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: rise 0.9s var(--ease) 1s forwards;
}
.scroll-line {
  width: 1px; height: 40px;
  background: rgba(247, 241, 229, 0.2);
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  position: absolute;
  top: -10px; left: -1.5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-bright);
  animation: scroll-fall 2.2s ease-in-out infinite;
}
@keyframes scroll-fall {
  0% { top: -10px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 44px; opacity: 0; }
}

/* ============ SECTION SHARED ============ */
.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 14px;
}
.section-eyebrow.center { text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.section-title.center { text-align: center; }

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

/* ============ STORY ============ */
.story {
  padding: 140px 24px;
  background: var(--ink-2);
  border-top: 1px solid rgba(247, 241, 229, 0.06);
}
.story-inner { max-width: 1100px; margin: 0 auto; }
.story-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--green-bright);
  margin-bottom: 16px;
}
.story-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 500;
  max-width: 620px;
  line-height: 1.15;
  margin-bottom: 64px;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.story-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 20px;
  max-width: 440px;
}
.story-times {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.time-block {
  padding: 24px 0;
  border-top: 1px solid rgba(247, 241, 229, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: padding-left 0.35s var(--ease);
}
.time-block:last-child { border-bottom: 1px solid rgba(247, 241, 229, 0.1); }
.time-block:hover { padding-left: 16px; }
.time-block::before {
  content: '';
  position: absolute;
  left: -24px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.time-block:hover::before { opacity: 1; }
.time-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  text-transform: uppercase;
}
.time-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}
.time-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ============ MENU ============ */
.menu {
  padding: 140px 24px;
  background: var(--ink);
}
.menu-inner { max-width: 900px; margin: 0 auto; }
.menu-tabs {
  display: flex;
  gap: 8px;
  margin: 48px 0 40px;
  border-bottom: 1px solid rgba(247, 241, 229, 0.1);
  overflow-x: auto;
}
.menu-tab {
  padding: 14px 4px;
  margin-right: 32px;
  font-size: 0.98rem;
  color: var(--text-dim);
  position: relative;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.menu-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.menu-tab.active { color: var(--cream); }
.menu-tab.active::after { transform: scaleX(1); }

.menu-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.menu-panel.active {
  display: grid;
  animation: fade-in 0.5s var(--ease);
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu-item {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(247, 241, 229, 0.08);
}
.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 6px;
  gap: 12px;
}
.menu-item-head .price {
  color: var(--brass);
  font-size: 1rem;
  white-space: nowrap;
}
.menu-item p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ============ GALLERY ============ */
.gallery {
  padding: 140px 0;
  background: var(--ink-2);
}
.gallery .section-eyebrow, .gallery .section-title { padding: 0 24px; }
.gallery-strip {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 24px 20px;
  scroll-snap-type: x proximity;
}
.gallery-card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gallery-visual {
  width: 280px;
  height: 360px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.gallery-card:hover .gallery-visual { transform: scale(1.02); }
.gallery-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(28,20,16,0.5) 100%);
}
.g1 { background: linear-gradient(155deg, #14503098, #0B2318 70%); }
.g2 { background: linear-gradient(155deg, #1a5c3898, #0F2E1E 70%); }
.g3 { background: linear-gradient(155deg, #0B7A4598, #0B2318 70%); }
.g4 { background: linear-gradient(155deg, #17724098, #0F2E1E 70%); }
.g5 { background: linear-gradient(155deg, #0d3d2498, #0B2318 70%); }
.gallery-card span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============ BOOK ============ */
.book {
  padding: 140px 24px;
  background: var(--ink);
}
.book-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.book-copy {
  color: var(--text-dim);
  margin: 24px 0 40px;
  max-width: 400px;
}
.book-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.book-info-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(247, 241, 229, 0.1);
  font-size: 0.92rem;
  max-width: 400px;
}
.book-info-row span:first-child { color: var(--text-dim); }

.book-form {
  background: var(--ink-2);
  border: 1px solid rgba(247, 241, 229, 0.08);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.book-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.book-form label.full { grid-column: 1 / -1; }
.optional { color: rgba(201,191,174,0.5); font-size: 0.78rem; }
.book-form input, .book-form select {
  background: var(--ink);
  border: 1px solid rgba(247, 241, 229, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--cream);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease);
}
.book-form input:focus, .book-form select:focus {
  outline: none;
  border-color: var(--green-bright);
}
.book-form input::placeholder { color: rgba(201,191,174,0.4); }
.form-note {
  font-size: 0.88rem;
  color: var(--green-bright);
  min-height: 1.2em;
}

/* ============ ORDER / PAYMENT ============ */
.order {
  padding: 140px 24px;
  background: var(--ink-2);
  display: flex;
  justify-content: center;
}
.order-inner { max-width: 640px; text-align: center; }
.order-card {
  margin-top: 48px;
  background: var(--ink);
  border: 1px solid rgba(247, 241, 229, 0.1);
  border-radius: 16px;
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}
.order-card-glow {
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,69,36,0.18), transparent 70%);
  pointer-events: none;
}
.paypal-mark {
  color: var(--cream);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.order-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.order-card p {
  color: var(--text-dim);
  max-width: 420px;
  margin: 0 auto 32px;
  font-size: 0.95rem;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink-2);
  border-top: 1px solid rgba(247, 241, 229, 0.08);
  padding: 80px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.footer-brand em { font-style: italic; color: var(--green-bright); font-weight: 400; }
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-cols h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-cols p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 241, 229, 0.08);
  font-size: 0.85rem;
  color: rgba(201,191,174,0.7);
}
.footer-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(201,191,174,0.45);
}

/* ============ EMBER CURSOR ============ */
.ember-cursor {
  position: fixed;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,122,69,0.5), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .ember-cursor { display: block; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .book-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .menu-panel.active { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero { padding-top: 140px; }
  .book-form { padding: 28px; }
  .order-card { padding: 40px 24px; }
}
