/* ===========================================================
   Day One Cafe — cinematic photo-led editorial design
   =========================================================== */

:root {
  --paper: #EDE8DF;
  --paper-warm: #F0EAE0;
  --paper-cream: #F4EFE3;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-mute: #8A857A;
  --night: #0E0F0C;
  --night-2: #1A1B16;
  --foliage: #4A6A3A;
  --foliage-deep: #2D4A2D;
  --sun: #E8B83A;
  --horizon: #3A8E6E;
  --bloom: #C8443A;
  --wood: #8B5A3C;

  --max-w: 1320px;
  --max-prose: 880px;
  --gut: clamp(1.5rem, 5vw, 5rem);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--horizon);
  outline-offset: 4px;
  border-radius: 2px;
}
img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.022em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
p { margin: 0; }
em { font-style: italic; }

.reveal { opacity: 0; transform: translateY(28px); }
.hl { color: var(--ink); border-bottom: 1px solid rgba(26,26,26,0.4); padding-bottom: 1px; white-space: nowrap; }
.muted { color: var(--ink-mute); }

/* ============== AMBIENT LAYERS ============== */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 80;
  mix-blend-mode: multiply; opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.4  0 0 0 0 0.36  0 0 0 0.13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Drifting watercolour blooms — abstract, slow */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: multiply;
  will-change: transform;
}
.bloom-1 {
  width: 60vw; height: 60vw;
  top: -20vw; left: -10vw;
  background: radial-gradient(circle, rgba(58, 142, 110, 0.55), transparent 70%);
  animation: drift1 38s ease-in-out infinite;
}
.bloom-2 {
  width: 50vw; height: 50vw;
  bottom: -15vw; right: -10vw;
  background: radial-gradient(circle, rgba(232, 184, 58, 0.5), transparent 70%);
  animation: drift2 46s ease-in-out infinite;
}
.bloom-3 {
  width: 45vw; height: 45vw;
  top: 50%; left: 60%;
  background: radial-gradient(circle, rgba(200, 68, 58, 0.32), transparent 70%);
  animation: drift3 54s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(8vw, 6vw) scale(1.1); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-10vw,-7vw) scale(0.95); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-6vw, 8vw) scale(1.15); }
}

/* Cursor blob */
.cursor-blob {
  position: fixed;
  width: 360px; height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(232, 184, 58, 0.18), transparent 65%);
  mix-blend-mode: multiply;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.6s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-blob { opacity: 1; }
}

main { position: relative; z-index: 2; }

/* ============== PRELOADER ============== */
.preloader {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
}
.pre-mark { width: clamp(220px, 38vw, 480px); height: auto; }
.pre-tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(237, 232, 223, 0.85);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid rgba(26, 26, 26, 0.07);
  transform: translateY(-110%);
  color: var(--ink);
}
.nav-logo svg { height: 28px; width: auto; }
.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px; background: currentColor;
  transition: right 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after { right: 0; }
.nav-meta {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 740px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-meta { display: none; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.88rem; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(14, 15, 12, 0.55) 0%,
      rgba(14, 15, 12, 0.25) 30%,
      rgba(14, 15, 12, 0.35) 60%,
      rgba(14, 15, 12, 0.85) 100%
    );
  mix-blend-mode: multiply;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem) 1.5rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-left: max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-right));
  color: var(--paper-cream);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}
.overline {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--paper-cream);
  opacity: 0.85;
  font-weight: 500;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  padding: 2rem 0;
}
.hero-mark {
  width: min(86vw, clamp(240px, 56vw, 720px));
  height: auto;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,0.3));
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper-cream);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--sun);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(244, 239, 227, 0.18);
  padding-top: 1.25rem;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hero-meta .k {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(244, 239, 227, 0.65);
  font-weight: 500;
}
.hero-meta .v {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--paper-cream);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero-cue {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: var(--paper-cream);
}
.cue-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, currentColor 30%, transparent);
}
.cue-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (max-width: 760px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-cue { display: none; }
  .hero-headline { font-size: clamp(1.4rem, 5.2vw, 2rem); }
}

