/* Palette follows the CA India logo: blue #0f5f90, saffron #F37920, green #55B848 */
:root {
  --brand: #0f5f90;        /* sampled from the CA India logo */
  --brand-700: #0c4d75;
  --brand-800: #0a3f60;
  --brand-50: #ecf4fa;
  --brand-100: #d5e7f4;
  --deep: #0a2238;
  --deep-2: #0f2e4a;
  --saffron: #f37920;
  --green: #55b848;
  --ink: #0f1b2a;
  --ink-2: #334155;
  --muted: #5b6878;
  --line: #e2e8f0;
  --line-2: #cfd8e3;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 42, .06), 0 1px 3px rgba(15, 27, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 27, 42, .18), 0 2px 6px rgba(15, 27, 42, .05);
  --shadow-lg: 0 30px 60px -20px rgba(10, 34, 56, .28);
  --max: 1200px;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tamil-serif: "Noto Serif Tamil", "Latha", serif;
  --tamil-sans: "Noto Sans Tamil", "Latha", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--surface);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.lang-ta { font-family: var(--tamil-sans), var(--sans); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
address { font-style: normal; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lang-ta h1, .lang-ta h2, .lang-ta h3 { letter-spacing: 0; line-height: 1.45; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.gap-sm { margin-top: 8px; }
.gap-lg { margin-top: 36px; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
header.site.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 27, 42, .4); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; flex: 0 0 auto; }
.brand-logo { height: 50px; width: auto; box-sizing: border-box; padding: 4px 7px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; padding-left: 12px; border-left: 1px solid var(--line-2); }
.brand-text strong { font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-text span { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
nav.links { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-list a:hover { color: var(--brand); background: var(--brand-50); }
.nav-list a[aria-current="page"] { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--tamil-sans), var(--sans); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--brand); padding: 6px 10px; border: 1px solid var(--brand-100); border-radius: 999px; }
.lang-switch .icon { width: 18px; height: 18px; }
/* the globe says it on its own once the header is tight */
@media (max-width: 1500px) { .lang-switch .lang-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.lang-ta .lang-switch { font-family: var(--sans); }
.lang-switch:hover { background: var(--brand-50); }
.nav-call { display: none; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s var(--ease), opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; }
.bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon-arrow { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14.5px; }
.btn.block { display: flex; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 95, 144, .7); }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--brand-50); }
.btn-outline-light { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .35); } /* a <button> would otherwise take the browser's grey */
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link:hover .icon-arrow { transform: translateX(3px); }
.text-link .icon-arrow { transition: transform .2s var(--ease); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- labels, chips ---------- */
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--saffron); }
.lang-ta .label { letter-spacing: .02em; }
.label-light { color: #9fc4e0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-800); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; padding: 4px 12px; }
.chip .icon { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--brand-800); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(85, 184, 72, .18); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 88px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(15, 95, 144, .14), transparent 60%),
    radial-gradient(600px 360px at -5% 110%, rgba(243, 121, 32, .08), transparent 60%),
    linear-gradient(180deg, #f7fafd 0%, #fff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 95, 144, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 95, 144, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-grid.has-photo { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 22px; max-width: 20ch; }
.lang-ta .hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.4; max-width: 20ch; }
.hero-text { font-size: 19px; color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.hero-call { margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero-call a { color: var(--ink); font-weight: 600; }


/* White tile keeps the CA India logo on white, as ICAI requires */
.logo-tile { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: 8px 10px; border: 1px solid var(--line); flex-shrink: 0; }
.logo-tile .ca-logo { height: 40px; width: auto; }
.logo-tile-lg .ca-logo { height: 52px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 0 0 96px; }
.section-soft { background: var(--surface-2); }
.section-dark { background: radial-gradient(800px 400px at 100% 0%, rgba(15, 95, 144, .55), transparent 60%), var(--deep); color: #c9d6e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; }
.lang-ta .section h2 { font-size: clamp(24px, 3vw, 34px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head .lede { margin: 0; max-width: 46ch; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 60ch; }
.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.two-col .lede { margin-top: 12px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card-title { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; line-height: 1.3; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.card .go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand); }
.card .go .icon-arrow { transition: transform .2s var(--ease); }
a.card:hover .go .icon-arrow { transform: translateX(4px); }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand); margin-bottom: 6px; flex-shrink: 0; transition: background .25s, color .25s; }
.card-icon .icon { width: 22px; height: 22px; }
a.card:hover .card-icon { background: var(--brand); color: #fff; }
.card-icon-lg { width: 60px; height: 60px; border-radius: 16px; margin: 0; }
.card-icon-lg .icon { width: 28px; height: 28px; }
.note-card .chip { align-self: flex-start; margin-bottom: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.panel p { color: var(--muted); font-size: 15.5px; }
.panel a { color: var(--brand); font-weight: 600; }

/* ---------- Thirukkural ---------- */
.principle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; margin-bottom: 64px; }
.principle-grid > .label { grid-column: 1 / -1; }
.principle-grid > .kural { grid-column: 1 / -1; grid-row: 2 / span 2; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
.principle-grid .kural blockquote { grid-column: 1 / -1; }
.principle-grid .kural figcaption { grid-column: 1; }
.principle-grid > .principle-text { grid-column: 2; grid-row: 3; align-self: end; }
.principle-text p, p.principle-text { font-size: 17.5px; line-height: 1.75; color: #b9c9d8; }
.principle-text-ta { max-width: 60ch; margin: 28px 0 48px; }
.kural { margin: 0; }
.kural blockquote { container-type: inline-size; }
.kural blockquote p { font-family: var(--tamil-serif); font-weight: 600; font-size: min(clamp(22px, 2.6vw, 34px), 3.05cqi); line-height: 1.7; letter-spacing: 0; }
/* a Kural is two lines, four words then three: each line stays whole and the size gives way instead */
.kural-line { display: block; white-space: nowrap; }
.kural figcaption { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.kural-ref { font-family: var(--tamil-sans), var(--sans); font-size: 15px; font-weight: 600; }
.kural-meaning { font-size: 17px; font-style: italic; line-height: 1.65; max-width: 58ch; }
.kural-ref-en { font-size: 13.5px; }
.kural-dark blockquote p { color: #fff; }
.kural-dark blockquote { position: relative; padding-left: 28px; border-left: 3px solid var(--saffron); }
.kural-dark .kural-ref { color: #f8b27c; }
.kural-dark .kural-meaning { color: #dbe6f0; }
.kural-dark .kural-ref-en { color: #8fa9c0; }
.kural-panel {
  position: relative; overflow: hidden; margin-top: 56px; padding: 48px 56px; border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--brand-50) 100%); border: 1px solid var(--brand-100);
}
.kural-panel::after { content: "“"; position: absolute; right: 32px; top: -40px; font-size: 240px; line-height: 1; color: rgba(15, 95, 144, .08); font-family: Georgia, serif; pointer-events: none; }
.kural-light blockquote p { color: var(--brand-800); }
.kural-light .kural-ref { color: var(--saffron); filter: brightness(.85); }
.kural-light .kural-meaning { color: var(--ink-2); }
.kural-light .kural-ref-en { color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.value h3 { font-size: 20px; margin: 16px 0 8px; }
.value p { font-size: 15.5px; line-height: 1.65; }
.value-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(243, 121, 32, .14); color: #f8a466; }
.value-icon .icon { width: 24px; height: 24px; }
.section:not(.section-dark) .values { margin-top: 24px; }
.section:not(.section-dark) .value { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.section:not(.section-dark) .value p { color: var(--muted); }
.section:not(.section-dark) .value-icon { background: var(--brand-50); color: var(--brand); }

/* ---------- callout ---------- */
.callout { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(135deg, #fff7f0, #fff 60%); border: 1px solid #fbd9bf; border-radius: 24px; padding: 32px 36px; }
.callout-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--saffron); color: #fff; }
.callout-icon .icon { width: 26px; height: 26px; }
.callout h2 { font-size: clamp(22px, 2.4vw, 28px) !important; margin-bottom: 6px; }
.callout p:not(.label) { color: var(--muted); max-width: 70ch; }
.callout .label { margin-bottom: 6px; }

/* ---------- person ---------- */
.person { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.avatar { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 40px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--deep)); box-shadow: 0 0 0 6px var(--brand-50); }
.person-body { display: flex; flex-direction: column; gap: 12px; }
.person-name { font-size: 26px; }
.person-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.person-body > p:not(.person-meta) { color: var(--muted); max-width: 54ch; }

/* ---------- timeline ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: none; }
.timeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; }
.step { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 700; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--surface); }
.section-soft .step { box-shadow: 0 0 0 6px var(--surface-2); }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { font-size: 15px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: radial-gradient(600px 300px at 100% 0%, rgba(85, 184, 72, .18), transparent 60%), linear-gradient(135deg, var(--brand) 0%, var(--deep) 100%);
  color: #d6e3ee; border-radius: 28px; padding: 56px;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band > div > p { font-size: 17px; max-width: 48ch; margin-bottom: 28px; }
.cta-facts { display: grid; gap: 14px; }
.cta-facts > div { display: grid; grid-template-columns: 24px 1fr; gap: 4px 14px; padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.cta-facts .icon { grid-row: span 2; width: 22px; height: 22px; color: #f8a466; margin-top: 2px; }
.cta-facts dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fc4e0; }
.cta-facts dd { font-size: 15.5px; color: #fff; }
.cta-facts dd a { color: #fff; font-weight: 600; }
.cta-facts dd p { color: #d6e3ee; }

/* ---------- inner pages ---------- */
.page-hero { padding: 56px 0 48px; background: radial-gradient(700px 300px at 90% -20%, rgba(15, 95, 144, .12), transparent 60%), var(--surface-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.035em; max-width: 24ch; }
.page-hero .lede { margin-top: 14px; }
.page-hero-row { display: flex; align-items: center; gap: 20px; }
.page-hero-row .label { margin-bottom: 4px; }
.page-hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.aside-cta { position: sticky; top: 104px; margin: 56px 0; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.aside-cta h2 { font-size: 20px; }
.aside-cta p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }

.prose { padding: 56px 0 96px; max-width: 780px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 48px; letter-spacing: -0.02em; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); font-weight: 500; }
.prose .intro { font-size: 19px; color: var(--ink); line-height: 1.65; }
.note { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15.5px; }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.checklist .icon { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.step-list { list-style: none; padding: 0 !important; display: grid; gap: 16px; }
.step-list li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; margin: 0 !important; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-list .step { margin: 0; box-shadow: none; }
.step-list h2 { margin-top: 6px !important; font-size: 21px; }
.step-list p { color: var(--muted); margin-top: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #fafcfe; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info-item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-item .card-icon { margin: 0; }
.info-h { font-size: 16px !important; letter-spacing: 0 !important; margin-bottom: 4px; }
.info-item p, .info-item address { color: var(--muted); font-size: 15.5px; }
.info-item a:not(.text-link) { color: var(--ink); font-weight: 600; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }

form.contact { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
form.contact h2 { font-size: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, select:hover, textarea:hover { border-color: #b6c3d1; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 95, 144, .15); }
textarea { min-height: 150px; resize: vertical; }
[aria-invalid="true"] { border-color: #c2410c; box-shadow: 0 0 0 4px rgba(194, 65, 12, .12); }
.field.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.field.check input { width: 20px; height: 20px; min-height: 20px; margin-top: 3px; accent-color: var(--brand); }
.field.check label { font-weight: 400; color: var(--ink-2); font-size: 14.5px; }
.field.check a { color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-50); border: 1px solid var(--brand-100); font-size: 15px; }
.form-status.error { background: #fff4ed; border-color: #fbd0b4; }
.form-status.ok { background: #effaf0; border-color: #bfe6c1; }
.form-status a { color: var(--brand); font-weight: 600; }

/* ---------- footer ---------- */
footer.site { background: var(--deep); color: #9fb3c6; padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr; gap: 40px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
footer .name { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.footer-h { font-size: 13px !important; font-weight: 700; letter-spacing: .12em !important; text-transform: uppercase; color: #fff !important; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
footer.site a { color: #c9d6e3; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site address { line-height: 1.7; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #7f98ae; }
.legal p { max-width: 54ch; }
.legal-links { display: flex; gap: 20px; }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal-ready .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .nav-list a { padding: 8px 11px; }
  nav.links { gap: 14px; }
}
@media (max-width: 1140px) {
  .nav-list a { padding: 8px 9px; font-size: 14.5px; }
  .brand-logo { height: 46px; }
  nav.links { gap: 16px; }
  .brand-text strong { font-size: 15.5px; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  nav.links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(15, 27, 42, .3); padding: 12px 24px 24px;
  }
  nav.links.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a:hover { background: none; }
  .nav-list a[aria-current="page"] { border-left: 3px solid var(--saffron); padding-left: 12px; }
  .nav-actions { flex-wrap: wrap; padding-top: 18px; gap: 12px; }
  .nav-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
  .nav-actions .btn { flex: 1 1 100%; }
  .hero-grid, .two-col, .principle-grid, .cta-band, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .principle-grid { gap: 20px; margin-bottom: 48px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid > .kural { display: block; grid-row: auto; }
  .principle-grid > .principle-text { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .with-aside { grid-template-columns: 1fr; gap: 0; }
  .aside-cta { position: static; margin: 0 0 72px; }
  .prose { padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .nav { min-height: 66px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-logo { height: 40px; padding: 3px 6px; border-radius: 9px; }
  .brand-text { padding-left: 8px; }
  /* scales with the screen so the name keeps to one line down to the narrowest phones */
  .brand-text strong { font-size: clamp(11.5px, 3.35vw, 14px); }
  .brand-text span { font-size: clamp(10px, 2.9vw, 11.5px); }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 12px; }
  .section { padding: 72px 0; }
  .section-tight { padding-bottom: 72px; }
  .hero { padding: 40px 0 64px; }
  .hero-text { font-size: 17px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
  .grid-3, .grid-2, .values, .field-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-4 .service-card { padding: 18px 16px; gap: 6px; }
  .grid-4 .service-card p, .grid-4 .service-card .go { display: none; }
  .grid-4 .card-title { font-size: 15.5px; }
  .grid-4 .card-icon { width: 40px; height: 40px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px); }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding-bottom: 24px; }
  .timeline .step { grid-row: span 2; margin: 0; }
  .callout { grid-template-columns: 1fr; padding: 26px; gap: 16px; }
  .person { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .avatar { width: 96px; height: 96px; font-size: 30px; }
  .cta-band { padding: 32px 24px; border-radius: 22px; gap: 32px; }
  .kural-panel { padding: 32px 24px; }
  .kural-dark blockquote { padding-left: 18px; }
  form.contact { padding: 22px; }
  .page-hero { padding: 36px 0 36px; }
  .page-hero-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .step-list li { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { flex-direction: column; }
  .actions .btn { flex: 1 1 auto; }
}

/* =====================================================================
   Tools: shared
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-sm { display: flex; align-items: center; gap: 8px; font-size: 18px !important; letter-spacing: -0.01em !important; }
.h-sm .icon { color: var(--brand); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-decoration: none; }
.icon-btn:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn .icon { width: 18px; height: 18px; }
button.text-link { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.page-hero-tool { background: radial-gradient(700px 320px at 95% -10%, rgba(243, 121, 32, .10), transparent 60%), radial-gradient(700px 300px at 10% 120%, rgba(15, 95, 144, .10), transparent 60%), var(--surface-2); }
.tool-hero { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.tool-stats { list-style: none; display: flex; gap: 12px; flex-shrink: 0; }
.tool-stats li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; min-width: 112px; box-shadow: var(--shadow-sm); }
.tool-stats strong { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.tool-stats span { font-size: 13px; color: var(--muted); }

/* home tools section */
.tools-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.tool-card-head { display: flex; gap: 16px; align-items: flex-start; }
.tool-card-head .card-icon { margin: 0; }
.tool-card-head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.deadlines { list-style: none; display: grid; gap: 8px; }
.deadlines li a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; background: var(--surface-2); transition: border-color .15s, background .15s; }
.deadlines li a:hover { border-color: var(--brand-100); background: #fff; }
.dl-date { display: grid; place-items: center; height: 52px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c); font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.dl-date b { font-size: 19px; color: var(--ink); }
.dl-body { min-width: 0; }
.dl-body strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.35; }
.dl-body strong small { font-weight: 500; color: var(--muted); }
.dl-body > small { color: var(--muted); font-size: 13px; }
.dl-due { font-size: 12.5px; font-weight: 700; color: var(--brand-800); background: var(--brand-50); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.dl-due.soon { color: #9a3412; background: #fff1e6; }
.deadline-empty { color: var(--muted); font-size: 15px; padding: 12px 0; }
.tool-card .actions { margin-top: auto; }
.calc-links { list-style: none; display: grid; gap: 8px; }
.calc-links a { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .15s, background .15s, color .15s; }
.calc-links a .icon { color: var(--brand); width: 20px; height: 20px; }
.calc-links a .icon-arrow { color: var(--muted); transition: transform .2s var(--ease); }
.calc-links a:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-800); }
.calc-links a:hover .icon-arrow { transform: translateX(3px); color: var(--brand); }

/* =====================================================================
   Compliance calendar
   ===================================================================== */
.section-cal { padding-top: 40px; }
.cal-upcoming-wrap { margin-bottom: 24px; }
.cal-upcoming-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.cal-upcoming { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.up-card { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.up-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.up-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.up-due { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); margin-bottom: 4px; }
.up-soon .up-due, .up-today .up-due { background: #fff1e6; color: #9a3412; }
.up-date { font-size: 13px; color: var(--muted); font-weight: 500; }
.up-card strong { color: var(--ink); font-size: 15px; line-height: 1.35; }
.up-meta { font-size: 13px; color: var(--muted); }

.cal-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px 22px; box-shadow: var(--shadow-sm); }
.cal-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 14px 0; }
.cal-row + .cal-row { border-top: 1px solid var(--line); }
.cal-row[hidden] + .cal-row { border-top: 1px solid var(--line); }
.cal-row-label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-row-tools { grid-template-columns: 1fr auto auto; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; justify-self: start; }
.seg button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: transparent; border: 0; padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover { color: var(--brand); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--brand-800); box-shadow: 0 1px 3px rgba(15, 27, 42, .12), 0 0 0 1px var(--brand-100); }
.seg button .icon { width: 16px; height: 16px; }
.seg-sm button { padding: 6px 12px; font-size: 14px; }
.tailor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.tailor-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tailor-field select { min-height: 40px; padding: 8px 10px; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-2); background: #fff; color: var(--muted); transition: all .15s; }
.chip-toggle i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); background: transparent; transition: background .15s; }
.chip-toggle small { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 0 7px; border-radius: 999px; }
.chip-toggle[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 8%, #fff); }
.chip-toggle[aria-pressed="true"] i { background: var(--c); }
.chip-reset { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand); background: none; border: 0; cursor: pointer; padding: 6px; }
.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; min-height: 44px; border-radius: 12px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background .2s; flex-shrink: 0; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--saffron); outline-offset: 2px; }

.cal-bar { position: sticky; top: 76px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 8px; padding: 10px 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cal-count { font-size: 14.5px; color: var(--muted); }
.cal-count strong { color: var(--ink); }
.cal-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cal-bar .btn .icon { width: 17px; height: 17px; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--brand); color: var(--brand); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.menu-list > a, .menu-list > button { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; text-align: left; font: inherit; background: none; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; text-decoration: none; color: var(--ink); }
.menu-list > a:hover, .menu-list > button:hover { background: var(--brand-50); }
.menu-list .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.menu-list strong { display: block; font-size: 14.5px; font-weight: 600; }
.menu-list small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.cal-month-group { margin-top: 28px; }
.cal-month-h { display: flex; align-items: baseline; gap: 12px; font-size: 20px !important; margin-bottom: 12px; }
.cal-month-h small { font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pill-now { font-size: 12px; font-weight: 700; color: #fff; background: var(--saffron); padding: 2px 10px; border-radius: 999px; letter-spacing: 0; align-self: center; }
.ev-list { list-style: none; display: grid; gap: 8px; }
.ev { position: relative; display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ev::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.ev:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.ev-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center; padding: 12px 14px 12px 18px; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
div.ev-main { cursor: default; }
.ev-date { display: grid; justify-items: center; line-height: 1.1; padding: 6px 0; border-radius: 10px; background: var(--surface-2); }
.ev-date b { font-size: 20px; color: var(--ink); }
.ev-date span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.ev-date small { font-size: 11px; color: var(--muted); }
.ev-body { display: grid; gap: 2px; min-width: 0; }
.ev-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.ev-title { font-size: 15.5px; color: var(--ink); font-weight: 600; line-height: 1.35; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--muted); }
.ev-meta span:first-child:not(:last-child) { color: var(--brand-800); font-weight: 500; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ev-tags span { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }
.ev-due { font-size: 12.5px; font-weight: 700; white-space: nowrap; padding: 4px 10px; border-radius: 999px; color: var(--brand-800); background: var(--brand-50); }
.ev-soon .ev-due, .ev-today .ev-due { color: #9a3412; background: #fff1e6; }
.ev-today { border-color: #fbd0b4; }
.ev-past { opacity: .62; }
.ev-past .ev-due { color: var(--muted); background: var(--surface-2); }
.ev-actions { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 0; }
.cal-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 18px; margin-top: 24px; }
.cal-empty .icon { width: 32px; height: 32px; color: var(--line-2); }

.cal-monthview { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.mv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mv-head h3 { font-size: 22px; }
.mv-week, .mv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mv-week span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; padding-bottom: 6px; }
.mc { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 8px; text-align: left; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; overflow: hidden; min-width: 0; }
.mc-empty { border: 0; background: transparent; }
.mc:disabled { background: var(--surface-2); cursor: default; }
.mc-has { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mc-has:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.mc-num { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.mc-past .mc-num { color: var(--muted); }
.mc-today { border-color: var(--saffron); box-shadow: inset 0 0 0 1px var(--saffron); }
.mc-today .mc-num { color: #fff; background: var(--saffron); border-radius: 999px; padding: 0 7px; align-self: flex-start; }
.mc-selected { border-color: var(--brand); background: var(--brand-50); }
.mc-pills { display: grid; gap: 3px; min-width: 0; }
.mc-pill { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.3; padding: 2px 6px; border-radius: 6px; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 12%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-more { font-size: 11px; color: var(--muted); font-weight: 600; }
.mc-dots { display: none; gap: 3px; flex-wrap: wrap; }
.mc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.mc-past .mc-pill { opacity: .6; }
.mv-day { margin-top: 18px; padding-top: 6px; }

.cal-notes { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 40px; }
.cal-notes .note { font-size: 14.5px; line-height: 1.65; }
.cal-help { background: linear-gradient(135deg, var(--brand) 0%, var(--deep) 100%); color: #d6e3ee; border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.cal-help h2 { color: #fff; }
.cal-help .btn { justify-self: start; background: #fff; color: var(--brand-800); box-shadow: none; }

/* dialogs */
.dlg { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 22px; padding: 0; box-shadow: var(--shadow-lg); color: var(--ink-2); margin: auto; }
.dlg::backdrop { background: rgba(10, 34, 56, .45); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in .22s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg-close { position: absolute; top: 14px; right: 14px; }
.dlg-body { padding: 28px; display: grid; gap: 14px; }
.dlg-body h2 { font-size: 23px; padding-right: 36px; }
.dlg-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.dlg-cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.dlg-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; color: var(--ink); }
.dlg-date .icon { color: var(--brand); width: 18px; height: 18px; }
.ev-due-inline { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); }
.due-soon, .due-today { background: #fff1e6; color: #9a3412; }
.due-past { background: var(--surface-2); color: var(--muted); }
.dlg-facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dlg-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 14px; font-size: 14.5px; }
.dlg-facts div + div { border-top: 1px solid var(--line); }
.dlg-facts dt { color: var(--muted); font-weight: 500; }
.dlg-facts dd { color: var(--ink); }
.dlg-desc { font-size: 15.5px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dlg-actions .icon { width: 16px; height: 16px; }
.dlg-note { font-size: 13px; color: var(--muted); }
.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sub-btn { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.sub-btn:hover { border-color: var(--brand); background: var(--brand-50); }
.sub-btn .icon { width: 22px; height: 22px; color: var(--brand); }
.sub-btn strong { display: block; font-size: 15px; }
.sub-btn small { display: block; font-size: 12.5px; color: var(--muted); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: 13.5px; min-height: 42px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--deep); color: #fff; font-size: 14.5px; font-weight: 500; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Calculators
   ===================================================================== */
.section-calc { padding-top: 48px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc-wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.calc-inputs { display: grid; gap: 16px; }
.calc fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; display: grid; gap: 14px; min-width: 0; }
.calc legend { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); padding: 0 8px; margin-left: -8px; }
.calc .field label { font-size: 14px; }
.calc .hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.calc .hint a { color: var(--brand); font-weight: 600; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .prefix, .input-wrap .suffix { position: absolute; font-size: 15px; color: var(--muted); pointer-events: none; }
.input-wrap .prefix { left: 14px; }
.input-wrap .suffix { right: 14px; font-size: 13.5px; }
.input-wrap.has-prefix input { padding-left: 32px; }
.input-wrap.has-suffix input { padding-right: 84px; }
.amount-hint { display: block; font-size: 12.5px; font-weight: 600; color: var(--brand-800); margin-top: 4px; min-height: 1em; }
.calc-results { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.regime-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.big { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.sub { font-size: 14.5px; color: var(--muted); }
.res { display: grid; border-top: 1px solid var(--line); }
.res-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.res-row dt { color: var(--muted); }
.res-row dd { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.res-row.strong dt { color: var(--ink); font-weight: 600; }
.res-row.strong dd { color: var(--brand-800); }
.verdict { font-size: 16px; color: var(--ink); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 12px 14px; }
.verdict strong { color: var(--brand-800); }
.cmp-bars { display: grid; gap: 8px; }
.cmp-bars div { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.cmp-bars i { display: block; height: 10px; border-radius: 999px; background: var(--brand); width: 0; transition: width .4s var(--ease); }
.cmp-bars div:last-child i { background: var(--saffron); }
.regimes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.regime { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 6px; align-content: start; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.regime .big { font-size: 26px; }
.regime .sub { font-size: 13px; }
.regime .res-row { font-size: 13.5px; padding: 7px 0; }
.best-tag { display: none; font-size: 11px; letter-spacing: .04em; color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 999px; }
.regime.is-better { border-color: var(--green); box-shadow: 0 0 0 3px rgba(85, 184, 72, .15); }
.regime.is-better .best-tag { display: inline-block; }
.slabs summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--brand); padding: 8px 0 4px; }
.slabs table { font-size: 13px; margin-top: 6px; }
.slabs th, .slabs td { padding: 6px 8px; }
.calc-results .table-wrap { box-shadow: none; }
.calc-results .table-wrap table { font-size: 14px; }
.limits { list-style: none; display: grid; gap: 8px; }
.limits li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.limits li span { color: var(--muted); }
.limits li strong { color: var(--ink); white-space: nowrap; }
.limits li.is-least { border-color: var(--green); background: #f0faf0; }
.limits li.is-least > span::after { content: " — least"; color: #166534; font-weight: 600; }
.donut-wrap { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; }
.donut { width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--saffron) 0); display: grid; place-items: center; }
.donut span { width: 84px; height: 84px; border-radius: 50%; background: #fff; }
.legend { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.key-p { background: var(--brand); }
.key-i { background: var(--saffron); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.mini-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .15s, background .15s; }
.mini-card .icon { color: var(--brand); width: 20px; height: 20px; }
.mini-card:hover { border-color: var(--brand-100); background: var(--brand-50); }
.tool-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 26px; border-radius: 20px; background: linear-gradient(135deg, #fff7f0, #fff 60%); border: 1px solid #fbd9bf; text-decoration: none; color: var(--ink); }
.tool-banner strong { display: block; font-size: 18px; }
.tool-banner small { color: var(--muted); font-size: 14.5px; }
.tool-banner > .icon-arrow { color: var(--saffron); width: 22px; height: 22px; }

/* responsive: tools */
@media (max-width: 1040px) {
  .tools-grid, .cal-notes { grid-template-columns: 1fr; }
  .cal-upcoming { grid-template-columns: repeat(2, 1fr); }
  .tool-hero { flex-direction: column; align-items: flex-start; }
  .calc, .calc-wide { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}
@media (max-width: 760px) {
  .cal-upcoming { grid-template-columns: 1fr; }
  .cal-panel { padding: 4px 16px; }
  .cal-row, .cal-row-tools { grid-template-columns: 1fr; gap: 10px; }
  .tailor-grid { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .tailor-field { font-size: 12px; align-content: end; }
  .tailor-field select { font-size: 14px; padding: 8px; }
  .seg { display: flex; justify-self: stretch; }
  .seg button { flex: 1 1 auto; justify-content: center; }
  .cal-bar { top: 66px; margin-inline: -16px; padding: 10px 16px; }
  .cal-bar-actions { width: 100%; }
  .cal-bar-actions .seg { flex: 1 1 100%; }
  .menu-list { right: auto; left: 0; width: min(320px, calc(100vw - 32px)); }
  .ev { flex-direction: column; }
  .ev-main { grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 12px 8px 16px; }
  .ev-due { grid-column: 2; justify-self: start; }
  .ev-actions { padding: 0 12px 12px 80px; }
  .mv-week, .mv-grid { gap: 3px; }
  .mc { min-height: 54px; padding: 5px; border-radius: 8px; }
  .mc-pills { display: none; }
  .mc-dots { display: flex; }
  .mc-today .mc-num { padding: 0 5px; }
  .cal-monthview { padding: 12px; }
  .tool-stats { width: 100%; }
  .tool-stats li { flex: 1; min-width: 0; padding: 10px 12px; }
  .tool-stats strong { font-size: 17px; }
  .regimes { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 96px 1fr; }
  .donut { width: 96px; height: 96px; }
  .donut span { width: 60px; height: 60px; }
  .tool-banner { grid-template-columns: 1fr; }
  .deadlines li a { grid-template-columns: 46px 1fr; }
  .dl-due { grid-column: 2; justify-self: start; }
}

/* print: compliance calendar */
@media print {
  header.site, footer.site, .cal-panel, .cal-bar, .cal-upcoming-wrap, .cal-help, .ev-actions, .skip, .toast, .crumbs, .tool-stats { display: none !important; }
  body { font-size: 11pt; }
  .page-hero { background: none; padding: 0 0 12px; border: 0; }
  .section { padding: 0; }
  .ev { break-inside: avoid; border-color: #ccc; }
  .ev-past { opacity: 1; }
  .cal-month-h { break-after: avoid; }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   Professional background (whole site)
   ===================================================================== */
html { background: #f4f7fb; }
body { background: transparent; }
.site-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60vmax 45vmax at 100% -5%, rgba(15, 95, 144, .13), transparent 62%),
    radial-gradient(50vmax 40vmax at -10% 105%, rgba(243, 121, 32, .08), transparent 60%),
    radial-gradient(40vmax 30vmax at 55% 60%, rgba(85, 184, 72, .045), transparent 65%),
    linear-gradient(180deg, #f5f7fa 0%, #edf1f6 100%);
}
.site-bg::before { content: ""; position: absolute; inset: -2px;
  background-image: radial-gradient(rgba(15, 95, 144, .12) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, rgba(0,0,0,.7));
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 60%, rgba(0,0,0,.7));
}
.site-bg::after { content: ""; position: absolute; inset: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%230f5f90' stroke-width='1.1'%3E%3Cpath stroke-opacity='.07' d='M-20 700 C 220 620 380 760 620 660 S 1060 520 1460 600'/%3E%3Cpath stroke-opacity='.06' d='M-20 740 C 240 660 400 800 640 700 S 1080 560 1460 640'/%3E%3Cpath stroke-opacity='.05' d='M-20 780 C 260 700 420 840 660 740 S 1100 600 1460 680'/%3E%3Cpath stroke-opacity='.06' d='M-20 180 C 300 260 520 120 800 200 S 1200 300 1460 220'/%3E%3Cpath stroke-opacity='.045' d='M-20 220 C 320 300 540 160 820 240 S 1220 340 1460 260'/%3E%3C/g%3E%3Cg fill='none' stroke='%23f37920' stroke-opacity='.08' stroke-width='1.2'%3E%3Cpath d='M1040 900 L1110 820 L1180 850 L1260 740 L1330 770 L1440 640'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.section-soft { background: rgba(255, 255, 255, .55); border-top: 1px solid rgba(226, 232, 240, .7); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.hero { background: linear-gradient(180deg, rgba(247, 250, 253, .65), rgba(255, 255, 255, .15)); }
.page-hero { background: radial-gradient(700px 300px at 90% -20%, rgba(15, 95, 144, .10), transparent 60%), rgba(246, 248, 251, .7); }
.page-hero-tool { background: radial-gradient(700px 320px at 95% -10%, rgba(243, 121, 32, .10), transparent 60%), radial-gradient(700px 300px at 10% 120%, rgba(15, 95, 144, .10), transparent 60%), rgba(246, 248, 251, .7); }
.cal-bar { background: rgba(244, 247, 251, .9); }

/* =====================================================================
   Page transitions, progress, back to top
   ===================================================================== */
/* No cross-document view transition. It looks handsome, but the browser holds the new
   page back until the transition is ready: measured 720ms to load and 1384ms before
   anything was painted. Pages now paint as soon as they arrive. */
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
header.site { view-transition-name: site-header; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--saffron), var(--brand) 55%, var(--green)); }
/* ---- call / WhatsApp bar: phones only, so a client three screens into the calendar can still reach the firm */
.quick-bar { display: none; }
.calc-discuss { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.calc-discuss small { color: var(--muted); font-size: 12.5px; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--brand); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s var(--ease), background .15s; backdrop-filter: blur(8px); }
.to-top .icon { width: 20px; height: 20px; transform: rotate(180deg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: #fff; }

/* =====================================================================
   Tabs, segmented controls, nav pill
   ===================================================================== */
.seg.has-thumb { position: relative; isolation: isolate; }
.seg.has-thumb > button, .seg.has-thumb > a { position: relative; z-index: 1; }
.seg.has-thumb > button[aria-pressed="true"], .seg.has-thumb > button[aria-selected="true"], .seg.has-thumb > a[aria-current="true"] { background: transparent; box-shadow: none; }
.seg-thumb { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(15, 27, 42, .12), 0 0 0 1px var(--brand-100), 0 6px 16px -8px rgba(15, 95, 144, .45); transition: transform .38s cubic-bezier(.3, 1.3, .5, 1), width .38s cubic-bezier(.3, 1.3, .5, 1), height .2s, opacity .2s; pointer-events: none; }
.seg small { font-size: 11.5px; font-weight: 700; color: var(--muted); background: rgba(15, 95, 144, .08); padding: 0 7px; border-radius: 999px; margin-left: 2px; }
.seg button[aria-pressed="true"] small, .seg button[aria-selected="true"] small { color: var(--brand-800); background: var(--brand-50); }
.tab-list { margin-bottom: 18px; }
.tab-list button { font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: transparent; border: 0; padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.tab-list button[aria-selected="true"] { color: var(--brand-800); }
.nav-list { position: relative; }
.nav-list a { z-index: 1; }
.nav-list a:hover { background: transparent; }

/* =====================================================================
   Ripple, spotlight, shine, pop-in, view-in
   ===================================================================== */
.has-ripple { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .16; transform: scale(0); animation: ripple .6s ease-out forwards; z-index: 2; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.card, .tool-card, .value, .panel, .regime { --mx: 50%; --my: 50%; }
.card::after, .tool-card::after, .panel::after, .regime::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(15, 95, 144, .09), transparent 60%); }
.card:hover::after, .tool-card:hover::after, .panel:hover::after, .regime:hover::after { opacity: 1; }
.tool-card, .panel, .regime { position: relative; }
.value { position: relative; overflow: hidden; }
.section-dark .value::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(248, 164, 102, .16), transparent 60%); }
.section-dark .value:hover::after { opacity: 1; }
.section-dark .value { transition: transform .25s var(--ease), border-color .25s; }
.section-dark .value:hover { transform: translateY(-3px); border-color: rgba(248, 164, 102, .35); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: left .6s var(--ease); pointer-events: none; }
.btn-primary:hover::before { left: 130%; }
a.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-icon { transition: background .25s, color .25s, transform .3s cubic-bezier(.3, 1.4, .5, 1); }
@media (prefers-reduced-motion: no-preference) {
  .pop-in { animation: pop-in .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
  .view-in { animation: view-in .35s cubic-bezier(.2, .8, .2, 1) both; }
  .cal-app.is-ready .ev { animation: ev-in .38s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
  .chip-toggle:active, .seg button:active, .btn:active { transform: scale(.97); }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes ev-in { from { opacity: 0; transform: translateX(-8px); } }
.filter-tabs .seg { margin-bottom: 24px; }
.filter-grid > [hidden] { display: none !important; }
.filter-grid .card { opacity: 1; transform: none; }

/* =====================================================================
   Service pages: sub-navigation and checklist
   ===================================================================== */
.subnav { position: sticky; top: 76px; z-index: 25; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.seg-sub { flex-wrap: nowrap; white-space: nowrap; background: transparent; border: 0; padding: 0; }
.seg-sub a { position: relative; z-index: 1; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 14px; border-radius: 10px; transition: color .2s; }
.seg-sub a:hover, .seg-sub a[aria-current="true"] { color: var(--brand-800); }
.seg-sub .seg-thumb { background: var(--brand-50); box-shadow: inset 0 -2px 0 var(--saffron); }
.prose h2[id], .prose p[id] { scroll-margin-top: 150px; }
.checklist-box { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px; box-shadow: var(--shadow-sm); }
.checklist-head { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.checklist-head strong { color: var(--ink); font-size: 18px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--green)); transition: width .45s cubic-bezier(.3, 1.2, .5, 1); }
.checklist-box .checklist li { padding: 0; background: none; border: 0; }
.checklist-box .checklist label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: background .2s, border-color .2s; }
.checklist-box .checklist label:hover { border-color: var(--brand-100); background: #fff; }
.checklist-box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); background: #fff; margin-top: 1px; transition: all .25s cubic-bezier(.3, 1.4, .5, 1); }
.tick .icon { width: 15px; height: 15px; color: #fff; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); margin: 0 !important; }
.checklist-box input:checked + .tick { background: var(--green); border-color: var(--green); }
.checklist-box input:checked + .tick .icon { transform: scale(1); }
.checklist-box input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(91, 104, 120, .5); }
.checklist-box input:focus-visible + .tick { outline: 3px solid var(--saffron); outline-offset: 2px; }
.checklist-box.is-complete { border-color: var(--green); box-shadow: 0 0 0 4px rgba(85, 184, 72, .12); }

/* =====================================================================
   Calendar additions
   ===================================================================== */
.cal-row-tools { grid-template-columns: 1fr minmax(220px, auto); }
.state-select { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.state-select select { min-height: 44px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.cal-row-switches { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.cal-row-switches .switch { white-space: normal; align-items: flex-start; }
.cal-row-switches .switch small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.cal-row-switches .text-link { margin-left: auto; }
.badge-mini { display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.badge-ext { color: #9a3412; background: #ffedd5; }
.badge-upd { color: #166534; background: #dcfce7; }
.badge-spc { color: #475569; background: #e2e8f0; }
.cal-extra { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 40px; }
.updates-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.updates-card summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
.updates-card summary::-webkit-details-marker { display: none; }
.updates-card summary span { display: inline-flex; align-items: center; gap: 10px; }
.updates-card summary .icon { color: var(--saffron); }
.updates-card summary small { font-weight: 500; color: var(--muted); }
.updates { list-style: none; display: grid; gap: 0; padding: 0 20px 14px; }
.updates li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.updates time { font-weight: 700; color: var(--brand-800); }
.event-link { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #fff, var(--brand-50)); border: 1px solid var(--brand-100); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.event-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-link > .icon:first-child { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand); color: #fff; }
.event-link strong { display: block; }
.event-link small { color: var(--muted); font-size: 13.5px; }
.event-table th[scope="row"] { font-weight: 600; width: 38%; }
.check-inline { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.check-inline input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }

/* service index filter card counts */
.filter-tabs .seg button { padding: 8px 14px; }

@media (max-width: 1040px) {
  .subnav { top: 76px; }
  .cal-extra { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .subnav { top: 66px; }
  .cal-row-tools { grid-template-columns: 1fr; }
  .cal-row-switches .text-link { margin-left: 0; }
  .updates li { grid-template-columns: 1fr; gap: 2px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .quick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -18px rgba(10, 34, 56, .45); }
  .quick-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); color: var(--brand); font-weight: 700; font-size: 15px; text-decoration: none; }
  .quick-bar a:active { background: var(--brand-50); }
  .quick-bar .icon { width: 20px; height: 20px; }
  .to-top { right: 14px; bottom: calc(70px + env(safe-area-inset-bottom)); }
  .filter-tabs .seg { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-self: stretch; }
  .filter-tabs .seg button { flex: 0 0 auto; }
  .tab-list { flex-wrap: nowrap; overflow-x: auto; display: flex; }
  .tab-list button { flex: 0 0 auto; }
}
@media print {
  .site-bg, .scroll-progress, .to-top, .subnav { display: none !important; }
}

/* fixes */
.section .card-title, .grid .card-title { font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; }
.checklist-box .checklist li { display: block; }
.chip-toggle.is-empty { border-style: dashed; background: #fff; color: var(--muted); }
.chip-toggle.is-empty i { border-color: var(--line-2); background: transparent; }

/* =====================================================================
   Main menu as a tab bar: white pill slides to the selected page
   ===================================================================== */
@media (min-width: 1041px) {
  .nav-seg { gap: 2px; padding: 4px; background: rgba(246, 248, 251, .9); border: 1px solid var(--line); border-radius: 14px; }
  .nav-seg > a { padding: 8px 14px; border-radius: 10px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
  .nav-seg > a:hover { color: var(--brand); background: transparent; }
  .nav-seg > a[aria-current="page"] { color: var(--brand-800); font-weight: 600; }
  /* without JavaScript the current page still gets the pill */
  .nav-seg:not(.has-thumb) > a[aria-current="page"] { background: #fff; box-shadow: 0 1px 3px rgba(15, 27, 42, .12), 0 0 0 1px var(--brand-100); }
  .nav-seg > .seg-thumb { view-transition-name: nav-tab-pill; }
}
@media (min-width: 1041px) {
  .nav-seg { flex-wrap: nowrap; white-space: nowrap; }
}
@media (min-width: 1041px) and (max-width: 1220px) {
  .nav { gap: 14px; }
  nav.links { gap: 12px; }
  .nav-seg > a { padding: 7px 9px; font-size: 14px; }
  .brand-logo { height: 40px; }
  .brand-text strong { font-size: 14.5px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 8px 14px; }
}
@media (max-width: 1040px) {
  .nav-seg { background: none; border: 0; padding: 0; border-radius: 0; }
  .nav-seg > .seg-thumb { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(nav-tab-pill) { animation-duration: .38s; animation-timing-function: cubic-bezier(.3, 1.3, .5, 1); }
}

/* =====================================================================
   Launch countdown — ceremony page and one-time intro
   ===================================================================== */
.lx-stage { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: var(--deep); color: #fff; text-align: center; }
.lx-stage.lx-page { position: relative; min-height: 100svh; z-index: 1; }
.lx-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 70% -10%, rgba(15, 95, 144, .65), transparent 62%),
    radial-gradient(45vmax 35vmax at 10% 110%, rgba(243, 121, 32, .22), transparent 60%),
    var(--deep);
}
.lx-bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000 25%, transparent 78%);
}
.lx-inner { position: relative; display: grid; justify-items: center; gap: 28px; padding: 40px 24px; width: min(900px, 100%); }
.lx-brand { display: flex; align-items: center; gap: 18px; opacity: 0; animation: lx-up .9s var(--ease) .1s both; }
.lx-logo { padding: 10px 12px; border-radius: 14px; }
.lx-logo .ca-logo { height: 46px; width: auto; }
.lx-brand-text { text-align: left; }
.lx-brand-text strong { display: block; font-size: clamp(13px, 3.6vw, 22px); color: #fff; letter-spacing: -0.01em; white-space: nowrap; }
.lx-brand-text span { font-size: clamp(12px, 1.4vw, 14px); color: #9fc4e0; letter-spacing: .04em; }

.lx-count { position: relative; display: grid; place-items: center; width: clamp(190px, 30vmin, 300px); aspect-ratio: 1; }
.lx-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lx-ring circle { fill: none; stroke-width: 3; }
.lx-ring-bg { stroke: rgba(255, 255, 255, .14); }
.lx-ring-fg { stroke: var(--saffron); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1s linear; }
.lx-num { font-size: clamp(90px, 18vmin, 170px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #fff; text-shadow: 0 12px 40px rgba(15, 95, 144, .6); }
.lx-count.pulse .lx-num { animation: lx-pop .62s cubic-bezier(.2, 1.4, .4, 1) both; }
.lx-count.hot .lx-num { color: #ffd9bd; }
.lx-label { font-size: clamp(13px, 1.6vw, 15px); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #9fc4e0; }

.lx-reveal { display: none; justify-items: center; gap: clamp(18px, 3vh, 30px); width: 100%; } /* full width, so the Kural is sized to the column rather than to "Now open" */
.lx-open { font-size: clamp(44px, 9vw, 104px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; background: linear-gradient(100deg, #fff 20%, #ffd9bd 55%, #bfe6c1 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-kural { font-family: var(--tamil-serif); color: #dbe6f0; line-height: 1.8; margin: 0; width: min(760px, 100%); container-type: inline-size; }
.lx-kural span { display: block; white-space: nowrap; font-size: min(25px, 3.05cqi); }
.lx-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.lx-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

.lx-bar { display: flex; gap: 4px; width: min(420px, 70%); height: 5px; }
.lx-bar i { flex: 1; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; position: relative; }
.lx-bar i::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; }
.lx-bar i:nth-child(1)::after { background: var(--saffron); }
.lx-bar i:nth-child(2)::after { background: #fff; }
.lx-bar i:nth-child(3)::after { background: var(--green); }
.lx-stage.is-running .lx-bar i::after { animation: lx-fill calc(var(--secs, 10) * 1s / 3) linear both; }
.lx-stage.is-running .lx-bar i:nth-child(2)::after { animation-delay: calc(var(--secs, 10) * 1s / 3); }
.lx-stage.is-running .lx-bar i:nth-child(3)::after { animation-delay: calc(var(--secs, 10) * 2s / 3); }

.lx-stage.is-open .lx-count, .lx-stage.is-open .lx-label, .lx-stage.is-open .lx-bar { display: none; }
.lx-stage.is-open .lx-reveal { display: grid; animation: lx-up .8s var(--ease) both; }
.lx-stage.is-open .lx-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(243, 121, 32, .35), rgba(255, 255, 255, .35), rgba(85, 184, 72, .35), transparent 65%); transform: translateX(-100%); animation: lx-sweep 1.1s cubic-bezier(.3, .9, .3, 1) both; }
.lx-skip { position: absolute; top: 22px; right: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.lx-skip:hover { background: rgba(255, 255, 255, .2); }

/* the ceremony page's opening screen: one button, which is also the click that lets the music play */
.lx-gated .lx-inner { gap: 28px; }
.lx-invite { margin: 0; font-family: var(--tamil-sans), var(--sans); font-size: clamp(18px, 3.4vw, 27px); font-weight: 600; color: #dbe6f0; }
.lx-bless { position: relative; font: inherit; font-size: clamp(16px, 2.6vw, 20px); font-weight: 700; color: var(--deep); background: #fff; border: 0; border-radius: 999px; padding: 17px 34px; cursor: pointer; box-shadow: 0 18px 44px -16px rgba(243, 121, 32, .7); transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; }
.lx-bless:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 24px 52px -16px rgba(243, 121, 32, .85); }
.lx-bless:disabled { opacity: .72; cursor: progress; }
.lx-bless-glow { position: absolute; inset: -7px; border-radius: inherit; border: 2px solid rgba(243, 121, 32, .6); pointer-events: none; animation: lx-halo 2.4s ease-out infinite; }
.lx-bless:disabled .lx-bless-glow { animation: none; opacity: 0; }
@keyframes lx-halo { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.2); opacity: 0; } }
.lx-mute { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; cursor: pointer; }
.lx-mute:hover { background: rgba(255, 255, 255, .2); }
.lx-mute svg { width: 20px; height: 20px; }
.lx-mute[aria-pressed="true"] .wave, .lx-mute:not([aria-pressed="true"]) .slash { display: none; }
@media (max-width: 760px) { .lx-mute { top: 14px; right: 14px; } .lx-bless { padding: 15px 26px; } }
@media (prefers-reduced-motion: reduce) { .lx-bless-glow { animation: none; } }
.lx-overlay { animation: lx-in .5s var(--ease) both; }
.lx-overlay.is-leaving { animation: lx-out .55s var(--ease) both; }
.lx-stage.no-anim * { animation: none !important; transition: none !important; }

@keyframes lx-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lx-pop { 0% { opacity: 0; transform: scale(.6); } 45% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lx-fill { to { transform: scaleX(1); } }
@keyframes lx-sweep { to { transform: translateX(100%); } }
@keyframes lx-in { from { opacity: 0; } }
@keyframes lx-out { to { opacity: 0; visibility: hidden; } }

.launch-note { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 24px 72px; }
.launch-note p { color: var(--muted); max-width: 60ch; }

@media (max-width: 760px) {
  .lx-inner { gap: 20px; padding: 74px 18px 28px; } /* room above the brand for the Skip button */
  .lx-brand { gap: 12px; }
  .lx-logo .ca-logo { height: 34px; }
  .lx-skip { top: 14px; right: 14px; font-size: 13px; padding: 7px 14px; }
}
@media print { .lx-stage { display: none !important; } }



/* =====================================================================
   Modern pass: surface tiers, tricolour, the numbers band, glass, the contact bubble
   ===================================================================== */
:root {
  --card: #ffffff;            /* cards are white on a soft blue-grey page: two clear tiers */
  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(255, 255, 255, .55);
  --tri-mid: #cfd8e3;         /* the white stripe of the tricolour, on a light page */
}
/* ---- two surface tiers on a light page too */
.card, .panel, .tool-card, .aside-cta, .step-list li, .table-wrap, .person, .badge { background: var(--card); }

/* ---- frosted glass: the header more so, and anything marked .glass */
header.site { background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--glass-line); }
.glass { background: var(--glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); }

/* ---- the tricolour, the firm's own mark */
.tricolour { display: flex; gap: 6px; width: 132px; height: 4px; }
.tricolour i { flex: 1; border-radius: 999px; }
.tricolour i:nth-child(1) { background: var(--saffron); }
.tricolour i:nth-child(2) { background: var(--tri-mid); }
.tricolour i:nth-child(3) { background: var(--green); }
.tricolour-footer { margin: 0 auto; width: min(var(--max), calc(100% - 48px)); height: 3px; }
.tricolour-footer i:nth-child(2) { background: #ffffff; }

/* ---- the practice in numbers */
.stats-band { padding: 8px 0 44px; }
.stats-band .tricolour { margin-bottom: 26px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px; }
.stats li { display: grid; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line-2); }
.stats b { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stats .stat-date { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; padding-top: 6px; }
.stats span { font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 22ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 22px 18px; } .stats-band { padding-bottom: 32px; } }

/* ---- the contact bubble, wide screens only */
.chat-fab { display: none; }
@media (min-width: 761px) {
  .chat-fab { display: block; position: fixed; right: 22px; bottom: 22px; z-index: 56; }
  .chat-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: 0 14px 30px -12px rgba(15, 95, 144, .8); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
  .chat-btn .icon { width: 26px; height: 26px; }
  .chat-btn:hover { transform: translateY(-2px); background: var(--brand-700); }
  .chat-fab.open .chat-btn { transform: rotate(0) scale(.94); }
  .chat-panel { position: absolute; right: 0; bottom: 70px; width: 300px; border-radius: 20px; padding: 18px; display: grid; gap: 6px; animation: chat-in .22s var(--ease) both; }
  .chat-panel[hidden] { display: none; }
  .chat-title { margin: 0 0 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
  .chat-panel a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; transition: background .15s; }
  .chat-panel a:hover { background: var(--brand-50); }
  .chat-panel a .icon { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
  .chat-panel small { display: block; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
  .to-top { bottom: 92px; }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .chat-panel { animation: none; } }


/* ---- "what to do, and by when" box inside a note */
.callout-note { margin: 28px 0; padding: 22px 26px; background: var(--brand-50); border: 1px solid var(--brand-100); border-left: 3px solid var(--saffron); border-radius: var(--radius); }
.callout-note .label { margin-bottom: 10px; }
.callout-note ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.callout-note li { font-size: 15.5px; line-height: 1.6; }
.prose .callout-note li::marker { color: var(--brand); }
@media (max-width: 760px) { .callout-note { padding: 18px 20px; } }

/* on phones the Kural's first line needs every pixel of width to stay whole
   (31.66em in Noto Serif Tamil), so its indent and the side padding give some back */
@media (max-width: 760px) {
  .kural-dark blockquote { padding-left: 14px; }
  .lx-inner { padding-left: 12px; padding-right: 12px; }
  .lx-kural span { font-size: min(25px, 3.12cqi); }
}


/* =====================================================================
   Launch-week decorations: marigold thoranam, kolam, kuthuvilakku, petals
   The artwork is src/lib/decor.mjs; the confetti and petals are drawn in launch.js.
   ===================================================================== */
.decor-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- the thoranam: a row of scallops that each sway a little, out of step */
.thoranam { display: flex; justify-content: center; overflow: hidden; pointer-events: none; }
.thoranam .swag { flex: 0 0 auto; width: var(--swag-w, 150px); height: calc(var(--swag-w, 150px) * .5375); overflow: visible; transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .thoranam .swag { animation: swag-sway 5.6s ease-in-out infinite; }
  .thoranam .swag:nth-child(2n) { animation-duration: 6.3s; animation-delay: -1.5s; }
  .thoranam .swag:nth-child(3n) { animation-delay: -2.8s; }
}
@keyframes swag-sway { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } }

/* across the top of every page during launch week */
.thoranam-site { --swag-w: clamp(92px, 10vw, 128px); position: relative; z-index: 49; padding-bottom: 4px; }
.thoranam-site.in { animation: garland-drop .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes garland-drop { from { opacity: 0; transform: translateY(-45%); } }

/* ---- on the launch stage */
.lx-stage { --swag-w: clamp(110px, 12vw, 170px); }
.lx-thoranam { position: absolute; top: 0; left: 0; right: 0; z-index: 4; }
.lx-mute, .lx-skip { z-index: 5; } /* they sit inside the content column, which is already clear of the garland */

/* kolam in soft gold, one in each corner, mirrored */
.lx-kolam { position: absolute; z-index: 1; width: clamp(120px, 21vmin, 240px); height: auto; aspect-ratio: 1; color: #e9c46a; opacity: .26; pointer-events: none; }
.lx-kolam.k-tl { top: calc(var(--swag-w) * .5); left: 0; }
.lx-kolam.k-tr { top: calc(var(--swag-w) * .5); right: 0; transform: scaleX(-1); }
.lx-kolam.k-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.lx-kolam.k-br { bottom: 0; right: 0; transform: scale(-1, -1); }
@media (prefers-reduced-motion: no-preference) {
  .lx-kolam { animation: kolam-in 2.4s ease both; }
}
@keyframes kolam-in { from { opacity: 0; } }

/* ---- the kuthuvilakku: unlit on the opening screen, lit by the blessing, burning through the ceremony */
.lx-lamp { display: block; overflow: visible; }
.lx-lamp .flame { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .35s ease, transform .7s cubic-bezier(.2, 1.5, .4, 1); }
.lx-lamp.lit .flame { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .lx-lamp.lit .flicker { transform-box: fill-box; transform-origin: 50% 100%; animation: flame-flicker 1.8s ease-in-out infinite; }
  .lx-lamp.lit .flame-r .flicker { animation-delay: -.7s; animation-duration: 2.1s; }
}
@keyframes flame-flicker {
  0%, 100% { transform: none; }
  25% { transform: scale(.94, 1.06) skewX(2deg); }
  55% { transform: scale(1.04, .95) skewX(-2deg); }
  80% { transform: scale(.97, 1.03) skewX(1deg); }
}
.lx-lamp-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 34px); }
.lx-lamp-row .lx-lamp { height: clamp(88px, 16vh, 150px); width: auto; aspect-ratio: 80 / 170; }
.lx-stage-lamp { position: absolute; z-index: 2; bottom: 4vh; height: clamp(130px, 28vh, 260px); width: auto; aspect-ratio: 80 / 170; pointer-events: none; }
.lx-stage-lamp.left { left: 6vw; }
.lx-stage-lamp.right { right: 6vw; }

@media (max-width: 760px) {
  .lx-stage-lamp { display: none; }
  .lx-lamp-row { gap: 10px; }
  .lx-lamp-row .lx-lamp { height: 76px; }
  .lx-kolam { width: 110px; opacity: .2; }
  .lx-inner { padding-top: calc(var(--swag-w) * .62 + 60px); }
  .lx-mute, .lx-skip { top: calc(var(--swag-w) * .62 + 6px); right: 12px; }
}
@media print { .thoranam, .lx-kolam, .lx-lamp { display: none !important; } }


/* ---- the kolam at the foot of the page, closing what the garland opens */
.kolam-band { position: relative; height: clamp(94px, 11vw, 150px); margin-top: 30px; overflow: hidden; pointer-events: none; }
.kolam-corner { position: absolute; bottom: 0; width: clamp(128px, 17vw, 212px); height: auto; aspect-ratio: 1; color: #a8741a; opacity: .3; }
.kolam-corner.kc-l { left: 0; transform: scaleY(-1); }
.kolam-corner.kc-r { right: 0; transform: scale(-1, -1); }

/* ---- the hero during launch week: a marigold spray in each upper corner */
.hero-grid { z-index: 2; }
.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.spray { position: absolute; top: 0; width: clamp(92px, 11vw, 146px); height: auto; aspect-ratio: 1; }
.spray.s-left { left: 0; }
.spray.s-right { right: 0; transform: scaleX(-1); }
@media (max-width: 700px) {
  .spray { width: 80px; opacity: .9; }
  .hero-decor:not([hidden]) ~ .hero-grid { padding-top: 56px; }
}

.kolam-band.in, .hero-decor.in { animation: decor-fade 1.4s ease both; }
@keyframes decor-fade { from { opacity: 0; } }

/* ---- the petals that drift across the home page once, on the first visit of launch week */
.petal-fall { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

@media print { .kolam-band, .hero-decor, .petal-fall { display: none !important; } }


/* =====================================================================
   The blessing, and the passage from the opening screen to the ceremony.
   The button settles under the hand; the lamps take the flame; the words
   withdraw and leave the lamps alone; their light swells until it fills the
   room; the screen changes behind it; and the ceremony is standing when it
   clears. Sequenced in launch.js — these are only the movements.
   ===================================================================== */

/* the button accepts the press and steps back, rather than waiting about */
.lx-bless[data-pressed] {
  pointer-events: none;
  transform: translateY(1px) scale(.97);
  box-shadow: 0 10px 30px -18px rgba(243, 121, 32, .5);
  transition: transform .45s var(--ease), box-shadow .5s var(--ease);
}
.lx-bless[data-pressed] .lx-bless-glow { animation: lx-accept .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lx-accept { 0% { transform: scale(.98); opacity: .95; } 100% { transform: scale(1.75); opacity: 0; } }

/* the words step away; the lamps stay, and rise a little, burning */
.lx-withdraw .lx-brand,
.lx-withdraw .lx-invite,
.lx-withdraw .lx-bar,
.lx-withdraw .lx-bless { animation: lx-withdraw .8s cubic-bezier(.4, 0, .2, 1) both; }
.lx-withdraw .lx-bless { animation-delay: 0s; }
.lx-withdraw .lx-bar { animation-delay: .07s; }
.lx-withdraw .lx-invite { animation-delay: .15s; }
.lx-withdraw .lx-brand { animation-delay: .26s; }
@keyframes lx-withdraw { from { opacity: 1; } to { opacity: 0; transform: translateY(-12px); } }

/* the room goes dark, and the two lamps are all that is left of it */
.lx-veil { position: fixed; inset: 0; z-index: 240; pointer-events: none; }
.lx-veil::before {
  content: ""; position: absolute; inset: 0; background: #04101d; opacity: 0;
  transition: opacity 1.15s cubic-bezier(.4, 0, .6, 1);
}
.lx-veil.in::before { opacity: 1; }
.lx-veil.out::before { transition-duration: 1.2s; transition-timing-function: cubic-bezier(.3, .2, 0, 1); }
.lx-veil-lamp {
  position: absolute; opacity: 0; transition: opacity .85s ease;
  filter: drop-shadow(0 6px 34px rgba(255, 168, 62, .55)) drop-shadow(0 0 90px rgba(255, 140, 30, .28));
}
.lx-veil.in .lx-veil-lamp { opacity: 1; }
.lx-veil.out .lx-veil-lamp { opacity: 0; transition-duration: .7s; }

/* the ceremony, emerging as the light clears */
.lx-stage.lx-entering .lx-count,
.lx-stage.lx-entering .lx-label,
.lx-stage.lx-entering .lx-bar,
.lx-stage.lx-entering .lx-stage-lamp,
.lx-stage.lx-entering .lx-thoranam,
.lx-stage.lx-entering .lx-kolam { opacity: 0; }
.lx-stage.lx-entered .lx-brand { animation: lx-emerge .95s cubic-bezier(.2, .75, .25, 1) .1s both; }
.lx-stage.lx-entered .lx-count { animation: lx-emerge .95s cubic-bezier(.2, .75, .25, 1) .22s both; }
.lx-stage.lx-entered .lx-label { animation: lx-emerge .95s cubic-bezier(.2, .75, .25, 1) .34s both; }
.lx-stage.lx-entered .lx-bar { animation: lx-emerge .95s cubic-bezier(.2, .75, .25, 1) .42s both; }
.lx-stage.lx-entered .lx-stage-lamp { animation: lx-settle 1.3s cubic-bezier(.2, .75, .25, 1) both; }
.lx-stage.lx-entered .lx-thoranam { animation: lx-settle 1.2s cubic-bezier(.2, .8, .2, 1) .1s both; }
.lx-stage.lx-entered .lx-kolam { animation: lx-settle 1.6s ease .3s both; }
@keyframes lx-emerge { from { opacity: 0; transform: translateY(14px) scale(.986); } to { opacity: 1; transform: none; } }
@keyframes lx-settle { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .lx-veil, .lx-veil::before, .lx-veil-lamp, .lx-withdraw .lx-brand, .lx-withdraw .lx-invite,
  .lx-withdraw .lx-bar, .lx-withdraw .lx-bless, .lx-bless[data-pressed] { transition: none; animation: none; }
}
