/* ==========================================================================
   KP Catering Services — page-level blocks
   Depends on main.css tokens. Loaded after main.css on every page.
   ========================================================================== */

/* ---------- 1. Home hero ----------
   The layout is the brand idea made structural: a deep sari-body panel meeting
   a food photograph along a vertical zari (korvai) seam.                     */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: var(--green-800);
  position: relative;
  isolation: isolate;
}

.hero__panel {
  padding: clamp(2.75rem, 2rem + 4.5vw, 6rem) clamp(1.5rem, 1rem + 3vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  color: var(--cream-50);
  position: relative;
  min-height: clamp(520px, 76vh, 760px);
}
/* Wrap the left panel content to the site grid on very wide screens */
.hero__panel > * { width: 100%; max-width: 34rem; margin-left: auto; }

.hero__title {
  font-size: var(--step-5);
  line-height: 0.98;
  color: var(--cream-50);
}
.hero__title em {
  font-style: normal;
  color: var(--gold-400);
  display: block;
}
.hero__tagline {
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--gold-400);
  line-height: 1.3;
}
.hero__text {
  color: rgba(251, 248, 240, 0.8);
  font-weight: 300;
  font-size: 1.03rem;
  max-width: 44ch;
}
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, 0.85);
  margin-top: 0.25rem;
}
.hero__phone strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gold-400);
  text-transform: none;
}
.hero__phone svg { width: 18px; height: 18px; color: var(--gold-500); }

.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--green-800) 0%, rgba(18, 58, 36, 0.45) 26%, rgba(18, 58, 36, 0.05) 62%);
}

/* The zari seam */
.hero__seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 13px;
  z-index: 3;
  background-image: var(--korvai);
  background-repeat: repeat-y;
  background-position: center;
  transform: rotate(180deg);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__panel { min-height: 0; padding-block: clamp(2.5rem, 2rem + 4vw, 4rem); order: 2; }
  .hero__panel > * { max-width: none; margin-left: 0; }
  .hero__media { order: 1; height: clamp(260px, 44vh, 400px); }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(18, 58, 36, 0.15) 40%, var(--green-800) 100%);
  }
  .hero__seam { display: none; }
}

/* Trust strip directly under the hero */
.trustbar {
  background: var(--green-950);
  border-top: 1px solid var(--line-dark);
}
.trustbar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.trustbar__item {
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.trustbar__item + .trustbar__item { box-shadow: -1px 0 0 var(--line-dark); }
.trustbar__k {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: var(--gold-400);
  line-height: 1;
}
.trustbar__v {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, 0.68);
}
@media (max-width: 640px) {
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .trustbar__item:nth-child(odd) { box-shadow: none; }
  .trustbar__item:nth-child(n + 3) { box-shadow: 0 -1px 0 var(--line-dark); }
  .trustbar__item:nth-child(4) { box-shadow: -1px 0 0 var(--line-dark), 0 -1px 0 var(--line-dark); }
}

/* ---------- 2. Inner page hero ---------- */
.pagehero {
  position: relative;
  background: var(--green-800);
  color: var(--cream-50);
  overflow: hidden;
  isolation: isolate;
}
.pagehero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 34, 19, 0.94) 12%, rgba(10, 34, 19, 0.72) 60%, rgba(10, 34, 19, 0.55) 100%);
}
.pagehero__inner {
  padding-block: clamp(3rem, 2.2rem + 4.5vw, 6.25rem);
  max-width: 60ch;
}
.pagehero h1 { color: var(--cream-50); margin-bottom: 1rem; }
.pagehero p { color: rgba(251, 248, 240, 0.82); font-weight: 300; font-size: var(--step-1); }
.pagehero .btn-row { margin-top: 1.9rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, 0.62);
  margin-bottom: 1.1rem;
}
.crumbs a:hover { color: var(--gold-400); }
.crumbs span { color: var(--gold-500); }

/* ---------- 3. Split content (About) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(1.75rem, 1.2rem + 3vw, 4rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
.split__body > * + * { margin-top: 1.1rem; }
.split__body ul { margin-top: 1.35rem; display: grid; gap: 0.7rem; }
.split__body li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.split__body li svg {
  width: 19px; height: 19px;
  flex: none;
  margin-top: 4px;
  color: var(--green-600);
}
.section--maroon .split__body li svg,
.section--leaf .split__body li svg { color: var(--gold-400); }
.split .btn-row { margin-top: 1.9rem; }

@media (max-width: 860px) {
  .split--wide-left { grid-template-columns: 1fr; }
}

/* Stacked image pair with a gold offset frame */
.framestack { position: relative; }
.framestack img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.framestack::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.framestack__inset {
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 46%;
  border: 6px solid var(--cream-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.framestack__inset img { aspect-ratio: 1 / 1; box-shadow: none; }
@media (max-width: 620px) {
  .framestack::before { inset: 12px -12px -12px 12px; }
  .framestack__inset { width: 42%; right: -8px; bottom: -18px; border-width: 4px; }
}

/* Pull-quote badge for founders */
.founders {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--cream-200);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.founders__names {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--green-800);
}
.founders__role {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-top: 0.3rem;
}

/* ---------- 4. Process — a real sequence, so it is numbered ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2.1rem 1.5rem 1.9rem;
  border-top: 2px solid var(--line-dark);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.9rem;
  left: 1.5rem;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--green-950);
  background: var(--gold-500);
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.step h3 { margin-bottom: 0.5rem; color: var(--cream-50); }
.step p { color: rgba(251, 248, 240, 0.75); font-size: 0.95rem; }

/* ---------- 5. Signature — the vazhai ilai (banana leaf) ----------
   The one place the site spends its boldness. A virundhu sappadu is a
   composition: the leaf goes down tip-left and every item has a fixed seat,
   which is real information a Tamil family already knows. So the leaf is drawn
   properly — gold midrib, hairline edge, deep green — and the positions are
   the navigation, not decoration laid over a photograph. */
.leaf-block {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) { .leaf-block { grid-template-columns: 1fr; } }

.leaf-stage {
  position: relative;
  width: 100%;
}
.leaf-stage::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  background: radial-gradient(ellipse at 50% 50%, rgba(78, 143, 82, 0.2), transparent 68%);
  pointer-events: none;
}
.leaf-stage svg { width: 100%; height: auto; display: block; position: relative; }

