/* ============================================================
   Chinmayi Ghosh — Portfolio
   A fine-dining inspired, interactive single page.
   Palette: charcoal · cream · gold · burgundy
   ============================================================ */

:root {
  --black: #0e0c0a;
  --char: #15110d;
  --char-2: #1d1813;
  --cream: #f4ece0;
  --cream-dim: #c9bfb0;
  --gold: #c9a36a;
  --gold-soft: #e0c79b;
  --wine: #7c2b3b;
  --line: rgba(201, 163, 106, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }
/* Lenis */
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 {
  background: var(--char);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  transition: background 1.2s var(--ease), color 1.2s var(--ease);
}

/* Background texture / vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201,163,106,0.10), transparent 60%),
    radial-gradient(100% 70% at 50% 120%, rgba(124,43,59,0.10), transparent 60%);
  transition: background 1.2s var(--ease);
}
body[data-theme="plane"]::before {
  background: radial-gradient(120% 80% at 50% -10%, rgba(120,170,210,0.14), transparent 60%);
}
body[data-theme="pastry"]::before {
  background: radial-gradient(120% 80% at 50% -10%, rgba(214,170,120,0.16), transparent 60%);
}
body[data-theme="wine"]::before {
  background: radial-gradient(120% 80% at 50% -10%, rgba(124,43,59,0.20), transparent 60%);
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; color: var(--gold-soft); }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cursor__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: width .35s var(--ease), height .35s var(--ease),
              margin .35s var(--ease), opacity .35s var(--ease),
              border-color .35s var(--ease);
  opacity: .8;
}
.cursor__icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease);
  color: var(--gold-soft);
}
.cursor__icon svg { width: 100%; height: 100%; display: block; }
.cursor::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--gold);
  border-radius: 50%;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cursor.is-link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; opacity: .55; }
.cursor.is-link::after { transform: scale(2.4); opacity: .15; }
.cursor.is-icon .cursor__ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; opacity: .9; border-color: var(--gold-soft); }
.cursor.is-icon::after { opacity: 0; }
.cursor.is-icon .cursor__icon { transform: translate(-50%, -50%) scale(1); }

@media (hover: none) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* ============================================================
   SCROLL PROGRESS — filling glass of wine
   ============================================================ */
.scroll-wine {
  position: fixed;
  right: clamp(.8rem, 2vw, 1.6rem);
  top: 50%; transform: translateY(-50%);
  width: 14px; height: 150px;
  z-index: 800;
  border: 1px solid var(--line);
  border-radius: 3px 3px 7px 7px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.scroll-wine::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.4);
  pointer-events: none;
}
.scroll-wine__fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #9a3a4c, var(--wine) 60%, #5e1f2c);
  transition: height .15s linear;
}
.scroll-wine__fill::before {
  content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 4px;
  background: rgba(224,199,155,0.5);
}
@media (max-width: 720px) { .scroll-wine { display: none; } }

/* ============================================================
   CURTAIN / LOADER
   ============================================================ */
.curtain {
  position: fixed; inset: 0; z-index: 10000;
  pointer-events: none;
}
.curtain__panel {
  position: absolute; left: 0; right: 0;
  background: var(--char);
  transition: transform 1.1s var(--ease) .2s;
}
.curtain__panel--top { top: 0; height: 55%; display: flex; align-items: flex-end; justify-content: center; }
.curtain__panel--bottom { bottom: 0; height: 45%; }
.curtain.is-open .curtain__panel--top { transform: translateY(-101%); }
.curtain.is-open .curtain__panel--bottom { transform: translateY(101%); }
.curtain.is-gone { display: none; }

.curtain__inner { text-align: center; transform: translateY(45%); transition: opacity .6s var(--ease); }
.curtain.is-open .curtain__inner { opacity: 0; }
.curtain__monogram {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem); font-weight: 500;
  letter-spacing: .1em; color: var(--gold); display: block;
  opacity: 0; animation: fadeUp 1s var(--ease) .1s forwards;
}
.curtain__line {
  display: block; height: 1px; width: 0; background: var(--gold);
  margin: 1.2rem auto; animation: lineGrow 1.4s var(--ease) .4s forwards;
}
.curtain__sub {
  font-size: .7rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--cream-dim); opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards;
}
@keyframes lineGrow { to { width: 160px; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.4rem, 5vw, 4rem);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(14,12,10,0.72);
  backdrop-filter: blur(14px);
  padding-top: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .14em; color: var(--gold);
}
.nav__menu { display: flex; gap: clamp(.8rem, 2.2vw, 2.2rem); list-style: none; }
.nav__menu a {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream-dim); position: relative; padding: .3rem 0;
  transition: color .4s var(--ease);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav__menu a:hover { color: var(--cream); }
