/* ==========================================================================
   MARLUCE BAKERS
   Palette: forest (signage green), ivory, one gold accent (signage lettering).
   Type: Playfair Display for voice, Plus Jakarta Sans (light) for utility.
   Surfaces are flat; hierarchy comes from scale, hairlines and whitespace.
   ========================================================================== */

:root {
  --forest: #0D503C;
  --forest-deep: #06261C;
  --forest-ink: #041a13;
  --ivory: #F5F1EA;
  --ivory-2: #EDE7DC;
  --cream: #FBF9F4;
  --gold: #D4AF37;
  --gold-ink: #7F6418;          /* gold dark enough for small text on ivory (4.6:1) */
  --ink: #17201C;
  --ink-muted: #4F5D57;
  --on-dark: #F5F1EA;
  --on-dark-muted: #B9C8C1;
  --whatsapp: #25D366;

  --hair: rgba(13, 80, 60, 0.16);
  --hair-light: rgba(245, 241, 234, 0.22);
  --hair-gold: rgba(212, 175, 55, 0.45);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1320px;
  --wrap-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(6rem, 12vw, 11rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.25s var(--ease-out);
  --t-slow: 0.9s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

body {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  background: var(--ivory);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.on-dark :focus-visible, .house :focus-visible, .visit :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; color: inherit; }
em { font-style: italic; }

.h-section { font-size: clamp(2.4rem, 5vw, 4.5rem); max-width: 14ch; }
.h-feature { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 14ch; margin: 0.6rem 0 1.25rem; }

.lede { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.7; color: var(--ink-muted); max-width: 46ch; }
.lede-light { color: var(--on-dark-muted); }

/* Identity motif: "No. 0X" numbering with a gold hairline */
.section-no {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold-ink);
  margin-bottom: 1.5rem;
}
.section-no span { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.section-no::before { content: ''; width: 2.5rem; height: 1px; background: var(--gold); }
.section-no-light { color: var(--gold); }
.section-no-light span { color: var(--on-dark-muted); }

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head-split { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.section-head-note { max-width: 36ch; padding-bottom: 0.4rem; }

/* Line-reveal helpers (lines are wrapped by JS) */
.line { display: block; overflow: hidden; }
.line > span { display: block; will-change: transform; }
[data-lines] .line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.85rem 1.75rem;
  font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--forest-ink); border-color: var(--gold); }
.btn-gold:hover { background: #E2C25A; border-color: #E2C25A; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--hair-light); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Editorial text link: underline grows, a single arrow marks the action */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--forest);
  padding: 0.35rem 0; position: relative;
}
.link-arrow::after { content: '→'; font-style: normal; transition: transform var(--t-fast); }
.link-arrow::before { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0.35); transform-origin: left; transition: transform var(--t-slow); }
.link-arrow:hover::before { transform: scaleX(1); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow-light { color: var(--gold); }

/* --------------------------------------------------------------------------
   Entrance curtain
   -------------------------------------------------------------------------- */
.curtain {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--forest-deep); color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
}
.curtain-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.curtain-emblem { width: clamp(64px, 9vw, 96px); height: auto; color: var(--gold); }
.curtain-emblem [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.curtain-word { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.1em; opacity: 0; }
.curtain-line { width: 0; height: 1px; background: var(--gold); }
body:not(.is-loading) .curtain { pointer-events: none; }

/* --------------------------------------------------------------------------
   Header (sits over the hero, solidifies on scroll)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--on-dark);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(245, 241, 234, 0.96); color: var(--ink); border-color: var(--hair); }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter);
  height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-header.is-scrolled .header-inner { height: 68px; }

.wordmark { display: inline-flex; align-items: center; gap: 0.75rem; }
.wordmark-emblem { width: 26px; height: 36px; color: var(--gold); }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name { font-family: var(--serif); font-size: 1.2rem; }
.wordmark-tag { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 500; }
.site-header.is-scrolled .wordmark-tag { color: var(--gold-ink); }

.nav { display: flex; gap: 2.25rem; }
.nav-link { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; position: relative; padding: 0.5rem 0; opacity: 0.85; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0.15rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-slow); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover, .nav-link.is-active { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.header-wa { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.tray-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.tray-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--forest-ink); font-size: 0.7rem; font-weight: 600; letter-spacing: 0; }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: currentColor; }

/* --------------------------------------------------------------------------
   Drawers (mobile nav, tray)
   -------------------------------------------------------------------------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(4, 26, 19, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-drawer, .tray {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 950;
  width: min(92vw, 440px); height: 100dvh;
  background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.6s var(--ease-out);
  border-left: 1px solid var(--hair);
}
.mobile-drawer.is-open, .tray.is-open { transform: translateX(0); }

.drawer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }

.mobile-drawer { padding: 1.5rem; }
.mobile-drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--hair); }
.mobile-links { display: flex; flex-direction: column; margin: 1.5rem 0; }
.mobile-link { display: flex; align-items: baseline; gap: 1rem; padding: 0.9rem 0; font-family: var(--serif); font-size: 1.6rem; border-bottom: 1px solid var(--hair); }
.mobile-link small { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold-ink); }
.mobile-drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; font-size: 0.9rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: var(--on-dark); overflow: hidden; background: var(--forest-deep); }
.hero-media { position: absolute; inset: -12% 0 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.08); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,26,19,0.5) 0%, rgba(4,26,19,0.1) 30%, rgba(4,26,19,0.55) 62%, rgba(4,26,19,0.9) 100%),
    linear-gradient(90deg, rgba(4,26,19,0.55) 0%, rgba(4,26,19,0) 60%);
}

.hero-content { position: relative; z-index: 2; align-self: end; max-width: var(--wrap); width: 100%; margin-inline: auto; padding: 10rem var(--gutter) 4rem; }
.hero-kicker { display: flex; align-items: center; gap: 1rem; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; color: var(--gold); margin-bottom: 2rem; }
.hero-kicker i { width: 1.75rem; height: 1px; background: var(--gold); opacity: 0.7; }
.hero-title { font-size: clamp(3rem, 8.5vw, 8rem); line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 2rem; }
.hero-title em { color: var(--gold); }
.hero-lede { font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.65; max-width: 52ch; color: var(--on-dark-muted); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-foot { position: relative; z-index: 2; max-width: var(--wrap); width: 100%; margin-inline: auto; padding: 0 var(--gutter) 2rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-scroll { width: 1px; height: 56px; background: var(--hair-light); position: relative; overflow: hidden; }
.hero-scroll span { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--gold); animation: scroll-cue 2.2s var(--ease-in-out) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }

/* --------------------------------------------------------------------------
   Manifesto (scroll-driven word reveal)
   -------------------------------------------------------------------------- */
.manifesto { padding: var(--section) 0; }
.manifesto-text { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 3.1rem); line-height: 1.32; max-width: 26ch; letter-spacing: -0.01em; }
.manifesto-text .w { opacity: 0.16; transition: opacity 0.3s; }
.manifesto-text .w.is-on { opacity: 1; }
.manifesto-sign { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold-ink); margin-top: 3rem; }

