/* ============================================================
   TROPANG BARYA — Design System
   Youth Movement · Community Development · Agriculture · Action
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette — 70% light neutral / 20% blue / 10% accents */
  --royal: #17285C;
  --royal-600: #1E3877;
  --royal-700: #21407E;
  --royal-deep: #101C42;
  --royal-ink: #0B1430;
  --royal-050: #EFF2FB;

  --green: #3E8E4E;
  --green-deep: #2F7240;
  --green-050: #EAF5EC;

  --gold: #F4B400;
  --gold-soft: #FFC940;
  --gold-050: #FFF6DE;

  --red: #E23B32;
  --orange: #F08A24;
  --sky: #5F9DE0;
  --sky-050: #EAF2FC;

  /* Neutrals */
  --white: #FFFFFF;
  --off: #F7F9FD;
  --off-2: #EFF2F8;
  --line: #E3E8F1;
  --ink: #1C2333;
  --ink-2: #2A3246;
  --muted: #5B6478;
  --muted-2: #7E879B;

  /* Radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(16, 28, 66, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 28, 66, 0.09);
  --shadow-lg: 0 24px 60px rgba(16, 28, 66, 0.14);
  --shadow-gold: 0 10px 26px rgba(244, 180, 0, 0.32);

  /* Type */
  --font-display: "Poppins", "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", "DM Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --wrap-wide: 1360px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--royal-600); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--royal); color: #fff; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.14;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.display-xl { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; }
.display-md { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.08; }

