/* PSV Lifestyle Systems — design system
   Layout concept: "Disciplined Premium" — ivory reading surfaces, deep-navy authority bands,
   gold used only for action; the angled bar from the SYSTEMS badge is the recurring motif. */
/* Self-hosted fonts (Barlow, Barlow Condensed, Noto Sans Tamil — SIL Open Font License) */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+20B9}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+20B9}
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+20B9}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+20B9}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+20B9}
@font-face{font-family:"Noto Sans Tamil";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/noto-sans-tamil-tamil-400-normal.woff2) format("woff2");unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+25CC}
@font-face{font-family:"Noto Sans Tamil";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/noto-sans-tamil-tamil-600-normal.woff2) format("woff2");unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+25CC}
@font-face{font-family:"Noto Sans Tamil";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/noto-sans-tamil-tamil-700-normal.woff2) format("woff2");unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+25CC}

:root {
  --navy-950: #061227;
  --navy-900: #0A1C3A;
  --navy-800: #112A52;
  --navy-700: #1A3A6B;
  --royal: #1F4FB0;
  --gold: #E3A92B;
  --gold-deep: #B9821A;
  --gold-soft: #F6E3B4;
  --ivory: #F6F3EC;
  --paper: #FFFFFF;
  --ink: #0D1626;
  --ink-2: #39445A;
  --muted: #5E6880;
  --line: #DCD6C8;
  --line-dark: rgba(255,255,255,.14);
  --on-dark: #F4F1E9;
  --on-dark-2: #B8C2D6;
  --ok: #1E7A4C;
  --err: #B42318;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-tamil: "Noto Sans Tamil", "Latha", "Tamil Sangam MN", sans-serif;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1.0625rem; --t-lg: 1.25rem;
  --t-h4: 1.375rem; --t-h3: clamp(1.6rem, 1.3rem + 1vw, 2rem); --t-h2: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem); --t-h1: clamp(2.75rem, 1.8rem + 4.2vw, 5.5rem);
  --wrap: 1200px; --wrap-narrow: 760px;
  --r: 4px;
  --shadow: 0 1px 2px rgba(6,18,39,.06), 0 12px 32px -12px rgba(6,18,39,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 var(--t-md)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
:lang(ta), .ta { font-family: var(--f-tamil); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: -.005em; margin: 0; text-wrap: balance; color: inherit; text-transform: uppercase; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.08; }
h4 { font-size: var(--t-h4); line-height: 1.15; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--s-4); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--gold); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--navy-950); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * 32px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.wrap.narrow { max-width: calc(var(--wrap-narrow) + 64px); }
.section { padding-block: var(--s-8); }
@media (min-width: 900px) { .section { padding-block: var(--s-9); } }
.section.tight { padding-block: var(--s-7); }
.band-paper { background: var(--paper); }
.band-navy { background: var(--navy-900); color: var(--on-dark); }
.band-deep { background: var(--navy-950); color: var(--on-dark); }
.band-gold { background: var(--gold); color: var(--navy-950); }
.on-dark a:not(.btn) { color: var(--gold); }
.on-dark a:not(.btn):hover { color: var(--gold-soft); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.grid { display: grid; gap: var(--s-5); }
.grid > * { min-width: 0; }
@media (min-width: 700px) { .g-2 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: repeat(2, 1fr); } .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g-3 { grid-template-columns: repeat(3, 1fr); } .g-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: var(--s-7); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); } .split.rev > :first-child { order: 2; } .split.top { align-items: start; } .split.wide-l { grid-template-columns: 1.4fr 1fr; } }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 600 var(--t-xs)/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow::before { content: ""; width: 26px; height: 8px; background: currentColor; transform: skewX(-28deg); flex: none; }
.on-dark .eyebrow { color: var(--gold); }
.lede { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.on-dark .lede { color: var(--on-dark-2); }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--on-dark-2); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.gold { color: var(--gold); }
.measure { max-width: 64ch; }
.head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: 780px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.num { font-variant-numeric: tabular-nums; }
.hl { color: var(--gold-deep); }
.on-dark .hl { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--gold); --fg: var(--navy-950); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.6rem; border: 0; background: transparent; color: var(--fg); cursor: pointer;
  font: 700 1rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); transform: skewX(-12deg); transition: background .2s var(--ease), transform .2s var(--ease); }