/* Markers are gold hairlines on the leaf, the way a thali ring sits on it. */
.leaf-spot {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(8, 26, 16, 0.5);
  backdrop-filter: blur(3px);
  color: var(--gold-200);
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t),
              transform var(--t);
}
.leaf-spot:hover { border-color: var(--gold-400); transform: translate(-50%, -50%) scale(1.08); }
.leaf-spot[aria-selected="true"] {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--green-950);
  transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 720px) {
  .leaf-spot { width: 1.95rem; height: 1.95rem; font-size: 0.7rem; }
}
@media (max-width: 470px) {
  .leaf-spot { width: 1.6rem; height: 1.6rem; font-size: 0.62rem; }
}

/* The reading panel: a hairline frame, no fill, no card. */
.leaf-detail {
  border-top: 1px solid var(--gold-500);
  padding: 1.9rem 0 0;
  min-height: 250px;
}
.leaf-detail__no {
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.leaf-detail h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 90, "SOFT" 34, "WONK" 1;
  font-weight: 400;
  font-size: var(--step-2);
  color: var(--cream-50);
  margin: 0.75rem 0 0.2rem;
  letter-spacing: -0.012em;
}
.leaf-detail__ta {
  font-family: var(--tamil);
  font-size: 0.98rem;
  color: var(--gold-400);
  margin-bottom: 1rem;
}
.leaf-detail p { color: rgba(250, 246, 236, 0.74); font-size: 0.96rem; max-width: 42ch; }
.leaf-detail ul {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
/* Dishes read as a list of names separated by hairlines, not as pills. */
.leaf-detail li {
  font-size: 0.88rem;
  color: var(--cream-100);
  position: relative;
}
.leaf-detail li + li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.45em;
  bottom: 0.3em;
  width: 1px;
  background: var(--line-dark);
}
.leaf-hint {
  margin-top: 1.4rem;
  font-size: var(--step--2);
  letter-spacing: 0.02em;
  color: rgba(250, 246, 236, 0.45);
}

