/* ===========================================================
   K's Antarvan — a conservatory in Vesu
   Palette taken from the room itself: green steel glazing,
   cream drapes, brass lamplight, chequerboard marble.
   =========================================================== */

:root {
  --forest:      #16281e;
  --forest-deep: #0e1a13;
  --moss:        #2f4a37;
  --leaf:        #4a6b51;
  --cream:       #f6f1e6;
  --paper:       #fbf8f1;
  --lamp:        #e3b268;
  --brass:       #b98a42;
  --ink:         #1c2620;
  --ink-soft:    #4a564e;

  --shell: min(1180px, 92vw);
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 9rem);

  --display: "Cormorant Garamond", Georgia, serif;
  --text: "Jost", system-ui, -apple-system, Segoe UI, sans-serif;
  --dev: "Tiro Devanagari Hindi", "Cormorant Garamond", serif;

  --arch: 50% 50% 4px 4px / 28% 28% 0 0;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 300;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--forest); color: var(--cream);
  padding: .75rem 1.25rem; border-radius: 2px; transition: top .2s;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.muted { color: var(--ink-soft); font-size: .92em; }
.shell { width: var(--shell); margin-inline: auto; }

.chequer {
  height: 14px;
  background-image: conic-gradient(var(--moss) 90deg, transparent 90deg 180deg, var(--moss) 180deg 270deg, transparent 270deg);
  background-size: 14px 14px;
  opacity: .5;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--moss) 18%, transparent);
  transition: background .3s var(--ease);
}
.nav.is-scrolled { background: color-mix(in srgb, var(--cream) 97%, transparent); }

.nav__mark { display: flex; align-items: baseline; gap: .4rem; text-decoration: none; color: var(--forest); }
.nav__k { font-family: var(--display); font-size: 1.5rem; letter-spacing: .02em; }
.nav__dev { font-family: var(--dev); font-size: 1.3rem; line-height: 1; }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__menu a {
  text-decoration: none; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); position: relative; padding: .35rem 0;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__menu a:hover::after, .nav__menu a[aria-current]::after { transform: scaleX(1); }
.nav__menu a[aria-current] { color: var(--forest); }
.nav__cta {
  border: 1px solid var(--moss); border-radius: 999px; padding: .5rem 1.1rem !important;
  color: var(--forest) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--forest); color: var(--cream) !important; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 2.75rem; height: 2.75rem; position: relative;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  position: absolute; left: 50%; width: 22px; height: 1.5px;
  background: var(--forest); transform: translateX(-50%); transition: .3s var(--ease);
}
.nav__bars { top: 50%; }
.nav__bars::before { content: ""; top: -7px; }
.nav__bars::after  { content: ""; top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 3.9rem 0 auto; flex-direction: column; gap: 1.6rem;
    background: var(--cream); padding: 2.5rem 1.5rem 3rem;
    border-bottom: 1px solid color-mix(in srgb, var(--moss) 20%, transparent);
    transform: translateY(-120%); transition: transform .4s var(--ease);
  }
  .nav__menu.is-open { transform: none; }
  .nav__menu a { font-size: 1rem; }
}

/* hero */
.hero { position: relative; min-height: min(92svh, 860px); display: grid; align-items: end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(14,26,19,.45) 0%, rgba(14,26,19,.1) 35%, rgba(14,26,19,.82) 100%);
}
.hero__in { position: relative; width: var(--shell); margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem); color: var(--cream); }
.hero__dev { font-family: var(--dev); font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--lamp); margin: 0 0 .6rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 300; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--lamp); }
.hero__sub { max-width: 42ch; margin: 1.5rem 0 2rem; color: color-mix(in srgb, var(--cream) 88%, transparent); }
.hero__acts { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__scroll {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 2rem;
  writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}
@media (max-width: 760px) { .hero__scroll { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .95rem 1.8rem; border-radius: 999px; text-decoration: none;
  border: 1px solid currentColor; transition: .3s var(--ease);
}
.btn--solid { background: var(--lamp); border-color: var(--lamp); color: var(--forest-deep); }
.btn--solid:hover { background: var(--cream); border-color: var(--cream); }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.btn--dark { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.btn--dark:hover { background: var(--moss); border-color: var(--moss); }

/* sections */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest .eyebrow { color: var(--lamp); }

.eyebrow {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 1.1rem;
}
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
.section h2 em { font-style: italic; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: var(--ink-soft); }
.section--forest .lede { color: color-mix(in srgb, var(--cream) 78%, transparent); }

.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro__art img { width: 100%; mix-blend-mode: multiply; opacity: .92; }
.intro p + p { margin-top: 1.1rem; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } .intro__art { order: -1; max-width: 420px; } }

.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: clamp(2.5rem, 5vw, 4rem); }
.room { position: relative; text-decoration: none; color: inherit; display: block; }
.room__frame { overflow: hidden; border-radius: var(--arch); background: var(--forest-deep); }
.room__frame img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform 1.1s var(--ease); }
.room:hover .room__frame img { transform: scale(1.04); }
.room h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.2rem; }
.room p { color: var(--ink-soft); max-width: 40ch; margin: .5rem 0 0; }
.section--forest .room p { color: color-mix(in srgb, var(--cream) 74%, transparent); }
.room__more { display: inline-block; margin-top: .9rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 760px) { .rooms { grid-template-columns: 1fr; } }

