/* Tirupati v2 design system. Tokens first, then base, components, sections. */
/* Themes. Every colour on the site comes from these tokens, so a theme is just a set of values.
   ocean (default) | gold (matches the older pages) | emerald | dark. The theme is chosen by html[data-theme]. */
:root, html[data-theme="ocean"] {
  --navy: #0a1f44;            /* headings */
  --navy-2: #12305f;
  --deep: #0a1f44;            /* dark surfaces: footer, bands, selected tabs */
  --blue: #1565c0;            /* accent */
  --link: #1565c0;
  --accent-rgb: 21,101,192;
  --accent-edge: #0a3b78;
  --on-accent: #ffffff;
  --blue-soft: #e8f1fb;
  --teal: #0e9aa7;
  --teal-soft: #e3f6f7;
  --teal-ink: #0a6f79;
  --ink: #14213d;
  --muted: #55627a;
  --line: #dde5f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --surface: #ffffff;
  --header-bg: rgba(255,255,255,.92);
  --hero-from: #f4f8fd; --hero-to: #ffffff; --hero-glow: rgba(14,154,167,.18);
  --field-border: #c7d3e4;
  --intro-1: #ffffff; --intro-2: #f1f6fc; --intro-3: #e6eef9;
  --note-bg: #fff8e1; --note-border: #f0d98a; --note-ink: #6b5200;
  --band-end: #0d5a73; --band-text: #dbe6f7; --band-muted: #c3d3ea; --footer-text: #b9c8e0; --cta-text: #ffffff; --cta-sub: #eaf6fb; --cta-to: #0e9aa7;
  --on-light: #0a1f44;
  --glass-top: rgba(255,255,255,.85); --glass-bottom: rgba(255,255,255,.5); --glass-border: rgba(255,255,255,.85); --glass-edge: #c3d1e6; --glass-ring: #cdd9ea;
  --shadow: 0 1px 2px rgba(10,31,68,.06), 0 8px 24px rgba(10,31,68,.08);
  --shadow-lg: 0 2px 4px rgba(10,31,68,.08), 0 24px 48px rgba(10,31,68,.14);
  --radius: 14px;
  --font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  color-scheme: light;
}
html[data-theme="gold"] {
  --navy: #3b2a05; --navy-2: #5a3f0a; --deep: #3b2a05;
  --blue: #e0a526; --link: #8a5a00; --accent-rgb: 224,165,38; --accent-edge: #8a5a00; --on-accent: #2b1d00;
  --blue-soft: #fdf1d4; --teal: #c2790c; --teal-soft: #fff1d0; --teal-ink: #7a4a00;
  --ink: #2b2208; --muted: #6b5a33; --line: #ecdcb8; --bg: #fffdf8; --bg-alt: #fbf6ea; --surface: #ffffff; --header-bg: rgba(255,252,243,.92);
  --hero-from: #fff6df; --hero-to: #fffdf8; --hero-glow: rgba(224,165,38,.22); --field-border: #dcc9a0;
  --intro-1: #fffdf8; --intro-2: #fff6df; --intro-3: #f6e7c0;
  --note-bg: #fff3cf; --note-border: #e8c765; --note-ink: #5a3f00;
  --band-end: #8a5a00; --band-text: #f6e9c8; --band-muted: #ecd9a8; --footer-text: #e6d4a6; --cta-text: #2b1d00; --cta-sub: #4a3500; --cta-to: #c2790c;
  --on-light: #3b2a05;
  --glass-edge: #e1cf9f; --glass-ring: #e6d4a6;
  --shadow: 0 1px 2px rgba(59,42,5,.07), 0 8px 24px rgba(59,42,5,.09); --shadow-lg: 0 2px 4px rgba(59,42,5,.09), 0 24px 48px rgba(59,42,5,.15);
}
html[data-theme="emerald"] {
  --navy: #07302a; --navy-2: #0b4a3f; --deep: #07302a;
  --blue: #0a7050; --link: #0a7050; --accent-rgb: 10,112,80; --accent-edge: #054030; --on-accent: #ffffff;
  --blue-soft: #e2f5ee; --teal: #1aa6a0; --teal-soft: #e0f6f4; --teal-ink: #0b6f6a;
  --ink: #10261f; --muted: #4f6a60; --line: #d5e8e1; --bg: #ffffff; --bg-alt: #f2f9f6; --surface: #ffffff; --header-bg: rgba(255,255,255,.92);
  --hero-from: #eefaf5; --hero-to: #ffffff; --hero-glow: rgba(26,166,160,.2); --field-border: #bcd8cd;
  --intro-1: #ffffff; --intro-2: #eefaf5; --intro-3: #dff2ea;
  --band-end: #0b6f6a; --band-text: #d8efe7; --band-muted: #bfe0d4; --footer-text: #b5d6ca; --cta-to: #1aa6a0;
  --on-light: #07302a;
  --glass-edge: #bfd9ce; --glass-ring: #c9dfd5;
  --shadow: 0 1px 2px rgba(7,48,42,.06), 0 8px 24px rgba(7,48,42,.08); --shadow-lg: 0 2px 4px rgba(7,48,42,.08), 0 24px 48px rgba(7,48,42,.14);
}
html[data-theme="dark"] {
  --navy: #eef4ff; --navy-2: #1b3b6b; --deep: #060d1a;
  --blue: #2a74d6; --link: #7db8ff; --accent-rgb: 42,116,214; --accent-edge: #123f80; --on-accent: #ffffff;
  --blue-soft: #14274a; --teal: #35c4d1; --teal-soft: #11343a; --teal-ink: #7fe3ec;
  --ink: #e6edf8; --muted: #a3b3cf; --line: #25395a; --bg: #0b1424; --bg-alt: #0f1a2f; --surface: #111e36; --header-bg: rgba(11,20,36,.86);
  --hero-from: #0f1d38; --hero-to: #0b1424; --hero-glow: rgba(53,196,209,.16); --field-border: #34507d;
  --intro-1: #12203a; --intro-2: #0d182c; --intro-3: #08101f;
  --note-bg: #2b2410; --note-border: #5d4c1c; --note-ink: #f0d98a;
  --band-end: #0d5a73; --band-text: #dbe6f7; --band-muted: #b7c9e6; --footer-text: #a3b3cf; --cta-text: #ffffff; --cta-sub: #e3efff; --cta-to: #1d9fb0;
  --on-light: #0a1f44;
  --glass-top: rgba(255,255,255,.16); --glass-bottom: rgba(255,255,255,.06); --glass-border: rgba(255,255,255,.28); --glass-edge: rgba(0,0,0,.55); --glass-ring: rgba(255,255,255,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-lg: 0 2px 4px rgba(0,0,0,.45), 0 24px 48px rgba(0,0,0,.5);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.v2 { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
.v2 img, .v2 svg { max-width: 100%; display: block; }
.v2 a { color: var(--link); text-decoration: none; }
.v2 h1, .v2 h2, .v2 h3, .v2 h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.v2 h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
.v2 h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 750; }
.v2 h3 { font-size: 1.15rem; font-weight: 650; }
.v2 p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff !important; box-shadow: 0 6px 16px rgba(21,101,192,.3); }
.btn-primary:hover { background: #0f55a5; }
.btn-ghost { background: transparent; color: var(--navy) !important; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { background: var(--surface); color: var(--navy) !important; }
.btn-outline-light { color: #fff !important; border-color: rgba(255,255,255,.5); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy) !important; font-weight: 800; }
.brand img { height: 40px; width: auto; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--bg-alt); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy); content: ""; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-ghost { display: none; }
  .nav { position: absolute; inset: 68px 0 auto 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; min-height: 48px; }
}

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, var(--hero-glow), transparent 60%), linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%); padding: clamp(40px, 7vw, 96px) 0; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: .92rem; }
.trust-row span::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 8px; }
.hero-visual { position: relative; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease; }
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock .dots { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mock .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock img { width: 100%; height: auto; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 10px; align-items: center; font-size: .88rem; animation: bob 6s ease-in-out infinite; }
.float-card b { display: block; color: var(--navy); }
.float-card.a { left: -14px; bottom: 18%; }
.float-card.b { right: -8px; top: 12%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) {
  .hero .grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .float-card.a { left: 8px; } .float-card.b { right: 8px; }
}
@media (max-width: 520px) { .float-card { display: none; } .btn { width: 100%; } }

/* Sections */
section.block { padding: clamp(48px, 7vw, 92px) 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -36px; position: relative; z-index: 2; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 24px; } }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
html { --go: 1; --gt: color-mix(in srgb, var(--glass-top) calc(var(--go) * 100%), transparent); --gb: color-mix(in srgb, var(--glass-bottom) calc(var(--go) * 100%), transparent); }
.card { background: linear-gradient(180deg, var(--gt), var(--gb)), var(--bg); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; color: inherit !important; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b9cde8; }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .more { color: var(--link); font-weight: 600; font-size: .92rem; }
.card .more::after { content: " →"; }