.nav__menu a:hover::after { width: 100%; }
@media (max-width: 820px) { .nav__menu { display: none; } }

/* ============================================================
   LAYOUT / SECTIONS
   ============================================================ */
main { position: relative; z-index: 1; }
.section {
  position: relative;
  padding: clamp(6rem, 14vh, 11rem) clamp(1.4rem, 7vw, 8rem);
  max-width: 1280px; margin: 0 auto;
}
.section__label {
  font-size: .7rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
.section__heading {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08;
  margin-bottom: 3rem; max-width: 16ch;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.4rem 4rem; overflow: hidden;
}
.hero__plate {
  position: absolute; top: 50%; left: 50%;
  width: min(72vmin, 620px); height: min(72vmin, 620px);
  transform: translate(-50%, -50%); pointer-events: none;
}
.hero__plate-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); animation: spin 60s linear infinite; }
.hero__plate-ring--2 { inset: 12%; border-color: rgba(201,163,106,0.12); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__eyebrow { font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.8rem; }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 13vw, 9.5rem); line-height: .92; letter-spacing: .01em; }
.hero__title span { display: block; }
.hero__title-script { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: var(--cream-dim); margin-top: 2rem; max-width: 30ch; }
.hero__scroll { margin-top: 3.4rem; display: inline-flex; flex-direction: column; align-items: center; gap: .9rem; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--cream-dim); }
.hero__scroll-arrow { width: 1px; height: 46px; background: var(--gold); position: relative; overflow: hidden; }
.hero__scroll-arrow::after { content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--cream); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { top: -100%; } 60%,100% { top: 100%; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about__lead { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.22; }
.about__body p { color: var(--cream-dim); margin-bottom: 1.2rem; max-width: 46ch; }
.about__facts { list-style: none; margin-top: 2.4rem; display: grid; gap: 1.1rem; }
.about__facts li { display: flex; align-items: baseline; gap: 1rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); border-top: 1px solid var(--line); padding-top: 1rem; }
.about__facts span { font-family: var(--serif); font-size: 2rem; color: var(--gold); min-width: 2.4ch; }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

/* ============================================================
   JOURNEY / COURSES + FLIGHT PATH + PLATING
   ============================================================ */
.course-wrap { position: relative; }
.course { list-style: none; position: relative; z-index: 1; }
.course__item {
  display: grid; grid-template-columns: 170px 1fr 200px; gap: clamp(1.2rem, 3.4vw, 3.2rem);
  padding: clamp(2.4rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: background .5s var(--ease);
}
.course__item:last-child { border-bottom: 1px solid var(--line); }
.course__item:hover { background: linear-gradient(90deg, rgba(201,163,106,0.05), transparent 70%); }
.course__when { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); align-self: start; padding-top: .4rem; }
.course__amuse { font-family: var(--serif); font-style: italic; color: var(--cream-dim); font-size: 1rem; margin-bottom: .5rem; }
.course__role { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.1; }
.course__org { color: var(--gold-soft); font-size: .92rem; letter-spacing: .04em; margin: .4rem 0 1.1rem; }
.course__desc { color: var(--cream-dim); max-width: 60ch; }
.course__tag { display: inline-block; margin-top: 1.3rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim); opacity: .55; transition: opacity .4s var(--ease), letter-spacing .4s var(--ease); }
.course__item:hover .course__tag { opacity: 1; letter-spacing: .24em; color: var(--gold-soft); }