.text-muted { color: var(--muted); }
.text-white { color: #fff; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-blue { color: var(--royal-600); }
.small { font-size: 0.92rem; }
.tight { line-height: 1.35; }

/* ---------- 4. Layout helpers ---------- */
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - 48px); margin-inline: auto; }
.flow > * + * { margin-top: 1.15rem; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-dark { background: linear-gradient(180deg, var(--royal-deep), var(--royal-ink)); color: #fff; }
.section-off { background: var(--off); }
.section-green { background: var(--green-050); }
.divider { height: 1px; background: var(--line); }
.grow { flex: 1; }

.stack-lg { display: flex; flex-direction: column; gap: 3rem; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.cols-8-4 { grid-template-columns: 8fr 4fr; }
.cols-4-8 { grid-template-columns: 4fr 8fr; }
.aside-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 2.6rem; align-items: start; }
.align-center { align-items: center; }

/* ---------- 5. Packing / kickers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--royal-600);
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--gold); display: inline-block; }
.kicker.alt { color: var(--gold); }
.kicker.alt::before { background: var(--gold); }

.section-head { max-width: 780px; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { margin-bottom: 1rem; }
.section-head h2 { margin-block: 0.5rem 1rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head .lead { font-size: 1.15rem; }
.on-dark .section-head h2 { color: #fff; }
.on-dark .section-head p { color: rgba(255,255,255,0.78); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--royal);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem; border-radius: var(--r-pill);
  border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--royal); }
.btn-primary:hover { background: var(--royal-700); box-shadow: var(--shadow-md); }
.btn-primary.lift:hover { box-shadow: var(--shadow-lg); }

.btn-gold { background: var(--gold); color: var(--royal-ink); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: var(--shadow-gold); }

.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-deep); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: currentColor; }
.btn-outline-light { color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline-blue { color: var(--royal); border-color: rgba(23,40,92,0.35); }
.btn-outline-blue:hover { border-color: var(--royal); background: var(--royal-050); }

.btn-light { background: #fff; color: var(--royal); }
.btn-light:hover { box-shadow: var(--shadow-md); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid currentColor; background: transparent; transition: all .25s var(--ease); }
.btn-icon:hover { background: #fff; border-color: #fff; }

/* ---------- 7. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--royal-deep);
  color: #fff;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(8,12,34,0.35); }
.topbar { background: var(--royal-ink); color: rgba(255,255,255,0.8); font-size: 0.82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.topbar a { color: var(--gold-soft); font-weight: 600; }
.topbar .motto { letter-spacing: 0.12em; font-weight: 600; }
.topbar .motto .dot { color: var(--gold); }

.navbar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; }
.brand:hover { color: #fff; }
.brand .logo { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35)); }
.brand .word { display: flex; flex-direction: column; line-height: 1.05; }
.brand .word b { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: 0.06em; }
.brand .word span { font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.88); font-weight: 600; font-size: 0.94rem;
  padding: 0.55rem 0.85rem; border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover, .nav-item:hover > .nav-link { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link .caret { width: 11px; height: 11px; transition: transform 0.25s var(--ease); }
.nav-item:hover .caret { transform: rotate(180deg); }
.nav-link.active { color: var(--gold-soft); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 250px; background: #fff; color: var(--ink);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 0.6rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  border: 1px solid var(--line);
}
.dropdown::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.62rem 0.85rem; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 0.92rem; font-weight: 500;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.dropdown a:hover { background: var(--royal-050); color: var(--royal); transform: translateX(3px); }
.dropdown .dd-title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); font-weight: 700; padding: 0.5rem 0.85rem 0.25rem; }

.nav-cta { margin-left: 0.8rem; }

/* Hamburger */
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: rgba(255,255,255,0.08); border-radius: var(--r-sm); position: relative; z-index: 110; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 3px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 100;
  background: var(--royal-ink);
  padding: calc(var(--header-h) + 20px) 24px 40px;
  overflow-y: auto; display: none;
}
body.menu-open .mobile-nav { display: block; }
.mobile-nav .m-link {
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; padding: 0.95rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .m-caret { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.mobile-nav details[open] .m-caret { transform: rotate(180deg); }
.mobile-nav details .m-sub { padding: 0.25rem 0 1rem 0; }
.mobile-nav details .m-sub a { display: block; color: rgba(255,255,255,0.72); padding: 0.5rem 0.5rem; font-size: 0.98rem; }
.mobile-nav details .m-sub a:hover { color: var(--gold-soft); }
.mobile-nav .m-cta { margin-top: 1.6rem; }
.mobile-nav .m-motto { margin-top: auto; padding-top: 2rem; color: rgba(255,255,255,0.6); font-size: 0.85rem; letter-spacing: 0.12em; text-align: center; }

/* ---------- 8. Hero (home) ---------- */
.hero {
  position: relative; min-height: min(92vh, 900px);
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--royal-ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(8,12,34,0.88) 20%, rgba(11,20,48,0.55) 55%, rgba(11,20,48,0.25) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: 6.5rem 4.5rem; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1.5px solid rgba(255,255,255,0.25); border-radius: var(--r-pill);
  padding: 0.45rem 1.1rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(6px); margin-bottom: 1.6rem;
}
.hero-eyebrow .pl { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244,180,0,0.25); }
.hero-title { display: block; font-family: var(--font-display); font-weight: 800; color: #fff; line-height: 1.03; letter-spacing: -0.015em; font-size: clamp(2.5rem, 6.8vw, 5.3rem); }
.hero-title .line { display: block; }
.hero-title .l2 { color: var(--gold-soft); }
.hero-title .l3 { -webkit-text-stroke: 1.5px rgba(255,255,255,0.9); -webkit-text-fill-color: transparent; }
@supports not (-webkit-text-stroke: 1px) {
  .hero-title .l3 { -webkit-text-fill-color: currentColor; }
}
.hero-lead { max-width: 560px; color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 3rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; color: #fff;
}
.pill .bullet { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.7); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.hero-scroll .mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px; position: relative; }
.hero-scroll .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 8px; transform: translateX(-50%); border-radius: 3px; background: var(--gold); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 1; top: 6px; } 70% { opacity: 0; top: 16px; } 100% { opacity: 0; top: 16px; } }

