/* =========================================================
   APIFP — Asia Pacific Institute of Food Professionals
   Palette adapted from the original site:
   navy nav bar (#0A4495) + logo greens (#8AC23A, #127A40)
   ========================================================= */

:root {
  --navy-950: #061430;
  --navy-900: #0a1d40;
  --navy-800: #102a57;
  --blue: #0a4495;
  --blue-500: #2c64b4;
  --lime: #8cc63f;
  --lime-300: #b5dc7c;
  --green: #127a40;
  --green-700: #0d5c30;
  --paper: #f4f6f0;
  --paper-2: #e9ede2;
  --white: #ffffff;
  --ink: #0d1b2e;
  --muted: #56627a;
  --muted-on-dark: #a9b4c8;
  --line: rgba(13, 27, 46, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--navy-950);
  padding: 10px 16px; border-radius: var(--pill); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 300; letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 300; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--lime); --fg: var(--navy-950);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--pill); border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--lime:hover { --bg: var(--lime-300); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --bg: rgba(255,255,255,.1); }
.on-light .btn--ghost:hover, .btn--ghost.on-light:hover { --bg: rgba(13,27,46,.06); }
.btn--dark { --bg: var(--navy-900); --fg: var(--white); }
.btn--dark:hover { --bg: var(--blue); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--green);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.dark .text-link { color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header.is-scrolled {
  background: rgba(6, 20, 48, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-on-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: var(--pill);
  background: var(--white); color: var(--navy-950); text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; }
.brand span { font-weight: 700; letter-spacing: .02em; font-size: 1rem; }
.brand small { display: none; font-weight: 500; color: var(--muted); font-size: .78rem; letter-spacing: 0; }

.nav { display: none; }
.nav ul {
  list-style: none; display: flex; gap: 2px;
  padding: 5px; border-radius: var(--pill);
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-on-dark);
}
.nav a {
  display: block; padding: 9px 16px; border-radius: var(--pill);
  color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(255,255,255,.12); }
.nav a[aria-current="page"] { background: var(--white); color: var(--navy-950); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { display: none; }

.menu-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  background: rgba(6,20,48,.55); color: var(--white);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: grid; place-items: center; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--navy-950); color: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--line-on-dark); }
.mobile-menu a.mm-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 1.9rem; font-weight: 300; letter-spacing: -0.02em; text-decoration: none;
}
.mobile-menu a.mm-link[aria-current="page"] { color: var(--lime); }
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 12px; color: var(--muted-on-dark); font-size: .95rem; }
.mobile-menu .mm-foot a { color: var(--white); }

@media (min-width: 720px) {
  .header-actions .btn { display: inline-flex; }
  .brand small { display: inline; }
}
@media (min-width: 1040px) {
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.dark { background: var(--navy-950); color: var(--white); }
.dark .lead, .dark .muted { color: var(--muted-on-dark); }
.dark .eyebrow { color: var(--lime); }
.navy { background: var(--navy-900); color: var(--white); }
.navy .lead, .navy .muted { color: var(--muted-on-dark); }
.navy .eyebrow { color: var(--lime); }
.light { background: var(--paper); }
.white { background: var(--white); }

.section-head {
  display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .h2 { max-width: 18ch; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; }
  .section-head--split .lead { justify-self: end; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--white);
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(32px, 6vw, 72px);
  overflow: hidden; isolation: isolate;
  background: var(--navy-950);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); animation: hero-zoom 14s var(--ease) forwards;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,20,48,.55) 0%, rgba(6,20,48,.15) 35%, rgba(6,20,48,.75) 75%, rgba(6,20,48,.96) 100%),
    linear-gradient(90deg, rgba(6,20,48,.6) 0%, rgba(6,20,48,0) 60%);
}
@keyframes hero-zoom { to { transform: scale(1); } }

