/* ------------------------------------------------------------------
   Oliyon Research — site styles
   Navy wordmark, gold flame. Same bones as oliyon.in, dressed for
   a research institute: kolam dots, paper grain, palm-leaf ruling.
   ------------------------------------------------------------------ */

:root {
  --navy: #002655;
  --navy-deep: #001a3d;
  --ink: #15213a;
  --muted: #566070;
  --gold: #c9962e;        /* working gold between the logo and the flame */
  --gold-bright: #e9a108; /* logo flame */
  --gold-antique: #c09146;/* hero / favicon flame */
  --gold-soft: #eadbb3;
  --paper: #fbfaf6;
  --leaf: #f3eee2;
  --line: #ddd6c6;
  --line-soft: #ebe6d9;
  --white: #ffffff;

  --serif: "Source Serif 4", "Noto Serif Tamil", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tamil: "Noto Serif Tamil", "Source Serif 4", serif;
  --measure: 62ch;

  --max: 1120px;
  --gutter: 24px;
  --radius: 6px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lang-ta { font-family: var(--tamil); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Header / navigation (logo left, links right) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 15.5px; font-weight: 500; color: var(--navy); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy); }
.nav-links .lang-switch {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14.5px;
  color: var(--navy); background: var(--white); transition: border-color .2s, background .2s;
}
.nav-links .lang-switch:hover { border-color: var(--gold); border-bottom-color: var(--gold); background: var(--paper); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .nav { height: 70px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--gold); }
  .nav-links .lang-item { border-top: 0; padding-top: 8px; }
  .nav-links .lang-switch { display: inline-block; padding: 8px 16px; }
}

/* ---------- Textures ---------- */

/* kolam dot grid: two staggered dot layers */
.texture-kolam::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(0, 38, 85, .16) 1.1px, transparent 1.7px),
    radial-gradient(circle, rgba(0, 38, 85, .16) 1.1px, transparent 1.7px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
}

/* paper grain */
.texture-grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* palm-leaf ruling (olai lines) */
.texture-olai {
  background-color: var(--leaf);
  background-image:
    repeating-linear-gradient(180deg, rgba(0, 38, 85, .055) 0 1px, transparent 1px 30px);
}

/* gold kolam on navy bands */
.band-navy {
  position: relative; isolation: isolate; color: #fff; background: var(--navy); overflow: hidden;
}
.band-navy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/kolam-gold.svg?v=fb472d024d") center / 56px 56px; opacity: 0.09;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}

/* ornament: gold rule with a small lamp-flame diamond */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); margin: 0 auto;
}
.ornament::before, .ornament::after { content: ""; height: 1px; width: 56px; background: var(--gold); opacity: .8; }
.ornament svg { width: 12px; height: 12px; fill: var(--gold); }

/* ---------- Hero (same composition as oliyon.in) ----------
   Text on the left: Tamil name, tagline, heading, lead. The living flame
   burns in a 260px column on the right with a kolam drawn faintly around it. */

.hero { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line-soft); padding: 72px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/kolam.svg?v=164010e7e0") center / 56px 56px;
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(46% 80% at 78% 50%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
          mask-image: radial-gradient(46% 80% at 78% 50%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "brand light" "copy light";
  column-gap: 56px;
  align-items: center;
}
.hero-brand { grid-area: brand; align-self: end; }
.hero-brand .name { font-family: var(--tamil); font-size: 1.7rem; font-weight: 500; line-height: 1.3; color: var(--navy); margin: 0; }
.hero-brand .tagline { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 6px 0 0; }
.hero-copy { grid-area: copy; align-self: start; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--navy); margin: 28px 0 20px; max-width: 18ch; }
.hero .lead { max-width: var(--measure); font-size: 1.2rem; line-height: 1.55; color: var(--ink); margin: 0; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-light { grid-area: light; position: relative; justify-self: center; width: min(100%, 11rem); }
.hero-light::before {
  content: ""; position: absolute; left: 50%; top: 58%; width: 260%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 92, 0.42), rgba(255, 196, 92, 0.16) 45%, rgba(255, 196, 92, 0.04) 72%, rgba(255, 196, 92, 0) 100%);
  animation: glow-breathe 3.9s ease-in-out infinite;
  pointer-events: none;
}
.flame { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; animation: flame-in 1.6s var(--ease) both; }
.flame__body { transform-box: fill-box; transform-origin: 50% 100%; animation: flame-flicker 1.9s ease-in-out infinite; }
.flame__glow { animation: glow-flicker 1.3s ease-in-out infinite alternate; }
.flame__hot { animation: hot-flicker 2.3s ease-in-out infinite; }

