/* Chiguru 2.0 — single-page site
   A Telugu kitchen, told with its own things: muggulu drawn on the threshold, banana leaves,
   brass thalis and steel katoris, turmeric and kumkum, and the tamarind sprig from the logo.
   Motion is layered on by script.js; without it every section still reads in full. */

:root {
  --tam: #4e1c0e;           /* tamarind */
  --tam-deep: #33120a;
  --leaf: #5e8c31;          /* banana leaf */
  --leaf-deep: #1f3a17;
  --leaf-dark: #15290f;
  --turmeric: #e9a825;
  --turmeric-soft: #f6d27a;
  --kumkum: #b3261e;
  --rice: #fbf6ea;
  --cream: #f3ead6;
  --ink: #22140c;

  --display: 'Fraunces', 'Georgia', serif;
  --body: 'Manrope', system-ui, sans-serif;
  --te: 'Ramaraja', 'Nirmala UI', 'Gautami', serif;
  --te-deco: 'Tenali Ramakrishna', 'Ramaraja', 'Nirmala UI', serif;

  --max: 1240px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --pad: clamp(80px, 11vw, 150px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25  0 0 0 0 .16  0 0 0 0 .1  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--rice); color: var(--ink);
  font-family: var(--body); font-size: 16.5px; font-weight: 400; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
main { overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[lang='te'] { font-family: var(--te); font-style: normal; letter-spacing: 0; text-transform: none; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--turmeric); outline-offset: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  position: relative; z-index: 2; width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: var(--pad) var(--gutter);
}

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--grain); mix-blend-mode: multiply; opacity: 0.4;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--display); font-optical-sizing: auto; font-variation-settings: 'SOFT' 100;
  font-size: clamp(40px, 5.4vw, 80px); font-weight: 500; line-height: 1.02; letter-spacing: -0.025em;
  text-wrap: balance; color: var(--tam);
}
.display em { font-style: italic; font-weight: 400; color: var(--leaf); }
.display--light { color: var(--rice); }
.display--light em { color: var(--turmeric); }
.display--sm { font-size: clamp(36px, 4.2vw, 60px); }
.display--xl { font-size: clamp(52px, 9vw, 140px); }

.prose { max-width: 54ch; color: rgba(34, 20, 12, 0.82); }
.prose p + p { margin-top: 14px; }
.prose--light { color: rgba(251, 246, 234, 0.82); }

/* pill tag with the logo's sprig */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 10px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--leaf-deep);
}
.tag svg { width: 11px; height: 24px; color: var(--leaf); transform: rotate(-20deg); }
.tag [lang='te'] { font-size: 15px; color: var(--kumkum); }
.tag--dark { color: var(--tam); }
.tag--light { color: var(--turmeric-soft); }
.tag--light svg { color: var(--turmeric); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 6px 6px 6px 26px; border: 0; border-radius: 999px;
  font-family: var(--body); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease);
}
.btn i {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  transition: transform 0.5s var(--ease);
}
.btn i svg { width: 20px; height: 20px; }
.btn:hover i { transform: rotate(-45deg); }
.btn--turmeric { background: var(--turmeric); color: var(--tam-deep); }
.btn--turmeric i { background: var(--tam); color: var(--turmeric); }
.btn--turmeric:hover { background: var(--turmeric-soft); }
.btn--tamarind { background: var(--tam); color: var(--rice); }
.btn--tamarind i { background: var(--turmeric); color: var(--tam); }
.btn--tamarind:hover { background: var(--tam-deep); }
.btn--ghost { padding: 6px 26px; border: 1.5px solid var(--tam); color: var(--tam); background: transparent; }
.btn--ghost:hover { background: var(--tam); color: var(--rice); }
.btn--ghost-light { padding: 6px 26px; border: 1.5px solid rgba(251, 246, 234, 0.6); color: var(--rice); background: transparent; }
.btn--ghost-light:hover { background: var(--rice); color: var(--leaf-deep); }

/* ---------- Muggu (kolam) drawings ---------- */
[data-kolam] { overflow: visible; max-width: none; } /* muggulu are sized larger than their box on purpose */
.kolam-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kolam-dot { fill: currentColor; }