.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(2.5rem, 5vw, 4rem); }
.plate__frame { overflow: hidden; border-radius: 3px; }
.plate img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform 1.1s var(--ease); }
.plate:hover img { transform: scale(1.05); }
.plate h3 { font-size: 1.5rem; margin-top: 1rem; }
.plate p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.section--forest .plate p { color: color-mix(in srgb, var(--cream) 72%, transparent); }
@media (max-width: 860px) { .plates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plates { grid-template-columns: 1fr; } }

.kitchen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px; }
.kitchen img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform 1s var(--ease); }
.kitchen img:hover { filter: grayscale(1) contrast(1.15) brightness(1.08); transform: scale(1.02); }

.quote { text-align: center; max-width: 24ch; margin-inline: auto; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-style: italic; line-height: 1.25; }
.quote cite { display: block; margin-top: 1.5rem; font-family: var(--text); font-style: normal; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }

.strip { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.strip__facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.strip__facts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; }
.strip__facts b { font-weight: 400; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.strip__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
@media (max-width: 820px) { .strip { grid-template-columns: 1fr; } .strip__img { order: -1; } }
@media (max-width: 480px) { .strip__facts li { grid-template-columns: 1fr; gap: .2rem; } }

/* page header */
.phead { background: var(--forest); color: var(--cream); padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.phead h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 300; }
.phead h1 em { font-style: italic; color: var(--lamp); }
.phead .lede { color: color-mix(in srgb, var(--cream) 78%, transparent); margin-top: 1.2rem; }
.phead .eyebrow { color: var(--lamp); }

/* menu page */
.menubar {
  position: sticky; top: 3.9rem; z-index: 40; background: var(--cream);
  border-bottom: 1px solid color-mix(in srgb, var(--moss) 18%, transparent);
}
.menubar__in { width: var(--shell); margin-inline: auto; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; padding: .9rem 0; }
.menubar__tabs { display: flex; gap: .5rem; }
.tab {
  background: none; border: 1px solid color-mix(in srgb, var(--moss) 30%, transparent);
  border-radius: 999px; padding: .45rem 1.1rem; cursor: pointer;
  font-family: var(--text); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  transition: .25s var(--ease);
}
.tab[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.menubar__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.chip {
  background: none; border: 1px solid color-mix(in srgb, var(--moss) 25%, transparent);
  border-radius: 999px; padding: .35rem .85rem; cursor: pointer;
  font-family: var(--text); font-size: .72rem; letter-spacing: .1em; color: var(--ink-soft);
}
.chip[aria-pressed="true"] { background: var(--lamp); border-color: var(--lamp); color: var(--forest-deep); }

.menu__jump { width: var(--shell); margin: 2.5rem auto 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.menu__jump a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.menu__jump a:hover { color: var(--forest); }

.course { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid color-mix(in srgb, var(--moss) 14%, transparent); scroll-margin-top: 11.5rem; }
.course:first-of-type { border-top: 0; }
.course__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.course__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.course__note { color: var(--ink-soft); font-size: .9rem; font-style: italic; }
.dishes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .dishes { grid-template-columns: 1fr; } }
.dish__name { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.dish__desc { margin: .3rem 0 0; color: var(--ink-soft); font-size: .95rem; max-width: 52ch; }
.dish.is-hidden, .course.is-hidden { display: none; }

.tag {
  font-family: var(--text); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: .15rem .5rem; line-height: 1.6;
}
.tag--new { color: var(--brass); }
.tag--spicy { color: #a4503a; }
.tag--jain, .tag--nog { color: var(--leaf); }

.menu__empty { padding: 3rem 0; color: var(--ink-soft); font-style: italic; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* rooms page */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: var(--section); }
.feature--flip .feature__media { order: -1; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
.feature__sketch { width: min(100%, 460px); margin-top: 2rem; mix-blend-mode: multiply; opacity: .9; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__media { order: 0; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); margin-top: clamp(2rem, 5vw, 3.5rem); }
.tile { margin: 0; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { margin-top: .7rem; font-size: .85rem; color: var(--ink-soft); }

/* visit page */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.8rem; }
.facts h2 { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); font-family: var(--text); margin-bottom: .45rem; }
.facts p { margin: 0; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 3px; filter: saturate(.8); }
.notice {
  margin-top: 2rem; padding: 1.1rem 1.3rem; border-left: 2px solid var(--lamp);
  background: color-mix(in srgb, var(--lamp) 10%, transparent); font-size: .95rem;
}

/* footer */
.foot { background: var(--forest-deep); color: color-mix(in srgb, var(--cream) 82%, transparent); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.foot__in { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__in { grid-template-columns: 1fr; } }
.foot h2 { font-family: var(--text); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--lamp); margin: 0 0 .6rem; }
.foot h2 ~ h2 { margin-top: 1.6rem; }
.foot p { margin: 0 0 .4rem; font-size: .93rem; }
.foot a { color: inherit; text-decoration-color: color-mix(in srgb, var(--lamp) 60%, transparent); text-underline-offset: 3px; }
.foot a:hover { color: var(--lamp); }
.foot__dev { font-family: var(--dev); font-size: 2rem; color: var(--cream); display: block; }
.foot__gloss { font-style: italic; font-family: var(--display); font-size: 1.05rem; margin-top: .4rem; }
.foot__rule { width: var(--shell); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--cream) 14%, transparent); font-size: .78rem; letter-spacing: .08em; color: color-mix(in srgb, var(--cream) 55%, transparent); }

/* reveal + reduced motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 404 */
.lost { min-height: 70svh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.lost h1 { font-size: clamp(3rem, 10vw, 7rem); font-weight: 300; }
.lost img { width: min(100%, 380px); margin: 2rem auto 0; mix-blend-mode: multiply; opacity: .85; }

/* menu search */
.search { position: relative; display: flex; align-items: center; margin-left: auto; }
.search input {
  font-family: var(--text); font-size: .9rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--moss) 35%, transparent);
  padding: .4rem .2rem .4rem 1.5rem; width: clamp(9rem, 22vw, 16rem);
}
.search input::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.search input:focus { outline: 0; border-bottom-color: var(--brass); }
.search svg { position: absolute; left: 0; width: 1rem; height: 1rem; stroke: var(--ink-soft); fill: none; stroke-width: 1.5; }
@media (max-width: 560px) { .search { margin-left: 0; width: 100%; } .search input { width: 100%; } }

/* the sticky bar is one row on wider screens, so courses need less clearance */
@media (min-width: 561px) { .course { scroll-margin-top: 9rem; } }

/* ===========================================================
   MOTION LAYER
   Added on top of the static page: nothing below is required
   for the site to read correctly.
   =========================================================== */

/* headings that rise a word at a time */
.w { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.w__i {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1s var(--ease), opacity .8s var(--ease);
}
.is-shown .w__i { transform: none; opacity: 1; }
.js [data-split]:not(.is-split) { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }

/* parallax drift */
[data-parallax] { will-change: transform; }
[data-parallax] > img, img[data-parallax] { transform: translate3d(0, var(--py, 0), 0); }

/* the header tucks away going down, comes back coming up */
.nav { transition: background .3s var(--ease), transform .45s var(--ease); }
.nav.is-tucked { transform: translateY(-105%); }

/* a lamp that follows the pointer across the dark sections */
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 0%),
              color-mix(in srgb, var(--lamp) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity .6s var(--ease);
}
[data-glow].is-lit::before { opacity: 1; }

/* film grain, very quiet */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* hero: a slow push in, a light that breathes, a cue that moves */
.hero__img img { animation: drift 26s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.11); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 50% at 18% 85%, color-mix(in srgb, var(--lamp) 14%, transparent), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 3rem; margin: .8rem auto 0;
  background: linear-gradient(var(--lamp), transparent);
  animation: fall 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes fall { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__in > * { animation: rise 1s var(--ease) both; }
.hero__dev { animation-delay: .1s; }
.hero__sub { animation-delay: .55s; }
.hero__acts { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* buttons gain an arrow that slides */
.btn::after {
  content: "\2192"; display: inline-block; font-size: 1.1em; line-height: 0;
  transform: translateX(-4px); opacity: 0; transition: .3s var(--ease);
}
.btn:hover::after { transform: translateX(0); opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(14, 26, 19, .7); }

/* an open / closed pill that reads the clock in Surat */
.state {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px; padding: .4rem 1rem; color: var(--ink-soft);
}
.state::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: #9aa89d; box-shadow: 0 0 0 0 currentColor;
}
.state.is-open { color: var(--leaf); }
.state.is-open::before { background: #5f9a6c; animation: pulse 2.4s var(--ease) infinite; }
.state.is-soon { color: var(--brass); }
.hero .state, .section--forest .state, .phead .state { color: var(--lamp); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70% { box-shadow: 0 0 0 .5rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* a running line of dishes between sections */
.marquee {
  overflow: hidden; border-block: 1px solid color-mix(in srgb, var(--moss) 18%, transparent);
  padding-block: 1.1rem; background: var(--paper);
  --speed: 48s;
}
.marquee__track { display: flex; width: max-content; animation: slide var(--speed) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic; color: var(--ink-soft); padding-inline: 1.4rem;
  display: inline-flex; align-items: center; gap: 2.8rem;
}
.marquee span::after { content: "\2767"; color: var(--brass); font-style: normal; font-size: .8em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* dish rows wake up on hover */
.dish { position: relative; padding-bottom: .9rem; }
.dish::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--brass), transparent);
  transform: scaleX(0); transform-origin: left; opacity: .5;
  transition: transform .5s var(--ease);
}
.dish:hover::after { transform: scaleX(1); }
.dish:hover .dish__name { color: var(--forest); }
.dish__name { transition: color .3s var(--ease); }

/* captions that lift, frames with a hairline */
.room__frame, .plate__frame, .tile img, .feature__media img, .strip__img img { box-shadow: inset 0 0 0 1px rgba(246, 241, 230, .12); }
.tile { position: relative; }
.tile.is-zoomable { cursor: zoom-in; }
.tile figcaption { transition: color .3s var(--ease), transform .4s var(--ease); }
.tile:hover figcaption { color: var(--forest); transform: translateX(4px); }

/* a gold rule to break the long pages */
.orn { display: flex; align-items: center; gap: 1rem; width: var(--shell); margin: 0 auto; color: var(--brass); }
.orn::before, .orn::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brass) 45%, transparent), transparent); }
.orn span { font-size: .8rem; letter-spacing: .3em; }

