/* ==========================================================================
   Excellence Coaching Institute of Health Sciences
   Design tokens, layout, components, motion
   ========================================================================== */

:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-2: #fbf2e4;
  --ink: #1d1416;
  --muted: #6b5d5f;
  --line: #ecdfcd;
  --brand: #a8121b;
  --brand-strong: #850d15;
  --accent: #a8121b;
  --accent-soft: #fbecec;
  --gold: #d6a11e;
  --gold-soft: #f8e6b4;
  --night: #170a0c;
  --shadow-sm: 0 2px 10px rgba(70, 20, 20, .06);
  --shadow: 0 16px 40px rgba(70, 20, 20, .12);
  --shadow-lg: 0 30px 80px rgba(40, 6, 10, .28);
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #120a0b;
  --surface: #1d1113;
  --surface-2: #26161a;
  --ink: #f7eeee;
  --muted: #bcabad;
  --line: #3b2529;
  --brand: #c4222c;
  --brand-strong: #a8121b;
  --accent: #ff8d93;
  --accent-soft: #3a171b;
  --gold-soft: #4a3a12;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 17px; overflow-x: hidden;
  transition: background .35s, color .35s;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #2b1d00; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.urdu { font-family: "Noto Nastaliq Urdu", serif; direction: rtl; line-height: 2.3; font-size: 1.25rem; color: var(--accent); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 44px; }
