/* ============================================================
   DINNER WITH STRANGERS — Menashi luxury restyle
   ZKitchen Lagos
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Surfaces — warm paper, refined */
  --paper:   #f6f1e8;
  --paper-2: #efe7d9;
  --linen:   #fdfaf3;
  --ivory:   #fbf6ec;

  /* Ink */
  --ink:      #15110d;
  --ink-soft: #2a221b;
  --ash:      #74695b;
  --ash-soft: #a89c8b;
  --hairline: rgba(21, 17, 13, 0.12);
  --hairline-strong: rgba(21, 17, 13, 0.22);

  /* Accents */
  --z-orange: #c84a26;
  --z-orange-deep: #a73a1c;
  --z-green: #3b5a4d;
  --brass:   #a98551;
  --brass-soft: #c9aa78;
  --oxblood: #6e2618;

  /* Type */
  --f-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --f-sans:    "Outfit", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Motion */
  --ease-soft: cubic-bezier(.22,1,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.7,0,.84,0);

  /* Grid */
  --gutter: 28px;
  --max-w: 1320px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lock { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--z-orange); color: var(--linen); }

/* ============================================================
   EDGE RIBBONS — botanical wallpaper at page edges (Z Kitchen brand)
   ============================================================ */
.ribbon {
  position: fixed;
  top: 0; bottom: 0;
  width: 92px;
  z-index: 1;
  pointer-events: none;
  color: var(--z-orange);
  background:
    url('../assets/zkitchen-pattern-tile.svg') repeat-y;
  background-size: 110px auto;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.ribbon.left  { left: 0;  border-right: 1px solid var(--hairline); }
.ribbon.right { right: 0; border-left:  1px solid var(--hairline); transform: scaleX(-1); }
.ribbon::after {
  /* fade-into-content overlay so the ribbon doesn't compete with copy */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(246,241,232,0) 0%,
    rgba(246,241,232,0) 60%,
    var(--paper) 100%);
}
@media (max-width: 1100px) {
  .ribbon { width: 56px; opacity: 0.45; }
}
@media (max-width: 720px) {
  .ribbon { width: 32px; opacity: 0.35; }
}