/* ============== STORY ============== */
.story {
  position: relative;
  padding: clamp(7rem, 13vw, 13rem) var(--gut);
  max-width: var(--max-w);
  margin: 0 auto;
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.chapter-mark {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 8rem;
}
.ch-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 400;
  color: var(--horizon);
  line-height: 1;
}
.ch-tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.chapter-mark.on-dark .ch-num { color: var(--sun); }
.chapter-mark.on-dark .ch-tag { color: rgba(244, 239, 227, 0.65); }

.story-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.012em;
  max-width: 26ch;
}
.lede.dim {
  color: var(--ink-soft);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.story-photo { margin: 0; }
.story-photo .photo-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo figcaption {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; }
  .chapter-mark { position: static; flex-direction: row; align-items: baseline; gap: 1rem; }
}

/* Photo treatment — stable, paper-edge feel via mask + soft shadow */
.photo-deckle {
  position: relative;
  margin: 0;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 24px 48px -24px rgba(26, 26, 26, 0.35);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 95%, transparent 100%);
          mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 95%, transparent 100%);
}
.photo-deckle::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(26, 26, 26, 0.25);
}
.photo-deckle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.06);
}
.photo-frame {
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(26, 26, 26, 0.35);
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(26, 26, 26, 0.22);
}

/* ============== MANIFESTO ============== */
.manifesto {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) var(--gut);
  position: relative;
}
.big-type {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 0.86;
  font-size: clamp(3rem, 13vw, 13rem);
  letter-spacing: -0.045em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--ink);
}
.big-type em {
  font-style: italic;
  font-weight: 300;
  color: var(--horizon);
}
.big-type.small {
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
}
.big-type .i1 { padding-left: 0.7em; }
.big-type .i2 { padding-left: 0.2em; }
.big-type .i3 { padding-left: 1.1em; }
.big-type .i4 { padding-left: 0.4em; }
.big-type .i5 { padding-left: 1.6em; color: var(--bloom); font-style: italic; font-weight: 300; }

.manifesto-foot {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ============== MOSAIC ============== */
.mosaic {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) var(--gut);
}
.mosaic-h {
  margin-bottom: clamp(3rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 700px;
}
.mosaic-h .ch-num { color: var(--horizon); }
.mosaic-h h2 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-top: 0.25rem;
}
.mosaic-h h2 em { font-style: italic; font-weight: 300; color: var(--horizon); }
.mosaic-h p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 280px 280px 280px;
  gap: clamp(1rem, 2vw, 2rem);
}
.mosaic-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
}
.mosaic-grid figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.mosaic-grid figure:hover img { transform: scale(1.04); }
.mosaic-grid figcaption {
  position: absolute;
  left: 1rem; bottom: 0.85rem;
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--paper-cream);
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
  letter-spacing: 0.04em;
  filter: none;
}
.mosaic-grid .m-1 { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.mosaic-grid .m-2 { grid-column: 8 / span 5; grid-row: 1 / span 1; }
.mosaic-grid .m-3 { grid-column: 8 / span 5; grid-row: 2 / span 2; }
.mosaic-grid .m-4 { grid-column: 1 / span 7; grid-row: 3 / span 1; }

@media (max-width: 800px) {
  .mosaic-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 320px 240px 240px 240px;
  }
  .mosaic-grid .m-1, .mosaic-grid .m-2, .mosaic-grid .m-3, .mosaic-grid .m-4 {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ============== MENU ============== */
.menu {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) var(--gut);
}
.menu-overture {
  max-width: 800px;
  margin: 0 0 clamp(3rem, 5vw, 5rem);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.menu-overture .ch-num { color: var(--horizon); }
.menu-overture h2 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-top: 0.25rem;
}
.menu-overture h2 em { font-style: italic; font-weight: 300; color: var(--horizon); }
.menu-overture p {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.menu-toc {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  gap: 1.75rem;
  padding: 0.95rem clamp(1.25rem, 4vw, 3rem);
  margin: 0 calc(-1 * var(--gut)) 3rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(237, 232, 223, 0.86);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  box-shadow: 0 10px 24px -18px rgba(26, 26, 26, 0.25);
}
.menu-toc::-webkit-scrollbar { display: none; }
.menu-toc a {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
}
.menu-toc .toc-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--horizon);
}
.menu-toc a.active,
.menu-toc a:hover { color: var(--ink); }
.menu-toc a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: calc(-0.95rem - 1px);
  height: 2px;
  background: var(--ink);
}

