/* ==========================================================================
   Mae Foods — millet-based FMCG manufacturer, Davanagere
   Design system: design-system/mae-foods/MASTER.md
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --bg:          #FBF4E9;
  --bg-alt:      #F4E8D6;
  --surface:     #FFFFFF;
  --night:       #150C04;
  --night-2:     #241708;
  --night-3:     #34220E;
  --ink:         #1E1409;
  --body:        #4E3D2C;
  --muted:       #6B5A46;
  --brand:       #6E3410;
  --brand-600:   #8A4517;
  --gold:        #C98A2B;   /* decorative only */
  --gold-soft:   #E7C489;
  --gold-ink:    #8F5D0D;   /* text-safe */
  --leaf:        #2E6B41;
  --border:      #E3D3BB;
  --border-soft: #EFE3CE;

  /* spacing */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  /* radius */
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-full: 999px;

  /* type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 240ms;

  /* elevation */
  --shadow-1: 0 1px 2px rgba(30,20,9,.05), 0 4px 14px rgba(30,20,9,.05);
  --shadow-2: 0 2px 6px rgba(30,20,9,.06), 0 16px 44px rgba(30,20,9,.10);
  --shadow-3: 0 4px 12px rgba(30,20,9,.08), 0 32px 80px rgba(30,20,9,.16);

  --container: min(1240px, 100% - 2 * clamp(20px, 5vw, 64px));
  --nav-h: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: clamp(16px, .55vw + 14.4px, 18px);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout primitives ---------- */
.container { width: var(--container); margin-inline: auto; }
.section {
  padding-block: clamp(72px, 9vw, 128px);
  position: relative;
  z-index: 2;
  background-color: var(--bg); /* opaque: the fixed WebGL canvas must not bleed through */
}
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--alt { background-color: var(--bg-alt); }
.section--night { background-color: var(--night); color: #E8DAC5; }
.section--night h2, .section--night h3, .section--night h4 { color: #FBF4E9; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.section--night .eyebrow { color: var(--gold-soft); }

.h-display {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}
.lede {
  font-size: clamp(1.0625rem, .5vw + .95rem, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}
.section--night .lede { color: #C4B096; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lede { margin-top: var(--s-3); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #FFF6E9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  box-shadow: 0 2px 4px rgba(110,52,16,.16), 0 10px 26px rgba(110,52,16,.22);
}
.btn:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(110,52,16,.18), 0 18px 40px rgba(110,52,16,.28); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--border);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.75); border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-1); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #21140A; box-shadow: 0 2px 4px rgba(201,138,43,.2), 0 12px 30px rgba(201,138,43,.28); }
.btn--gold:hover { background: #D89A3B; }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: .875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 600; font-size: .9375rem;
  text-decoration: none; min-height: 44px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--brand-600); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- 5. Nav ---------- */
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 16px; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease),
              border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(251,244,233,.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 1px 20px rgba(30,20,9,.06);
}
.nav__inner { width: var(--container); margin-inline: auto; display: flex; align-items: center; gap: var(--s-4); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: linear-gradient(145deg, var(--brand-600), var(--brand) 55%, #4A2109);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,220,170,.35), 0 6px 18px rgba(110,52,16,.28);
}
.brand__mark svg { width: 22px; height: 22px; color: var(--gold-soft); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
.brand__sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: var(--r-full); text-decoration: none;
  font-size: .9375rem; font-weight: 500; color: var(--body);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--brand); background: rgba(110,52,16,.07); }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--border);
  background: rgba(255,255,255,.6); border-radius: 13px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; color: var(--ink); }

/* A cream translucent bar over a near-black section turns to mud, so the nav
   inverts while it is sitting over one. Toggled by main.js. */
