/* ============================================================
   MARISCO — components
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.6;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--green); color: var(--cream-3); }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: clamp(9px, .72vw, 11px);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--sand);
}
.display .it { display: block; }

.display {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.015em;
  margin: 0;
}
.script {
  font-family: var(--f-script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

/* grain — a single fixed overlay, very low opacity */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAV
   ============================================================ */
/* a scrim so the nav stays legible over the bright table */
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -60px 0;
  background: linear-gradient(to bottom, rgba(10, 8, 7, .92) 0%, rgba(10, 8, 7, .72) 46%, rgba(10, 8, 7, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--t-mid) var(--ease);
}
.nav.is-stuck::before { opacity: 0; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background var(--t-mid) var(--ease), backdrop-filter var(--t-mid);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.nav__mark {
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--cream-3);
  padding-right: .1em;
}
.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 42px);
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  font-size: clamp(9px, .68vw, 11px);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--sand);
  transition: color var(--t-fast) var(--ease);
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--green-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav__links a:hover { color: var(--cream-3); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: clamp(9px, .68vw, 11px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  padding: .85em 1.5em;
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav__cta:hover { background: var(--green); color: var(--cream-3); transform: translateY(-1px); }

.nav__burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--nav-h);
}
/* the violet wash that lives on their stripe wall */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 18% 78%, color-mix(in srgb, var(--violet) 22%, transparent) 0%, transparent 62%),
    radial-gradient(50% 44% at 82% 12%, color-mix(in srgb, var(--green-deep) 26%, transparent) 0%, transparent 60%);
  z-index: -2;
  opacity: .9;
}

.hero__copy {
  position: relative;
  z-index: 3;
  padding: clamp(24px, 4vh, 60px) 0 clamp(24px, 4vh, 60px) var(--pad);
  max-width: 620px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: .9em;
  margin-bottom: clamp(18px, 3.4vh, 40px);
  color: var(--sand);
  font-size: clamp(9px, .7vw, 11px);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.hero__meta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  flex: none;
  transition: background var(--t-mid) var(--ease);
}

.hero__title {
  font-size: clamp(52px, 8.4vw, 132px);
  color: var(--cream-3);
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.hero__title .it {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  padding-left: clamp(10px, 2.4vw, 46px);
}
.hero__title .word { display: inline-block; }

.hero__desc {
  max-width: 40ch;
  color: color-mix(in srgb, var(--sand) 88%, white);
  font-size: clamp(14px, .95vw, 17px);
  line-height: 1.72;
  margin: 0 0 clamp(22px, 3.4vh, 40px);
}

.hero__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  flex-wrap: wrap;
}
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-size: clamp(9px, .7vw, 11px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream-3);
  border: 1px solid color-mix(in srgb, var(--sand) 40%, transparent);
  border-radius: 999px;
  padding: .95em 1.7em;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.hero__link svg { transition: transform var(--t-mid) var(--ease-out); }
.hero__link:hover {
  border-color: var(--accent);
  color: var(--cream-3);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.hero__link:hover svg { transform: translateX(4px); }

/* progress */
.hero__prog {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(30px, 7vh, 96px);
  font-size: clamp(9px, .68vw, 11px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sand) 52%, transparent);
}
.hero__foot span { white-space: nowrap; }
.hero__foot .rule {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: color-mix(in srgb, var(--sand) 26%, transparent);
}
.hero__foot a { transition: color var(--t-fast); }
.hero__foot a:hover { color: var(--green-light); }
.hero__dots { display: flex; gap: 9px; }
.hero__dot {
  width: 26px; height: 2px;
  background: color-mix(in srgb, var(--sand) 32%, transparent);
  position: relative;
  overflow: hidden;
}
.hero__dot i {
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.hero__dot.is-on i { transform: scaleX(1); }

/* ---------- the table ---------- */
.table-wrap {
  position: static;
  height: 100%;
  min-height: 0;
}
.table {
  position: absolute;
  top: 50%;
  right: clamp(-90px, -3vw, -20px);
  width: clamp(520px, 90vh, 1080px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 34% 28%, var(--circle-a) 0%, var(--circle-b) 78%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cream) 10%, transparent),
    0 70px 160px -50px rgba(0,0,0,.9),
    inset 0 0 150px -30px rgba(104, 72, 38, .55),
    inset 0 30px 90px -40px rgba(255, 246, 228, .55);
  transition: background var(--t-slow) var(--ease);
}
.table canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .82;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* soft outer halo that follows the dish accent */
.table__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 46% 42%, transparent 30%, var(--glow, transparent) 88%);
  transition: background var(--t-slow) var(--ease);
}

/* rotating typographic ring, drawn on the cloth */
.ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: spin 88s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ring text {
  font-family: var(--f-ui);
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  fill: color-mix(in srgb, var(--copper) 46%, transparent);
}

/* medallions */
.med {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) var(--ease), filter var(--t-slow) var(--ease);
  box-shadow: 0 18px 44px -20px rgba(40, 26, 14, .42), 0 3px 10px -4px rgba(40,26,14,.28);
  will-change: transform;
}
.med img { width: 100%; height: 100%; object-fit: cover; }