/* ---------- 6. Menu tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.tab {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.tab:hover { border-color: var(--green-600); color: var(--green-700); }
.tab[aria-selected="true"] {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--cream-50);
}

.dishgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: var(--gap);
}
.dishcard {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
}
.dishcard h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-1);
  color: var(--green-800);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.dishcard h3 span {
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  white-space: nowrap;
}
.dishcard li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding: 0.3rem 0 0.3rem 1.15rem;
  position: relative;
}
.dishcard li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}

.note {
  margin-top: 2.25rem;
  padding: 1.4rem 1.6rem;
  background: var(--green-900);
  color: var(--cream-100);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  justify-content: space-between;
}
.note p { max-width: 62ch; font-size: 0.98rem; }
.note strong { color: var(--gold-400); }

/* ---------- 7. Gallery ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.filter:hover { border-color: var(--green-600); color: var(--green-700); }
.filter[aria-pressed="true"] {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--cream-50);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  grid-auto-rows: 240px;
  gap: clamp(0.9rem, 0.5rem + 1vw, 1.5rem);
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: var(--cream-300);
}
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; }
@media (max-width: 620px) {
  .shot--wide { grid-column: span 1; }
  .gallery { grid-auto-rows: 165px; }
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.shot:hover img { transform: scale(1.07); }
.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(10, 34, 19, 0.88));
  color: var(--cream-50);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: left;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.shot:hover .shot__cap,
.shot:focus-visible .shot__cap { opacity: 1; transform: none; }
.shot.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 26, 15, 0.95);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lightbox__cap {
  margin-top: 1rem;
  text-align: center;
  color: var(--gold-400);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251, 248, 240, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream-50);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__btn:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__prev { left: clamp(0.75rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(0.75rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__close { top: clamp(0.75rem, 3vw, 2rem); right: clamp(0.75rem, 3vw, 2rem); }

/* ---------- 8. Testimonials ---------- */
.quotes {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
/* A testimonial is somebody talking. Set it like speech — large, in the
   display face, under a hairline — not like a product card with a badge. */
.quote {
  flex: 0 0 min(430px, 84vw);
  scroll-snap-align: start;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--gold-500);
  border-radius: 0;
  padding: 1.5rem 1.9rem 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.quote p {
  font-family: var(--display);
  font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.46;
  letter-spacing: -0.008em;
  color: var(--ink);
  flex: 1;
}
.quote__stars { display: flex; gap: 3px; color: var(--gold-500); }
.quote__stars svg { width: 13px; height: 13px; }
.quote__who {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
/* The initial disc said nothing the name does not already say. */
.quote__av { display: none; }
.quote__name {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
.quote__meta { display: block; font-size: 0.86rem; color: var(--muted); }

.carousel-nav { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.carousel-nav button {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-600);
  border-radius: 0;
  background: transparent;
  color: var(--green-700);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.carousel-nav button:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--cream-50);
}
.carousel-nav svg { width: 18px; height: 18px; }

.placeholder-flag {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px dashed var(--gold-700);
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-700);
}

/* ---------- 9. Enquiry form ---------- */
.formwrap {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--gold-500);
  border-radius: 0;
  padding: clamp(2rem, 1.4rem + 2vw, 3.25rem) 0 0;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.field label .req { color: var(--green-600); }
/* A ruled line to write on, not a grey box to fill in. */
.field input,
.field select,
.field textarea {
  padding: 0.65rem 0 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t);
  width: 100%;
}
.field textarea { min-height: 112px; resize: vertical; border-bottom: 1px solid var(--line); }
.field select { cursor: pointer; appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b60' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 17px;
  padding-right: 2.4rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-500);
  border-bottom-width: 2px;
  padding-bottom: calc(0.6rem - 1px);
}
.field .err {
  font-size: 0.79rem;
  font-weight: 600;
  color: #b3261e;
  min-height: 0;
  display: none;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #b3261e; background: #fdf4f3; }
.field.is-invalid .err { display: block; }

.radiorow { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radiorow label {
  position: relative;
  padding: 0.62rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-transform: none;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.radiorow input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.radiorow label:has(input:checked) {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--cream-50);
}
.radiorow label:has(input:focus-visible) { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.form-foot {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.form-foot small { color: var(--muted); font-size: 0.83rem; max-width: 42ch; }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(1.75rem, 1.4rem + 2vw, 3rem) 1.25rem;
}
.form-success.is-shown { display: block; }
.form-success__tick {
  width: 68px; height: 68px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-700);
  color: var(--cream-50);
}
.form-success__tick svg { width: 32px; height: 32px; }
.form-success h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  color: var(--green-800);
  margin-bottom: 0.7rem;
}
.form-success p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 1.6rem; }
.formwrap.is-done .formgrid,
.formwrap.is-done .form-foot,
.formwrap.is-done .form-intro { display: none; }

/* ---------- 10. Contact ---------- */
.contactcard {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.6rem 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
}
.contactcard__icon {
  width: 34px; height: 34px;
  border-radius: 0;
  display: grid; place-items: start;
  background: transparent;
  color: var(--gold-600);
  margin-bottom: 0.7rem;
}
.contactcard__icon svg { width: 22px; height: 22px; }
.contactcard h3 { font-size: 1.02rem; }
.contactcard p { color: var(--muted); font-size: 0.93rem; }
.contactcard strong {
  font-family: var(--display);
  font-variation-settings: "opsz" 40, "SOFT" 28, "WONK" 0;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--green-800);
  letter-spacing: -0.01em;
}
.contactcard .link-arrow { margin-top: auto; padding-top: 0.9rem; align-self: flex-start; }

.hours { border-top: 1px solid var(--line); margin-top: 0.5rem; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.hours span:first-child { color: var(--ink-soft); font-weight: 600; }
.hours span:last-child { color: var(--muted); }

.mapframe {
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--cream-200);
}
.mapframe iframe { width: 100%; height: clamp(300px, 42vh, 440px); border: 0; display: block; }

/* ---------- 11. Closing CTA band ---------- */
.ctaband { text-align: center; }
.ctaband h2 { max-width: 20ch; margin: 0 auto 1.1rem; }
.ctaband p { margin: 0 auto 2rem; max-width: 56ch; }
.ctaband .btn-row { justify-content: center; }

/* ---------- 12. Service page menu preview ---------- */
.pricecard {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pricecard__head {
  background: var(--green-800);
  color: var(--cream-50);
  padding: 1.35rem 1.5rem;
}
.pricecard__head h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-1);
  color: var(--cream-50);
}
.pricecard__head p {
  font-size: 0.82rem;
  color: var(--gold-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.pricecard__body { padding: 1.5rem; flex: 1; }
.pricecard__body li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding: 0.34rem 0 0.34rem 1.4rem;
  position: relative;
}
.pricecard__body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 9px; height: 5px;
  border-left: 1.8px solid var(--green-600);
  border-bottom: 1.8px solid var(--green-600);
  transform: rotate(-45deg);
}
.pricecard__foot { padding: 0 1.5rem 1.5rem; }

