/* SIEMTEL on siemtel.i5o.in
   Palette: sdskumba blood reds (dark and light), SIEMTEL logo blue and navy for buttons and icons only.
   The dark-red bands carry a MeshNet line pattern (nodes and links) instead of plain veins. */
:root,
:root[data-theme="light"] {
  --bg: #f7f3ee;
  --surface: #fffdf9;
  --surface-2: #efe8e0;
  --fg: #221d1a;
  --muted: #6b625b;
  --line: #ddd3c9;
  --blood: #8a0b13;
  --blood-bright: #a4161a;
  --blood-ink: #ffffff;
  --glow: rgba(138, 11, 19, 0);
  --glow-strength: 0;
  --vein-alpha: 0.12;
  --logo-blue: #1d5fbf;
  --logo-navy: #14286b;
  --band-1: #5a0710;
  --band-2: #8a0b13;
  --mesh-line: 164, 22, 26;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141110;
  --surface: #1d1917;
  --surface-2: #26201d;
  --fg: #f3ede6;
  --muted: #a89f97;
  --line: #3a312c;
  --blood: #c1121f;
  --blood-bright: #e5383b;
  --blood-ink: #ffffff;
  --glow: rgba(229, 56, 59, 0.55);
  --glow-strength: 1;
  --vein-alpha: 0.22;
  --logo-blue: #5b8ff0;
  --logo-navy: #9db6ff;
  --band-1: #3a0408;
  --band-2: #6e0910;
  --mesh-line: 229, 56, 59;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.65 "Poppins", "Noto Sans Tamil", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ta"] body { font-family: "Noto Sans Tamil", "Poppins", system-ui, sans-serif; line-height: 1.75; }
img, svg, canvas, iframe { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--blood) 35%, transparent); }
:focus-visible { outline: 2px solid var(--blood-bright); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }
html[lang="ta"] h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
html[lang="ta"] h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.tiny { font-size: 0.8rem; opacity: 0.8; }
.lead { font-size: 1.1rem; max-width: 62ch; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blood); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blood-bright); margin-bottom: 0.8rem; }
.eyebrow a { text-decoration: none; }
html[lang="ta"] .eyebrow { letter-spacing: 0.06em; font-size: 0.85rem; }

/* ---------- MeshNet background (cursor-reactive canvas) ---------- */
#mesh-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0.9; }
main, .hdr, .ftr { position: relative; }