/* --------------------------------------------------------------------------
   Signatures (alternating editorial entries + one full-bleed band)
   -------------------------------------------------------------------------- */
.signatures { padding-bottom: var(--section); background: var(--cream); border-top: 1px solid var(--hair); }
.signatures .section-head { padding-top: var(--section); }

.sig { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(3rem, 7vw, 8rem); max-width: var(--wrap); margin: 0 auto clamp(6rem, 10vw, 9rem); padding-inline: var(--gutter); }
.sig-flip .sig-media { order: 2; }
.sig-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ivory-2); }
.sig-media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.sig-copy { max-width: 48ch; }
.sig-num { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--gold); display: block; }
.sig-eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--gold-ink); margin-top: 1rem; }
.sig-eyebrow-light { color: var(--gold); }
.sig-copy .lede { margin-bottom: 1.75rem; }

.sig-band { position: relative; min-height: 88vh; display: flex; align-items: flex-end; margin: 0 0 clamp(6rem, 10vw, 9rem); color: var(--on-dark); overflow: hidden; background: var(--forest-deep); }
.sig-band-media { position: absolute; inset: -15% 0 0; }
.sig-band-media img { width: 100%; height: 100%; object-fit: cover; }
.sig-band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,26,19,0.85) 0%, rgba(4,26,19,0.45) 55%, rgba(4,26,19,0.15) 100%); }
.sig-band-copy { position: relative; z-index: 2; max-width: var(--wrap); width: 100%; margin-inline: auto; padding: 5rem var(--gutter); }
.sig-band-copy .h-feature { color: var(--on-dark); }
.sig-band-copy .lede { color: var(--on-dark-muted); margin-bottom: 1.75rem; }

