/* ==========================================================================
   TNMC Alumni Association of America — "The Ribbon & The Pulse"
   Vanilla CSS · tokens → base → layout → components → pages → motion
   ========================================================================== */

:root {
  --indigo: #2A1770; --indigo-600: #3A2690; --indigo-800: #1E1057;
  --midnight: #140B3D; --midnight-900: #0C0628;
  --red: #D7262F; --red-700: #B51D25; --red-100: #FBE3E4;
  --sky: #12A1E3; --sky-200: #9FDCF7;
  --ivory: #FAF7F2; --paper: #F3EEE5; --lavender: #EEEBF7; --white: #fff;
  --ink: #1B1530; --slate: #5B5670;
  --line: rgba(42, 23, 112, .12); --line-strong: rgba(42, 23, 112, .22);
  --on-dark: #F5F2FF; --on-dark-muted: rgba(245, 242, 255, .76); --line-dark: rgba(255, 255, 255, .14);
  --glass-dark: rgba(255, 255, 255, .07); --glass-dark-border: rgba(255, 255, 255, .16);
  --glass-light: rgba(255, 255, 255, .78); --glass-light-border: rgba(255, 255, 255, .95);
  --wa: #075E54;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.6rem, 1.4rem + 4.8vw, 5.4rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem);
  --fs-h2: clamp(1.95rem, 1.35rem + 2.4vw, 3.3rem);
  --fs-h3: clamp(1.2rem, 1.08rem + .55vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.25rem);

  --r-sm: 10px; --r-md: 16px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 11, 61, .06), 0 4px 12px rgba(20, 11, 61, .06);
  --shadow-2: 0 1px 2px rgba(20, 11, 61, .06), 0 8px 24px rgba(20, 11, 61, .08), 0 24px 64px rgba(20, 11, 61, .14);
  --shadow-3: 0 2px 4px rgba(12, 6, 40, .14), 0 16px 40px rgba(12, 6, 40, .24), 0 48px 96px rgba(12, 6, 40, .32);
  --shadow-red: 0 6px 16px rgba(215, 38, 47, .28), 0 18px 40px rgba(215, 38, 47, .22);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 200ms; --t-med: 420ms; --t-slow: 800ms;

  --topbar-h: 40px; --nav-h: 108px; --nav-h-sm: 84px;
  --container: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --z-menu: 48; --z-header: 50; --z-mobilebar: 45; --z-popup: 100; --z-lightbox: 110;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--nav-h-sm) + 20px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
  background: var(--ivory); font-variant-ligatures: no-contextual; font-feature-settings: "calt" 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
html.menu-open, html.modal-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em;
  margin: 0 0 .5em; color: var(--indigo); font-optical-sizing: auto; text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--red); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 700; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 10px; background: var(--indigo); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--paper { background: var(--paper); }
.section--lavender { background: var(--lavender); }
.section--dark { background: var(--midnight); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: #FF7A80; }
.section--dark p { color: var(--on-dark-muted); }
.section--grain::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .06; mix-blend-mode: overlay; pointer-events: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stack-sm > * + * { margin-top: 12px; }
.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Typographic components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1rem;
  font: 800 .76rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--sky-200); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 700px; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--slate); }
