/* அம்மிக்கல்லு மசாலா — Tamil-only, icon-led, compact.
   Palette from the packaging: cream card, maroon arc, black stone. */
:root {
  --paper: #f3ebdc;
  --paper-2: #ebe0cc;
  --card: #fbf6ec;
  --ink: #1b1613;
  --ink-2: #4a413a;
  --ink-3: #7d7166;
  --rule: rgba(27, 22, 19, 0.14);
  --maroon: #7a1a12;
  --maroon-2: #9a2a1c;
  --gold: #b8862b;

  --display: "Anek Tamil", "Noto Sans Tamil", sans-serif;          /* headings: Tamil + matching Latin */
  --text: "Hind Madurai", "Noto Sans Tamil", system-ui, sans-serif; /* body: Tamil + matching Latin */
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4.5vw, 64px);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 64px; }                 /* menu links land below the fixed header */
body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-intro { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
main { position: relative; z-index: 2; }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.35; letter-spacing: 0; word-spacing: 0.06em; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.3rem); }
h3 { font-size: 1.08rem; }

/* ---------- line icons (black & white) ---------- */
.ti { line-height: 1; display: inline-block; vertical-align: -0.12em; }
.ti-ammi::before {                                   /* custom ammi + kuzhavi icon in the same line style */
  content: ""; display: inline-block; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 1.5 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='12.5' width='19' height='7' rx='1.5'/%3E%3Crect x='6' y='7.5' width='12' height='5' rx='2.5'/%3E%3Cpath d='M9.5 10h5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 1.5 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='12.5' width='19' height='7' rx='1.5'/%3E%3Crect x='6' y='7.5' width='12' height='5' rx='2.5'/%3E%3Cpath d='M9.5 10h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chips .ti, .pcard__tag .ti, .rcard__meta .ti, .cap__kicker .ti { font-size: 1.05em; color: var(--ink); }
.btn .ti { font-size: 1.2em; }

/* ---------- English lines, styled like the red English on the packs ---------- */
.en { display: block; font-family: var(--text); font-weight: 700; color: var(--maroon); letter-spacing: 0.01em; line-height: 1.35; }
.en sup { font-size: 0.5em; margin-left: 2px; }
.en--hero { font-size: clamp(1.25rem, 2.1vw, 1.7rem); margin: -6px 0 14px; }
.cap h2 + .en { font-size: 1.08rem; margin: -6px 0 12px; }
.pcard .en { font-size: 0.98rem; margin-top: -8px; }
.rcard .en { font-size: 0.9rem; margin-bottom: 2px; }
.footer .en { display: inline; font-size: 0.85em; margin-left: 6px; }
.badge {
  display: inline-block; align-self: flex-start; background: var(--ink); color: var(--paper);
  font-family: var(--text); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
.badge--sm { font-size: 0.8rem; margin-bottom: -2px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--maroon); color: #fff; font-weight: 600; font-size: 1rem; border: 1.5px solid var(--maroon);
  transition: translate 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 20px -10px rgba(122, 26, 18, 0.7);
}
.btn:hover { translate: 0 -2px; background: var(--maroon-2); }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 9px 18px; font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--rule); font-size: 0.95rem; font-weight: 500; line-height: 1.5;
}
.chips--sm li { padding: 4px 11px; font-size: 0.88rem; }