/* ---------- Leaf frames (Chiguru = leaf) ---------- */
.leaf-frame { overflow: hidden; border-radius: 6px 82% 6px 82% / 6px 82% 6px 82%; background: var(--cream); }
.leaf-frame--flip { border-radius: 82% 6px 82% 6px / 82% 6px 82% 6px; }
.leaf-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Intro ---------- */
.intro-cover { display: none; }
.intro .intro-cover {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 18px;
  background: var(--tam-deep) var(--grain); color: var(--turmeric);
  clip-path: circle(150% at 50% 50%);
}
.intro-cover__kolam { width: min(62vw, 340px); height: auto; }
.intro-cover__logo { width: min(46vw, 220px); opacity: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 50; width: 100%; height: var(--header-h);
  display: flex; align-items: center; gap: 20px; padding: 0 clamp(16px, 3vw, 36px);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}
.site-header.is-scrolled { --header-h: 70px; background: rgba(251, 246, 234, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(78, 28, 14, 0.12); }
.site-header__logo img { width: auto; height: 54px; transition: height 0.4s ease; }
.site-header.is-scrolled .site-header__logo img { height: 44px; }

.site-header__nav {
  margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 5px;
  border: 1px solid rgba(78, 28, 14, 0.16); border-radius: 999px;
  background: rgba(251, 246, 234, 0.75); backdrop-filter: blur(10px);
}
.site-header__nav a {
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--tam);
  transition: background-color 0.3s, color 0.3s;
}
.site-header__nav a:hover { background: rgba(233, 168, 37, 0.22); }
.site-header__nav a[aria-current='true'] { background: var(--tam); color: var(--turmeric-soft); }

.site-header__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 18px; border-radius: 999px; background: var(--tam); color: var(--rice);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.site-header__cta i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--turmeric); color: var(--tam); transition: transform 0.5s var(--ease); }
.site-header__cta i svg { width: 17px; height: 17px; }
.site-header__cta:hover i { transform: rotate(-45deg); }

.site-header__menu-btn {
  display: none; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--turmeric); color: var(--tam); cursor: pointer; position: relative; z-index: 3;
}
.burger { position: relative; width: 20px; height: 8px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 6px; }
.menu-open .burger i:first-child { top: 3px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 3px; transform: rotate(-45deg); }