.section--dark .lead { color: var(--on-dark-muted); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--red); }
.dropcap::first-letter { float: left; font-family: var(--font-display); font-size: 4.6em; line-height: .8; padding: .08em .12em 0 0; color: var(--red); font-weight: 600; }
.pullquote {
  margin: 2em 0; padding: 28px 32px; border-left: 4px solid var(--red); border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: linear-gradient(120deg, var(--lavender), rgba(238, 235, 247, .3));
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .7vw, 1.65rem); font-style: italic; line-height: 1.4; color: var(--indigo);
}
.pullquote p { margin: 0; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--indigo); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.6em; border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { color: var(--fg); box-shadow: var(--shadow-2); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--primary { --bg: var(--red); box-shadow: var(--shadow-red); }
.btn--primary:hover { --bg: var(--red-700); }
.btn--ghost { --bg: transparent; --fg: var(--indigo); border-color: var(--line-strong); }
.btn--ghost:hover { --bg: var(--indigo); --fg: #fff; border-color: var(--indigo); }
.btn--glass { --bg: rgba(255, 255, 255, .08); --fg: #fff; border-color: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--glass:hover { --bg: rgba(255, 255, 255, .18); }
.btn--light { --bg: #fff; --fg: var(--indigo); }
.btn--light:hover { --fg: var(--red); }
.btn--sm { min-height: 44px; padding: .6em 1.15em; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ripple { position: absolute; z-index: -1; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .65s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; color: var(--indigo);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px;
  transition: background-size .4s var(--ease), color var(--t-fast);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { color: var(--red); background-size: 100% 2px; }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow { color: #fff; }
.section--dark .link-arrow:hover { color: var(--sky-200); }

/* ---------- Header: sticky top bar + shrinking glass navbar ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: var(--z-header); }
.topbar { height: var(--topbar-h); background: var(--midnight-900); color: var(--on-dark-muted); font-size: .8125rem; border-bottom: 1px solid var(--line-dark); }
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar a { position: relative; display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--sky); }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__tag { padding: 3px 12px; border-radius: var(--r-pill); background: rgba(215, 38, 47, .2); color: #FFD6D8; font-weight: 700; font-size: .75rem; letter-spacing: .04em; }
.topbar ul.topbar__social { gap: 6px; }
.topbar__social a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .07); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.topbar__social a::before { content: ""; position: absolute; inset: -7px; }
.topbar__social a:hover { background: var(--red); transform: translateY(-2px); }
.topbar__social .icon { color: currentColor; width: 14px; height: 14px; }

.navbar {
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(42, 23, 112, .08); transition: box-shadow .4s var(--ease), background-color .4s;
}
.navbar .container { height: var(--nav-h); display: flex; align-items: center; gap: 20px; transition: height .4s var(--ease); }
.is-scrolled .navbar { background: rgba(255, 255, 255, .99); box-shadow: 0 12px 32px -12px rgba(20, 11, 61, .22); }
.is-scrolled .navbar .container { height: var(--nav-h-sm); }
.brand { flex: none; margin-right: auto; line-height: 0; border-radius: 8px; }
.brand img { height: 90px; width: auto; filter: drop-shadow(0 4px 10px rgba(20, 11, 61, .18)); transition: height .4s var(--ease), transform .3s var(--ease); }
.brand:hover img { transform: scale(1.03); }
.is-scrolled .brand img { height: 70px; }
.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--ink); font-weight: 600; font-size: .94rem; text-decoration: none; cursor: pointer; transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover, .nav__link.is-active { color: var(--indigo); background: rgba(42, 23, 112, .06); }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); transform: translateX(-50%); }
.nav__link .chev { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.has-sub { position: relative; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.sub {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 280px; margin: 0; padding: 10px; list-style: none;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(42, 23, 112, .08); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.98); transform-origin: top center;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.has-sub:hover .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.has-sub:hover .chev, .has-sub.is-open .chev { transform: rotate(180deg); }
.sub a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; color: var(--ink); font-weight: 700; font-size: .94rem; line-height: 1.35; text-decoration: none; }
.sub a small { font-weight: 500; font-size: .8rem; color: var(--slate); }
.sub a:hover, .sub a[aria-current="page"] { background: var(--lavender); color: var(--indigo); }
.nav__actions { display: flex; gap: 10px; margin-left: 14px; }
.menu-toggle { display: none; position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; box-shadow: var(--shadow-1); }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--indigo); transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; } .menu-toggle span:nth-child(2) { top: 23px; } .menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); overflow-y: auto; color: #fff;
  padding: calc(var(--topbar-h) + var(--nav-h-sm) + 28px) var(--gutter) 120px;
  background: radial-gradient(90% 60% at 100% 0%, rgba(18, 161, 227, .25), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(215, 38, 47, .28), transparent 60%), rgba(20, 11, 61, .97);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 80ms); border-bottom: 1px solid var(--line-dark); }
.menu-open .mobile-menu > ul > li { opacity: 1; transform: none; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; color: #fff; text-decoration: none; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); }
.mobile-menu a[aria-current="page"] { color: #FF7A80; font-style: italic; }
.mobile-menu .mobile-menu__sub a { font-family: var(--font-body); font-size: 1rem; font-weight: 600; padding: 10px 0 10px 18px; color: var(--on-dark-muted); }
.mobile-menu__actions { display: grid; gap: 12px; margin-top: 32px; }
.mobile-menu__contact { margin-top: 28px; }
.mobile-menu__contact a { font-family: var(--font-body); font-size: 1rem; padding: 6px 0; justify-content: flex-start; gap: 10px; color: var(--on-dark-muted); }

/* ---------- Signature motifs: ribbon, pulse, glows ---------- */
.bg-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; will-change: translate; }
.glow--red { width: 560px; height: 560px; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(215, 38, 47, .55), transparent 65%); }
.glow--sky { width: 620px; height: 620px; right: -160px; top: -180px; background: radial-gradient(circle, rgba(18, 161, 227, .42), transparent 65%); }
.glow--violet { width: 480px; height: 480px; left: 40%; top: 30%; background: radial-gradient(circle, rgba(91, 75, 214, .35), transparent 65%); }
.dot-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.3px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 25%, transparent 75%); }
.grain { position: absolute; inset: 0; background: var(--noise); opacity: .07; mix-blend-mode: overlay; }

.ribbon { position: absolute; left: 0; width: 100%; height: auto; pointer-events: none; overflow: visible; }
.section--dark > .bg-layer .ribbon { top: auto; bottom: -12%; opacity: .45; }
.ribbon path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }
.ribbon .r-red { stroke: var(--red); stroke-width: 16; }
.ribbon .r-white { stroke: #fff; stroke-width: 5; opacity: .9; animation-delay: .15s; }
.ribbon .r-blue { stroke: var(--sky); stroke-width: 14; opacity: .85; animation-delay: .3s; }
.ribbon__float { animation: ribbon-float 9s ease-in-out infinite alternate; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ribbon-float { from { transform: translateY(-6px) rotate(-.6deg); } to { transform: translateY(10px) rotate(.8deg); } }

.ecg { width: 100%; height: 70px; overflow: visible; }
.ecg path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ecg .ecg__base { stroke: currentColor; stroke-width: 2; opacity: .35; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.ecg .ecg__pulse { stroke: var(--red); stroke-width: 3; stroke-dasharray: .06 .94; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 6px rgba(215, 38, 47, .9)); }
.ecg.is-in .ecg__base { stroke-dashoffset: 0; }
.ecg.is-in .ecg__pulse { opacity: 1; animation: pulse-run 3.6s linear 1.2s infinite; }
@keyframes pulse-run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ecg-divider { color: var(--indigo); padding-block: 8px; }
.section--dark .ecg-divider, .ecg--light { color: #fff; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--topbar-h) + var(--nav-h) + 56px) 0 120px; color: var(--on-dark);
  background: radial-gradient(120% 90% at 85% 5%, #2E1D86 0%, var(--midnight) 52%, var(--midnight-900) 100%);
}
.hero .ribbon { bottom: -6%; opacity: .8; }
.hero .ecg { position: absolute; left: 0; right: 0; bottom: 20%; opacity: .28; color: #fff; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { display: block; margin-bottom: 1.1rem; font: 800 clamp(.74rem, .7rem + .25vw, .9rem)/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-200); }
.hero__title { font-size: var(--fs-display); color: #fff; font-weight: 500; letter-spacing: -.028em; line-height: 1.02; margin-bottom: .45em; }
.hero__title em { font-style: italic; font-weight: 400; background: linear-gradient(100deg, #FF6B72 0%, #fff 48%, var(--sky-200) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__lead { font-size: var(--fs-lead); color: var(--on-dark-muted); max-width: 34em; margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; padding: 0; margin: 2.2rem 0 0; font-size: .9rem; color: var(--on-dark-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { width: 18px; height: 18px; color: var(--sky-200); }
.hero__trust strong { color: #fff; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--on-dark-muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.hero__scroll span { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { from { transform: translateY(0); opacity: 1; } to { transform: translateY(12px); opacity: 0; } }

/* 3D polaroid photo stack */
.photo-stack { position: relative; height: clamp(400px, 44vw, 580px); perspective: 1400px; }
.polaroid {
  position: absolute; margin: 0; padding: 10px 10px 44px; background: #fff; border-radius: 6px; box-shadow: var(--shadow-3);
  width: min(80%, 440px); transition: transform .8s var(--ease), box-shadow .5s var(--ease); will-change: transform, translate;
}
.polaroid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { position: absolute; left: 16px; right: 16px; bottom: 11px; font-family: var(--font-display); font-style: italic; font-size: .98rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid::after { content: ""; position: absolute; inset: 10px 10px 44px; border-radius: 3px; background: var(--noise); opacity: .12; mix-blend-mode: multiply; pointer-events: none; }
.polaroid--1 { top: 2%; left: 0; transform: rotate(-7deg); }
.polaroid--2 { top: 20%; right: 0; transform: rotate(5deg); }
.polaroid--3 { bottom: 2%; left: 14%; transform: rotate(-2deg); }
.photo-stack:hover .polaroid--1 { transform: rotate(-10deg) translate(-14px, -8px); }
.photo-stack:hover .polaroid--2 { transform: rotate(8deg) translate(14px, -6px); }
.photo-stack:hover .polaroid--3 { transform: rotate(0) translateY(8px); }
.float-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-3); color: #fff; font-size: .82rem; line-height: 1.3; animation: float 7s ease-in-out infinite;
}
.float-badge strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.float-badge__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--red); box-shadow: var(--shadow-red); }
.float-badge__icon--sky { background: var(--sky); box-shadow: 0 8px 22px rgba(18, 161, 227, .4); }
.float-badge__icon .icon { width: 20px; height: 20px; }
.float-badge--a { left: -4%; bottom: 20%; }
.float-badge--b { right: 2%; top: -2%; animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.load-in { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- News ribbon marquee ---------- */
.news-ribbon-wrap { position: relative; z-index: 5; overflow: hidden; margin-top: -58px; padding: 20px 0 44px; margin-bottom: -24px; }
.news-ribbon {
  position: relative; width: 110%; margin: 0 0 0 -5%; padding: 15px 0; overflow: hidden; transform: rotate(-1.5deg);
  background: var(--red); color: #fff; box-shadow: inset 0 5px 0 #fff, inset 0 -6px 0 var(--indigo), var(--shadow-red);
}
.marquee__track { display: flex; width: max-content; gap: 56px; padding-left: 56px; animation: marquee 48s linear infinite; }
.news-ribbon:hover .marquee__track, .news-ribbon:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 56px; font-weight: 700; font-size: .98rem; white-space: nowrap; letter-spacing: .01em; }
.marquee__item a { color: #fff; text-decoration: none; }
.marquee__item a:hover { text-decoration: underline; }
.marquee__item::after { content: ""; width: 9px; height: 9px; background: #fff; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.stat { padding: 8px clamp(16px, 2.5vw, 36px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: .45em; color: #FF7A80; vertical-align: super; margin-left: 2px; }
.stat__label { display: block; margin-top: 12px; color: var(--on-dark-muted); font-size: .92rem; line-height: 1.45; }

/* ---------- Tilt + glass cards ---------- */
[data-tilt] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d; }
[data-tilt].is-tilting { transition: transform .12s linear, box-shadow .4s var(--ease); }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .45), transparent 55%); mix-blend-mode: soft-light; }
[data-tilt]:hover .glare { opacity: 1; }
.card {
  position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg);
  background: var(--glass-light); border: 1px solid var(--glass-light-border); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.card:hover { box-shadow: var(--shadow-2); }
.card--dark { background: var(--glass-dark); border-color: var(--glass-dark-border); color: var(--on-dark); box-shadow: none; }
.card--dark h3 { color: #fff; }
.card__icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, var(--indigo), var(--indigo-600)); box-shadow: 0 10px 24px rgba(42, 23, 112, .3); transform: translateZ(30px); }
.card__icon .icon { width: 26px; height: 26px; }
.card__icon--red { background: linear-gradient(140deg, var(--red), #E8545B); box-shadow: var(--shadow-red); }
.card__icon--sky { background: linear-gradient(140deg, #0C84BD, var(--sky)); box-shadow: 0 10px 24px rgba(18, 161, 227, .35); }
.card__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: 1rem; font-style: italic; color: var(--slate); }
.card p:last-child { margin-bottom: 0; }

/* Bento programs */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 22px; }
.bento__item { display: flex; flex-direction: column; overflow: hidden; }
.bento__item--hero { grid-column: span 2; min-height: 340px; padding: 0; color: #fff; background: var(--midnight); border: 0; }
.bento__item--wide { grid-column: span 2; }
.bento__cta { justify-content: center; background: linear-gradient(140deg, var(--red), #A51A22); border: 0; color: #fff; box-shadow: var(--shadow-red); }
.bento__cta h3 { color: #fff; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.bento__cta p { color: rgba(255,255,255,.85); }
.bento__media { position: absolute; inset: 0; }
.bento__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__item--hero:hover .bento__media img { transform: scale(1.06); }
.bento__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 11, 61, .05) 20%, rgba(20, 11, 61, .92) 88%); }
.bento__body { position: relative; margin-top: auto; padding: clamp(24px, 3vw, 40px); transform: translateZ(40px); }
.bento__item--hero h3 { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.bento__item--hero p { color: var(--on-dark-muted); max-width: 40ch; }
.bento__item--hero .link-arrow { color: #fff; }
.bento__item .link-arrow { margin-top: auto; }

/* ---------- Archival duotone photos ---------- */
.archival { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--indigo); box-shadow: var(--shadow-2); }
.archival img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.05); transition: filter .7s var(--ease), transform 1s var(--ease); }
.archival::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--noise); opacity: .1; mix-blend-mode: overlay; pointer-events: none; }
.archival::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(42, 23, 112, .42), rgba(215, 38, 47, .16)); mix-blend-mode: multiply; transition: opacity .7s var(--ease); pointer-events: none; }
.archival:hover img, .archival:focus-within img { filter: none; transform: scale(1.04); }
.archival:hover::after, .archival:focus-within::after { opacity: 0; }
.archival figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(20, 11, 61, .7); color: #fff; font-size: .8rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--red); border-radius: var(--r-lg); z-index: -1; }
.frame::after { content: ""; position: absolute; width: 60%; height: 60%; left: -26px; top: -26px; border-radius: var(--r-lg); background: radial-gradient(rgba(42, 23, 112, .28) 1.2px, transparent 1.4px) 0 0 / 14px 14px; z-index: -1; }

/* ---------- Video facade ---------- */
.video-card { position: relative; border-radius: var(--r-xl); padding: 12px; background: #fff; box-shadow: var(--shadow-2); }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--midnight); cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9); }
.video-facade:hover img { transform: scale(1.05); filter: saturate(1.1); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 11, 61, .7)); }
.video-facade__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; box-shadow: var(--shadow-red); transition: transform .4s var(--ease); }
.video-facade__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: ping 2.2s var(--ease) infinite; }
.video-facade:hover .video-facade__play { transform: scale(1.1); }
.video-facade__play .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 10px 6px; font-size: .9rem; color: var(--slate); }
.video-card__meta strong { color: var(--indigo); font-family: var(--font-display); font-size: 1.1rem; }

