/* ============================================================================
   PON VAYAL — MAIN STYLESHEET
   Component library + layout. Loads after tokens.css.
   ============================================================================ */

/* ---------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select, button { font: inherit; }
:focus-visible { outline: 2.5px solid var(--green-600); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--green-900); }

/* paper-grain texture overlay (subtle, tactile, non-AI-flat) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 540; line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); color: var(--ink); font-optical-sizing: auto; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { color: var(--text-soft); }
p + p { margin-top: var(--sp-4); }
strong { font-weight: 700; color: var(--ink); }
.tamil { font-family: var(--font-tamil); }

.display { font-family: var(--font-display); font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: 560; letter-spacing: -0.025em; color: var(--ink); }

/* italic serif accent for one emphasised phrase in a heading */
.display em, h1 em, h2 em { font-style: italic; font-weight: 480; color: var(--gold-700); letter-spacing: -0.01em; }
.bg-green h2 em, .bg-husk h2 em { color: var(--gold-300); }
.hero-photo em, .page-hero .display em { color: var(--gold-400); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-800); background: var(--gold-100);
  border: 1px solid var(--gold-200); padding: 0.5em 0.95em; border-radius: var(--r-pill);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.eyebrow.no-rule::before { display: none; }
.bg-green .eyebrow, .bg-husk .eyebrow { background: rgba(251,246,236,0.08); border-color: rgba(251,246,236,0.2); color: var(--gold-200); }
.text-balance { text-wrap: balance; }

/* gold underline flourish for emphasised words */
.ink-gold { color: var(--gold-700); }
.ink-green { color: var(--green-700); }
.brush {
  position: relative; white-space: nowrap;
  background-image: linear-gradient(120deg, var(--gold-200), var(--gold-300));
  background-repeat: no-repeat; background-size: 100% 0.32em; background-position: 0 88%;
  padding: 0 0.06em; border-radius: 2px;
}

/* ---------------------------------------------------------------- layout --- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding-block: var(--section); position: relative; z-index: 2; }
.section-sm { padding-block: clamp(3rem, 6vw, 5.5rem); }
.measure { max-width: var(--maxw-text); }
.center { text-align: center; }
.center.measure { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 979px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.15fr 0.85fr; } .split.wide-right { grid-template-columns: 0.85fr 1.15fr; } }
.split.reverse > :first-child { order: 2; }
@media (max-width: 899px) { .split.reverse > :first-child { order: 0; } }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: var(--sp-4); }
/* small paddy-flower flourish under centred section heads (matches ticker/prose ❉ motif) */
.section-head.center::after { content: "❉"; display: block; margin-top: 1.1rem; color: var(--gold-500); font-size: 1rem; line-height: 1; opacity: 0.85; }
.bg-green .section-head.center::after, .bg-husk .section-head.center::after { color: var(--gold-300); }

/* oversized Tamil watermark for selected sections: <section class="section has-watermark" data-watermark="வயல்"> */
.has-watermark { overflow: hidden; }
.has-watermark::after { content: attr(data-watermark); position: absolute; right: -0.04em; top: -0.12em; z-index: 0; font-family: var(--font-tamil); font-weight: 600; font-size: clamp(7rem, 18vw, 16rem); line-height: 1; color: rgba(33,24,16,0.04); pointer-events: none; user-select: none; }
.bg-green.has-watermark::after, .bg-husk.has-watermark::after { color: rgba(251,246,236,0.05); }
.has-watermark > .container { position: relative; z-index: 1; }

/* section tints */
.bg-cream2 { background: var(--cream-2); }
.bg-green { background:
  radial-gradient(40% 55% at 88% 12%, rgba(220,161,47,0.16), transparent 70%),
  radial-gradient(120% 90% at 18% 0%, var(--green-700) 0%, var(--green-800) 48%, var(--green-900) 100%); color: var(--cream); }