@keyframes flame-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes flame-flicker {
  0%   { transform: scale(1, 1); }
  14%  { transform: scale(1.006, 0.991); }
  31%  { transform: scale(0.995, 1.012); }
  47%  { transform: scale(1.004, 0.996); }
  66%  { transform: scale(0.996, 1.01); }
  83%  { transform: scale(1.003, 0.997); }
  100% { transform: scale(1, 1); }
}
@keyframes glow-flicker { 0% { opacity: 0.58; } 30% { opacity: 0.74; } 55% { opacity: 0.62; } 80% { opacity: 0.72; } 100% { opacity: 0.66; } }
@keyframes hot-flicker { 0%, 100% { opacity: 0.72; } 40% { opacity: 0.86; } 70% { opacity: 0.66; } }
@keyframes glow-breathe {
  0%   { opacity: 0.86; scale: 0.985; }
  22%  { opacity: 1;    scale: 1.02; }
  40%  { opacity: 0.9;  scale: 0.995; }
  63%  { opacity: 1;    scale: 1.03; }
  81%  { opacity: 0.88; scale: 1; }
  100% { opacity: 0.86; scale: 0.985; }
}

@media (max-width: 760px) {
  .hero { padding: 40px 0 52px; }
  .hero::before {
    -webkit-mask-image: radial-gradient(60% 40% at 80% 14%, #000 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
            mask-image: radial-gradient(60% 40% at 80% 14%, #000 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  }
  /* One composition on a phone: the flame stands beside the Tamil name,
     the heading and lead run the full width underneath. */
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) 4.25rem;
    grid-template-areas: "brand light" "copy copy";
    column-gap: 20px; row-gap: 0;
    align-items: center;
  }
  .hero-brand { align-self: center; }
  .hero-brand .name { font-size: 1.5rem; }
  .hero-brand .tagline { font-size: 0.72rem; letter-spacing: 0.12em; }
  .hero-light { width: 100%; align-self: center; }
  .hero-light::before { width: 320%; }
  .hero h1 { margin-top: 28px; max-width: none; }
  .hero .lead { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Simple centred pages (thanks, 404) ---------- */

.page-simple { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 88px 0 100px; }
.page-simple h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; max-width: 22ch; margin: 0 auto 18px; }
.page-simple .lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 0 auto 32px; }
.page-simple .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.page-simple .nf-en { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.page-simple .nf-en h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 400; margin: 0 auto 14px; }
.page-simple .nf-en h2::after { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius); font-weight: 500; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); line-height: 1.2; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold-bright); color: var(--navy-deep); border-color: var(--gold-bright); }
.btn-gold:hover { background: #f2b122; color: var(--navy-deep); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-leaf { position: relative; }
.section h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 400; margin-bottom: 14px; }
.section h2::after {
  content: ""; display: block; width: 44px; height: 2px; background: var(--gold); margin-top: 16px;
}
.section .intro { color: var(--muted); font-size: 18px; max-width: 58ch; }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.two-col .prose p { font-size: 17.5px; }
.two-col .prose p:last-child { margin-bottom: 0; }
.two-col .prose a { font-weight: 500; }

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Tools ---------- */