.med--main {
  width: 32%;
  left: 41%;
  top: 22%;
  z-index: 4;
  transform: scale(1);
}
.med--a {
  width: 19%;
  left: 16%;
  top: 63%;
  z-index: 3;
  transform: rotate(-3deg);
}
.med--b {
  width: 16%;
  left: 66%;
  top: 62%;
  z-index: 3;
  transform: rotate(4deg);
}
.med--c {
  width: 12%;
  left: 26%;
  top: 26%;
  z-index: 2;
  opacity: .95;
}

/* dish swap states */
.hero.is-swapping .med--main { opacity: 0; transform: scale(.9) rotate(-4deg); }
.hero.is-swapping .med--a { opacity: 0; transform: translateY(20px) rotate(-8deg); }
.hero.is-swapping .med--b { opacity: 0; transform: translateY(-20px) rotate(8deg); }
.hero.is-swapping .hero__title,
.hero.is-swapping .hero__desc { opacity: 0; transform: translateY(10px); }

.hero__title, .hero__desc {
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

/* a small brand disc pinned to the cloth */
.table__disc {
  position: absolute;
  left: 44%;
  top: 82%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 12px 30px -10px rgba(30, 20, 10, .6);
  opacity: .9;
}

/* ============================================================
   STRIPE BAND  — their zebra wall, as a divider
   ============================================================ */
.stripeband {
  position: relative;
  height: clamp(90px, 13vw, 190px);
  overflow: hidden;
  background: var(--cream);
}
.stripeband__inner {
  position: absolute;
  inset: -10% -5%;
  background-image: url("../img/stripes.svg");
  background-size: auto 100%;
  background-repeat: repeat-x;
  opacity: .93;
  will-change: transform;
}

/* ============================================================
   MENU
   ============================================================ */
.section { padding: clamp(64px, 11vh, 150px) var(--pad); position: relative; }

.menu { background: var(--ink); }
.menu__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 90px);
  align-items: end;
  margin-bottom: clamp(40px, 7vh, 80px);
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 16%, transparent);
  padding-bottom: clamp(24px, 4vh, 44px);
}
.menu__title {
  font-size: clamp(40px, 6.6vw, 104px);
  color: var(--cream-3);
}
.menu__title .it { font-style: italic; color: var(--green-light); }
.menu__note {
  color: color-mix(in srgb, var(--sand) 82%, white);
  max-width: 42ch;
  font-size: clamp(13px, .9vw, 16px);
  line-height: 1.8;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 84px) clamp(30px, 6vw, 110px);
}
.mgroup__title {
  font-family: var(--f-script);
  font-size: clamp(28px, 2.6vw, 42px);
  color: var(--green-light);
  line-height: 1;
  margin: 0 0 .18em;
}
.mgroup__sub {
  font-size: clamp(9px, .68vw, 11px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sand) 74%, transparent);
  margin: 0 0 clamp(16px, 2.6vh, 28px);
}

.mitem {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  align-items: baseline;
  gap: 0 .7em;
  padding: clamp(9px, 1.4vh, 15px) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 11%, transparent);
  transition: border-color var(--t-fast);
}
.mitem:hover { border-color: color-mix(in srgb, var(--green-light) 45%, transparent); }
.mitem__n {
  font-family: var(--f-display);
  font-size: clamp(19px, 1.5vw, 25px);
  font-weight: 400;
  color: var(--cream-3);
  line-height: 1.25;
}
.mitem__lead {
  height: 1px;
  border-bottom: 1px dotted color-mix(in srgb, var(--sand) 24%, transparent);
  transform: translateY(-.32em);
}
.mitem__tag {
  grid-column: 1 / -1;
  font-size: clamp(8.5px, .62vw, 10px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--prawn);
  margin-top: .3em;
}
.mitem__d {
  grid-column: 1 / -1;
  font-size: clamp(12px, .82vw, 14.5px);
  color: color-mix(in srgb, var(--sand) 84%, white);
  line-height: 1.62;
  margin-top: .18em;
}

/* ============================================================
   ROOM
   ============================================================ */