/* ---------- 9. Interior page hero ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, var(--royal-deep), var(--royal-ink));
  padding-block: clamp(5rem, 10vw, 8rem) clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,48,0.85), rgba(8,12,34,0.95)); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .ph-breadcrumb { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); font-weight: 500; margin-bottom: 1.4rem; }
.page-hero .ph-breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero .ph-breadcrumb a:hover { color: var(--gold-soft); }
.page-hero .ph-breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.015em; max-width: 900px; }
.page-hero .ph-lead { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 640px; margin-top: 1rem; }
.page-hero .ph-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.page-hero .ph-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- 10. Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .card-bs { padding: 1.5rem; }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--royal); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: var(--r-pill);
}
.card-img .tag.green { background: var(--green); }
.card-img .tag.gold { background: var(--gold); color: var(--royal-ink); }
.card-img .tag.red { background: var(--red); }
.card-img .tag.orange { background: var(--orange); color: #fff; }
.card-link { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--royal-600); }
.card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

.card--ph {
  border: 2px dashed var(--line); background: transparent;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 180px; padding: 1.6rem;
}
.card--ph:hover { transform: none; box-shadow: none; border-color: var(--muted-2); background: var(--off); }
.card--ph b { font-family: var(--font-display); font-size: 1.02rem; }
.card--ph p { font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; }

.cat-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.cat-head .cat-n {
  flex: none; width: 52px; height: 52px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--royal); color: var(--gold-soft); font-family: var(--font-display); font-weight: 800;
}
.cat-head .cat-n svg { width: 26px; height: 26px; }
.cat-head h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0; }
.cat-head .cat-desc { color: var(--muted); font-size: 0.95rem; }

.program-card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.eyebrow-sm { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep); font-family: var(--font-display); }

/* Mission cards */
.mission-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.mission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--royal-050); }
.mission-card .mc-icon {
  width: 58px; height: 58px; border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  background: var(--royal-050); color: var(--royal); margin-bottom: 1.15rem;
}
.mission-card .mc-icon svg { width: 28px; height: 28px; }
.mission-card.green .mc-icon { background: var(--green-050); color: var(--green-deep); }
.mission-card.gold .mc-icon { background: var(--gold-050); color: #A87D00; }
.mission-card.red .mc-icon { background: #FDE9E8; color: var(--red); }
.mission-card.orange .mc-icon { background: #FEF0E4; color: var(--orange); }
.mission-card.sky .mc-icon { background: var(--sky-050); color: var(--sky); }
.mission-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.mission-card p { color: var(--muted); font-size: 0.95rem; }

/* Stat cards */
.stat {
  text-align: center; padding: 2rem 1rem;
}
.stat .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--royal);
}
.stat .num .suffix { color: var(--gold); }
.stat .label { margin-top: 0.6rem; font-weight: 600; color: var(--ink-2); font-size: 0.98rem; letter-spacing: 0.02em; }
.stat-band {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.stat-band .stat { background: #fff; }
.stat-light .stat .num { color: #fff; }
.stat-light .stat .label { color: rgba(255,255,255,0.78); }

/* Event cards */
.event-card { display: flex; flex-direction: column; }
.event-card .ev-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.event-card .ev-meta svg { width: 15px; height: 15px; color: var(--royal-600); }
.event-card h3 { font-size: 1.22rem; margin-block: 0.4rem 0.5rem; }
.event-card p { color: var(--muted); font-size: 0.95rem; }
.event-date {
  width: 58px; flex: none; text-align: center; border-radius: var(--r); overflow: hidden;
  background: var(--royal); color: #fff; border: 1px solid var(--royal);
}
.event-date b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; padding-top: 0.45rem; }
.event-date span { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 0.45rem; background: var(--gold); color: var(--royal-ink); font-weight: 700; }
.event-head { display: flex; gap: 1rem; align-items: flex-start; }

/* Story cards */
.story-card h3 { font-size: 1.28rem; margin-block: 0.55rem 0.5rem; }
.story-card .story-by { font-size: 0.82rem; color: var(--muted-2); font-weight: 600; letter-spacing: 0.04em; }
.story-card .story-by b { color: var(--royal-600); }

/* Person / leadership */
.person-card { text-align: center; }
.person-card .pc-photo { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.person-card .pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.person-card:hover .pc-photo img { transform: scale(1.05); }
.person-card .pc-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(8,12,34,0.75)); }
.person-card .pc-body { padding: 1.1rem 1.2rem 1.4rem; }
.person-card h3 { font-size: 1.15rem; }
.person-card .pc-role { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep); margin-top: 0.2rem; }
.person-card .pc-quote { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }

/* Chapter cards */
.chapter-card { padding: 1.8rem; }
.chapter-card .cc-badge {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--royal); color: var(--gold-soft); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.chapter-card h3 { font-size: 1.22rem; }
.chapter-card ul { margin-top: 0.8rem; }
.chapter-card li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); padding: 0.28rem 0; }
.chapter-card li b { color: var(--ink); }
.chapter-card li svg { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: 3px; }