/* a drop cap to open the room copy */
.dropcap::first-letter {
  float: left; font-family: var(--display); font-size: 3.6em; line-height: .82;
  padding: .06em .12em 0 0; color: var(--moss);
}

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 95; display: none;
  place-items: center; grid-template-columns: auto 1fr auto; gap: 1rem;
  padding: clamp(1rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--forest-deep) 94%, transparent);
  backdrop-filter: blur(6px);
}
.lb.is-open { display: grid; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb__fig { margin: 0; max-height: 100%; display: grid; gap: .9rem; justify-items: center; animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb__fig img { max-height: 78svh; width: auto; border-radius: 3px; }
.lb__fig figcaption { color: color-mix(in srgb, var(--cream) 75%, transparent); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.lb__close, .lb__nav {
  background: none; border: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
  color: var(--cream); border-radius: 50%; width: 2.8rem; height: 2.8rem;
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: .25s var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: var(--lamp); border-color: var(--lamp); color: var(--forest-deep); }
.lb__close { position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
@media (max-width: 620px) {
  .lb.is-open { grid-template-columns: 1fr; }
  .lb__fig { grid-area: 1 / 1; }
  .lb__fig img { max-height: 62svh; }
  .lb__nav { position: absolute; bottom: clamp(1.2rem, 5vw, 2.5rem); }
  .lb__nav--prev { left: 22%; }
  .lb__nav--next { right: 22%; }
}
}

/* cards lift a little */
.room, .plate { transition: transform .5s var(--ease); }
.room:hover, .plate:hover { transform: translateY(-4px); }
.room__frame { position: relative; }
.room__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 26, 19, .55), transparent 45%);
  opacity: .8; transition: opacity .5s var(--ease);
}
.room:hover .room__frame::after { opacity: .45; }