.hero__grid { display: grid; gap: 32px; align-items: end; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--lime); }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { color: rgba(255,255,255,.82); margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__card {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center;
  padding: 12px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid var(--line-on-dark);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  max-width: 380px; text-decoration: none;
  transition: background-color .25s;
}
.hero__card:hover { background: rgba(255,255,255,.16); }
.hero__card img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.hero__card small { display: block; color: var(--lime); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.hero__card strong { display: block; font-weight: 500; line-height: 1.3; margin-top: 4px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line-on-dark);
  color: rgba(255,255,255,.7); font-size: .92rem;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr auto; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: var(--white); background: var(--navy-950);
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(56px, 8vw, 100px);
  overflow: hidden; isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,48,.5), rgba(6,20,48,.95));
}
.page-hero .lead { color: rgba(255,255,255,.8); margin-top: 22px; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; color: var(--muted-on-dark); margin-bottom: 22px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Intro + stats ---------- */
.intro-grid { display: grid; gap: 40px; }
.intro-grid .h2 { max-width: 20ch; }
.intro-body { display: grid; gap: 20px; align-content: start; color: var(--muted); }
.intro-body p:first-child { color: var(--ink); font-size: 1.2rem; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; } }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.stat { padding: 26px 0 0; }
.stat:nth-child(odd) { padding-right: 16px; }
.stat__num { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.stat__num sup { font-size: .45em; color: var(--green); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: .95rem; max-width: 22ch; }
@media (max-width: 599px) { .stat:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--line); } }
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 30px 24px 0 0; }
  .stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }
}
.dark .stats, .navy .stats { border-color: var(--line-on-dark); }
.dark .stat + .stat, .navy .stat + .stat { border-color: var(--line-on-dark); }
.dark .stat__num sup, .navy .stat__num sup { color: var(--lime); }
.dark .stat__label, .navy .stat__label { color: var(--muted-on-dark); }

/* ---------- Card rail (horizontal scroller) ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 82%);
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); padding-bottom: 8px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none; list-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(300px, 46%); } }
@media (min-width: 1040px) { .rail { grid-auto-columns: calc((100% - 48px) / 3.3); gap: 20px; } }

.rail-controls { display: flex; gap: 8px; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  transition: background-color .2s, opacity .2s;
}
.rail-btn:hover:not(:disabled) { background: rgba(13,27,46,.06); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.dark .rail-btn, .navy .rail-btn { border-color: var(--line-on-dark); color: var(--white); }
.dark .rail-btn:hover:not(:disabled), .navy .rail-btn:hover:not(:disabled) { background: rgba(255,255,255,.08); }

.event-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-800); color: var(--white);
  min-height: 440px; text-decoration: none; isolation: isolate;
}
.event-card__img { position: absolute; inset: 0; z-index: -1; }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.event-card__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,48,.1) 20%, rgba(6,20,48,.92) 85%);
}
.event-card:hover .event-card__img img { transform: scale(1.05); }
.event-card--plain {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(140,198,63,.28), transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--navy-800) 55%, var(--navy-950) 100%);
}
.event-card--plain::before {
  content: ""; position: absolute; right: -60px; top: 70px; width: 260px; height: 260px; z-index: -1;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02);
}
.event-card__top { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px; gap: 8px; }
.event-card__body { margin-top: auto; padding: 22px; }
.event-card h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.event-card p { color: rgba(255,255,255,.75); margin-top: 8px; font-size: .95rem; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--pill);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.14); color: var(--white);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tag--lime { background: var(--lime); color: var(--navy-950); }
.tag--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); backdrop-filter: none; }

.date-badge {
  display: grid; place-items: center; text-align: center;
  width: 64px; padding: 8px 0; border-radius: 14px;
  background: var(--white); color: var(--navy-950); line-height: 1;
}
.date-badge b { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
.date-badge span { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; color: var(--green); }

/* ---------- Focus tiles ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 260px; color: var(--white); isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,20,48,0) 35%, rgba(6,20,48,.88)); }
.tile:hover img { transform: scale(1.05); }
.tile h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; }
.tile p { color: rgba(255,255,255,.78); font-size: .95rem; margin-top: 6px; max-width: 34ch; }
.tile .tile__num { position: absolute; top: 18px; left: 22px; font-size: .85rem; color: rgba(255,255,255,.75); font-weight: 600; }
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .tiles { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; }
  .tile { min-height: 0; }
  .tile--wide { grid-column: span 2; }
  .tile--tall { grid-row: span 2; }
}

/* ---------- Expertise cards ---------- */
.expertise { display: grid; gap: 14px; }
.x-card {
  padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-on-dark);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  display: grid; gap: 14px; align-content: start;
  transition: border-color .25s, background-color .25s;
}
.x-card:hover { border-color: rgba(140,198,63,.6); }
.x-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(140,198,63,.14); color: var(--lime);
}
.x-card h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.x-card p { color: var(--muted-on-dark); font-size: .98rem; }
.x-card ul { list-style: none; display: grid; gap: 6px; font-size: .92rem; color: rgba(255,255,255,.85); border-top: 1px solid var(--line-on-dark); padding-top: 14px; }
.x-card li span { color: var(--muted-on-dark); }
@media (min-width: 700px) { .expertise { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .expertise { grid-template-columns: repeat(4, 1fr); } }

.about-cards { display: grid; gap: 14px; }
@media (min-width: 800px) { .about-cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- People ---------- */
.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.person {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line);
}
.person__avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--green); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em;
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.person p { font-size: .88rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.person .country { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--green); }

