/* ==========================================================================
   BlackStar Power Limited — site styles
   Palette: black / gold / white, Ghana flag colours as a thin accent only.
   ========================================================================== */

:root {
  --black: #0A0A0B;
  --ink: #141518;
  --charcoal: #1E2026;
  --line-dark: #2A2C33;
  --gold: #D4A23A;
  --gold-bright: #E9BC55;
  --gold-text: #8A6516;      /* gold that passes contrast on white */
  --white: #FFFFFF;
  --paper: #F7F5F0;
  --stone: #ECE8DF;
  --line: #DEDAD1;
  --text: #17191D;
  --muted: #4A4D55;
  --muted-light: #B9B5AB;
  --red: #CE1126;
  --flag-gold: #FCD116;
  --green: #006B3F;
  --ok: #1E6B4F;

  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --radius: 10px;
  --max: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); }
a:hover { color: #5E440E; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--black); padding: 10px 16px; z-index: 100; border-radius: 6px; font-weight: 700; }
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 62px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 12px 14px; border-radius: 6px;
  color: #CFCAC0; text-decoration: none; font-size: 15px; font-weight: 500;
}
.main-nav a:hover { color: var(--white); background: var(--charcoal); }
.main-nav a[aria-current="page"] { color: var(--gold); background: var(--charcoal); }
.main-nav .nav-cta a { background: var(--gold); color: var(--black); font-weight: 700; margin-left: 10px; padding: 11px 18px; }
.main-nav .nav-cta a:hover, .main-nav .nav-cta a[aria-current="page"] { background: var(--gold-bright); color: var(--black); }
.flag-rule { display: flex; height: 3px; }
.flag-rule span { flex: 1; }
.flag-rule span:nth-child(1) { background: var(--red); }
.flag-rule span:nth-child(2) { background: var(--flag-gold); }
.flag-rule span:nth-child(3) { background: var(--green); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--white);
  border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 44px;
}

/* ---------- Sub-navigation (section tabs) ---------- */
.subnav { position: sticky; top: calc(var(--header-h) + 3px); z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; padding: 16px 2px 13px; white-space: nowrap; text-decoration: none;
  color: var(--muted); font-size: 15px; font-weight: 500; border-bottom: 3px solid transparent;
}
.subnav a:hover { color: var(--text); }
.subnav a[aria-selected="true"] { color: var(--text); font-weight: 700; border-bottom-color: var(--gold); }

/* ---------- Page head ---------- */
.page-head { background: var(--ink); color: var(--white); padding: 36px 0 30px; }
.crumb { font-size: 13px; letter-spacing: 0.06em; color: var(--muted-light); margin-bottom: 10px; }
.crumb strong { color: var(--gold); font-weight: 600; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -0.01em; }
.page-head p { margin-top: 12px; max-width: 760px; color: #CFCAC0; font-size: 17px; }

/* ---------- Panels ---------- */
main { display: block; }
.panels { padding: 28px 0 56px; }
.panel { display: flex; flex-direction: column; gap: 22px; }
.panel[hidden] { display: none; }
.panel-intro h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; }
.panel-intro p { margin-top: 10px; max-width: 760px; color: var(--muted); font-size: 17px; }
.block h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.pager a { text-decoration: none; font-weight: 600; padding: 10px 0; }
.pager a.prev { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-bright); color: var(--black); }
.btn-ghost { border-color: #6A665C; color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-outline { border-color: var(--gold-text); color: var(--gold-text); background: transparent; }
.btn-outline:hover { background: var(--gold-text); color: var(--white); }

/* ---------- Home hero ---------- */
.hero { background: var(--black); color: var(--white); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 900; line-height: 1.02; margin: 16px 0 18px; letter-spacing: -0.015em; }
.hero p { color: #CFCAC0; font-size: 18px; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero picture { justify-self: center; width: 100%; max-width: 560px; }
.hero-logo {
  width: 100%;
  filter: drop-shadow(0 18px 40px rgba(212, 162, 58, 0.18));
  animation: heroFloat 6s ease-in-out infinite 1.4s;
}
body.has-intro .hero-logo { animation-delay: 4s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ---------- Hero entrance ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow { animation: heroFadeUp 0.55s ease both 0.1s; }
.hero h1       { animation: heroFadeUp 0.65s ease both 0.28s; }
.hero p        { animation: heroFadeUp 0.55s ease both 0.46s; }
.hero .actions { animation: heroFadeUp 0.55s ease both 0.62s; }
.hero picture  { animation: heroFadeUp 0.7s  ease both 0.15s; }

/* ---------- Intro splash overlay ---------- */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
}
#intro.exit { animation: introExit 1s cubic-bezier(0.4, 0, 1, 1) forwards; }
@keyframes introExit { to { opacity: 0; visibility: hidden; } }

.intro-content { display: flex; flex-direction: column; align-items: center; gap: 28px; }

/* Glow lives on its own composited layer so the logo transform/opacity
   runs entirely on GPU without triggering layout or filter recalc. */
.intro-logo-wrapper {
  position: relative;
  will-change: transform;
}
.intro-logo-wrapper::before {
  content: '';
  position: absolute; inset: -60px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212,162,58,0.45) 0%, transparent 68%);
  opacity: 0;
  animation: introGlow 1.6s ease forwards 0.45s;
}
@keyframes introGlow {
  0%   { opacity: 0; transform: scale(0.6); }
  45%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.55; transform: scale(1); }
}

