/* ==========================================================================
   AUPPHS-FA MUN III — design tokens & global styles (v2: quiet / editorial)
   Palette: one primary hue (navy #00205B) + one accent (crimson #BF0D3E)
   + warm neutrals. Two typefaces: display (Trajan Pro → Cinzel) and
   text (Sentinel → Zilla Slab), three weights in total.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Zilla+Slab:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* Optional licensed brand fonts — drop files in ./assets/fonts/ (see README there) */
@font-face { font-family: "Trajan Pro"; src: url("../fonts/TrajanPro-Regular.woff2") format("woff2"), url("../fonts/TrajanPro-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Trajan Pro"; src: url("../fonts/TrajanPro-Bold.woff2") format("woff2"), url("../fonts/TrajanPro-Bold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sentinel"; src: url("../fonts/Sentinel-Book.woff2") format("woff2"), url("../fonts/Sentinel-Book.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sentinel"; src: url("../fonts/Sentinel-Semibold.woff2") format("woff2"), url("../fonts/Sentinel-Semibold.otf") format("opentype"); font-weight: 500; font-display: swap; }

/* ---------- Tokens -------------------------------------------------------- */
:root {
  --navy:        #00205B;   /* PMS 281C — the one primary hue */
  --navy-deep:   #0A1A3F;
  --accent:      #BF0D3E;   /* PMS 193C — used sparingly: rules, eyebrows, focus */
  --ink:         #2A2F3A;
  --ink-2:       #5F6675;
  --ink-3:       #8C92A0;
  --line:        #DEDBD3;
  --paper:       #F3F1EB;   /* matte warm paper */
  --paper-2:     #ECE9E1;
  --paper-3:     #E3DFD5;

  --font-display: "Trajan Pro", "Cinzel", "Times New Roman", serif;
  --font-text:    "Sentinel", "Zilla Slab", Georgia, serif;

  --fs-display: clamp(2.6rem, 1.4rem + 4.2vw, 5.2rem);
  --fs-h1:      clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem);
  --fs-h2:      clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-lg:      1.2rem;
  --fs-md:      1.0625rem;
  --fs-sm:      .9375rem;
  --fs-xs:      .78rem;

  --container: 1140px;
  --gutter: clamp(20px, 4vw, 48px);
  --space-xl: clamp(5rem, 11vw, 10rem);   /* section rhythm — generous */
  --space-lg: clamp(3rem, 6vw, 5rem);
  --space-md: 2rem;
  --radius: 4px;

  --ease: cubic-bezier(.22, .61, .36, 1);     /* slow-out, airy */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 400ms;
  --t-base: 700ms;
  --t-slow: 1200ms;
  --header-h: 84px;
}

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-text); font-weight: 300; font-size: var(--fs-md); line-height: 1.75;
  color: var(--ink); background: var(--paper);
  animation: page-in 1.2s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body::before { content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: .055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration: none; transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--navy); line-height: 1.12; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-family: var(--font-text); font-weight: 500; font-size: var(--fs-md); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: .6em 1em; z-index: 1000; }
.skip-link:focus { top: 8px; }
::selection { background: var(--navy); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 760px; }
.container--wide { max-width: 1320px; }

.eyebrow { display: block; font-family: var(--font-text); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2em; }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.7; }
.rule { width: 48px; height: 1px; background: var(--accent); margin: 1.4em 0 1.8em; transform-origin: left; }
.rule--center { margin-inline: auto; transform-origin: center; }
.reveal.is-visible .rule { animation: rule-in 1.2s var(--ease) both .25s; }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.text-center { text-align: center; }
.muted { color: var(--ink-2); }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-text); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase;
  padding: 1em 1.9em; border: 1px solid var(--navy); color: var(--navy); background: transparent; cursor: pointer; overflow: hidden;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease); z-index: -1; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { border-color: var(--accent); }
.btn--light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--navy); border-color: #fff; }
.btn--sm { padding: .75em 1.3em; letter-spacing: .18em; }
.btn svg { width: 1em; height: 1em; transition: transform var(--t-base) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Text link with sliding underline */
.link { position: relative; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: var(--fs-xs); display: inline-flex; align-items: center; gap: .5em; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link svg { width: 1em; height: 1em; transition: transform var(--t-base) var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--header-h);
  color: #fff; background: transparent;
  transition: background var(--t-base) var(--ease), height var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,60,.55), transparent); opacity: 1; transition: opacity var(--t-base) var(--ease); pointer-events: none; }