.cat {
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-bottom: 1px solid rgba(26,26,26,0.12);
}
.cat:last-of-type { border-bottom: none; }
.cat.kerala {
  background: linear-gradient(180deg, transparent, var(--paper-warm) 12%, var(--paper-warm) 88%, transparent);
  margin-left: calc(-1 * var(--gut));
  margin-right: calc(-1 * var(--gut));
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.cat-h {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.cat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--horizon);
}
.cat-h h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.022em;
}
.cat-line {
  height: 1px;
  background: rgba(26,26,26,0.25);
  margin-bottom: 0.5rem;
}
.cat-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.cat-tag.accent {
  color: var(--horizon);
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}
@media (max-width: 720px) {
  .cat-h { grid-template-columns: auto 1fr; gap: 0.75rem 1.25rem; }
  .cat-h h3 { grid-column: 1 / -1; }
  .cat-tag { grid-column: 1 / -1; }
  .cat-line { display: none; }
}

.dishes {
  list-style: none; margin: 0; padding: 0;
}
.dishes.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 4vw, 4.5rem);
}
.dishes li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px dotted rgba(26,26,26,0.18);
  transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s;
}
.dishes li:hover {
  padding-left: 8px;
  background: rgba(58, 142, 110, 0.04);
}
.d-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: -0.005em;
}
.d-leader {
  border-bottom: 1px dotted rgba(26,26,26,0.32);
  align-self: end;
  margin-bottom: 6px;
  height: 0;
}
.d-price {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.r {
  font-family: var(--sans);
  font-weight: 400;
  opacity: 0.55;
  margin-right: 2px;
  font-size: 0.85em;
}
.d-desc {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.45s ease, margin-top 0.35s ease;
}
.dishes li:hover .d-desc {
  max-height: 60px; opacity: 1; margin-top: 0.4rem;
}

.sub-h {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--horizon);
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.sub-h:first-child { margin-top: 0; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }

@media (max-width: 800px) {
  .dishes.two { grid-template-columns: 1fr; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .d-desc { max-height: 60px; opacity: 1; margin-top: 0.4rem; }
}

/* Pasta table */
.pasta-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--serif);
}
.pasta-table th, .pasta-table td {
  padding: 1.25rem 0.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  border-bottom: 1px dotted rgba(26,26,26,0.18);
  font-size: 1.05rem;
  vertical-align: top;
}
.pasta-table thead th {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  border-bottom: 1px solid rgba(26,26,26,0.28);
  padding: 0.75rem 0.5rem;
}
.pasta-table tbody td:first-child,
.pasta-table thead th:first-child {
  text-align: left;
  width: 60%;
}
.pasta-table .d-name { font-size: 1.2rem; }
.pasta-table .d-desc {
  display: block; position: static; margin-top: 0.25rem;
  max-height: none; opacity: 1; overflow: visible; font-size: 0.9rem;
}
.pasta-table .muted { color: var(--ink-mute); }

/* Photo "spread" between menu sections */
.spread {
  position: relative;
  margin: clamp(3rem, 6vw, 6rem) calc(-1 * var(--gut));
  height: clamp(360px, 60vh, 620px);
  overflow: hidden;
}
.spread img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}
.spread figcaption {
  position: absolute;
  left: var(--gut); bottom: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--paper-cream);
  font-size: 1rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  filter: none;
}
.spread-kerala figcaption {
  display: flex; flex-direction: column; gap: 0.4rem;
  bottom: 2rem;
}
.spread-kerala .caption-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.8;
}
.spread-kerala .caption-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ============== ROOTS (dark) ============== */
.roots {
  position: relative;
  padding: clamp(7rem, 14vw, 14rem) var(--gut);
  background: var(--night);
  color: var(--paper-cream);
  overflow: hidden;
}
.roots-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 12% 12%, rgba(58, 142, 110, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 80% at 95% 95%, rgba(232, 184, 58, 0.18), transparent 60%);
}
.roots-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.roots-body { max-width: 760px; }

.huge-type {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: inherit;
}
.huge-type em {
  font-style: italic;
  font-weight: 300;
  color: var(--sun);
}

.roots-p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: rgba(244, 239, 227, 0.82);
  margin-top: 2rem;
  line-height: 1.55;
}
.roots-p em { color: var(--paper-cream); }