.nav.is-dark.is-stuck {
  background: rgba(21, 12, 4, .74);
  border-bottom-color: rgba(231,196,137,.16);
  box-shadow: 0 1px 24px rgba(0,0,0,.30);
}
.nav.is-dark .brand__name { color: #FBF4E9; }
.nav.is-dark .brand__sub  { color: #A08D74; }
.nav.is-dark .nav__links a { color: #C4B096; }
.nav.is-dark .nav__links a:hover { color: #FBF4E9; background: rgba(231,196,137,.12); }
.nav.is-dark .nav__toggle { border-color: rgba(231,196,137,.26); background: rgba(255,255,255,.06); }
.nav.is-dark .nav__toggle svg { color: #FBF4E9; }
.nav.is-dark .btn--sm {
  background: var(--gold); color: #21140A;
  box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 10px 26px rgba(201,138,43,.22);
}
.nav.is-dark .btn--sm:hover { background: #D89A3B; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto; z-index: 99;
  background: rgba(251,244,233,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--s-2) 0 var(--s-4);
  display: none;
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 54px;
  padding: 0 4px; font-size: 1.0625rem; font-weight: 500;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { width: 100%; margin-top: var(--s-3); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 24px);
  /* leaves clear space at the foot of the hero for the scroll hint, which would
     otherwise sit on top of the stats row on a 900px-tall viewport */
  padding-bottom: clamp(64px, 12vh, 112px);
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(231,196,137,.45) 0%, rgba(231,196,137,0) 58%),
    radial-gradient(90% 80% at 12% 92%, rgba(46,107,65,.10) 0%, rgba(46,107,65,0) 60%),
    linear-gradient(180deg, #FDF8F0 0%, var(--bg) 55%, var(--bg-alt) 100%);
  overflow: hidden;
}
/* WebGL canvas: fixed behind hero copy, above the hero's own gradient */
#hero-canvas {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100svh;
  pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 3; width: var(--container); margin-inline: auto; }
/* 760px keeps the four-stat row on one line; the headline sets its own line breaks
   and the lede is capped at 54ch, so neither gets wider because of this. */
.hero__copy { max-width: 760px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 8px 8px 14px; border-radius: var(--r-full);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .8125rem; font-weight: 500; color: var(--body);
  margin-bottom: var(--s-4);
  box-shadow: var(--shadow-1);
}
.hero__badge .stars { display: inline-flex; gap: 2px; color: var(--gold-ink); }
.hero__badge .stars svg { width: 14px; height: 14px; }
.hero__badge .pill {
  background: var(--brand); color: #FFF6E9; border-radius: var(--r-full);
  padding: 4px 11px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: var(--s-3);
}
/* Explicit three-line stack — the headline never relies on where the box happens to
   wrap. overflow:hidden masks the words as they slide up on load; the padding/margin
   pair widens that clip box past the ascenders and descenders so nothing is cut off. */
.hero__line {
  display: block;
  overflow: hidden;
  padding-block: .16em;
  margin-block: -.16em;
}
.hero__word { display: inline-block; }
.hero h1 .accent {
  font-style: italic; font-weight: 600;
  background: linear-gradient(100deg, var(--brand) 0%, var(--gold-ink) 48%, var(--brand-600) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand);
}
.hero .lede { font-size: clamp(1.0625rem, .6vw + .95rem, 1.3125rem); color: var(--body); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s-5); }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 2.6vw, 40px);
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.stat__n { font-family: var(--font-display); font-size: clamp(1.625rem, 2.4vw, 2.5rem); font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat__star { display: inline-block; width: .55em; height: .55em; margin-left: .1em; color: var(--gold-ink); vertical-align: baseline; }
.stat__l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-hint__line { width: 1px; height: 42px; background: linear-gradient(var(--border), transparent); position: relative; overflow: hidden; }
.scroll-hint__line::after {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 1px; height: 14px;
  background: var(--brand); animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { transform: translateY(-14px); opacity: 0 } 30%,70% { opacity: 1 } 100% { transform: translateY(42px); opacity: 0 } }
/* on a short viewport there is no room for it below the stats */
@media (max-height: 720px) { .scroll-hint { display: none; } }

/* CSS fallback art when WebGL is unavailable */
.hero__fallback { position: absolute; inset: 0; z-index: 1; display: none; pointer-events: none; }
body.no-webgl .hero__fallback { display: block; }
body.no-webgl #hero-canvas { display: none; }
/* Speckled discs rather than plain spheres, so the no-WebGL hero still reads as
   millet cookies. The layered radial-gradients stand in for the baked texture. */
.hero__fallback i {
  position: absolute; display: block; border-radius: 50%;
  background:
    radial-gradient(circle at 22% 34%, rgba(94,58,22,.5) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 22%, rgba(62,36,12,.55) 0 4px, transparent 5px),
    radial-gradient(circle at 74% 63%, rgba(94,58,22,.45) 0 3px, transparent 4px),
    radial-gradient(circle at 38% 72%, rgba(62,36,12,.5) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 47%, rgba(240,214,164,.55) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 55%, rgba(240,214,164,.45) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 28%, #E3B87A 0%, #C4914F 42%, #96662F 78%, #6E4520 100%);
  box-shadow: inset 0 -8px 22px rgba(80,45,15,.4), 0 30px 70px rgba(110,52,16,.28);
}
.hero__fallback i:nth-child(1) { width: min(280px, 32vw); aspect-ratio: 1/.92; right: 9%;  top: 28%; transform: rotate(-8deg); }
.hero__fallback i:nth-child(2) { width: min(160px, 19vw); aspect-ratio: 1/.88; right: 31%; top: 60%; opacity: .92; transform: rotate(12deg); }
.hero__fallback i:nth-child(3) { width: min(112px, 13vw); aspect-ratio: 1/.9;  right: 5%;  top: 13%; opacity: .85; transform: rotate(-18deg); }

/* ---------- 7. Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); padding: 18px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee__track > span {
  display: inline-flex; align-items: center; gap: 14px; padding-inline: 28px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.marquee__track > span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- 8. Cards / products ---------- */
.cat-head { display: flex; align-items: baseline; gap: var(--s-3); margin: clamp(48px,5vw,72px) 0 var(--s-4); }
.cat-head:first-of-type { margin-top: 0; }
.cat-head h3 { font-size: clamp(1.25rem, 1.6vw, 1.625rem); white-space: nowrap; }
.cat-head .rule { flex: 1; height: 1px; background: var(--border); }
.cat-head .count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }

.grid { display: grid; gap: var(--s-3); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(201,138,43,.14), transparent 62%);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--gold-soft); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__thumb {
  height: 156px; border-radius: var(--r-md); margin-bottom: var(--s-3);
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--bg-alt), #EADCC4);
  border: 1px solid var(--border-soft);
}
.card__thumb::before {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.7), transparent 58%);
  filter: blur(6px);
}
.card__orb {
  position: relative; width: 92px; height: 92px; border-radius: 50%;
  box-shadow: inset 0 -6px 16px rgba(70,40,14,.42), inset 0 4px 10px rgba(255,235,200,.45), 0 14px 30px rgba(110,52,16,.24);
  transition: transform 400ms var(--ease);
}
.card:hover .card__orb { transform: scale(1.07) rotate(-6deg); }
.card__orb svg {
  position: absolute; inset: 0; margin: auto; width: 34px; height: 34px;
  color: #FFF8EC;
  /* the orbs range from pale wheat to deep terracotta — the shadow keeps the
     glyph legible on the lightest of them */
  filter: drop-shadow(0 1px 2px rgba(60,34,10,.55));
}