/* ---------- MeshNet line pattern: replaces sdskumba's veins ---------- */
.veins { position: relative; isolation: isolate; }
.veins::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23a4161a' stroke-width='1'%3E%3Cpath d='M20 30 90 60 160 20 220 70M90 60 70 140 150 120 160 20M150 120 220 70 200 170 150 120M70 140 30 210 120 200 150 120M120 200 200 170 230 230M30 210 0 150 20 30M70 140 0 150'/%3E%3C/g%3E%3Cg fill='%23a4161a'%3E%3Ccircle cx='20' cy='30' r='3'/%3E%3Ccircle cx='90' cy='60' r='4'/%3E%3Ccircle cx='160' cy='20' r='3'/%3E%3Ccircle cx='220' cy='70' r='3'/%3E%3Ccircle cx='70' cy='140' r='3'/%3E%3Ccircle cx='150' cy='120' r='5'/%3E%3Ccircle cx='200' cy='170' r='3'/%3E%3Ccircle cx='30' cy='210' r='3'/%3E%3Ccircle cx='120' cy='200' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: var(--vein-alpha);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.brand img { height: 58px; width: auto; }
.logo-dark, [data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: 0.2rem; margin-left: auto; }
.nav a { text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 999px; font-weight: 500; font-size: 0.93rem; color: var(--fg); }
.nav a:hover { background: color-mix(in srgb, var(--blood) 10%, transparent); }
.nav a[aria-current="page"] { color: var(--blood-bright); background: color-mix(in srgb, var(--blood) 12%, transparent); }
.hdr-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang { text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; }
.lang:hover { border-color: var(--blood-bright); }
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--blood-bright); cursor: pointer; display: grid; place-items: center; padding: 0; }
.sun-moon { width: 22px; height: 22px; }
.sun-moon .sun-core { transition: r 0.6s ease-in-out; }
.sun-moon .moon-mask { transition: cx 0.6s ease-in-out, cy 0.6s ease-in-out; }
.sun-moon .rays { transition: opacity 0.6s, transform 0.6s; transform-origin: 12px 12px; }
:root[data-theme="dark"] .sun-moon .sun-core { r: 8px; }
:root[data-theme="dark"] .sun-moon .moon-mask { cx: 17px; cy: 7px; }
:root[data-theme="dark"] .sun-moon .rays { opacity: 0; transform: rotate(-45deg) scale(0.5); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span:not(.sr) { width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons, cards, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 999px; padding: 0.75rem 1.4rem; font: 600 0.95rem/1.2 inherit; text-decoration: none; min-height: 44px; border: 1px solid transparent; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, filter 0.2s; }
.btn-sm { padding: 0.5rem 1rem; min-height: 38px; font-size: 0.88rem; }
.btn-primary { background: linear-gradient(135deg, var(--blood-bright), var(--blood)); color: var(--blood-ink); box-shadow: 0 0 28px -8px var(--glow); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 0 36px -6px var(--glow); }
.btn-outline { border-color: color-mix(in srgb, var(--blood-bright) 60%, transparent); color: var(--fg); background: transparent; }
.btn-outline:hover { background: color-mix(in srgb, var(--blood) 14%, transparent); }
.btn-blue { background: var(--logo-blue); color: #fff; }
.btn-blue:hover { filter: brightness(1.08); }
.btn-light { background: #fff; color: var(--band-2); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.card { background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.card.pad { padding: 1.8rem; }
.card-hover:hover { border-color: color-mix(in srgb, var(--blood-bright) 55%, var(--line)); box-shadow: 0 0 36px -12px var(--glow), 0 14px 30px -22px rgba(0, 0, 0, 0.4); transform: translateY(-2px); }
.card-mesh { border-left: 3px solid var(--logo-blue); }
.ic { width: 28px; height: 28px; color: var(--logo-blue); margin-bottom: 0.7rem; }
.ic-sm { width: 18px; height: 18px; margin: 0; flex: none; }
.ic-lg { width: 44px; height: 44px; }
.input { width: 100%; border-radius: 0.75rem; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 0.7rem 0.9rem; font: inherit; outline: none; }
.input:focus { border-color: var(--blood-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blood-bright) 25%, transparent); }

/* ---------- Sections ---------- */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-alt { background: color-mix(in srgb, var(--surface-2) 70%, transparent); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.g1 { grid-template-columns: 1fr; margin-top: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--blood-bright); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.hero-anim { padding: 0; overflow: hidden; margin: 0; }
.hero-anim canvas { width: 100%; height: 360px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--blood) 8%, transparent), transparent 70%); }
.hero-anim figcaption { padding: 1rem 1.3rem 1.2rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.hero-anim ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); }

.phead { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.phead-sm { padding: 1.6rem 0 1rem; }
.phead-svc { display: flex; gap: 1.5rem; align-items: flex-start; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ticks li .ic-sm { margin-top: 0.3rem; }

.svc { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.svc .muted { flex: 1; }
.svc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--logo-blue) 12%, transparent); margin-bottom: 1rem; }
.svc-ic .ic { margin: 0; }
.svc-ic-lg { width: 72px; height: 72px; flex: none; }
.svc-ic-lg .ic { width: 38px; height: 38px; }
.more { font-weight: 600; color: var(--blood-bright); font-size: 0.9rem; }
.svc-mesh { flex-direction: row; align-items: center; gap: 1.2rem; margin-top: 1.1rem; }
.svc-mesh .svc-ic { margin: 0; flex: none; }
.svc-mesh div { flex: 1; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-n { flex: none; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blood-bright), var(--blood)); box-shadow: 0 0 20px -6px var(--glow); }
.step h3 { margin-bottom: 0.25rem; }
.step p { margin: 0; }
.others { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.others a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; }
.others a:hover { border-color: var(--blood-bright); }
.sector { text-align: center; font-weight: 600; padding: 1.4rem 1rem; }
.card-grid { border-color: color-mix(in srgb, var(--blood-bright) 40%, var(--line)); }
.price { font-weight: 700; color: var(--blood-bright); margin: 0; }
.prose p { font-size: 1.05rem; }