.person--feature {
  grid-template-columns: 1fr; padding: 0; overflow: hidden; align-items: stretch;
}
.person--feature .person__photo { aspect-ratio: 4/4.3; background: var(--paper-2); }
.person--feature .person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.person--feature .person__text { padding: 18px 20px 22px; }
.person--feature h3 { font-size: 1.2rem; }
.leaders { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

/* ---------- Director quote ---------- */
.quote-block { display: grid; gap: 32px; align-items: center; }
.quote-block figure { margin: 0; }
.quote-block .photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; max-width: 420px; }
.quote-block .photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-block blockquote { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.3; }
.quote-block blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--lime); margin-bottom: 8px; }
.quote-block figcaption { margin-top: 22px; color: var(--muted); }
.quote-block figcaption strong { color: var(--ink); display: block; font-weight: 600; }
.dark .quote-block figcaption strong { color: var(--white); }
@media (min-width: 900px) { .quote-block { grid-template-columns: .8fr 1.2fr; gap: 72px; } }

/* ---------- Generic content grid ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: .9fr 1.1fr; gap: 80px; } .split--even { grid-template-columns: 1fr 1fr; } }
.prose { display: grid; gap: 18px; color: var(--muted); max-width: 62ch; }
.prose strong { color: var(--ink); }
.dark .prose, .navy .prose { color: var(--muted-on-dark); }

.check-list { list-style: none; display: grid; gap: 0; }
.check-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem;
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list svg { color: var(--green); margin-top: 2px; }
.dark .check-list li { border-color: var(--line-on-dark); }
.dark .check-list svg { color: var(--lime); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px);
}
.card--dark { background: var(--navy-900); color: var(--white); border-color: var(--line-on-dark); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pill-list li {
  padding: 10px 16px; border-radius: var(--pill); border: 1px solid var(--line);
  background: var(--white); font-size: .95rem; font-weight: 500;
}
.dark .pill-list li { background: transparent; border-color: var(--line-on-dark); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; }
.step {
  counter-increment: step; position: relative;
  padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  display: grid; gap: 10px; align-content: start;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: .85rem; font-weight: 700; color: var(--green); letter-spacing: .08em;
}
.step h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: .98rem; }
.step .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Partners strip ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.partner {
  background: var(--paper); padding: 26px 22px; display: grid; gap: 6px; align-content: start;
  min-height: 140px;
}
.partner b { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.partner span { color: var(--muted); font-size: .9rem; }
.partner a { font-size: .88rem; color: var(--green); font-weight: 600; text-decoration: none; margin-top: auto; }
.white .partner { background: var(--white); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--lime); border-color: var(--lime); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 62ch; display: grid; gap: 12px; }

/* ---------- Timeline / archive ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  min-height: 42px; padding: 8px 16px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font-weight: 500; font-size: .93rem; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy-950); color: var(--white); border-color: var(--navy-950); }

.year-group { display: grid; gap: 0; }
.year-group + .year-group { margin-top: 48px; }
.year-group > h3 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.04em; color: var(--green);
  margin-bottom: 8px;
}
.ev-row {
  display: grid; gap: 6px 24px; padding: 22px 0; border-top: 1px solid var(--line);
  grid-template-columns: 1fr;
}
.ev-row__date { font-weight: 600; font-size: .92rem; color: var(--muted); }
.ev-row__title { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.ev-row__place { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.ev-row__side { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
@media (min-width: 800px) {
  .ev-row { grid-template-columns: 170px 1fr auto; align-items: start; }
  .ev-row__side { margin-top: 0; justify-content: flex-end; }
}
.ev-row[hidden], .year-group[hidden] { display: none; }
.empty-state { padding: 32px 0; color: var(--muted); }

/* ---------- News ---------- */
.news-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(6,20,48,.35); }
.news-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 4px 24px 26px; display: grid; gap: 10px; }
.news-card time { font-size: .85rem; font-weight: 600; color: var(--green); }
.news-card h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.news-card p { color: var(--muted); font-size: .97rem; }