.roots-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(244, 239, 227, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}
.roots-list li {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--paper-cream);
  position: relative;
}
.roots-list li:not(:last-child)::after {
  content: '·';
  margin-left: 2.5rem;
  color: rgba(244,239,227,0.35);
}

@media (max-width: 800px) {
  .roots-inner { grid-template-columns: 1fr; }
}

/* ============== STAY ============== */
.stay {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(7rem, 13vw, 13rem) var(--gut);
}
.stay-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.stay-text { display: flex; flex-direction: column; gap: 1.5rem; }
.stay-text .chapter-mark { position: static; flex-direction: row; align-items: baseline; gap: 1rem; }
.stay-text .ch-num { font-size: 2rem; }
.stay-p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 540px;
}

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 1.05rem 2rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}
.pill:hover { transform: translateY(-2px); background: var(--foliage-deep); }
.pill span {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pill:hover span { transform: translateX(5px); }

.stay-photo { aspect-ratio: 3/4; }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; }
.stay-photo figcaption {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  filter: none;
}

@media (max-width: 800px) {
  .stay-grid { grid-template-columns: 1fr; }
}

/* ============== FIND ============== */
.find {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 12rem) var(--gut);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.find > .chapter-mark { position: sticky; top: 8rem; }
.find-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.find-info .huge-type { margin-bottom: 3rem; }
.find-info .huge-type em { color: var(--horizon); }

.find-dl { margin: 0; }
.find-dl > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px dotted rgba(26,26,26,0.18);
}
.find-dl > div:first-child { border-top: 1px dotted rgba(26,26,26,0.18); }
.find-dl dt {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.66rem;
  color: var(--ink-mute);
  font-weight: 500;
  padding-top: 4px;
}
.find-dl dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.5;
}
.find-dl dd .muted { font-style: italic; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--horizon);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.4s ease;
}
.map-link:hover { gap: 0.7rem; }

.find-coord {
  border: 1px solid rgba(26,26,26,0.16);
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  padding: 1.75rem;
  position: sticky;
  top: 8rem;
}
.coord-block {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px dotted rgba(26,26,26,0.2);
  gap: 1rem;
}
.coord-block:last-of-type { border-bottom: none; }
.coord-k {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.coord-v {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.coord-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26,26,26,0.18);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (max-width: 1000px) {
  .find { grid-template-columns: 1fr; }
  .find > .chapter-mark { position: static; flex-direction: row; align-items: baseline; gap: 1rem; }
}
@media (max-width: 700px) {
  .find-grid { grid-template-columns: 1fr; }
  .find-dl > div { grid-template-columns: 1fr; gap: 0.5rem; }
  .find-coord { position: static; }
}

/* ============== FOOTER (dark) ============== */
.footer {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) var(--gut) clamp(7rem, 12vw, 10rem);
  background: var(--night);
  color: var(--paper-cream);
  overflow: hidden;
  text-align: center;
}
.footer-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 100%, rgba(200, 68, 58, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 100%, rgba(232, 184, 58, 0.14), transparent 60%);
}
.footer-inner {
  position: relative;
  z-index: 1;
}
.footer-mark {
  width: 92px; height: auto; margin: 0 auto 2rem;
}
.signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--paper-cream);
  margin-bottom: 3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.footer-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(244,239,227,0.6);
  letter-spacing: 0.06em;
}
.footer-row .dot { color: rgba(244,239,227,0.4); }
.footer-row .ig {
  color: var(--paper-cream);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.3s ease;
}
.footer-row .ig:hover { opacity: 0.7; }

@media (max-width: 540px) {
  .footer-row { flex-direction: column; gap: 0.5rem; }
  .footer-row .dot { display: none; }
}

/* ============== Reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav { transform: translateY(0) !important; }
  .preloader { display: none; }
  .bloom { animation: none !important; }
  .cursor-blob { display: none; }
}

/* ===========================================================
   MOBILE OPTIMIZATION
   Targeted overrides: tablet (≤960), phone (≤640), small (≤420).
   =========================================================== */