/* Award cards */
.award-card { display: flex; gap: 1.3rem; padding: 1.6rem; }
.award-card .aw-year {
  flex: none; width: 74px; height: 74px; border-radius: var(--r);
  display: grid; place-items: center;
  background: var(--royal); color: var(--gold-soft);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.award-card .aw-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.award-card .aw-org { font-size: 0.85rem; color: var(--green-deep); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.award-card p { color: var(--muted); font-size: 0.94rem; }

/* Partner cards */
.partner-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; padding: 2rem 1.5rem; text-align: center; }
.partner-card .p-logo { max-height: 64px; max-width: 160px; filter: grayscale(0.3); opacity: 0.85; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.partner-card:hover .p-logo { filter: none; opacity: 1; transform: scale(1.04); }
.partner-card .p-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink-2); }
.partner-card small { color: var(--muted-2); }

/* Document cards */
.doc-card { display: flex; gap: 1.1rem; align-items: center; padding: 1.3rem 1.5rem; }
.doc-card .dc-icon {
  width: 48px; height: 56px; flex: none; border-radius: var(--r-sm);
  background: var(--royal-050); color: var(--royal); display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.doc-card .dc-icon::after { content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: var(--gold); border-bottom-left-radius: 8px; }
.doc-card .dc-icon svg { width: 22px; height: 22px; }
.doc-card h4 { font-size: 1.02rem; }
.doc-card .dc-meta { font-size: 0.84rem; color: var(--muted-2); font-weight: 600; }
.doc-card p { font-size: 0.9rem; color: var(--muted); }
.doc-card .dc-action { margin-left: auto; flex: none; }

/* ---------- 11. Timeline ---------- */
.year-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.year-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  padding: 0.6rem 1.2rem; border-radius: var(--r-pill);
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-2);
  transition: all .25s var(--ease);
}
.year-nav a:hover { border-color: var(--royal); color: var(--royal); transform: translateY(-2px); }
.year-nav a.active { background: var(--royal); border-color: var(--royal); color: #fff; }

.timeline { position: relative; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 119px; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gold), var(--green), var(--royal)); border-radius: 3px; }
.tl-item { position: relative; padding-left: 160px; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  position: absolute; left: 0; top: 0; width: 90px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--royal);
}
.tl-year small { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.tl-dot { position: absolute; left: 113px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 0 0 5px rgba(244,180,0,0.18); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.tl-card .tlc-b { display: grid; grid-template-columns: 2fr 3fr; }
.tl-card .tlc-img { aspect-ratio: 4/3; overflow: hidden; }
.tl-card .tlc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tl-card:hover .tlc-img img { transform: scale(1.05); }
.tl-card .tlc-body { padding: 1.7rem; }
.tl-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.tl-card p { color: var(--muted); font-size: 0.96rem; }
.tl-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.tl-stats span { font-size: 0.78rem; font-weight: 700; background: var(--royal-050); color: var(--royal); padding: 0.3rem 0.8rem; border-radius: var(--r-pill); }

/* ---------- 12. Milestones (about) ---------- */
.milestones { position: relative; }
.milestones::before { content: ""; position: absolute; left: 18px; top: 10px; bottom: 10px; width: 3px; background: var(--line); border-radius: 3px; }
.ms-item { position: relative; padding-left: 58px; padding-bottom: 2.4rem; }
.ms-item::before { content: ""; position: absolute; left: 11px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--royal); }
.ms-item.gold::before { border-color: var(--gold); }
.ms-item h4 { font-family: var(--font-display); font-size: 1.08rem; }
.ms-item .ms-year { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.ms-item p { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* ---------- 13. Gallery ---------- */
.gal-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.4rem; }
.gal-filters button {
  padding: 0.55rem 1.2rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  font-family: var(--font-display); font-weight: 700; font-size: 0.86rem;
  transition: all .25s var(--ease);
}
.gal-filters button:hover { border-color: var(--royal); color: var(--royal); }
.gal-filters button.active { background: var(--royal); border-color: var(--royal); color: #fff; box-shadow: var(--shadow-md); }

.masonry { columns: 3 260px; column-gap: 1.1rem; }
.masonry .m-item { break-inside: avoid; margin-bottom: 1.1rem; position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; display: block; }
.masonry .m-item img { width: 100%; transition: transform 0.6s var(--ease); }
.masonry .m-item:hover img { transform: scale(1.06); }
.masonry .m-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; background: linear-gradient(180deg, transparent 45%, rgba(8,12,34,0.82));
  color: #fff; opacity: 0; transition: opacity 0.35s var(--ease);
}
.masonry .m-item:hover .m-cap { opacity: 1; }
.masonry .m-cap b { font-family: var(--font-display); font-size: 1rem; }
.masonry .m-cap small { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.masonry .m-zoom { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--royal); display: grid; place-items: center; opacity: 0; transform: translateY(-6px); transition: all .3s var(--ease); }
.masonry .m-item:hover .m-zoom { opacity: 1; transform: translateY(0); }
.masonry .m-zoom svg { width: 18px; height: 18px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,34,0.94); display: none; align-items: center; justify-content: center; padding: 3vh 4vw; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 4vh; text-align: center; color: #fff; font-size: 0.95rem; }
.lightbox figcaption small { display: block; color: var(--gold-soft); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-prev { left: 3vw; }
.lightbox .lb-next { right: 3vw; }
.lightbox .lb-close { position: absolute; top: 3vh; right: 3vw; }
.lightbox .lb-count { position: absolute; top: 3vh; left: 3vw; color: rgba(255,255,255,0.7); font-family: var(--font-display); font-weight: 700; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(120deg, var(--royal-deep), var(--royal-600));
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; }
.cta-band::before { width: 560px; height: 560px; background: radial-gradient(circle, rgba(244,180,0,0.28), transparent 65%); top: -220px; right: -120px; }
.cta-band::after { width: 520px; height: 520px; background: radial-gradient(circle, rgba(62,142,78,0.32), transparent 65%); bottom: -240px; left: -140px; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.08; }
.cta-band .cta-kicker { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--gold-soft); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.cta-band .cta-kicker::before, .cta-band .cta-kicker::after { content: ""; width: 30px; height: 3px; background: var(--gold); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin-inline: auto; margin-top: 1rem; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.2rem; }

.cta-strip { background: var(--gold); color: var(--royal-ink); }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; padding-block: 1.5rem; }
.cta-strip h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.cta-strip p { font-weight: 600; color: rgba(20,28,60,0.78); }
.cta-strip .btn { background: var(--royal-ink); color: #fff; }
.cta-strip .btn:hover { background: #000; }

/* ---------- 15. Feature split / about blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split .sp-imgs { position: relative; }
.split .sp-imgs .ph-main { border-radius: var(--r-xl); aspect-ratio: 4/3.4; overflow: hidden; box-shadow: var(--shadow-lg); }
.split .sp-imgs .ph-main img { width: 100%; height: 100%; object-fit: cover; }
.split .sp-imgs .ph-float {
  position: absolute; width: 46%; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden;
  border: 5px solid #fff; box-shadow: var(--shadow-lg);
}
.split .sp-imgs .ph-float.f1 { bottom: -12%; right: -12%; }
.split .sp-imgs .ph-float.f2 { top: -12%; left: -12%; }
.split .sp-badge {
  position: absolute; bottom: -24px; left: -18px; z-index: 3;
  background: var(--royal); color: #fff; border-radius: var(--r-lg);
  padding: 1.1rem 1.5rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.9rem;
}
.split .sp-badge .num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--gold-soft); line-height: 1; }
.split .sp-badge small { font-size: 0.8rem; color: rgba(255,255,255,0.75); line-height: 1.35; }

.split-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.split-list .sl-item { display: flex; gap: 1rem; align-items: flex-start; }
.split-list .sl-item .sl-n {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-050); color: var(--royal); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  border: 1px solid rgba(244,180,0,0.3);
}

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.6rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: 0.7rem; font-weight: 500; }
.checklist li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }

/* ---------- 16. Values ---------- */
.value-card { text-align: center; padding: 2rem 1.6rem; }
.value-card .v-icon { width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: var(--gold-soft); }
.value-card .v-icon svg { width: 30px; height: 30px; }
.value-card h3 { font-size: 1.12rem; }
.value-card p { font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- 17. Quote ---------- */
.quote-block {
  position: relative; padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.6rem, 5vw, 4rem);
  border-left: 5px solid var(--gold);
  background: linear-gradient(100deg, var(--royal-050), #fff 70%);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.quote-block blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.5; color: var(--royal-deep); }
.quote-block .q-author { margin-top: 1.2rem; font-weight: 700; font-size: 0.95rem; }
.quote-block .q-role { font-size: 0.85rem; color: var(--muted); }

/* ---------- 18. Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: clamp(1.6rem, 4vw, 2.6rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; margin-bottom: 0.45rem; color: var(--ink-2); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--off); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--royal); background: #fff; box-shadow: 0 0 0 4px rgba(23,40,92,0.08);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6478' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-banner {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--green-050); border: 1px solid #cfe8d4; border-radius: var(--r);
  padding: 1.2rem 1.4rem; color: var(--green-deep);
}
.form-banner svg { width: 34px; height: 34px; flex: none; color: var(--green); }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  font-family: var(--font-display); font-weight: 600; font-size: 0.84rem;
}
.chip input { accent-color: var(--royal); margin: 0; }
.chip:has(input:checked) { border-color: var(--royal); background: var(--royal-050); color: var(--royal); }

/* ---------- 19. Content pages ---------- */
.prose { max-width: 780px; }
.prose p { color: var(--ink-2); margin-bottom: 1.2rem; }
.prose h2 { font-size: 1.6rem; margin-block: 2.4rem 0.8rem; }
.prose h3 { font-size: 1.25rem; margin-block: 1.8rem 0.6rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; padding-left: 0; }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.prose ol { counter-reset: p; }
.prose ol li { counter-increment: p; }
.prose ol li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; color: var(--royal-600); }
.prose strong { color: var(--ink); }

.block-callout {
  background: var(--royal-050); border-left: 4px solid var(--royal);
  border-radius: 0 var(--r) var(--r) 0; padding: 1.6rem 1.8rem; margin-block: 1.6rem;
}
.block-callout h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--royal); }
.block-callout p { color: var(--ink-2); margin: 0; }
.block-callout.green { background: var(--green-050); border-color: var(--green); }
.block-callout.green h4 { color: var(--green-deep); }
.block-callout.gold { background: var(--gold-050); border-color: var(--gold); }
.block-callout.gold h4 { color: #A87D00; }

.stat-grid-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 1.6rem; }
.stat-grid-mini .mini { background: var(--off); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.1rem; text-align: center; }
.stat-grid-mini .mini b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--royal); }
.stat-grid-mini .mini span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ---------- 20. Tags & breadcrumbs ---------- */
.tag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: var(--royal-050); color: var(--royal-600); }
.tag.green { background: var(--green-050); color: var(--green-deep); }
.tag.gold { background: var(--gold-050); color: #A87D00; }
.tag.red { background: #FDE9E8; color: var(--red); }

/* ---------- 21. Info table ---------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.info-table th { text-align: left; font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); padding: 0.8rem 1rem; border-bottom: 2px solid var(--royal); }
.info-table td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.info-table td:first-child { font-weight: 600; white-space: nowrap; }
.info-table tr:hover td { background: var(--off); }

/* ---------- 22. Page transition ---------- */
.transition-mask { position: fixed; inset: 0; background: var(--royal-ink); z-index: 300; transform: translateY(102%); pointer-events: none; }
.transition-mask.go { animation: pageLeave 0.4s var(--ease) forwards; }
@keyframes pageLeave { from { transform: translateY(102%); } to { transform: translateY(0); } }

/* ---------- 23. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-fade { opacity: 0; transition: opacity 0.9s var(--ease); }
.reveal-fade.in { opacity: 1; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-scroll .mouse::after, .hero-title .line { animation: none !important; }
}

/* ---------- 24. Related/sidebar ---------- */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.side-card h4 { font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.side-list a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-weight: 600; font-size: 0.95rem; transition: color .2s, transform .2s var(--ease); }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--royal); transform: translateX(3px); }
.side-list a .tag { flex: none; }