.room { background: var(--plum); overflow: hidden; }
.room__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(30px, 5vh, 60px);
  flex-wrap: wrap;
}
.room__title { font-size: clamp(38px, 6.2vw, 96px); color: var(--cream-3); max-width: 14ch; }
.room__title .it { font-style: italic; color: #b8743f; }
.room__lede {
  max-width: 34ch;
  color: color-mix(in srgb, var(--sand) 80%, white);
  font-size: clamp(13px, .9vw, 16px);
  line-height: 1.8;
}

.room__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 1.1vw, 18px);
}
.room__fig {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.room__fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.room__fig:hover img { transform: scale(1.045); }
.room__fig figcaption {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: clamp(8.5px, .62vw, 10px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: color-mix(in srgb, white 92%, transparent);
  text-shadow: 0 1px 12px rgba(0,0,0,.9);
  padding: 3px 8px;
  background: rgba(8, 6, 5, .45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.room__fig { height: clamp(230px, 26vw, 430px); }
.f-a { grid-column: span 7; }
.f-b { grid-column: span 5; }
.f-c { grid-column: span 4; }
.f-d { grid-column: span 8; }

/* ============================================================
   VISIT
   ============================================================ */
.visit { background: var(--cream); color: var(--ink); position: relative; }
.stripeband--tall { height: clamp(70px, 9vw, 130px); }
.visit__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(34px, 6vw, 100px);
}
.visit__title {
  font-size: clamp(44px, 7.4vw, 118px);
  color: var(--ink);
  margin-bottom: clamp(20px, 3vh, 34px);
}
.visit__title .it { font-style: italic; color: var(--green); }
.visit__addr {
  font-style: normal;
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.85;
  color: color-mix(in srgb, var(--ink) 82%, white);
}
.visit__addr strong { font-weight: 500; display: block; letter-spacing: .01em; }

.visit__cta {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  margin-top: clamp(22px, 3.4vh, 38px);
  background: var(--ink);
  color: var(--cream-3);
  border-radius: 999px;
  padding: 1.05em 2.1em;
  font-size: clamp(10px, .74vw, 12px);
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background var(--t-fast), transform var(--t-fast);
}
.visit__cta:hover { background: var(--green); transform: translateY(-2px); }

.visit__rows { border-top: 2px solid var(--ink); }
.row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 2vh, 20px) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  align-items: baseline;
}
.row dt {
  font-size: clamp(9px, .68vw, 11px);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 58%, white);
}
.row dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(17px, 1.35vw, 22px);
  color: var(--ink);
  text-align: right;
}
.row dd a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.rating {
  display: flex;
  align-items: flex-end;
  gap: .7em;
  margin-top: clamp(20px, 3vh, 32px);
}
.rating b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 3.8vw, 60px);
  line-height: .9;
  color: var(--green-deep);
  letter-spacing: -.01em;
}
.rating span {
  font-size: clamp(10px, .76vw, 12px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 68%, white);
  padding-bottom: .28em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--ink);
  padding: clamp(44px, 7vh, 84px) var(--pad) clamp(26px, 4vh, 40px);
  border-top: 1px solid color-mix(in srgb, var(--sand) 14%, transparent);
}
.foot__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: clamp(30px, 5vh, 56px);
}
.foot__mark {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: .06em;
  line-height: .9;
  color: var(--cream-3);
}
.foot__mark em { font-style: italic; color: var(--green-light); }
.foot__links {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  flex-wrap: wrap;
}
.foot__links a {
  font-size: clamp(9px, .7vw, 11px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand);
  transition: color var(--t-fast);
}
.foot__links a:hover { color: var(--green-light); }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid color-mix(in srgb, var(--sand) 10%, transparent);
  font-size: clamp(10px, .72vw, 12px);
  color: color-mix(in srgb, var(--sand) 50%, transparent);
}

/* ============================================================
   REVEAL
   ============================================================ */
.rv { opacity: 1; transform: none; }
body.reveal-ready .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out);
}
body.reveal-ready .rv.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — mobile first-class, not an afterthought
   ============================================================ */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 0;
  }

  /* the table becomes the plate above the copy — stacked, never overlapping */
  .table-wrap {
    position: relative;
    order: 1;
    height: auto;
    overflow: visible;
    margin-top: var(--nav-h);
    padding: clamp(12px, 3.4vw, 40px) 0 clamp(8px, 2vw, 20px);
    display: flex;
    justify-content: center;
  }
  .table {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    flex: none;
    width: min(88vw, 560px);
  }

  .hero__copy {
    order: 2;
    padding: clamp(16px, 3vh, 34px) var(--pad) clamp(34px, 6vh, 60px);
    max-width: 100%;
  }
  .hero__title { font-size: clamp(44px, 12vw, 88px); }
  .hero__desc { max-width: 46ch; }
  .hero__foot { margin-top: clamp(20px, 4vh, 44px); }

  .med--main { width: 40%; left: 38%; top: 20%; }
  .med--a { width: 24%; left: 14%; top: 56%; }
  .med--b { width: 21%; left: 68%; top: 56%; }
  .med--c { width: 15%; left: 20%; top: 18%; }
  .table__disc { width: 12%; left: 52%; top: 5%; }

  .menu__grid { grid-template-columns: 1fr; }
  .visit__grid { grid-template-columns: 1fr; }
  .f-a, .f-b, .f-c, .f-d { grid-column: span 12; }
  .room__fig { height: clamp(200px, 58vw, 420px); }
  .room__grid { gap: clamp(8px, 2vw, 14px); }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .table { width: min(90vw, 460px); }
  .nav__cta { padding: .8em 1.15em; letter-spacing: .16em; }
  .menu__head { grid-template-columns: 1fr; }
  .hero__title .it { padding-left: clamp(6px, 2vw, 20px); }
  .row dd { font-size: clamp(15px, 4vw, 19px); }
  .room__title, .menu__title, .visit__title { letter-spacing: -.01em; }
  .foot__top { flex-direction: column; gap: 24px; }
}