/* ---------- Horizontal heritage timeline ---------- */
.htl { position: relative; }
.htl__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 330px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 44px 4px 28px; scrollbar-width: none; overscroll-behavior-x: contain; }
.htl__track::-webkit-scrollbar { display: none; }
.htl__track::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: linear-gradient(90deg, var(--red), var(--sky) 60%, transparent); opacity: .6; }
.tl-card { position: relative; scroll-snap-align: start; padding: 34px 28px 28px; border-radius: var(--r-lg); background: var(--glass-dark); border: 1px solid var(--glass-dark-border); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tl-card::before { content: ""; position: absolute; top: -17px; left: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(215, 38, 47, .25); }
.tl-card__year { display: block; font-family: var(--font-display); font-weight: 600; font-size: 3.6rem; line-height: 1; margin-bottom: 14px; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); transition: color .5s var(--ease), -webkit-text-stroke-color .5s; }
.tl-card:hover .tl-card__year { color: #fff; -webkit-text-stroke-color: transparent; }
.tl-card h3 { font-size: 1.2rem; margin-bottom: .5em; }
.tl-card p { font-size: .95rem; margin: 0; }
.htl__nav { display: flex; gap: 10px; }
.icon-btn { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--indigo); cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease); }
.icon-btn:hover { background: var(--indigo); color: #fff; }
.icon-btn:active { transform: scale(.94); }
.section--dark .icon-btn { background: rgba(255, 255, 255, .08); border-color: var(--glass-dark-border); color: #fff; }
.section--dark .icon-btn:hover { background: var(--red); border-color: var(--red); }

/* ---------- President ---------- */
.portrait { position: relative; max-width: 420px; margin-inline: auto; }
.portrait img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-3); aspect-ratio: 346 / 518; object-fit: cover; }
.portrait__badge { position: absolute; right: -18px; bottom: 36px; max-width: 230px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-2); font-size: .85rem; line-height: 1.4; color: var(--slate); animation: float 8s ease-in-out infinite; }
.portrait__badge strong { display: block; color: var(--indigo); font-family: var(--font-display); font-size: 1.15rem; }
.quote-mark { width: 54px; height: 54px; color: var(--red); opacity: .9; margin-bottom: 12px; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.signature strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--indigo); }
.signature span { font-size: .9rem; color: var(--slate); }