.site-menu {
  position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; overflow: hidden;
  background: var(--leaf-deep); color: var(--turmeric);
  clip-path: circle(0% at calc(100% - 46px) 42px); visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0.8s;
}
.menu-open .site-menu { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.site-menu__kolam { position: absolute; width: 130vmin; height: auto; opacity: 0.12; }
.site-menu__list { position: relative; display: grid; gap: 4px; text-align: center; }
.site-menu__list a {
  display: block; text-decoration: none; color: var(--rice);
  font-family: var(--display); font-size: clamp(34px, 9vw, 54px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em;
}
.site-menu__list a span { display: block; font-size: 16px; line-height: 1.8; color: var(--turmeric); }
.site-menu__list a:hover { color: var(--turmeric-soft); font-style: italic; }
.menu-open .site-header__logo, .menu-open .site-header__cta { visibility: hidden; }

@media (max-width: 1060px) {
  .site-header__nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .site-header__menu-btn { display: grid; }
}
@media (max-width: 520px) {
  :root { --header-h: 72px; }
  .site-header__logo img { height: 44px; }
  .site-header__cta span { display: none; }
  .site-header__cta { padding: 5px; }
}

/* =========================================================
   1. Hero
   ========================================================= */
.hero { background: radial-gradient(ellipse at 80% 30%, #fff9ec, var(--rice) 60%); min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero > * { position: relative; z-index: 2; }
.hero__grid {
  flex: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) var(--gutter) clamp(24px, 3vw, 40px);
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero__title {
  font-family: var(--display); font-optical-sizing: auto; font-variation-settings: 'SOFT' 100;
  font-size: clamp(54px, 7.2vw, 120px); font-weight: 500; line-height: 0.94; letter-spacing: -0.035em; color: var(--tam);
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__line > span { display: inline-block; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--leaf); }
.hero__lede { max-width: 44ch; font-size: 17.5px; color: rgba(34, 20, 12, 0.78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__plate-wrap { position: relative; width: 100%; max-width: 620px; justify-self: center; aspect-ratio: 1; }
.hero__kolam { position: absolute; inset: -6%; width: 112%; height: 112%; color: var(--tam); opacity: 0.32; }
.hero__plate {
  position: absolute; inset: 17%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 10px #e3c47a, 0 0 0 14px #a77b32, 0 0 0 15px rgba(78, 28, 14, 0.4), 0 40px 70px -24px rgba(51, 18, 10, 0.55);
}
.hero__plate img { width: 100%; height: 100%; object-fit: cover; animation: turn 90s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.chip {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px 18px 9px; border-radius: 18px; background: var(--rice);
  box-shadow: 0 16px 30px -14px rgba(51, 18, 10, 0.45), 0 0 0 1px rgba(78, 28, 14, 0.1);
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--tam); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.chip b { font-size: 19px; font-weight: 400; color: var(--leaf); }
.chip--1 { top: 10%; left: -2%; transform: rotate(-6deg); }
.chip--2 { top: 46%; right: -4%; transform: rotate(5deg); animation-delay: -2s; }
.chip--3 { bottom: 6%; left: 8%; transform: rotate(-3deg); animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.hero__sprig { position: absolute; top: -4%; right: 6%; width: 64px; height: 140px; color: var(--leaf); transform: rotate(28deg); }

.hero__facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0;
  width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) 26px;
  font-size: 14px; font-weight: 600; color: var(--tam);
}
.hero__facts span { display: inline-flex; align-items: center; }
.hero__facts span + span::before { content: ''; width: 7px; height: 7px; margin: 0 18px; border-radius: 50%; background: var(--kumkum); }

/* two crossed ribbons */
.bands { position: relative; height: clamp(110px, 12vw, 150px); }
.band { position: absolute; left: -5%; width: 110%; overflow: hidden; }
.band--turmeric { top: 18%; background: var(--turmeric); color: var(--tam-deep); transform: rotate(-2.2deg); z-index: 2; box-shadow: 0 10px 24px -12px rgba(51, 18, 10, 0.5); }
.band--leaf { top: 30%; background: var(--leaf-deep); color: var(--rice); transform: rotate(1.8deg); }
.band__track { display: flex; align-items: center; gap: 26px; width: max-content; padding: 14px 26px 12px 0; animation: marquee 40s linear infinite; }
.band__track--rev { animation-direction: reverse; animation-duration: 46s; }
.band span { font-family: var(--display); font-size: clamp(20px, 2.1vw, 30px); font-style: italic; font-weight: 400; line-height: 1; white-space: nowrap; }
.band span[lang='te'] { font-size: clamp(18px, 1.9vw, 27px); }
.band--turmeric span[lang='te'] { color: var(--kumkum); }
.band--leaf span[lang='te'] { color: var(--turmeric); }
.band i { font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* On phones the two bands are as tall as on desktop but the container is short, so the green one hid under the yellow one. */
@media (max-width: 760px) {
  .bands { height: 150px; }
  .band--turmeric { top: 6px; }
  .band--leaf { top: 72px; }
}

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__plate-wrap { max-width: 460px; width: 92%; }
  .chip { font-size: 12px; padding: 8px 14px 7px; }
  .chip b { font-size: 16px; }
  .chip--2 { right: -2%; }
}

/* =========================================================
   2. Story: a dictionary entry
   ========================================================= */
.story { background: var(--cream); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.story__entry { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.story__word { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.story__word [lang='te'] { font-family: var(--te-deco); font-size: clamp(96px, 12vw, 180px); font-weight: 400; line-height: 0.85; color: var(--tam); }
.story__word small { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 400; color: rgba(34, 20, 12, 0.6); letter-spacing: 0.02em; }
.story__word small i { color: var(--leaf); }
.story__defs { counter-reset: def; display: grid; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(78, 28, 14, 0.2); width: 100%; }
.story__defs li {
  counter-increment: def; display: flex; gap: 14px; align-items: baseline;
  font-family: var(--display); font-size: clamp(20px, 1.9vw, 25px); font-weight: 400; line-height: 1.35; color: var(--tam);
}
.story__defs li::before { content: counter(def) '.'; font-style: italic; color: var(--kumkum); }

.story__visual { position: relative; padding: 0 0 12% 12%; }
.leaf-frame--big { aspect-ratio: 4 / 5; box-shadow: 0 40px 70px -40px rgba(51, 18, 10, 0.6); }
.leaf-frame--small {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 1;
  border: 8px solid var(--cream); box-shadow: 0 20px 40px -20px rgba(51, 18, 10, 0.6);
}
.story__note {
  position: absolute; right: -2%; bottom: 3%; display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--display); font-style: italic; font-size: 17px; color: var(--leaf-deep); transform: rotate(-5deg);
}
.story__note [lang='te'] { font-family: var(--te-deco); font-size: 42px; line-height: 1; color: var(--kumkum); }
@media (max-width: 899px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__visual { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* =========================================================
   3. Signatures: plates on a pinned track
   ========================================================= */
.sig {
  background-color: var(--tam-deep);
  background-image: radial-gradient(circle, rgba(233, 168, 37, 0.16) 1.4px, transparent 1.8px);
  background-size: 28px 28px;
  color: var(--rice); overflow: hidden;
}
.sig__head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: clamp(40px, 5vw, 64px); }
.sig__hint { display: none; font-size: 14px; font-weight: 600; color: var(--turmeric-soft); }
.sig__viewport { position: relative; z-index: 2; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--pad); }
.sig__viewport::-webkit-scrollbar { display: none; }
.sig__track { display: flex; gap: clamp(28px, 4vw, 72px); width: max-content; padding: 0 var(--gutter); }
.dish { width: clamp(280px, 32vw, 470px); scroll-snap-align: center; display: flex; flex-direction: column; gap: 28px; }
.dish__plate { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.dish__leaf {
  position: absolute; inset: 2% -6%;
  border-radius: 4px 90% 4px 90% / 4px 90% 4px 90%;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 26px),
    linear-gradient(45deg, transparent 49.4%, rgba(255, 255, 255, 0.22) 49.5% 50.5%, transparent 50.6%),
    linear-gradient(160deg, #6f9e3b, var(--leaf) 45%, #3e6b22);
  transform: rotate(-12deg);
}
.dish__plate img {
  position: relative; width: 76%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 8px #e3c47a, 0 0 0 11px #a77b32, 0 30px 50px -20px rgba(0, 0, 0, 0.7);
}
.dish__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 40ch; }
.dish__te { font-family: var(--te-deco); font-size: 30px; line-height: 1.1; color: var(--turmeric); }
.dish h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100; font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.dish p:not(.dish__te) { color: rgba(251, 246, 234, 0.75); }
.dish__tag { margin-top: 6px; padding: 5px 14px; border: 1px solid rgba(246, 210, 122, 0.5); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--turmeric-soft); }
.dish--end { justify-content: center; }
.dish__end {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 78%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: var(--turmeric); color: var(--tam-deep); text-align: center; text-decoration: none;
  font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); font-style: italic; line-height: 1.1;
  transition: transform 0.6s var(--ease), background-color 0.3s;
}
.dish__end span { font-family: var(--te-deco); font-size: 40px; font-style: normal; color: var(--kumkum); }
.dish__end i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--tam); color: var(--turmeric); }
.dish__end i svg { width: 22px; height: 22px; }
.dish__end:hover { transform: rotate(-8deg) scale(1.03); background: var(--turmeric-soft); }

@media (min-width: 900px) {
  .motion .sig { height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .motion .sig__head { padding-top: calc(var(--header-h) + 16px); padding-bottom: 28px; }
  .motion .sig__hint { display: block; }
  .motion .sig__viewport { overflow: visible; padding-bottom: 0; }
  .motion .dish { width: clamp(300px, 27vw, 420px); }
  .motion .dish__plate { width: 82%; }
}

/* =========================================================
   4. Menu: a card on a banana leaf
   ========================================================= */
.menu {
  position: relative; padding: var(--pad) var(--gutter);
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 46px),
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.18) 49.8% 50.2%, transparent 50.3%),
    linear-gradient(180deg, #4f7d27, var(--leaf) 40%, #3a6420);
}
.menu__card {
  position: relative; z-index: 2; max-width: 1120px; margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) clamp(22px, 6vw, 84px);
  background: var(--rice); border-radius: 32px;
  box-shadow: inset 0 0 0 10px var(--rice), inset 0 0 0 11px rgba(233, 168, 37, 0.8), 0 50px 80px -40px rgba(10, 30, 5, 0.75);
}
.menu__head { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.menu__key { display: flex; gap: 22px; font-size: 14px; font-weight: 600; color: rgba(34, 20, 12, 0.7); }
.menu__key > span { display: inline-flex; align-items: center; gap: 8px; }

.menu__tabs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.menu__tab {
  display: flex; flex-direction: column; align-items: center; padding: 9px 20px 8px;
  border: 1.5px solid rgba(78, 28, 14, 0.25); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--tam);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.menu__tab span { font-size: 14px; font-weight: 400; color: var(--leaf); }
.menu__tab:hover { border-color: var(--tam); }
.menu__tab[aria-selected='true'] { background: var(--tam); border-color: var(--tam); color: var(--rice); }
.menu__tab[aria-selected='true'] span { color: var(--turmeric); }

.menu__panels { position: relative; z-index: 2; }
.menu__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.menu__item { padding: 20px 0; border-bottom: 1px dashed rgba(78, 28, 14, 0.22); }
.menu__line { display: flex; align-items: baseline; gap: 12px; }
.menu__line .mark { align-self: center; }
.menu__name { font-family: var(--display); font-size: clamp(21px, 1.9vw, 25px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--tam); }
.menu__dots { flex: 1; min-width: 24px; border-bottom: 2px dotted rgba(78, 28, 14, 0.3); transform: translateY(-0.3em); }
.menu__price { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--kumkum); }
.menu__item-te { margin-top: 2px; font-size: 15px; color: var(--leaf); }
.menu__desc { margin-top: 4px; max-width: 46ch; font-size: 15px; line-height: 1.6; color: rgba(34, 20, 12, 0.72); }
.menu__note { position: relative; z-index: 2; margin-top: 32px; text-align: center; font-family: var(--display); font-style: italic; font-size: 17px; color: rgba(34, 20, 12, 0.6); }
@media (max-width: 760px) { .menu__list { grid-template-columns: 1fr; } }

.mark { position: relative; display: inline-block; flex: none; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; background: #fff; }
.mark::after { content: ''; position: absolute; inset: 0; margin: auto; }
.mark.veg { color: #2e8b3a; }
.mark.veg::after { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mark.nonveg { color: #a2341c; }
.mark.nonveg::after { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 6px solid currentColor; }

/* =========================================================
   5. Thali: brass plate, steel katoris
   ========================================================= */
.thali { background: var(--rice); }
.thali__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.thali__body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.plate {
  position: relative; width: min(540px, 88vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff4d2, #e8c97f 34%, #c79a4b 66%, #8e6a2c 100%);
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.14), inset 0 0 0 18px rgba(110, 70, 20, 0.35), inset 0 0 40px rgba(110, 70, 20, 0.35), 0 50px 80px -36px rgba(51, 18, 10, 0.6);
}
.plate__rice {
  position: absolute; top: 50%; left: 50%; width: 34%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  background: radial-gradient(ellipse 3px 1.6px at center, #e8dfca 55%, transparent 70%) 0 0 / 9px 6px, radial-gradient(circle at 40% 35%, #fffdf7, #f1e9d6);
  box-shadow: 0 10px 18px -6px rgba(80, 50, 10, 0.45), inset 0 -8px 14px rgba(160, 130, 80, 0.25);
}
.plate__rice span { font-size: 15px; color: rgba(78, 28, 14, 0.6); }

.katori {
  --s: 1;
  position: absolute; top: 50%; left: 50%; width: 23%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-142%) rotate(calc(var(--a) * -1)) scale(var(--s));
  box-shadow: 0 0 0 6px #dfe3e6, 0 0 0 8px #a3a9ae, 0 12px 18px -6px rgba(40, 20, 5, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.katori b { font-size: 13.5px; font-weight: 400; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.katori--pappu { background: radial-gradient(circle at 38% 32%, #f8d873, #dca42a 70%); }
.katori--kura { background: radial-gradient(circle at 38% 32%, #9cae4a, #5b6f22 70%); }
.katori--pulusu { background: radial-gradient(circle at 38% 32%, #a24a22, #5a1d0c 72%); }
.katori--pachadi { background: radial-gradient(circle at 38% 32%, #d4502a, #8e1d12 72%); }
.katori--perugu { background: radial-gradient(circle at 38% 32%, #ffffff, #e9e4d8 75%); }
.katori--perugu b { color: var(--tam); text-shadow: none; }
.katori--appadam {
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 30% 30%, rgba(160, 110, 40, 0.35) 3px, transparent 4px) 0 0 / 18px 18px, radial-gradient(circle at 40% 35%, #f6e2b0, #ddb96a 80%);
  box-shadow: 0 10px 16px -6px rgba(40, 20, 5, 0.45);
}
.katori--appadam b { color: var(--tam); text-shadow: none; }
.katori.is-active { --s: 1.12; box-shadow: 0 0 0 6px #dfe3e6, 0 0 0 8px var(--turmeric), 0 0 0 14px rgba(233, 168, 37, 0.3), 0 18px 26px -8px rgba(40, 20, 5, 0.6); }
.katori--appadam.is-active { box-shadow: 0 0 0 4px var(--turmeric), 0 0 0 10px rgba(233, 168, 37, 0.3), 0 18px 26px -8px rgba(40, 20, 5, 0.5); }

.thali__items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.thali__items button {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: baseline;
  width: 100%; padding: 12px 16px; border: 1px solid rgba(78, 28, 14, 0.18); border-radius: 16px;
  background: transparent; text-align: left; cursor: pointer; transition: background-color 0.3s, border-color 0.3s;
}
.thali__items span { grid-row: span 2; font-size: 22px; color: var(--leaf); }
.thali__items b { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--tam); }
.thali__items small { font-size: 13.5px; line-height: 1.4; color: rgba(34, 20, 12, 0.7); }
.thali__items button:hover, .thali__items button.is-active { background: rgba(233, 168, 37, 0.18); border-color: var(--turmeric); }
@media (max-width: 899px) { .thali__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .thali__items { grid-template-columns: 1fr; } .katori b { font-size: 11px; } }

/* =========================================================
   6. Bar
   ========================================================= */
.bar { display: grid; grid-template-columns: 1fr 1fr; background: var(--leaf-dark); color: var(--rice); overflow: hidden; }
.bar__img { position: relative; z-index: 2; min-height: 560px; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.bar__img img { width: 100%; height: 100%; object-fit: cover; }
.bar__body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: var(--pad) var(--gutter) var(--pad) clamp(24px, 4vw, 48px); }
.bar__te { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-family: var(--te-deco); font-size: clamp(160px, 22vw, 340px); line-height: 1; color: rgba(233, 168, 37, 0.07); pointer-events: none; }
@media (max-width: 899px) {
  .bar { grid-template-columns: 1fr; }
  .bar__img { min-height: 360px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
}

/* =========================================================
   7. Gallery: a fan of prints
   ========================================================= */
.gallery { background: var(--tam); color: var(--rice); overflow: hidden; padding-bottom: var(--pad); }
.gallery__kolam { position: absolute; top: 50%; left: 50%; width: min(120vw, 1100px); height: auto; color: var(--turmeric); opacity: 0.09; transform: translate(-50%, -50%); }
.gallery__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-bottom: clamp(40px, 5vw, 70px); }
.fan { position: relative; z-index: 2; display: flex; justify-content: center; padding: 0 var(--gutter); }
.print {
  flex: none; width: clamp(180px, 19vw, 280px); margin: 0 -1.4vw; padding: 10px 10px 0;
  background: #fffaf0; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.7);
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform 0.6s var(--ease), box-shadow 0.6s;
}
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print p { padding: 10px 4px 14px; text-align: center; font-family: var(--display); font-style: italic; font-size: 17px; color: var(--tam); }
.print:hover { position: relative; z-index: 3; transform: translateY(-18px) rotate(0deg) scale(1.06); box-shadow: 0 40px 60px -24px rgba(0, 0, 0, 0.8); }
@media (max-width: 899px) {
  .fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 30px var(--gutter) 50px; }
  .fan::-webkit-scrollbar { display: none; }
  .print { width: 62vw; max-width: 280px; margin: 0 10px 0 0; scroll-snap-align: center; }
}

/* =========================================================
   8. Occasions
   ========================================================= */
.occasions { background: var(--cream); }
.occasions__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: clamp(44px, 6vw, 80px); }
.occ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.occ__item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.occ__item .leaf-frame { width: 100%; aspect-ratio: 1; margin-bottom: 14px; }
.occ__item:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); }
.occ__te { font-family: var(--te-deco); font-size: 36px; line-height: 1; color: var(--kumkum); }
.occ__item h3 { font-family: var(--display); font-size: clamp(26px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--tam); }
.occ__item > p:last-child { max-width: 34ch; color: rgba(34, 20, 12, 0.76); }
@media (max-width: 760px) { .occ { grid-template-columns: 1fr; } .occ__item:nth-child(2) { margin-top: 0; } .occ__item .leaf-frame { max-width: 360px; } }

/* =========================================================
   9. Visit & the invitation
   ========================================================= */
.visit { background: var(--leaf-deep); color: var(--rice); }
.visit__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.visit__info { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.visit__info dl { display: grid; gap: 18px; }
.visit__info dt { font-size: 13px; font-weight: 700; color: var(--turmeric); }
.visit__info dd { margin-top: 2px; color: rgba(251, 246, 234, 0.85); }
.visit__info dd a { font-weight: 600; color: var(--turmeric-soft); }
.map { width: 100%; }
.map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 260px; border: 0; border-radius: 24px; filter: sepia(0.35) saturate(0.8) contrast(0.95); }

/* a Telugu wedding invitation: turmeric border, kumkum dots */
.invite {
  position: relative; padding: clamp(44px, 5vw, 64px) clamp(28px, 5vw, 64px);
  background: #fff8e6; color: var(--ink); border-radius: 6px;
  box-shadow: inset 0 0 0 10px var(--turmeric), inset 0 0 0 12px var(--kumkum), inset 0 0 0 18px #fff8e6, inset 0 0 0 19px rgba(179, 38, 30, 0.4), 0 50px 80px -40px rgba(0, 0, 0, 0.6);
}
.invite__corner { position: absolute; width: 64px; height: 64px; color: var(--kumkum); }
.invite__corner--tl { top: 26px; left: 26px; }
.invite__corner--tr { top: 26px; right: 26px; transform: scaleX(-1); }
.invite__corner--bl { bottom: 26px; left: 26px; transform: scaleY(-1); }
.invite__corner--br { bottom: 26px; right: 26px; transform: scale(-1); }
.invite__top { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 28px; }
.invite__te { font-family: var(--te-deco); font-size: clamp(48px, 5vw, 64px); line-height: 1; color: var(--kumkum); }
.invite h3 { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; color: var(--tam); }
.invite__hint { max-width: 34ch; font-family: var(--display); font-style: italic; font-size: 17px; color: rgba(34, 20, 12, 0.65); }
.invite__dots { display: flex; gap: 8px; margin-top: 10px; }
.invite__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--kumkum); }
.invite__dots i:nth-child(2) { background: var(--turmeric); }

.field { display: grid; gap: 2px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 16px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--tam); }
.optional { font-weight: 500; color: rgba(34, 20, 12, 0.5); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1.5px solid rgba(78, 28, 14, 0.3);
  border-radius: 0; background: transparent; font-family: var(--display); font-size: 19px; color: var(--ink);
}
.field textarea { resize: none; overflow-y: hidden; font-size: 17px; }
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--turmeric); box-shadow: 0 1.5px 0 var(--turmeric); }
.field [aria-invalid='true'] { border-bottom-color: var(--kumkum); }
.form-error { margin-bottom: 14px; font-size: 14.5px; font-weight: 600; color: var(--kumkum); }
.invite .btn { width: 100%; justify-content: space-between; margin-top: 8px; }
@media (max-width: 959px) { .visit__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row .field:first-child { grid-column: 1 / -1; } .invite__corner { width: 44px; height: 44px; } }

/* =========================================================
   10. Closing
   ========================================================= */
.closing { background: var(--turmeric-soft); text-align: center; overflow: hidden; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.closing__kolam { position: absolute; top: 50%; left: 50%; width: min(110vw, 900px); height: auto; color: var(--tam); opacity: 0.2; transform: translate(-50%, -50%); }
.closing__te { font-family: var(--te-deco); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; color: var(--kumkum); }
.closing .display em { color: var(--kumkum); }

/* ---------- Footer ---------- */
.site-footer { background: var(--tam-deep); color: rgba(251, 246, 234, 0.75); overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.site-footer__logo { width: 180px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.site-footer__nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
.site-footer__nav a:hover { color: var(--turmeric); }
.site-footer__addr { font-size: 14px; text-align: right; }
.site-footer__word {
  position: relative; z-index: 2; padding: 0 var(--gutter);
  font-family: var(--display); font-variation-settings: 'SOFT' 100; font-size: clamp(80px, 19vw, 300px); font-weight: 600;
  line-height: 0.8; letter-spacing: -0.05em; color: var(--turmeric); text-align: center; margin-bottom: -0.1em;
}
.site-footer__word sup { font-size: 0.18em; letter-spacing: 0; vertical-align: top; color: var(--leaf); }
.site-footer__base { position: relative; z-index: 3; padding: 16px var(--gutter); background: var(--turmeric); color: var(--tam-deep); font-size: 13px; font-weight: 600; text-align: center; }
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer__addr { text-align: center; }
}

/* ---------- Motion states (only while GSAP is running) ---------- */
.motion [data-reveal] { opacity: 0; }
.motion [data-split] { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .hero__plate img, .chip { animation: none; }
  .band__track { animation-duration: 90s; }
}

/* ---------- Additions: real menu data ---------- */
.dish__meta { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.dish__meta .dish__tag { margin-top: 0; }
.dish__price { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--turmeric); }

.menu__switch {
  position: relative; z-index: 2; display: flex; width: max-content; margin: 0 auto 20px; padding: 5px;
  border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(78, 28, 14, 0.12);
}
.menu__switch button {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 26px; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--tam);
  transition: background-color 0.3s, color 0.3s;
}
.menu__switch button span { font-size: 15px; font-weight: 400; color: var(--leaf); }
.menu__switch button[aria-pressed='true'] { background: var(--turmeric); color: var(--tam-deep); }
.menu__switch button[aria-pressed='true'] span { color: var(--kumkum); }
.menu__pours { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 14px; color: rgba(34, 20, 12, 0.72); }
.menu__pours b { font-weight: 700; color: var(--kumkum); }
.menu__item--compact { padding: 14px 0; }

.thali__prices { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 600; color: var(--tam); }
.thali__prices > span { display: inline-flex; align-items: center; gap: 8px; }
.thali__prices b { font-family: var(--display); font-size: 22px; color: var(--kumkum); }

.bar__list { display: grid; width: 100%; max-width: 440px; }
.bar__list li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(246, 210, 122, 0.25); }
.bar__list b { font-family: var(--display); font-size: 20px; font-weight: 500; }
.bar__list i { font-size: 12px; font-style: normal; font-weight: 600; color: var(--leaf); padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; }
.bar__list span { margin-left: auto; font-family: var(--display); font-size: 19px; color: var(--turmeric); }
.mark.egg { color: #c9881b; }
.mark.egg::after { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.site-footer__addr a { color: var(--turmeric); font-weight: 600; text-decoration: none; }

/* thali: real food in the katoris */
.plate__rice, .katori { overflow: hidden; }
.plate__rice img, .katori img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; pointer-events: none;
}
.plate__rice img { filter: saturate(0.9) brightness(1.04); }
.katori::after {
  /* steel lip shading over the food */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), inset 0 6px 14px rgba(0, 0, 0, 0.35);
}
.plate__rice span, .katori b {
  position: relative; z-index: 1; padding: 2px 10px 1px; border-radius: 999px;
  background: rgba(34, 20, 12, 0.62); color: var(--rice); text-shadow: none; line-height: 1.5;
}
.katori--perugu b, .katori--appadam b { color: var(--rice); }
.plate__rice span { font-size: 14px; }
.katori--appadam { background: #e3c27e; }