/* ---------- 13. Misc ---------- */
.tagrow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tagrow span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.34rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: var(--cream-50);
}
.section--maroon .tagrow span,
.section--leaf .tagrow span {
  border-color: var(--line-dark);
  background: rgba(0, 0, 0, 0.16);
  color: var(--cream-100);
}

/* ==========================================================================
   14. Sri RR-style home layout: hero slider, service tiles, menu cards
   ========================================================================== */

/* ---- Hero slider ---- */
.slider {
  position: relative;
  height: clamp(460px, 72vh, 680px);
  overflow: hidden;
  background: var(--green-950);
  isolation: isolate;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.slide.is-active img { transform: scale(1); }
/* The scrim runs left-to-right, because the copy sits on the left. A top-down
   scrim over left-aligned text darkens the wrong half of the picture. */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(8, 26, 16, 0.9) 0%, rgba(8, 26, 16, 0.72) 38%, rgba(8, 26, 16, 0.3) 72%, rgba(8, 26, 16, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 26, 16, 0.45) 0%, transparent 28%);
}

.slider__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: center;
  justify-items: start;
  text-align: left;
  padding-block: 3rem 5rem;
  padding-inline: max(calc((100vw - var(--wrap)) / 2), 4vw);
  pointer-events: none;
}
/* One text panel per slide, stacked in the same grid cell and cross-faded
   with the image behind it. */
.slider__copy {
  grid-area: 1 / 1;
  pointer-events: auto;
  max-width: 34rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease),
              visibility 0s linear 0.8s;
}
.slider__copy.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.8s var(--ease) 0.2s, transform 0.8s var(--ease) 0.2s,
              visibility 0s linear;
}
/* Tamil needs a face that actually has the glyphs, and a little more leading. */
.slider__copy--ta .slider__title {
  font-family: var(--tamil);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.2rem + 2.8vw, 3.5rem);
  line-height: 1.25;
}
.slider__copy--ta .slider__sub {
  font-family: var(--tamil);
  font-weight: 400;
  line-height: 1.85;
  max-width: 42rem;
}
.slider__copy--ta .btn { font-family: var(--tamil); letter-spacing: 0; }
.slider__title {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 34, "WONK" 1;
  font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.024em;
  color: var(--cream-50);
}
.slider__sub {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: rgba(250, 246, 236, 0.82);
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem);
  font-weight: 300;
  line-height: 1.65;
}
/* A gold hairline between the name and the sentence, the only rule in the hero. */
.slider__copy .slider__sub::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold-500);
  margin-bottom: 1.35rem;
}
.slider .btn-row { justify-content: flex-start; margin-top: 2.4rem; }

@media (max-width: 760px) {
  .slider__content { padding-inline: 6vw; }
  /* Narrow screens give the copy the full width, so the sideways scrim no
     longer shelters it — darken from the bottom instead. */
  .slide::after {
    background: linear-gradient(180deg, rgba(8, 26, 16, 0.5) 0%, rgba(8, 26, 16, 0.55) 30%, rgba(8, 26, 16, 0.86) 100%);
  }
}

/* Paired at the bottom right, out of the headline's way. Centred side arrows
   land straight on top of left-aligned copy. */
.slider__nav {
  position: absolute;
  bottom: 2rem;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 0;
  background: transparent;
  color: var(--cream-100);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.slider__nav:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }
.slider__nav svg { width: 17px; height: 17px; }
.slider__prev { right: calc(max(calc((100vw - var(--wrap)) / 2), 4vw) + 46px); border-right-width: 0; }
.slider__next { right: max(calc((100vw - var(--wrap)) / 2), 4vw); }
@media (max-width: 760px) {
  .slider__prev { right: calc(6vw + 46px); }
  .slider__next { right: 6vw; }
}

.slider__dots {
  position: absolute;
  left: max(calc((100vw - var(--wrap)) / 2), 4vw);
  bottom: 2.2rem;
  z-index: 3;
  display: flex;
  gap: 0.7rem;
}
@media (max-width: 760px) { .slider__dots { left: 6vw; } }
/* Rules rather than dots: they read as a measure of how far through you are. */
.slider__dots button {
  width: 34px; height: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(250, 246, 236, 0.32);
  cursor: pointer;
  transition: background var(--t), width var(--t);
}
.slider__dots button[aria-current="true"] { background: var(--gold-500); width: 56px; }
@media (max-width: 620px) {
  .slider__nav { display: none; }
}

/* ---- Service tiles ----
   Twelve photographs each wearing a dark gradient band read as a stock-photo
   contact sheet. Here the picture stays clean and the name sits under it on
   the page's own ground, the way a caption sits under a plate. */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.1rem, 0.6rem + 1.4vw, 2.2rem) clamp(1rem, 0.5rem + 1.2vw, 1.8rem);
}
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px)  { .tiles { grid-template-columns: minmax(0, 1fr); } }

.tile {
  position: relative;
  display: block;
  background: transparent;
}
.tile__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-300);
  position: relative;
}
.tile__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.05); }
/* A gold hairline draws along the top of the picture on hover. */
.tile__media::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.55s var(--ease);
}
.tile:hover .tile__media::after { width: 100%; }

