/* ============================================================
   IALE Institute — Design System
   BCG-inspired editorial layout · IALE brand palette
   Navy #1B3A5C · Gold #C9A84C · Teal #2E8B8B · Logo Blue #2E86C1
   ============================================================ */

:root {
  --navy: #1B3A5C;
  --navy-deep: #10243B;
  --navy-ink: #0C1B2C;
  --gold: #C9A84C;
  --gold-bright: #D4A843;
  --teal: #2E8B8B;
  --blue: #2E86C1;
  --ink: #16202B;
  --grey-700: #45525F;
  --grey-500: #6C7883;
  --grey-200: #E3E7EA;
  --grey-100: #F4F5F6;
  --paper: #FFFFFF;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Archivo", "Segoe UI", Helvetica, Arial, sans-serif;
  --hand: "Caveat", cursive;
  --max: 1200px;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(16, 36, 59, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--gold); color: var(--navy-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.12; color: var(--navy-deep); letter-spacing: -0.015em; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal);
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); }

.section-title { font-size: clamp(30px, 4.2vw, 50px); margin: 18px 0 14px; }
.standfirst { font-family: var(--serif); font-size: clamp(18px, 2vw, 21px); color: var(--grey-700); max-width: 760px; }

.gold-underline { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-size: 100% 6px; background-position: 0 92%; padding-bottom: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 14.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 28px; border: 2px solid var(--navy);
  color: var(--navy); background: transparent; cursor: pointer;
  transition: all 0.3s var(--ease); border-radius: var(--radius);
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--navy); color: #fff; }
.btn:hover .arr { transform: translateX(5px); }

.btn--solid { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn--solid:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy-deep); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--teal);
}
.text-link .arr { transition: transform 0.25s var(--ease); }
.text-link:hover .arr { transform: translateX(5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: transparent;
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow 0.3s;
}
/* The blur lives on a pseudo-element, not the header itself: backdrop-filter on
   an ancestor makes it the containing block for position:fixed descendants,
   which would clip the open mobile menu to the height of the bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,36,59,0.10); }

.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 52px; width: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word b { font-size: 19px; letter-spacing: 0.02em; color: var(--navy); }
.brand-word span { font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--blue); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 28px 9px; font-size: 13.5px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.01em; position: relative; white-space: nowrap;
}
.nav-links > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 20px;
  height: 3px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform 0.28s var(--ease);
}
.nav-links > li > a:hover::after, .nav-links > li.open > a::after { transform: scaleX(1); }

.nav-cta { margin-left: 14px; }
.nav-cta a {
  display: inline-block; padding: 11px 22px; background: var(--navy);
  color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: var(--radius); transition: background 0.3s;
}
.nav-cta a:hover { background: var(--gold); color: var(--navy-deep); }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(12px);
  width: min(880px, 92vw); background: #fff; border-top: 4px solid var(--gold);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.3s var(--ease); padding: 34px 38px 30px;
}
.nav-links li.open .mega, .nav-links li:hover .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega-head { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 18px; font-weight: 700; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 34px; }
.mega-grid a {
  display: flex; gap: 14px; align-items: baseline; padding: 13px 10px;
  border-bottom: 1px solid var(--grey-200); transition: background 0.25s;
}
.mega-grid a:hover { background: var(--grey-100); }
.mega-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; min-width: 24px; }
.mega-grid b { display: block; font-size: 15.5px; color: var(--navy-deep); }
.mega-grid span { display: block; font-size: 13px; color: var(--grey-500); line-height: 1.45; margin-top: 2px; }

/* Burger */
.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; position: relative; z-index: 1001; }
.burger span { display: block; width: 26px; height: 2.5px; background: var(--navy); margin: 6px auto; transition: all 0.3s; }
.burger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 84vh; display: flex; align-items: center;
  background: linear-gradient(115deg, var(--navy-ink) 0%, var(--navy) 58%, #235079 100%);
  color: #fff; overflow: hidden; padding: 132px 0 74px;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.22; animation: heroDrift 26s var(--ease) infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,27,44,0.92) 20%, rgba(12,27,44,0.55) 60%, rgba(12,27,44,0.25) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero .kicker { color: var(--gold-bright); }
.hero .kicker::before { background: var(--gold-bright); }
.hero h1 { font-size: clamp(40px, 6vw, 76px); color: #fff; margin: 22px 0 24px; max-width: 15ch; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p { font-family: var(--serif); font-size: clamp(18px, 2.1vw, 22px); max-width: 620px; color: rgba(255,255,255,0.88); margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-fade { opacity: 0; transform: translateY(28px); animation: heroUp 0.9s var(--ease) forwards; }
.hero-fade:nth-child(2) { animation-delay: 0.15s; }
.hero-fade:nth-child(3) { animation-delay: 0.3s; }
.hero-fade:nth-child(4) { animation-delay: 0.45s; }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; text-align: center;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 44px; margin: 10px auto 0;
  background: linear-gradient(var(--gold), transparent); animation: drop 2s infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: 136px 0 62px; color: #fff;
  background: linear-gradient(115deg, var(--navy-ink), var(--navy) 65%, #235079);
  overflow: hidden;
}
.page-hero .hero-img { opacity: 0.18; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(12,27,44,0.94) 25%, rgba(12,27,44,0.5)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .kicker { color: var(--gold-bright); }
.page-hero .kicker::before { background: var(--gold-bright); }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 60px); margin: 20px 0 18px; max-width: 18ch; font-weight: 800; }
.page-hero p { font-family: var(--serif); font-size: clamp(17px, 1.9vw, 21px); max-width: 680px; color: rgba(255,255,255,0.88); }
.crumbs { position: relative; z-index: 2; font-size: 13px; letter-spacing: 0.06em; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.crumbs a:hover { color: var(--gold-bright); }

/* ---------- Sections ---------- */
.section { padding: clamp(54px, 5.6vw, 74px) 0; }
.section--grey { background: var(--grey-100); }
.section--navy { background: var(--navy-deep); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { margin-bottom: clamp(26px, 2.8vw, 38px); }

/* ---------- Practice menu (landing centrepiece) ---------- */
.practice-menu { border-top: 1px solid var(--grey-200); }
.practice-item {
  display: grid; grid-template-columns: 90px 1.2fr 1.6fr auto;
  gap: 26px; align-items: center; padding: 34px 10px;
  border-bottom: 1px solid var(--grey-200); position: relative;
  transition: background 0.35s var(--ease);
}
.practice-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gold); transform: scaleY(0); transition: transform 0.35s var(--ease);
}
.practice-item:hover { background: var(--grey-100); }
.practice-item:hover::before { transform: scaleY(1); }
.practice-num { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); }
.practice-item h3 { font-size: clamp(20px, 2.3vw, 27px); transition: color 0.3s; }
.practice-item:hover h3 { color: var(--teal); }
.practice-item p { font-size: 15px; color: var(--grey-500); max-width: 52ch; }
.practice-go {
  width: 52px; height: 52px; border: 2px solid var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: var(--navy); transition: all 0.3s var(--ease); justify-self: end;
}
.practice-item:hover .practice-go { background: var(--navy); color: var(--gold-bright); transform: translateX(6px); }