/* --------------------------------------------------------------------------
   Interstitial band
   -------------------------------------------------------------------------- */
.band { position: relative; height: 70vh; min-height: 460px; overflow: hidden; display: grid; place-items: center; color: var(--on-dark); background: var(--forest-deep); }
.band-media { position: absolute; inset: -20% 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-shade { position: absolute; inset: 0; background: rgba(4, 26, 19, 0.55); }
.band-copy { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.band-time { font-family: var(--serif); font-size: clamp(5rem, 16vw, 14rem); line-height: 0.9; color: var(--gold); letter-spacing: -0.03em; }
.band-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.5rem); max-width: 34ch; margin: 1.5rem auto 0; color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Today's Batch (menu + tray)
   -------------------------------------------------------------------------- */
.batch { padding: var(--section) 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0 2rem; border-bottom: 1px solid var(--hair); margin-bottom: 3rem; }
.filter { position: relative; padding: 0.9rem 0; min-height: 44px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--ink-muted); }
.filter::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--forest); transform: scaleX(0); transition: transform var(--t-slow); }
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--forest); }
.filter.is-active::after { transform: scaleX(1); }

.batch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem 2.5rem; }
.dish { display: flex; flex-direction: column; }
.dish.is-hidden { display: none; }
.dish-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory-2); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.dish:hover .dish-media img { transform: scale(1.04); }
.dish-body { padding-top: 1.25rem; border-top: 1px solid var(--hair); margin-top: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dish-top h3 { font-size: 1.35rem; }
.dish-price { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); white-space: nowrap; }
.dish-fr { font-family: var(--serif); font-style: italic; font-size: 0.92rem; color: var(--gold-ink); margin: 0.3rem 0 0.75rem; }
.dish-desc { font-size: 0.92rem; color: var(--ink-muted); flex: 1; }
.dish-add { align-self: flex-start; margin-top: 1.25rem; min-height: 44px; padding: 0.6rem 0; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--forest); border-bottom: 1px solid var(--forest); transition: color var(--t-fast), border-color var(--t-fast); }
.dish-add:hover { color: var(--gold-ink); border-color: var(--gold); }
.dish-add.is-added { color: var(--gold-ink); border-color: var(--gold); }
.batch-empty { text-align: center; padding: 4rem 0; color: var(--ink-muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }

/* --------------------------------------------------------------------------
   The House (dark, pinned horizontal timeline)
   -------------------------------------------------------------------------- */
.house { background: var(--forest-deep); color: var(--on-dark); padding-top: var(--section); overflow: hidden; }
.house-intro { padding-bottom: clamp(3rem, 6vw, 5rem); }
.house-intro .lede { margin-top: 1.5rem; }

.timeline { position: relative; border-top: 1px solid var(--hair-light); border-bottom: 1px solid var(--hair-light); }
.timeline-track { display: flex; width: max-content; }
.milestone { flex: 0 0 auto; width: min(80vw, 520px); padding: clamp(3rem, 6vw, 5rem) var(--gutter); border-right: 1px solid var(--hair-light); }
.milestone-no { font-family: var(--serif); font-size: 4rem; color: var(--gold); line-height: 1; display: block; }
.milestone-date { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--gold); margin: 1.5rem 0 0.75rem; }
.milestone h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.milestone p { color: var(--on-dark-muted); font-size: 0.95rem; max-width: 36ch; }
.milestone-now { background: rgba(212, 175, 55, 0.06); }