.bg-green h1,.bg-green h2,.bg-green h3,.bg-green h4 { color: var(--cream); }
.bg-green p { color: rgba(251,246,236,0.82); }
.bg-green .eyebrow { color: var(--gold-300); }
.bg-husk { background:
  radial-gradient(45% 60% at 12% 8%, rgba(232,184,84,0.14), transparent 72%),
  radial-gradient(120% 100% at 80% 0%, var(--husk-700) 0%, var(--husk-800) 46%, var(--husk-900) 100%); color: var(--cream); }
.bg-husk h2,.bg-husk h3 { color: var(--gold-200); }
.bg-husk p { color: rgba(251,246,236,0.8); }

/* ---------------------------------------------------------------- buttons -- */
.btn {
  --_bg: var(--green-700); --_fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  background: var(--_bg); color: var(--_fg);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2);
  box-shadow: var(--shadow-sm); will-change: transform; text-align: center;
}
.btn svg { width: 1.75em; height: 1.75em; padding: 0.4em; margin-right: -0.4em; border-radius: 50%; background: rgba(0,0,0,0.12); flex: none; transition: transform var(--dur-2) var(--ease-spring), background var(--dur-2); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover svg { transform: translate(3px,-2px) scale(1.06); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-dark svg, .btn-ghost svg { background: rgba(255,255,255,0.18); }
.bg-green .btn-ghost svg, .bg-husk .btn-ghost svg { background: rgba(255,255,255,0.18); }
.btn-primary { --_bg: linear-gradient(135deg, var(--gold-600), var(--gold-500)); --_fg: #2a1c05; box-shadow: var(--shadow-gold); }
.btn-primary:hover { box-shadow: 0 18px 46px -14px rgba(166,113,26,.6); }
.btn-dark { --_bg: var(--green-800); }
.btn-ghost { --_bg: transparent; --_fg: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--green-600); background: var(--green-100); box-shadow: none; }
.bg-green .btn-ghost, .bg-husk .btn-ghost { --_fg: var(--cream); border-color: rgba(251,246,236,0.3); }
.bg-green .btn-ghost:hover, .bg-husk .btn-ghost:hover { background: rgba(251,246,236,0.1); border-color: var(--gold-300); }
.btn-lg { padding: 1.05em 1.9em; font-size: 1.02rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; color: var(--green-700); border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color var(--dur-2), gap var(--dur-2); }
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover { border-color: var(--gold-500); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------- header ---- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(251,246,236,0.72); backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2);
}
.site-header.scrolled { background: rgba(251,246,236,0.94); border-color: var(--line-soft); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: var(--header-h); }
/* header spans the full viewport (logo hard-left, CTA hard-right) — content below stays in the 1240px container */
.site-header .nav.container { max-width: none; padding-inline: clamp(1.25rem, 3.2vw, 3.5rem); }
@media (min-width: 941px) { .site-header .nav-links { gap: clamp(0.9rem, 2.1vw, 2.6rem); } }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.02em; }
.brand svg, .brand img { width: 40px; height: 40px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-700); line-height: 1; margin-top: 3px; }
.brand .brand-name { line-height: 1; }

.nav-links { display: flex; align-items: center; gap: clamp(0.5rem, 1.4vw, 1.6rem); }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.navlink { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.5em 0.25em; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); transition: color var(--dur-1); }
.nav-links a:hover, .nav-links button.navlink:hover, .nav-links a[aria-current="page"] { color: var(--green-700); }
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after { content:""; position:absolute; left:0.25em; right:0.25em; bottom:0.1em; height:2px; background: var(--gold-500); border-radius:2px; }
.chev { width: 0.7em; height: 0.7em; transition: transform var(--dur-2); }