/* Plate visual */
.course__plate { justify-self: center; width: clamp(140px, 16vw, 190px); }
.course__plate svg { width: 100%; height: auto; display: block; overflow: visible; }
.plate-rim { fill: none; stroke: var(--line); stroke-width: 1; opacity: 0; transform: scale(.6); transform-origin: 100px 118px; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.plate-rim--inner { stroke: rgba(201,163,106,0.14); }
.is-plated .plate-rim { opacity: 1; transform: scale(1); }

/* Line-drawn art (croissant / plane) */
.draw-art path { fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.draw-art--pastry path, .draw-art--plane .plane-body, .draw-art--plane .plane-fold, .draw-art--plane .plane-trail {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
}
.is-plated .draw-art--pastry path { animation: drawIn 1.1s var(--ease) forwards; }
.is-plated .draw-art--pastry path:nth-child(2) { animation-delay: .55s; }
.is-plated .draw-art--pastry path:nth-child(3) { animation-delay: .65s; }
.is-plated .draw-art--pastry path:nth-child(4) { animation-delay: .75s; }
.is-plated .draw-art--pastry path:nth-child(5) { animation-delay: .85s; }

.draw-art--plane .plane-trail { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .7; }
.is-plated .draw-art--plane .plane-trail { animation: dashScroll 1.6s linear infinite, fadeIn .6s ease forwards; }
.is-plated .draw-art--plane .plane-body { animation: drawIn 1s var(--ease) .2s forwards; }
.is-plated .draw-art--plane .plane-fold { animation: drawIn .7s var(--ease) .7s forwards; }
.is-plated .draw-art--plane { animation: planeFly 3.4s var(--ease) .9s infinite; }

@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes dashScroll { to { stroke-dashoffset: -90; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: .7; } }
@keyframes planeFly {
  0% { transform: translate(0,0); }
  45% { transform: translate(6px,-5px); }
  100% { transform: translate(0,0); }
}

/* Wine bottle — outline + rising fill */
.wine-glass { fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .6s var(--ease); }
.is-plated .wine-glass { opacity: 1; }
.wine-liquid { fill: var(--wine); transform: translateY(80px); }
.is-plated .wine-liquid { animation: pour 1.7s var(--ease) .55s forwards; }
@keyframes pour { from { transform: translateY(80px); } to { transform: translateY(0); } }

/* Flight path SVG behind timeline */
.flightpath {
  position: absolute; top: 0; bottom: 0;
  left: clamp(72px, 8.5vw, 100px); width: 40px; height: 100%;
  z-index: 0; pointer-events: none; overflow: visible;
}
.flightpath__track { fill: none; stroke: rgba(201,163,106,0.10); stroke-width: 1; stroke-dasharray: 5 7; }
.flightpath__draw { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 7; }
.flightpath__plane { fill: var(--gold-soft); stroke: var(--char); stroke-width: 1.4; filter: drop-shadow(0 0 5px rgba(201,163,106,0.8)); opacity: 0; transition: opacity .5s var(--ease); }
.flightpath__plane.is-flying { opacity: 1; }
@media (max-width: 720px) {
  .course__item { grid-template-columns: 1fr; gap: .6rem; }
  .course__plate { display: none; }
  .flightpath { display: none; }
}

/* ============================================================
   PALATE / SKILLS
   ============================================================ */
.palate__menu { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 7vw, 7rem); }
.palate__col h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--gold); letter-spacing: .04em; margin-bottom: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.palate__col h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dish-list { list-style: none; display: grid; gap: 1.05rem; }
.dish-list li { display: flex; align-items: baseline; gap: .8rem; }
.dish-list__name { font-family: var(--serif); font-size: 1.25rem; color: var(--cream); white-space: nowrap; }
.dish-list__dots { flex: 1; border-bottom: 1px dotted rgba(201,163,106,0.4); transform: translateY(-3px); }
.dish-list__note { font-style: italic; font-family: var(--serif); color: var(--gold-soft); font-size: .98rem; white-space: nowrap; }
.dish-list--plain { grid-template-columns: 1fr 1fr; }
.dish-list--plain li { display: block; }
@media (max-width: 820px) { .palate__menu { grid-template-columns: 1fr; } }

/* ============================================================
   CHARACTER / TRAITS
   ============================================================ */