.feature-news { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); color: var(--white); }
.feature-news__img { min-height: 260px; }
.feature-news__img img { width: 100%; height: 100%; object-fit: cover; }
.feature-news__body { padding: clamp(26px, 4vw, 52px); display: grid; gap: 16px; align-content: center; }
.feature-news__body p { color: var(--muted-on-dark); }
@media (min-width: 900px) { .feature-news { grid-template-columns: 1fr 1fr; } }

/* ---------- Gallery ---------- */
.gallery { columns: 2; column-gap: 10px; }
.gallery button { margin-bottom: 10px; }
@media (min-width: 640px) { .gallery { columns: 3; column-gap: 12px; } }
.gallery button {
  display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: none;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; break-inside: avoid;
}
.gallery img { width: 100%; transition: transform .5s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
@media (min-width: 1040px) { .gallery { columns: 4; } }

.lightbox {
  width: min(1200px, 100vw); max-width: 100vw; max-height: 100svh; height: 100svh;
  padding: 0; border: 0; background: transparent; color: var(--white);
}
.lightbox::backdrop { background: rgba(6,20,48,.94); }
.lightbox__inner { position: relative; height: 100%; display: grid; place-items: center; padding: 64px 16px; }
.lightbox img { max-height: calc(100svh - 140px); width: auto; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-on-dark); background: rgba(6,20,48,.6); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
}
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted-on-dark); font-size: .9rem; }

/* ---------- Posters (event flyers) ---------- */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.poster { display: grid; gap: 10px; text-decoration: none; }
.poster__img { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); aspect-ratio: 3/4; }
.poster__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.poster:hover .poster__img img { transform: scale(1.03); }
.poster b { font-weight: 500; font-size: .98rem; line-height: 1.3; }
.poster span { font-size: .85rem; color: var(--muted); }

/* ---------- Contact ---------- */
.offices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.office { padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 8px; }
.office .tag--outline { justify-self: start; }
.office h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.office a { color: var(--green); font-weight: 600; text-decoration: none; word-break: break-word; }
.office--hq { background: var(--navy-900); color: var(--white); border-color: transparent; }
.office--hq a { color: var(--lime); }
.office--hq .tag--outline { border-color: var(--line-on-dark); color: var(--muted-on-dark); }

.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid rgba(13,27,46,.2); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(140,198,63,.3); }
.form-note { font-size: .88rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); background: var(--green-700); color: var(--white);
  padding: clamp(36px, 6vw, 80px);
  display: grid; gap: 28px; align-items: end;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(13,92,48,.96) 30%, rgba(10,68,149,.65)); }
.cta .h2 { max-width: 16ch; }
.cta p { color: rgba(255,255,255,.85); margin-top: 16px; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--muted-on-dark); padding-top: clamp(64px, 8vw, 110px); }
.footer-top { display: grid; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-on-dark); }
.footer-top .h2 { color: var(--white); max-width: 16ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer-cols h4 { color: var(--white); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols ul { list-style: none; display: grid; gap: 10px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-on-dark); color: var(--white); transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--lime); color: var(--navy-950); border-color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 26px; font-size: .88rem; }
.footer-wordmark {
  font-size: clamp(3.6rem, 17vw, 15rem); font-weight: 600; letter-spacing: -0.06em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14);
  margin-top: 40px; user-select: none; overflow: hidden; white-space: nowrap;
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1.4fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; } .mt-xl { margin-top: clamp(56px, 8vw, 100px); }
.flex-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius); background: rgba(140,198,63,.16); border: 1px solid rgba(140,198,63,.5);
}
.dark .notice, .navy .notice { color: var(--white); }