/* ---------- People ---------- */
.people-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.person-mini { scroll-snap-align: start; text-decoration: none; color: inherit; }
.person-mini__photo { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 6 / 7; background: var(--lavender); box-shadow: var(--shadow-1); }
.person-mini__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.person-mini:hover .person-mini__photo img { transform: scale(1.06); }
.person-mini__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--red), #fff, var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.person-mini:hover .person-mini__photo::after { transform: scaleX(1); }
.person-mini h3 { font-size: 1.1rem; margin: 14px 0 2px; }
.person-mini p { margin: 0; font-size: .85rem; color: var(--slate); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.person { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.person__photo { overflow: hidden; border-radius: var(--r-md); aspect-ratio: 6 / 7; background: linear-gradient(140deg, var(--indigo), var(--indigo-600)); box-shadow: var(--shadow-1); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.monogram { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 2.4rem; font-style: italic; }
.person__role { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--red-100); color: var(--red-700); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.person h3 { margin: 0 0 4px; font-size: 1.3rem; }
.person__creds { margin: 0 0 10px; font-size: .85rem; color: var(--slate); }
.bio summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--indigo); list-style: none; }
.bio summary::-webkit-details-marker { display: none; }
.bio summary .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.bio[open] summary .icon { transform: rotate(45deg); }
.bio summary:hover { color: var(--red); }
.bio__text { margin-top: 12px; font-size: .94rem; color: var(--ink); animation: rise .5s var(--ease); }
.bio__text p { margin-bottom: .8em; }
.chip-nav { position: sticky; top: calc(var(--topbar-h) + var(--nav-h-sm) + 12px); z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; width: max-content; max-width: 100%; margin: 0 auto 48px; padding: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-2); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast); }
.chip:hover { color: var(--indigo); background: var(--lavender); }
.chip.is-active, .chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--indigo); color: #fff; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.rating-card { position: sticky; top: calc(var(--topbar-h) + var(--nav-h-sm) + 24px); text-align: center; }
.rating-card__g { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--slate); font-size: .9rem; }
.rating-card__g .icon { width: 22px; height: 22px; color: #4285F4; }
.rating-card__score { display: block; margin: 12px 0 4px; font-family: var(--font-display); font-size: 4.2rem; line-height: 1; color: var(--indigo); font-weight: 600; }
.stars { display: inline-flex; gap: 3px; color: #F5B301; }
.stars .icon { width: 20px; height: 20px; }
.rating-card__count { display: block; margin: 8px 0 22px; color: var(--slate); font-size: .9rem; }
.rating-card .btn { width: 100%; margin-top: 10px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 14px; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.review__head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; background: linear-gradient(140deg, var(--indigo), var(--sky)); }
.review__name { font-weight: 800; color: var(--ink); line-height: 1.2; }
.review__meta { font-size: .8rem; color: var(--slate); }
.review__g { margin-left: auto; width: 20px; height: 20px; color: #4285F4; }
.review p { margin: 0; font-size: .97rem; }
.review__tag { align-self: flex-start; padding: 4px 10px; border-radius: var(--r-pill); background: var(--lavender); color: var(--indigo); font-size: .75rem; font-weight: 700; }
.reviews__note { margin-top: 18px; font-size: .8rem; color: var(--slate); }

/* ---------- Donate band ---------- */
.donate-band { background: linear-gradient(135deg, var(--indigo) 0%, var(--midnight) 70%); }
.donate-band .ribbon { top: auto; bottom: -14%; opacity: .45; }
.donate-band__media { position: relative; }
.donate-band__media .archival { aspect-ratio: 4 / 3; }
.tax-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-dark-border); color: var(--on-dark); font-size: .85rem; }
.tax-pill .icon { color: var(--sky-200); width: 18px; height: 18px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px; }
.gallery__item { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--r-md); }
.gallery__item .archival { width: 100%; height: 100%; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item[hidden] { display: none; }
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: grid; place-items: center; padding: 64px 16px; background: rgba(12, 6, 40, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: 12px; box-shadow: var(--shadow-3); animation: rise .45s var(--ease); }
.lightbox figcaption { margin-top: 14px; color: var(--on-dark-muted); font-size: .95rem; }
.lightbox .icon-btn { position: absolute; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lightbox .icon-btn:hover { background: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Global bridge map ---------- */
.bridge { position: relative; border-radius: var(--r-xl); background: radial-gradient(80% 80% at 50% 40%, rgba(42, 23, 112, .6), transparent 70%); }
.bridge svg { width: 100%; height: auto; overflow: visible; }
.bridge .arc { fill: none; stroke: url(#arcGrad); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.bridge .arc:nth-of-type(2) { transition-delay: .35s; } .bridge .arc:nth-of-type(3) { transition-delay: .7s; }
.bridge.is-in .arc { stroke-dashoffset: 0; }
.bridge .node circle.core { fill: #fff; }
.bridge .node circle.ring { fill: none; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: node-ping 2.6s var(--ease) infinite; }
.bridge .node--sky circle.ring { stroke: var(--sky); }
.bridge text { fill: #fff; font: 700 15px var(--font-body); letter-spacing: .04em; }
.bridge text.sub { fill: rgba(245, 242, 255, .7); font-weight: 500; font-size: 12px; }
@keyframes node-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- Forms ---------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-xl); color: var(--on-dark); background: linear-gradient(150deg, var(--indigo), var(--midnight)); box-shadow: var(--shadow-3); }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card p { color: var(--on-dark-muted); }
.contact-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid var(--glass-dark-border); }
.contact-list .ci .icon { width: 20px; height: 20px; color: var(--sky-200); }
.contact-list small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-200); }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: #FF9CA1; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.social-row a:hover { background: var(--red); transform: translateY(-3px); color: #fff; }
.social-row .icon { width: 18px; height: 18px; }
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; position: relative; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .875rem; color: var(--indigo); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid rgba(42, 23, 112, .18); border-radius: 14px;
  background: var(--ivory); color: var(--ink); font: 500 1rem/1.4 var(--font-body); transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232A1770' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(42, 23, 112, .35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(18, 161, 227, .2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: #FFF7F7; }
.field__error { min-height: 1.1em; font-size: .8rem; font-weight: 600; color: var(--red-700); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--slate); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--indigo); flex: none; cursor: pointer; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; display: none; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: .95rem; }
.form__status.is-success { display: flex; background: #E9F8EF; color: #0F6B3A; }
.form__status.is-error { display: flex; background: #FDECEC; color: var(--red-700); }
.form__status .icon { width: 22px; height: 22px; }
.map-embed { overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-2); aspect-ratio: 21 / 9; background: var(--lavender); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.05); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--topbar-h) + var(--nav-h) + 56px) 0 clamp(80px, 9vw, 120px); color: var(--on-dark); background: radial-gradient(110% 100% at 90% 0%, #2E1D86 0%, var(--midnight) 55%, var(--midnight-900) 100%); }
.page-hero .ribbon { bottom: -8%; opacity: .75; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero h1 { color: #fff; font-weight: 500; margin-bottom: .35em; }
.page-hero h1 em { color: #FF7A80; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 40em; }
.page-hero__visual { position: relative; height: 320px; }
.page-hero__visual .polaroid { width: min(92%, 360px); }
.page-hero__visual .polaroid--1 { top: 0; left: 0; }
.page-hero__visual .polaroid--2 { top: 30%; right: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .85rem; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.breadcrumbs a { color: var(--sky-200); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Vertical timeline (history) ---------- */
.vtl { position: relative; max-width: 1040px; margin-inline: auto; --progress: 0; }
.vtl::before, .vtl::after { content: ""; position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; }
.vtl::before { bottom: 0; background: var(--line); }
.vtl::after { height: calc(var(--progress) * 100%); background: linear-gradient(var(--red), var(--indigo)); }
.vtl__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 56px; }
.vtl__item::before { content: ""; position: absolute; left: 50%; top: 26px; z-index: 1; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 6px rgba(215, 38, 47, .15); }
.vtl__item > .card { grid-column: 1; }
.vtl__item:nth-child(even) > .card { grid-column: 2; }
.vtl__year { display: block; font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: var(--red); font-weight: 600; margin-bottom: 10px; }

/* ---------- Misc page components ---------- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; color: var(--ink); }
.link-card__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--lavender); color: var(--indigo); transition: background-color .3s, color .3s; }
.link-card:hover .link-card__icon { background: var(--red); color: #fff; }
.link-card strong { display: block; line-height: 1.3; }
.link-card small { color: var(--slate); font-size: .8rem; word-break: break-all; }
.link-card > .icon { margin-left: auto; width: 18px; height: 18px; color: var(--slate); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: 2.6rem; font-style: italic; line-height: 1; color: var(--red); }
.doc-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sitemap-list { columns: 2 280px; column-gap: 48px; }
.sitemap-list li { break-inside: avoid; margin-bottom: 10px; }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(7rem, 20vw, 14rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .5); }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--midnight-900); color: var(--on-dark-muted); padding-top: 96px; font-size: .95rem; }
.footer-stripes { position: absolute; inset: 0 0 auto; height: 10px; background: linear-gradient(var(--red) 0 40%, #fff 40% 60%, var(--sky) 60% 100%); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 48px; }
.logo-plaque { display: inline-block; padding: 12px 16px; margin-bottom: 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-2); line-height: 0; }
.logo-plaque img { height: 104px; width: auto; }
.site-footer h2 { margin-bottom: 18px; font: 800 .78rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { color: var(--on-dark-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color var(--t-fast), transform var(--t-fast) var(--ease); }
.footer__links a:hover { color: #fff; transform: translateX(4px); }
.footer__contact { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--sky-200); }
.footer__contact a { color: var(--on-dark-muted); text-decoration: none; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 64px; padding: 24px 0 28px; border-top: 1px solid var(--line-dark); font-size: .875rem; }
.footer__bottom a { color: #fff; font-weight: 700; }
.footer__bottom a:hover { color: #FF9CA1; }
.footer__watermark { margin-top: 32px; font-family: var(--font-display); font-size: clamp(4.5rem, 16vw, 15rem); font-weight: 600; font-style: italic; line-height: .8; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); user-select: none; transform: translateY(18%); }

/* ---------- Mobile call / WhatsApp bar & back-to-top ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar); display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 11, 61, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line-dark); box-shadow: 0 -10px 30px rgba(12, 6, 40, .25); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; color: #fff; font-weight: 800; text-decoration: none; transition: transform var(--t-fast) var(--ease); }
.mobile-cta a:active { transform: scale(.96); }
.mobile-cta .icon { width: 20px; height: 20px; }
.mobile-cta__call { background: var(--red); box-shadow: var(--shadow-red); }
.mobile-cta__wa { background: var(--wa); }
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: var(--z-mobilebar); width: 54px; height: 54px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--indigo); box-shadow: var(--shadow-2); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--red); }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 150.8; stroke-dashoffset: calc(150.8 - 150.8 * var(--p, 0)); }
.to-top .icon { width: 20px; height: 20px; }

@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Scroll reveal ---------- */
/* Uses the individual `translate`/`scale` properties so reveals never fight 3D-tilt transforms */
.js [data-reveal] { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), transform .6s var(--ease), box-shadow .4s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="left"] { translate: -40px 0; }
.js [data-reveal="right"] { translate: 40px 0; }
.js [data-reveal="zoom"] { translate: none; scale: .94; }
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
.js [data-reveal].is-in[data-tilt] { transition-delay: 0s; }
.js [data-reveal][data-tilt].is-tilting { transition: transform .12s linear, opacity .9s var(--ease), translate .9s var(--ease); }

/* Misc layout helpers */
.contact-card .ribbon { top: auto; bottom: -40px; opacity: .3; z-index: -1; }
.pm-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pm-grid aside { position: sticky; top: calc(var(--topbar-h) + var(--nav-h-sm) + 24px); }
@media (max-width: 1023.98px) { .pm-grid { grid-template-columns: 1fr; } .pm-grid aside { position: static; max-width: 360px; margin-inline: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .nav__list, .nav__actions .btn--ghost { display: none; }
  .menu-toggle { display: inline-block; }
  .nav__actions { margin-left: 0; }
}
@media (max-width: 1023.98px) {
  :root { --nav-h: 100px; }
  .hero { min-height: auto; }
  .hero__inner, .grid-2, .page-hero__grid, .contact-wrap, .reviews { grid-template-columns: 1fr; }
  .photo-stack { height: 440px; max-width: 560px; width: 100%; margin-inline: auto; }
  .page-hero__visual { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .rating-card { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:nth-child(3) { border-left: 0; }
  .brand img { height: 84px; }
}
@media (max-width: 767.98px) {
  :root { --topbar-h: 36px; --nav-h: 88px; --nav-h-sm: 72px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .mobile-cta { display: grid; }
  .to-top { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; width: 48px; height: 48px; }
  .topbar__text, .topbar__tag { display: none; }
  .topbar ul { gap: 14px; }
  .brand img { height: 70px; }
  .is-scrolled .brand img { height: 58px; }
  .nav__actions .btn { padding-inline: 1em; }
  .bento, .grid-3, .grid-4, .steps, .review-grid, .form, .footer__grid { grid-template-columns: 1fr; }
  .bento__item--hero, .bento__item--wide { grid-column: auto; }
  .bento__item--hero { min-height: 420px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; }
  .photo-stack { height: 360px; }
  .float-badge--a { left: 0; bottom: 6%; } .float-badge--b { right: 0; }
  .polaroid { padding-bottom: 36px; }
  .vtl::before, .vtl::after { left: 10px; }
  .vtl__item { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .vtl__item::before { left: 10px; }
  .vtl__item > .card, .vtl__item:nth-child(even) > .card { grid-column: 1; }
  .person { grid-template-columns: 96px 1fr; gap: 16px; }
  .portrait__badge { right: 8px; }
  .frame::before { inset: 14px -10px -14px 14px; }
  .map-embed { aspect-ratio: 4 / 3; }
  .chip-nav { width: 100%; justify-content: center; border-radius: 22px; }
}
@media (max-width: 420px) {
  .nav__actions .btn--primary { display: none; }
  .hero__title { font-size: 2.45rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-inline: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .ribbon path, .ecg .ecg__base { stroke-dashoffset: 0; }
  [data-tilt] { transform: none !important; }
}