.character__intro { color: var(--cream-dim); font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: -1.6rem 0 2.6rem; }
.traits { display: grid; gap: 1.8rem; max-width: 760px; }
.trait { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.trait__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.trait__head span { font-family: var(--serif); font-size: 1.4rem; }
.trait__head em { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.trait__bar { height: 2px; background: rgba(201,163,106,0.16); position: relative; overflow: hidden; }
.trait__bar span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.is-visible .trait__bar span { width: var(--v); transition: width 1.4s var(--ease) .2s; }
.trait__bar--invert span { background: linear-gradient(90deg, var(--wine), #b06070); }
.trait__note { color: var(--cream-dim); font-size: .9rem; margin-top: .8rem; max-width: 60ch; opacity: 0; transition: opacity .5s var(--ease); }
.trait:hover .trait__note { opacity: 1; }
.character__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.4; color: var(--cream); max-width: 30ch; margin: 4rem auto 0; text-align: center; position: relative; padding-top: 2.4rem; }
.character__quote::before { content: "“"; position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); font-size: 5rem; color: var(--gold); opacity: .4; }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz__stage { max-width: 720px; min-height: 320px; border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.8rem, 4vw, 3rem); background: rgba(255,255,255,0.015); position: relative; }
.quiz__progress { display: flex; gap: .5rem; margin-bottom: 2rem; }
.quiz__progress span { flex: 1; height: 2px; background: rgba(201,163,106,0.18); overflow: hidden; }
.quiz__progress span.is-done::after { content: ""; display: block; height: 100%; background: var(--gold); animation: lineGrowFull .4s var(--ease) forwards; }
@keyframes lineGrowFull { from { width: 0; } to { width: 100%; } }
.quiz__q { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.25; margin-bottom: 1.8rem; }
.quiz__count { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.quiz__options { display: grid; gap: .8rem; }
.quiz__opt {
  text-align: left; font-family: var(--sans); font-size: 1rem; color: var(--cream);
  background: transparent; border: 1px solid var(--line); border-radius: 3px;
  padding: 1rem 1.2rem; cursor: none; transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), color .35s;
}
.quiz__opt:hover { border-color: var(--gold); background: rgba(201,163,106,0.07); transform: translateX(6px); color: var(--gold-soft); }
.quiz__opt::before { content: "—  "; color: var(--gold); }

/* Quiz result */
.quiz__result { text-align: center; animation: fadeUp .8s var(--ease) forwards; }
.quiz__result-art { width: 120px; margin: 0 auto 1.2rem; }
.quiz__result-art svg { width: 100%; height: auto; }
.quiz__result-kicker { font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.quiz__result-title { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: .4rem; }
.quiz__result-match { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.2rem; margin-bottom: 1.2rem; }
.quiz__result-desc { color: var(--cream-dim); max-width: 46ch; margin: 0 auto 1.8rem; }
.quiz__again {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream); background: transparent; border: 1px solid var(--gold); border-radius: 3px;
  padding: .9rem 1.8rem; cursor: none; transition: background .35s var(--ease), color .35s;
}
.quiz__again:hover { background: var(--gold); color: var(--char); }
.quiz__result-art path, .quiz__result-art circle { fill: none; stroke: var(--gold-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   RESERVE / CONTACT
   ============================================================ */
.reserve { text-align: center; }
.reserve__heading { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; }
.reserve__sub { color: var(--cream-dim); margin: 1.4rem 0 3.4rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.reserve__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 920px; margin: 0 auto; }
.reserve__card { border: 1px solid var(--line); padding: 2rem 1.4rem; text-align: center; display: flex; flex-direction: column; gap: .8rem; transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease); }
a.reserve__card:hover { border-color: var(--gold); background: rgba(201,163,106,0.06); }
.reserve__card-label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.reserve__card-value { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); word-break: break-word; }
@media (max-width: 720px) { .reserve__cards { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { text-align: center; padding: 3rem 1.4rem; border-top: 1px solid var(--line); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-dim); display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.footer__dot { color: var(--gold); }
.footer__hint { width: 100%; margin-top: .8rem; font-size: .64rem; letter-spacing: .26em; color: rgba(201,163,106,0.5); text-transform: lowercase; font-style: italic; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 140%);
  z-index: 9500; background: rgba(20,16,12,0.92); border: 1px solid var(--gold);
  color: var(--cream); padding: .9rem 1.6rem; border-radius: 4px;
  font-size: .8rem; letter-spacing: .1em; backdrop-filter: blur(8px);
  transition: transform .6s var(--ease); max-width: 90vw; text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); }

/* ============================================================
   AFTER-HOURS (Easter egg)
   ============================================================ */
.candle-glow { position: fixed; inset: 0; z-index: 600; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
body.after-hours {
  --char: #1a0509;
  --cream: #f3dfc2;
  --cream-dim: #c19a86;
  --gold: #e8a64a;
  --gold-soft: #f6cf80;
  --wine: #9c2238;
  --line: rgba(232,166,74,0.24);
}
/* deep wine wash over the whole page */
body.after-hours::before {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(232,166,74,0.16), transparent 55%),
    radial-gradient(130% 100% at 50% 120%, rgba(124,16,34,0.55), transparent 65%);
  filter: saturate(1.25);
}
body.after-hours .candle-glow {
  opacity: 1;
  background:
    radial-gradient(38% 46% at 20% 26%, rgba(255,176,72,0.22), transparent 70%),
    radial-gradient(42% 52% at 82% 58%, rgba(255,150,60,0.20), transparent 70%),
    radial-gradient(80% 90% at 50% 120%, rgba(120,18,34,0.55), transparent 68%),
    radial-gradient(140% 120% at 50% 50%, transparent 52%, rgba(8,2,4,0.72) 100%);
  animation: flicker 3.4s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: .9; }
  18% { opacity: 1; }
  37% { opacity: .8; }
  55% { opacity: .98; }
  74% { opacity: .86; }
  88% { opacity: 1; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .plate-rim, .wine-glass { opacity: 1; }
  .draw-art path { stroke-dashoffset: 0 !important; }
  .wine-liquid { transform: translateY(0); }
}