.house-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: var(--section); }
.pillar h4 { font-size: 1.25rem; margin-bottom: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--gold); }
.pillar p { font-size: 0.9rem; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   Journal (two rows sliding in opposite directions on scroll)
   -------------------------------------------------------------------------- */
.journal { padding: var(--section) 0; background: var(--cream); overflow: hidden; }
.journal-rows { display: flex; flex-direction: column; gap: 1.5rem; }
.journal-row { display: flex; gap: 1.5rem; width: max-content; will-change: transform; }
.journal-row[data-row="1"] { margin-left: -12vw; }
.journal-item { flex: 0 0 auto; width: 22vw; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory-2); }
.journal-item.tall { aspect-ratio: 3 / 4; width: 18vw; }
.journal-item.wide { aspect-ratio: 4 / 3; width: 28vw; }
.journal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.journal-item:hover img { transform: scale(1.04); }

/* --------------------------------------------------------------------------
   Visit
   -------------------------------------------------------------------------- */
.visit { position: relative; padding: var(--section) 0; color: var(--on-dark); background: var(--forest-deep); overflow: hidden; }
.visit-media { position: absolute; inset: -15% 0; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; }
.visit-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,26,19,0.94) 0%, rgba(4,26,19,0.8) 50%, rgba(4,26,19,0.55) 100%); }
.visit-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }
.visit-head .lede { margin: 1.5rem 0 2rem; }
.visit-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.branches { border-top: 1px solid var(--hair-light); }
.branch { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--hair-light); }
.branch-no { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.branch h3 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.branch h3 small { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.branch p { color: var(--on-dark-muted); font-size: 0.92rem; margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { padding: var(--section) 0; }
.faq-list { border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 0; text-align: left; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); min-height: 44px; }
.faq-q svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-ink); transition: transform 0.5s var(--ease-out); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > p { overflow: hidden; color: var(--ink-muted); max-width: 62ch; }
.faq-item.is-open .faq-a > p { padding-bottom: 1.75rem; }

/* --------------------------------------------------------------------------
   Marquee (scroll-velocity driven)
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--hair); padding: 2.5rem 0; background: var(--ivory); }
.marquee-track { display: flex; gap: 4rem; width: max-content; font-family: var(--serif); font-size: clamp(3rem, 8vw, 7rem); line-height: 1; white-space: nowrap; color: var(--forest-deep); will-change: transform; }
.marquee-track span:nth-child(even) { font-style: italic; color: var(--gold); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--forest-deep); color: var(--on-dark-muted); border-top: 1px solid var(--hair-gold); text-align: center; }
.footer-inner { padding-top: 5rem; padding-bottom: 2.5rem; display: flex; flex-direction: column; align-items: center; }
.footer-name { font-family: var(--serif); font-size: 2.25rem; color: var(--on-dark); line-height: 1; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--gold); margin-top: 0.75rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 3rem; justify-content: center; margin: 3.5rem 0 4rem; }
.footer-col h4 { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1rem; }
.footer-col p { font-size: 0.92rem; line-height: 1.9; }
.footer-col a { border-bottom: 1px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.footer-col a:hover { color: var(--on-dark); border-color: var(--gold); }
.footer-bottom { width: 100%; padding-top: 1.75rem; border-top: 1px solid var(--hair-light); font-size: 0.78rem; letter-spacing: 0.08em; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-eat { font-family: var(--serif); font-style: italic; color: var(--gold); letter-spacing: 0; font-size: 1rem; }
.footer-credit { margin-top: 2.25rem; font-size: 0.72rem; letter-spacing: 0.06em; }
.footer-credit a { color: var(--on-dark); border-bottom: 1px solid var(--gold); transition: color var(--t-fast); }
.footer-credit a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Tray
   -------------------------------------------------------------------------- */
.tray-head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--hair); }
.tray-head h3 { font-size: 1.5rem; }
.tray-body { flex: 1; overflow-y: auto; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; }
.tray-empty { text-align: center; padding: 2.5rem 0; font-family: var(--serif); font-size: 1.2rem; }
.tray-empty .small { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-muted); margin-top: 0.5rem; }
.tray-items { display: flex; flex-direction: column; }
.tray-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.tray-row h4 { font-size: 1.02rem; }
.tray-row small { display: block; color: var(--ink-muted); font-size: 0.82rem; margin-top: 2px; }
.tray-qty { display: flex; align-items: center; gap: 0.25rem; }
.qty-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hair); font-size: 1rem; transition: background var(--t-fast); }
.qty-btn:hover { background: var(--ivory-2); }
.qty-num { min-width: 28px; text-align: center; font-weight: 500; }
.tray-form { display: flex; flex-direction: column; gap: 0.6rem; }
.tray-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--gold-ink); margin-top: 0.75rem; }
.tray-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.tray-branch { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.5rem; border: 1px solid var(--hair); font-size: 0.8rem; cursor: pointer; text-align: center; transition: border-color var(--t-fast), background var(--t-fast); }
.tray-branch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tray-branch.is-selected { border-color: var(--forest); background: rgba(13, 80, 60, 0.06); color: var(--forest); }
.tray-branch:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.tray-input { width: 100%; min-height: 46px; padding: 0.6rem 0.85rem; background: var(--ivory); border: 1px solid var(--hair); border-radius: 2px; font-size: 0.92rem; }
.tray-input:focus { outline: none; border-color: var(--forest); }
.tray-foot { padding: 1.5rem 1.75rem; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 1rem; background: var(--cream); }
.tray-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.25rem; }
.tray-total span:last-child { color: var(--forest); }
.tray-note { font-size: 0.78rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 990; transform: translate(-50%, 140%); background: var(--forest-deep); color: var(--on-dark); border: 1px solid var(--hair-gold); padding: 0.9rem 1.5rem; font-size: 0.9rem; opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.4s; pointer-events: none; max-width: calc(100vw - 2rem); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* --------------------------------------------------------------------------
   Reveal defaults (JS animates; without JS everything is visible)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }

/* --------------------------------------------------------------------------
   Reduced motion: no parallax, no pinning, no curtain choreography
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll span { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .manifesto-text .w { opacity: 1; }
  .curtain { display: none; }
  * { transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .batch-grid { grid-template-columns: repeat(2, 1fr); }
  .house-pillars { grid-template-columns: repeat(2, 1fr); }

  .journal-item { width: 34vw; }
  .journal-item.tall { width: 28vw; }
  .journal-item.wide { width: 44vw; }
}

@media (max-width: 860px) {
  .nav, .header-wa { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { height: 72px; }
  .header-actions { gap: 0.5rem; }

  .hero-content { padding-top: 8rem; padding-bottom: 3rem; }
  .hero-title { font-size: clamp(2.8rem, 13vw, 5rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-foot { font-size: 0.62rem; letter-spacing: 0.14em; }
  .hero-scroll { display: none; }

  .section-head-split { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }

  .sig { grid-template-columns: 1fr; gap: 2rem; }
  .sig-flip .sig-media { order: 0; }
  .sig-media { aspect-ratio: 4 / 5; }
  .sig-num { font-size: 2.5rem; }
  .sig-band { min-height: 70vh; }
  .sig-band-shade { background: linear-gradient(180deg, rgba(4,26,19,0.25) 0%, rgba(4,26,19,0.88) 70%); }

  .band { height: 60vh; min-height: 380px; }

  .batch-grid { grid-template-columns: 1fr; gap: 3rem; }
  .filters { gap: 0 1.4rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; }

  .timeline-track { flex-direction: column; width: 100%; }
  .milestone { width: 100%; border-right: 0; border-bottom: 1px solid var(--hair-light); padding-block: 2.5rem; }
  .milestone:last-child { border-bottom: 0; }
  .house-pillars { grid-template-columns: 1fr; gap: 1.5rem; }

  .journal-item { width: 56vw; }
  .journal-item.tall { width: 44vw; }
  .journal-item.wide { width: 68vw; }

  .visit-grid { grid-template-columns: 1fr; gap: 3rem; }
  .visit-shade { background: rgba(4,26,19,0.86); }
  .visit-actions .btn { flex: 1 1 100%; }

  .footer-inner { padding-top: 3.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; margin: 2.5rem 0 3rem; }

  .tray-branches { grid-template-columns: 1fr; }
}