/* ---------- Stats ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { border-left: 3px solid var(--gold); padding-left: 22px; }
.stat b { display: block; font-size: clamp(38px, 4.6vw, 58px); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat b sub { font-size: 45%; vertical-align: baseline; }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--grey-200); border-top: 4px solid transparent;
  padding: 34px 30px; display: flex; flex-direction: column; gap: 14px;
  transition: all 0.35s var(--ease); position: relative;
}
.card:hover { border-top-color: var(--gold); transform: translateY(-8px); box-shadow: var(--shadow); }
.card h3 { font-size: 20px; }
.card p { font-size: 15px; color: var(--grey-700); flex: 1; }
.card .text-link { margin-top: 4px; }
.card-icon { width: 52px; height: 52px; color: var(--teal); }
.card-icon svg { width: 100%; height: 100%; }

/* Image cards */
.img-card { background: #fff; border: 1px solid var(--grey-200); overflow: hidden; display: flex; flex-direction: column; transition: all 0.35s var(--ease); }
.img-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.img-card figure { aspect-ratio: 16/10; overflow: hidden; }
.img-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.img-card:hover figure img { transform: scale(1.06); }
.img-card .pad { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.img-card h3 { font-size: 19px; }
.img-card p { font-size: 14.5px; color: var(--grey-700); flex: 1; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split figure { position: relative; }
.split figure img { box-shadow: var(--shadow); }
.split figure::after {
  content: ""; position: absolute; top: 22px; left: -22px; right: 22px; bottom: -22px;
  border: 2px solid var(--gold); z-index: -1;
}
.split h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 16px 0 18px; }
.split .checks { margin: 20px 0 28px; display: grid; gap: 12px; }
.split .checks li { display: flex; gap: 12px; font-size: 15.5px; color: var(--grey-700); }
.split .checks li::before { content: "—"; color: var(--gold); font-weight: 700; }

/* ---------- Diagram (hand-drawn) ---------- */
.diagram-shell { background: #fff; border: 1px solid var(--grey-200); padding: 40px 30px 26px; overflow-x: auto; }
.diagram-shell svg { width: 100%; height: auto; min-width: 680px; font-family: var(--hand); }
.diagram-note { text-align: center; font-family: var(--hand); font-size: 21px; color: var(--grey-500); margin-top: 12px; transform: rotate(-0.6deg); }
.sketch { stroke: var(--navy); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sketch--gold { stroke: var(--gold); }
.sketch--teal { stroke: var(--teal); }
.sketch-label { font-family: var(--hand); font-size: 26px; fill: var(--navy-deep); font-weight: 600; }
.sketch-sub { font-family: var(--hand); font-size: 17px; fill: var(--grey-500); }
[data-draw] path.sketch, [data-draw] ellipse.sketch, [data-draw] circle.sketch { stroke-dasharray: 900; stroke-dashoffset: 900; }
[data-draw].drawn path.sketch, [data-draw].drawn ellipse.sketch, [data-draw].drawn circle.sketch { animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Platforms ---------- */
.platform-card {
  background: linear-gradient(150deg, #fff, var(--grey-100));
  border: 1px solid var(--grey-200); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  transition: all 0.35s var(--ease);
}
.platform-card::after {
  content: "↗"; position: absolute; top: 20px; right: 24px; font-size: 22px;
  color: var(--gold); transition: transform 0.3s var(--ease);
}
.platform-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--gold); }
.platform-card:hover::after { transform: translate(4px, -4px); }
.platform-tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.platform-card h3 { font-size: 20px; }
.platform-card p { font-size: 14.5px; color: var(--grey-700); flex: 1; }
.platform-card .url { font-size: 12.5px; color: var(--grey-500); word-break: break-all; }

/* ---------- Client marquee ---------- */
.marquee { overflow: hidden; position: relative; padding: 8px 0; }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-size: 21px; color: var(--grey-500); white-space: nowrap; font-style: italic; }
.marquee-track span::after { content: "·"; margin-left: 70px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Table ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { background: var(--navy); color: #fff; text-align: left; font-size: 13.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 16px 20px; }
.data-table td { padding: 18px 20px; border-bottom: 1px solid var(--grey-200); font-size: 15px; vertical-align: top; }
.data-table td b { color: var(--navy-deep); }
.data-table tr:hover td { background: var(--grey-100); }

/* ---------- Timeline / numbered steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step; display: grid; grid-template-columns: 84px 1fr;
  gap: 26px; padding: 22px 0; border-bottom: 1px solid var(--grey-200);
}
.step::before {
  content: "0" counter(step); font-family: var(--serif); font-style: italic;
  font-size: 34px; color: var(--gold); line-height: 1;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--grey-700); font-size: 15.5px; max-width: 70ch; }

/* ---------- Quote ---------- */
.pull-quote {
  border-left: 5px solid var(--gold); padding: 10px 0 10px 34px;
  font-family: var(--serif); font-size: clamp(21px, 2.6vw, 28px);
  font-style: italic; color: var(--navy); max-width: 850px; line-height: 1.45;
}
.pull-quote footer { font-family: var(--sans); font-style: normal; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-500); margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy-ink), var(--navy) 70%, #235079);
  color: #fff; padding: clamp(52px, 5vw, 66px) 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; border: 2px solid rgba(201,168,76,0.35);
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px;
  border-radius: 50%; border: 2px solid rgba(46,139,139,0.4);
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); max-width: 20ch; margin-bottom: 16px; }
.cta-band p { font-family: var(--serif); color: rgba(255,255,255,0.85); max-width: 600px; margin-bottom: 34px; font-size: 18px; }

/* ---------- Accreditation band ---------- */
.accred { display: flex; align-items: center; gap: 34px; background: #fff; border: 1px solid var(--grey-200); border-left: 5px solid var(--gold); padding: 34px 38px; flex-wrap: wrap; }
.accred img { height: 84px; width: auto; }
.accred b { font-size: 19px; color: var(--navy-deep); display: block; margin-bottom: 6px; }
.accred p { font-size: 14.5px; color: var(--grey-700); max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,0.8); padding: 74px 0 34px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 36px; }
.footer-brand b { color: #fff; font-size: 20px; display: block; }
.footer-brand .tag { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; }
.footer-brand p { margin-top: 16px; font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.6); max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer ul a { color: rgba(255,255,255,0.72); transition: color 0.25s; }
.site-footer ul a:hover { color: var(--gold-bright); }
.footer-offices p { margin-bottom: 14px; line-height: 1.5; }
.footer-offices p b { color: #fff; display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.6s; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--grey-200);
  font-family: var(--sans); font-size: 15.5px; background: #fff;
  border-radius: var(--radius); transition: border-color 0.25s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks-grid label { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--grey-700); cursor: pointer; }
.checks-grid input { width: auto; margin-top: 4px; accent-color: var(--teal); }
.checks-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-note { font-size: 13px; color: var(--grey-500); }

/* ---------- Hero grid + animated services art ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.hero-art svg { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }
.hero-art .sketch { stroke: rgba(255,255,255,0.92); }
.hero-art .sketch--gold { stroke: var(--gold-bright); }
.hero-art .sketch-label { fill: #fff; font-size: 22px; }
.hero-art .sketch-sub { fill: rgba(255,255,255,0.75); }
.node-float { animation: floatY 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.flow-line { stroke-dasharray: 5 9; animation: flowDash 2.4s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -56; } }
.hub-pulse { animation: hubPulse 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hubPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.85; } }

/* ---------- Client logo slider ---------- */
.logo-track { display: flex; gap: 22px; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .logo-track { animation-play-state: paused; }
.logo-tile { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--grey-200); padding: 14px 24px 14px 16px; white-space: nowrap; }
.logo-mark { width: 46px; height: 46px; min-width: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--navy); font-size: 14px; letter-spacing: 0.02em; }
.logo-tile:nth-child(3n) .logo-mark { background: var(--teal); }
.logo-tile:nth-child(3n+1) .logo-mark { background: var(--gold); color: var(--navy-deep); }
.logo-tile b { display: block; font-size: 14.5px; color: var(--navy-deep); line-height: 1.2; }
.logo-tile .sec { display: block; font-size: 10.5px; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote-card {
  background: #fff; border: 1px solid var(--grey-200); border-top: 4px solid var(--gold);
  padding: 32px 30px 28px; display: flex; flex-direction: column;
  transition: all 0.35s var(--ease); position: relative;
}
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote-card::before {
  content: "\201C"; font-family: var(--serif); font-size: 68px; line-height: 1;
  color: var(--gold); opacity: 0.4; position: absolute; top: 16px; right: 24px;
}
.quote-card blockquote {
  font-family: var(--serif); font-size: 17.5px; line-height: 1.6; color: var(--navy);
  font-style: italic; margin: 0 0 20px; flex: 1; position: relative; z-index: 1;
}
.quote-card cite { font-style: normal; display: block; border-top: 1px solid var(--grey-200); padding-top: 16px; }
.quote-card cite b { display: block; font-size: 15.5px; color: var(--navy-deep); font-weight: 700; }
.quote-card cite span { display: block; font-size: 13px; color: var(--grey-500); margin-top: 3px; line-height: 1.4; }

/* ---------- Photo inside a standard card ---------- */
/* ---------- Full-width image band ---------- */
.img-band {
  height: clamp(180px, 23vw, 310px);
  background-size: cover; background-position: center;
  position: relative; display: block;
}
.img-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,27,44,0.22), rgba(12,27,44,0.05) 40%, rgba(12,27,44,0.22));
}