.tint { background: var(--surface-2); }
.dark { background: var(--night); color: #f9eded; }
.dark .eyebrow { color: #f3cf7a; }
.dark .lead, .dark p { color: #d9c5c7; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  position: relative; display: inline-flex; align-items: center; gap: 10px; background: var(--b); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .98rem; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--b); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(168, 18, 27, .32); background: var(--brand-strong); border-color: var(--brand-strong); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn.gold { --b: var(--gold); color: #2b1d00; }
.btn.gold:hover { background: #e7b63a; border-color: #e7b63a; box-shadow: 0 12px 26px rgba(214, 161, 30, .38); }
.btn.ghost { background: transparent; color: var(--accent); border-color: currentColor; }
.btn.ghost:hover { background: var(--accent-soft); box-shadow: none; border-color: currentColor; }
.btn.light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn.light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }
.btn.wa { --b: #1faa53; }
.btn.wa:hover { background: #178a43; border-color: #178a43; box-shadow: 0 12px 26px rgba(31, 170, 83, .32); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.center .btn-row { justify-content: center; }

/* ---------- Progress, top bar, header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--gold), #ffdf8a); transform-origin: 0 50%; transform: scaleX(0); }
.topbar { background: var(--night); color: #e9d9da; font-size: .84rem; }
.topbar .wrap { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span { white-space: nowrap; }
.topbar a:hover { color: #f3cf7a; }
.topbar .live { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 2s infinite; flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .35s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; transition: padding .3s; }
.site-header.scrolled .wrap { padding-top: 7px; padding-bottom: 7px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 56px; height: auto; flex: none; transition: width .3s, transform .5s var(--ease); border-radius: 8px; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.scrolled .brand img { width: 46px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a.link { position: relative; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; padding: 10px 14px; border-radius: 999px; transition: color .2s; }
.nav a.link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav a.link:hover::after, .nav a.link[aria-current="page"]::after { transform: scaleX(1); }
.nav a.link[aria-current="page"] { color: var(--accent); }
.nav .btn { padding: 11px 20px; margin-left: 8px; font-size: .92rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), border-color .2s; flex: none; padding: 0; }
.icon-btn:hover { transform: rotate(18deg); border-color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon, [data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle:hover { transform: none; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 600px at 85% -10%, #c8323a 0%, transparent 60%), linear-gradient(140deg, #3b060b 0%, #7d0c14 48%, #a8121b 100%); color: #fff; padding: 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 72%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; animation: drift 16s ease-in-out infinite alternate; }
.blob.b1 { width: 420px; height: 420px; background: #e6a91f; left: -140px; bottom: -180px; opacity: .28; }
.blob.b2 { width: 380px; height: 380px; background: #ff5b64; right: 6%; top: -160px; animation-duration: 22s; opacity: .35; }
.plus { position: absolute; color: rgba(255, 255, 255, .16); font-size: 2rem; font-weight: 300; z-index: -1; animation: floaty 7s ease-in-out infinite; user-select: none; }
.plus.p1 { left: 6%; top: 16%; } .plus.p2 { left: 46%; top: 10%; animation-delay: -2s; font-size: 1.4rem; } .plus.p3 { left: 40%; bottom: 24%; animation-delay: -4s; } .plus.p4 { right: 3%; top: 46%; animation-delay: -1s; font-size: 1.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 170px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); padding: 8px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; margin-bottom: 26px; backdrop-filter: blur(6px); }
.hero h1 { margin-bottom: .45em; }
.hero h1 .typed-line { display: block; color: #ffd76a; min-height: 1.16em; white-space: nowrap; }
.caret { display: inline-block; width: 3px; height: .9em; background: #ffd76a; margin-left: 4px; vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
.hero p.sub { color: #fbe4e5; font-size: 1.14rem; max-width: 52ch; }
.trust { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; color: #f6dadb; font-size: .9rem; }
.trust b { color: #fff; }
.trust .stars { color: #ffd76a; letter-spacing: 2px; margin-right: 6px; }

.collage { position: relative; aspect-ratio: 1 / 1.04; transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.collage .main { position: absolute; inset: 0 9% 12% 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .95); }
.collage .main img, .collage .sub img { width: 100%; height: 100%; object-fit: cover; }
.collage .sub { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-lg); transform: translateZ(40px); }
.collage .seal { position: absolute; top: -30px; right: 0; width: 118px; height: 118px; background: #fff; border-radius: 50%; padding: 16px; box-shadow: var(--shadow-lg); display: grid; place-items: center; animation: floaty 6s ease-in-out infinite; transform: translateZ(60px); }
.collage .seal::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed rgba(255, 215, 106, .75); animation: spin 26s linear infinite; }
.float-card { position: absolute; left: -26px; bottom: 20%; background: #fff; color: #1d1416; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-size: .86rem; line-height: 1.3; animation: floaty 7s ease-in-out -3s infinite; transform: translateZ(70px); }
.float-card b { display: block; font-size: .95rem; }
.float-card span.ic { width: 38px; height: 38px; border-radius: 12px; background: #fbecec; color: #a8121b; display: grid; place-items: center; flex: none; }
.float-card svg { width: 20px; height: 20px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: var(--bg); display: block; }

/* ---------- Stats ---------- */
.stats { padding: 0; margin-top: -92px; z-index: 5; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 30px 26px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line); }
.stat .num { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .9rem; font-weight: 600; margin-top: 8px; }

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0 0; overflow: hidden; }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.marquee span i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Course explorer (tabs) ---------- */
.explorer { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: stretch; }
.tablist { display: flex; flex-direction: column; gap: 8px; }
.tab { display: flex; align-items: center; gap: 14px; text-align: left; padding: 15px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: transform .25s var(--ease), border-color .2s, background .2s, box-shadow .25s; }
.tab .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.tab svg { width: 22px; height: 22px; }
.tab b { display: block; font-size: 1rem; }
.tab small { color: var(--muted); font-size: .8rem; }
.tab:hover { transform: translateX(5px); border-color: var(--gold); }
.tab[aria-selected="true"] { background: linear-gradient(135deg, #7d0c14, #a8121b); color: #fff; border-color: transparent; box-shadow: 0 14px 30px rgba(168, 18, 27, .3); transform: translateX(5px); }
.tab[aria-selected="true"] small { color: #f6d6d8; }
.tab[aria-selected="true"] .ic { background: rgba(255, 255, 255, .16); color: #ffd76a; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 42px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.panel[hidden] { display: none; }
.panel.show { animation: panelIn .5s var(--ease); }
.panel .ghost-ic { position: absolute; right: -30px; top: -30px; width: 240px; height: 240px; color: var(--accent); opacity: .06; pointer-events: none; }
.panel .ghost-ic svg { width: 100%; height: 100%; }
.panel .tag { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.panel h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .2em 0 .4em; }
.checks { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; width: 22px; height: 22px; flex: none; margin-top: 3px; border-radius: 50%; background: #f8e6b4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5d00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Cards and spotlight ---------- */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.card p:last-child { margin-bottom: 0; }
.spot { overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 161, 30, .2), transparent 62%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.spot:hover::before { opacity: 1; }
.spot:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.feature .ic { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #a8121b, #d0383f); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(168, 18, 27, .28); transition: transform .4s var(--ease); }
.feature:hover .ic { transform: rotate(-8deg) scale(1.08); }
.feature svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- About, steps ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.stack { position: relative; padding: 0 0 50px 50px; }
.stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stack img.over { position: absolute; left: 0; bottom: 0; width: 52%; border: 6px solid var(--bg); }
.tint .stack img.over { border-color: var(--surface-2); }
.stack .badge { position: absolute; right: -14px; top: -22px; background: var(--gold); color: #2b1d00; border-radius: 50%; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; font-weight: 700; font-size: .8rem; line-height: 1.2; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite; }
.stack .badge b { font-family: var(--serif); font-size: 2rem; display: block; line-height: 1; }
.timeline { list-style: none; margin: 1.6em 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); display: grid; gap: 20px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--gold); }
.tint .timeline li::before { border-color: var(--surface-2); }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: .95rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.step { counter-increment: step; padding-top: 46px; }
.step::after { content: "0" counter(step); position: absolute; top: -28px; left: 26px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2b1d00; box-shadow: 0 8px 18px rgba(214, 161, 30, .4); border: 4px solid var(--bg); }
.tint .step::after { border-color: var(--surface-2); }
.step p { color: var(--muted); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.explorer > div:last-child { display: grid; }

/* ---------- Principal teaser ---------- */
.principal-teaser { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: center; }
.portrait { position: relative; }
.portrait img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; position: relative; z-index: 1; box-shadow: var(--shadow-lg); }
.portrait::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: var(--radius-lg); }
.portrait::after { content: "“"; position: absolute; z-index: 2; right: -20px; top: -34px; width: 74px; height: 74px; border-radius: 50%; background: var(--gold); color: #2b1d00; font-family: var(--serif); font-size: 4.4rem; line-height: 1.32; text-align: center; box-shadow: var(--shadow); }
blockquote { margin: 0 0 1.2em; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; letter-spacing: -.01em; }
.sig b { font-family: var(--serif); font-size: 1.2rem; display: block; color: #fff; }

/* ---------- Gallery and lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.gallery button { all: unset; cursor: zoom-in; position: relative; border-radius: 16px; overflow: hidden; display: block; }
.gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery button::after { content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(20, 4, 6, .82)); opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease); }
.gallery button:hover img { transform: scale(1.08); }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 3, 4, .93); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; padding: 20px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox figcaption { color: #eadcdc; margin-top: 14px; font-size: .95rem; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; padding: 0; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); transform: scale(1.08); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; margin-top: -25px; } .lb-next { right: 20px; top: 50%; margin-top: -25px; }

/* ---------- Reviews ---------- */
.review { padding: 34px; }
.review .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.review p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; }
.review cite { display: flex; align-items: center; gap: 12px; font-style: normal; font-weight: 700; margin-top: 18px; font-size: .95rem; }
.review cite span { color: var(--muted); font-weight: 500; display: block; font-size: .84rem; }
.avatar { width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #f8e6b4, #fff3d1); color: #7d0c14; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; border: 2px solid var(--gold); }
[data-theme="dark"] .avatar { background: linear-gradient(135deg, #5a4615, #33270b); color: #ffe3a0; }
.avatar.sm { width: 44px; height: 44px; font-size: .95rem; }
img.avatar { object-fit: cover; object-position: top; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; display: flex; justify-content: space-between; gap: 18px; align-items: center; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4222c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta { background: radial-gradient(700px 300px at 50% 0%, #c8323a, transparent 70%), linear-gradient(140deg, #3b060b, #8c0f17); color: #fff; text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.cta p { color: #f8dfe0; margin: 0 auto 1em; max-width: 56ch; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }
.cta .wrap { position: relative; z-index: 1; }
.cta .ring { position: absolute; border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; }
.cta .ring.r1 { width: 520px; height: 520px; } .cta .ring.r2 { width: 820px; height: 820px; } .cta .ring.r3 { width: 1140px; height: 1140px; }

/* ---------- Inner page hero ---------- */
.page-hero { background: radial-gradient(900px 400px at 90% -20%, #c8323a 0%, transparent 60%), linear-gradient(140deg, #3b060b, #8c0f17); color: #fff; padding: 76px 0 150px; overflow: hidden; isolation: isolate; }
.page-hero p { color: #fbe4e5; max-width: 58ch; margin: 0; font-size: 1.12rem; }
.page-hero .eyebrow { color: #f3cf7a; }
.crumbs { font-size: .86rem; color: #f0cfd1; margin-bottom: 20px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero.flat { padding-bottom: 96px; }
.page-hero + section { padding-top: 0; }
.page-hero.flat + section { padding-top: 80px; }
.page-hero .watermark { position: absolute; right: 4%; top: 50%; translate: 0 -50%; width: 300px; opacity: .13; z-index: -1; filter: grayscale(1) brightness(4) contrast(.6); pointer-events: none; mix-blend-mode: screen; }

/* ---------- Courses page ---------- */
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; margin-top: -90px; margin-bottom: 44px; position: relative; z-index: 4; box-shadow: var(--shadow); }
.finder h2 { font-size: 1.6rem; margin-bottom: .3em; }
.finder p { color: var(--muted); margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.choice { padding: 11px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: .94rem; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.choice:hover { transform: translateY(-2px); border-color: var(--gold); }
.choice[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.finder-result { margin-top: 18px; font-weight: 700; min-height: 1.6em; color: var(--accent); }
.course { display: flex; flex-direction: column; padding: 32px; scroll-margin-top: 110px; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s, opacity .3s; }
.course .top { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.course .ic { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, #a8121b, #d0383f); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 10px 22px rgba(168, 18, 27, .28); transition: transform .4s var(--ease); }
.course:hover .ic { transform: rotate(-8deg) scale(1.08); }
.course .ic svg { width: 30px; height: 30px; }
.course .tag { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.course h3 { font-size: 1.5rem; margin: 0; }
.course > p { color: var(--muted); }
.course .more { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toggle { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.collapse > div { overflow: hidden; }
.collapse.open { grid-template-rows: 1fr; }
.course.dim { opacity: .35; }
.course.match { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 161, 30, .35), var(--shadow); }
.flyer { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: 640px; width: auto; margin: 0 auto; transform: rotate(2deg); transition: transform .5s var(--ease); }
.flyer:hover { transform: rotate(0) scale(1.02); }

/* ---------- Staff ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar .choice-row { margin: 0; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search input { width: 100%; padding: 13px 16px 13px 46px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 161, 30, .22); }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--muted); }
.count { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { display: flex; gap: 16px; align-items: center; padding: 22px; }
.person h3 { margin: 0 0 .2em; font-size: 1.08rem; }
.person .role { color: var(--accent); font-weight: 700; font-size: .86rem; display: block; }
.person .group { display: inline-block; margin-top: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.person a.small { font-size: .86rem; font-weight: 700; display: inline-block; margin-top: 6px; text-decoration: none; position: relative; z-index: 1; }
.person a.small:hover { text-decoration: underline; }
.person.hide { display: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; display: none; }
.staff-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; margin-top: -90px; position: relative; z-index: 4; box-shadow: var(--shadow); margin-bottom: 34px; }

/* ---------- Principal page ---------- */
.principal-layout { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start; }
.principal-card { position: sticky; top: 110px; }
.principal-card .name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 44px 0 2px; }
.principal-card .role { color: var(--accent); font-weight: 700; }
.message p { font-size: 1.1rem; }
.message .first::first-letter { font-family: var(--serif); font-size: 4.2rem; float: left; line-height: .82; padding: 8px 12px 0 0; color: var(--accent); font-weight: 700; }
.pull { border-left: 4px solid var(--gold); padding: 6px 0 6px 26px; margin: 1.6em 0; font-family: var(--serif); font-size: 1.55rem; line-height: 1.35; }
.signature { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.signature strong { font-family: var(--serif); font-size: 1.3rem; display: block; }
.signature span { color: var(--muted); }

/* ---------- Contact ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -90px; margin-bottom: 44px; position: relative; z-index: 4; }
.quick a, .quick button { all: unset; box-sizing: border-box; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: block; transition: transform .35s var(--ease), border-color .25s; }
.quick a:hover, .quick button:hover { transform: translateY(-6px); border-color: var(--gold); }
.quick a:focus-visible, .quick button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.quick .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.quick svg { width: 24px; height: 24px; }
.quick b { display: block; font-size: 1.05rem; }
.quick span { color: var(--muted); font-size: .9rem; word-break: break-word; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: stretch; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 161, 30, .22); }
.form .note { color: var(--muted); font-size: .86rem; margin: 0; }
.map-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; }
.map { border: 0; width: 100%; flex: 1; min-height: 380px; background: var(--surface-2); display: block; }
.map-card .addr { padding: 22px 26px; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.map-card .addr p { margin: 0; max-width: 46ch; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #d6c6c8; padding: 76px 0 0; font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #a8121b, var(--gold), #a8121b); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr .8fr .9fr 1.3fr; gap: 44px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 1.02rem; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; margin-bottom: 1em; }
.site-footer a { color: #f1d489; text-decoration: none; transition: color .2s, padding .25s var(--ease); }
.site-footer ul a:hover { color: #fff; padding-left: 5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.foot-brand img { width: 70px; background: #fff; border-radius: 14px; padding: 5px; }
.foot-brand strong { color: #fff; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.legal { border-top: 1px solid #3a2226; padding: 22px 0 26px; font-size: .86rem; color: #ab9a9c; display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; }
.legal p { margin: 0; }

/* ---------- Floating actions, toast ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab a, .fab button { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--shadow); transition: transform .3s var(--ease), opacity .3s; padding: 0; }
.fab a:hover, .fab button:hover { transform: scale(1.1); }
.fab .wa-fab { background: #1faa53; color: #fff; position: relative; }
.fab .wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa53; animation: ripple 2.2s ease-out infinite; }
.fab .top { background: var(--surface); color: var(--ink); border: 1px solid var(--line); width: 46px; height: 46px; opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab .top.show { opacity: 1; pointer-events: auto; transform: none; }
.fab svg { width: 28px; height: 28px; }
.fab .top svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease); z-index: 120; box-shadow: var(--shadow); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.left { transform: translateX(-36px); }
.js .reveal.right { transform: translateX(36px); }
.js .reveal.zoom { transform: scale(.94); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transition: opacity .8s var(--ease), transform .35s var(--ease), box-shadow .35s, border-color .25s; transition-delay: 0s; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes floaty { 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes drift { to { translate: 60px -40px; scale: 1.15; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes ripple { to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; align-items: stretch; padding: 14px 22px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; animation: panelIn .35s var(--ease); }
  .nav a.link { padding: 14px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.link::after { display: none; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .topbar .hide-md { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 160px; gap: 64px; }
  .collage { max-width: 480px; margin: 0 auto; width: 100%; }
  .float-card { left: -8px; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .explorer { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; margin: 0 -22px; padding-inline: 22px; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .tab:hover, .tab[aria-selected="true"] { transform: none; }
  .tab small { display: none; }
  .panel { padding: 30px 24px; }
  .split, .principal-teaser, .principal-layout, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .principal-teaser .portrait, .principal-card { max-width: 340px; position: relative; top: 0; }
  .grid.c3, .grid.c4, .people { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 50px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .page-hero .watermark { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand-name { font-size: .98rem; }
  .brand-name small { display: none; }
  .brand img { width: 46px; }
  .hero h1 { font-size: 2.1rem; }
  .hero h1 .typed-line { font-size: .9em; }
  .grid.c2, .grid.c3, .grid.c4, .people { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 30px; }
  .stat { padding: 22px 12px; }
  .stack { padding: 0 0 36px 28px; }
  .stack .badge { width: 92px; height: 92px; right: -6px; }
  .stack .badge b { font-size: 1.6rem; }
  .collage .seal { width: 92px; height: 92px; top: -22px; padding: 12px; }
  .finder, .staff-panel { padding: 26px 20px; }
  .quick a, .quick button { padding: 18px; }
  .portrait::after { right: -8px; }
  .portrait::before { inset: 14px -12px -14px 14px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .legal { flex-direction: column; }
  .cta .ring { display: none; }
  .fab { right: 14px; bottom: 14px; }
}