/* Platform split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9aa7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.panel-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface); }

/* Deployment chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--navy); }

/* ABDM band */
.band { background: linear-gradient(135deg, var(--deep) 0%, var(--navy-2) 60%, var(--band-end) 100%); color: var(--band-text); }
.band h2, .band h3 { color: #fff; }
.band .lead { color: var(--band-muted); }
.band .imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.band .imgs img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #fff; }

/* CTA */
.cta { text-align: center; }
.cta .box { background: linear-gradient(135deg, var(--blue), var(--cta-to)); border-radius: 24px; padding: clamp(32px, 6vw, 64px); color: var(--cta-text); }
.cta h2 { color: var(--cta-text); }
.cta p { color: var(--cta-sub); max-width: 56ch; margin: 0 auto 24px; }
.cta .cta-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--deep); color: var(--footer-text); padding: 56px 0 24px; }
.site-footer h4, .site-footer .fh { color: #fff; font-size: 1rem; margin: 0 0 .6em; font-weight: 700; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Floating WhatsApp */
.wa-fab { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 60; }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* Reveal animation (respects reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; } .mock { transition: none; } html { scroll-behavior: auto; }
}

/* Inner pages */
.page-hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.subnav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 600; font-size: .92rem; background: var(--surface); }
.subnav a[aria-current="page"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.draft-note { background: var(--note-bg); border: 1px solid var(--note-border); color: var(--note-ink); border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 0 0 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote-card h3 { color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--navy); background: var(--bg-alt); font-weight: 600; }
@media (max-width: 560px) { .facts th, .facts td { display: block; width: 100%; } .facts th { border-bottom: 0; padding-bottom: 2px; } }
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
@media (max-width: 560px) { .leaders { grid-template-columns: 1fr; } }
.leader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); }
.leader p { color: var(--muted); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--blue-soft); max-width: 760px; }
.timeline li { position: relative; padding: 0 0 32px 24px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--teal); }
.timeline .yr { color: var(--blue); font-weight: 800; font-size: 1.3rem; }
.timeline h3 { margin: 2px 0 4px; }
.timeline p { color: var(--muted); margin: 0; }