.tile__label {
  padding: 0.95rem 0 0;
  font-family: var(--display);
  font-variation-settings: "opsz" 30, "SOFT" 22, "WONK" 0;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.25;
  color: var(--ink);
  text-align: left;
}
.tile__label span {
  display: block;
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-top: 0.38rem;
}
.section--rice-alt .tile__label { color: var(--ink); }

/* ---- Menu panels ----
   Two tall panels sharing the full measure rather than two small rounded
   boxes floating in the middle of a green field. */
.menucards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.4vw, 2rem);
  max-width: none;
  margin-inline: 0;
}
@media (max-width: 700px) { .menucards { grid-template-columns: minmax(0, 1fr); } }

.menucard {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: clamp(340px, 42vh, 460px);
  display: grid;
  align-content: end;
  text-align: left;
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  isolation: isolate;
}
.menucard img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.menucard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 26, 16, 0.2) 0%, rgba(8, 26, 16, 0.78) 42%, rgba(8, 26, 16, 0.94) 100%);
}
.menucard:hover img { transform: scale(1.05); }
.menucard h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 90, "SOFT" 34, "WONK" 1;
  font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.6rem);
  letter-spacing: -0.018em;
  color: var(--cream-50);
}
.menucard h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold-500);
  margin-top: 1rem;
}
.menucard p {
  color: rgba(250, 246, 236, 0.82);
  margin: 1rem 0 1.8rem;
  max-width: 34ch;
  font-size: 0.96rem;
}
.menucard .btn { justify-self: start; }

/* ---- Full-bleed map ---- */
.mapfull iframe {
  display: block;
  width: 100%;
  height: clamp(340px, 52vh, 560px);
  border: 0;
  filter: grayscale(0.18);
}

/* ---- Compact enquiry form used on the home page ---- */
.enquiry-compact .formgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) {
  .enquiry-compact .formgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Three pillars band, lifted from the printed card ---- */
.pillars {
  background: var(--green-950);
  border-top: 2px solid var(--gold-500);
  border-bottom: 1px solid var(--line-dark);
}
.pillars__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.pillar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.15rem 1rem;
  text-align: left;
}
.pillar + .pillar { box-shadow: -1px 0 0 var(--line-dark); }
.pillar svg { width: 30px; height: 30px; flex: none; color: var(--gold-500); }
.pillar span {
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-100);
  line-height: 1.25;
}
@media (max-width: 640px) {
  .pillars__inner { grid-template-columns: minmax(0, 1fr); }
  .pillar { justify-content: flex-start; padding-inline: 1.25rem; }
  .pillar + .pillar { box-shadow: 0 -1px 0 var(--line-dark); }
}

/* Tamil brand line under the slider title */
.slider__tamil {
  font-family: var(--tamil);
  font-weight: 500;
  font-size: clamp(1rem, 0.88rem + 0.55vw, 1.32rem);
  color: var(--gold-400);
  margin-top: 0.7rem;
  letter-spacing: 0.01em;
}

/* ---- "Our Location" band — centred address, phone and alternate contact ---- */
.locationband {
  position: relative;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--gold-500);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  padding: clamp(2.75rem, 2rem + 3.4vw, 5rem) clamp(1.25rem, 0.6rem + 3vw, 3rem);
}
.locationband__inner {
  position: relative;
  z-index: 1;
  max-width: 44ch;
  margin-inline: auto;
  text-align: center;
}
.locationband .eyebrow { color: var(--gold-700); letter-spacing: 0.28em; justify-content: center; }
.locationband .eyebrow::before { display: none; }
.locationband__address {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 34, "WONK" 1;
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.22;
  color: var(--ink);
  text-wrap: balance;
}
.locationband__phone {
  display: inline-block;
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 34, "WONK" 1;
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--green-600);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t);
}
.locationband__phone:hover,
.locationband__phone:focus-visible { color: var(--green-800); }
.locationband__sep {
  margin-block: clamp(1.4rem, 1rem + 1.4vw, 2.4rem) 0;
}
.locationband__sep .eyebrow { margin-bottom: 0.9rem; }
.locationband__or {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  margin-block: 1.1rem 0.9rem;
}
.locationband__alt {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--green-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), color var(--t);
}
.locationband__alt:hover,
.locationband__alt:focus-visible { color: var(--green-800); border-bottom-color: currentColor; }
/* Decorative dish, tucked into the corner like a plated garnish */
.locationband__dish {
  position: absolute;
  right: clamp(-4rem, -6vw, -1.5rem);
  bottom: clamp(-4rem, -6vw, -1.5rem);
  width: clamp(170px, 22vw, 290px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 760px) {
  .locationband__dish { display: none; }
}

/* ---- Delivery status shown under the enquiry thank-you message ---- */
.form-success__mail {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.9rem;
  min-height: 1.2em;
  color: var(--muted);
}
.form-success__mail:empty { display: none; }
.form-success__mail.is-ok { color: var(--green-600); }
.form-success__mail.is-warn { color: var(--danger); }

/* ==========================================================================
   Opening sequence (home page only)

   Timeline, in seconds:
     0.00  the artwork rises out of the dark and settles
     0.95  a point of light catches the tip of the vel
     1.30  the name grows out of that point, gold at first, then steady
     2.70  it holds
     3.45  the whole curtain lifts and the home page is there
     4.15  finished — main.js then removes the node

   Everything is a CSS animation on purpose: with JavaScript off the overlay
   still clears itself, so the site can never be left behind a dead curtain.
   ========================================================================== */
.splash {
  --vel-x: 58.6%;   /* the tip of the vel, as a position on the picture */
  --vel-y: 12.8%;   /* overridden from splash.vel in site-config.js */
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green-950);
  animation: splash-out 0.7s var(--ease) 3.45s both;
}
.splash__deity,
.splash__brand { grid-area: 1 / 1; }