.mark { width: 12px; height: 12px; border: 1.5px solid; display: inline-grid; place-items: center; flex: none; border-radius: 2px; }
.mark::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mark--veg { color: #2b7a3b; }
.mark--nonveg { color: #8a1a12; }

/* ---------- loader (about 3.5 s) ---------- */
body.is-loading { overflow: hidden; }
.loader {
  --p: 0;                                             /* 0..1 load progress, set from JS */
  position: fixed; inset: 0; z-index: 80; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  will-change: clip-path;
}
.loader__center { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.loader__logo { position: relative; width: clamp(128px, 22vw, 168px); aspect-ratio: 1; animation: logoIn 0.9s var(--ease) both; }
.loader__logo img { position: absolute; inset: 11%; width: 78%; height: 78%; border-radius: 50%; box-shadow: 0 14px 30px -14px rgba(122, 26, 18, 0.55); }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__track { fill: none; stroke: var(--rule); stroke-width: 2.5; }
.loader__prog { fill: none; stroke: var(--maroon); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); }
@keyframes logoIn { from { transform: scale(0.6) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.loader__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.3; margin-top: 4px; }

.mini-ammi { width: clamp(180px, 26vw, 230px); height: auto; overflow: visible; }
.mini-ammi__slab { fill: var(--ink); }
.mini-ammi__paste { fill: var(--maroon-2); transform-box: fill-box; transform-origin: center; transform: scaleX(calc(0.08 + var(--p) * 0.92)); }
.mini-ammi__spices circle { fill: #c7a473; }
.mini-ammi__spices circle:nth-child(3n) { fill: #2a201a; }
.mini-ammi__spices .chilli { fill: #9a2214; }
.mini-ammi__spices { opacity: calc(1 - var(--p) * 1.1); }
.mini-ammi__roller { animation: roll 1.1s ease-in-out infinite alternate; }
.mini-ammi__roller rect { fill: #2c2a2e; }
.mini-ammi__roller line { stroke: #5b585e; stroke-width: 1.4; stroke-linecap: round; animation: spinLines 1.1s linear infinite alternate; }
@keyframes roll { from { transform: translateX(56px); } to { transform: translateX(164px); } }
@keyframes spinLines { from { transform: translateX(-4px); } to { transform: translateX(4px); } }

.loader__status { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; }
.loader__pct { font-family: var(--text); font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.loader__pct::after { content: "%"; font-size: 0.55em; margin-left: 2px; color: var(--ink-3); }
.loader__msg { font-family: var(--display); color: var(--ink-2); font-size: 1rem; transition: opacity 0.25s; }
.loader__foot { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); font-family: var(--display); color: var(--ink-3); font-size: 0.95rem; letter-spacing: 0.04em; }

.split-g .w { display: inline-block; white-space: nowrap; }
.split-g .g { display: inline-block; overflow: hidden; padding: 0.12em 0 0.24em; margin: -0.12em 0 -0.24em; vertical-align: top; }
.split-g .gi { display: inline-block; transform: translateY(115%); will-change: transform; }
.no-anim .split-g .gi, .no-intro .split-g .gi { transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.scrolled { background: rgba(243, 235, 220, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); }
.nav__brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.nav__logo { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 6px 14px -8px rgba(122, 26, 18, 0.7); transition: rotate 0.5s var(--ease), scale 0.5s var(--ease); }
.nav__brand:hover .nav__logo { rotate: -12deg; scale: 1.05; }
.nav__name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
/* desktop menu: same sliding pill as the phone/tablet bar */
.nav__links { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(251, 246, 236, 0.7); border: 1px solid var(--rule); }
.nav__pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink); will-change: transform, width; }
.nav__links a { position: relative; z-index: 1; padding: 6px 16px; border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: color 0.3s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--paper); }
/* sound: icon only. Off = music-off; on = music note + moving bars */
.sound {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; min-width: 44px; padding: 0 11px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-size: 1.3rem;
  transition: background 0.3s, color 0.3s, padding 0.35s var(--ease);
}
.sound:active { transform: scale(0.94); }
.sound__on, .sound__bars { display: none; }
.sound[aria-pressed="true"] { background: var(--ink); color: var(--paper); padding: 0 14px 0 12px; }
.sound[aria-pressed="true"] .sound__off { display: none; }
.sound[aria-pressed="true"] .sound__on { display: inline-block; }
.sound[aria-pressed="true"] .sound__bars { display: inline-flex; }
.sound__bars { align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 2.5px; height: 4px; background: currentColor; border-radius: 1px; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 0.9s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -0.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -0.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 13px; } }

/* ---------- 3D journey ---------- */
.journey { position: relative; height: 820vh; }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey__view { position: absolute; top: 0; right: 64px; bottom: 0; width: calc(56% - 64px); touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.journey__view.dragging { cursor: grabbing; }
.journey__shade {
  position: absolute; inset: 0 auto 0 0; width: 46%; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(243, 235, 220, 0.92) 78%, rgba(243, 235, 220, 0) 100%);
}
.journey__caps { position: absolute; left: max(var(--gutter), calc((100vw - 1240px) / 2)); top: 0; bottom: 0; width: min(500px, 38vw); pointer-events: none; }
.cap {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% + 30px));
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), visibility 0s 0.5s;
}
.cap.is-past { transform: translateY(calc(-50% - 30px)); }
.cap.is-active { opacity: 1; visibility: visible; transform: translateY(-50%); pointer-events: auto; transition: opacity 0.6s var(--ease) 0.1s, transform 0.9s var(--ease) 0.1s, visibility 0s; }
.cap__kicker, .head__kicker { font-family: var(--text); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon); margin-bottom: 6px; }
.origin .head__kicker { color: #e0b96a; }
.cap__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--ink); color: var(--paper); font-size: 2rem; margin-bottom: 18px; box-shadow: 0 12px 26px -14px rgba(27, 22, 19, 0.6); }
.cap h2 { margin-bottom: 10px; }
.cap__text { font-size: 1.08rem; line-height: 1.75; color: #3b332d; margin-bottom: 18px; max-width: 36ch; }
.cap__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__title { font-size: clamp(2.2rem, 4.4vw, 4rem); font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.cap__hint { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--ink-3); font-weight: 500; }
.mouse { width: 20px; height: 32px; border: 2px solid var(--ink-3); border-radius: 12px; position: relative; flex: none; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--maroon); animation: wheel 1.6s infinite var(--ease); }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