.card__tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-full);
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  color: var(--leaf); font-weight: 500;
}
.card h4 { font-size: 1.25rem; font-family: var(--font-display); margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: .9375rem; color: var(--muted); line-height: 1.6; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3);
  padding-top: var(--s-3); border-top: 1px solid var(--border-soft);
}
.chip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  padding: 6px 11px; border-radius: var(--r-full);
  background: var(--bg-alt); color: var(--body); white-space: nowrap;
}

/* ---------- 9. Process rail ---------- */
/* The rail is wider than the viewport by design (ScrollTrigger translates it on the
   x axis while the section is pinned). Clip it here, or that width becomes real
   horizontal page scroll. */
.rail-wrap { position: relative; overflow: hidden; }
.rail { display: flex; gap: var(--s-3); }
.step {
  flex: 0 0 clamp(272px, 32vw, 400px);
  background: var(--night-2);
  border: 1px solid rgba(231,196,137,.16);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2);
  position: relative; overflow: hidden;
  min-height: 340px;
}
.step::before {
  content: ""; position: absolute; inset: auto -30% -50% auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(201,138,43,.18), transparent 68%);
}
.step > * { position: relative; }
.step__n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--gold-soft); display: flex; align-items: center; gap: 10px;
}
.step__n::after { content: ""; flex: 1; height: 1px; background: rgba(231,196,137,.25); }
.step__ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(201,138,43,.14); border: 1px solid rgba(231,196,137,.24);
  color: var(--gold-soft); margin-top: auto;
}
.step__ico svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.5rem; color: #FBF4E9; letter-spacing: -.01em; }
.step p { font-size: .9375rem; color: #BFAB90; line-height: 1.65; }
.rail-progress { height: 2px; background: rgba(231,196,137,.18); border-radius: 2px; margin-top: var(--s-4); overflow: hidden; }
.rail-progress i { display: block; height: 100%; width: 20%; background: var(--gold); border-radius: 2px; }

/* ---------- 10. Feature list ---------- */
/* the intro column is much shorter than the feature list beside it — pinning it
   keeps the pair balanced instead of leaving a tall empty gutter */
.capability__intro { margin-bottom: 0; }
@media (min-width: 861px) {
  .capability__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
}
.feat { display: flex; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--border); }
.feat__ico {
  flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(150deg, #FFF9EE, var(--bg-alt));
  border: 1px solid var(--border); color: var(--brand);
}
.feat__ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.feat p { font-size: .9375rem; color: var(--muted); }

/* ---------- 11. Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(32px,5vw,72px); align-items: center; }
.founder__portrait {
  aspect-ratio: 4/5; border-radius: var(--r-lg); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--night-3), var(--night) 70%);
  border: 1px solid rgba(231,196,137,.18);
  display: grid; place-items: center;
}
.founder__portrait::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(231,196,137,.28), rgba(201,138,43,.06) 55%, transparent 72%);
  filter: blur(2px);
}
.founder__initials {
  position: relative; font-family: var(--font-display); font-size: clamp(4rem,9vw,7rem);
  font-weight: 700; color: var(--gold-soft); letter-spacing: -.03em; line-height: 1;
}
.founder__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-4);
  background: linear-gradient(transparent, rgba(21,12,4,.94) 45%);
  color: #FBF4E9;
}
.founder__cap strong { font-family: var(--font-display); font-size: 1.375rem; display: block; }
.founder__cap span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.quote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.1875rem, 2vw, 1.75rem); line-height: 1.45; color: var(--ink);
  border-left: 2px solid var(--gold); padding-left: var(--s-3); margin: var(--s-4) 0;
}
.founder dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.founder dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.founder dd { margin: 6px 0 0; font-weight: 600; color: var(--ink); font-size: .9375rem; }

/* ---------- 12. Reviews ---------- */
.review {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: var(--s-4);
  box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: var(--s-2);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.review .stars { display: flex; gap: 3px; color: var(--gold-ink); }
.review .stars svg { width: 16px; height: 16px; }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.review cite { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: auto; }

/* ---------- 13. Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px,5vw,72px); }
.info-list li { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid rgba(231,196,137,.16); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); flex: 0 0 84px; padding-top: 5px; }
.info-list .v { color: #E8DAC5; font-size: 1rem; line-height: 1.55; }
/* phone / WhatsApp are primary actions on a phone — keep them thumb-sized */
.info-list a {
  color: #FBF4E9; text-decoration-color: rgba(231,196,137,.5); text-underline-offset: 4px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.info-list a:hover { color: var(--gold-soft); }

.form { display: grid; gap: var(--s-2); }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(231,196,137,.22);
  border-radius: var(--r-sm); color: #FBF4E9;
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7C489' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: #241708; color: #FBF4E9; }
.field input::placeholder, .field textarea::placeholder { color: #8B7A63; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: rgba(255,255,255,.08); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.field .help { font-size: .8125rem; color: #A08D74; }
.field .err { font-size: .8125rem; color: #F5B49E; display: none; }
.field[data-invalid="true"] .err { display: block; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: #E0785A; }
.form .btn { margin-top: var(--s-2); }
.form__note { font-size: .8125rem; color: #A08D74; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.form__note svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--gold-soft); }

/* ---------- 14. CTA band ---------- */
.cta-band {
  border-radius: var(--r-lg); padding: clamp(40px,6vw,80px);
  background:
    radial-gradient(90% 140% at 84% 12%, rgba(201,138,43,.30), transparent 62%),
    linear-gradient(140deg, var(--night-3), var(--night) 72%);
  border: 1px solid rgba(231,196,137,.18);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #FBF4E9; font-size: clamp(1.75rem,3.6vw,3rem); letter-spacing: -.02em; margin-bottom: var(--s-2); }
.cta-band p { color: #BFAB90; max-width: 52ch; margin: 0 auto var(--s-4); }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 15. Footer ---------- */
.footer { background: var(--night); color: #A08D74; padding: clamp(56px,6vw,88px) 0 var(--s-4); position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-4); }
.footer h4 { color: #FBF4E9; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--s-1); }
.footer a { color: #BFAB90; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--gold-soft); }
.footer .brand__name { color: #FBF4E9; }
.footer .brand__sub { color: #8B7A63; }
.footer__about { color: #A08D74; font-size: .9375rem; max-width: 34ch; margin-top: var(--s-2); line-height: 1.6; }
.footer__bottom {
  margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid rgba(231,196,137,.14);
  display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); justify-content: space-between;
  align-items: center;
  font-size: .8125rem; color: #8B7A63;
}
/* credit line reads as normal footer text, with the studio name as the link */
.footer__credit { color: #8B7A63; }
.footer__credit a {
  display: inline; min-height: 0; font-size: inherit; color: #BFAB90;
  text-decoration: underline; text-decoration-color: rgba(231,196,137,.4);
  text-underline-offset: 3px;
  /* stays inline text as specified; vertical padding on an inline box grows the
     hit area to ~44px without affecting line layout or how it reads */
  padding-block: 14px;
}
.footer__credit a:hover { color: var(--gold-soft); text-decoration-color: var(--gold-soft); }

/* ---------- 16. Reveal ----------
   Hidden only when JS is present to bring it back (the .js class is set inline in
   <head>). Without JS, or if GSAP fails to load, the content is simply visible —
   nothing below the fold is invisible-by-default to a reader or a crawler. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in, .no-motion [data-reveal], .js.no-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .founder { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 420px; aspect-ratio: 5/4; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav > .nav__inner > .btn--sm { display: none; }
  /* Below 860px the copy is full-width, so the 3D gets its own band above it
     instead of sitting behind the headline and washing the text out. */
  #hero-canvas {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    width: 100%; height: 42svh;
  }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 42svh + 20px) 72px; }
  .scroll-hint { display: none; }
  .rail { flex-direction: column; }
  .step { flex: 1 1 auto; min-height: 0; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px 32px; }
  .hero__cta .btn, .cta-band .btn-row .btn { width: 100%; }
  .info-list li { flex-direction: column; gap: 6px; }
  .info-list .k { flex: none; padding-top: 0; }
}


/* ---------- 19. Language toggle + Kannada typography ---------- */
.lang {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px; border-radius: var(--r-full);
  background: rgba(255,255,255,.55); border: 1px solid var(--border);
}
.lang__btn {
  min-height: 38px; padding: 0 13px; border: 0; cursor: pointer;
  border-radius: var(--r-full); background: transparent;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  color: var(--muted); line-height: 1;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang__btn:hover { color: var(--brand); }
.lang__btn[aria-pressed="true"] { background: var(--brand); color: #FFF6E9; }
.lang__btn[lang="kn"] { font-family: "Noto Sans Kannada", var(--font-body); font-size: .875rem; }
.nav.is-dark .lang { background: rgba(255,255,255,.08); border-color: rgba(231,196,137,.24); }
.nav.is-dark .lang__btn { color: #C4B096; }
.nav.is-dark .lang__btn:hover { color: #FBF4E9; }
.nav.is-dark .lang__btn[aria-pressed="true"] { background: var(--gold); color: #21140A; }
/* the mobile menu gets its own copy, since the nav one is hidden there */
.lang--block { display: none; width: 100%; margin-top: var(--s-2); justify-content: center; }
.lang--block .lang__btn { flex: 1; min-height: 48px; }
@media (max-width: 860px) {
  .nav .lang { display: none; }
  .lang--block { display: inline-flex; }
}

/* Kannada needs taller lines (vowel signs sit above and below the base) and far
   less letter-spacing than the Latin label style, which would otherwise pull
   conjuncts apart. */
html[data-lang="kn"] {
  --font-display: "Noto Serif Kannada", "Playfair Display", Georgia, serif;
  --font-body: "Noto Sans Kannada", "Inter", -apple-system, sans-serif;
  --font-mono: "Noto Sans Kannada", "JetBrains Mono", monospace;
}
html[data-lang="kn"] body { line-height: 1.85; }
html[data-lang="kn"] h1,
html[data-lang="kn"] h2,
html[data-lang="kn"] h3,
html[data-lang="kn"] h4 { line-height: 1.4; letter-spacing: 0; }
html[data-lang="kn"] .hero h1 { font-size: clamp(1.75rem, 3.6vw, 3.15rem); line-height: 1.42; }
html[data-lang="kn"] .hero__line { padding-block: .2em; margin-block: -.2em; }
html[data-lang="kn"] .h-display { line-height: 1.38; }
html[data-lang="kn"] .lede { line-height: 1.8; }
html[data-lang="kn"] .quote { font-style: normal; line-height: 1.6; }
html[data-lang="kn"] .eyebrow,
html[data-lang="kn"] .stat__l,
html[data-lang="kn"] .chip,
html[data-lang="kn"] .step__n,
html[data-lang="kn"] .card__tag,
html[data-lang="kn"] .cat-head .count,
html[data-lang="kn"] .field label,
html[data-lang="kn"] .info-list .k,
html[data-lang="kn"] .footer h4,
html[data-lang="kn"] .brand__sub,
html[data-lang="kn"] .review cite,
html[data-lang="kn"] .founder dt,
html[data-lang="kn"] .hero__badge .pill,
html[data-lang="kn"] .marquee__track > span {
  letter-spacing: .04em;
  text-transform: none;
  line-height: 1.6;
}
html[data-lang="kn"] .stat__n { line-height: 1.35; }
html[data-lang="kn"] .info-list .k { flex-basis: 104px; }
/* review quotes stay in the reviewer's own English words */
html[data-lang="kn"] .review blockquote { font-family: var(--font-display), "Playfair Display", serif; }

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
  .scroll-hint__line::after { animation: none !important; }
}