/* ---- 1. The artwork ---- */
.splash__deity {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: splash-deity 3.5s var(--ease) both;
}
/* Blurred fill behind the framed picture — a portrait image on a landscape
   screen would otherwise be cropped straight through the subject. */
.splash__backdrop {
  position: absolute;
  inset: -4%;
  background-image: var(--splash-art, none);
  background-size: cover;
  background-position: center;
  filter: blur(42px) saturate(1.15) brightness(0.55);
  transform: scale(1.08);
}
.splash__deity::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, transparent 42%, rgba(8, 26, 16, 0.55) 82%, rgba(8, 26, 16, 0.94) 100%);
  pointer-events: none;
}

/* The picture keeps its own proportions, so a percentage inside this box is
   always the same spot on the artwork however the window is shaped. */
/* "Contain", done by hand. aspect-ratio plus max-width/max-height does not
   keep the ratio once one axis is clamped, which left the picture overflowing
   its box on a phone. Deriving the height from both the viewport height and
   the viewport width divided by the ratio always fits, on any screen. */
.splash__frame {
  position: relative;
  --ar: var(--splash-ar, 1.7768);
  aspect-ratio: var(--ar);
  /* Viewport units, not 100%: a percentage height inside a centred grid has no
     definite box to resolve against, so min() silently took the wrong branch
     and a portrait picture overflowed the screen. The splash is a full-viewport
     overlay, so vh and the frame's own height are the same thing anyway. */
  height: min(100vh, calc(100vw / var(--ar)));
  height: min(100dvh, calc(100vw / var(--ar)));
  width: auto;
  margin: auto;
}
.splash__frame > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  /* Blurring the whole .splash__deity would blur the title card with it, so
     the softening is applied to the picture alone. The radius is a variable
     because a blur is measured against rendered pixels: the same 6.5px that
     reads as a soft focus on a desktop frame obliterates a phone-sized one. */
  --art-blur: 6.5px;
  --art-blur-mid: 5.5px;
  animation: splash-art 3.5s var(--ease) both;
}
/* A hairline around the picture, so a tall screen reads as a framed devotional
   image on a dark wall rather than as a letterboxed video. */
.splash__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 80px -10px rgba(8, 26, 16, 0.9);
  pointer-events: none;
  animation: splash-scrim 1.2s var(--ease) 0.5s both;
}
/* The name needs something to read against, but a gradient across the whole
   bottom of the frame would wash out whatever the artwork has down there —
   on this one, the gold "ஓம் சரவணபவ". So the shadow is a soft halo that sits
   only behind the name, following the same --cap-y the name is placed by. */
.splash__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 72% 22% at 50% calc(100% - var(--cap-y, 4.5%) - 4%),
    rgba(8, 26, 16, 0.5) 0%,
    rgba(8, 26, 16, 0.28) 54%,
    transparent 80%);
  pointer-events: none;
  animation: splash-scrim 1s var(--ease) 1.15s both;
}
@keyframes splash-scrim { from { opacity: 0; } to { opacity: 1; } }

/* ---- 2. The light on the vel ---- */
.splash__spark {
  position: absolute;
  left: var(--vel-x);
  top: var(--vel-y);
  width: 34vmin;
  height: 34vmin;
  margin: -17vmin 0 0 -17vmin;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
  background:
    radial-gradient(circle, rgba(255, 246, 214, 0.95) 0%, rgba(224, 197, 108, 0.55) 16%, rgba(212, 175, 55, 0.22) 34%, transparent 66%);
  animation: splash-spark 2.1s var(--ease) 0.95s both;
}

/* ---- 3. The title card, growing out of that point ----
   The card shares the picture's box and is scaled about the vel tip, so at the
   start of the animation it is collapsed into that point and genuinely unfolds
   from the blade. As it arrives the picture behind it blurs, which is what
   makes the name legible: the lettering itself stays sharp and does its work
   by contrast, not by glowing. */
.splash__emerge {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  justify-items: center;
  text-align: center;
  padding: 0 5% var(--cap-y, 4.5%);
  z-index: 3;
  transform-origin: var(--vel-x) var(--vel-y);
  animation: splash-emerge 1.45s var(--ease) 1.3s both;
  pointer-events: none;
}