.tools-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.tools-head .intro { margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.tool {
  position: relative; background: var(--white); border: 1px solid var(--line);
  padding: 40px 40px 36px; display: flex; flex-direction: column; min-height: 100%;
}
/* manuscript double frame */
.tool::before {
  content: ""; position: absolute; inset: 9px; border: 1px solid var(--gold-soft); pointer-events: none;
}
.tool-title-ta {
  font-family: var(--tamil); font-size: 46px; font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 2px;
}
.tool-title { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--navy); margin: 0 0 14px; }
.tool-title span { color: var(--muted); font-weight: 400; font-style: italic; }
.tool p { color: var(--ink); margin-bottom: 1em; }
.tool .tool-note { color: var(--muted); font-size: 15.5px; }
.tool-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.tool-url { font-size: 15px; color: var(--muted); text-decoration: none; }
.tool-url:hover { color: var(--gold); text-decoration: underline; }

.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--navy);
  padding: 5px 11px 5px 9px; border: 1px solid var(--gold-soft); border-radius: 999px; background: var(--paper);
  margin-bottom: 20px; align-self: flex-start;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); }
.status.is-live::before { background: #2f9e5b; }

.tool-more {
  margin-top: 28px; padding: 22px 26px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.55);
  color: var(--muted); font-size: 16px; max-width: 72ch;
}
.tool-more p { margin: 0; }

@media (max-width: 860px) {
  .tools-head { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 28px; }
  .tool-grid { grid-template-columns: 1fr; gap: 20px; }
  .tool { padding: 30px 26px 28px; }
  .tool-title-ta { font-size: 40px; }
}

/* ---------- Principles ---------- */

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; }
.principle { padding: 8px 36px 8px 0; }
.principle + .principle { border-left: 1px solid var(--line); padding-left: 36px; }
.principle h3 { font-size: 24px; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 16.5px; margin: 0; }

@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; margin-top: 24px; }
  .principle { padding: 22px 0; }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ---------- Scholars band ---------- */