.site-header.is-scrolled, .site-header.is-solid { background: var(--paper); color: var(--navy); height: 68px; box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 0; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; }
.brand { display: flex; align-items: center; gap: .85rem; color: inherit; }
.brand:hover { color: inherit; }
.brand img { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); padding: 2px; transition: transform var(--t-slow) var(--ease); }
.brand:hover img { transform: rotate(6deg); }
.brand__title { font-family: var(--font-display); font-size: .95rem; letter-spacing: .12em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav > li { list-style: none; position: relative; }
.nav ul { margin: 0; padding: 0; }
.nav a, .nav button { color: inherit; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; padding: .8em 1em; display: inline-flex; align-items: center; gap: .4em; position: relative; }
.nav a::after { content: ""; position: absolute; left: 1em; right: 1em; bottom: .45em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { color: inherit; opacity: .85; }
.nav .caret { width: .7em; height: .7em; transition: transform var(--t-base) var(--ease); }
.has-sub:hover .caret, .has-sub:focus-within .caret, .has-sub.is-open .caret { transform: rotate(180deg); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 400px; padding: .6rem 0; margin-top: .3rem;
  background: var(--paper); color: var(--navy); border: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  list-style: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; transform: none; pointer-events: auto; }
.sub a { display: flex; justify-content: space-between; gap: 1rem; padding: .6em 1.2em; letter-spacing: .1em; font-size: .8rem; text-transform: none; font-weight: 400; color: var(--navy); }
.sub a small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.sub a span { white-space: nowrap; }
.sub a::after { display: none; }
.sub a:hover { background: var(--paper-2); color: var(--accent); opacity: 1; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; margin-right: -10px; z-index: 1001; position: relative; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
body.nav-open .nav-toggle { color: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,20,60,.5); opacity: 0; pointer-events: none; transition: opacity var(--t-base) var(--ease); z-index: 899; }
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

/* ---------- Full-window hero (home) -------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; background: var(--navy-deep); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; animation: hero-zoom 16s var(--ease) both; will-change: transform; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(180deg, rgba(10,26,63,.45), rgba(10,26,63,0)); }
.hero .container { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); width: min(100% - 2 * var(--gutter), 1320px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.hero__title { font-size: var(--fs-display); color: #fff; margin: 0 0 .2em; letter-spacing: .04em; }
.hero__dates { font-family: var(--font-text); font-weight: 300; font-size: var(--fs-lg); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.92); margin: 0; }
.hero__dates small { display: block; font-size: var(--fs-xs); letter-spacing: .28em; color: rgba(255,255,255,.65); margin-bottom: .6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .reveal-up { opacity: 0; transform: translateY(26px); animation: up 1.4s var(--ease) forwards; }
.hero .reveal-up:nth-of-type(1) { animation-delay: .6s; } .hero .reveal-up:nth-of-type(2) { animation-delay: .9s; }
@keyframes up { to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; color: rgba(255,255,255,.85); opacity: 0; animation: fade 1.5s var(--ease) 1.6s forwards; }
.hero__scroll svg { width: 26px; height: 26px; animation: bob 2.6s var(--ease-io) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes fade { to { opacity: 1; } }

/* Theme band under hero */
.theme-band { background: var(--paper); text-align: center; padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); }
.theme-band p { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1.4vw, 2rem); letter-spacing: .05em; margin: 0; color: var(--navy); }
.theme-band small { display: block; margin-top: 1.2rem; font-family: var(--font-text); font-size: var(--fs-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.theme-band .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Inner-page hero (quiet) -------------------------------------- */
.page-hero { padding: calc(var(--header-h) + var(--space-lg)) 0 var(--space-lg); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5em; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2rem; }
.breadcrumb ul { display: contents; padding: 0; margin: 0; }
.breadcrumb li { list-style: none; }
.breadcrumb li + li::before { content: "—"; margin-right: .5em; opacity: .5; }
.breadcrumb a { color: var(--ink-2); }

/* ---------- Sections ------------------------------------------------------ */
.section { padding: var(--space-xl) 0; }
.section--tight { padding: var(--space-lg) 0; }
.section--alt { background: var(--paper-2); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead, .section--navy .muted { color: rgba(255,255,255,.75); }
.section--navy .eyebrow { color: rgba(255,255,255,.6); }
.section-head { max-width: 680px; margin-bottom: var(--space-lg); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .rule { margin-inline: auto; transform-origin: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Two-column feature (SG letter, location) */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.feature--reverse { grid-template-columns: 7fr 5fr; }
.feature--reverse > :first-child { order: 2; }
.feature__media { overflow: hidden; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; filter: saturate(.88) contrast(.96); transform: scale(1.04); transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease); }
.feature__media:hover img { transform: scale(1); filter: none; }
.letter { font-size: var(--fs-md); }
.letter p { margin-bottom: 1.1em; }
.letter .signoff { font-weight: 500; color: var(--navy); margin-top: 1.6em; }
.signature { max-width: 200px; opacity: .85; mix-blend-mode: multiply; margin: 1rem 0; }

/* ---------- Portrait grid (secretariat) ---------------------------------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem); justify-content: center; }
.people--center { justify-content: center; }
.portrait { text-align: center; color: inherit; display: block; }
.portrait:hover { color: inherit; }
.portrait__img { overflow: hidden; background: var(--paper-3); margin-bottom: 1rem; }
.portrait__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; filter: saturate(.88) contrast(.96); transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease); }
.portrait:hover .portrait__img img { transform: scale(1.05); filter: none; }
.portrait h3 { font-family: var(--font-text); font-weight: 500; font-size: 1rem; letter-spacing: .02em; margin: 0 0 .2em; color: var(--ink); transition: color var(--t-fast) var(--ease); }
.portrait:hover h3 { color: var(--accent); }
.portrait p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.portrait__num { font-size: .68rem; letter-spacing: .3em; color: var(--ink-3); display: block; margin-bottom: .35em; }
.team-group { margin-bottom: var(--space-lg); }
.team-group:last-child { margin-bottom: 0; }
.team-group h4 { text-align: center; margin-bottom: 2rem; position: relative; }
.team-group h4::before, .team-group h4::after { content: ""; display: inline-block; vertical-align: middle; width: 40px; height: 1px; background: var(--line); margin: 0 1.2rem; }

/* ---------- Countdown ----------------------------------------------------- */
.countdown { display: flex; justify-content: center; gap: clamp(1.2rem, 5vw, 4rem); margin-top: 2.5rem; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.countdown b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 1.5rem + 4vw, 5rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; transition: opacity var(--t-fast) var(--ease); }
.countdown b.is-tick { animation: tick .6s var(--ease); }
@keyframes tick { 0% { opacity: .35; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
.countdown span { font-size: var(--fs-xs); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: .8rem; }
.countdown__note { text-align: center; margin-top: 2rem; color: rgba(255,255,255,.7); }

/* ---------- Info list / contact ------------------------------------------ */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.info-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list h4 { margin: .15em 0 0; }
.info-list p { margin: 0; }
.map-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); filter: grayscale(1) contrast(.95) brightness(.97); transition: filter var(--t-slow) var(--ease); }
.map-wrap:hover { filter: none; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 1rem; align-items: start; }
.contact-list svg { width: 20px; height: 20px; color: var(--ink-3); margin-top: .2em; }
.contact-list strong { display: block; }
.contact-list a { word-break: break-word; }

/* ---------- Committee cards (index) -------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper-2); padding: clamp(1.6rem, 3vw, 2.6rem); color: inherit; display: flex; flex-direction: column; gap: .8rem; position: relative; transition: background var(--t-base) var(--ease); }
.card:hover { background: var(--paper-3); color: inherit; }
.card__code { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--navy); letter-spacing: .04em; }
.card h3 { font-family: var(--font-text); font-weight: 500; font-size: 1.05rem; margin: 0; }
.card ol { margin: .3rem 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: var(--fs-sm); }
.card ol li { margin-bottom: .3em; }
.card .link { margin-top: auto; padding-top: 1rem; }
.card__meta { font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Topics & chairs (committee page) ----------------------------- */
.topics { list-style: none; padding: 0; margin: 0; counter-reset: topic; display: grid; gap: 0; border-top: 1px solid var(--line); }
.topics li { counter-increment: topic; display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-lg); line-height: 1.5; }
.topics li::before { content: counter(topic, upper-roman); font-family: var(--font-display); color: var(--accent); font-size: var(--fs-md); padding-top: .2em; }
.chair { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); padding: var(--space-lg) 0; border-top: 1px solid var(--line); align-items: start; }
.chair:first-of-type { border-top: 0; padding-top: 0; }
.chair__photo { overflow: hidden; background: var(--paper-3); }
.chair__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; filter: saturate(.88) contrast(.96); transform: scale(1.04); transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease); }
.chair:hover .chair__photo img { transform: scale(1); filter: none; }
.chair__role { font-size: var(--fs-xs); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.chair h3 { margin: .25em 0 .4em; }
.chair__bio { color: var(--ink); }
.chair__links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.pager { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: var(--space-lg); padding-top: 2rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: .3em; max-width: 48%; }
.pager a small { font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.pager a:last-child { text-align: right; align-items: flex-end; margin-left: auto; }

/* Profile (secretariat page) */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.profile__photo { position: sticky; top: 100px; overflow: hidden; background: var(--paper-3); }
.profile__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }

/* Schedule */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.tab { font: inherit; font-weight: 500; font-size: var(--fs-xs); letter-spacing: .24em; text-transform: uppercase; padding: 1em 1.6em; border: 0; background: none; color: var(--ink-3); cursor: pointer; position: relative; transition: color var(--t-fast) var(--ease); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transition: transform var(--t-base) var(--ease); }
.tab[aria-selected="true"] { color: var(--navy); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--navy); }
.tabpanel { animation: panel-in var(--t-base) var(--ease); }
.tabpanel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.day-title { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.day-title h2 { margin: 0; }
.day-title span { color: var(--ink-2); letter-spacing: .1em; text-transform: uppercase; font-size: var(--fs-xs); }
.schedule { width: 100%; border-collapse: collapse; }
.schedule th { text-align: left; font-weight: 500; font-size: var(--fs-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 .9rem; border-bottom: 1px solid var(--navy); }
.schedule td { padding: 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule td:first-child { width: 220px; white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.schedule tr.is-key td:last-child { font-weight: 500; color: var(--navy); }
.schedule tr { transition: background var(--t-fast) var(--ease); }
.schedule tbody tr:hover { background: var(--paper-2); }

/* Pills (restrained) */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; padding: .4em .9em; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: var(--space-lg) 0 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; color: #fff; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); padding: 2px; }
.footer-brand strong { font-family: var(--font-display); font-weight: 400; letter-spacing: .1em; display: block; }
.site-footer h4 { color: rgba(255,255,255,.5); font-size: var(--fs-xs); margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.footer-bottom { margin-top: var(--space-md); padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: var(--fs-xs); letter-spacing: .06em; color: rgba(255,255,255,.45); }

/* ---------- Scroll reveal ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--fade { transform: none; }
.reveal--scale { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .reveal-up { opacity: 1; transform: none; }
}

/* ---------- Responsive: tablet (≤1024px) --------------------------------- */
@media (max-width: 1024px) {
  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature--reverse > :first-child { order: 0; }
  .feature__media { max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 260px 1fr; }
  .chair { grid-template-columns: 180px 1fr; }
  .people { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ---------- Responsive: mobile (≤768px) ---------------------------------- */
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .hero__media img { animation: none; }

  .site-header .container { gap: 1rem; }
  .nav-toggle { margin-right: 0; width: 44px; height: 44px; padding: 8px; flex-shrink: 0; }
  .people { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.2rem 0.8rem; }
  .cards { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile__photo { position: static; max-width: 300px; }
  .chair { grid-template-columns: 1fr; gap: 1.4rem; }
  .chair__photo { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .info-list li { grid-template-columns: 1fr; gap: .4rem; }
  .schedule td:first-child { width: auto; white-space: normal; }
  .schedule th, .schedule td { font-size: var(--fs-sm); }
  .tabs { overflow-x: auto; }
  .tab { padding: 1em 1.1em; white-space: nowrap; }
  .pager { flex-direction: column; }
  .pager a, .pager a:last-child { max-width: none; text-align: left; align-items: flex-start; margin-left: 0; }
  .countdown div { min-width: 56px; }
  .team-group h4::before, .team-group h4::after { display: none; }
}

/* ---------- Responsive: small mobile (≤480px) ----------------------------- */
@media (max-width: 480px) {
  .people { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem 0.6rem; }
  .portrait__img img { aspect-ratio: 2 / 3; }
  .portrait h3 { font-size: 0.9rem; }
  .portrait p { font-size: var(--fs-xs); }
}

/* ---------- Drawer navigation for tablet + mobile (≤1024px) -------------- */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 1000;
    background: var(--paper); color: var(--navy); flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.6rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform var(--t-base) var(--ease);
    border-left: 1px solid var(--line);
  }
  body.nav-open .nav { transform: none; }
  .nav > li { opacity: 0; transform: translateX(16px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
  body.nav-open .nav > li { opacity: 1; transform: none; }
  body.nav-open .nav > li:nth-child(1) { transition-delay: .12s; } body.nav-open .nav > li:nth-child(2) { transition-delay: .18s; } body.nav-open .nav > li:nth-child(3) { transition-delay: .24s; } body.nav-open .nav > li:nth-child(4) { transition-delay: .3s; } body.nav-open .nav > li:nth-child(5) { transition-delay: .36s; } body.nav-open .nav > li:nth-child(6) { transition-delay: .42s; } body.nav-open .nav > li:nth-child(7) { transition-delay: .48s; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 1em 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .has-sub { display: flex; flex-wrap: wrap; }
  .has-sub > a { width: auto; flex: 1; border-bottom: 1px solid var(--line); }
  .has-sub > button { width: 48px; }
  .has-sub .sub { width: 100%; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .sub { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 .5rem; margin: 0; opacity: 1; transform: none; pointer-events: auto; display: none; }
  .has-sub.is-open .sub { display: block; animation: panel-in var(--t-base) var(--ease); }
  .has-sub:hover .sub { display: none; }
  .has-sub.is-open:hover .sub { display: block; }
  .sub a { padding: .7em 0 .7em 1em; border-bottom: 0; }
  .nav .btn { margin-top: 1.4rem; justify-content: center; }
}
