/* Four States v4: Roots, Memory, Discovery, Reinvention.
   Four states of one kitchen, each with its own cloth, colour, wall and plate, meeting at one table. */

:root {
  /* phulkari: a gold eight-point bloom satin-stitched on crimson */
  --cloth-memory: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='48' height='48' fill='%238e1527'/%3E%3Cpath d='M24 6l5 13 13 5-13 5-5 13-5-13-13-5 13-5z' fill='%23f2b33d'/%3E%3Cpath d='M24 16l3 8-3 8-3-8z' fill='%238e1527'/%3E%3Cpath d='M0 0h4v48H0zM44 0h4v48h-4z' fill='%23f2b33d' opacity='.85'/%3E%3C/svg%3E");
  /* ikat: blurred cream diamonds dyed into indigo */
  --cloth-discovery: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='64'%3E%3Crect width='48' height='64' fill='%23182a5c'/%3E%3Cpath d='M19 4h6v8h5v8h5v8h4v8h-4v8h-5v8h-5v8h-6v-8h-5v-8h-5v-8h-4v-8h4v-8h5v-8h5z' fill='%23efe4cf'/%3E%3Cpath d='M22 22h4v6h3v8h-3v6h-4v-6h-3v-8h3z' fill='%23182a5c'/%3E%3Crect x='44' width='2' height='64' fill='%238fd3c7'/%3E%3C/svg%3E");
  /* toile: sepia sprigs on cream between brass rules */
  --cloth-reinvention: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='56'%3E%3Crect width='48' height='56' fill='%23efe4cf'/%3E%3Cpath d='M24 50C22 38 16 30 10 26M24 50c2-14 9-22 15-25M24 40c0-12-3-22-6-30' stroke='%236e4f24' stroke-width='1.6' fill='none'/%3E%3Cpath d='M10 26c-4-2-6-7-5-10 4 0 7 4 5 10zM39 25c4-2 6-7 4-10-4 1-6 5-4 10zM18 10c-2-4 0-8 3-9 2 3 1 7-3 9z' fill='%236e4f24'/%3E%3Cpath d='M1 0v56M47 0v56' stroke='%23b98d4c' stroke-width='2'/%3E%3C/svg%3E");
}
[data-state='roots']       { --wall: #2f3a1c; --fg: #f4ead0; --soft: #d9d2b4; --accent: #f2b33d; --ink-s: #1b230f; --cloth-s: var(--cloth-tn); --dot: #f2b33d; }
[data-state='memory']      { --wall: #5e1420; --fg: #f8e6cc; --soft: #ecc9bd; --accent: #ffc56a; --ink-s: #2a070c; --cloth-s: var(--cloth-memory); --dot: #ff8f7a; }
[data-state='discovery']   { --wall: #13213f; --fg: #eef2f4; --soft: #c5d3e4; --accent: #9fd6e2; --ink-s: #0a1428; --cloth-s: var(--cloth-discovery); --dot: #8fc6e6; }
[data-state='reinvention'] { --wall: #efe4cf; --fg: #2a1d12; --soft: #5a4532; --accent: #8a5a1c; --ink-s: #2a1d12; --cloth-s: var(--cloth-reinvention); --dot: #e6c88e; }
.frieze__pin { background: #2f3a1c; }

/* ---------- the four names are words now, set like a menu title ---------- */
.scene__script, .door > p {
  font: italic 500 clamp(2.6rem, 9vw, 5.6rem)/1.05 var(--display); letter-spacing: -.02em; writing-mode: horizontal-tb;
}
.door > p { font-size: clamp(1.7rem, 3.8vw, 3.9rem); }
.door > em { font: italic 400 clamp(.78rem, 1.1vw, 1rem)/1.3 var(--display); letter-spacing: 0; text-transform: none; writing-mode: horizontal-tb; text-align: center; max-width: 18ch; }
@media (max-width: 899px) {
  .door { padding-inline: 6px; }
  .door > p { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(2rem, 9vw, 3rem); }
  .door > em { display: none; }
}
.scene__facts dd { text-wrap: pretty; }

/* ---------- hero: four runners meet under the four-part platter ---------- */
.runner--roots { --a: 180deg; --n: 0; }
.runner--memory { --a: 270deg; --n: 1; }
.runner--discovery { --a: 0deg; --n: 2; }
.runner--reinvention { --a: 90deg; --n: 3; }
.runner__cloth span { font: italic 500 clamp(1.25rem, 4.2vmin, 3rem)/1.1 var(--display); letter-spacing: -.01em; }
.runner--memory .runner__cloth span, .runner--reinvention .runner__cloth span { top: calc(var(--td) / 2 + 16vmin); }
.hero__thali-img { background-image: url('../assets/img/food/platter.webp'); animation: platter-rock 16s ease-in-out infinite alternate; }
@keyframes platter-rock { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.hero__thali-in { box-shadow: 0 40px 100px rgb(0 0 0 / .75), 0 0 0 1px rgb(255 220 150 / .2); }
.hero__dark { filter: brightness(.16) saturate(.55); }
@media (max-width: 899px) {
  .runner--memory .runner__cloth span, .runner--reinvention .runner__cloth span {
    display: block; top: calc(var(--td) / 2 + 9vmin); font-size: 1rem; transform: translate(-50%, -50%) rotate(calc(var(--a) * -1 + 90deg));
  }
}

/* ---------- rooms: every room is finished, and switches its lights on as you arrive ---------- */
.reveal .reveal__line { filter: brightness(.2) saturate(.5); }
.reveal { background: #120c08; }
.titleblock, .stamp:not(.stamp--static), .peek { display: none !important; }
.plan__legend { display: none; }

/* ---------- the walls move only where something would ---------- */
.state__art .ride { animation: ride 11s ease-in-out infinite alternate; }
@keyframes ride { from { transform: translateX(-90px); } to { transform: translateX(120px); } }
.state__art .drive { animation: drive 15s ease-in-out infinite alternate; }
@keyframes drive { from { transform: translateX(80px); } to { transform: translateX(-220px); } }
.state__art .kite { animation: kite 4.5s ease-in-out infinite alternate; }
@keyframes kite { from { transform: rotate(-8deg) translateY(-4px); } to { transform: rotate(7deg) translateY(6px); } }
.state__art .bulb { animation: bulb 1s steps(2, jump-none) infinite; }
@keyframes bulb { 50% { opacity: .25; } }
.state__art .lamp-cone { animation: cone 4s ease-in-out infinite alternate; }
@keyframes cone { to { opacity: .3; } }
.state__art .glowbox { animation: glowbox 2.4s ease-in-out infinite alternate; }
@keyframes glowbox { from { opacity: .55; } to { opacity: 1; } }

/* ---------- menu: the platter is the dial; the full menu sits under it ---------- */
.dishes__line { margin: -4px 0 12px; color: #b8c6a4; font-style: italic; font-family: var(--display); font-size: 1.05rem; }
.dishes h3 { font-style: italic; }
.dishes[data-state] h3::before { background: var(--cloth-s) 0 0 / 22px auto repeat-y; }
.dishes b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.dishes li em { display: block; font: 500 .74rem/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #cbd6b8; margin-top: 2px; font-style: normal; }
.marks { display: inline-flex; gap: 4px; }
.mk { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; font: 600 .66rem/1 var(--body); letter-spacing: 0; color: #13231a; background: #cfe3b8; vertical-align: middle; }
.mk--j { background: #f2d58a; }
.mk--s { background: #f2c078; font-size: .72rem; }
.menu__key { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px; font-size: .84rem; color: #cbd6b8; }
.menu__key .mk { margin-left: 10px; }
.menu__key .mk:first-child { margin-left: 0; }

.fullmenu { margin-top: clamp(48px, 7vw, 90px); }
.fullmenu__toggle { border-top: 1px solid rgb(203 214 184 / .3); border-bottom: 1px solid rgb(203 214 184 / .3); }
.fullmenu__toggle summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 26px 0; }
.fullmenu__toggle summary::-webkit-details-marker { display: none; }
.fullmenu__toggle summary span { font: italic 500 clamp(1.8rem, 4.4vw, 3rem)/1 var(--display); color: #eef0dd; }
.fullmenu__toggle summary small { color: #b8c6a4; font-size: .9rem; }
.fullmenu__toggle summary::after { content: ''; flex: none; width: 14px; height: 14px; border-right: 1.5px solid #eef0dd; border-bottom: 1.5px solid #eef0dd; transform: rotate(45deg) translateY(-4px); transition: transform .5s var(--ease); }
.fullmenu__toggle[open] summary::after { transform: rotate(225deg) translateY(-4px); }
.fullmenu__body { padding: 8px 0 40px; }
.fullmenu__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 26px; font-size: .86rem; color: #cbd6b8; }
.fullmenu__legend span::before, .course li::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); margin-right: 8px; vertical-align: 1px; }
.course { padding: 26px 0; border-top: 1px solid rgb(203 214 184 / .16); }
.course h3 { font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: #eef0dd; }
.course h4 { margin: 22px 0 4px; font: 600 .76rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #b8c6a4; }
.course__note { color: #b8c6a4; font-size: .9rem; margin-top: 6px; }
.course ul { display: grid; gap: 0 48px; margin-top: 8px; }
.course li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid rgb(203 214 184 / .1); display: grid; gap: 2px; }
.course li::before { position: absolute; left: 0; top: 19px; margin: 0; }
.course li b { font: 600 1.06rem/1.3 var(--display); color: #eef0dd; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.course li span { color: #b8c6a4; font-size: .9rem; line-height: 1.45; }
.course li em { font: 500 .72rem/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #cbd6b8; font-style: normal; }
@media (min-width: 900px) { .course ul { grid-template-columns: 1fr 1fr; } }
.menu__art { display: none; }

/* ---------- visit ---------- */
.field input[type='date'] { color-scheme: dark; }

/* ---------- hero copy stays compact on shorter desktop screens so the table can sit above it ---------- */
@media (min-width: 900px) {
  .hero__lede { max-width: 42ch; }
  .hero__actions { flex-wrap: nowrap; }
}
@media (min-width: 900px) and (max-height: 860px) {
  .hero__title { font-size: clamp(3rem, 8.6vh, 5.2rem); }
  .hero__actions { margin-top: 20px; margin-bottom: 34px; }
  .hero__lede { margin-top: 12px; }
}

.btn, .film-btn { white-space: nowrap; }
.scene__script { font-size: clamp(2.4rem, 6.4vw, 5.2rem); }
@media (min-width: 900px) {
  /* the state's mark sits on the corner of its plate, clear of the big word */
  .scene__motif {
    --ms: min(11vw, 17svh);
    left: auto; right: calc(6vw - var(--ms) * .32);
    top: calc(var(--nav-h) + 6vh + min(38vw, 54svh) * .667 - var(--ms) * .62);
    width: var(--ms); filter: drop-shadow(0 6px 14px rgb(0 0 0 / .5));
  }
  .film-btn small { white-space: nowrap; }
}