.titlecard {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(1.4rem, 0.9rem + 2vw, 2.6rem) clamp(1.8rem, 1rem + 4vw, 4.4rem);
  background: rgba(7, 22, 14, 0.74);
  border: 1px solid rgba(212, 175, 55, 0.62);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.9);
}
@supports (backdrop-filter: blur(1px)) {
  .titlecard {
    background: rgba(7, 22, 14, 0.56);
    backdrop-filter: blur(14px) saturate(1.1);
  }
}
/* The second rule, set in from the first — the detail that makes a plate read
   as engraved rather than as a box with a border. */
.titlecard::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 1px;
  pointer-events: none;
}

/* The emblem rides in on the same card, scaled out of the vel with it. */
.titlecard__mark {
  width: clamp(74px, 8.4vw, 132px);
  height: auto;
  display: block;
  background: transparent;
  margin-bottom: clamp(0.65rem, 0.4rem + 0.7vw, 1.05rem);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
  animation: splash-mark-in 1s var(--ease) 1.55s both;
}
@keyframes splash-mark-in {
  from { opacity: 0; transform: translateY(8px) scale(0.86); }
  to   { opacity: 1; transform: none; }
}

.splash__emerge__name {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 34, "WONK" 1;
  font-weight: 500;
  font-size: clamp(1.75rem, 0.9rem + 3.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: #fffdf7;
  animation: splash-glow 1.5s var(--ease) 1.45s both;
}
.splash__emerge__rule {
  width: clamp(70px, 9vw, 120px);
  height: 1px;
  background: var(--gold-500);
  margin-block: clamp(0.8rem, 0.5rem + 0.8vw, 1.25rem) clamp(0.6rem, 0.4rem + 0.6vw, 0.95rem);
  transform-origin: center;
  animation: splash-rule 0.8s var(--ease) 2.15s both;
}
.splash__emerge__tag {
  font-family: var(--tamil);
  font-weight: 500;
  font-size: clamp(0.88rem, 0.76rem + 0.6vw, 1.22rem);
  line-height: 1.5;
  color: var(--gold-400);
}

@keyframes splash-deity {
  0%   { opacity: 0; transform: scale(1.05); }
  22%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
/* The picture sharpens on the way in, then softens again as the card lands. */
@keyframes splash-art {
  0%   { filter: blur(14px) saturate(1.2) brightness(0.72); transform: scale(1.05); }
  24%  { filter: blur(0) saturate(1) brightness(1); }
  46%  { filter: blur(0) saturate(1) brightness(1); transform: scale(1); }
  /* Enough softening that the card is unmistakably the thing to read, and not
     so much that Murugan stops being recognisable behind it. */
  70%  { filter: blur(var(--art-blur-mid)) saturate(0.98) brightness(0.78); }
  100% { filter: blur(var(--art-blur)) saturate(0.96) brightness(0.76); transform: scale(1.03); }
}
@keyframes splash-spark {
  0%   { opacity: 0; transform: scale(0.1); }
  26%  { opacity: 1; transform: scale(1.05); }
  52%  { opacity: 0.6; transform: scale(0.82); }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes splash-emerge {
  0%   { opacity: 0; transform: scale(0.014); }
  16%  { opacity: 1; }
  74%  { transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}
/* Gold while the letters arrive, then nothing: at rest the name is sharp and
   reads by contrast against the card, which is what was asked for. */
@keyframes splash-glow {
  0% {
    color: var(--gold-200);
    text-shadow: 0 0 0.45em rgba(255, 244, 206, 0.9), 0 0 1.3em rgba(212, 175, 55, 0.85);
  }
  55% {
    color: #fffaf0;
    text-shadow: 0 0 0.2em rgba(255, 244, 206, 0.45), 0 0 0.8em rgba(212, 175, 55, 0.35);
  }
  100% {
    color: #fffdf7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  }
}
@keyframes splash-rule {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes splash-out {
  0%   { opacity: 1; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ---- The fallback lockup, used only when there is no artwork ---- */
.splash__brand {
  position: relative;
  z-index: 2;
  display: none;
  justify-items: center;
  text-align: center;
  padding-inline: 1.5rem;
}
.splash__mark {
  width: clamp(84px, 11vw, 132px);
  height: auto;
  display: block;
  margin-bottom: 1.1rem;
  background: transparent;
  filter: drop-shadow(0 10px 32px rgba(212, 175, 55, 0.35));
}
.splash__name {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 34, "WONK" 1;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.1;
  color: var(--cream-50);
}
.splash__rule {
  width: clamp(70px, 9vw, 120px);
  height: 1px;
  background: var(--gold-500);
  margin-block: 0.95rem 0.8rem;
}
.splash__tag {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-400);
}

/* The artwork is missing or failed to load — show the mark instead. */
.splash.is-markonly { animation-delay: 1.6s; }
.splash.is-markonly .splash__deity { display: none; }
.splash.is-markonly .splash__brand {
  display: grid;
  animation: splash-emerge-plain 1.1s var(--ease) 0.2s both;
}
@keyframes splash-emerge-plain {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

/* Skipped by a tap, a key or a scroll — get out of the way quickly. */
.splash.is-skipped,
.splash.is-skipped * { animation: none !important; }
.splash.is-skipped {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s linear, visibility 0s linear 0.3s;
}

/* Keep the page still while the curtain is up (added by main.js). */
.has-splash, .has-splash body { overflow: hidden; }

@media (max-width: 760px) {
  .splash__frame > img { --art-blur: 3.6px; --art-blur-mid: 3px; }
  /* Cropping to fill on a phone was tried and reverted: it pushed the tip of
     the vel off the side of the screen, and the whole point is that the name
     comes off the blade. The picture stays whole. */
  .splash__emerge { padding-bottom: calc(var(--cap-y, 4.5%) + 2%); }
  .splash__spark { width: 46vmin; height: 46vmin; margin: -23vmin 0 0 -23vmin; }
}

/* A short, motionless cross-fade for anyone who asked for less movement. */
@media (prefers-reduced-motion: reduce) {
  .splash { animation: splash-out 0.4s linear 2s both; }
  .splash__deity { animation: splash-fade-calm 2.4s linear both; }
  .splash__spark { animation: none; opacity: 0; }
  .splash__emerge { animation: splash-fade-in-calm 0.6s linear 1.1s both; transform: none; }
  .splash__emerge__name,
  .splash__emerge__rule { animation: none; }
  .splash__emerge__name { color: var(--cream-50); text-shadow: 0 2px 10px rgba(8, 26, 16, 0.75); }
  .splash.is-markonly .splash__brand { animation: splash-fade-in-calm 0.5s linear both; }
  @keyframes splash-fade-calm {
    0% { opacity: 0; } 18%, 86% { opacity: 1; } 100% { opacity: 1; }
  }
  @keyframes splash-fade-in-calm { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- Header mark that alternates with the deity (home page) ----
   The markup ships on every page so tools/sync_partials.py stays happy; only
   body.is-home runs the loop, so inner pages keep a plain, still logo. */
.brand__swap {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}
.brand__swap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
}
.brand__swap__alt { opacity: 0; }

.is-home .brand__swap img { animation: brandswap 8s var(--ease) infinite; }
.is-home .brand__swap img.brand__swap__alt { animation-name: brandswap-alt; }

/* 8s loop: logo held ~3s, a half-second dissolve, deity held ~3s, dissolve back. */
@keyframes brandswap {
  0%, 40%  { opacity: 1; transform: scale(1); }
  47%, 90% { opacity: 0; transform: scale(1.12); }
  97%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes brandswap-alt {
  0%, 40%  { opacity: 0; transform: scale(1.12); }
  47%, 90% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .is-home .brand__swap img { animation: none; }
  .is-home .brand__swap img.brand__swap__alt { opacity: 0; }
}

/* ---- Home intro: type on the left, checkable facts on the right ----
   The old block was a centred paragraph with two buttons under it, which is
   what every catering site does. Setting the claim against a short list of
   facts makes the claim feel answerable rather than advertised. */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.intro__body h2 { max-width: 18ch; }
.intro__body .lede { margin-top: 1.6rem; }
.intro__body p + p { margin-top: 1.1rem; color: var(--muted); max-width: 54ch; }
.intro__body .btn-row { margin-top: 2.4rem; }

.intro__facts { border-top: 1px solid var(--gold-500); }
.intro__facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.intro__facts dt {
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-700);
  padding-top: 0.25em;
}
.intro__facts dd {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 24, "WONK" 0;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro__facts { margin-top: 1rem; }
}

/* A note to whoever maintains the site, not a design element. */
.placeholder-flag {
  display: inline-block;
  margin: -1.6rem 0 2.4rem;
  font-size: var(--step--2);
  letter-spacing: 0.02em;
  color: var(--gold-700);
  border-left: 2px solid var(--gold-500);
  padding-left: 0.7rem;
}

/* The section head is a grid; a stray child would otherwise land in the
   lede's column and sit at the wrong baseline. */
.section-head > * { min-width: 0; }

/* ---- Full-menu downloads ----
   Two choices, each one its own download link. A radio group plus a separate
   button would add a step and a failure mode for nothing: picking the menu and
   getting the menu are the same decision. */
.menudl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.4vw, 2rem);
}
@media (max-width: 720px) { .menudl { grid-template-columns: minmax(0, 1fr); } }

.menudl__card {
  display: grid;
  gap: 0.45rem;
  padding: 1.6rem 1.6rem 1.5rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-top: 1px solid var(--gold-500);
  border-radius: var(--radius);
  position: relative;
  transition: border-color var(--t), background var(--t);
}
.menudl__card:hover,
.menudl__card:focus-visible { border-color: var(--gold-500); background: #fff; }

.menudl__kind {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "SOFT" 32, "WONK" 1;
  font-weight: 500;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.016em;
  color: var(--ink);
}
.menudl__ta {
  font-family: var(--tamil);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--green-700);
}
.menudl__meta {
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}
/* The whole card is the link, so this is a cue rather than a second control. */
.menudl__action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--body);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-800);
}
.menudl__action svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease); }
.menudl__card:hover .menudl__action svg { transform: translateY(3px); }
