/* =========================================================
   Harmattan — concept demo (Merimei Studio)
   Scroll-driven upscale Ghanaian restaurant.
   Deep navy, candlelit, gold accents.
   ========================================================= */

:root {
  --ink:    #101827;   /* deep navy — replaced brown per feedback */
  --char:   #182236;
  --ember:  #D9A94A;   /* warm gold — primary accent (was orange/amber) */
  --ember-d:#B8893A;
  --gold:   #C7A46B;   /* muted brass — secondary accent */
  --cream:  #F3E9DA;   /* warm cream text */
  --cream-d:rgba(243,233,218,0.66);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono:    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--cream);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ember); color: var(--ink); }

/* ---------- colour-shifting ground ---------- */
#ground { position: fixed; inset: 0; z-index: -2; background: var(--ink); transition: background-color .18s linear; }

/* ---------- progress ---------- */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; background: rgba(243,233,218,.1); }
#progress-bar { display: block; height: 100%; width: 0%; background: var(--ember); }

/* ---------- skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ember); color: var(--ink); padding: 12px 18px; font-family: var(--mono); font-size: 13px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- concept banner ---------- */
.concept-banner {
  position: relative; z-index: 95;
  background: var(--ember); color: var(--ink);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5;
  padding: 9px 20px; text-align: center;
}
.concept-banner strong { font-weight: 500; }

/* ---------- nav ---------- */
#nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 15px 28px;
  background: rgba(16,24,39,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(243,233,218,.09);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--cream); }
.mark { width: 30px; height: 30px; color: var(--ember); flex: none; }
.brand-word { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--cream-d); transition: color .25s ease; }
.nav-links a:hover { color: var(--ember); }
.nav-cta { border: 1px solid var(--ember); color: var(--ember) !important; padding: 8px 16px; border-radius: 2px; }
.nav-cta:hover { background: var(--ember); color: var(--ink) !important; }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 48px); }

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-d); display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.kicker .idx { color: var(--ember); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(52px, 10vw, 132px); letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 5.4vw, 64px); }
h2.big { font-size: clamp(38px, 6.6vw, 84px); }
h3 { font-size: 22px; font-weight: 500; }

p { margin: 0 0 18px; }
.lede { font-size: clamp(18px, 2.1vw, 24px); color: var(--cream); font-weight: 400; }
strong { font-weight: 600; color: var(--ember); }

/* ---------- reveal / assemble ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s ease, transform .85s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.assemble .line { display: block; overflow: hidden; }
.assemble .line > span { display: block; }
.js .assemble .line > span { transform: translateY(115%); transition: transform .95s cubic-bezier(.22,1,.36,1); }
.assemble.in .line > span { transform: translateY(0); }
.assemble.in .line:nth-child(1) > span { transition-delay: .04s; }
.assemble.in .line:nth-child(2) > span { transition-delay: .14s; }
.assemble.in .line:nth-child(3) > span { transition-delay: .24s; }

/* ================= HERO ================= */
.hero { height: 215vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.hero-media { position: absolute; inset: -8% 0; will-change: transform; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8) saturate(1.05) contrast(1.02); }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(16,24,39,.64) 0%, rgba(16,24,39,.26) 55%, rgba(16,24,39,.14) 100%),
    linear-gradient(to top, rgba(16,24,39,.68) 0%, rgba(16,24,39,0) 42%);
}
.hero-inner { position: relative; width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-d); display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); flex: none; }
.hero-sub { max-width: 52ch; margin-top: 30px; font-size: clamp(16px, 1.8vw, 19px); color: rgba(243,233,218,.85); font-weight: 400; }
.hero-cue { margin-top: 44px; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-d); }
.cue-line { display: block; width: 66px; height: 1px; background: var(--ember); transform-origin: left; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleX(.3); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }

/* ================= IDEA ================= */
.idea { padding: clamp(110px, 16vh, 190px) 0; position: relative; }
.idea-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 34px; }
.idea-grid p { color: rgba(243,233,218,.78); margin: 0; font-weight: 400; }

/* ================= CHAPTERS ================= */
.chapter { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden; }
.chapter.alt .chapter-media { order: 2; }
.chapter-media { position: relative; overflow: hidden; min-height: 56vh; }
.chapter-media img { position: absolute; inset: -9% 0; width: 100%; height: 118%; object-fit: cover; will-change: transform; filter: brightness(.96) saturate(1.05) contrast(1.02); }
.chapter-body { display: flex; align-items: center; padding: clamp(72px, 10vh, 128px) 0; }
.chapter-body .wrap.narrow { width: min(560px, 100% - 48px); }
.chapter-body p { color: rgba(243,233,218,.78); font-weight: 400; }

.spec { margin: 38px 0 0; display: grid; gap: 0; }
.spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(243,233,218,.14); }
.spec dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,233,218,.5); }
.spec dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--ember); text-align: right; }

/* ============ SIGNATURE: THE PASS ============ */
.pass { height: 400vh; position: relative; }
.pass-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pass-stage { position: relative; height: 100%; }
.pass-plates { position: absolute; inset: 0; }
.pass-plate {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .7s ease, transform 6s ease-out;
  transform: scale(1.04);
  filter: brightness(.84) saturate(1.06);
}
.pass-plate.is-active { opacity: 1; transform: scale(1.1); }
.pass-veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(16,24,39,.7) 0%, rgba(16,24,39,.4) 46%, rgba(16,24,39,.14) 100%); }