.rail {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px;
  padding: 6px; border-radius: 16px; background: rgba(251, 246, 236, 0.94); border: 1px solid var(--rule);
  box-shadow: 0 12px 28px -18px rgba(27, 22, 19, 0.5); opacity: 0; transition: opacity 0.8s var(--ease);
}
.rail.in { opacity: 1; }
.rail button {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent;
  font-size: 1.25rem; color: var(--ink); cursor: pointer; opacity: 0.5; transition: all 0.3s var(--ease);
}
.rail button:hover { opacity: 0.9; }
.rail button.on { opacity: 1; background: var(--ink); color: var(--paper); box-shadow: 0 6px 16px -10px rgba(27, 22, 19, 0.6); }
.journey__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rule); }
.journey__bar span { display: block; height: 100%; background: var(--maroon); transform: scaleX(0); transform-origin: left; }
.drag-hint { position: absolute; right: 74px; bottom: 22px; font-size: 0.85rem; color: var(--ink-3); pointer-events: none; transition: opacity 0.5s; }
.dragged .drag-hint { opacity: 0; }

/* ---------- sections ---------- */
.section { position: relative; padding: 9vh 0; background: var(--paper); }
.head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.head__icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--ink); color: var(--paper); font-size: 1.8rem; }
.head h2 { margin-bottom: 2px; }
.head__sub { color: var(--ink-2); font-size: 1.05rem; }