/* Product pages */
.pd-hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .pd-hero .grid { grid-template-columns: 1fr; } }
.pd-img { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; }
.pd-img img { width: 100%; height: auto; border-radius: 10px; }
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mods { grid-template-columns: 1fr; } }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mod h3 { font-size: 1.02rem; margin-bottom: 6px; }
.mod p { color: var(--muted); font-size: .93rem; margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 16px 0; min-height: 48px; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }
.verify-note { font-size: .85rem; color: var(--muted); }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); max-width: 860px; }
.fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 640px) { .fgrid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(21,101,192,.18); }
.field .err { color: #b3261e; font-size: .86rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert-ok { background: var(--teal-soft); border: 1px solid var(--teal); color: var(--teal-ink); padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }

/* Opening intro: 3D logo, reflected name, sparkles. */
html.intro-on { overflow: hidden; }
html.intro-skip .intro { display: none; }
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(900px 600px at 50% 40%, var(--intro-1) 0%, var(--intro-2) 70%, var(--intro-3) 100%); transition: opacity .6s ease, visibility .6s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); text-align: center; perspective: 1200px; }
.intro-logo { position: relative; width: min(58vw, 300px); aspect-ratio: 1; transform-style: preserve-3d; opacity: 0; }
.intro.go .intro-logo { animation: logoIn 1.3s cubic-bezier(.2,.8,.2,1) both, logoFloat 4s ease-in-out 1.3s infinite; }
.intro-logo img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.intro-logo img:first-child { filter: drop-shadow(0 18px 24px rgba(10,31,68,.25)); }
.intro-logo .refl { top: 100%; transform: scaleY(-1); opacity: .28; filter: blur(.4px); -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 100%); mask-image: linear-gradient(to bottom, transparent 55%, #000 100%); }
@keyframes logoIn { from { opacity: 0; transform: rotateY(-200deg) scale(.4); } to { opacity: 1; transform: rotateY(0) scale(1); } }
@keyframes logoFloat { 50% { transform: translateY(-6px) rotateY(8deg); } }
.intro-name { position: relative; margin-top: calc(min(58vw, 300px) * 0.46); font-weight: 800; letter-spacing: .01em; font-size: clamp(1.25rem, 4.4vw, 2.1rem); line-height: 1.2; color: var(--navy); background: linear-gradient(100deg, var(--navy) 30%, #ffffff 48%, var(--teal) 52%, var(--navy) 70%) 200% 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; }
.intro.go .intro-name { animation: nameIn .9s ease .7s both, shine 1.6s ease 1.4s both; }
.intro-name::after { content: attr(data-text); position: absolute; left: 0; right: 0; top: 100%; transform: scaleY(-1); transform-origin: top; color: var(--navy); -webkit-text-fill-color: var(--navy); background: none; opacity: .2; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 100%); mask-image: linear-gradient(to bottom, transparent 40%, #000 100%); }
@keyframes nameIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shine { to { background-position: -100% 0; } }
.intro-bar { width: min(260px, 60vw); height: 3px; margin-top: clamp(56px, 11vw, 84px); background: var(--line); border-radius: 3px; overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--teal)); }
.intro.go .intro-bar i { animation: bar 2.6s ease-in-out forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.intro-skip-btn { position: absolute; right: 16px; bottom: 16px; min-height: 44px; min-width: 64px; padding: 0 18px; border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--navy); border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .intro.go .intro-logo, .intro.go .intro-name, .intro.go .intro-bar i { animation: none; }
  .intro-logo, .intro-name { opacity: 1; } .intro-bar i { transform: scaleX(1); }
  .intro-name { -webkit-text-fill-color: var(--navy); background: none; }
  .intro-sparks { display: none; }
}

/* Language switcher, badges, quotes, newsletter, compact contact */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang a { padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center; font-weight: 600; font-size: .85rem; color: var(--navy); }
.lang a[aria-current="true"] { background: var(--deep); color: #fff; }
@media (max-width: 960px) { .header-cta .lang { display: inline-flex; } .header-cta .btn { padding: 0 14px; font-size: .9rem; } }
@media (max-width: 420px) { .header-cta .btn-primary { display: none; } }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.badge.ready { background: var(--teal-soft); color: var(--teal-ink); } .badge.planned { background: var(--bg-alt); color: var(--muted); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.quote p { margin: 0; color: var(--ink); } .quote footer { color: var(--muted); font-size: .9rem; } .quote b { color: var(--navy); display: block; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.news-card time { color: var(--muted); font-size: .85rem; } .news-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.partner-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.partner-row img { height: 48px; width: auto; filter: grayscale(1); opacity: .8; }
.jobs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.nl { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; max-width: 560px; }
.nl input[type=email] { flex: 1 1 220px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-border); border-radius: 999px; font: inherit; }
.contact-points { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.contact-points a { font-weight: 600; }
.band .nl input[type=email] { border-color: rgba(255,255,255,.4); }
.band .check { color: var(--band-muted); }

/* Customer pages */
.facts thead th { background: var(--deep); color: #fff; width: auto; }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 20px; }
.pagination [aria-disabled="true"] { opacity: .4; pointer-events: none; }
.pg-info { color: var(--muted); font-weight: 600; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.1rem; }
@media (max-width: 560px) { .facts thead { display: none; } .facts tbody tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; } .facts td { border-bottom: 0; padding: 3px 18px; } }

/* Job descriptions (cleaned HTML from the admin) */
.rich ul, .rich ol { padding-left: 1.2em; color: var(--muted); } .rich li { margin: 0 0 .4em; } .rich h2 { margin-top: 1.2em; }
input[type="file"] { padding: 10px 12px; background: var(--surface); }

/* Receipt and print */
.receipt-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.receipt-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); font-size: .9rem; }
@media print {
  .site-header, .site-footer, .wa-fab, .skip, .no-print, .intro, .theme { display: none !important; }
  body.v2 { background: #fff !important; color: #000 !important; }
  .form-card, .facts { box-shadow: none !important; border-color: #999 !important; background: #fff !important; }
  .facts th { background: #f2f2f2 !important; color: #000 !important; }
  .receipt-title, .receipt strong { color: #000 !important; }
}

/* Cookie consent, map box, small helpers (Google features) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; padding: 16px 18px; border-radius: var(--radius, 14px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent a { color: var(--link); }
.map-box { min-height: 120px; padding: 20px; border-radius: var(--radius, 14px); background: var(--surface); border: 1px solid var(--line); }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: 10px; display: block; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.fine { font-size: .82rem; opacity: .8; }
.err { color: var(--danger, #b3261e); font-weight: 600; }

/* Touch targets on phones: footer and breadcrumb links reach at least 32px high */
@media (max-width: 720px) {
  .site-footer .fgrid li a, .site-footer .fgrid .linklike, .site-footer .social a { display: inline-block; padding: 7px 0; min-height: 32px; box-sizing: border-box; }
  .crumbs a { display: inline-block; padding: 7px 0; }
  .site-footer a[href^="tel:"], .site-footer a[href^="mailto:"], a[href*="wa.me"] { display: inline-block; padding: 6px 0; }
}

/* Events and expo (theme tokens only) */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; margin: 18px 0 8px; }
.ev-card { padding: 0; overflow: hidden; }
.ev-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.ev-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ev-body h3 { margin: 0; }
.ev-body h3 a { color: inherit; text-decoration: none; }
.ev-body h3 a:hover { text-decoration: underline; }
.ev-meta { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.ev-where { margin: 0; opacity: .85; }
.ev-past { margin-top: 38px; }
.ev-detail { max-width: 960px; }
.ev-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin: 0 0 22px; }
.ev-text { max-width: 760px; line-height: 1.7; }
.ev-gallery { list-style: none; padding: 0; margin: 14px 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ev-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ev-cta { margin: 28px 0; padding: 22px 24px; }

.ev-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; margin: 26px 0; align-items: start; }
.ev-forms .card { padding: 22px 24px; }
.ev-forms h2 { margin-top: 0; }

/* Long words (for example Hindi compound titles) wrap instead of widening the page on small phones */
.page-hero h1, .page-hero .lead, .ev-body h3, .block h2, .card h3 { overflow-wrap: anywhere; }

/* Social + help strip (glass, theme-aware) */
.social-row { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; justify-content: center; border-radius: 14px; color: var(--navy) !important; text-decoration: none;
  background: linear-gradient(180deg, var(--gt), var(--gb)); border: 1px solid var(--glass-border); box-shadow: 0 1px 0 var(--glass-ring) inset, 0 3px 0 var(--glass-edge), 0 8px 18px rgba(var(--accent-rgb), .18); backdrop-filter: blur(8px); transition: transform .15s, box-shadow .15s; }
.social-btn:hover, .social-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 1px 0 var(--glass-ring) inset, 0 5px 0 var(--glass-edge), 0 12px 24px rgba(var(--accent-rgb), .3); }
.social-row.compact .social-name, .social-row.in-footer .social-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer .social-btn { color: var(--ink) !important; padding: 0; width: 44px; }
.help-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 24px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(180deg, var(--gt), var(--gb)); border: 1px solid var(--glass-border); box-shadow: 0 6px 20px rgba(var(--accent-rgb), .12); backdrop-filter: blur(10px); }
.help-strip p { margin: 0; flex: 1 1 260px; }
.help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.help-actions .social-row { margin: 0; }
.wa-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; text-decoration: none;
  background: linear-gradient(180deg, #3fd47e, #14994f); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 4px 0 #0c6b34, 0 10px 22px rgba(20,153,79,.35); transition: transform .15s; }
.wa-fab:hover, .wa-fab:focus-visible { transform: translateY(-2px); }
@media print { .wa-fab, .social-row { display: none; } }

/* Rainbow theme: light base with slowly moving colours on buttons, the header line and the page banner.
   Only background positions animate (cheap); text and page colours stay fixed so reading is never disturbed. */
html[data-theme="rainbow"] {
  --blue: #6d3fd1; --link: #5b2fc0; --accent-rgb: 109,63,209; --accent-edge: #3d1d8a; --blue-soft: #f1ebff; --teal: #0e9aa7; --teal-soft: #efe9ff; --teal-ink: #4a23a8;
  --hero-from: #fbf8ff; --hero-glow: rgba(109,63,209,.16); --band-end: #4a23a8; --cta-to: #6d3fd1;
  --rb-solid: linear-gradient(90deg, #d6293e, #c2530a, #a86a00, #0f8a4b, #0a8a9a, #1d5fd1, #7a3fd1, #c2268f, #d6293e);
  --rb-soft: linear-gradient(90deg, rgba(239,68,68,.12), rgba(245,158,11,.12), rgba(34,197,94,.12), rgba(6,182,212,.12), rgba(139,92,246,.12), rgba(236,72,153,.12), rgba(239,68,68,.12));
  --rb-line: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444);
}
@keyframes rb-slide { from { background-position: 0 0; } to { background-position: 200% 0; } }
html[data-theme="rainbow"] .btn-primary { background: var(--rb-solid); background-size: 200% 100%; background-repeat: repeat-x; animation: rb-slide 16s linear infinite; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
html[data-theme="rainbow"] .btn-primary:hover { animation-duration: 5s; }
html[data-theme="rainbow"] .site-header { position: sticky; }
html[data-theme="rainbow"] .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--rb-line); background-size: 200% 100%; background-repeat: repeat-x; animation: rb-slide 12s linear infinite; pointer-events: none; }
html[data-theme="rainbow"] .page-hero { background: var(--rb-soft), #fff; background-size: 200% 100%, auto; background-repeat: repeat-x, no-repeat; animation: rb-slide 40s linear infinite; }
html[data-theme="rainbow"] .social-btn:hover, html[data-theme="rainbow"] .social-btn:focus-visible { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--rb-line) border-box; }
@media (prefers-reduced-motion: reduce) {
  html[data-theme="rainbow"] .btn-primary, html[data-theme="rainbow"] .site-header::after, html[data-theme="rainbow"] .page-hero { animation: none; }
}

/* 3D logo: depth shadow, glossy highlight that follows the pointer, gentle idle float. Motion off for reduced-motion users. */
.logo-3d { display: inline-block; position: relative; perspective: 600px; line-height: 0; --rx: 0deg; --ry: 0deg; --gx: 32%; --gy: 22%; }
.logo-3d img { display: block; border-radius: 50%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .18s ease-out; filter: drop-shadow(0 4px 6px rgba(10,31,68,.28)) drop-shadow(0 10px 14px rgba(var(--accent-rgb), .22)); will-change: transform; }
.logo-3d::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.55), rgba(255,255,255,0) 46%), radial-gradient(circle at 70% 82%, rgba(0,0,0,.22), rgba(0,0,0,0) 55%); mix-blend-mode: soft-light; }
.logo-3d.is-idle img { animation: logo-float 6s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { transform: translateY(0) rotateY(-6deg); } 50% { transform: translateY(-2px) rotateY(6deg); } }
.foot-logo { margin: 0 0 12px; }
.foot-logo img { width: 80px; height: 80px; }
.brand .logo-3d img { width: 40px; height: 40px; }
@media (prefers-reduced-motion: reduce) { .logo-3d.is-idle img { animation: none; } .logo-3d img { transition: none; } }

/* Launch effect: pop with overshoot, golden glow burst, light sweep and twinkling stars around the logo. */
@keyframes logoIn { 0% { opacity: 0; transform: rotateY(-200deg) scale(.35); } 62% { opacity: 1; transform: rotateY(8deg) scale(1.14); } 80% { transform: rotateY(-3deg) scale(.97); } 100% { opacity: 1; transform: rotateY(0) scale(1); } }
.intro-logo .glow { position: absolute; inset: -28%; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255,226,140,.95) 0%, rgba(255,196,80,.5) 30%, rgba(255,170,60,0) 66%); }
.intro.go .intro-logo .glow { animation: glowBurst 1.9s ease-out .2s both, glowPulse 3.4s ease-in-out 2.1s infinite; }
@keyframes glowBurst { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1.18); } 100% { opacity: .5; transform: scale(1); } }
@keyframes glowPulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.07); } }
.intro-logo .shine { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.intro-logo .shine::before { content: ""; position: absolute; top: -25%; bottom: -25%; left: -60%; width: 38%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.9), rgba(255,255,255,0)); transform: skewX(-18deg); opacity: 0; }
.intro.go .intro-logo .shine::before { animation: shineSweep 1.3s ease-in-out 1.1s both, shineSweep 1.3s ease-in-out 4s infinite; }
@keyframes shineSweep { 0% { left: -60%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.intro-logo .stars { position: absolute; inset: -14%; pointer-events: none; }
.intro-logo .star { position: absolute; width: 22px; height: 22px; opacity: 0; background: radial-gradient(circle, #fff 0%, #ffe08a 55%, #ffc24a 100%); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 6px rgba(255,214,120,.95)); }
.intro-logo .s1 { left: 6%; top: 14%; width: 26px; height: 26px; } .intro-logo .s2 { right: 4%; top: 8%; } .intro-logo .s3 { right: -1%; top: 52%; width: 16px; height: 16px; } .intro-logo .s4 { left: -2%; top: 62%; width: 18px; height: 18px; }
.intro-logo .s5 { left: 20%; bottom: 0; width: 14px; height: 14px; } .intro-logo .s6 { right: 18%; bottom: 3%; width: 24px; height: 24px; } .intro-logo .s7 { left: 46%; top: -2%; width: 16px; height: 16px; }
.intro.go .intro-logo .star { animation: twinkle 1.8s ease-in-out infinite; }
.intro.go .intro-logo .s1 { animation-delay: .5s; } .intro.go .intro-logo .s2 { animation-delay: .9s; } .intro.go .intro-logo .s3 { animation-delay: 1.3s; } .intro.go .intro-logo .s4 { animation-delay: .7s; } .intro.go .intro-logo .s5 { animation-delay: 1.1s; } .intro.go .intro-logo .s6 { animation-delay: 1.5s; } .intro.go .intro-logo .s7 { animation-delay: .3s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 70% { opacity: .7; transform: scale(.8) rotate(70deg); } }
/* Header logo: one sparkle after the page opens (after the intro when it plays). */
.pop-once::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255,226,140,.9), rgba(255,200,90,0) 62%); animation: headerPop 1.4s ease-out .5s 1 both; }
html.intro-on .pop-once::before { animation-delay: 3.8s; }
.pop-once { animation: headerLogoPop 1s cubic-bezier(.2,.9,.2,1.4) .5s 1 both; }
html.intro-on .pop-once { animation-delay: 3.8s; }
@keyframes headerPop { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes headerLogoPop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .intro.go .intro-logo .glow { animation: none; opacity: .6; } .intro.go .intro-logo .shine::before, .intro.go .intro-logo .star, .pop-once::before, .pop-once { animation: none; }
  .intro-logo .star { opacity: .8; transform: none; }
}

/* Contact, FAQ, News, Resources, Search */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.contact-list li { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.contact-list li span { min-width: 72px; color: var(--muted); font-size: .85rem; }
.contact-list a { overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.release h4 { margin: 12px 0 4px; font-size: .95rem; color: var(--navy); }
.release .ticks { margin: 0; }
.mod-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 0; }
.search-box { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; max-width: 640px; }
.search-box input { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field-border); background: var(--surface); color: var(--ink); font: inherit; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.search-results li { padding: 14px 16px; border-radius: 14px; background: linear-gradient(180deg, var(--gt), var(--gb)); border: 1px solid var(--glass-border); box-shadow: 0 4px 14px rgba(var(--accent-rgb), .08); }
.search-results p { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.search-results a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Module explorer chips */
.mod-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.chip-btn { cursor: pointer; font: inherit; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; }
.chip-btn b { font-weight: 700; opacity: .7; font-size: .85em; }
.chip-btn[aria-pressed="true"] { background: var(--blue); color: var(--on-accent) !important; border-color: var(--accent-edge); box-shadow: 0 3px 0 var(--accent-edge); }
.mod[hidden] { display: none !important; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy) !important; background: linear-gradient(180deg, var(--gt), var(--gb)); border: 1px solid var(--glass-border); box-shadow: 0 2px 0 var(--glass-edge), 0 6px 12px rgba(var(--accent-rgb), .15); backdrop-filter: blur(8px); }
.icon-btn:hover, .icon-btn:focus-visible { transform: translateY(-1px); }
@media (max-width: 420px) { .header-cta .icon-btn { display: none; } }

/* Company name lines: header, footer, intro */
.brand { flex-shrink: 0; }
.brand-text { display: block; line-height: 1.15; white-space: nowrap; }
.brand-text b { display: block; font-weight: 800; }
.brand-text small { display: block; }
.b-more { display: none; } .b-former { display: none; } .b-sm { display: inline; }
@media (min-width: 521px) { .b-more { display: inline; } .b-sm { display: none; } }
@media (min-width: 1360px) { .b-former { display: inline; } }
.former-line { margin: 0 0 6px; font-size: .88rem; opacity: .85; }
.brand-tag { margin: 0 0 12px; font-weight: 700; color: var(--teal); letter-spacing: .01em; }
.site-footer .brand-tag { color: #ffd98a; }
.intro-tag { margin-top: 14px; font-weight: 800; letter-spacing: .02em; font-size: clamp(.95rem, 2.4vw, 1.2rem); color: var(--link); text-align: center; max-width: 92vw; }
html[data-theme="dark"] .intro-tag { background: linear-gradient(90deg, #ffe08a, #fff, #ffc24a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-former { margin-top: 6px; font-size: .85rem; color: var(--muted); text-align: center; }
html[data-theme="dark"] .intro-former { color: rgba(255,255,255,.75); }

/* Team, gallery, legal pages */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 22px; }
.person { align-items: center; text-align: center; padding: 18px; }
.person img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .22); height: auto; }
.person-ph { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; margin-bottom: 12px; font-size: 3rem; font-weight: 800; color: var(--on-accent); background: var(--blue); }
.person h3 { margin: 0 0 4px; font-size: 1.05rem; } .person .role { margin: 0; color: var(--muted); font-size: .92rem; }
.person-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 10px 0 0; font-size: .85rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--gt), var(--gb)); border: 1px solid var(--glass-border); box-shadow: 0 4px 14px rgba(var(--accent-rgb), .1); }
.shot img, .shot video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt); }
.shot figcaption { padding: 10px 12px; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.gallery-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.legal-text { max-width: 900px; } .legal-card { padding: 24px 28px; display: block; line-height: 1.7; } .legal-card h3, .legal-card h4 { margin-top: 1.4em; } .legal-card ul, .legal-card ol { padding-left: 1.3em; }
.legal-card h3:empty, .legal-card h4:empty, .legal-card p:empty { display: none; }