/* keep every bit of this off when the system asks for calm */
@media (prefers-reduced-motion: reduce) {
  .hero__img img, .hero::after, .hero__scroll::after, .hero__in > *,
  .marquee__track, .state.is-open::before { animation: none !important; }
  .w__i { transform: none; opacity: 1; }
  .btn:hover { transform: none; }
  [data-parallax] > img, img[data-parallax] { transform: none; }
}

/* a full-bleed band, image drifting behind the line */
.band { position: relative; min-height: min(70svh, 620px); display: grid; place-items: center; overflow: hidden; background: var(--forest-deep); }
.band__img { position: absolute; inset: -12% 0; }
.band__img img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: translate3d(0, var(--py, 0), 0); }
.band__in { position: relative; text-align: center; color: var(--cream); width: var(--shell); padding-block: clamp(3rem, 8vw, 5rem); }
.band__in h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; margin-inline: auto; }
.band__in h2 em { font-style: italic; color: var(--lamp); }
.band .eyebrow { color: var(--lamp); }

/* grids come in one card behind the other */
.rooms .reveal:nth-child(2), .plates .reveal:nth-child(2), .tiles .reveal:nth-child(2) { transition-delay: .09s; }
.plates .reveal:nth-child(3), .tiles .reveal:nth-child(3) { transition-delay: .18s; }
.tiles .reveal:nth-child(4) { transition-delay: .27s; }
.tiles .reveal:nth-child(5) { transition-delay: .36s; }
.tiles .reveal:nth-child(6) { transition-delay: .45s; }