/* clean */
.clean { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 26px; counter-reset: st; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 8px 16px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--rule); }
.steps li:not(:last-child)::after { content: "➜"; position: absolute; right: -12px; top: 38px; z-index: 1; font-size: 0.9rem; color: var(--maroon); background: var(--paper-2); width: 14px; text-align: center; }
.steps__icon { font-size: 1.9rem; margin-bottom: 6px; }
.steps b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.steps small { color: var(--ink-3); font-size: 0.88rem; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.icard { padding: 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); transition: translate 0.35s var(--ease), box-shadow 0.35s; }
.icard:hover { translate: 0 -4px; box-shadow: 0 18px 30px -22px rgba(27, 22, 19, 0.5); }
.icard__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--paper-2); font-size: 1.5rem; margin-bottom: 12px; }
.icard h3 { margin-bottom: 4px; }
.icard p { color: var(--ink-2); font-size: 0.97rem; line-height: 1.6; }
/* "No Colour · No Preservatives · No Chemicals" as one seal strip */
.nos {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px;
  border-radius: 20px; background: var(--maroon); color: #fff; overflow: hidden;
  box-shadow: 0 18px 36px -24px rgba(122, 26, 18, 0.8);
}
.nos li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 16px; font-family: var(--text); font-weight: 600; font-size: 1.02rem; }
.nos li + li { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.nos .ti { font-size: 1.6rem; opacity: 0.9; }

/* swipe rows (products, recipes) */
.swipe {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((min(1240px, 100vw - 2 * var(--gutter)) - 2 * 18px) / 3); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - 1240px) / 2)) 10px; scroll-padding: 0 max(var(--gutter), calc((100vw - 1240px) / 2));
}
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { scroll-snap-align: start; }
.swipe-hint { display: none; text-align: center; color: var(--ink-3); font-size: 0.9rem; margin-top: 6px; }

.pcard { border-radius: 22px; background: var(--card); border: 1px solid var(--rule); overflow: hidden; display: flex; flex-direction: column; transition: translate 0.4s var(--ease), box-shadow 0.4s; }
.pcard:hover { translate: 0 -6px; box-shadow: 0 26px 40px -28px rgba(27, 22, 19, 0.55); }
.pcard__img { aspect-ratio: 4 / 3.3; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #f6d9b8, var(--paper-2) 70%); overflow: hidden; }
.pcard__img--blue { background: radial-gradient(circle at 50% 60%, #d3e3f3, var(--paper-2) 70%); }
.pcard__img img { width: 46%; border-radius: 4px; box-shadow: 0 22px 30px -16px rgba(27, 22, 19, 0.55); transition: translate 0.6s var(--ease), rotate 0.6s var(--ease), scale 0.6s var(--ease); }
.pcard:hover .pcard__img img { translate: 0 -6px; rotate: -2deg; scale: 1.03; }
.pcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__tag { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-3); font-weight: 500; }
.pcard h3 { font-size: 1.15rem; }
.pcard__note { color: var(--ink-2); font-size: 0.95rem; margin-top: -4px; }
.pcard .btn { align-self: flex-start; margin-top: auto; }

/* spices */
.spice-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.spice-cloud li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--rule); font-family: var(--display); font-weight: 500; font-size: 1.05rem;
  transition: translate 0.3s var(--ease), rotate 0.3s var(--ease);
}
.spice-cloud li:hover { translate: 0 -3px; rotate: -1.5deg; }
.spice-cloud small { font-family: var(--text); font-size: 0.78rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.spice-cloud i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); box-shadow: 0 2px 5px -1px rgba(0, 0, 0, 0.3); }

/* recipes */
.recipes { background: var(--paper-2); }
.swipe--recipes { align-items: start; grid-auto-columns: calc((min(1240px, 100vw - 2 * var(--gutter)) - 4 * 18px) / 5); }
.rcard { border-radius: 20px; background: var(--card); border: 1px solid var(--rule); overflow: hidden; transition: box-shadow 0.3s; }
.rcard[open] { box-shadow: 0 20px 36px -26px rgba(27, 22, 19, 0.6); border-color: rgba(122, 26, 18, 0.4); }
.rcard summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; }
.rcard summary::-webkit-details-marker { display: none; }
.rcard__emoji { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--paper-2); font-size: 1.8rem; margin-bottom: 8px; }
.rcard b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.rcard__meta { font-size: 0.86rem; color: var(--ink-3); line-height: 1.5; }
.rcard__open { margin-top: 8px; font-size: 0.88rem; font-weight: 600; color: var(--maroon); }
.rcard[open] .rcard__open { opacity: 0.5; }
.rcard ol { counter-reset: r; padding: 0 20px 20px; display: grid; gap: 10px; }
.rcard ol li { counter-increment: r; position: relative; padding-left: 30px; font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; }
.rcard ol li::before { content: counter(r); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--maroon); color: #fff; font-size: 0.72rem; display: grid; place-items: center; }

