/* LATVSI public website */
:root {
  --ocean: #0A2340;
  --ocean-2: #0E2C4F;
  --navy: #0B2A4A;
  --ink: #0E1B2E;
  --ink-2: #3B4A5E;
  --muted: #64748B;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --line: #DCE3EC;
  --gold: #E8A93A;
  --gold-deep: #B57A12;
  --sky: #7DB5EA;
  --red: #C8102E;
  --female: #E8A93A;
  --male: #0B2A4A;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--ink); padding: 10px 14px; font-weight: 700; z-index: 100; border-radius: 6px; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); color: inherit; margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; font-stretch: 88%; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 750; font-stretch: 92%; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 100%; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--body); padding: 14px 20px; border-radius: 8px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #F4B740; color: var(--ink); }
.btn--line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--ocean); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--ocean); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-head__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { display: block; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 19px; letter-spacing: .02em; line-height: 1; }
.brand small { display: block; font-size: 12px; color: #B8C7D9; margin-top: 3px; line-height: 1.2; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 6px; padding: 8px 12px; font: 600 15px var(--body); }


/* Hero */
.hero { background: radial-gradient(1200px 700px at 78% 40%, #123A63 0%, var(--ocean) 62%); color: #fff; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 48px); align-items: center; min-height: min(calc(100vh - 72px), 820px); padding-top: 40px; padding-bottom: 40px; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lede { color: #C9D6E5; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero__map { position: relative; height: min(76vh, 720px); min-height: 420px; }
.hero__stage { position: absolute; left: 0; top: 4px; display: flex; gap: 6px; z-index: 5; }
.hero__stage button { background: rgba(255,255,255,.08); color: #DCE6F2; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--body); cursor: pointer; }
.hero__stage button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.hero__caption { position: absolute; left: 0; bottom: 0; font-size: 13px; color: #9FB3C9; max-width: 44ch; }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.16); }
.figures > div { padding: 18px 16px 4px 0; }
.figures > div + div { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.16); }
.figures strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: clamp(1.8rem, 2.9vw, 2.6rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 8px; font-size: 14px; color: #B8C7D9; line-height: 1.35; }
.figures .is-gold strong { color: var(--gold); }
.figures-note { font-size: 13px; color: #8EA4BC; margin-top: 12px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--white { background: #fff; }
.section--ink { background: var(--navy); color: #fff; }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.section__head p { color: var(--ink-2); margin: 0; }
.section--ink .section__head p { color: #C9D6E5; }

/* County ranking */
.ranking { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 8), auto); grid-auto-flow: column; gap: 0 48px; }
.ranking li { display: grid; grid-template-columns: 28px minmax(0, 150px) minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ranking .rk { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.ranking .nm { font-weight: 600; }
.ranking .bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #EEF2F7; }
.ranking .bar i { display: block; height: 100%; }
.ranking .bar .f { background: var(--female); }
.ranking .bar .m { background: var(--male); }
.ranking .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.key { display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); margin-top: 20px; }
.key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* People pictogram */
.people { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.people__grid { display: flex; flex-wrap: wrap; gap: 3px; }
.people__grid svg { width: 18px; height: 30px; }
.people__grid .f { fill: var(--female); }
.people__grid .m { fill: #D6E7F8; }
.people__grid .u { fill: #4D6A8A; }
.people__grid.is-ready svg { animation: person-in .45s both; }
@keyframes person-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .people__grid.is-ready svg { animation: none; } }
.people__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.people__stats strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 2.3rem; line-height: 1; }
.people__stats span { color: #C9D6E5; font-size: 15px; }
.people__stats .f strong { color: var(--female); }
.people__stats .m strong { color: #D6E7F8; }
.people__unit { font-size: 14px; color: #9FB3C9; margin-top: 14px; }

/* Journey (a real sequence) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border-top: 3px solid var(--navy); }
.journey li { padding: 20px 20px 0 0; counter-increment: step; }
.journey li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 15px var(--display); margin: -38px 0 16px; border: 3px solid #fff; }
.journey p { font-size: 15px; color: var(--ink-2); }

/* Help band */
.helpband { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.helpband__call { background: var(--ocean); color: #fff; border-radius: 14px; padding: 28px; }
.helpband__call a.num { display: block; font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--gold); text-decoration: none; line-height: 1; margin: 6px 0 10px; }
.helpband__call p { color: #C9D6E5; margin: 0; font-size: 15px; }
.signs { columns: 2; column-gap: 32px; padding-left: 20px; margin: 0; }
.signs li { break-inside: avoid; margin-bottom: 10px; color: var(--ink-2); }

/* Content pages */
.page-head { background: var(--ocean); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.page-head .lede { color: #C9D6E5; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose li { margin-bottom: .4em; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.panel h3 { margin-bottom: .4em; }
.panel p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* Data page */
.data-map { height: 600px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.data-map .lmap__legend { right: 0; top: 0; }
.metric-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; margin-bottom: 16px; }
.metric-switch button { border: 0; background: none; padding: 9px 14px; font: 600 14px var(--body); color: var(--ink-2); cursor: pointer; }
.metric-switch button + button { border-left: 1px solid var(--line); }
.metric-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
table.data th, table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { font-size: 13px; color: var(--muted); font-weight: 600; background: #F8FAFC; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.note { font-size: 14px; color: var(--muted); }
.chart-box { position: relative; height: 300px; }

/* Forms */
.form { display: grid; gap: 22px; max-width: 720px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.field .hint { display: block; font-size: 14px; color: var(--muted); margin: -2px 0 8px; font-weight: 400; }
.field input[type=text], .field input[type=date], .field input[type=tel], .field select, .field textarea { width: 100%; font: 16px var(--body); padding: 12px 14px; border: 1.5px solid #B9C5D4; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(232,169,58,.45); outline-offset: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid #D3DCE7; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; }
.choice:hover { border-color: var(--navy); }
.choice input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: #F2F6FB; }
.err { color: #A50D26; font-size: 14px; font-weight: 600; margin-top: 6px; }
.alert-box { border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.alert-box--danger { background: #FDECEE; border: 1px solid #F3B7C0; color: #6E0A1B; }
.alert-box--info { background: #EEF4FB; border: 1px solid #CADBEE; color: var(--navy); }
.alert-box strong { display: block; margin-bottom: 4px; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.site-foot { background: var(--ink); color: #B8C7D9; padding: 48px 0 80px; font-size: 15px; }
.site-foot__in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-foot a { color: #DCE6F2; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot h3 { color: #fff; font-size: 15px; font-family: var(--body); font-weight: 700; margin-bottom: 12px; }
.site-foot__base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__map { height: 70vw; min-height: 360px; max-height: 560px; order: 2; }
  .hero h1 { max-width: 16ch; }
  .section__head, .people, .helpband, .cols-2 { grid-template-columns: 1fr; }
  .ranking { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .journey { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--navy); padding-left: 0; }
  .journey li { padding: 0 0 20px 32px; position: relative; }
  .journey li::before { position: absolute; left: -19px; top: -4px; margin: 0; }
  .cols-3 { grid-template-columns: 1fr; }
  .site-foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .ranking li { grid-template-columns: 22px minmax(0, 110px) minmax(0, 1fr) 48px; gap: 8px; }
  .signs { columns: 1; }
  .site-foot__in { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hero__caption { position: static; margin-top: 8px; }
  .data-map { height: 440px; }
}
@media (prefers-reduced-motion: no-preference) { .js .people__grid:not(.is-ready) svg { opacity: 0; } }

/* ---------- v2.1: navigation with menus ---------- */
.site-nav { align-items: center; }
.menu { position: relative; }
.menu__btn, .site-nav__link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #DCE6F2; font: 600 15px var(--body); padding: 10px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.menu__btn svg { width: 12px; height: 12px; transition: transform .15s; }
.menu__btn:hover, .site-nav__link:hover, .menu.is-open .menu__btn, .menu__btn.is-current, .site-nav__link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.menu.is-open .menu__btn svg { transform: rotate(180deg); }
.menu__panel { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 16px 40px rgba(3,15,30,.28); z-index: 50; }
.menu.is-open .menu__panel { display: grid; gap: 2px; }
.menu__panel a { display: block; padding: 10px 12px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.menu__panel a:hover, .menu__panel a[aria-current="page"] { background: #F1F4F8; color: var(--ink); }
.menu__panel b { display: block; font-weight: 700; font-size: 15px; }
.menu__panel span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.site-nav__ctas { display: flex; gap: 8px; margin-left: 10px; }
.site-head .site-nav__ctas .btn { padding: 10px 14px; font-size: 14.5px; }
.btn--signin svg { width: 16px; height: 16px; }
.site-head .btn--gold { display: inline-flex; }
.social { display: flex; gap: 16px; }
.site-foot__in { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .site-head .site-nav__ctas .btn--signin { padding: 10px; }
  .btn--signin { font-size: 0 !important; gap: 0; }
  .btn--signin svg { width: 18px; height: 18px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--ocean); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-bottom: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .menu__btn { display: none; }
  .menu__panel { display: grid !important; position: static; background: none; box-shadow: none; padding: 0; min-width: 0; gap: 0; }
  .menu__panel a { color: #fff; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .menu__panel a:hover, .menu__panel a[aria-current="page"] { background: none; color: var(--gold); }
  .menu__panel span { color: #9FB3C9; }
  .site-nav__link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .site-nav__ctas { margin: 16px 0 0; flex-direction: column; }
  .btn--signin { font-size: 15px !important; gap: 8px; }
  .site-head .site-nav .btn--gold { display: inline-flex; }
  .site-foot__in { grid-template-columns: 1fr 1fr; }
}

/* ---------- v2.1: content listings ---------- */
.eyebrow-link { font-weight: 600; text-decoration: none; }
.section__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__bar h2 { margin: 0; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.post-card { display: grid; gap: 10px; align-content: start; color: var(--ink); text-decoration: none; min-width: 0; }
.post-card:hover { color: var(--ink); }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-card__img { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #12365C, #0A2340); max-width: 100%; position: relative; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__img .ph-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.post-card__img .ph-mark svg { width: 56px; height: 56px; opacity: .55; }
.post-card h3 { font-size: 1.25rem; margin: 0; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #E9EEF5; color: var(--navy); }
.chip--ongoing { background: #FCF0D6; color: #8A5A00; }
.chip--completed { background: #E2F3EA; color: #1F7A4D; }
.chip--planned { background: #E5EFFA; color: #1F5690; }
.post-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: center; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.post-lead .post-card__img { aspect-ratio: 16 / 9; }
.post-lead h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters-row a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.filters-row a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty-state { padding: 48px 24px; border: 1px dashed #C3CEDB; border-radius: 12px; text-align: center; color: var(--ink-2); background: #fff; }
.empty-state b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }

/* Events: a calendar date block */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.event { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event:first-child { border-top: 1px solid var(--line); }
.datebox { width: 84px; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--line); }
.datebox span { display: block; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 0; letter-spacing: .04em; }
.datebox b { display: block; font: 800 34px/1 var(--display); font-stretch: 110%; padding: 8px 0 2px; color: var(--ink); }
.datebox small { display: block; font-size: 12px; color: var(--muted); padding-bottom: 8px; }
.event h3 { margin: 0 0 6px; }
.event h3 a { color: var(--ink); text-decoration: none; }
.event h3 a:hover { text-decoration: underline; }
.event p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.section--ink .event, .section--ink .event:first-child { border-color: rgba(255,255,255,.14); }
.section--ink .event h3 a { color: #fff; }
.section--ink .event p, .section--ink .meta { color: #B8C7D9; }
.section--ink .datebox { border-color: transparent; }

/* Article */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article__body { font-size: 18px; line-height: 1.7; max-width: 68ch; }
.article__body h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.article__body h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.article__body img { border-radius: 8px; }
.article__body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--ink-2); font-size: 1.1em; }
.article__cover { aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; margin: 0 0 40px; max-width: 100%; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article__aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.draft-banner { background: #FDF1D8; color: #6B4500; padding: 12px 0; font-weight: 600; font-size: 15px; }

/* Team */
.team-group + .team-group { margin-top: 56px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.person { min-width: 0; }
.person__photo { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--navy); display: grid; place-items: center; margin-bottom: 14px; max-width: 100%; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__photo span { font: 800 2.6rem/1 var(--display); font-stretch: 115%; color: var(--gold); }
.person h3 { margin: 0; font-size: 1.15rem; }
.person .pos { color: var(--gold-deep); font-weight: 600; font-size: 15px; margin: 2px 0 8px; }
.person p { font-size: 15px; color: var(--ink-2); margin: 0 0 8px; }
.person a { font-size: 14.5px; }

/* Cases page */
.stage-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 3px solid var(--navy); }
.stage-row div { padding: 16px 16px 0 0; }
.stage-row b { display: block; font: 800 2.2rem/1 var(--display); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.stage-row span { font-size: 14.5px; color: var(--ink-2); }
.summaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.summary p { margin: 0; font-size: 15.5px; color: var(--ink-2); white-space: pre-line; }

@media (max-width: 1000px) {
  .posts, .summaries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-lead, .article { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .stage-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
}
@media (max-width: 640px) {
  .posts, .summaries { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .event { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .event > .btn { grid-column: 2; justify-self: start; }
  .datebox { width: 64px; }
  .datebox b { font-size: 26px; }
  .article__body { font-size: 17px; }
  .stage-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) { #newsEvents { grid-template-columns: 1fr !important; gap: 48px !important; } }
@media (max-width: 640px) { #newsEvents .posts { grid-template-columns: 1fr !important; } }

/* ---------- v2.2: Team page ---------- */
.tm-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tm-eyebrow span { width: 34px; height: 2px; background: var(--gold); flex: none; }
.tm-eyebrow--sm { font-size: 12px; margin-bottom: 4px; }
.tm-h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 22px; }
.tm-h2::after { content: ""; display: block; width: 38px; height: 3px; background: var(--gold); border-radius: 2px; margin-top: 10px; }
.tm-rule { display: block; width: 38px; height: 3px; background: var(--gold); border-radius: 2px; margin: 8px 0 16px; }
.tm-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #FBEBC9; color: var(--gold-deep); flex: none; }
.tm-ico svg { width: 24px; height: 24px; }
.tm-ico--lg { width: 58px; height: 58px; }
.tm-ico--lg svg { width: 28px; height: 28px; }

/* Banner */
.tm-hero { position: relative; overflow: hidden; background: var(--ocean); color: #fff; min-height: 340px; display: flex; align-items: center; }
.tm-hero__photo { position: absolute; top: 0; bottom: 0; right: 15%; width: min(46%, 760px); background-size: cover; background-position: center top; }
.tm-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ocean) 0%, rgba(10,35,64,.5) 28%, rgba(10,35,64,0) 55%, rgba(10,35,64,.1) 80%, var(--ocean) 100%); }
.tm-hero__map { position: absolute; right: 5%; top: 50%; transform: translateY(-46%); height: 104%; width: auto; color: #fff; opacity: .45; pointer-events: none; }
.tm-hero:not(.has-photo) .tm-hero__map { opacity: .28; right: max(10vw, 24px); }
.tm-hero__tagline { position: absolute; right: max(2vw, 16px); top: 30%; margin: 0; max-width: 220px; font: 600 clamp(1.4rem, 2.3vw, 2rem)/1.05 "Caveat", "Segoe Script", cursive; color: #fff; transform: rotate(-12deg); text-align: left; z-index: 1; }
.tm-hero__tagline::after { content: ""; display: block; width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin: 8px 0 0 auto; transform: rotate(-4deg); }
.tm-hero__in { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 48px; width: 100%; }
.tm-hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 14px; }
.tm-hero .lede { color: #DCE6F2; max-width: 40ch; margin: 0; }

.tm-section { padding: clamp(40px, 5vw, 64px) 0; }
.tm-section--white { background: #fff; }

/* Spotlight */
.tm-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tm-leader { display: grid; grid-template-columns: minmax(0, 225px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tm-leader__photo { aspect-ratio: 9 / 8; border-radius: 10px; overflow: hidden; background: var(--navy); display: grid; place-items: center; max-width: 100%; box-shadow: 0 6px 18px rgba(10,35,64,.12); }
.tm-leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.tm-leader__photo span { font: 800 3rem/1 var(--display); color: var(--gold); }
.tm-role { margin: 4px 0 6px; color: var(--gold-deep); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tm-leader h3 { font-size: 1.5rem; margin: 0 0 10px; }
.tm-leader__text > p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 14px; }
.tm-quote { margin: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.tm-quote svg { width: 24px; height: 18px; color: var(--gold); margin-top: 4px; }
.tm-quote p { margin: 0; font-style: italic; color: var(--ink-2); font-size: 15px; }
.tm-links { display: flex; gap: 16px; font-size: 14.5px; margin: 14px 0 0; }
.tm-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: #F2F5F9; border-radius: 12px; overflow: hidden; }
.tm-panel__text { padding: 28px; }
.tm-panel__text h3 { font-size: 1.35rem; margin: 0; }
.tm-panel__text p { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.tm-panel .btn--navy { padding: 11px 16px; font-size: 14.5px; }
.tm-values { list-style: none; margin: 0; padding: 18px 22px; display: grid; gap: 14px; align-content: center; border-left: 1px solid #DDE4EE; }
.tm-values li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.tm-panel--wide { grid-column: 1 / -1; }

/* Meet the team */
.tm-meet-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; margin-bottom: 22px; }
.tm-meet-head .tm-h2 { margin: 0; }
.tm-meet-head p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 64ch; }
.tm-all { padding: 10px 14px; font-size: 14.5px; gap: 8px; }
.tm-all svg { width: 16px; height: 16px; }
.tm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tm-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 4px rgba(10,35,64,.06), 0 8px 20px rgba(10,35,64,.07); min-width: 0; display: flex; flex-direction: column; }
.tm-card__photo { aspect-ratio: 5 / 4; background: var(--navy); display: grid; place-items: center; overflow: hidden; }
.tm-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.tm-card__photo span { font: 800 2rem/1 var(--display); font-stretch: 112%; color: var(--gold); }
.tm-card__body { padding: 12px 14px 14px; }
.tm-card h3 { font-size: 1rem; margin: 0 0 2px; }
.tm-card__body > p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.tm-card details { margin-top: 8px; font-size: 13.5px; }
.tm-card summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.tm-card details p { margin: 6px 0; color: var(--ink-2); }

/* Impact strip */
.tm-impact { position: relative; overflow: hidden; background: #EEF2F7; padding: 30px 0; }
.tm-impact__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.tm-impact .tm-h2 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.05; }
.tm-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-stats li { display: flex; align-items: center; gap: 14px; padding: 4px 22px; min-width: 0; }
.tm-stats li + li { border-left: 2px solid var(--gold); }
.tm-stats strong { display: block; font: 800 1.7rem/1 var(--display); font-stretch: 104%; color: var(--ink); }
.tm-stats li > div > span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.3; margin-top: 4px; }
.tm-impact__map { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); height: 170%; color: var(--gold); opacity: .25; pointer-events: none; }

/* Contact band */
.tm-contact { background: var(--ocean); color: #fff; padding: 26px 0; }
.tm-contact__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 24px 40px; align-items: center; }
.tm-contact h2 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0; }
.tm-contact__text { margin: 0; color: #C9D6E5; font-size: 15px; max-width: 46ch; }
.tm-contact__mail { display: flex; align-items: center; gap: 14px; }
.tm-contact__mail span:not(.tm-ring) { display: block; font-size: 13.5px; color: #C9D6E5; }
.tm-contact__mail a { color: #fff; font-weight: 600; }
.tm-ring { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; }
.tm-ring svg { width: 24px; height: 24px; }
.tm-contact .btn--gold { padding: 13px 26px; }

@media (max-width: 1400px) {
  .tm-hero__photo { right: 10%; }
  .tm-hero__tagline { max-width: 170px; font-size: 1.4rem; }
}
@media (max-width: 1200px) {
  .tm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tm-spot { grid-template-columns: 1fr; }
  .tm-contact__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .tm-hero { min-height: 0; }
  .tm-hero__photo { width: 100%; opacity: .45; }
  .tm-hero__photo::after { background: linear-gradient(90deg, var(--ocean) 10%, rgba(10,35,64,.6)); }
  .tm-hero__tagline { display: none; }
  .tm-meet-head { grid-template-columns: 1fr; }
  .tm-meet-head .tm-all { justify-self: start; }
  .tm-impact__in { grid-template-columns: 1fr; gap: 24px; }
  .tm-impact__map { display: none; }
  .tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .tm-stats li:nth-child(3) { border-left: 0; }
  .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tm-leader { grid-template-columns: 1fr; }
  .tm-leader__photo { max-width: 260px; }
  .tm-panel { grid-template-columns: 1fr; }
  .tm-values { border-left: 0; border-top: 1px solid #DDE4EE; padding: 20px 28px 26px; }
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tm-stats { grid-template-columns: 1fr; }
  .tm-stats li { border-left: 0 !important; padding: 0; }
  .tm-contact__in { grid-template-columns: 1fr; }
  .tm-hero__map { opacity: .2; right: -60px; }
}

/* ---------- v2.4: motion polish ---------- */
.site-head { transition: box-shadow .3s, background-color .3s; }
.site-head.is-scrolled { box-shadow: 0 10px 30px -12px rgba(3,15,30,.55); }
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out, ease), box-shadow .2s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-1px); }
.btn.is-pressed, .btn:active { transform: translateY(0) scale(.98); }
.btn--gold { box-shadow: 0 6px 18px -8px rgba(232,169,58,.7); }
.btn--gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .btn--gold:hover::after { transform: translateX(120%); transition: transform .7s var(--ease-out, ease); } }
.post-card__img img { transition: transform .8s var(--ease-out, ease), filter .4s; }
.post-card:hover .post-card__img img, .post-lead:hover .post-card__img img { transform: scale(1.045); }
.site-nav__link, .menu__btn { position: relative; }
.site-nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out, ease); }
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-foot a { transition: color .2s; }
.events li, .ranking li { transition: background-color .25s; }
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .menu__panel { display: grid; gap: 2px; opacity: 0; visibility: hidden; translate: 0 -8px; scale: .98; transform-origin: top left; transition: opacity .2s var(--ease-out, ease), translate .25s var(--ease-out, ease), scale .25s var(--ease-out, ease), visibility 0s .25s; }
  .menu.is-open .menu__panel { opacity: 1; visibility: visible; translate: none; scale: none; transition-delay: 0s; }
  .menu__panel a { transition: background-color .15s, translate .2s; }
  .menu__panel a:hover { translate: 3px 0; }
}
@media (max-width: 960px) { .site-nav__link::after { display: none; } .site-nav__link[aria-current="page"] { background: none; color: var(--gold); } }
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .site-nav.is-open { animation: nav-drop .32s var(--ease-out, ease) both; }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- v2.4: home "In pictures" strip ---------- */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
.strip li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.strip li:nth-child(6) { grid-column: span 2; }
.strip a { display: block; height: 100%; border-radius: 12px; overflow: hidden; background: #E3E9F1; position: relative; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out, ease); }
.strip a:hover img { transform: scale(1.06); }
.strip a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,18,36,.55)); opacity: 0; transition: opacity .35s; }
.strip a:hover::after { opacity: 1; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; } .strip li:nth-child(n+7) { display: none; } }

/* ---------- v2.4: gallery page ---------- */
.gal-head { overflow: hidden; position: relative; }
.gal-head__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; }
.gal-head__count { display: flex; gap: 22px; margin: 6px 0 0; color: #C9D6E5; font-size: 15px; }
.gal-head__count b { font: 800 1.9rem/1 var(--display); color: #fff; margin-right: 4px; }
.gal-collage { position: relative; height: 300px; }
.gal-collage figure { position: absolute; margin: 0; width: 58%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 24px 50px -18px rgba(0,0,0,.6); background: #12365C; }
.gal-collage figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-collage figure:nth-child(1) { left: 0; top: 26px; rotate: -7deg; z-index: 1; }
.gal-collage figure:nth-child(2) { right: 0; top: 0; rotate: 6deg; z-index: 2; }
.gal-collage figure:nth-child(3) { left: 22%; bottom: 0; rotate: -1.5deg; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .gal-collage figure { animation: collage-in .9s var(--ease-spring, ease) both, float 7s ease-in-out infinite; animation-delay: calc(var(--i) * 140ms + .15s), calc(var(--i) * -2.2s); }
}
@keyframes collage-in { from { opacity: 0; translate: 0 40px; scale: .85; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.gal { padding-top: 40px; }
.gal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 28px; position: sticky; top: 72px; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0; }
.gseg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: #EDF1F6; }
.gseg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font: 700 15px var(--body); color: var(--ink-2); cursor: pointer; transition: color .25s; }
.gseg button span { font-weight: 600; font-size: 12.5px; opacity: .7; margin-left: 4px; }
.gseg button[aria-selected="true"] { color: #fff; }
.gseg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--navy); box-shadow: 0 6px 16px -6px rgba(11,42,74,.6); }
.gseg__thumb.is-ready { transition: transform .45s var(--ease-spring, ease), width .45s var(--ease-out, ease); }
html:not(.js) .gseg__thumb { display: none; }
html:not(.js) .gseg button[aria-selected="true"] { background: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 600 14px var(--body); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.chip-btn:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.chip-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gal-panel:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { .gal-panel.is-entering { animation: panel-in .5s var(--ease-out, ease) both; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.gal-none { text-align: center; color: var(--muted); padding: 40px 0; margin: 0 auto; }

/* Justified rows: each photo keeps its shape, rows fill the width, order reads left to right */
.jgrid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; --h: 250px; }
.jgrid__item { flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--h)); max-width: calc(var(--r) * var(--h) * 1.9); position: relative; }
.jgrid__item[hidden] { display: none; }
.jgrid__fill { flex: 10 1 0; height: 0; }
.gph { display: block; position: relative; aspect-ratio: var(--r); border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #E6ECF3, #D7E0EB); isolation: isolate; }
.gph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out, ease), opacity .6s, filter .6s; }
.js .gph img:not(.is-loaded) { opacity: 0; filter: blur(8px); transform: scale(1.04); }
.gph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4,16,32,.78)); opacity: 0; transition: opacity .4s; z-index: 1; }
.gph__cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3; translate: 0 12px; opacity: 0; transition: translate .45s var(--ease-out, ease), opacity .35s; }
.gph__cap small { display: block; color: var(--gold); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.gph__zoom { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--navy); scale: .6; opacity: 0; transition: scale .4s var(--ease-spring, ease), opacity .3s; }
.gph__zoom svg { width: 20px; height: 20px; }
.gph:hover img, .gph:focus-visible img { transform: scale(1.06); }
.gph:hover::after, .gph:focus-visible::after { opacity: 1; }
.gph:hover .gph__cap, .gph:focus-visible .gph__cap { translate: none; opacity: 1; }
.gph:hover .gph__zoom, .gph:focus-visible .gph__zoom { scale: 1; opacity: 1; }
@media (hover: none) { .gph::after { opacity: .85; } .gph__cap { translate: none; opacity: 1; font-size: 13px; } }
@media (max-width: 760px) { .jgrid { --h: 150px; gap: 6px; } .gph { border-radius: 6px; } }

/* Video */
.vfeature { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 48px; }
.vfeature[hidden] { display: none; }
.vfeature h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.vplayer { position: relative; aspect-ratio: var(--ar, 16 / 9); border-radius: 14px; overflow: hidden; background: #071A30; box-shadow: 0 30px 60px -28px rgba(5,20,40,.7); max-height: 78vh; margin: 0 auto; width: 100%; }
.vplayer img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out, ease), opacity .6s; }
.js .vplayer img:not(.is-loaded), .js .vcard__img img:not(.is-loaded) { opacity: 0; }
.vplayer:hover img { transform: scale(1.03); }
.vplayer iframe, .vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(0,0,0,.55); transition: scale .35s var(--ease-spring, ease), background .2s; }
.vplay svg { width: 28px; height: 28px; margin-left: 3px; }
.vplay--lg { width: 88px; height: 88px; }
.vplay--lg svg { width: 38px; height: 38px; }
@media (prefers-reduced-motion: no-preference) {
  .vplay--lg::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(232,169,58,.8); animation: pulse 2.4s var(--ease-out, ease) infinite; }
}
@keyframes pulse { from { scale: .85; opacity: 1; } to { scale: 1.45; opacity: 0; } }
.vplayer:hover .vplay, .vcard__btn:hover .vplay, .vcard__btn:focus-visible .vplay { scale: 1.1; background: #F4B740; }
.yt-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.yt-link svg { width: 14px; height: 14px; transition: transform .25s; }
.yt-link:hover svg { transform: translate(2px, -2px); }
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; align-items: start; }
.vcard[hidden] { display: none; }
.vcard h3 { font-size: 1.05rem; margin: 12px 0 2px; }
.vcard .meta { font-size: 13px; }
.vcard__btn { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 12px; }
.vcard__img { display: block; position: relative; aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden; background: #0B2A4A; }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out, ease), opacity .5s; }
.vcard__btn:hover .vcard__img img { transform: scale(1.06); }
.vcard--short .vcard__img { max-width: 240px; }
@media (max-width: 900px) { .gal-head__in, .vfeature { grid-template-columns: 1fr; } .gal-collage { height: 220px; max-width: 380px; } .gal-bar { top: 72px; } }

/* Lightbox (photo and video) */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4,12,24,.94); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(4,12,24,.5); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  .lb[open] { animation: lb-in .3s var(--ease-out, ease); }
  .lb[open] .lb__bar { animation: lb-bar .5s var(--ease-out, ease) .1s both; }
  .lb[open] .lb__btn { animation: lb-btn .45s var(--ease-out, ease) .15s both; }
}
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-bar { from { opacity: 0; transform: translateY(14px); } }
@keyframes lb-btn { from { opacity: 0; scale: .8; } }
.lb__stage { position: absolute; inset: 0 0 96px; display: grid; place-items: center; padding: 64px 84px 0; touch-action: pan-y; }
.lb__fig { margin: 0; width: 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb__img { display: block; width: auto; height: auto; max-width: min(100%, calc(100vw - 168px)); max-height: calc(100vh - 176px); max-height: calc(100dvh - 176px); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); user-select: none; -webkit-user-drag: none; }
.lb__bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(16px, 5vw, 84px); }
.lb__txt { display: grid; gap: 2px; min-width: 0; }
.lb__title { font: 700 1.1rem var(--display); }
.lb__caption { color: #C9D6E5; font-size: 15px; max-width: 80ch; }
.lb__meta { color: var(--gold); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.lb__title:empty, .lb__caption:empty, .lb__meta:empty { display: none; }
.lb__count { font: 600 14px var(--body); color: #9FB3C9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, scale .25s var(--ease-spring, ease); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__btn:hover { background: rgba(255,255,255,.18); scale: 1.08; }
.lb__close { top: 16px; right: 16px; }
.lb__prev, .lb__next { top: calc(50% - 72px); }
.lb__prev { left: 18px; }
.lb__next { right: 18px; }
.lb.is-single .lb__prev, .lb.is-single .lb__next, .lb.is-single .lb__count { display: none; }
.lb--video .lb__stage { padding: 64px clamp(16px, 5vw, 84px) 0; }
.vbox { position: relative; width: min(100%, calc((100vh - 200px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.vbox--short { width: min(100%, calc((100vh - 200px) * 9 / 16)); aspect-ratio: 9 / 16; }
html.lb-open { overflow: hidden; }
@media (max-width: 700px) {
  .lb__img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 190px); }
  .lb__stage { padding: 56px 8px 0; inset: 0 0 110px; }
  .lb__prev, .lb__next { top: auto; bottom: 120px; width: 42px; height: 42px; }
  .lb__bar { min-height: 110px; align-items: flex-start; }
}
::view-transition-group(lb-photo) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
