/* MARIANA — abyssal fine dining */
:root {
  --bg: #030B12;
  --surface: #071420;
  --text: #EAF6F6;
  --dim: rgba(234, 246, 246, 0.55);
  --faint: rgba(234, 246, 246, 0.32);
  --accent: #45E0FF;
  --accent-dim: rgba(69, 224, 255, 0.10);
  --border: rgba(234, 246, 246, 0.10);
  --section-pad: 80px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .wordmark {
  font-family: var(--font-display); font-style: italic;
  font-size: 42px; letter-spacing: 0.28em; text-indent: 0.28em;
}
#loader .depth { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--faint); }
#loader .bar { width: 160px; height: 1px; background: var(--border); overflow: hidden; }
#loader .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }

/* ---------- Particle canvas ---------- */
#particles {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0.55;
}

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px;
  transition: background 0.35s ease, padding 0.35s ease;
}
nav.scrolled {
  background: rgba(3, 11, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
}
.nav-wordmark {
  font-family: var(--font-display); font-style: italic;
  font-size: 24px; letter-spacing: 0.22em; text-decoration: none;
}
.nav-links { display: none; gap: 36px; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent);
  padding: 12px 24px; border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

/* ---------- Hero (scroll-scrubbed descent) ---------- */
#hero-driver { position: relative; height: 320vh; z-index: 2; }
#hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
#hero-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(3,11,18,0.25), rgba(3,11,18,0.55) 85%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 900px; }
.hero-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.4em; text-indent: 0.4em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 28px;
}
.hero-content h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(52px, 11vw, 124px);
  line-height: 1.02;
}
.hero-content h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  margin: 28px auto 0; max-width: 520px;
  font-size: 18px; color: var(--dim); font-weight: 300;
}
.hero-ctas { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 500; font-size: 14px;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 17px 38px; border-radius: 2px; min-height: 44px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); border: 1px solid var(--accent); }
.btn-primary:hover { transform: translateY(-2px); background: #6fe8ff; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.depth-meter {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--faint); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
}
.depth-meter .line { width: 1px; height: 52px; background: var(--border); position: relative; overflow: hidden; }
.depth-meter .line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent); animation: sink 2.2s ease-in-out infinite;
}
@keyframes sink { to { top: 110%; } }

/* ---------- Sections ---------- */
main { position: relative; z-index: 2; background: var(--bg); }
section { padding: var(--section-pad) 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
h2.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.08; margin-bottom: 24px;
}
h2.section-title em { font-style: italic; color: var(--accent); }
.section-lede { color: var(--dim); font-size: 19px; font-weight: 300; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.38s ease-out, transform 0.38s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Philosophy ---------- */
#philosophy { text-align: center; }
#philosophy .drop {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.5; color: var(--text);
  max-width: 860px; margin: 0 auto;
}
#philosophy .drop em { color: var(--accent); }
#philosophy .sig { margin-top: 32px; color: var(--faint); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; }

/* ---------- Tasting menu accordion ---------- */
#menu { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.menu-acc { border-bottom: 1px solid var(--border); }
.acc-item { border-top: 1px solid var(--border); }
.acc-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 28px 4px; background: none; border: none; cursor: pointer;
  color: var(--text); text-align: left; min-height: 44px;
  font-family: var(--font-body); transition: background 0.2s ease;
}
.acc-toggle:hover { background: rgba(69, 224, 255, 0.03); }
.acc-head { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.course-num {
  font-family: var(--font-display); font-style: italic;
  color: var(--accent); font-size: 20px; flex: 0 0 auto;
}
.acc-title {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.1;
}
.acc-title em { font-style: italic; color: var(--accent); }
.acc-head .depth-tag {
  display: block; margin-top: 6px;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint); font-weight: 400;
}
.chevron {
  flex: 0 0 auto; width: 14px; height: 14px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s ease;
}
.acc-item.open .chevron { transform: rotate(225deg) translate(-2px, -2px); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-content {
  padding: 0 4px 32px 52px; color: var(--dim); max-width: 620px;
  font-weight: 300; line-height: 1.7;
}
.menu-note { margin-top: 40px; color: var(--faint); font-style: italic; font-family: var(--font-display); font-size: 20px; }

/* ---------- Reservation ---------- */
.seating { margin-top: 48px; text-align: center; }
.seating-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 20px;
}
.countdown {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  margin-bottom: 36px;
}
.cd-unit { text-align: center; min-width: 72px; }
.cd-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(48px, 8vw, 76px); line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--faint); margin-top: 8px;
}
.cd-sep {
  font-family: var(--font-display); font-size: 40px; font-weight: 300;
  color: var(--faint); margin-top: -18px;
}
.seating .btn { min-width: 240px; }
.seating .form-note { margin-top: 20px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 10px;
}
.field input, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 2px; color: var(--text);
  font-family: var(--font-body); font-weight: 300; font-size: 16px;
  padding: 15px 16px; transition: border-color 0.2s ease;
  min-height: 44px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder { color: var(--faint); }
.form-row { display: grid; grid-template-columns: 1fr; }
.form-note { margin-top: 18px; font-size: 13px; color: var(--faint); text-align: center; }

/* ---------- Reservation modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(3, 11, 18, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 2px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(69, 224, 255, 0.06);
  transform: translateY(18px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-header {
  padding: 32px 32px 0; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
}
.modal-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 5vw, 38px); line-height: 1.1;
}
.modal-close {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 2px;
  border: 1px solid var(--border); background: none; color: var(--dim);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-body { padding: 24px 32px 36px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 64px 0 36px; position: relative; z-index: 2; background: var(--bg); }
.foot-mark {
  font-family: var(--font-display); font-style: italic;
  font-size: 34px; letter-spacing: 0.24em; text-align: center; margin-bottom: 16px;
}
.foot-tag { text-align: center; color: var(--dim); font-size: 15px; margin-bottom: 40px; }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
  font-size: 13px; color: var(--faint);
}
.foot-bottom .disclaimer {
  color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px;
}

/* ---------- Desktop ---------- */
@media (min-width: 820px) {
  :root { --section-pad: 120px; }
  .nav-links { display: flex; }
  .acc-content { padding-left: 56px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 22px; }
  .foot-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .depth-meter .line::after { animation: none; }
  #particles { display: none; }
  html { scroll-behavior: auto; }
}