.intro-logo-img {
  width: clamp(300px, 52vw, 560px); height: auto;
  display: block;
  will-change: transform, opacity;
  opacity: 0;
  animation: introLogoAppear 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}
@keyframes introLogoAppear {
  0%   { opacity: 0; transform: scale(0.84) translateY(24px); }
  45%  { opacity: 1; transform: scale(1.04) translateY(0); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}

.intro-flag {
  display: flex; height: 3px; width: clamp(180px, 32vw, 340px);
  border-radius: 2px; overflow: hidden;
  opacity: 0;
  transform-origin: center;
  will-change: transform, opacity;
  animation: introFlagAppear 0.65s cubic-bezier(0.34,1.1,0.64,1) forwards 1.35s;
}
@keyframes introFlagAppear {
  from { opacity: 0; transform: scaleX(0.2); }
  to   { opacity: 1; transform: scaleX(1); }
}
.intro-flag span { flex: 1; }
.intro-flag span:nth-child(1) { background: var(--red); }
.intro-flag span:nth-child(2) { background: var(--flag-gold); }
.intro-flag span:nth-child(3) { background: var(--green); }

.intro-tagline {
  color: var(--muted-light); font-family: var(--font-display);
  font-size: clamp(11px, 1.6vw, 14px); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  will-change: transform, opacity;
  opacity: 0;
  animation: introTaglineAppear 0.7s ease forwards 1.85s;
}
@keyframes introTaglineAppear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.65; transform: translateY(0); }
}

/* Hero entrance — delayed on pages with the intro overlay */
body.has-intro .hero .eyebrow { animation: heroFadeUp 0.55s ease both 2.85s; }
body.has-intro .hero h1       { animation: heroFadeUp 0.65s ease both 3.05s; }
body.has-intro .hero p        { animation: heroFadeUp 0.55s ease both 3.22s; }
body.has-intro .hero .actions { animation: heroFadeUp 0.55s ease both 3.38s; }
body.has-intro .hero picture  { animation: heroFadeUp 0.8s  ease both 2.75s; }

@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
  body.has-intro .hero .eyebrow, body.has-intro .hero h1,
  body.has-intro .hero p, body.has-intro .hero .actions,
  body.has-intro .hero picture { animation: none; }
}

.stats { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-dark); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats li { padding: 26px 24px; border-left: 1px solid var(--line-dark); }
.stats li:first-child { border-left: 0; }
.stats .num {
  font-family: var(--font-display); font-weight: 900; font-size: 32px; color: var(--gold);
  line-height: 1.1; text-shadow: 0 0 32px rgba(212,162,58,0.25);
  animation: goldPulse 4s ease-in-out infinite;
}
@keyframes goldPulse {
  0%, 100% { text-shadow: 0 0 32px rgba(212,162,58,0.2); }
  50%       { text-shadow: 0 0 52px rgba(212,162,58,0.55), 0 0 12px rgba(212,162,58,0.3); }
}
.stats .lbl { color: var(--muted-light); font-size: 14px; }