/* ---------- 25. Small utility classes ---------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; } .mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; }
.radius-xl { border-radius: var(--r-xl); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.breadcrumb-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.86rem; font-weight: 600; color: var(--muted-2); }
.breadcrumb-inline a { color: var(--royal-600); }
.breadcrumb-inline .sep { opacity: 0.6; }

/* ---------- 26. Footer ---------- */
.site-footer { background: var(--royal-ink); color: rgba(255,255,255,0.72); }
.footer-main { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr; gap: 2.6rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem; }
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-brand .f-motto { font-family: var(--font-display); font-weight: 700; color: var(--gold-soft); letter-spacing: 0.08em; margin-top: 1.4rem; font-size: 0.9rem; }
.footer-col h5 { color: #fff; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.3rem; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; font-size: 0.95rem; align-items: flex-start; }
.footer-contact svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.8); }
.socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.22); display: grid; place-items: center; color: #fff; transition: all .25s var(--ease); }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--royal-ink); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.4rem; font-size: 0.85rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-bottom a { color: var(--gold-soft); }
.footer-bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- 27. Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--royal); color: #fff; border: 0; box-shadow: var(--shadow-md);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--royal-700); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 28. Responsive ---------- */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cols-8-4, .cols-4-8 { grid-template-columns: 1fr; }
  .aside-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split .split-imgs { order: -1; }
  .tl-card .tlc-b { grid-template-columns: 1fr; }
  .timeline::before { left: 9px; }
  .tl-item { padding-left: 44px; }
  .tl-year { position: static; margin-bottom: 0.4rem; width: auto; font-size: 1.2rem; }
  .tl-dot { left: 1px; top: -4px; }
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .grid-2, .grid-3, .grid-4, .grid-5, .stat-band { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn, .ph-actions .btn { width: 100%; }
  .hero-inner { padding-block: 5rem 3.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid-mini { grid-template-columns: 1fr 1fr; }
  .aside-grid { grid-template-columns: 1fr; }
  .award-card { flex-direction: column; align-items: flex-start; }
  .doc-card { flex-direction: column; align-items: flex-start; }
  .doc-card .dc-action { margin-left: 0; width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .topbar .motto { display: none; }
}
@media (max-width: 460px) {
  .footer-main { grid-template-columns: 1fr; }
  .split .sp-imgs .ph-float.f1 { right: -6%; }
  .split .sp-imgs .ph-float.f2 { left: -6%; }
  .stat-grid-mini { grid-template-columns: 1fr; }
}