.band-navy .section-inner { padding: 84px 0; text-align: center; }
.band-navy h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); }
.band-navy h2::after { margin-left: auto; margin-right: auto; background: var(--gold-bright); }
.band-navy p { color: rgba(255,255,255,.84); max-width: 60ch; margin: 0 auto 34px; font-size: 18px; }
.band-navy .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.band-navy a:not(.btn) { color: var(--gold-bright); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/kolam-gold.svg?v=fb472d024d") center / 56px 56px; opacity: 0.08;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
}
.footer-grid {
  position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px;
}
.footer-brand img { width: 220px; height: auto; margin-bottom: 18px; }
.footer-brand .tamil { font-family: var(--tamil); font-size: 22px; color: #fff; margin: 0; line-height: 1.4; }
.footer-brand .tagline { font-family: var(--serif); font-style: italic; color: var(--gold-bright); margin: 2px 0 0; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .01em; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 15.5px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer-bottom {
  position: relative; border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: rgba(255,255,255,.62);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Inner pages ---------- */

.page-head { position: relative; isolation: isolate; }
.page-head .section-inner { padding: 72px 0 64px; text-align: center; }
.page-head .tamil { font-family: var(--tamil); color: var(--gold-bright); font-size: 22px; margin: 0 0 10px; }
.page-head h1 { color: #fff; font-size: clamp(36px, 4.6vw, 56px); margin: 0 0 14px; letter-spacing: -.01em; }
.page-head p { color: rgba(255,255,255,.84); max-width: 58ch; margin: 0 auto; font-size: 18.5px; }

.enquiry-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.enquiry-aside { position: sticky; top: 100px; }
.enquiry-aside .card {
  background: var(--white); border: 1px solid var(--line); padding: 28px 28px 24px; position: relative;
}
.enquiry-aside .card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-soft); pointer-events: none; }
.enquiry-aside h3 { font-size: 22px; margin-bottom: 12px; }
.enquiry-aside ul { padding-left: 18px; margin: 0 0 18px; color: var(--ink); }
.enquiry-aside li { margin-bottom: 8px; font-size: 16px; }
.enquiry-aside p { font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.enquiry-aside .email { font-weight: 500; font-size: 17px; }

@media (max-width: 860px) {
  .enquiry-grid { grid-template-columns: 1fr; gap: 36px; }
  .enquiry-aside { position: static; }
}

/* ---------- Forms ---------- */

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 7px; color: var(--navy); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: -4px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16.5px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 161, 8, .18);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23002655' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field-check { display: flex; gap: 12px; align-items: start; font-size: 15px; color: var(--muted); }
.field-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.security { background: var(--leaf); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.security label { margin-bottom: 4px; }
.security .hint { margin: 0 0 10px; font-size: 15.5px; color: var(--ink); }
.security input { max-width: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 15.5px; color: var(--muted); margin: 0; }
.form-status.is-error { color: #a12d2d; }
.form-status.is-ok { color: #1e6b3f; }
.form-done {
  display: none; background: var(--white); border: 1px solid var(--line); padding: 36px; position: relative;
}
.form-done::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold-soft); pointer-events: none; }
.form-done h3 { font-size: 28px; }
.form-done p { color: var(--muted); margin-bottom: 0; }
.form.is-sent { display: none; }
.form.is-sent + .form-done { display: block; }

/* ---------- Simple pages (privacy, thanks, 404) ---------- */

.simple { max-width: 72ch; }
.simple h2 { font-size: 26px; margin-top: 36px; }
.simple h2::after { display: none; }
.simple p, .simple li { font-size: 17px; }
.simple ul { padding-left: 20px; }
.simple .meta { color: var(--muted); font-size: 15px; }
.centered { text-align: center; }
.centered .ornament { margin-bottom: 24px; }

/* ---------- Tamil pages (the default language) ----------
   Tamil glyphs sit taller and wider than Latin, so headings step down a
   size, lines open up, and tracking is left alone: letter-spacing breaks
   Tamil conjuncts. Noto Serif Tamil carries the headings, Noto Sans Tamil
   the body, in the same roles the Latin faces play on the English pages. */

html[lang="ta"] body { font-family: "Noto Sans Tamil", var(--sans); line-height: 1.75; }
html[lang="ta"] h1, html[lang="ta"] h2, html[lang="ta"] h3, html[lang="ta"] h4 { font-family: "Noto Serif Tamil", var(--serif); line-height: 1.3; }
html[lang="ta"] .nav-links a { font-size: 15px; }
html[lang="ta"] .hero-brand .tagline { font-family: "Noto Serif Tamil", var(--serif); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
html[lang="ta"] .hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); line-height: 1.32; letter-spacing: 0; max-width: 22ch; }
html[lang="ta"] .hero .lead { font-size: 1.08rem; line-height: 1.8; }
html[lang="ta"] .section h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.35; }
html[lang="ta"] .tool-title { font-family: "Noto Serif Tamil", var(--serif); font-size: 1.25rem; line-height: 1.4; }
html[lang="ta"] .tool p { font-size: 16px; }
html[lang="ta"] .tool .tool-note { font-size: 15px; }
html[lang="ta"] .principle h3 { font-size: 1.25rem; }
html[lang="ta"] .principle p { font-size: 15.5px; }
html[lang="ta"] .band-navy h2, html[lang="ta"] .page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.35; }
html[lang="ta"] .band-navy p, html[lang="ta"] .page-head p { font-size: 1.05rem; line-height: 1.8; }
html[lang="ta"] .footer-brand .tagline { font-family: "Noto Serif Tamil", var(--serif); font-style: normal; }
html[lang="ta"] .btn { font-size: 15.5px; padding: 12px 22px; }
html[lang="ta"] .field label { font-size: 15.5px; }
html[lang="ta"] .enquiry-aside h3 { font-size: 1.25rem; }
html[lang="ta"] .page-simple h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.35; }
html[lang="ta"] .simple h2 { font-size: 1.35rem; }
html[lang="ta"] .form-done h3 { font-size: 1.4rem; }

@media (max-width: 760px) {
  html[lang="ta"] .hero h1 { font-size: 1.55rem; }
  html[lang="ta"] .hero-brand .tagline { font-size: 0.85rem; }
  html[lang="ta"] .hero .lead { font-size: 1rem; }
  html[lang="ta"] .tool-title-ta { font-size: 34px; }
}