.section { padding: 64px 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--ink); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.section-head p { color: var(--muted); max-width: 620px; margin-top: 8px; }
.section.dark .section-head p { color: var(--muted-light); }
.link-arrow { font-weight: 700; text-decoration: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card h4 { font-size: 18px; font-weight: 800; }
.card p { color: var(--muted); font-size: 15px; }
.card .num-tag { font-family: var(--font-display); font-weight: 900; color: var(--gold-text); font-size: 14px; letter-spacing: 0.1em; }
.card.icon-card::before { content: ""; width: 40px; height: 4px; background: var(--gold); border-radius: 2px; margin-bottom: 6px; }
.section.dark .card { background: var(--charcoal); border-color: var(--line-dark); }
.section.dark .card p { color: var(--muted-light); }
.section.dark .card .num-tag { color: var(--gold); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.split .copy { display: flex; flex-direction: column; gap: 14px; }
.split .copy p { color: var(--muted); font-size: 17px; }
.figure { border-radius: var(--radius); overflow: hidden; background: var(--stone); position: relative; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: var(--white); background: rgba(10, 10, 11, 0.7); }
.placeholder {
  min-height: 260px; border-radius: var(--radius); border: 1.5px dashed #BDB8AD; background: var(--stone);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #6A665C; font-size: 14px;
}

.note { background: #FFF8E6; border: 1px solid #EAD9A6; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: #5B4A1C; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
th { text-align: left; background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px; padding: 12px 16px; }
td { padding: 12px 16px; border-top: 1px solid #ECE8E0; vertical-align: top; }
td:first-child { font-weight: 600; }
.kv td:first-child { width: 34%; color: var(--muted); font-weight: 500; }
.kv td:last-child { font-weight: 600; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.done { background: #E3F1EA; color: var(--ok); }
.status.progress { background: #FBF0D6; color: #8A6516; }
.status.pending { background: #EEECE7; color: #5E5E62; }

/* ---------- Timeline / steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps h4 { font-size: 17px; font-weight: 800; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- People ---------- */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* 4-top / 3-bottom centred flex layout */
.people-4-3 {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.people-4-3 .person { flex: 0 0 calc(25% - 12px); } /* (100% - 3×16px) / 4 */
@media (max-width: 1000px) { .people-4-3 .person { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 680px)  { .people-4-3 .person { flex: 0 0 calc(50% - 8px); } }
@media (max-width: 420px)  { .people-4-3 .person { flex: 0 0 100%; } }
.person {
  font: inherit; text-align: left; cursor: pointer; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; display: flex; flex-direction: column; overflow: hidden;
  transition: border-color 0.22s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s, opacity 0.55s ease;
  color: var(--text); position: relative;
}
/* Click ripple */
.person::after {
  content: ''; position: absolute;
  width: 240%; aspect-ratio: 1;
  top: var(--ry, 50%); left: var(--rx, 50%);
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(212,162,58,0.22) 0%, transparent 62%);
  border-radius: 50%; pointer-events: none; opacity: 1;
}
.person.rippling::after { animation: personRipple 0.7s ease-out forwards; }
@keyframes personRipple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
.person:hover { border-color: var(--gold); transform: translateY(-7px); box-shadow: 0 24px 56px rgba(212,162,58,0.16); }
.avatar {
  width: 100%; aspect-ratio: 4/5; border-radius: 0; background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--gold);
  overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.person:hover .avatar img { transform: scale(1.06); }
.person-meta { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.person .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.person .role { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.person .more { color: var(--gold-text); font-size: 12px; font-weight: 700; margin-top: 9px; display: inline-flex; align-items: center; }
.person .more::after { content: " →"; display: inline-block; transition: transform 0.18s; }
.person:hover .more::after { transform: translateX(4px); }
.section.dark .person { background: var(--charcoal); border-color: var(--line-dark); color: var(--white); }
.section.dark .person .role { color: var(--muted-light); }
.section.dark .person .more { color: var(--gold); }
.section.dark .avatar { background: #1A1D22; }

dialog.bio {
  border: 0; border-radius: 14px; padding: 0; max-width: 560px; width: calc(100% - 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
dialog.bio[open] {
  animation: bioOpen 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) forwards;
}
dialog.bio.closing {
  animation: bioClose 0.22s ease forwards;
  pointer-events: none;
}
@keyframes bioOpen {
  from { opacity: 0; transform: scale(0.86) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes bioClose {
  to { opacity: 0; transform: scale(0.94) translateY(10px); }
}
dialog.bio::backdrop { background: rgba(10, 10, 11, 0); transition: background 0.35s ease; }
dialog.bio[open]::backdrop { background: rgba(10, 10, 11, 0.65); }
.bio-inner { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.bio-top { display: flex; gap: 18px; align-items: center; }
.bio-top .avatar { width: 84px; height: 84px; aspect-ratio: 1; border-radius: 50%; margin: 0; font-size: 22px; flex-shrink: 0; }
.bio h3 { font-size: 22px; font-weight: 800; }
.bio .role { color: var(--gold-text); font-weight: 600; font-size: 14px; }
.bio .text { color: var(--muted); }
.bio .close { align-self: flex-end; margin-top: 8px; }

/* ---------- Documents ---------- */
.docs { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px; border-top: 1px solid #ECE8E0; }
.docs li:first-child { border-top: 0; }
.doc-icon { width: 42px; height: 50px; border-radius: 4px; background: var(--ink); color: var(--gold); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-meta { flex: 1 1 260px; }
.doc-meta .t { font-weight: 700; }
.doc-meta .m { font-size: 13px; color: var(--muted); }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
form.form { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px; border: 1px solid #CFCAC0; border-radius: 6px; background: #FBFAF7; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212, 162, 58, 0.25); }
.form .hidden { display: none; }
.contact-card { background: var(--ink); color: #DCD8CF; border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.contact-card h3 { color: var(--white); font-size: 19px; }
.contact-card a { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-light); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 0 36px; }
.site-footer img { height: 72px; width: auto; margin-bottom: 12px; }
.site-footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #DCD8CF; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid var(--line-dark); padding: 18px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- Scroll fade-in (progressive — JS adds .js-ready) ---------- */
.panels.js-ready .panel-intro {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.panels.js-ready .panel-intro.in-view {
  opacity: 1;
  transform: translateY(0);
}
.section-head.reveal-head h2,
.panel-intro.reveal-head h2 { position: relative; display: inline-block; }
.section-head.reveal-head h2::after,
.panel-intro.reveal-head h2::after {
  content: ''; position: absolute; bottom: -8px; left: 0;
  width: 52px; height: 3px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34,1.1,0.64,1) 0.3s;
}
.section-head.reveal-head.in-view h2::after,
.panel-intro.reveal-head.in-view h2::after { transform: scaleX(1); }
.panels.js-ready .people .person {
  opacity: 0;
  transform: translateY(36px);
}
.panels.js-ready .people .person.in-view {
  opacity: 1;
  transform: translateY(0);
}
.panels.js-ready .people .person.in-view:hover {
  transform: translateY(-7px);
}
@media (prefers-reduced-motion: reduce) {
  .panels.js-ready .panel-intro,
  .panels.js-ready .people .person { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; box-shadow: 0 20px 40px rgba(0,0,0,.5); position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-top: 1px solid var(--line-dark); padding: 8px 16px 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 14px; }
  .main-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
  .site-header .bar { position: relative; }
}
@media (max-width: 900px) {
  .hero .container, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero .container { padding-top: 40px; padding-bottom: 48px; gap: 28px; }
  .hero picture { max-width: 420px; order: -1; }
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li { border-top: 1px solid var(--line-dark); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .brand img { height: 46px; }
  .subnav ul { gap: 22px; }
  form.form { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .stats .num { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .person { transition: none; }
  .panels.js-ready .people .person { opacity: 1; transform: none; transition: none; }
  .hero .eyebrow, .hero h1, .hero p, .hero .actions, .hero picture { animation: none; }
  .hero-logo, .stats .num { animation: none; }
  dialog.bio[open], dialog.bio.closing { animation: none; }
}