/* dropdown */
.has-dropdown > .dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 480px; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 0.8rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-dropdown:hover .chev { transform: rotate(180deg); }
.dropdown a { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.7rem 0.8rem; border-radius: var(--r-sm); transition: background var(--dur-1); }
.dropdown a:hover { background: var(--green-100); }
.dropdown a strong { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.dropdown a span { font-size: 0.82rem; color: var(--muted); font-weight: 500; line-height: 1.35; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur-2) var(--ease), opacity var(--dur-1); position: relative; }
.nav-toggle span::before { position:absolute; top:-7px; } .nav-toggle span::after { position:absolute; top:7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream); padding: var(--sp-5) var(--gutter) var(--sp-8); overflow-y: auto;
    transform: translateX(100%); transition: transform var(--dur-3) var(--ease); z-index: var(--z-overlay);
    border-top: 1px solid var(--line-soft);
  }
  body.nav-open .nav-links { transform: translateX(0); }
  .nav-links > li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a, .nav-links button.navlink { padding: 1.05rem 0.25rem; font-size: 1.15rem; width: 100%; }
  .has-dropdown > .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; grid-template-columns: 1fr;
    box-shadow: none; border: none; background: transparent; padding: 0 0 0.8rem 0.5rem; display: none;
  }
  .has-dropdown.open > .dropdown { display: grid; }
  .has-dropdown.open .chev { transform: rotate(180deg); }
  .nav-cta .btn { display: none; }
}

.skip-link { position: absolute; left: 0.5rem; top: -3rem; z-index: var(--z-modal); background: var(--green-800); color: var(--cream); padding: 0.6rem 1rem; border-radius: var(--r-sm); transition: top var(--dur-2); }
.skip-link:focus { top: 0.5rem; }

/* ---------------------------------------------------------------- hero ----- */
.hero { position: relative; min-height: clamp(620px, 92vh, 940px); display: flex; align-items: center; overflow: clip; }
.hero-3d { position: absolute; inset: 0; z-index: 0; }
.hero-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-scrollcue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3; display: grid; place-items: center; gap: 0.5rem; color: var(--ink-soft); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; }
.hero-scrollcue .mouse { width: 24px; height: 38px; border: 2px solid currentColor; border-radius: var(--r-pill); position: relative; opacity: 0.7; }
.hero-scrollcue .mouse::after { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:3px; height:7px; background: currentColor; border-radius:2px; animation: scrollcue 1.6s var(--ease) infinite; }
@keyframes scrollcue { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* page hero (interior pages) — faint kolam-style dot lattice + warm glow for craft feel */
.page-hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem,5vw,4rem); position: relative; z-index: 2; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgba(166,113,26,0.13) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 90% at 85% 10%, #000 0%, transparent 70%);
  mask-image: radial-gradient(70% 90% at 85% 10%, #000 0%, transparent 70%); }
.page-hero::after { content: ""; position: absolute; right: -8%; top: -30%; width: 44%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: -2;
  background: radial-gradient(circle, rgba(240,204,126,0.32), transparent 68%); filter: blur(10px); }
.page-hero .display, .page-hero h1 { margin-top: 0.5rem; }

/* --------------------------------------------------------------- breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.82rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 0.5rem; opacity: 0.6; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* ---------------------------------------------------------------- cards ---- */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-2xl); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.65); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), border-color var(--dur-3); position: relative; overflow: hidden; }
/* a hairline of gold light skims the top edge on hover — "machined hardware" feel */
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-400), transparent); opacity: 0; transition: opacity var(--dur-3) var(--ease); pointer-events: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.65); border-color: var(--line); }
.card:hover::after { opacity: 0.9; }
.card h3 { margin-bottom: 0.4rem; }
.card .card-icon { width: 56px; height: 56px; margin-bottom: 1.1rem; color: var(--green-600); }
.card .card-icon svg { width: 100%; height: 100%; }