/* ---------- Dark-red band with mesh lines (CTA + footer) ---------- */
.band, .ftr { background: linear-gradient(135deg, var(--band-1), var(--band-2)); color: #fff; }
.band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band::before, .ftr-veins {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffb3b3' stroke-width='1'%3E%3Cpath d='M20 30 90 60 160 20 220 70M90 60 70 140 150 120 160 20M150 120 220 70 200 170 150 120M70 140 30 210 120 200 150 120M120 200 200 170 230 230M30 210 0 150 20 30M70 140 0 150'/%3E%3C/g%3E%3Cg fill='%23ffd0d0'%3E%3Ccircle cx='20' cy='30' r='3'/%3E%3Ccircle cx='90' cy='60' r='4'/%3E%3Ccircle cx='160' cy='20' r='3'/%3E%3Ccircle cx='220' cy='70' r='3'/%3E%3Ccircle cx='70' cy='140' r='3'/%3E%3Ccircle cx='150' cy='120' r='5'/%3E%3Ccircle cx='200' cy='170' r='3'/%3E%3Ccircle cx='30' cy='210' r='3'/%3E%3Ccircle cx='120' cy='200' r='3'/%3E%3C/g%3E%3C/svg%3E") !important;
  opacity: 0.16 !important;
  -webkit-mask-image: none !important; mask-image: none !important;
}
.band-in { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band-in > div:first-child { max-width: 640px; }
.band p { opacity: 0.88; margin: 0; }
.band-btns { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.ftr { padding: 3.5rem 0 1.5rem; margin-top: 0; overflow: hidden; }
.ftr-veins { position: absolute; inset: 0; animation: drift 60s linear infinite; }
@keyframes drift { to { background-position: 240px 240px; } }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; position: relative; }
.ftr h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.ftr a { color: #fff; opacity: 0.9; text-decoration: none; }
.ftr a:hover { opacity: 1; text-decoration: underline; }
.ftr .muted { color: rgba(255, 255, 255, 0.75); }
.ftr address { font-style: normal; margin-bottom: 0.8rem; opacity: 0.92; }
.ftr-logo { height: 54px; width: auto; margin-bottom: 1rem; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 2.5rem; padding-top: 1.2rem; font-size: 0.85rem; opacity: 0.85; position: relative; }

/* ---------- Contact ---------- */
.form label { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; font-weight: 500; font-size: 0.92rem; }
.form .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 0.35rem; accent-color: var(--blood); }
address { font-style: normal; margin-bottom: 1rem; }
.map { width: 100%; height: 260px; border: 0; border-radius: 0.8rem; margin-top: 1rem; }
.msg { margin: 0.8rem 0 0; font-weight: 500; }
.msg.ok { color: #15803d; }
.msg.bad { color: var(--blood-bright); }

/* ---------- Floating WhatsApp (sdskumba) ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 58px; height: 58px; border-radius: 999px; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45); animation: wa-ring 2.6s ease-out 3s infinite; }
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-ring { 0% { box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45); } 70%, 100% { box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); } }

/* ---------- Portal and admin ---------- */
.app-card { max-width: 520px; margin: 0 auto; }
.app-steps { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.app-steps span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.app-steps span.on { background: var(--blood-bright); }
.oauth { display: grid; gap: 0.6rem; margin: 1rem 0; }
.oauth .btn { justify-content: flex-start; border-color: var(--line); background: var(--surface); color: var(--fg); }
.oauth .btn:hover { border-color: var(--logo-blue); }
.or { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.85rem; margin: 1rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.row .input { flex: 1; min-width: 160px; }
.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 0.45rem 0.9rem; border-radius: 999px; cursor: pointer; font: 500 0.9rem inherit; }
.tabs button[aria-selected="true"] { background: var(--blood); border-color: var(--blood); color: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th, .tbl td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 600; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tbl-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.pill.pending { background: #fff3cd; color: #7a5600; border-color: #f0d68a; }
.pill.approved { background: #dcfce7; color: #166534; border-color: #9fdcb4; }
.pill.rejected { background: #fde2e2; color: #8a0b13; border-color: #f2b1b1; }
.pill.sent { background: #dbe7ff; color: #14286b; border-color: #a9c1f5; }
.person { margin-bottom: 1.4rem; }
.person > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.sug { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.8rem 1rem; margin-bottom: 0.6rem; background: var(--surface); }
.sug del { color: var(--muted); }
.sug ins { text-decoration: none; background: color-mix(in srgb, var(--logo-blue) 15%, transparent); color: var(--logo-navy); font-family: Georgia, "Noto Serif Tamil", serif; font-style: italic; }
.small { font-size: 0.85rem; }
textarea.input { resize: vertical; }

/* ---------- Review mode ---------- */
.rv-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 60; }
.rv-on [data-k] { cursor: pointer; }
.rv-on [data-k]:hover { outline: 2px dashed var(--logo-blue); outline-offset: 3px; border-radius: 4px; }
.rv-mine { color: var(--logo-blue) !important; font-family: Georgia, "Noto Serif Tamil", serif !important; font-style: italic; background: color-mix(in srgb, var(--logo-blue) 10%, transparent); border-radius: 4px; }
.rv-has-comment { box-shadow: inset 0 -2px 0 var(--logo-blue); }
.rv-panel { position: fixed; right: 16px; bottom: 90px; z-index: 70; width: min(400px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5); padding: 1.1rem; }
.rv-panel h3 { margin-bottom: 0.3rem; }
.rv-panel .row { margin-top: 0.7rem; }
.rv-editing { outline: 2px solid var(--logo-blue) !important; outline-offset: 3px; background: color-mix(in srgb, var(--logo-blue) 8%, transparent); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.8rem 1.2rem 1.2rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 1rem; }
  .menu-btn { display: flex; }
  .hdr-tools { margin-left: auto; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .hero-anim canvas { height: 300px; }
  .portal-btn { display: none; }
}
@media (max-width: 560px) {
  .g4, .ftr-grid { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
  .phead-svc { flex-direction: column; }
  .lang { padding: 0.4rem 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* sign-in card fields */
.app-card label.form { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.92rem; }
.app-card .oauth .btn svg { flex: none; }
.mesh-sec .btn { margin-top: 1.4rem; }

/* Tamil words are longer: keep the header on one line and switch to the menu button earlier. */
.nav a, .portal-btn, .lang { white-space: nowrap; }
html[lang="ta"] .ftr h2 { letter-spacing: 0.02em; text-transform: none; }
@media (max-width: 1400px) {
  html[lang="ta"] .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.8rem 1.2rem 1.2rem; display: none; }
  html[lang="ta"] .nav.open { display: flex; }
  html[lang="ta"] .menu-btn { display: flex; }
  html[lang="ta"] .hdr-tools { margin-left: auto; }
}

/* Talk to SIEMTEL panel */
button.wa-float { border: 0; cursor: pointer; padding: 0; }
.cb-panel { bottom: 88px; }
.cb-panel .form label { display: grid; gap: 0.3rem; margin-bottom: 0.6rem; font-size: 0.88rem; font-weight: 500; }
.cb-person { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.cb-person .row { flex-wrap: nowrap; }
.js-cb { margin: 0.4rem 0 0.2rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; margin-top: 1rem; }
.shot { border: 1px solid var(--line); border-radius: 0.7rem; background: var(--surface); color: var(--fg); padding: 0.5rem; text-align: left; cursor: pointer; font: inherit; }
.shot img { width: 100%; border-radius: 0.4rem; margin-bottom: 0.4rem; }

/* Language button and list: தமிழ் grows 2x in 0.5 s, then 3x in 0.7 s, then the list opens */
.lang-wrap { position: relative; }
.lang { display: inline-flex; align-items: center; cursor: pointer; background: var(--surface); color: var(--fg); }
.lang span { display: inline-block; transform-origin: center; }
.lang.grow { position: relative; z-index: 45; }
.lang.grow span { animation: lang-grow 1.2s linear forwards; }
@keyframes lang-grow {
  0% { transform: scale(1); }
  41.67% { transform: scale(2); animation-timing-function: ease-out; }
  100% { transform: scale(3); }
}
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(320px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5); padding: 0.5rem; }
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu a[role="menuitem"] { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem; text-decoration: none; color: var(--fg); }
.lang-menu a[role="menuitem"]:hover, .lang-menu a[role="menuitem"]:focus-visible { background: color-mix(in srgb, var(--blood) 10%, transparent); outline: none; }
.lang-menu a[aria-current="true"] { color: var(--blood-bright); font-weight: 600; }
.lang-menu .own { font-size: 1.05rem; font-weight: 600; }
.lang-menu .en { font-size: 0.8rem; color: var(--muted); }
.lang-more { display: block; margin: 0.4rem 0 0; padding: 0.7rem; border-top: 1px solid var(--line); color: var(--logo-blue); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.lang-note { margin: 0.2rem 0.7rem 0.4rem; font-size: 0.78rem; color: var(--muted); }

/* Full screen: dark only; the theme switch is disabled until full screen ends */
.fs-btn svg { width: 20px; height: 20px; }
.fs-btn .fs-off, .is-fullscreen .fs-btn .fs-on { display: none; }
.is-fullscreen .fs-btn .fs-off { display: block; }
.is-fullscreen .fs-btn { border-color: var(--blood-bright); }
.theme-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
@media (max-width: 420px) { .fs-btn { display: none; } }

/* Team: contact lists and photo placeholders */
.people { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plist { list-style: none; margin: 0 0 1rem; padding: 0; }
.plist li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.plist .who { display: grid; }
.plist small, .tm small { color: var(--muted); }
.plist a, .tm a { font-weight: 600; white-space: nowrap; }
.team { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tm { display: grid; justify-items: center; text-align: center; gap: 0.25rem; padding: 1.2rem 0.8rem; }
.ph { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 0.5rem; background: color-mix(in srgb, var(--logo-blue) 10%, transparent); border: 2px dashed color-mix(in srgb, var(--logo-blue) 45%, transparent); overflow: hidden; }
.ph svg { position: absolute; inset: 14px; width: 68px; height: 68px; fill: color-mix(in srgb, var(--logo-blue) 28%, transparent); }
.ph b { position: absolute; bottom: 4px; right: 4px; font-size: 0.72rem; background: var(--logo-blue); color: #fff; border-radius: 999px; padding: 2px 7px; }

/* Full-screen MeshNet model */
.hero-anim { position: relative; }
.mesh-fs { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); color: #1fae57; display: grid; place-items: center; cursor: pointer; }
.mesh-fs svg { width: 20px; height: 20px; }
.mesh-fs:hover { border-color: #25d366; }
.mesh-full { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at 50% 50%, #2a0c0f 0%, #0d0707 70%); color: #fff; }
.mesh-full canvas { width: 100%; height: 100%; display: block; }
.mf-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 1.1rem; cursor: pointer; }
.mf-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; justify-content: center; padding: 0.8rem 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); font-size: 0.9rem; }
.mf-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.d-red { background: #e0343c; } .d-green { background: #25d366; } .d-blue { background: #5b8ff0; }
body.mf-open { overflow: hidden; }