/* ---------- UTILITY TYPE ---------- */
.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--z-orange);
  font-weight: 500;
}
.eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.serif {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.italic { font-style: italic; }

/* ---------- BRAND MARK (botanical Z) ---------- */
.z-mark {
  display: inline-flex;
  align-items: center;
  user-select: none;
  text-decoration: none;
}
.z-mark .brand-logo {
  width: 88px;
}
.z-mark .brand-mark {
  width: 50px;
}

/* ============================================================
   LOADING / INTRO
   ============================================================ */
.intro {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--ink);
  color: var(--linen);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.1s var(--ease-soft);
}
.intro.fading { opacity: 0; pointer-events: none; }
.intro-mark {
  opacity: 0;
  transform: translateY(8px);
  animation: introIn 1.2s var(--ease-out) forwards .2s;
}
.intro-mark .brand-logo {
  width: 112px;
}
.intro-line {
  margin-top: 28px;
  width: 1px; height: 0;
  background: var(--brass-soft);
  animation: introLine 1.4s var(--ease-soft) forwards 1.0s;
}
.intro-cue {
  margin-top: 26px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ash-soft);
  opacity: 0;
  animation: introIn .9s var(--ease-out) forwards 1.8s;
}
.intro-counter {
  position: absolute;
  bottom: 32px; left: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ash-soft);
}
.intro-counter .pct { color: var(--linen); margin-left: 10px; }
.intro-place {
  position: absolute;
  bottom: 32px; right: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ash-soft);
  text-transform: uppercase;
}
@keyframes introIn { to { opacity: 1; transform: translateY(0);} }
@keyframes introLine { to { height: 64px; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 20px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(to bottom, rgba(246,241,232,0.92), rgba(246,241,232,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: padding .5s var(--ease-soft), background .5s var(--ease-soft);
}
.nav.scrolled {
  padding: 12px 40px;
  background: rgba(246,241,232,0.96);
  border-bottom: 1px solid var(--hairline);
}
.nav-left  { justify-self: start; }
.nav-mid   { display: flex; gap: 32px; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px;}
.nav-link {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease-soft);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ash);
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .nav { padding: 16px 20px; grid-template-columns: 1fr auto; }
  .nav-mid { display: none; }
}

/* CTA — magnetic, refined */
.cta {
  --pad-x: 26px;
  --pad-y: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--linen);
  background: var(--ink);
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease-soft);
  white-space: nowrap;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--z-orange);
  transform: translateY(100%);
  transition: transform .55s var(--ease-soft);
  z-index: -1;
}
.cta:hover::before { transform: translateY(0); }
.cta .arrow {
  display: inline-block;
  transition: transform .45s var(--ease-soft);
}
.cta:hover .arrow { transform: translateX(4px); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: gap .35s var(--ease-soft);
}
.cta-ghost:hover { gap: 18px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 132px 40px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
/* Hero — visible by default, no fade-in gating */
.hero-meta { display: flex; gap: 32px; align-items: center; margin-bottom: 56px; }
.hero-sub {
  margin-top: 30px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  color: var(--z-orange);
}
.hero-rule {
  width: 56px; height: 2px;
  background: var(--z-orange);
  margin: 14px 0 28px;
}
.hero-tag {
  font-family: var(--f-display);
  font-size: 24px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-lede {
  max-width: 360px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero-meta .line { flex: 0 0 64px; height: 1px; background: var(--hairline-strong); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
}
.hero-title-wrap { overflow: hidden; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.hero-title .l {
  display: block;
  overflow: hidden;
}
.hero-title .l > span {
  display: inline-block;
}
.hero-title .l:nth-child(1) > span { animation-delay: .35s; }
.hero-title .l:nth-child(2) > span { animation-delay: .50s; font-style: italic; font-weight: 300; }
.hero-title .l:nth-child(3) > span { animation-delay: .65s; }
@keyframes lineUp { from { transform: translateY(120%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform: translateY(0);} }

.hero-sub {
  margin-top: 30px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  color: var(--z-orange);
}
.hero-rule {
  width: 56px; height: 2px;
  background: var(--z-orange);
  margin: 14px 0 28px;
}
.hero-tag {
  font-family: var(--f-display);
  font-size: 24px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-lede {
  max-width: 360px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}
.hero-scroll .vline {
  width: 1px; height: 32px; background: var(--ink);
  animation: dropLine 1.8s var(--ease-soft) infinite;
}
@keyframes dropLine {
  0%, 100% { transform: scaleY(0.3); transform-origin: top;}
  50% { transform: scaleY(1); transform-origin: top; }
}

/* Hero image — full-bleed editorial */
.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(21, 17, 13, 0.18);
}
.hero-art .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
  transition: transform 8s linear;
  will-change: transform;
}
.hero-art.loaded .photo { transform: scale(1); }
/* frame and overlays removed — full-bleed editorial photo only
.hero-art .overlay-bottom {
  display: none;
}

/* Hero footer detail strip */
.hero-strip {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.hero-strip .item .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 8px;
}
.hero-strip .item .val {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}

/* ============================================================
   MARQUEE — tagline ribbon
   ============================================================ */
.marquee {
  position: relative;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--ivory);
}
.marquee-track {
  display: flex;
  gap: 72px;
  animation: marqueeRoll 32s linear infinite;
  will-change: transform;
  width: max-content;
}
.marquee-track span {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-track .dot {
  width: 8px; height: 8px;
  background: var(--z-orange);
  border-radius: 50%;
  align-self: center;
}
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CHAPTER PANEL — shared
   ============================================================ */
.chapter {
  position: relative;
  padding: 140px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.chapter-head {
  margin-bottom: 80px;
}
.chapter-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  max-width: 880px;
}
.chapter-title em { font-style: italic; font-weight: 300; }

@media (max-width: 720px) {
  .chapter { padding: 88px 22px; }
  .chapter-head { margin-bottom: 48px; }
  .hero { padding: 116px 22px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-strip { grid-template-columns: 1fr; gap: 22px; margin-top: 56px; }
  .nav { padding: 14px 20px; }
  .marquee-track span { font-size: 36px; }
}