/* origin */
.origin { background: var(--maroon); color: var(--paper); padding-top: 0; }
.origin__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; margin-top: 7vh; }
.origin .head__sub { color: rgba(243, 235, 220, 0.82); margin-top: 6px; }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts3 li { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(243, 235, 220, 0.18); }
.facts3 span { font-size: 1.6rem; margin-bottom: 4px; }
.facts3 b { font-family: var(--display); font-weight: 600; }
.facts3 small { color: rgba(243, 235, 220, 0.75); font-size: 0.9rem; line-height: 1.5; }

/* contact */
.contact { padding-bottom: 0; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ccard { display: flex; flex-direction: column; gap: 2px; padding: 22px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); transition: translate 0.3s var(--ease), border-color 0.3s; }
a.ccard:hover { translate: 0 -4px; border-color: var(--maroon); }
.ccard span { font-size: 1.7rem; margin-bottom: 6px; }
.ccard b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.ccard small { color: var(--ink-3); font-size: 0.92rem; word-break: break-word; }
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 36px 0 32px; margin-top: 7vh; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--ink-3); }
.ccard b { font-family: var(--text); font-weight: 700; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; color: var(--ink); }
.footer__brand img { border-radius: 50%; }

/* moving Tamil word bands */
/* moving Tamil word bands: solid, readable words that drift gently with the scroll */
.band { position: relative; overflow: hidden; padding: 22px 0; background: var(--paper); border-block: 1px solid var(--rule); }
.band--maroon { background: transparent; border: 0; border-bottom: 1px solid rgba(243, 235, 220, 0.16); }
.band__track { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.8rem); line-height: 1.45; will-change: transform; }
.band__track .o { color: var(--maroon); }
.band--maroon .band__track .o { color: #f0cf8a; }
.band__track b { font-size: 0.45em; color: var(--gold); }
.band--maroon .band__track b { color: #e0b96a; }

/* phone + tablet tab bar: a solid floating capsule with a pill that slides and stretches between tabs */
.tabbar { display: none; }
.tabbar__pill {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px;
  background: var(--maroon); box-shadow: 0 6px 16px -8px rgba(122, 26, 18, 0.9);
  will-change: transform, width;
}

/* heading word reveal */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0 0.26em; margin: -0.12em 0 -0.26em; }
.wi { display: inline-block; transform: translateY(112%); will-change: transform; }
.no-anim .wi { transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .swipe--recipes { grid-auto-columns: min(280px, 64vw); }
  .pcard__img img { width: 52%; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .origin__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }

  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .rail { display: none; }
  .journey__bar { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 40;
    left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(440px, calc(100vw - 24px)); padding: 6px; border-radius: 999px;
    background: var(--ink); box-shadow: 0 18px 40px -16px rgba(27, 22, 19, 0.75);
    transition: opacity 0.5s, transform 0.6s var(--ease);
  }
  body.is-loading .tabbar { opacity: 0; transform: translate(-50%, 30px); }
  .tabbar a {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 54px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
    color: rgba(243, 235, 220, 0.6); transition: color 0.3s; -webkit-tap-highlight-color: transparent;
  }
  .tabbar a i { font-size: 1.35rem; line-height: 1.1; transition: transform 0.4s var(--ease); }
  .tabbar a.active { color: #fff; }
  .tabbar a.active i { transform: translateY(-1px); }
}

/* ---------- tablet only: the tab bar docks vertically on the right edge ---------- */
@media (min-width: 761px) and (max-width: 1080px) {
  body { padding-bottom: 0; padding-right: 92px; }
  .journey__bar { bottom: 0; }
  .tabbar {
    grid-template-columns: 1fr; grid-auto-rows: 64px; gap: 4px;
    left: auto; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%);
    width: 72px; padding: 6px; border-radius: 36px;
  }
  body.is-loading .tabbar { transform: translate(30px, -50%); }
  .tabbar a { height: auto; }
  .tabbar__pill { top: 0; bottom: auto; left: 6px; right: 6px; width: auto; height: 0; }
  .drag-hint { right: 24px; }
}

/* ---------- wider screens: the three products sit in a plain grid ---------- */
@media (min-width: 901px) {
  #products .swipe {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto;
    overflow: visible; width: min(1240px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 4px 0 10px;
  }
}

/* ---------- small tablet and phone: products become a swipe row ---------- */
@media (max-width: 900px) {
  #products .swipe { grid-auto-columns: min(320px, 74vw); }
  .pcard__img img { width: 46%; }
  .swipe-hint { display: block; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 10px var(--gutter); }
  .nav__logo { width: 40px; height: 40px; }
  .nav__name { font-size: 1.02rem; }
  .sound { height: 40px; min-width: 40px; font-size: 1.15rem; }

  .journey { height: 760vh; }
  .journey__view { top: 58px; left: 0; right: 0; width: auto; bottom: auto; height: 50%; }
  .journey__shade { inset: auto 0 0 0; width: auto; height: 56%; background: linear-gradient(0deg, var(--paper) 0%, rgba(243, 235, 220, 0.96) 62%, rgba(243, 235, 220, 0) 100%); }
  .journey__caps { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: calc(100px + env(safe-area-inset-bottom)); height: 38%; }
  .cap { top: auto; bottom: 0; transform: translateY(24px); }
  .cap.is-past { transform: translateY(-24px); }
  .cap.is-active { transform: none; }
  .cap__icon { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 15px; margin-bottom: 10px; }
  .cap h2 { font-size: 1.35rem; margin-bottom: 6px; }
  .cap__text { font-size: 1rem; margin-bottom: 12px; }
  .chips li { font-size: 0.88rem; padding: 4px 11px; }
  .hero__title { font-size: 2.15rem; margin-bottom: 8px; }
  .en--hero { font-size: 1.15rem; margin: -4px 0 10px; }
  .cap h2 + .en { font-size: 0.95rem; margin: -4px 0 8px; }
  .badge { font-size: 0.8rem; margin-bottom: 6px; }
  .cap__kicker { margin-bottom: 4px; font-size: 0.92rem; }
  .cap__hint { margin-top: 14px; font-size: 0.9rem; }
  .drag-hint { right: var(--gutter); top: 70px; bottom: auto; font-size: 0.78rem; }

  .section { padding: 7vh 0; }
  .head { gap: 12px; margin-bottom: 22px; align-items: flex-start; }
  .head__icon { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 15px; }
  h2 { font-size: 1.4rem; }
  .head__sub { font-size: 0.98rem; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .steps li { padding: 12px 0 10px; border-radius: 14px; min-width: 0; }
  .steps li:not(:last-child)::after { display: none; }
  .steps__icon { font-size: 1.4rem; margin-bottom: 2px; }
  .steps b { font-family: var(--text); font-weight: 600; font-size: 0.72rem; line-height: 1.4; }
  .steps small { display: none; }
  .cards4 { gap: 10px; }
  .icard { padding: 16px 14px; }
  .icard__icon { width: 40px; height: 40px; font-size: 1.25rem; margin-bottom: 8px; }
  .icard h3 { font-size: 0.98rem; }
  .icard p { font-size: 0.88rem; }
  .nos { margin-top: 28px; border-radius: 16px; }
  .nos li { flex-direction: column; gap: 6px; padding: 14px 6px; font-size: 0.8rem; text-align: center; line-height: 1.3; }
  .nos .ti { font-size: 1.4rem; }
  .spice-cloud li { font-size: 0.95rem; padding: 7px 14px 7px 10px; }
  .facts3 { grid-template-columns: 1fr; }
  .facts3 li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; padding: 14px 16px; }
  .facts3 span { margin: 0; font-size: 1.4rem; }
  .facts3 small { width: 100%; padding-left: 36px; }
  .contact__grid { gap: 10px; }
  .ccard { padding: 16px 14px; }
  .footer { padding-bottom: 20px; }

  .tabbar a { height: 50px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mouse::after, .sound__bars i { animation: none !important; }
  .split-g .gi, .wi { transform: none; }
}

/* ---------- alignment pass ---------- */
.chips li { line-height: 1.2; padding: 8px 14px 7px; gap: 7px; }
.chips li .ti, .chips li .mark { flex: none; vertical-align: 0; position: relative; top: -1px; }
.chips--sm li { padding: 6px 11px 5px; }
.btn { line-height: 1.2; }
.btn .ti { vertical-align: 0; }
.pcard__tag, .rcard__meta, .cap__kicker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cap__kicker .ti { font-size: 1.05em; }

/* equal-height card rows */
.cards4, .contact__grid, .facts3 { align-items: stretch; }
.icard, .ccard { height: 100%; }

/* seal strip: every column identical, centred on one line */
.nos { margin-top: 36px; }
.nos li { min-height: 76px; line-height: 1.2; }
.nos .ti { flex: none; }

/* Tamil words scrolling in the bands: a slow, continuous marquee so every word passes by */
.band__track { animation: marquee var(--dur, 38s) linear infinite; }
.band[data-band="1"] .band__track { animation-direction: reverse; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.band:hover .band__track { animation-play-state: paused; }

/* footer: brand only */
.footer { justify-content: center; }

@media (max-width: 760px) {
  .chips li { padding: 7px 12px 6px; }
  .band { padding: 16px 0; }
  .band__track { font-size: 1.35rem; gap: 18px; }
  .nos { margin-top: 32px; }
  .nos li { min-height: 84px; }
  .steps b { font-size: 0.68rem; letter-spacing: -0.01em; }
}
@media (max-width: 380px) {
  .steps { gap: 4px; }
  .steps b { font-size: 0.62rem; }
}

/* tablet side dock styled like the desktop journey rail: cream capsule, black active tile */
@media (min-width: 761px) and (max-width: 1080px) {
  .tabbar { background: rgba(251, 246, 236, 0.96); border: 1px solid var(--rule); box-shadow: 0 16px 36px -20px rgba(27, 22, 19, 0.55); border-radius: 22px; width: 76px; }
  .tabbar__pill { background: var(--ink); border-radius: 16px; box-shadow: 0 6px 16px -10px rgba(27, 22, 19, 0.7); }
  .tabbar a { color: var(--ink-2); border-radius: 16px; font-size: 0.66rem; }
  .tabbar a.active { color: var(--paper); }
}
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }

/* ---------- QA pass: optical centring (measured on rendered pixels) ---------- */
.ti-ammi::before { display: block; }                   /* no inline descender gap: the Stone-ground chip was 1px taller than its neighbours */
.chips li { padding-top: 9px; padding-bottom: 6px; }   /* Latin cap-height sat ~1.5px above the chip centre */
.chips--sm li { padding-top: 6px; padding-bottom: 5px; }  /* small product chips keep their size (already centred) */
@media (max-width: 760px) { .chips li { padding-top: 7.5px; padding-bottom: 5.5px; } }
@media (max-width: 1080px) { .tabbar a { padding-top: 3px; } }   /* icon + label group sat ~2px high in the tab */

/* ---------- QA pass: touch sizes and small labels ---------- */
@media (max-width: 1080px) {
  .btn--sm { min-height: 42px; }                       /* comfortable tap target for Order Now */
  .tabbar a { font-size: 0.75rem; }                     /* tab labels at 12px, phone and tablet dock */
}
@media (max-width: 760px) {
  .steps { gap: 4px; }
  .steps b { font-size: clamp(10.5px, 2.95vw, 12px); letter-spacing: 0; }   /* largest size the widest word (அடைத்தல்) fits in five columns */
}