.card-photo { margin: -34px -30px 4px; aspect-ratio: 3/2; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-photo img { transform: scale(1.05); }

/* ---------- Bookshelf ---------- */
/* Book covers must never be cropped — show the whole jacket */
.book-card figure {
  aspect-ratio: 3/4; background: linear-gradient(160deg, #F7F8F9, #E9ECEF);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.book-card figure img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain;
  box-shadow: 0 10px 28px rgba(16,36,59,0.22); transition: transform 0.5s var(--ease);
}
.book-card:hover figure img { transform: translateY(-5px) scale(1.02); }

/* Project image — never crop; portfolio shots vary wildly in shape */
.proj-photo {
  margin: -34px -30px 4px; aspect-ratio: 3/2; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 70%, #235079);
  display: flex; align-items: center; justify-content: center;
}
.proj-photo img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.card:hover .proj-photo img { transform: scale(1.04); }
.founder-line {
  display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin: -6px 0 10px;
}

/* Placeholder for a real photo / screenshot not yet supplied */
.shot-slot {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 70%, #235079);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 22px;
}
.shot-slot span { font-family: var(--serif); font-size: 20px; color: #fff; line-height: 1.25; }
.shot-slot em { font-style: normal; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); }

/* ---------- Enrolment catalogue ---------- */
.cat-block { background: #fff; border: 1px solid var(--grey-200); border-left: 4px solid var(--gold); padding: 28px 30px 24px; margin-bottom: 22px; }
.cat-block h3 { font-size: 19px; margin-bottom: 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cat-count { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--grey-500); font-weight: 400; }
.cat-list { margin: 16px 0 18px; }
.cat-list li { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--grey-200); }
.cat-list li:last-child { border-bottom: 0; }
.cat-code { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; }
.cat-name { font-size: 15px; color: var(--ink); }
.cat-days { font-size: 12.5px; color: var(--grey-500); white-space: nowrap; }
.enrol-mini {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 15px; border: 1.5px solid var(--teal); color: var(--teal);
  border-radius: var(--radius); transition: all 0.25s var(--ease); white-space: nowrap;
}
.enrol-mini:hover { background: var(--teal); color: #fff; }
.enrol-cell { text-align: center; }
.enrol-btn {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 7px 14px; background: var(--teal); color: #fff;
  border-radius: var(--radius); white-space: nowrap; transition: background 0.25s;
}
.enrol-btn:hover { background: var(--navy); }

/* Course "cover" — stands in for a jacket on the bookshelf */
.course-cover { background: linear-gradient(150deg, var(--navy-deep), var(--navy) 60%, #235079); padding: 0; }
/* Hand-drawn course illustration on the navy jacket */
.course-art { width: 100%; height: 100%; padding: 8px 4px; display: flex; align-items: center; justify-content: center; }
.course-art svg { width: 100%; height: 100%; }
.course-art .cs { stroke: rgba(255,255,255,0.94); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.course-art .cs-gold { stroke: var(--gold-bright); }
.course-art .cs-teal { stroke: #82D3D3; }
.course-art .cl { font-family: var(--hand); font-size: 21px; fill: var(--gold-bright); }
.course-art .cl-w { font-family: var(--hand); font-size: 18px; fill: rgba(255,255,255,0.84); }
.course-art .blink { animation: artPulse 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes artPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
a.book-card { text-decoration: none; }

/* Checkout / order summary */
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--grey-200); font-size: 15.5px; }
.order-line:last-of-type { border-bottom: 0; }
.order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0 0; margin-top: 6px; border-top: 2px solid var(--navy); }
.order-total b { font-size: 26px; color: var(--navy-deep); }
.qty-input { width: 74px; padding: 8px 10px; border: 1.5px solid var(--grey-200); font-family: var(--sans); font-size: 15px; text-align: center; border-radius: var(--radius); }
.qty-input:focus { outline: none; border-color: var(--teal); }
.pay-box { background: var(--navy-deep); color: #fff; padding: 30px 30px 26px; }
.pay-box h4 { color: var(--gold-bright); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.pay-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.14); font-size: 14.5px; }
.pay-row:last-child { border-bottom: 0; }
.pay-row span:first-child { color: rgba(255,255,255,0.65); }
.pay-row span:last-child { font-weight: 700; text-align: right; }
.needs-detail { background: rgba(201,168,76,0.16); border-left: 4px solid var(--gold); padding: 14px 16px; font-size: 13.5px; color: rgba(255,255,255,0.9); margin-top: 18px; }
.book-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price-tag { font-weight: 800; color: var(--navy-deep); font-size: 19px; }
.launch-tag { background: var(--gold); color: var(--navy-deep); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 2px; }
.launch-tag--now { background: var(--teal); color: #fff; }

/* ---------- Responsive ---------- */




/* ============ EVENTS PAGE ============ */
.ev-list { display: grid; gap: 46px; }
.ev { border: 1px solid var(--grey-200); background: var(--paper); position: relative; }
.ev--next { border-color: var(--gold); box-shadow: var(--shadow); }
.ev-head { display: grid; grid-template-columns: 132px 1fr; gap: 30px; padding: 34px 36px 26px; align-items: start; }
.ev-date { background: var(--navy); color: #fff; text-align: center; padding: 16px 8px 14px; }
.ev--next .ev-date { background: var(--gold); color: var(--navy-ink); }
.ev-date .d { display: block; font-size: 40px; font-weight: 800; line-height: 1; }
.ev-date .m { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 7px; }
.ev-date .y { display: block; font-size: 12px; opacity: 0.72; margin-top: 4px; letter-spacing: 0.1em; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ev-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; background: var(--grey-100); color: var(--grey-700); }
.ev-tag--role { background: var(--teal); color: #fff; }
.ev-tag--next { background: var(--gold); color: var(--navy-ink); }
.ev-head h2 { font-size: 31px; line-height: 1.14; margin-bottom: 10px; }
.ev-where { font-size: 15px; color: var(--grey-700); font-weight: 600; }
.ev-body { padding: 0 36px 34px; }
.ev-body > p { color: var(--grey-700); margin-bottom: 14px; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 1px; background: var(--grey-200); border: 1px solid var(--grey-200); margin: 24px 0; }
.ev-facts div { background: var(--paper); padding: 15px 18px; }
.ev-facts dt { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 5px; }
.ev-facts dd { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.ev-note { border-left: 3px solid var(--gold); background: var(--grey-100); padding: 15px 20px; font-size: 14.5px; color: var(--grey-700); margin: 20px 0; }
.ev-note b { color: var(--navy); }
.ev-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ev-sponsors { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.ev-sponsors span { font-size: 13px; font-weight: 600; color: var(--navy); border: 1px solid var(--grey-200); padding: 7px 13px; background: var(--grey-100); }
.ev-book { border-top: 1px solid var(--grey-200); background: var(--grey-100); padding: 32px 36px 36px; }
.ev-book h3 { font-size: 19px; margin-bottom: 6px; }
.ev-book > p { font-size: 14.5px; color: var(--grey-700); margin-bottom: 22px; }
.ev-past { opacity: 0.62; }
.ev-past .ev-date { background: var(--grey-500); }

.ev-date--tbc .d { font-size: 24px; letter-spacing: 0.04em; padding-top: 8px; }


/* ==================================================================
   RESPONSIVE  —  three tiers
   Mobile   <= 640px   single column, hamburger, pinned action bar
   Tablet   641-1024   two-column feature grids, condensed nav
   Desktop  >= 1025px  full centre nav with dropdowns, three-column grids,
                       50/50 splits, ~1200px centred content
   ================================================================== */

/* ---------- Mobile action bar (pinned, mobile only) ---------- */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: var(--grey-200);
    box-shadow: 0 -6px 24px rgba(16, 36, 59, 0.16);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; padding: 14px 10px;
    font-family: var(--sans); font-size: 14px; font-weight: 700;
    letter-spacing: 0.04em; text-decoration: none; text-align: center;
    background: var(--navy); color: #fff;
  }
  .mobile-bar a.is-primary { background: var(--gold); color: var(--navy-ink); }
  .mobile-bar a:active { filter: brightness(0.92); }
  body { padding-bottom: 56px; }
}

/* ---------- Desktop: >= 1025px (base rules already cover it) ---------- */
@media (min-width: 1025px) {
  .wrap { max-width: var(--max); margin-inline: auto; }
}

/* Nine top-level items plus the CTA is a tight bar. The nav-bar reaches its
   1200px max only on wide screens, so the full set fits from 1200px up once the
   tracking is pulled in; below that it goes to the burger. */
@media (min-width: 1200px) {
  .nav-links { gap: 0; }
  .nav-links > li > a { font-size: 12.5px; padding-inline: 6px; letter-spacing: 0; }
  .nav-links > li > a::after { left: 6px; right: 6px; }
  .nav-cta { margin-left: 6px; }
  .nav-cta a { padding: 11px 14px; font-size: 12px; letter-spacing: 0.04em; }
}

/* ---------- Tablet: 641px - 1024px ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  /* two-column feature grids */
  .card-grid, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  /* 50/50 splits collapse — they are a desktop device */
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split figure { order: -1; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .practice-item { grid-template-columns: 60px 1fr auto; }
  .practice-item p { display: none; }
  .ev-facts { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Hamburger: <= 1199px (the full bar cannot fit below this) ---------- */
@media (max-width: 1199px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; top: 76px; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 30px 28px; gap: 0; display: none; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--grey-200); }
  .nav-links > li > a { padding: 18px 0; font-size: 17px; }
  .mega { position: static; transform: none; width: 100%; box-shadow: none; border-top: 0;
          padding: 0 0 18px; opacity: 1; visibility: hidden; display: none; }
  .nav-links li.open .mega { display: block; visibility: visible; pointer-events: auto; }
  .mega-grid { grid-template-columns: 1fr; }
  .nav-cta { margin: 20px 0 0; }
}

/* ---------- Mobile: <= 640px — single column throughout ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 50px 0; }
  .card-grid, .card-grid--2, .card-grid--3, .card-grid--4,
  .quote-grid, .form-grid, .checks-grid, .checks-grid--3,
  .stats-band, .footer-grid, .ev-facts { grid-template-columns: 1fr; }
  .footer-grid { gap: 36px; }
  .practice-item { grid-template-columns: 44px 1fr auto; gap: 14px; padding: 26px 6px; }
  .practice-go { width: 42px; height: 42px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; }
  .accred { padding: 26px 22px; gap: 22px; }
  .hero-ctas .btn, .ev-ctas .btn { width: 100%; justify-content: center; }

  /* carousels become native swipe — no marquee animation on touch */
  .marquee { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
             -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track, .logo-track { animation: none; width: max-content; }
  .logo-tile, .marquee-track span { scroll-snap-align: start; }

  /* events */
  .ev-head { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px 20px; }
  .ev-date { display: flex; align-items: baseline; gap: 10px; justify-content: center; padding: 12px; }
  .ev-date .d { font-size: 28px; }
  .ev-date .m, .ev-date .y { margin-top: 0; }
  .ev-head h2 { font-size: 25px; }
  .ev-body { padding: 0 22px 26px; }
  .ev-book { padding: 26px 22px 28px; }
  .ev-list { gap: 34px; }
}

/* respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .logo-track { animation: none; }
}

/* ============ BOOK THE DOC (speaker page) ============ */
.spk { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.spk-photo { position: relative; background: linear-gradient(165deg, #FFFFFF 30%, #EEF1F3 100%);
  border: 1px solid var(--grey-200); border-top: 4px solid var(--gold);
  aspect-ratio: 1/1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.spk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; display: block; }
.spk-fallback { position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; }
.spk-photo.no-img .spk-fallback { display: flex; }
.spk-photo.no-img { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 62%, #235079); }
.spk-fallback b { font-size: 46px; font-weight: 800; color: var(--gold-bright); letter-spacing: 0.04em; }
.spk-fallback span { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.5; }
.spk-caption { margin-top: 14px; font-family: var(--hand); font-size: 21px; color: var(--grey-500); text-align: center; }
.spk-lead { font-family: var(--serif); font-size: clamp(21px, 2.5vw, 27px); line-height: 1.42;
  color: var(--navy); margin-bottom: 22px; }
.spk-lead em { font-style: normal; color: var(--gold); }
.spk-body p { color: var(--grey-700); margin-bottom: 15px; }
.spk-for { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.spk-for div { border-top: 3px solid var(--navy); padding: 20px 0 0; }
.spk-for div:nth-child(3n-1) { border-top-color: var(--gold); }
.spk-for div:nth-child(3n) { border-top-color: var(--teal); }
.spk-for b { display: block; font-size: 17px; color: var(--navy); margin-bottom: 7px; line-height: 1.25; }
.spk-for span { font-size: 14.5px; color: var(--grey-700); line-height: 1.5; }
@media (max-width: 1024px) {
  .spk { grid-template-columns: 1fr; gap: 36px; }
  .spk-photo { aspect-ratio: 1/1; max-width: 420px; }
  .spk-for { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .spk-photo { max-width: none; }
  .spk-for { grid-template-columns: 1fr; gap: 18px; }
}

/* ============ FLOATING QUICK-ACCESS RAIL (right edge) ============ */
.rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 880; display: flex; flex-direction: column; gap: 1px;
  /* flex-end keeps the collapsed items narrow — with the default stretch,
     one expanded label would widen every sibling into an empty slab */
  align-items: flex-end;
}
.rail a { box-shadow: -8px 0 30px rgba(16, 36, 59, 0.18); }
.rail a {
  display: flex; align-items: center; height: 58px; padding: 0 17px;
  background: var(--navy); color: #fff; overflow: hidden;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}
.rail a svg {
  width: 22px; height: 22px; flex: 0 0 22px;
  stroke: currentColor; stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.rail a span {
  max-width: 0; opacity: 0; white-space: nowrap; margin-left: 0;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: max-width 0.34s var(--ease), opacity 0.22s var(--ease),
              margin-left 0.34s var(--ease);
}
.rail a:hover, .rail a:focus-visible { background: var(--gold); color: var(--navy-ink); }
.rail a:hover span, .rail a:focus-visible span { max-width: 240px; opacity: 1; margin-left: 13px; }
.rail a:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.rail a.is-active { background: var(--teal); color: #fff; }
.rail a.is-active:hover { background: var(--gold); color: var(--navy-ink); }

/* The rail is a pointer affordance — below 1025px the burger menu and the
   pinned bottom bar already cover the same ground, and a hover-to-reveal
   label is no use on a touch screen. */
@media (max-width: 1024px) { .rail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rail a, .rail a span { transition: none; }
}

/* ============ EVENTS — COMPACT BOARD (all events on one screen) ============ */
.page-hero--slim { padding-top: 110px; padding-bottom: 26px; min-height: 0; }
.page-hero--slim h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 10px 0 8px; }
.page-hero--slim p { font-size: clamp(15.5px, 1.5vw, 17.5px); max-width: 760px; }

.ev-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.evc { display: flex; flex-direction: column; border: 1px solid var(--grey-200);
  background: var(--paper); height: 100%; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.evc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.evc--next { border-color: var(--gold); border-top: 4px solid var(--gold); }
.evc-top { padding: 16px 18px 0; }
.evc-date { display: inline-flex; align-items: baseline; gap: 7px; background: var(--navy);
  color: #fff; padding: 7px 12px; margin-bottom: 12px; }
.evc--next .evc-date { background: var(--gold); color: var(--navy-ink); }
.evc-date b { font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.evc-date span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.evc-flag { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 7px; }
.evc--next .evc-flag { color: var(--gold); }
.evc h3 { font-size: 18px; line-height: 1.22; margin-bottom: 8px; }
.evc-where { font-size: 13px; color: var(--grey-500); font-weight: 600; line-height: 1.45; }
.evc-facts { list-style: none; margin: 12px 0 0; padding: 0 18px; display: grid; gap: 6px; }
.evc-facts li { font-size: 13.5px; color: var(--grey-700); line-height: 1.45;
  padding-left: 14px; position: relative; }
.evc-facts li::before { content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; background: var(--gold); }
.evc-more { margin: 12px 18px 0; border-top: 1px solid var(--grey-200); }
.evc-more summary { list-style: none; cursor: pointer; padding: 11px 0 0;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: 7px; }
.evc-more summary::-webkit-details-marker { display: none; }
.evc-more summary::after { content: "+"; font-size: 15px; line-height: 1; }
.evc-more[open] summary::after { content: "–"; }
.evc-more p { font-size: 13.5px; color: var(--grey-700); line-height: 1.55; margin: 10px 0 0; }
.evc-more p b { color: var(--navy); }
.evc-more a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.evc-foot { margin-top: auto; padding: 14px 18px 18px; display: grid; gap: 7px; }
.evc-btn { display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; background: var(--navy); color: #fff;
  transition: background .25s var(--ease); text-align: center; }
.evc-btn:hover { background: var(--gold); color: var(--navy-ink); }
.evc--next .evc-btn { background: var(--gold); color: var(--navy-ink); }
.evc--next .evc-btn:hover { background: var(--navy); color: #fff; }
.evc-btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--grey-200); }
.evc-btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.ev-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px;
  font-size: 13px; color: var(--grey-500); }
.ev-legend b { color: var(--navy); }

@media (max-width: 1024px) { .ev-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ev-board { grid-template-columns: 1fr; gap: 16px; }
  .page-hero--slim { padding-top: 112px; padding-bottom: 32px; } }

/* ============ INSIGHTS / ARTICLES ============ */
.article { max-width: 780px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 30px; }
.article h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 38px 0 14px; }
.article h3 { font-size: 20px; margin: 26px 0 10px; }
.article p { font-family: var(--serif); font-size: 17.5px; line-height: 1.75;
  color: var(--grey-700); margin-bottom: 16px; }
.article ul { margin: 0 0 18px 22px; list-style: disc; }
.article li { font-family: var(--serif); font-size: 17px; line-height: 1.7;
  color: var(--grey-700); margin-bottom: 9px; }
.article a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.article .article-cta { border-left: 3px solid var(--gold); background: var(--grey-100);
  padding: 18px 22px; margin-top: 30px; }
.insight-card { display: block; border: 1px solid var(--grey-200); background: var(--paper);
  padding: 30px 32px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.insight-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.insight-card .tag { font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); }
.insight-card h3 { font-size: 21px; line-height: 1.25; margin: 10px 0 10px; }
.insight-card p { font-family: var(--serif); font-size: 15.5px; color: var(--grey-700); line-height: 1.6; }
.insight-card .read { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--navy); }