/* ---------- Lighter ambient layers on touch devices ---------- */
@media (hover: none) and (pointer: coarse) {
  .bloom { filter: blur(56px); opacity: 0.22; }
  .bloom-3 { display: none; }
  .grain { opacity: 0.28; }
  /* Backdrop-filter is expensive on mobile Safari */
  .nav, .menu-toc {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* ---------- ≤960px: tablet layout ---------- */
@media (max-width: 960px) {
  .menu-overture h2,
  .mosaic-h h2 { font-size: clamp(2.4rem, 8vw, 4.4rem); }
  .roots,
  .stay,
  .find,
  .menu,
  .story { padding-left: clamp(1.25rem, 4vw, 3rem); padding-right: clamp(1.25rem, 4vw, 3rem); }
}

/* ---------- ≤640px: phone layout ---------- */
@media (max-width: 640px) {

  /* Tighter outer gutters */
  :root { --gut: 1.25rem; }

  /* Hero — generous on phones, but pull paddings in */
  .hero-overlay { padding: 1rem 1.25rem 1.25rem; }
  .hero-overlay {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
  .hero-top { padding-top: 0.5rem; gap: 0.75rem; flex-wrap: wrap; }
  .overline { font-size: 0.62rem; letter-spacing: 0.32em; }
  .hero-mark { width: min(82vw, 360px); }
  .hero-headline {
    font-size: clamp(1.25rem, 5.6vw, 1.7rem);
    gap: 0.05em;
  }
  .hero-center { gap: 1.25rem; padding: 1rem 0; }
  .hero-meta { gap: 0.75rem 1rem; }
  .hero-meta .k { font-size: 0.56rem; letter-spacing: 0.28em; }
  .hero-meta .v { font-size: 0.85rem; }

  /* Nav — phone touch targets + room for 4 links */
  .nav { padding: 0.85rem 1rem; gap: 0.75rem; }
  .nav-logo svg { height: 24px; }
  .nav-links { gap: 0.85rem; }
  .nav-links a {
    font-size: 0.82rem;
    padding: 0.55rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Manifesto — keep stagger but rein it in so nothing wraps off screen */
  .big-type { font-size: clamp(2.6rem, 14vw, 5rem); letter-spacing: -0.035em; }
  .big-type.small { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .big-type .i1 { padding-left: 0.4em; }
  .big-type .i2 { padding-left: 0.15em; }
  .big-type .i3 { padding-left: 0.7em; }
  .big-type .i4 { padding-left: 0.25em; }
  .big-type .i5 { padding-left: 1em; }
  .manifesto-foot { font-size: 1rem; margin-top: 1.75rem; }

  /* Section paddings */
  .story { padding-top: clamp(4.5rem, 12vw, 7rem); padding-bottom: clamp(4.5rem, 12vw, 7rem); }
  .manifesto { padding-top: clamp(3.5rem, 10vw, 6rem); padding-bottom: clamp(3.5rem, 10vw, 6rem); }
  .mosaic { padding-top: clamp(3rem, 9vw, 5rem); padding-bottom: clamp(3rem, 9vw, 5rem); }
  .menu { padding-top: clamp(3.5rem, 10vw, 6rem); padding-bottom: clamp(3.5rem, 10vw, 6rem); }
  .roots { padding-top: clamp(4.5rem, 14vw, 8rem); padding-bottom: clamp(4.5rem, 14vw, 8rem); }
  .stay { padding-top: clamp(4rem, 12vw, 6rem); padding-bottom: clamp(4rem, 12vw, 6rem); }
  .find { padding-top: clamp(4rem, 12vw, 6rem); padding-bottom: clamp(4rem, 12vw, 6rem); }

  /* Story photo: shorter aspect on phone */
  .story-photo .photo-frame { aspect-ratio: 4/5; }

  /* Mosaic: heights pulled in a touch */
  .mosaic-grid { grid-template-rows: 240px 200px 200px 200px; }

  /* Menu TOC — bigger touch targets, scroll snap */
  .menu-toc {
    top: 56px;
    gap: 1.25rem;
    padding: 0.7rem var(--gut);
    margin: 0 calc(-1 * var(--gut)) 2rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
  .menu-toc a {
    scroll-snap-align: start;
    font-size: 0.72rem;
    padding: 0.5rem 0;
    min-height: 44px;
    align-items: center;
  }
  .menu-toc a.active::after { bottom: calc(-0.7rem - 1px); }

  /* Cat heading */
  .cat-h h3 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .cat { padding: clamp(2.25rem, 7vw, 3.5rem) 0; }
  .cat.kerala {
    margin-left: calc(-1 * var(--gut));
    margin-right: calc(-1 * var(--gut));
    padding-left: var(--gut);
    padding-right: var(--gut);
  }

  /* Dish list spacing — better tap rhythm */
  .dishes li { gap: 0.6rem; padding: 0.85rem 0; }
  .d-name, .d-price { font-size: 1rem; }
  .d-desc { font-size: 0.86rem; }

  /* Disable dish hover transform on touch (no jitter on tap) */
  .dishes li:hover { padding-left: 0; background: transparent; }

  /* PASTA TABLE — convert to per-dish card stack */
  .pasta-table { display: block; }
  .pasta-table thead { display: none; }
  .pasta-table tbody,
  .pasta-table tr,
  .pasta-table td { display: block; }
  .pasta-table tr {
    border-bottom: 1px solid rgba(26, 26, 26, 0.18);
    padding: 1rem 0 1.1rem;
  }
  .pasta-table tr:first-child { border-top: 1px solid rgba(26, 26, 26, 0.18); }
  .pasta-table tbody td { padding: 0; border: 0; text-align: left; }
  .pasta-table tbody td:first-child { width: 100%; padding-bottom: 0.55rem; }
  .pasta-table tbody td:not(:first-child) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.95rem;
  }
  .pasta-table tbody td:nth-child(2)::before { content: 'Veg'; }
  .pasta-table tbody td:nth-child(3)::before { content: 'Chicken'; }
  .pasta-table tbody td:nth-child(4)::before { content: 'Prawns'; }
  .pasta-table tbody td:not(:first-child)::before {
    font-family: var(--sans);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 500;
    margin-right: 1rem;
  }
  .pasta-table tbody td.muted { display: none; }
  .pasta-table .d-name { font-size: 1.05rem; }
  .pasta-table .d-desc { font-size: 0.85rem; margin-top: 0.2rem; }

  /* Photo "spread" between menu sections — readable caption */
  .spread { height: clamp(280px, 56vh, 420px); margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); }
  .spread figcaption { left: var(--gut); right: var(--gut); bottom: 1rem; font-size: 0.92rem; }
  .spread-kerala .caption-line { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .spread-kerala .caption-eyebrow { font-size: 0.62rem; }

  /* Roots */
  .huge-type { font-size: clamp(2.2rem, 9vw, 3.6rem); }
  .roots-p { font-size: 1.05rem; margin-top: 1.25rem; }
  .roots-list { margin-top: 2rem; gap: 0.85rem 1.5rem; padding-top: 1.5rem; }
  .roots-list li { font-size: 1rem; }
  .roots-list li:not(:last-child)::after { margin-left: 1.5rem; }

  /* Stay CTA — full-width pill and shorter aspect on phone */
  .pill {
    align-self: stretch;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
    min-height: 48px;
  }
  .stay-photo { aspect-ratio: 4/5; }

  /* Find — roomier dl on phone */
  .find-dl > div { padding: 1.1rem 0; }
  .find-dl dd { font-size: 1.02rem; }
  .find-coord { padding: 1.25rem; }
  .map-link {
    min-height: 44px;
    align-items: center;
    font-size: 0.82rem;
  }

  /* Footer */
  .signoff { font-size: clamp(1.7rem, 7vw, 2.4rem); margin-bottom: 2rem; }
  .footer-mark { width: 76px; }
}

/* ---------- ≤420px: tiny-phone polish ---------- */
@media (max-width: 420px) {
  :root { --gut: 1rem; }
  .nav-meta { display: none; }
  .nav-links { gap: 0.65rem; }
  .nav-links a { font-size: 0.78rem; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-bottom { padding-top: 1rem; }
  .overline { font-size: 0.58rem; }
  .pre-mark { width: 70vw; }
  .menu-toc { gap: 1rem; }
  .menu-toc .toc-n { display: none; }
  .cat-h { gap: 0.5rem 0.75rem; }
  .pasta-table tbody td:not(:first-child)::before { font-size: 0.58rem; }
  .footer-row { font-size: 0.72rem; }
}

/* ---------- Landscape phones — reclaim hero height ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero, .hero-overlay { min-height: 560px; }
  .hero-mark { width: min(40vw, 320px); }
  .hero-center { gap: 1rem; padding: 0.5rem 0; }
  .hero-headline { font-size: 1.15rem; }
  .hero-meta { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
}