/* the band needs a scrim so the line holds over any frame of the photo */
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 70% at 50% 50%, rgba(14, 26, 19, .72), rgba(14, 26, 19, .45));
}
.band__in { z-index: 1; }

/* ===========================================================
   EFFECTS LAYER
   =========================================================== */

/* rain down the hero glass */
.rain { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.hero__in, .hero__scroll { z-index: 2; }

/* the curtain: the way in, and the way between pages */
.curtain {
  position: fixed; inset: 0; z-index: 99; display: grid; place-items: center;
  background: var(--forest-deep); pointer-events: none;
  transform: translateY(0);
  transition: transform .75s cubic-bezier(.76, 0, .24, 1);
}
.curtain__mark {
  font-family: var(--dev); font-size: clamp(2rem, 7vw, 4.5rem); color: var(--lamp);
  opacity: 0; letter-spacing: .08em;
}
body.is-entering .curtain__mark { animation: markIn 1.15s var(--ease) forwards; }
@keyframes markIn {
  0% { opacity: 0; transform: translateY(14px) scale(.96); letter-spacing: .3em; }
  45% { opacity: 1; transform: none; letter-spacing: .08em; }
  100% { opacity: 0; transform: translateY(-10px); }
}
body.is-here .curtain { transform: translateY(-101%); }
/* nothing should flash before the curtain is in place */
.js body:not(.is-here):not(.is-entering) .curtain { transform: translateY(0); }

/* a lamp for a cursor */
.cur { position: fixed; top: 0; left: 0; z-index: 98; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cur--dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--lamp); }
.cur--ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid color-mix(in srgb, var(--lamp) 70%, transparent);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s, background .3s;
}
.cur--ring.is-big { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: color-mix(in srgb, var(--lamp) 12%, transparent); }
.cur--ring.is-zoom::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--lamp); font-size: 1.1rem; mix-blend-mode: normal;
}
.cur--ring.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.cur--ring.is-out, .cur--dot.is-out { opacity: 0; }
@media (hover: none) { .cur { display: none; } }