.btn:hover { color: var(--fg); }
.btn:hover::before { background: var(--gold-deep); transform: skewX(-12deg) translateY(-1px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-navy { --bg: var(--navy-900); --fg: var(--on-dark); }
.btn-navy:hover::before { background: var(--royal); }
.btn-ghost { --fg: var(--navy-900); }
.btn-ghost::before { background: transparent; box-shadow: inset 0 0 0 2px var(--navy-900); }
.btn-ghost:hover::before { background: var(--navy-900); }
.btn-ghost:hover { --fg: var(--on-dark); }
.on-dark .btn-ghost { --fg: var(--on-dark); }
.on-dark .btn-ghost::before { box-shadow: inset 0 0 0 2px rgba(244,241,233,.6); }
.on-dark .btn-ghost:hover::before { background: var(--on-dark); box-shadow: none; }
.on-dark .btn-ghost:hover { --fg: var(--navy-950); }
.btn-wa { --bg: #1C8C4E; --fg: #fff; }
.btn-wa:hover::before { background: #146C3B; }
.btn-sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .875rem; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; line-height: 1.15; } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); align-items: center; }
.link-arrow { font: 700 .95rem/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--navy-900); display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy-950); color: var(--on-dark-2); font-size: var(--t-xs); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .tag { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.topbar .contacts { display: flex; gap: 1.25rem; }
@media (max-width: 640px) { .topbar .tag { display: none; } .topbar .wrap { justify-content: center; } }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }
@media (min-width: 1100px) { .brand img { height: 56px; } }
.nav { display: none; }
.nav-cta { display: none; }
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: .25rem; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none !important; }
}
.nav > li { list-style: none; position: relative; }
.nav a, .nav button.sub-toggle { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .7rem; background: none; border: 0; cursor: pointer; color: var(--ink); text-decoration: none;
  font: 600 .95rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.nav a:hover, .nav button.sub-toggle:hover, .nav a[aria-current="page"], .nav .is-current > button { color: var(--royal); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.nav .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav .open > button .caret { transform: translateY(2px) rotate(-135deg); }
.subnav { position: absolute; top: calc(100% + 10px); left: -.5rem; min-width: 300px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: var(--shadow); padding: .5rem; display: none; }
.open > .subnav { display: block; }
.subnav li { list-style: none; }
.subnav a { display: block; padding: .75rem .9rem; font: 600 1rem/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.subnav a small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-xs); margin-top: .2rem; }
.subnav a:hover { background: var(--ivory); color: var(--navy-900); }
.menu-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .85rem; background: var(--navy-900); color: var(--on-dark); border: 0; cursor: pointer; font: 700 .9rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.menu-toggle .bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - 112px); overflow-y: auto; }
.mobile-nav.open { display: block; }
@media (min-width: 1100px) { .mobile-nav, .mobile-nav.open { display: none; } }
.mobile-nav ul { list-style: none; }
.mobile-nav .wrap { padding-block: var(--s-4) var(--s-6); }
.mobile-nav .grp { border-bottom: 1px solid var(--line); padding-block: var(--s-3); }
.mobile-nav .grp-title { font: 700 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); padding-block: .5rem; }
.mobile-nav a { display: block; padding: .6rem 0; font: 600 1.35rem/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--royal); }
.mobile-nav .btn { margin-top: var(--s-5); width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-950); color: var(--on-dark); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -8%; top: -10%; width: 46%; height: 130%; background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); transform: skewX(-14deg); z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: var(--s-7); padding-block: var(--s-7) var(--s-8); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; padding-block: var(--s-8) var(--s-9); } }
.hero h1 .gold { display: block; }
.hero .lede { margin-top: var(--s-5); }
.hero .btn-row { margin-top: var(--s-6); }
.hero-photo { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-photo .frame { position: relative; aspect-ratio: 4/5; max-width: 100%; overflow: hidden; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); background: var(--navy-800); }
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-photo .bar { position: absolute; left: -4%; bottom: 9%; background: var(--gold); color: var(--navy-950); padding: .7rem 1.4rem; font: 700 1rem/1.15 var(--f-display); letter-spacing: .08em; text-transform: uppercase; transform: skewX(-12deg); box-shadow: var(--shadow); }
.hero-photo .bar span { display: block; transform: skewX(12deg); }
.hero-photo .bar small { display: block; font: 600 .75rem/1.3 var(--f-body); letter-spacing: .12em; }
.creds { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); list-style: none; }
.creds li { display: grid; gap: .15rem; }
.creds b { font: 700 1.9rem/1 var(--f-display); color: var(--gold); letter-spacing: .02em; }
.creds span { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }

/* Page hero (inner pages) */
.page-hero { background: var(--navy-950); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -6%; top: 0; bottom: 0; width: 34%; background: var(--navy-800); transform: skewX(-14deg); opacity: .65; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: var(--s-7) var(--s-8); }
@media (min-width: 900px) { .page-hero .wrap { padding-block: var(--s-8) var(--s-9); } }
.page-hero h1 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.75rem); max-width: 16ch; margin-top: var(--s-4); }
.page-hero .lede { margin-top: var(--s-5); }
.page-hero .btn-row { margin-top: var(--s-6); }
.crumbs { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.page-hero.has-photo .grid-2 { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .page-hero.has-photo .grid-2 { grid-template-columns: 1.3fr .7fr; } }
.page-hero .side-photo { aspect-ratio: 4/5; max-width: 100%; overflow: hidden; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); justify-self: center; width: min(100%, 360px); background: var(--navy-800); }
.page-hero .side-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---------- Systems index ---------- */
.systems { display: grid; border-top: 1px solid var(--line-dark); }
.systems > li { list-style: none; display: grid; gap: var(--s-2) var(--s-6); grid-template-columns: 3.5rem 1fr; padding-block: var(--s-5); border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.systems .idx { font: 700 1.1rem/1 var(--f-display); color: var(--gold); letter-spacing: .08em; }
.systems h3 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.systems p { grid-column: 2; color: var(--on-dark-2); max-width: 56ch; }
@media (min-width: 900px) { .systems { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } .systems > li { grid-template-columns: 3.5rem 1fr; } }
@media (min-width: 1100px) { .systems > li { grid-template-columns: 4rem 16rem 1fr; } .systems p { grid-column: 3; } .systems { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); position: relative; }
.card h3 { font-size: 1.75rem; }
.card .link-arrow { margin-top: auto; padding-top: var(--s-3); }
.card.link-card { text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy-700); }
.card .kicker { font: 600 var(--t-xs)/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card.dark { background: var(--navy-900); color: var(--on-dark); border-color: var(--navy-800); }
.card.dark .kicker, .card.dark p { color: var(--on-dark-2); }
.card.dark .link-arrow, .card.dark a:not(.btn) { color: var(--gold); }
.card.dark .ticks li::before { border-color: var(--gold); }
.tagline { position: absolute; top: -1px; right: var(--s-5); background: var(--gold); color: var(--navy-950); font: 700 .75rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; padding: .45rem .8rem; }

.tagline.navy { background: var(--navy-900); color: var(--on-dark); }
/* Pricing */
.price-card { background: var(--paper); border: 1px solid var(--line); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); position: relative; }
.price-card.featured { border: 2px solid var(--navy-900); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.6rem; }
.price { font: 700 3rem/1 var(--f-display); color: var(--navy-900); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.price small { font: 500 var(--t-sm)/1 var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: .25rem; }
.ticks { list-style: none; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--gold-deep); border-bottom: 2.5px solid var(--gold-deep); transform: rotate(-45deg); }
.on-dark .ticks li::before { border-color: var(--gold); }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--navy-900); color: var(--on-dark); font: 700 .85rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.price-table td.amt { font: 700 1.35rem/1 var(--f-display); color: var(--navy-900); white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }

/* Steps (real sequences) */
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(s, decimal-leading-zero); font: 700 2.4rem/1 var(--f-display); color: var(--gold-deep); }
.steps h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.on-dark .steps > li { border-color: var(--line-dark); }
.on-dark .steps > li::before { color: var(--gold); }
.on-dark .steps p { color: var(--on-dark-2); }
.steps.cols { gap: 0 var(--s-6); }
@media (min-width: 900px) { .steps.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chain { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.chain li { background: var(--paper); border: 1px solid var(--line); padding: .5rem .9rem; font: 600 .95rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.on-dark .chain li { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }

/* Quote */
blockquote { margin: 0; }
.quote { position: relative; padding-left: var(--s-6); border-left: 4px solid var(--gold); }
.quote p { font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem)/1.2 var(--f-display); text-transform: none; letter-spacing: .005em; }
.quote cite { display: block; margin-top: var(--s-4); font-style: normal; font-size: var(--t-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.on-dark .quote cite { color: var(--on-dark-2); }

/* Photos */
.photo { position: relative; overflow: hidden; background: var(--navy-800); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.r-45 { aspect-ratio: 4/5; }
.photo.r-34 { aspect-ratio: 3/4; }
.photo.r-11 { aspect-ratio: 1/1; }
.photo.r-169 { aspect-ratio: 16/10; }
.photo.angled { clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
figure { margin: 0; }
figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: .6rem; letter-spacing: .02em; }
.gallery { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(5, 1fr); } }

/* Timeline */
.timeline { list-style: none; position: relative; display: grid; gap: var(--s-6); padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-2rem + 0px); top: .3rem; width: 12px; height: 12px; background: var(--gold); transform: skewX(-14deg); }
.timeline .when { font: 700 .95rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.timeline h3 { font-size: 1.45rem; margin: .35rem 0 .3rem; }
.on-dark .timeline::before { background: var(--line-dark); }
.on-dark .timeline .when { color: var(--gold); }
.ladder { list-style: none; display: grid; gap: .5rem; }
.ladder li { display: flex; gap: .8rem; align-items: baseline; padding: .7rem 1rem; background: var(--navy-900); color: var(--on-dark); font: 600 1.05rem/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.ladder li b { color: var(--gold); font-weight: 700; min-width: 2ch; }
.ladder li:last-child { background: var(--gold); color: var(--navy-950); }
.ladder li:last-child b { color: var(--navy-950); }

/* Facts list */
.facts { display: grid; gap: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: var(--s-4); padding-block: .9rem; border-bottom: 1px solid var(--line); }
.facts li > span:first-child { font: 600 var(--t-xs)/1.5 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.on-dark .facts li { border-color: var(--line-dark); }
.on-dark .facts li > span:first-child { color: var(--on-dark-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.15rem; font: 700 1.3rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.8rem/1 var(--f-body); color: var(--gold-deep); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 70ch; }

/* Notice */
.notice { border-left: 4px solid var(--navy-700); background: var(--paper); padding: var(--s-4) var(--s-5); font-size: var(--t-sm); color: var(--ink-2); }
.on-dark .notice { background: rgba(255,255,255,.05); color: var(--on-dark-2); border-color: var(--gold); }

/* Forms */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .field legend { font: 600 var(--t-sm)/1.3 var(--f-body); color: var(--ink); }
.field .req { color: var(--err); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1.5px solid #BFB8A8; border-radius: var(--r); background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--f-body); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy-900); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.field .err { color: var(--err); font-size: var(--t-xs); font-weight: 600; }
.row-2 { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.row-3 { display: grid; gap: var(--s-4); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--t-sm); }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--navy-900); flex: none; }
.form-status { padding: var(--s-4); border-left: 4px solid var(--ok); background: #E9F5EE; color: #134D31; font-weight: 500; }
.form-status.is-err { border-color: var(--err); background: #FCEDEB; color: #7A1A12; }
.form-panel { background: var(--paper); border: 1px solid var(--line); padding: var(--s-6); box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-panel { padding: var(--s-7); } }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.seg legend { margin-bottom: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg label span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem; border: 1.5px solid #BFB8A8; border-radius: var(--r); background: var(--paper); cursor: pointer; font-weight: 600; font-size: var(--t-sm); }
.seg label input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }
.seg label input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Assessment results */
.metrics { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--paper); padding: var(--s-5); display: grid; gap: .3rem; align-content: start; }
.metric .k { font: 600 var(--t-xs)/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.metric .v { font: 700 2.4rem/1 var(--f-display); color: var(--navy-900); font-variant-numeric: tabular-nums; }
.metric .v small { font: 500 .9rem/1 var(--f-body); color: var(--muted); margin-left: .2rem; }
.metric .s { font-size: var(--t-xs); color: var(--ink-2); }
.pill { display: inline-block; padding: .25rem .6rem; border-radius: 99px; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; background: var(--gold-soft); color: #6B4A0B; justify-self: start; }
.pill.ok { background: #DDF0E5; color: #145233; }
.pill.warn { background: #FDE7C8; color: #7A4706; }
.pill.hi { background: #FBDAD6; color: #8A1C12; }
.macro-bar { display: flex; height: 14px; overflow: hidden; border-radius: 2px; margin-top: var(--s-3); }
.macro-bar span { display: block; }

/* Product cards */
.product { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.product .cover { aspect-ratio: 3/2; max-width: 100%; background: var(--navy-900); color: var(--on-dark); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: var(--s-5); }
.product .cover::after { content: ""; position: absolute; right: -12%; top: 0; bottom: 0; width: 42%; background: var(--navy-800); transform: skewX(-14deg); }
.product .cover > * { position: relative; z-index: 1; }
.product .cover .lvl { font: 700 3.25rem/0.9 var(--f-display); color: var(--gold); }
.product .cover .ser { font: 600 .72rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.product .cover.gold { background: var(--gold); color: var(--navy-950); }
.product .cover.gold::after { background: var(--gold-deep); opacity: .35; }
.product .cover.gold .lvl { color: var(--navy-950); }
.product .cover.gold .ser { color: var(--navy-900); }
.product .body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.product h3 { font-size: 1.4rem; }
.product .meta { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: var(--s-3); border-top: 1px solid var(--line); flex-wrap: wrap; }
.product .amt { font: 700 1.9rem/1 var(--f-display); color: var(--navy-900); font-variant-numeric: tabular-nums; }

/* Article */
.article { font-size: 1.125rem; line-height: 1.75; }
.article h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); margin: var(--s-7) 0 var(--s-4); }
.article p + p { margin-top: var(--s-4); }
.article ul, .article ol { padding-left: 1.3em; margin-top: var(--s-4); }
.article li + li { margin-top: .4em; }
.article :lang(ta), .article.ta { line-height: 1.9; }
.byline { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: var(--t-sm); color: var(--on-dark-2); margin-top: var(--s-5); }
.post-card { display: grid; gap: var(--s-3); text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); padding: var(--s-6); transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card h3 { font-size: 1.8rem; text-transform: none; }
.post-card h3:lang(ta) { font-family: var(--f-tamil); font-weight: 700; font-size: 1.45rem; line-height: 1.45; }

/* CTA band */
.cta-band { background: var(--gold); color: var(--navy-950); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -10%; top: 0; bottom: 0; width: 36%; background: rgba(255,255,255,.14); transform: skewX(-14deg); pointer-events: none; }
.cta-band .wrap { position: relative; display: grid; gap: var(--s-5); padding-block: var(--s-8); align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.3fr auto; } }
.cta-band h2 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.75rem); }
.cta-band p { margin-top: var(--s-3); max-width: 56ch; color: #2A2410; font-size: var(--t-lg); }
.cta-band .btn-ghost::before { box-shadow: inset 0 0 0 2px var(--navy-950); }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); font-size: var(--t-sm); }
.site-footer .wrap { padding-block: var(--s-8) var(--s-6); }
.foot-grid { display: grid; gap: var(--s-6); }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot-brand img { width: 96px; height: 96px; }
.foot-brand p { margin-top: var(--s-4); max-width: 34ch; }
.foot-brand .tag { font: 700 1.25rem/1.1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); margin-top: var(--s-4); }
.site-footer h2 { font: 700 .85rem/1 var(--f-body); letter-spacing: .18em; color: var(--gold); margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-5); list-style: none; }
.socials a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line-dark); color: var(--on-dark); }
.socials a:hover { background: var(--gold); color: var(--navy-950); border-color: var(--gold); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); font-size: var(--t-xs); }

/* WhatsApp float */
.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1C8C4E; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float:hover { background: #146C3B; color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Misc */
.divider-bar { height: 10px; width: 64px; background: var(--gold); transform: skewX(-28deg); }
.stat-row { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, 1fr); list-style: none; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row li { border-top: 3px solid var(--gold); padding-top: var(--s-4); }
.stat-row b { display: block; font: 700 clamp(2.2rem, 1.6rem + 2vw, 3.25rem)/1 var(--f-display); color: var(--navy-900); }
.on-dark .stat-row b { color: var(--on-dark); }
.stat-row span { font-size: var(--t-sm); color: var(--muted); }
.on-dark .stat-row span { color: var(--on-dark-2); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.tags li { font: 600 .78rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .7rem; background: var(--ivory); border: 1px solid var(--line); }
.on-dark .tags li { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.not-found { min-height: 50vh; display: grid; place-items: center; text-align: center; }
.not-found .big { font: 700 clamp(6rem, 4rem + 10vw, 12rem)/0.85 var(--f-display); color: var(--gold); }

/* Light surfaces placed inside dark bands keep light-surface colours */
.price-card, .card:not(.dark), .product, .form-panel, .price-table { color: var(--ink); }
.on-dark :is(.price-card, .card:not(.dark), .form-panel, .table-scroll) .muted { color: var(--muted); }
.on-dark :is(.price-card, .card:not(.dark), .form-panel, .table-scroll) a:not(.btn) { color: var(--royal); }
.on-dark :is(.price-card, .card:not(.dark), .form-panel, .table-scroll) .link-arrow { color: var(--navy-900); }
.on-dark :is(.price-card, .card:not(.dark), .form-panel) .ticks li::before { border-color: var(--gold-deep); }
.on-dark :is(.price-card, .card:not(.dark), .form-panel) .btn-ghost { --fg: var(--navy-900); }
.on-dark :is(.price-card, .card:not(.dark), .form-panel) .btn-ghost::before { box-shadow: inset 0 0 0 2px var(--navy-900); }
.on-dark :is(.price-card, .card:not(.dark), .form-panel) .btn-ghost:hover { --fg: var(--on-dark); }
.on-dark :is(.price-card, .card:not(.dark), .form-panel) .btn-ghost:hover::before { background: var(--navy-900); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .site-header, .site-footer, .wa-float, .cta-band { display: none; } body { background: #fff; } }
.article ul + p, .article ol + p { margin-top: var(--s-4); }
@media (max-width: 699px) { .product .cover { aspect-ratio: 16/7; } .product .cover .lvl { font-size: 2.6rem; } }

/* ---------- Background video heroes ---------- */
.has-video { position: relative; isolation: isolate; }
.has-video::after { display: none; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: var(--navy-950); }
.has-video::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,18,39,.94) 0%, rgba(6,18,39,.82) 42%, rgba(6,18,39,.45) 75%, rgba(6,18,39,.3) 100%), linear-gradient(0deg, rgba(6,18,39,.7), rgba(6,18,39,0) 40%); }
@media (max-width: 899px) { .has-video::before { background: linear-gradient(180deg, rgba(6,18,39,.72), rgba(6,18,39,.9)); } }
.hero.has-video .hero-grid { grid-template-columns: minmax(0, 720px); min-height: min(78vh, 760px); align-content: center; }
.video-toggle { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; z-index: 2; min-height: 36px; padding: .4rem .8rem; border: 1px solid rgba(244,241,233,.4); background: rgba(6,18,39,.55); color: var(--on-dark); font: 600 .75rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.video-toggle:hover { background: var(--navy-950); }
@media (min-width: 1100px) { .video-toggle { right: 32px; bottom: 24px; } }
.hero .wrap { position: relative; }

/* ---------- Result collages & archive ---------- */
.results-grid { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.results-grid figure { background: var(--paper); border: 1px solid var(--line); padding: .5rem; }
.results-grid img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--navy-950); }
.results-grid figcaption { padding: .5rem .25rem 0; }
.archive { display: flex; gap: var(--s-3); overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.archive figure { flex: 0 0 auto; scroll-snap-align: start; }
.archive img { height: clamp(260px, 42vw, 440px); width: auto; max-width: none; }
.article-video video { width: 100%; max-height: 80vh; background: #000; margin-top: var(--s-4); }
.page-hero.has-video .wrap { padding-block: var(--s-8) var(--s-9); }
@media (max-width: 899px) { .video-toggle { right: auto; left: max(16px, env(safe-area-inset-left, 0px)); } }

/* ---------- Photo band & masonry galleries ---------- */
.photo-band { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
.photo-band figure { overflow: hidden; aspect-ratio: 4/3; max-width: 100%; background: var(--navy-800); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-band figure:hover img { transform: scale(1.03); }
.photo-band .pb-wide { grid-column: 1 / -1; aspect-ratio: 16/8; }
@media (min-width: 900px) { .photo-band { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); } .photo-band .pb-wide { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; } .photo-band figure:not(.pb-wide) { aspect-ratio: 4/3; } }
.masonry { columns: 2 160px; column-gap: var(--s-3); }
@media (min-width: 900px) { .masonry { columns: 3; } }
.masonry figure { break-inside: avoid; margin-bottom: var(--s-3); background: var(--navy-800); }
.masonry img { width: 100%; height: auto; display: block; }

/* ---------- Vertical training reels ---------- */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: var(--s-3); margin-top: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
.reel { position: relative; scroll-snap-align: start; aspect-ratio: 9/16; max-width: 100%; overflow: hidden; background: var(--navy-800); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(0deg, rgba(6,18,39,.85), rgba(6,18,39,0)); color: var(--on-dark); font: 700 .95rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 900px) { .reels { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } .reel { aspect-ratio: 4/5; } }

/* ---------- Payment toast ---------- */
.pay-toast { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100% - 32px)); background: var(--paper); color: var(--ink); border-left: 5px solid var(--ok); box-shadow: var(--shadow); padding: 1rem 2.75rem 1rem 1.1rem; font-size: var(--t-sm); line-height: 1.5; }
.pay-toast.is-err { border-left-color: var(--gold-deep); }
.pay-toast .btn { margin-top: .75rem; }
.pay-x { position: absolute; top: .4rem; right: .5rem; width: 36px; height: 36px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
a[aria-busy="true"] { pointer-events: none; opacity: .85; }

/* ---------- PSV Story Series ---------- */
.ep-grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
.ep-card h3, .page-hero h1[lang="ta"], .article.ta p, .article.ta li { overflow-wrap: anywhere; }
@media (min-width: 760px) { .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ep-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.ep-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.ep-thumb { position: relative; aspect-ratio: 4/3; max-width: 100%; overflow: hidden; background: var(--navy-800); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ep-num { position: absolute; left: 0; bottom: 0; background: var(--gold); color: var(--navy-950); font: 700 1.05rem/1 var(--f-display); letter-spacing: .12em; padding: .55rem .9rem; }
.ep-body { padding: var(--s-5); display: grid; gap: .5rem; }
.ep-body h3:lang(ta) { font-family: var(--f-tamil); text-transform: none; font-size: 1.35rem; line-height: 1.4; }
.ep-en { font: 600 1rem/1.3 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.ep-soon { border-style: dashed; background: transparent; justify-content: center; min-height: 220px; }
.scene-label { display: flex; gap: .8rem; align-items: center; margin: var(--s-7) 0 var(--s-3) !important; font: 700 .85rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-family: var(--f-display); }
.scene-label span { background: var(--navy-900); color: var(--gold); padding: .4rem .6rem; }
.story .scene-label:first-child { margin-top: 0 !important; }
.story-hook { font-size: 1.3rem; line-height: 1.8; }
.story-pull { overflow-wrap: anywhere;  font-size: 1.35rem; font-weight: 700; color: var(--navy-900); border-left: 4px solid var(--gold); padding-left: 1rem; line-height: 1.7; }
.story-quotes { list-style: none; padding: 0 !important; display: grid; gap: .5rem; }
.story-quotes li { background: var(--paper); border: 1px solid var(--line); padding: .7rem 1rem; font-style: italic; }
.story-fig { margin: var(--s-6) 0; max-width: 360px; }
.story-fig.wide { max-width: 100%; }
.story-fig img { width: 100%; height: auto; }
.series-sign { margin-top: var(--s-7); padding: var(--s-6); background: var(--navy-900); color: var(--on-dark); display: grid; gap: .5rem; text-align: center; justify-items: center; }
.series-sign strong { font: 700 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--f-display); text-transform: uppercase; color: var(--gold); }
.series-sign em { color: var(--on-dark-2); font-size: var(--t-sm); }
.ep-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.nav a, .nav button.sub-toggle { white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1279px) { .nav a, .nav button.sub-toggle { padding-inline: .45rem; font-size: .88rem; letter-spacing: .08em; } .brand img { height: 46px; } }
.story-quotes.plain li { font-style: normal; }
.ep-type { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); display: grid; place-items: center; }
.ep-badge { display: grid; gap: .4rem; justify-items: center; text-align: center; color: var(--on-dark); }
.ep-badge b { font: 700 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; background: linear-gradient(180deg, #F2F4F7, #9AA3B2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ep-badge small { font: 600 .75rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.story-pair { display: grid; gap: var(--s-3); margin: var(--s-6) 0; }
@media (min-width: 640px) { .story-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.story-pair img { width: 100%; height: auto; }
.story-pair figcaption, .story-fig figcaption { font-family: var(--f-body); }
