/* =========================================================
   AICT-TL — public site styles
   Palette taken from the logo: ink black, crimson → red → orange → yellow arc
   ========================================================= */
:root {
  --red: #E52421; --crimson: #A3182F; --orange: #F5921E; --yellow: #FFD21F; --ink: #0B0C10;
  --grad: linear-gradient(90deg, var(--crimson), var(--red) 35%, var(--orange) 72%, var(--yellow));
  --grad-btn: linear-gradient(120deg, #B81C2E 0%, #E52421 60%, #F0551E 100%);
  --bg: #FFFCF8; --bg-alt: #FBF3EA; --surface: #FFFFFF; --text: #17181F; --muted: #5C606C; --line: rgba(23, 24, 31, .1);
  --shadow: 0 1px 2px rgba(23, 24, 31, .05), 0 14px 40px -18px rgba(23, 24, 31, .22);
  --shadow-lg: 0 30px 70px -28px rgba(229, 36, 33, .35);
  --radius: 22px; --header-h: 76px;
  --font: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0D0E13; --bg-alt: #12141B; --surface: #171923; --text: #F3F1EE; --muted: #A5A9B6; --line: rgba(255, 255, 255, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 6px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 2rem; height: 2rem; color: var(--red); margin-bottom: 1rem; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 1.5px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; }
.btn .ico { transition: transform .25s; }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { color: #fff; background: var(--grad-btn); box-shadow: 0 10px 28px -10px rgba(229, 36, 33, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(229, 36, 33, .85); }
.btn-ghost { border-color: var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--orange); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: transparent; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--bg-alt); border-color: var(--orange); }
.ico-sun { display: none; }
[data-theme="dark"] .ico-sun { display: block; }
[data-theme="dark"] .ico-moon { display: none; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--header-h); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-logo { height: 50px; width: auto; transition: transform .3s; }
.brand:hover .brand-logo { transform: scale(1.04); }
[data-theme="dark"] .brand-logo { background: #fff; border-radius: 12px; padding: 4px 8px; height: 46px; }
.nav { display: flex; gap: .15rem; }
.nav a { position: relative; padding: .5rem .8rem; font-weight: 600; font-size: .95rem; color: var(--muted); border-radius: 10px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; border-radius: 2px; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.lang button { border: 0; background: transparent; padding: .38rem .55rem; border-radius: 9px; font-weight: 700; font-size: .74rem; letter-spacing: .04em; color: var(--muted); transition: background .2s, color .2s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--grad-btn); color: #fff; }
.menu-btn { display: none; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 9999; display: none; place-items: center; background: var(--bg); transition: clip-path .9s cubic-bezier(.77, 0, .18, 1), opacity .4s .6s, visibility 0s 1s; clip-path: inset(0 0 0 0); }
html.js .loader { display: grid; }
.loader.done { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; visibility: hidden; }
.loader-bg { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 55%, rgba(245, 146, 30, .16), transparent 70%), radial-gradient(40% 40% at 20% 20%, rgba(229, 36, 33, .1), transparent 70%); }
.loader-inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 1.6rem; }
.loader-logo { position: relative; width: 250px; height: 250px; display: grid; place-items: center; }
.loader-logo img { width: 160px; height: auto; animation: logoReveal 1.2s .25s cubic-bezier(.2, .7, .2, 1) both; }
[data-theme="dark"] .loader-logo img { background: #fff; border-radius: 14px; padding: 8px 12px; }
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 6s linear infinite; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-arc { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 578; stroke-dashoffset: 578; transform: rotate(-90deg); transform-origin: 50% 50%; animation: ringDraw 1.7s .1s cubic-bezier(.6, .1, .2, 1) forwards; }
.loader-text { margin: 0; font-weight: 700; letter-spacing: .04em; color: var(--muted); animation: fadeUp .8s .5s both; }
.loader-bar { width: 220px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; animation: barFill 1.8s .1s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes barFill { to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes logoReveal { 0% { opacity: 0; transform: scale(.8); clip-path: inset(0 100% 0 0); } 40% { opacity: 1; } 100% { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); } }
html.loading { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 60% at 85% 20%, rgba(255, 210, 31, .17), transparent 65%), radial-gradient(60% 55% at 10% 90%, rgba(229, 36, 33, .08), transparent 70%); }
.arc { position: absolute; will-change: transform; -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 52%); mask-image: linear-gradient(90deg, transparent 8%, #000 52%); }
.arc-1 { width: 118vw; max-width: 1800px; right: -34vw; top: -6vh; opacity: .17; }
.arc-2 { width: 90vw; max-width: 1400px; right: -18vw; top: 8vh; }
.arc-3 { width: 66vw; max-width: 1000px; right: -4vw; top: 22vh; }
.orb { position: absolute; border-radius: 50%; will-change: transform; filter: blur(2px); }
.orb-1 { width: 18px; height: 18px; left: 46%; top: 24%; background: var(--yellow); box-shadow: 0 0 30px 8px rgba(255, 210, 31, .5); }
.orb-2 { width: 12px; height: 12px; left: 8%; top: 70%; background: var(--red); box-shadow: 0 0 24px 6px rgba(229, 36, 33, .45); }
.orb-3 { width: 26px; height: 26px; right: 6%; top: 64%; background: var(--orange); opacity: .8; box-shadow: 0 0 34px 10px rgba(245, 146, 30, .4); }
.grid-dots { position: absolute; inset: -10% 0; background-image: radial-gradient(var(--line) 1.4px, transparent 1.6px); background-size: 30px 30px; mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); will-change: transform; }
.grid-dots.light { background-image: radial-gradient(rgba(255, 255, 255, .18) 1.4px, transparent 1.6px); mask-image: radial-gradient(80% 90% at 50% 50%, #000, transparent); }

.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; box-shadow: var(--shadow); backdrop-filter: blur(8px); margin-bottom: 1.6rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229, 36, 33, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 36, 33, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 36, 33, 0); } }
.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.7rem); letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1.4rem; }
.hero-title span { display: block; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 33em; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-visual { position: relative; min-height: 460px; }
.logo-card { position: absolute; inset: 50% auto auto 50%; margin: -140px 0 0 -230px; width: 460px; padding: 3rem 2.2rem; border-radius: 36px; background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--line); backdrop-filter: blur(18px); box-shadow: var(--shadow), var(--shadow-lg); will-change: transform; }
[data-theme="dark"] .logo-card { background: #fff; }
.logo-card img { position: relative; width: 100%; height: auto; animation: floaty 7s ease-in-out infinite; }
.glow { position: absolute; inset: -30%; background: conic-gradient(from 180deg, rgba(163, 24, 47, .22), rgba(245, 146, 30, .22), rgba(255, 210, 31, .25), rgba(163, 24, 47, .22)); filter: blur(60px); z-index: -1; border-radius: 50%; animation: spin 18s linear infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); will-change: transform; }
.chip .ico { color: var(--red); }
.chip-1 { left: 0; top: 8%; } .chip-2 { right: 0; top: 2%; } .chip-3 { left: 4%; bottom: 6%; } .chip-4 { right: 2%; bottom: 12%; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: grid; justify-items: center; gap: .5rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mouse { width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--red); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--grad); }
.center .eyebrow::after { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--grad); }
.lead { font-size: 1.2rem; color: var(--text); font-weight: 500; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); }
.card p { color: var(--muted); margin-bottom: 0; }
.ico-box { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--grad-btn); margin-bottom: 1.3rem; box-shadow: 0 12px 24px -10px rgba(229, 36, 33, .6); }
.ico-box .ico { width: 26px; height: 26px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-copy h2 { margin-bottom: 1.2rem; }
.about-copy p { color: var(--muted); }
.about-copy .lead { color: var(--text); }
.pin { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text) !important; padding: .5rem 1rem; border-radius: 999px; border: 1px dashed var(--orange); }
.pin .ico { color: var(--red); }
.about-cards { display: grid; gap: 1.4rem; }
.vm-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); margin-bottom: 1rem; }
.vm p + p { margin-top: .8rem; }
.ticks { display: grid; gap: .8rem; margin-bottom: 1.6rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.ticks .ico { margin-top: .2em; color: #fff; background: var(--grad-btn); border-radius: 50%; padding: 3px; width: 1.35em; height: 1.35em; stroke-width: 3; }
.card .ticks:last-child { margin-bottom: 0; }

/* Stats band */
.band { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(70px, 9vw, 120px) 0; isolation: isolate; }
.band-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.band-arc { position: absolute; will-change: transform; }
.b1 { width: 110%; left: -5%; top: -45%; opacity: .5; } .b2 { width: 84%; left: 8%; top: -20%; opacity: .75; }
.b3 { width: 100%; right: -30%; top: -30%; opacity: .16; }
.b4 { width: 70%; left: 15%; top: 5%; opacity: .6; }
.stat b { will-change: transform; }
.stat.done b { animation: statPop .7s cubic-bezier(.2, .8, .2, 1.2) both; }
.stat.done span { animation: statLabel .6s .15s ease-out both; }
@keyframes statPop { 0% { filter: brightness(1.6) drop-shadow(0 0 0 rgba(240, 85, 30, 0)); } 45% { filter: brightness(1.25) drop-shadow(0 0 22px rgba(240, 85, 30, .55)); } 100% { filter: none; } }
@keyframes statLabel { from { opacity: .35; letter-spacing: .14em; } to { opacity: 1; letter-spacing: normal; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat b { display: block; font-size: clamp(3rem, 6.5vw, 5.4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: .6rem; font-weight: 600; color: rgba(255, 255, 255, .78); }

/* Objectives */
.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.obj { overflow: hidden; }
.obj::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s; }
.obj:hover::after { transform: scaleX(1); }
.obj .num { position: absolute; right: 1.4rem; top: 1rem; font-weight: 800; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.obj-values { background: var(--ink); color: #fff; border-color: transparent; }
.obj-values h3 { color: #fff; margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { padding: .4rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); transition: background .25s, border-color .25s; }
.chips li:hover { background: var(--grad-btn); border-color: transparent; }

/* Programs */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.5rem; }
.prog { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.prog-img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.prog-body { padding: 2rem; }

/* Membership */
.mem-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.mem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.rd h3 { margin-top: .4rem; }
.rd .ticks { margin-bottom: 2rem; }
.form h3 { margin-bottom: 1.4rem; }
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.form:hover { transform: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-weight: 500; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 146, 30, .18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 600; font-size: .95rem; }
.form-msg.ok { color: #138a4a; } .form-msg.err { color: var(--red); }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

.portal { align-self: start; padding: clamp(1.6rem, 3vw, 2.4rem); }
.portal h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.portal .ticks { margin: 1.4rem 0 1.8rem; }
.portal[hidden] { display: none; }

/* Structure (always dark for contrast) */
.section.dark { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.section.dark .section-head p { color: rgba(255, 255, 255, .7); }
.section.dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); box-shadow: none; }
.section.dark .card p { color: rgba(255, 255, 255, .72); }
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
/* Structure section motion: soft-faded arcs, staggered seats, icon halo */
.section.dark .band-arc { -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 97%); mask-image: linear-gradient(to bottom, #000 50%, transparent 97%); }
.b5 { width: 72%; left: 4%; top: 8%; opacity: .4; }
.org { will-change: translate; }
.org .ico-box { position: relative; }
.org .ico-box::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(240, 85, 30, .8); opacity: 0; }
html.js .org.in .ico-box::after { animation: icoHalo 1.6s .5s ease-out 1 both; }
@keyframes icoHalo { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
html.js .org .seats li { opacity: 0; transform: translateX(-16px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .7, .2, 1); }
html.js .org.in .seats li { opacity: 1; transform: none; }
html.js .org.in .seats li:nth-child(1) { transition-delay: .45s; } html.js .org.in .seats li:nth-child(2) { transition-delay: .55s; }
html.js .org.in .seats li:nth-child(3) { transition-delay: .65s; } html.js .org.in .seats li:nth-child(4) { transition-delay: .75s; }
html.js .org.in .seats li:nth-child(5) { transition-delay: .85s; }
.seats { margin-top: 1.4rem; display: grid; gap: .5rem; counter-reset: seat; }
.seats li { counter-increment: seat; display: flex; gap: .8rem; align-items: center; padding: .55rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 600; font-size: .95rem; }
.seats li::before { content: counter(seat); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--grad-btn); font-size: .75rem; font-weight: 800; }
.team { margin-top: 4rem; }
.team-title { text-align: center; color: #fff; margin-bottom: 2rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; }
.person { text-align: center; padding: 1.6rem 1rem !important; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; color: #fff; background: var(--grad-btn); border: 3px solid rgba(255, 255, 255, .18); }
.person h4 { margin: 0; font-size: 1.05rem; }
.person p { font-size: .9rem; }
.person small { display: inline-block; margin-top: .6rem; padding: .15rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .22); color: var(--yellow); }

/* Partners */
.partners { padding: clamp(50px, 7vw, 90px) 0; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.2rem 3.2rem; }
.partner-row a, .partner-row span { display: grid; place-items: center; height: 64px; font-weight: 800; color: var(--muted); filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s; }
.partner-row a:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.partner-row img { max-height: 64px; width: auto; max-width: 180px; object-fit: contain; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.6rem; }
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.post-img { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--bg-alt); transition: transform .6s; }
.post:hover .post-img { transform: scale(1.05); }
.post-media { overflow: hidden; position: relative; }
.post-ph { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(135deg, #111 0%, #1b1d27 100%); overflow: hidden; position: relative; }
.post-ph svg { width: 120%; position: absolute; left: -10%; bottom: -46%; opacity: .95; }
.post-ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 70% 20%, rgba(245, 146, 30, .25), transparent 70%); }
.post-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post time { font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .05em; text-transform: uppercase; }
.post h3 { margin: 0; font-size: 1.2rem; }
.post p { font-size: .98rem; }
.more { margin-top: auto; padding-top: .6rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; color: var(--red); }
.more .ico { transition: transform .25s; } .post:hover .more .ico { transform: translateX(5px); }
.empty { text-align: center; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-list { display: grid; gap: 1.1rem; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico-box { flex: none; width: 46px; height: 46px; margin: 0; border-radius: 14px; }
.contact-list li > div:last-child { min-width: 0; }
.contact-list li a[href^="tel:"] { white-space: nowrap; }
.contact-list .ico-box .ico { width: 20px; height: 20px; }
.contact-list b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a:hover { color: var(--red); }
.social { display: flex; gap: .6rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); transition: background .25s, color .25s, transform .25s; }
.social a:hover { background: var(--grad-btn); color: #fff; transform: translateY(-3px); border-color: transparent; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: 70px; }
.foot-in { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.logo-chip { display: inline-block; background: #fff; border-radius: 16px; padding: 8px 16px; margin-bottom: 1.2rem; }
.logo-chip img { width: 96px; height: auto; }
.foot-brand p { max-width: 26rem; }
.foot-links { display: grid; gap: .5rem; align-content: start; }
.foot-links b { color: #fff; margin-bottom: .4rem; }
.foot-links a:hover, .foot-bottom a:hover { color: var(--yellow); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }

/* News modal */
.modal { border: 0; padding: 0; background: transparent; width: min(760px, calc(100% - 32px)); max-height: calc(100svh - 48px); color: var(--text); overflow: visible; }
.modal::backdrop { background: rgba(8, 8, 12, .65); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-in { position: relative; background: var(--surface); border-radius: 26px; overflow: auto; max-height: calc(100svh - 48px); padding: 0 0 2rem; box-shadow: 0 40px 100px -30px #000; }
.modal-x { position: absolute; right: 14px; top: 14px; z-index: 2; background: var(--surface); }
.nm-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; margin-bottom: 1.5rem; }
.modal-in > time, .modal-in > h2, .nm-body { margin-inline: clamp(1.4rem, 4vw, 2.6rem); }
.modal-in > time { display: block; padding-top: 2rem; color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.nm-img:not([hidden]) + time { padding-top: 0; }
.nm-body p { color: var(--muted); white-space: pre-line; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 800; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 0; color: #fff; background: var(--grad-btn); box-shadow: 0 12px 28px -8px rgba(229, 36, 33, .7); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s, box-shadow .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -8px rgba(229, 36, 33, .85); }
.to-top .ico { width: 22px; height: 22px; stroke-width: 2.4; position: relative; }
.to-top-ring { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; transform: rotate(-90deg); pointer-events: none; }
.to-top-ring circle { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 144.5; stroke-dashoffset: calc(144.5 * (1 - var(--p, 0))); }

/* ---------- Responsive ---------- */
/* nine sections now: compact the menu first, then fold it into the hamburger before anything wraps */
.nav a { white-space: nowrap; }
@media (max-width: 1280px) {
  .nav a { padding: .5rem .5rem; font-size: .88rem; }
  .nav a::after { left: .5rem; right: .5rem; }
  .hide-sm { display: none; }
}
@media (max-width: 1140px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: .6rem 24px 1.4rem; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s; }
  .header.nav-open { background: var(--bg); }
  .header.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .9rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
}
@media (max-width: 980px) {
  .hero { min-height: auto; padding-bottom: 110px; }
  .hero-in, .about-grid, .contact-grid, .mem-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; order: -1; margin-bottom: -.5rem; }
  .logo-card { width: 340px; margin: -100px 0 0 -170px; padding: 2.2rem 1.6rem; }
  .obj-grid, .mem-cats, .org-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 32px); }
  .brand-logo { height: 42px; }
  .lang button { padding: .34rem .42rem; font-size: .68rem; }
  .header-actions { gap: .4rem; }
  .icon-btn { width: 38px; height: 38px; }
  .obj-grid, .mem-cats, .org-grid, .row2 { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .logo-card { width: 280px; margin: -84px 0 0 -140px; }
  .chip { font-size: .78rem; padding: .45rem .8rem; }
  .scroll-cue { display: none; }
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) { .lang button[data-lang="tet"] { padding-inline: .3rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Agenda, documents, consent
   ========================================================= */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.4rem; }
.ev { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; transition: transform .25s, box-shadow .25s; }
.ev:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ev:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.ev-date { flex: none; width: 70px; border-radius: 16px; background: var(--grad-btn); color: #fff; text-align: center; padding: .55rem 0 .6rem; line-height: 1.1; }
.ev-date b { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.ev-date small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; opacity: .92; }
.ev-body { min-width: 0; flex: 1; }
.ev-body h3 { font-size: 1.12rem; margin: 0 0 .4rem; }
.ev-body p { font-size: .95rem; margin: .5rem 0 0; color: var(--muted); }
.ev-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .88rem; font-weight: 500; }
.ev-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.ev-meta .ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-tag { display: inline-block; margin-top: .7rem; padding: .22rem .75rem; border-radius: 999px; font-weight: 800; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.ev-tag.open { background: rgba(19, 138, 74, .14); color: #138a4a; }
.ev-tag.full { background: rgba(245, 146, 30, .18); color: #a85d00; }
[data-theme="dark"] .ev-tag.full { color: var(--orange); } [data-theme="dark"] .ev-tag.open { color: #4cd08a; }
/* dark mode: the brand red / success green are too dark for small text on the dark surface (≈3.9:1) */
[data-theme="dark"] .form-msg.ok { color: #4cd08a; }
[data-theme="dark"] .form-msg.err, [data-theme="dark"] .post time, [data-theme="dark"] .more, [data-theme="dark"] .check a, [data-theme="dark"] .modal-in > time, [data-theme="dark"] .ev-facts .ico, [data-theme="dark"] .doc:hover .doc-dl { color: #ff6b63; }
.ev-past-h { margin: 2.4rem 0 1rem; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.ev-past .ev { opacity: .72; box-shadow: none; }
.ev-past .ev-date { background: linear-gradient(120deg, #6b6f7c, #8b8f9b); }

.ev-facts, .ev-actions { margin-inline: clamp(1.4rem, 4vw, 2.6rem); }
.ev-facts { display: grid; gap: .5rem; margin-block: 1rem; color: var(--muted); }
.ev-facts li { display: flex; gap: .7rem; align-items: flex-start; }
.ev-facts .ico { width: 18px; height: 18px; margin-top: .25rem; flex: none; color: var(--red); stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-facts b { color: var(--text); display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.ev-actions { display: flex; flex-wrap: wrap; gap: .7rem; padding: 1rem 0 .4rem; }
.ev-form { margin: 1.2rem clamp(1.4rem, 4vw, 2.6rem) 0; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.ev-form h3 { margin: 0; font-size: 1.15rem; }
.ev-over { color: var(--muted); font-weight: 600; margin: 0; }
.modal-sm { width: min(480px, calc(100% - 32px)); }
.cn-in { padding: 2rem clamp(1.4rem, 4vw, 2.2rem); }
.cn-in h2 { margin-top: 0; }
.cn-in .ev-actions { margin-inline: 0; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--muted); font-weight: 500; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: .2rem 0 0; accent-color: var(--red); }
.check a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.doc-groups { display: grid; gap: 2.2rem; }
.doc-group h3 { margin: 0 0 .9rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.doc { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; transition: transform .25s, box-shadow .25s; }
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.doc .ico-box { flex: none; }
.doc-t { flex: 1; min-width: 0; }
.doc-t b { display: block; line-height: 1.3; }
.doc-t small { color: var(--muted); font-weight: 500; display: block; margin-top: .15rem; }
.doc-dl { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; transition: border-color .2s, color .2s; }
.doc:hover .doc-dl { border-color: var(--orange); color: var(--red); }
.doc-dl .ico { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-bl { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
@media (max-width: 520px) { .doc { flex-wrap: wrap; } .doc-dl { width: 100%; } .ev { padding: 1.1rem; gap: 1rem; } }
.doc .ico-box { margin: 0; width: 48px; height: 48px; border-radius: 14px; } .doc .ico-box .ico { width: 22px; height: 22px; }

/* footer columns */
.foot-contact ul { display: grid; gap: .8rem; }
.foot-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.foot-contact .ico { width: 18px; height: 18px; margin-top: .22rem; flex: none; color: var(--orange); stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-contact a:hover { color: var(--yellow); }
.foot-brand .social { margin-top: 1.2rem; }
@media (max-width: 980px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; gap: 2rem; } }
.footer .social a { border-color: rgba(255, 255, 255, .22); }