.pass-panel { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.courses { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.course {
  position: absolute; top: 0; left: 0; max-width: 30ch;
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.course.is-active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.course-count { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.course h3 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; line-height: 1.08; margin: 0 0 16px; }
.course-desc { color: rgba(243,233,218,.82); font-weight: 400; margin: 0 0 18px; font-size: 17px; }
.course-price { font-family: var(--mono); font-size: 13px; color: var(--ember); margin: 0; }

.pass-dots { display: flex; gap: 10px; margin-top: 40px; }
.pass-dot { width: 30px; height: 3px; background: rgba(243,233,218,.22); transition: background .4s ease; }
.pass-dot.is-active { background: var(--ember); }
.pass-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(243,233,218,.4); margin: 20px 0 0; }

/* ================= TABLE (pointer parallax) ================= */
.table { position: relative; min-height: 108vh; display: flex; align-items: center; overflow: hidden; padding: clamp(96px, 14vh, 160px) 0; }
.table-bg { position: absolute; inset: -12% 0; background-image: url("assets/hero-dining.jpg"); background-size: cover; background-position: center; will-change: transform; filter: brightness(.72) saturate(1.05); }
.table-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(16,24,39,.62), rgba(16,24,39,.56)); }
.table-inner { position: relative; }
.float-row { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.float-card { background: rgba(32,24,16,.72); border: 1px solid rgba(243,233,218,.13); padding: 26px 24px; border-radius: 3px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); will-change: transform; }
.float-card h3 { color: var(--cream); margin-bottom: 10px; }
.float-card p { margin: 0; font-size: 14.5px; color: rgba(243,233,218,.72); font-weight: 400; }
.fineprint { margin-top: 44px; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: rgba(243,233,218,.5); max-width: 72ch; }

/* ================= RESERVE ================= */
.reserve { padding: clamp(110px, 16vh, 190px) 0; position: relative; }
.reserve > .wrap > p { color: rgba(243,233,218,.72); margin-top: 28px; font-weight: 400; }
.form { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,233,218,.55); }
.field input, .field select, .field textarea { font-family: var(--body); font-size: 15px; font-weight: 400; color: var(--cream); background: rgba(243,233,218,.05); border: 1px solid rgba(243,233,218,.18); border-radius: 2px; padding: 12px 14px; width: 100%; transition: border-color .25s ease, background .25s ease; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); background: rgba(243,233,218,.08); }
.field select option { background: var(--char); color: var(--cream); }
.btn { grid-column: 1 / -1; justify-self: start; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--ember); color: var(--ink); border: 0; border-radius: 2px; padding: 15px 32px; cursor: pointer; transition: filter .25s ease, transform .25s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.form-note { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ember); min-height: 1.2em; }

/* ================= FOOTER ================= */
.foot { padding: 76px 0 60px; border-top: 1px solid rgba(243,233,218,.12); background: rgba(16,24,39,.6); }
.foot-brand { margin-bottom: 28px; }
.foot-tag { font-family: var(--display); font-style: italic; font-size: 18px; color: rgba(243,233,218,.6); margin: 6px 0 0; }
.disclaimer { font-size: 13.5px; line-height: 1.75; color: rgba(243,233,218,.62); max-width: 80ch; padding: 18px 20px; border-left: 2px solid var(--ember); background: rgba(217,169,74,.06); }
.disclaimer strong { color: var(--ember); font-weight: 600; }
.foot-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: rgba(243,233,218,.38); margin: 22px 0 0; }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter.alt .chapter-media { order: 0; }
  .chapter-media { min-height: 60vh; }
  .chapter-body { padding: 60px 0 74px; }
}
@media (max-width: 760px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { height: auto; }
  .hero-sticky { position: static; height: 100svh; min-height: 560px; }
  .hero-media { transform: none !important; }

  /* Pass: unpin → stacked static courses, each over its own plate */
  .pass { height: auto; }
  .pass-sticky { position: static; height: auto; overflow: visible; }
  .pass-stage { height: auto; }
  .pass-plates { display: none; }
  .pass-veil { display: none; }
  .pass-panel { padding: 74px 0; }
  .courses { display: flex; flex-direction: column; gap: 46px; }
  .course { position: relative !important; opacity: 1 !important; transform: none !important; pointer-events: auto; max-width: none; padding-left: 16px; border-left: 2px solid var(--ember-d); }
  .pass-dots, .pass-hint { display: none; }

  .table-bg { background-attachment: scroll; transform: none !important; }
  .float-card { transform: none !important; }
  .form { grid-template-columns: 1fr; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .assemble .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media, .chapter-media img, .table-bg, .float-card, .pass-plate { transform: none !important; }
  .cue-line { animation: none; transform: scaleX(1); }

  .hero { height: auto; }
  .hero-sticky { position: static; height: 100vh; min-height: 560px; }

  /* Pass: unpin, show all courses stacked, first plate visible */
  .pass { height: auto; }
  .pass-sticky { position: static; height: auto; overflow: visible; }
  .pass-stage { height: auto; }
  .pass-plates { display: none; }
  .pass-veil { display: none; }
  .pass-panel { padding: 90px 0; }
  .courses { display: flex; flex-direction: column; gap: 46px; }
  .course { position: relative !important; opacity: 1 !important; transform: none !important; max-width: none; padding-left: 16px; border-left: 2px solid var(--ember-d); }
  .pass-dots, .pass-hint { display: none; }

  #progress { display: none; }
}