/* a brass line that tracks the page */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 97;
  background: linear-gradient(90deg, var(--brass), var(--lamp));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* back to the top */
.totop {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 60;
  width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
  background: var(--forest); color: var(--cream); border: 1px solid color-mix(in srgb, var(--lamp) 40%, transparent);
  font-size: 1.1rem; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: .4s var(--ease);
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--lamp); color: var(--forest-deep); }

/* cards tip toward the pointer */
.plate, .tile, .room {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.plate.is-tilting, .tile.is-tilting, .room.is-tilting { transition: transform .12s linear; }
.room:hover, .plate:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }

/* the marquee leans with the scroll */
.marquee__track { transform: skewX(var(--skew, 0deg)); transition: transform .4s var(--ease); animation-duration: calc(var(--speed) / var(--rate, 1)); }

/* the jump nav marks the course you are reading */
.menu__jump { position: relative; overflow-x: auto; scrollbar-width: none; padding-bottom: .4rem; }
.menu__jump::-webkit-scrollbar { display: none; }
.menu__jump a { position: relative; padding-bottom: .3rem; white-space: nowrap; transition: color .3s var(--ease); }
.menu__jump a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.menu__jump a.is-here { color: var(--forest); }
.menu__jump a.is-here::after, .menu__jump a:hover::after { transform: scaleX(1); }

/* photographs wipe open instead of merely fading */
.js .room__frame img, .js .plate img, .js .tile img, .js .feature__media img, .js .strip__img img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.06);
  transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1), transform 1.4s var(--ease);
}
.js .reveal.is-in .room__frame img, .js .reveal.is-in .plate img, .js .reveal.is-in .tile img,
.js .reveal.is-in .feature__media img, .js .reveal.is-in .strip__img img,
.js .reveal.is-in img, .js .is-in .room__frame img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* dish rows arrive one after the other */
.js .dishes .dish { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .course.is-in .dishes .dish { opacity: 1; transform: none; }
.js .course.is-in .dishes .dish:nth-child(2) { transition-delay: .05s; }
.js .course.is-in .dishes .dish:nth-child(3) { transition-delay: .1s; }
.js .course.is-in .dishes .dish:nth-child(4) { transition-delay: .15s; }
.js .course.is-in .dishes .dish:nth-child(5) { transition-delay: .2s; }
.js .course.is-in .dishes .dish:nth-child(n+6) { transition-delay: .25s; }

/* the tally at the head of the menu */
.tally { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 2rem; }
.tally div { display: grid; gap: .2rem; }
.tally b { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; color: var(--lamp); line-height: 1; }
.tally span { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 70%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .cur, .progress, .rain { display: none; }
  .js .room__frame img, .js .plate img, .js .tile img, .js .feature__media img, .js .strip__img img { clip-path: none; transform: none; }
  .js .dishes .dish { opacity: 1; transform: none; }
  .plate, .tile, .room { transform: none; }
}

/* one page hands over to the next — the browser drives this, so a browser
   without it simply navigates as normal */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .32s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* when the header tucks away, the menu bar takes its place */
.menubar { transition: top .45s var(--ease); }
body:has(.nav.is-tucked) .menubar { top: 0; }

/* eyebrows draw a short rule as they arrive */
.eyebrow { display: flex; align-items: center; gap: .8rem; }
.eyebrow::before {
  content: ""; height: 1px; width: 2.2rem; background: currentColor; opacity: .7;
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .15s;
}
.is-in .eyebrow::before, .hero .eyebrow::before, .phead .eyebrow::before, .band .eyebrow::before { transform: scaleX(1); }
.js .reveal .eyebrow::before { transform: scaleX(0); }
.js .reveal.is-in .eyebrow::before { transform: scaleX(1); }

/* the wordmark breathes on hover */
.nav__mark { transition: letter-spacing .4s var(--ease); }
.nav__mark:hover { letter-spacing: .04em; }
.nav__mark:hover .nav__dev { color: var(--brass); transition: color .4s var(--ease); }

/* footer links slide their underline */
.foot a { background-image: linear-gradient(var(--lamp), var(--lamp)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; text-decoration: none; transition: background-size .4s var(--ease), color .3s; }
.foot a:hover { background-size: 100% 1px; }