/* product card */
.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-card .pc-media { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, var(--cream-2), var(--cream-3)); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.05); }
/* soft circular "plate" behind SVG emblems so icon cards hold their own next to photo cards */
.product-card .pc-media::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,0.65), rgba(255,255,255,0) 58%), linear-gradient(160deg, rgba(220,161,47,0.20), rgba(60,124,86,0.10));
  border: 1px solid rgba(166,113,26,0.18); box-shadow: 0 18px 36px -18px rgba(58,40,23,0.35), inset 0 1px 0 rgba(255,255,255,0.6); }
.product-card .pc-art { width: 52%; opacity: 0.97; position: relative; filter: drop-shadow(0 12px 18px rgba(58,40,23,0.22)); transition: transform var(--dur-4) var(--ease); }
.product-card:hover .pc-art { transform: scale(1.06) rotate(-2deg); }
.product-card .pc-body { padding: 1.4rem 1.5rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.product-card .pc-body h3 { font-size: 1.3rem; }
.product-card .pc-body p { font-size: 0.95rem; margin-top: 0.35rem; flex: 1; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; }
.tag { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-800); background: var(--gold-100); padding: 0.4em 0.8em; border-radius: var(--r-pill); }
.tag.green { color: var(--green-700); background: var(--green-100); }
.tag.husk { color: var(--husk-700); background: #efe2cf; }

/* feature / value tile */
.tile { padding: clamp(1.4rem,2.5vw,2rem); border-radius: var(--r-md); background: var(--surface); border:1px solid var(--line-soft); }
.tile .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-600); line-height: 1; }
.stat { text-align: center; }
.stat .stat-num { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.6rem); color: var(--green-700); line-height: 1; letter-spacing: -0.03em; }
.stat .stat-label { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }

/* blog card */
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card .bc-media { aspect-ratio: 16/10; background: linear-gradient(160deg, var(--green-200), var(--cream-3)); overflow: hidden; }
.blog-card .bc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease); }
.blog-card:hover .bc-media img { transform: scale(1.05); }
.blog-card .bc-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.blog-card .bc-meta { font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.03em; }
.blog-card h3 { font-size: 1.25rem; }
.blog-card p { font-size: 0.92rem; flex: 1; }

/* ----------------------------------------------------------- process steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step .step-num { counter-increment: step; width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green-800); color: var(--gold-300); font-family: var(--font-display); font-size: 1.4rem; }
.step .step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }

/* ----------------------------------------------------------- trust strip --- */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem,3vw,2.6rem); padding-block: var(--sp-6); }
.trust-item { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); }
.trust-item svg { width: 1.4em; height: 1.4em; color: var(--green-600); flex: none; }

/* marquee ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line-soft); background: var(--green-800); color: var(--cream); }
.ticker-track { display: flex; gap: 3rem; padding-block: 0.85rem; white-space: nowrap; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.01em; }
.ticker-track span::before { content: "❉"; color: var(--gold-400); }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ------------------------------------------------------------- callouts ---- */
.note { display: flex; gap: 0.9rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: var(--gold-100); border: 1px solid var(--gold-200); border-left: 3px solid var(--gold-500); font-size: 0.92rem; color: var(--ink-soft); }
.note svg { width: 1.3em; height: 1.3em; flex: none; color: var(--gold-700); margin-top: 0.15em; }
.note.info { background: var(--green-100); border-color: var(--green-200); border-left-color: var(--green-500); }
.note.info svg { color: var(--green-600); }
.note strong { display: block; margin-bottom: 0.15rem; }

/* honest disclaimer styling */
.disclaimer { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------- tables --- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line-soft); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.95rem; min-width: 420px; }
table.data th, table.data td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
table.data thead th { background: var(--green-800); color: var(--cream); font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:nth-child(even) { background: var(--cream-2); }
table.data td:first-child { font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- accordion */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0.25rem; text-align: left; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.acc-trigger .acc-icon { flex: none; width: 1.4rem; height: 1.4rem; position: relative; }
.acc-trigger .acc-icon::before, .acc-trigger .acc-icon::after { content:""; position:absolute; top:50%; left:50%; transform: translate(-50%,-50%); background: var(--green-600); border-radius:2px; }
.acc-trigger .acc-icon::before { width: 1.4rem; height: 2px; } .acc-trigger .acc-icon::after { width: 2px; height: 1.4rem; transition: transform var(--dur-2) var(--ease); }
.acc-item.open .acc-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height var(--dur-3) var(--ease); }
.acc-panel-inner { padding: 0 0.25rem 1.4rem; }
.acc-item.open .acc-panel { max-height: 600px; }

/* ---------------------------------------------------------------- forms ---- */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.field label .req { color: var(--clay); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--r); border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); transition: border-color var(--dur-1), box-shadow var(--dur-1); font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.field input::placeholder, .field textarea::placeholder { color: #b3a892; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { font-size: 0.8rem; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--r); font-weight: 600; font-size: 0.95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-200); }
.form-status.error { background: #fbe6e2; color: var(--danger); border: 1px solid #f0c4bc; }
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.6rem); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- footer --- */
.site-footer { background: var(--green-900); color: rgba(251,246,236,0.78); position: relative; z-index: 2; padding-top: var(--sp-9); }
.site-footer a { color: rgba(251,246,236,0.78); transition: color var(--dur-1); }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1.6fr 1fr 1fr 1.2fr; padding-bottom: var(--sp-8); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--cream); }
.footer-brand .brand small { color: var(--gold-300); }
.footer-brand p { color: rgba(251,246,236,0.66); margin-top: 1rem; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4, .footer-col .footer-h { color: var(--gold-200); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.footer-col ul { display: grid; gap: 0.7rem; font-size: 0.95rem; }
.footer-contact li { display: flex; gap: 0.6rem; margin-bottom: 0.7rem; font-size: 0.92rem; align-items: flex-start; }
.footer-contact svg { width: 1.1em; height: 1.1em; flex: none; margin-top: 0.25em; color: var(--gold-300); }
.social-row { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(251,246,236,0.18); display: grid; place-items: center; transition: background var(--dur-1), border-color var(--dur-1); }
.social-row a:hover { background: rgba(251,246,236,0.08); border-color: var(--gold-300); }
.social-row svg { width: 1.1em; height: 1.1em; }
.footer-legal { border-top: 1px solid rgba(251,246,236,0.12); padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; align-items: center; justify-content: space-between; font-size: 0.82rem; color: rgba(251,246,236,0.55); }
.footer-legal .legal-ids { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

/* ----------------------------------------------------------- decorative ---- */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; pointer-events: none; }
.blob.gold { background: radial-gradient(circle, var(--gold-300), transparent 70%); }
.blob.green { background: radial-gradient(circle, var(--green-300), transparent 70%); }
.leaf-divider { display: grid; place-items: center; color: var(--green-400); padding-block: var(--sp-6); }
.leaf-divider svg { width: 120px; height: auto; opacity: 0.8; }

/* organic image frame */
.frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.frame.blob-mask { border-radius: 62% 38% 46% 54% / 56% 44% 56% 44%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-art { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(160deg, var(--green-100), var(--cream-3)); }

/* ----------------------------------------------------- reveal animations --- */
/* hidden state is gated on html.js so content stays visible if JS never runs */
html.js [data-reveal] { opacity: 0; transform: translateY(38px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); will-change: opacity, transform, filter; }
html.js [data-reveal][data-reveal="left"] { transform: translateX(-30px); }
html.js [data-reveal][data-reveal="right"] { transform: translateX(30px); }
html.js [data-reveal][data-reveal="scale"] { transform: scale(0.94); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; filter: blur(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ----------------------------------------------------------- utilities ----- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mt-0{margin-top:0} .mt-2{margin-top:var(--sp-2)} .mt-4{margin-top:var(--sp-4)} .mt-6{margin-top:var(--sp-6)} .mt-8{margin-top:var(--sp-8)}
.mb-4{margin-bottom:var(--sp-4)} .mb-6{margin-bottom:var(--sp-6)}
.maxw-text{max-width:var(--maxw-text)} .mx-auto{margin-inline:auto}
.text-muted{color:var(--muted)} .fw-700{font-weight:700}
.pill-row{display:flex;flex-wrap:wrap;gap:0.6rem}
.flex{display:flex;gap:var(--sp-4);flex-wrap:wrap} .flex-center{align-items:center}
.btn-row{display:flex;flex-wrap:wrap;gap:0.9rem;margin-top:var(--sp-5)}
hr.rule{border:none;border-top:1px solid var(--line);margin-block:var(--sp-7)}

/* prose for blog/legal pages */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { margin-top: 2.6rem; font-size: var(--fs-h3); }
.prose h3 { margin-top: 2rem; font-size: 1.3rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { display: grid; gap: 0.6rem; padding-left: 1.3rem; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 1.4rem; }
.prose ul > li::before { content:"❉"; position:absolute; left:0; color: var(--gold-500); font-size:0.8em; top:0.25em; }
.prose ol { list-style: decimal; }
.prose ol > li { padding-left: 0.4rem; }
.prose a { color: var(--green-700); border-bottom: 1.5px solid var(--gold-300); transition: border-color var(--dur-1); }
.prose a:hover { border-color: var(--green-600); }
.prose blockquote { border-left: 3px solid var(--gold-500); padding: 0.4rem 0 0.4rem 1.4rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-style: italic; }
.prose figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
.prose .sources { font-size: 0.85rem; color: var(--muted); }
.prose .sources a { word-break: break-word; }

.toc { background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 1.4rem 1.6rem; }
.toc h4, .toc .toc-title { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 0.8rem; font-weight: 700; }
.toc ul { display: grid; gap: 0.5rem; font-size: 0.92rem; }
.toc a { color: var(--ink-soft); } .toc a:hover { color: var(--green-700); }

.article-head { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-top: 1rem; }
.article-meta .dot { opacity: 0.5; }

/* ---- shared trust list (used on home + interior pages) ---------------- */
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 1.6rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.hero-trust svg { width: 1.15em; height: 1.15em; color: var(--green-600); flex: none; }
.bg-green .hero-trust li, .bg-husk .hero-trust li { color: rgba(251,246,236,0.86); }
.bg-green .hero-trust svg, .bg-husk .hero-trust svg { color: var(--gold-300); }

/* ---- blog-card emblem art (centred SVG, not a cover photo) ------------ */
.blog-card .bc-media { display: grid; place-items: center; position: relative; }
.blog-card .bc-media::before { content: ""; position: absolute; width: 44%; max-width: 150px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0) 58%), linear-gradient(160deg, rgba(220,161,47,0.16), rgba(60,124,86,0.08));
  border: 1px solid rgba(166,113,26,0.14); box-shadow: 0 16px 30px -16px rgba(58,40,23,0.3); }
.blog-card .bc-media img.bc-art { width: 38%; height: auto; max-width: 110px; object-fit: contain; position: relative; filter: drop-shadow(0 10px 14px rgba(58,40,23,0.2)); transition: transform var(--dur-4) var(--ease); }
.blog-card:hover .bc-media img.bc-art { transform: scale(1.08) rotate(-2deg); }
/* per-topic tints for emblem blog cards */
.bc-media.tint-gold { background: linear-gradient(160deg, var(--gold-100), var(--cream-3)); }
.bc-media.tint-green { background: linear-gradient(160deg, var(--green-100), var(--cream-3)); }
.bc-media.tint-husk { background: linear-gradient(160deg, #efe2cf, var(--cream-3)); }
.bc-media.tint-water { background: linear-gradient(160deg, var(--water), var(--cream-3)); }

/* ============================ PHOTO / ELEVATION LAYER ============================ */
/* Cinematic image-led hero */
.hero-photo { position: relative; min-height: clamp(620px, 92vh, 960px); display: flex; align-items: center; overflow: clip; isolation: isolate; }
.hero-photo .hero-bg { position: absolute; inset: -8% -2% -2% -2%; z-index: 0; will-change: transform; }
/* warm grade is baked into the photo; keep CSS filter gentle */
.hero-photo .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%;
  filter: saturate(1.03) contrast(1.02); }
/* warm glow bottom-left, strong darkening on the right where the white copy sits */
.hero-photo .hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(72% 80% at 6% 94%, rgba(220,161,47,0.20) 0%, rgba(220,161,47,0) 60%),
  linear-gradient(105deg, rgba(20,30,18,0.04) 0%, rgba(16,26,16,0.40) 46%, rgba(8,16,10,0.86) 100%),
  linear-gradient(0deg, rgba(8,16,10,0.55) 0%, rgba(8,16,10,0) 46%),
  linear-gradient(180deg, rgba(8,16,10,0.42) 0%, rgba(8,16,10,0) 22%); }
/* oversized Tamil brand watermark, sits in the hero's quiet left half */
.hero-photo .hero-watermark { position: absolute; left: 1.5%; bottom: 4%; z-index: 1; font-family: var(--font-tamil); font-weight: 600; font-size: clamp(4.5rem, 12vw, 11rem); line-height: 1.1; color: rgba(251,246,236,0.07); pointer-events: none; user-select: none; white-space: nowrap; }
@media (max-width: 900px) { .hero-photo .hero-watermark { display: none; } }
.hero-photo .container { position: relative; z-index: 2; display: flex; justify-content: flex-end; width: 100%; }
.hero-photo .hero-copy { max-width: 620px; color: var(--cream); }
.hero-photo .hero-copy h1 { color: #fff; margin: 0.7rem 0 1.2rem; font-size: clamp(2.6rem, 3.4vw + 1.4rem, 4.4rem); line-height: 1.06; text-wrap: balance; text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.hero-photo .lead { color: rgba(255,255,255,0.92); }
/* ghost button must be light on the photo hero (default ghost is dark ink) */
.hero-photo .btn-ghost { --_fg: #fff; border-color: rgba(255,255,255,0.45); }
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--gold-300); }
.hero-photo .btn-ghost svg { background: rgba(255,255,255,0.18); }
.hero-photo .eyebrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); color: var(--gold-200); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-photo .eyebrow::before { background: var(--gold-300); }
.hero-photo .hero-trust li { color: rgba(255,255,255,0.92); }
.hero-photo .hero-trust svg { color: var(--gold-300); }
.hero-photo .brush { background-image: linear-gradient(120deg, rgba(220,161,47,0.55), rgba(232,184,84,0.55)); color: #fff; }
.hero-photo .hero-scrollcue { color: rgba(255,255,255,0.8); }
@media (max-width: 820px) {
  .hero-photo { align-items: flex-end; }
  .hero-photo .container { justify-content: flex-start; padding-bottom: clamp(3.5rem, 12vw, 6rem); }
  .hero-photo .hero-bg img { object-position: 62% center; }
  .hero-photo .hero-scrim { background: linear-gradient(0deg, rgba(15,26,18,0.9) 4%, rgba(15,26,18,0.25) 52%, rgba(15,26,18,0.5) 100%); }
}

/* Double-bezel framed images */
.imgframe { padding: 0.5rem; background: rgba(255,255,255,0.55); border: 1px solid var(--line-soft); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.bg-green .imgframe, .bg-husk .imgframe { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.imgframe > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-2xl) - 0.5rem); }
.imgframe.wide { aspect-ratio: 3/2; } .imgframe.tall { aspect-ratio: 4/5; } .imgframe.square { aspect-ratio: 1; } .imgframe.portrait { aspect-ratio: 3/4; }
.imgframe:has(.img-cap)::after { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; height: 46%; border-radius: 0 0 calc(var(--r-2xl) - 0.5rem) calc(var(--r-2xl) - 0.5rem); background: linear-gradient(0deg, rgba(15,26,18,0.62), rgba(15,26,18,0)); pointer-events: none; z-index: 1; }
.imgframe .img-cap { position: absolute; left: 1.1rem; bottom: 1.1rem; right: 1.1rem; z-index: 2; color: #fff; font-size: 0.82rem; font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }

/* Real photos inside product/blog card media */
.media-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .pc-media .media-cover { transition: transform var(--dur-4) var(--ease); }
.product-card:hover .pc-media .media-cover { transform: scale(1.05); }

/* full-bleed parallax photo band */
.photo-band { position: relative; min-height: clamp(340px, 50vh, 520px); display: grid; place-items: center; overflow: clip; isolation: isolate; }
.photo-band .hero-bg { position: absolute; inset: -10% 0; z-index: 0; }
.photo-band .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.photo-band .hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(15,26,18,0.7), rgba(15,26,18,0.45)); }
.photo-band .container { position: relative; z-index: 2; }

/* hero scroll cue: bottom-left so it never collides with right-column copy */
.hero-photo .hero-scrollcue { left: var(--gutter); right: auto; transform: none; bottom: 1.3rem; opacity: 0.85; }
@media (max-width: 900px) { .hero-photo .hero-scrollcue { display: none; } }

/* ============================ BILINGUAL (EN / TA) ============================ */
.lang-toggle { font-family: var(--font-tamil); font-weight: 600; font-size: 0.92rem; color: var(--green-700); border: 1.5px solid var(--line); padding: 0.34em 0.85em; border-radius: var(--r-pill); transition: background var(--dur-1), border-color var(--dur-1); white-space: nowrap; line-height: 1; }
.lang-toggle:hover { border-color: var(--green-600); background: var(--green-100); }
html[lang="ta"] { --font-display: "Noto Serif Tamil", Georgia, serif; --font-body: "Noto Sans Tamil", system-ui, sans-serif; }
html[lang="ta"] h1, html[lang="ta"] h2, html[lang="ta"] h3, html[lang="ta"] h4, html[lang="ta"] .display { letter-spacing: 0; line-height: 1.3; }
html[lang="ta"] .display { line-height: 1.18; }
/* Tamil is longer than English — shrink the giant hero headline so it doesn't fill the screen */
html[lang="ta"] .hero-photo .hero-copy h1 { font-size: clamp(1.8rem, 2vw + 1.1rem, 2.85rem); line-height: 1.32; }
html[lang="ta"] .hero-photo .lead { font-size: clamp(1rem, 0.3vw + 0.95rem, 1.12rem); }
html[lang="ta"] .eyebrow { letter-spacing: 0.05em; }
html[lang="ta"] body, html[lang="ta"] p, html[lang="ta"] li { line-height: 1.85; }
html[lang="ta"] .btn { letter-spacing: 0; }

/* ---- checklist: sentence-style ticked lists (icon pinned, text flows) ---- */
.checklist { display: grid; gap: 0.85rem; }
.checklist li { position: relative; padding-left: 2rem; line-height: 1.65; color: var(--ink-soft); font-size: 0.98rem; }
.checklist li > svg { position: absolute; left: 0; top: 0.22em; width: 1.25em; height: 1.25em; color: var(--green-600); }
.checklist li strong { color: var(--ink); font-weight: 700; }
.bg-green .checklist li, .bg-husk .checklist li { color: rgba(251,246,236,0.9); }
.bg-green .checklist li strong, .bg-husk .checklist li strong { color: #fff; }
.bg-green .checklist li > svg, .bg-husk .checklist li > svg { color: var(--gold-300); }
