/* ==========================================================
   Mashrek MUN '26 — "The Narratives of Power"
   Design system: white & warm paper, deep navy, ink black,
   a single newsroom-red accent. Serif throughout.
   ========================================================== */

:root {
  --white: #ffffff;
  --paper: #f7f5f0;
  --ink: #0a0b0e;
  --text: #1b1f27;
  --muted: #555c6b;
  --line: #dfe2e8;
  --navy: #173575;
  --navy-700: #122a5c;
  --navy-800: #0c1c3f;
  --navy-900: #070f24;
  --navy-soft: #e8edf7;
  --red: #c8102e;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .72);
  --line-dark: rgba(255, 255, 255, .16);

  --display: "Playfair Display", "Times New Roman", serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cormorant SC", "EB Garamond", Georgia, serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --space: clamp(88px, 11vw, 150px);
  --header: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
::selection { background: var(--navy); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(23, 53, 117, .15); }
strong { font-weight: 700; color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.narrow { max-width: 860px; }
section { padding: var(--space) 0; }
section[id], footer[id], [id].topic-block, .guide [id] { scroll-margin-top: calc(var(--header) + 24px); }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; }

.star { color: var(--navy); display: inline-block; line-height: 1; }
.stars { display: flex; justify-content: center; gap: 14px; color: var(--navy); font-size: 14px; }
.stars .big { font-size: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--caps); font-weight: 600; font-size: 15px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--navy);
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.center .eyebrow::after, .eyebrow.both::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.center { text-align: center; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 900; margin: 0; }
.section-head p { color: var(--muted); font-size: 20px; max-width: 620px; margin: 20px auto 0; }

/* ---------- Buttons (sweep fill on hover) ---------- */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase;
  padding: 17px 32px; min-width: 200px;
  color: #fff; background: var(--navy); border: 1px solid var(--navy);
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost::before { background: var(--navy); }
.btn.ghost:hover { color: #fff; }
.btn.light { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn.light::before { background: var(--red); }
.btn.light:hover { color: #fff; border-color: var(--red); }
.btn.ghost.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost.light::before { background: #fff; }
.btn.ghost.light:hover { color: var(--navy-900); border-color: #fff; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--caps); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); border: 1px solid var(--navy); padding: 6px 14px;
}
.status.solid { background: var(--navy); color: #fff; }
a.status:hover { text-decoration: none; background: var(--navy-800); color: #fff; }

/* ==========================================================
   Header — transparent over dark tops, solid once scrolled
   ========================================================== */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(7,15,36,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 21px; color: inherit; transition: color .4s; }
.brand-text small { font-family: var(--caps); font-weight: 600; font-size: 12px; letter-spacing: .28em; color: var(--navy); margin-top: 4px; transition: color .4s; }

.nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; list-style: none; }
.nav-link, .nav-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); padding: 12px 14px; background: none; border: 0; cursor: pointer;
  transition: color .3s;
}
.nav-link:hover, .nav-toggle:hover { text-decoration: none; color: var(--navy); }
.nav-link::after, .nav-toggle::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-link:hover::after, .nav-toggle:hover::after, .nav-link.active::after, .nav-toggle.active::after { transform: scaleX(1); transform-origin: left; }
.caret { font-size: 10px; transition: transform .3s; }

/* transparent state (JS adds .js to <html>; .scrolled once the page moves) */
.js .site-header:not(.scrolled) { background: transparent; border-color: transparent; }
.js .site-header:not(.scrolled) .brand { color: #fff; }
.js .site-header:not(.scrolled) .brand-text small { color: rgba(255,255,255,.7); }
.js .site-header:not(.scrolled) .brand img { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.js .site-header:not(.scrolled) .nav-link, .js .site-header:not(.scrolled) .nav-toggle { color: rgba(255,255,255,.88); }
.js .site-header:not(.scrolled) .nav-link:hover, .js .site-header:not(.scrolled) .nav-toggle:hover,
.js .site-header:not(.scrolled) .nav-link.active, .js .site-header:not(.scrolled) .nav-toggle.active { color: #fff; }
.js .site-header:not(.scrolled) .menu-btn { border-color: rgba(255,255,255,.7); }
.js .site-header:not(.scrolled) .menu-btn span { background: #fff; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; min-width: 400px;
  transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--navy);
  box-shadow: 0 30px 60px -30px rgba(7,15,36,.4);
  padding: 10px 0; opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .caret, .has-dropdown.open .caret { transform: rotate(180deg); }
.dropdown a { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 10px 24px; color: var(--ink); font-size: 17px; transition: background .25s, color .25s, padding .35s var(--ease); }
.dropdown a:hover { background: var(--navy-soft); color: var(--navy); text-decoration: none; padding-left: 30px; }
.dropdown a.active { color: var(--navy); font-weight: 700; }
.dropdown .lvl { font-family: var(--caps); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dropdown .divider { height: 1px; background: var(--line); margin: 8px 24px; }

.menu-btn {
  display: none; width: 46px; height: 42px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--ink);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  :root { --header: 72px; }
  .menu-btn { display: inline-flex; }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 19px; }
  .nav {
    position: fixed; inset: var(--header) 0 0 0; background: #fff; overflow-y: auto;
    padding: 12px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: none;
    overscroll-behavior: contain;
  }
  .menu-open { overflow: hidden; }
  .menu-open .nav { display: block; animation: drop .45s var(--ease); }
  .menu-open .site-header, .js .menu-open .site-header:not(.scrolled) { background: #fff; border-color: var(--line); }
  .js .menu-open .site-header:not(.scrolled) .brand { color: var(--ink); }
  .js .menu-open .site-header:not(.scrolled) .brand-text small { color: var(--navy); }
  .js .menu-open .site-header:not(.scrolled) .menu-btn { border-color: var(--ink); }
  .js .menu-open .site-header:not(.scrolled) .menu-btn span { background: var(--ink); }
  .js .menu-open .site-header .nav-link, .js .menu-open .site-header .nav-toggle { color: var(--ink); }
  .js .menu-open .site-header .nav-link.active, .js .menu-open .site-header .nav-toggle.active { color: var(--navy); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 16px; }
  .nav-link::after, .nav-toggle::after { display: none; }
  .dropdown { position: static; transform: none; min-width: 0; border: 0; box-shadow: none; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { transform: none; }
  .has-dropdown.open .dropdown { display: block; transform: none; }
  .dropdown a { padding: 10px 0 10px 16px; }
  .dropdown a:hover { padding-left: 22px; }
  .dropdown .divider { margin: 6px 0 6px 16px; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { display: block; position: static; width: 100%; padding: 0 0 16px; border-top: 0; }
  html:not(.js) .has-dropdown .dropdown { display: block; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header) + 32px) 0 118px; text-align: center; color: #fff;
  background: radial-gradient(110% 80% at 50% 40%, #1d3a78 0%, #10224a 42%, #060d1f 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(85% 65% at 50% 45%, transparent 50%, rgba(3,7,18,.6) 100%); }

.hero-inner { position: relative; will-change: transform, opacity; }
.hero-logo {
  width: clamp(104px, 10vw, 140px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 26px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 0 12px rgba(255,255,255,.04), 0 0 0 13px rgba(255,255,255,.14), 0 30px 80px -20px rgba(0,0,0,.8);
}
.presents { font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: .38em; text-transform: uppercase; color: rgba(255,255,255,.68); margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(46px, min(7.4vw, 11.5vh), 112px); font-weight: 900; line-height: .96; letter-spacing: -.02em;
  text-transform: uppercase; color: #fff; margin: 0 auto 22px; text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero h1 .the { display: block; font-style: italic; font-weight: 400; text-transform: none; font-size: .4em; letter-spacing: 0; color: #b8c6e8; margin-bottom: 8px; }
.hero .deck { font-style: italic; font-size: clamp(20px, 2vw, 25px); color: rgba(255,255,255,.86); margin: 0 auto 34px; }

.hero-facts {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; border-top: 1px solid var(--line-dark);
  background: rgba(3,7,18,.28); backdrop-filter: blur(6px);
}
.hero-facts ul { display: flex; justify-content: center; margin: 0 auto; padding: 0; list-style: none; max-width: 1080px; }
.hero-facts li { flex: 1; padding: 16px 12px; text-align: center; font-family: var(--caps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: rgba(255,255,255,.72); white-space: nowrap; }
.hero-facts li + li { border-left: 1px solid var(--line-dark); }
.hero-facts b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em; text-transform: none; color: #fff; line-height: 1.2; margin-bottom: 2px; }

.motion-toggle {
  position: absolute; right: var(--gutter); top: calc(var(--header) + 18px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; opacity: .65;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 6px 12px;
  font-family: var(--caps); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: opacity .3s, border-color .3s;
}
.motion-toggle:hover { opacity: 1; border-color: #fff; }
.motion-toggle .icon { font-size: 9px; letter-spacing: 0; }
@media (max-height: 780px) and (min-width: 701px) {
  .hero .hero-logo { display: none; }
}
@media (max-width: 700px) {
  .hero { padding-bottom: 0; justify-content: flex-start; padding-top: calc(var(--header) + 56px); }
  .presents { letter-spacing: .2em; font-size: 13px; }
  .hero-facts { position: static; margin-top: 48px; }
  .hero-facts ul { flex-direction: column; }
  .hero-facts li { padding: 14px 16px; font-size: 12px; white-space: normal; }
  .hero-facts li + li { border-left: 0; border-top: 1px solid var(--line-dark); }
  .hero-facts b { font-size: 16px; }
  .motion-toggle { top: calc(var(--header) + 10px); padding: 5px 10px; font-size: 11px; }
}

/* ==========================================================
   Marquee band
   ========================================================== */
.marquee { padding: 26px 0; overflow: hidden; background: var(--ink); color: #fff; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5vw, 64px); text-transform: uppercase;
  letter-spacing: -.01em; white-space: nowrap; padding: 0 28px; line-height: 1;
}
.marquee span.m { color: #8fa3cf; font-style: italic; font-weight: 400; text-transform: none; }
.marquee i { font-style: normal; color: var(--red); font-size: clamp(22px, 3vw, 36px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   At a glance
   ========================================================== */
.glance { padding: clamp(64px, 8vw, 100px) 0; background: var(--white); }
.glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.glance-item { padding: 34px 26px 30px; }
.glance-item + .glance-item { border-left: 1px solid var(--line); }
.glance-item .num { font-variant-numeric: tabular-nums; display: block; font-family: var(--display); font-weight: 900; font-size: clamp(48px, 5.4vw, 72px); line-height: 1; color: var(--navy); margin-bottom: 14px; }
.glance-item .lbl { display: block; font-family: var(--caps); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--red); margin-bottom: 6px; }
.glance-item p { font-size: 17px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 900px) {
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .glance-item:nth-child(3) { border-left: 0; }
  .glance-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .glance-item { padding: 24px 14px 22px 0; }
  .glance-item:nth-child(2n) { padding-left: 16px; padding-right: 0; }
  .glance-item .num { font-size: 44px; margin-bottom: 10px; }
  .glance-item .lbl { font-size: 12px; letter-spacing: .14em; }
  .glance-item p { font-size: 15px; }
  .hero .btn-row .btn { width: 100%; max-width: 360px; }
}

/* ==========================================================
   Theme film
   ========================================================== */
.film { background: radial-gradient(120% 90% at 50% 0%, #152d5f 0%, #060d1f 72%); color: #fff; }
.film-head { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }
.film-head h2 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 900; color: #fff; margin: 0; }
.film .eyebrow { color: #fff; }
.film .eyebrow::before { display: none; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(200,16,46,.7) } 70% { box-shadow: 0 0 0 10px rgba(200,16,46,0) } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0) } }
.film-frame { margin: 0 auto; max-width: 1020px; }
.film-bar { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: none; gap: 8px; }
.film-screen.enhanced .film-bar { display: flex; }
.film-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(5,10,21,.72); color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 8px 14px;
  font-family: var(--caps); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  backdrop-filter: blur(4px); transition: background-color .3s, color .3s, border-color .3s;
}
.film-btn:hover { background: #fff; color: var(--navy-900); }
.film-btn .ic { font-size: 10px; letter-spacing: 0; }
@media (max-width: 560px) { .film-bar { right: 8px; bottom: 8px; } .film-btn { padding: 6px 10px; font-size: 11px; } }
.film-screen {
  position: relative; aspect-ratio: 832 / 464; background: #03060f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 0 0 10px rgba(255,255,255,.04), 0 0 0 11px rgba(255,255,255,.14), 0 60px 120px -40px rgba(0,0,0,.9);
}
.film-screen video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #03060f; }
.film-bar { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: none; gap: 8px; }
.film-screen.enhanced .film-bar { display: flex; }
.film-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(5,10,21,.72); color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 8px 14px;
  font-family: var(--caps); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  backdrop-filter: blur(4px); transition: background-color .3s, color .3s, border-color .3s;
}
.film-btn:hover { background: #fff; color: var(--navy-900); }
.film-btn .ic { font-size: 10px; letter-spacing: 0; }
@media (max-width: 560px) { .film-bar { right: 8px; bottom: 8px; } .film-btn { padding: 6px 10px; font-size: 11px; } }








.film-frame figcaption { margin: 26px auto 0; max-width: 760px; text-align: center; font-style: italic; font-size: 16px; color: rgba(255,255,255,.78); }

/* ==========================================================
   Theme — editorial spread
   ========================================================== */
.theme { background: var(--white); }
.theme-grid { display: grid; grid-template-columns: 1.3fr 1fr; }
.theme-grid > * { padding: 0 clamp(24px, 3.4vw, 52px); }
.theme-grid > :first-child { padding-left: 0; }
.theme-grid > :last-child { padding-right: 0; border-left: 1px solid var(--line); }
.headline { font-size: clamp(50px, 7vw, 96px); font-weight: 900; line-height: .94; text-transform: uppercase; margin-bottom: 30px; }
.headline em { display: block; font-style: italic; font-weight: 400; text-transform: none; font-size: .5em; color: var(--navy); margin-bottom: 6px; }
.standfirst { font-style: italic; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.45; color: var(--ink); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 30px; }
.columns { column-count: 2; column-gap: 40px; column-rule: 1px solid var(--line); }
.columns p:first-child::first-letter { float: left; font-family: var(--display); font-weight: 900; font-size: 4.6em; line-height: .8; padding: 8px 12px 0 0; color: var(--red); }
.sidebar-box { background: var(--ink); color: #fff; text-align: center; font-family: var(--caps); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: 14px; padding: 16px 18px; margin-bottom: 22px; }
.globe-card {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.07), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.globe-card img { width: 50%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 0 14px rgba(255,255,255,.04); transition: transform 1.2s var(--ease); }
.globe-card:hover img { transform: scale(1.06) rotate(-6deg); }
.globe-card .sky { position: absolute; inset: 0; pointer-events: none; }
.globe-card .sky i { position: absolute; color: rgba(255,255,255,.8); font-style: normal; font-size: 10px; animation: twinkle 3.2s ease-in-out infinite; }
.globe-card .sky i:nth-child(2n) { animation-delay: 1.1s; }
.globe-card .sky i:nth-child(3n) { animation-delay: 2s; }
@keyframes twinkle { 0%,100% { opacity: .9 } 50% { opacity: .25 } }
.caption { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 520px) { .eyebrow { letter-spacing: .2em; font-size: 13px; gap: 10px; } .eyebrow::before, .eyebrow::after { width: 18px !important; } }

.theme-head { margin-bottom: clamp(36px, 4vw, 52px); }
.caption { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.pull-quote { margin: 30px 0 0; }
.pull-quote .mark { display: block; font-family: var(--display); font-size: 72px; line-height: .55; color: var(--red); margin-bottom: 12px; }
.pull-quote blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.38; color: var(--ink); }
.pull-quote cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--caps); font-weight: 600; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--navy); }
@media (max-width: 900px) {
  .theme-grid { grid-template-columns: 1fr; }
  .theme-grid > * { padding: 0 !important; border-left: 0 !important; }
  .theme-grid > :last-child { margin-top: 48px; padding-top: 40px !important; border-top: 1px solid var(--line); }
  .columns { column-count: 1; }
}

/* ==========================================================
   Committees list
   ========================================================== */
.committees-home { background: var(--paper); }
.c-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.c-list li { border-bottom: 1px solid var(--line); }
.c-row {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 110px 1fr auto 32px; align-items: baseline; gap: 18px;
  padding: 24px 14px; color: var(--ink); transition: color .45s var(--ease), padding .5s var(--ease);
}
.c-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.c-row:hover { text-decoration: none; color: #fff; padding-left: 24px; }
.c-row:hover::before { transform: scaleY(1); transform-origin: top; }
.c-abbr { font-family: var(--caps); font-weight: 600; letter-spacing: .18em; color: var(--navy); font-size: 15px; transition: color .4s; }
.c-name { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.c-level { font-family: var(--caps); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--muted); white-space: nowrap; transition: color .4s; }
.c-go { font-size: 22px; color: var(--navy); transition: transform .45s var(--ease), color .4s; }
.c-row:hover .c-abbr, .c-row:hover .c-level, .c-row:hover .c-go { color: #fff; }
.c-row:hover .c-go { transform: translateX(6px); }
.c-foot { text-align: center; margin: 40px 0 0; }
.c-foot a { font-family: var(--caps); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; }
@media (max-width: 700px) {
  .c-row { grid-template-columns: 1fr 24px; gap: 4px 12px; padding: 18px 8px; }
  .c-abbr, .c-name, .c-level { grid-column: 1; }
  .c-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .c-row:hover { padding-left: 14px; }
}

/* ==========================================================
   CTA
   ========================================================== */
.cta { position: relative; overflow: hidden; text-align: center; background: radial-gradient(120% 120% at 50% 0%, #1b3a7a 0%, var(--navy-900) 68%); color: #fff; }
.cta::before { content: "✦"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: min(60vw, 620px); line-height: 1; color: rgba(255,255,255,.035); pointer-events: none; }
.cta .eyebrow { color: #b8c6e8; }
.cta h2 { position: relative; font-size: clamp(36px, 5vw, 64px); font-weight: 900; color: #fff; margin: 0 auto 40px; line-height: 1.08; max-width: 820px; }
.cta h2 em { font-weight: 400; color: #b8c6e8; }
.cta p { position: relative; color: var(--on-dark-muted); font-size: 21px; margin: 0 auto 40px; }
.cta .btn-row { position: relative; }

/* ==========================================================
   Inner page headers
   ========================================================== */
.page-head {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: calc(var(--header) + clamp(56px, 7vw, 96px)) 0 clamp(64px, 8vw, 104px);
  background: radial-gradient(110% 130% at 50% 0%, #1d3d80 0%, var(--navy-800) 55%, var(--navy-900) 100%);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.2px 1.2px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 28% 70%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 46% 18%, #fff, transparent), radial-gradient(1px 1px at 63% 62%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 78% 26%, #fff, transparent), radial-gradient(1px 1px at 90% 74%, #fff, transparent),
    radial-gradient(1px 1px at 8% 82%, #fff, transparent), radial-gradient(1.3px 1.3px at 36% 44%, #fff, transparent);
}
.page-head .wrap { position: relative; }
.page-head .seal { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 28px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 0 8px rgba(255,255,255,.05), 0 0 0 9px rgba(255,255,255,.16); }
.page-head .eyebrow { color: #b8c6e8; }
.page-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.page-head .star { color: #b8c6e8; }
.page-head h1 { font-size: clamp(44px, 6.6vw, 88px); font-weight: 900; color: #fff; margin-bottom: 20px; }
.page-head .lede { font-size: clamp(20px, 2vw, 24px); font-style: italic; color: rgba(255,255,255,.8); max-width: 700px; margin: 0 auto; }
.page-head .badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.page-head .status { color: #fff; border-color: rgba(255,255,255,.7); }
.page-head .status.solid, .page-head a.status.solid { background: #fff; color: var(--navy-900); border-color: #fff; }
.page-head .btn-row { margin-top: 36px; }
.page-head + hr.rule { display: none; }

/* ==========================================================
   Study guides
   ========================================================== */
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(40px, 6vw, 96px); padding: clamp(64px, 8vw, 104px) 0 var(--space); }
.toc { position: sticky; top: calc(var(--header) + 32px); align-self: start; font-size: 16px; }
.toc .eyebrow { font-size: 13px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 11px 0; color: var(--muted); line-height: 1.35; transition: color .25s, padding .35s var(--ease); }
.toc a:hover, .toc a.current { color: var(--navy); text-decoration: none; padding-left: 10px; }
.toc a.current { font-weight: 700; box-shadow: inset 2px 0 0 var(--red); }
.toc .sub a { padding-left: 16px; font-size: 15px; }
.toc .sub a:hover, .toc .sub a.current { padding-left: 24px; }

.guide { max-width: 780px; min-width: 0; }
.guide h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; margin-top: 0; }
.topic-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: .28em; text-transform: uppercase; color: var(--red); }
.topic-label .star { color: var(--red); }
.guide h3 { display: flex; align-items: baseline; gap: 14px; font-size: 27px; margin: 60px 0 18px; }
.guide h3 .n { font-style: italic; font-weight: 400; color: var(--red); font-size: .85em; }
.guide h4 { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 36px 0 10px; }
.guide h4 .letter { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; transform: translateY(-2px); font-family: var(--caps); font-size: 14px; font-weight: 600; color: #fff; background: var(--navy); }
.guide ul.plain { list-style: none; padding-left: 0; }
.guide ul.plain li { position: relative; padding-left: 28px; margin-bottom: 14px; }
.guide ul.plain li::before { content: "✦"; position: absolute; left: 0; top: 1px; color: var(--navy); font-size: 13px; }
.topic-block + .topic-block { position: relative; margin-top: var(--space); padding-top: var(--space); border-top: 1px solid var(--line); }
.topic-block + .topic-block::before { content: "✦"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #fff; padding: 0 16px; color: var(--navy); font-size: 18px; }
.overview { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 34px 0 22px; margin-bottom: var(--space); }
.overview > p:first-of-type { font-size: 22px; line-height: 1.6; }
.overview h4.ov-h { font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin: 28px 0 8px; }
.overview h4.ov-h + p { font-size: 20px; }
.callout { border-left: 3px solid var(--navy); background: var(--paper); padding: 24px 28px; margin: 30px 0; font-size: 18px; }
.callout > strong { display: block; margin-bottom: 8px; font-family: var(--caps); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } .toc { position: static; } .toc .sub { display: none; } }

/* Arabic (right-to-left) */
[lang="ar"] { font-family: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif; }
[lang="ar"] .eyebrow, [lang="ar"] .topic-label, [lang="ar"] .toc, [lang="ar"] .callout > strong, .status[lang="ar"] { letter-spacing: 0; text-transform: none; font-family: "Amiri", "Geeza Pro", serif; }
[lang="ar"] .eyebrow::before { display: none; }
[dir="rtl"] .guide { font-size: 21px; line-height: 1.95; }
[dir="rtl"] .guide h2, [dir="rtl"] .guide h3, [dir="rtl"] .guide h4 { font-family: "Amiri", "Geeza Pro", serif; font-weight: 700; letter-spacing: 0; }
[dir="rtl"] .guide h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.35; }
[dir="rtl"] .guide h4 .letter { font-family: "Amiri", serif; font-size: 15px; width: 30px; height: 30px; }
[dir="rtl"] .guide ul.plain li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .guide ul.plain li::before { left: auto; right: 0; }
[dir="rtl"] .callout { border-left: 0; border-right: 3px solid var(--navy); }
[dir="rtl"] .toc { font-size: 18px; }
[dir="rtl"] .toc .eyebrow { font-size: 18px; font-weight: 700; }
[dir="rtl"] .toc a:hover, [dir="rtl"] .toc a.current { padding-left: 0; padding-right: 10px; box-shadow: inset -2px 0 0 var(--red); }
[dir="rtl"] .toc .sub a { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .toc .sub a:hover, [dir="rtl"] .toc .sub a.current { padding-right: 24px; }
[dir="rtl"] .overview > p:first-of-type { font-size: 23px; }

/* ==========================================================
   Lists, placeholders, schedule
   ========================================================== */
.pending { position: relative; text-align: center; border: 1px solid var(--line); background: #fff; padding: clamp(52px, 7vw, 92px) clamp(22px, 5vw, 64px); }
.pending::before, .pending::after { content: "✦"; position: absolute; left: 50%; transform: translateX(-50%); background: #fff; padding: 0 16px; color: var(--navy); font-size: 16px; line-height: 1; }
.pending::before { top: -9px; }
.pending::after { bottom: -9px; }
.pending .eyebrow::before { display: none; }
.pending h2 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 900; }
.pending p { color: var(--muted); max-width: 560px; margin: 0 auto 1em; }
.pending .btn-row { margin-top: 28px; }

.link-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.link-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 6px; border-bottom: 1px solid var(--line); transition: background .3s, padding .4s var(--ease); }
.link-list li:hover { background: var(--paper); padding-left: 14px; }
.link-list .title { font-family: var(--display); font-weight: 700; font-size: 24px; }
.link-list .title a { color: var(--ink); }
.link-list .title a:hover { color: var(--navy); }
.link-list .sub { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--muted); }
.link-list .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.link-list .btn { min-width: 0; padding: 12px 22px; font-size: 13px; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.timeline .when { font-family: var(--caps); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; color: var(--navy); }
.timeline strong { color: var(--ink); }
.timeline .sub { display: block; font-size: 16px; color: var(--muted); }
.day + .day { margin-top: 72px; }
.day-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--navy-900); color: #dfe4ee; padding: 72px 0 30px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: start; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-grid > div { padding: 0 32px; }
.footer-grid > div:first-child { padding-left: 0; }
.footer-grid > div + div { border-left: 1px solid var(--line-dark); }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.footer-brand strong { display: block; font-family: var(--display); font-size: 24px; color: #fff; }
.footer-brand span { font-style: italic; color: #aeb7c9; font-size: 16px; }
.footer-grid h3 { font-family: var(--caps); font-weight: 600; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: #aeb7c9; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 17px; }
.footer-grid li a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.footer-grid li a:hover { text-decoration: none; background-size: 100% 1px; }
.contact-line { display: flex; flex-direction: column; margin-bottom: 18px; }
.contact-line span { font-family: var(--caps); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #8d97ad; }
.contact-line a, .contact-line strong { display: block; font-size: 19px; font-weight: 500; color: #fff; }
.footer-note { font-style: italic; color: #aeb7c9; font-size: 16px; margin: 6px 0 0; }
.footer-bottom { display: flex; justify-content: center; padding-top: 28px; font-family: var(--caps); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 14px; color: #8d97ad; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { padding: 0 !important; border-left: 0 !important; }
  .footer-grid > div + div { margin-top: 32px; padding-top: 32px !important; border-top: 1px solid var(--line-dark); }
}

/* ==========================================================
   Motion (only with JS, and only if the visitor allows it)
   ========================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .12em; margin: 0 -.08em -.12em; }
.js .split .w > span { display: inline-block; transform: translateY(110%); transition: transform .65s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.js .split.in .w > span { transform: none; }

.js [data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-stagger].in > * { opacity: 1; transform: none; }

.js hr.rule { transform: scaleX(0); transition: transform 1s var(--ease); }
.js hr.rule.in { transform: none; }

.js .unveil { clip-path: inset(10% 8% 10% 8%); opacity: .25; transition: clip-path 1.1s var(--ease), opacity .8s var(--ease); }
.js .unveil.in { clip-path: inset(-40px -40px -80px -40px); opacity: 1; }

.js .hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise .85s var(--ease) forwards; }
.js .hero-inner > :nth-child(1) { animation-name: pop; animation-delay: 0s; }
.js .hero-inner > :nth-child(2) { animation-delay: .12s; }
.js .hero-inner > :nth-child(3) { opacity: 1; transform: none; animation: none; }
.js .hero-inner > :nth-child(4) { animation-delay: .4s; }
.js .hero-inner > :nth-child(5) { animation-delay: .52s; }
.js .hero-facts { opacity: 0; animation: fade .8s var(--ease) .6s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.82) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

.motion-paused .marquee-track, .motion-paused .live-dot, .motion-paused .globe-card .sky i { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .live-dot, .globe-card .sky i, .menu-open .nav { animation: none !important; }
  .js .reveal, .js .split .w > span, .js [data-stagger] > *, .js hr.rule, .js .unveil, .js .hero-inner > *, .js .hero-facts {
    opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important;
  }
  .scroll-progress { display: none; }
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  .site-header, .site-footer, .toc, .btn-row, .skip, .hero-canvas, .hero-grain, .motion-toggle, .scroll-progress, .marquee, .film { display: none !important; }
  .page-head, .hero { background: none !important; color: var(--ink) !important; padding-top: 0 !important; min-height: 0; }
  .page-head h1, .hero h1 { color: var(--ink) !important; }
  .guide-layout { display: block; padding: 0; }
  .js .reveal, .js .split .w > span, .js [data-stagger] > *, .js hr.rule, .js .unveil { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  body { font-size: 12pt; }
}

/* Native scroll-driven effects (no JavaScript scroll listener) where the browser supports them */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress.native { animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @media (min-width: 701px) {
      .hero-inner.native { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 620px; }
      @keyframes heroOut { to { transform: translateY(170px); opacity: 0; } }
    }
  }
}



/* ==========================================================
   Study-guide tools
   ========================================================== */
button.status { background: transparent; cursor: pointer; font-family: var(--caps); line-height: inherit; transition: background-color .3s, color .3s; }
.page-head button.status:hover { background: #fff; color: var(--navy-900); }

.pager { border-top: 1px solid var(--line); background: var(--paper); }
.pager .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.pager-link {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px;
  padding: 40px 28px; color: var(--ink); transition: color .45s var(--ease);
}
.pager-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.pager-link:hover { color: #fff; text-decoration: none; }
.pager-link:hover::before { transform: scaleY(1); transform-origin: top; }
.pager-link.next { text-align: right; border-left: 1px solid var(--line); }
.pager-link .dir { font-family: var(--caps); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); transition: color .4s; }
.pager-link:hover .dir { color: #b8c6e8; }
.pager-link .nm { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; }
@media (max-width: 700px) {
  .pager .wrap { grid-template-columns: 1fr; padding: 0; }
  .pager-link { padding: 28px var(--gutter); }
  .pager-link.next { border-left: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================
   Back to top & Instagram button
   ========================================================== */
.to-top {
  position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 20px; box-shadow: 0 14px 30px -12px rgba(7,15,36,.55);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s ease, transform .45s var(--ease), background-color .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); text-decoration: none; }
html:not(.js) .to-top { display: none; }

.ig-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.55); color: #fff;
  font-family: var(--caps); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .3s, border-color .3s;
}
.ig-btn img { width: 18px; height: 18px; }
.ig-btn:hover { background: var(--red); border-color: var(--red); text-decoration: none; }
.footer-grid > .footer-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; justify-items: start; }
.footer-brand .ig-btn { grid-column: 1 / -1; }

@media print { .pager, .to-top, .print-btn, .ig-btn { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ==========================================================
   Photo gallery
   ========================================================== */
.gallery { background: var(--white); padding-top: 0; }
.gallery-title { font-size: clamp(38px, 5.2vw, 64px); font-weight: 900; text-align: center; margin: 0 0 clamp(40px, 5vw, 64px); }
.gallery-grid {
  display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px;
  height: clamp(460px, 52vw, 700px);
}
.g-item { position: relative; margin: 0; overflow: hidden; background: var(--navy-900); }
.g-main { grid-row: 1 / span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7,15,36,.72) 0%, rgba(7,15,36,0) 42%);
}
.g-item figcaption {
  position: absolute; left: 22px; bottom: 18px; z-index: 1; color: #fff;
  font-family: var(--caps); font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
}
.g-main figcaption { font-size: 15px; left: 28px; bottom: 24px; }
@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; gap: 12px; }
  .g-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .g-item:not(.g-main) { aspect-ratio: 4 / 5; }
  .g-item figcaption { left: 14px; bottom: 12px; font-size: 12px; letter-spacing: .14em; }
}
@media print { .gallery { display: none; } }

/* Designer credit: a faint vertical line on the banner's right edge */
.made-by {
  position: absolute; right: 10px; top: 50%; z-index: 2; writing-mode: vertical-rl; transform: translateY(-50%);
  font-family: var(--caps); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.13); transition: color .4s;
}
.made-by:hover, .made-by:focus-visible { color: rgba(255,255,255,.6); text-decoration: none; }
@media (max-width: 700px) { .made-by { right: 3px; font-size: 9px; letter-spacing: .26em; } }
@media print { .made-by { display: none; } }


/* ==========================================================
   Premium layer
   ========================================================== */

/* Cross-fade between pages (browsers that support it; others navigate normally) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Opening curtain, first visit of the session only.
   Pure CSS animation on compositor-friendly properties: runs smoothly even when the main
   thread is busy, never blocks clicks or scrolling, and is gone after ~1s. */
html.intro::before, html.intro::after { pointer-events: none; will-change: transform, opacity; }
html.intro::before {
  content: ""; position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(90% 70% at 50% 45%, #1d3a78 0%, #0c1c3f 55%, #060d1f 100%);
  animation: curtainUp .6s cubic-bezier(.7, 0, .2, 1) .42s both;
}
html.intro::after {
  content: ""; position: fixed; left: 50%; top: 50%; z-index: 201;
  width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%;
  background: url("../assets/logo-192.webp") center / cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 0 12px rgba(255,255,255,.05), 0 0 0 13px rgba(255,255,255,.15);
  animation: logoLife .62s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes curtainUp { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -100%, 0); } }
@keyframes logoLife {
  0% { opacity: 0; transform: scale(.82); }
  35% { opacity: 1; transform: scale(1); }
  62% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate3d(0, -40px, 0) scale(.9); }
}

/* Slimmer header once scrolled */
.site-header .wrap { transition: min-height .45s var(--ease); }
.site-header.scrolled .wrap { min-height: 64px; }
.site-header.scrolled .brand img { transform: scale(.88); }

/* Round, icon-only motion toggle */
.motion-toggle {
  width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%;
  font-size: 11px; letter-spacing: 0;
}
.motion-toggle .icon { font-size: 10px; }

/* Magnetic buttons: the JS sets --mx/--my */
@media (hover: hover) and (pointer: fine) {
  .btn.magnetic { transform: translate(var(--mx, 0), var(--my, 0)); transition: color .45s var(--ease), border-color .45s var(--ease), transform .35s var(--ease); }
}

/* Gallery: clickable photos + viewer */
.g-open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g-open:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(4, 8, 20, .97); color: #fff; overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(4, 8, 20, .6); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .4s var(--ease); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 18px; padding: 72px 72px 40px; max-width: 100%; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.lightbox figcaption { font-family: var(--caps); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; color: rgba(255,255,255,.8); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.3); cursor: pointer; font-size: 20px;
  transition: background-color .3s, border-color .3s;
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lb-next { right: 20px; top: 50%; margin-top: -24px; }
@media (max-width: 700px) {
  .lightbox figure { padding: 70px 12px 30px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; }
}

@media print { .lightbox { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html.intro::before, html.intro::after { display: none !important; }
  .lightbox[open] { animation: none; }
}

@media (max-width: 560px) {
  .footer-bottom { text-align: center; letter-spacing: .1em; font-size: 12px; }
}


/* ==========================================================
   Inner pages: animated header + entrance, refined lists
   ========================================================== */
.page-head .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .6; }
.page-head .wrap { z-index: 1; }
.page-head .motion-toggle { z-index: 2; }
.js .page-head .wrap > * { opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; }
.js .page-head .wrap > .seal { animation-name: pop; animation-delay: 0s; }
.js .page-head .wrap > .eyebrow { animation-delay: .08s; }
.js .page-head .wrap > h1 { opacity: 1; transform: none; animation: none; }
.js .page-head .wrap > .lede { animation-delay: .3s; }
.js .page-head .wrap > .badges, .js .page-head .wrap > .btn-row { animation-delay: .42s; }

.link-list li { position: relative; }
.link-list li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red);
  transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease);
}
.link-list li:hover::before { transform: scaleY(1); transform-origin: top; }

/* Faster, crisper interaction feedback everywhere */
.btn, .btn::before, .c-row, .c-row::before, .pager-link, .pager-link::before, .dropdown a, .nav-link::after, .nav-toggle::after { transition-duration: .35s !important; }

@media (prefers-reduced-motion: reduce) {
  .js .page-head .wrap > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Low Power Mode stand-in: the film shown as an animated image (Safari) */
.film-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #03060f; display: none; }
.film-screen.img-mode .film-img { display: block; }
.film-screen.img-mode.img-paused .film-img { visibility: hidden; }


/* ==========================================================
   The path to a resolution
   ========================================================== */
.process { background: var(--white); border-top: 1px solid var(--line); }
.p-track { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.p-track::before, .p-track::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; }
.p-track::before { background: var(--line); }
.p-track::after { background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.p-track.in::after { transform: scaleX(1); }
.p-track li { position: relative; padding-right: 18px; }
.p-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--ink);
  font-family: var(--display); font-style: italic; font-size: 19px; color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s;
}
.p-track li:hover .p-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.p-track h3 { font-size: 22px; margin-bottom: 8px; }
.p-track p { font-size: 16px; color: var(--muted); line-height: 1.55; margin: 0; }
@media (max-width: 900px) {
  .p-track { grid-template-columns: 1fr; gap: 30px; }
  .p-track::before, .p-track::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .p-track::after { transform: scaleY(0); transform-origin: top; }
  .p-track.in::after { transform: scaleY(1); }
  .p-track li { padding: 0 0 0 82px; min-height: 56px; }
  .p-num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ==========================================================
   Delegate glossary (Guides page)
   ========================================================== */
.glossary { background: var(--paper); border-top: 1px solid var(--line); }
.g-terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.g-terms li { position: relative; }
.term {
  all: unset; box-sizing: border-box; width: 100%; height: 170px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center;
  background: #fff; border-bottom: 4px solid var(--navy); box-shadow: 0 20px 34px -24px rgba(7,15,36,.45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.term:hover { transform: translateY(-4px); box-shadow: 0 28px 40px -24px rgba(7,15,36,.55); }
.term:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.t-name { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; color: var(--ink); }
.t-hint { font-family: var(--caps); font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.t-def {
  position: absolute; inset: 0; margin: 0; padding: 20px; display: flex; align-items: center; text-align: center;
  background: var(--navy); color: #fff; font-size: 16px; line-height: 1.5; border-bottom: 4px solid var(--red);
  opacity: 0; visibility: hidden; transform: perspective(600px) rotateX(-70deg); transform-origin: top; cursor: pointer;
  transition: opacity .35s ease, transform .45s var(--ease), visibility 0s .45s;
}
.g-terms li.open .t-def { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .45s var(--ease), visibility 0s; }
@media (max-width: 900px) { .g-terms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .g-terms { gap: 12px; } .term { height: 140px; } .t-name { font-size: 18px; } .t-def { font-size: 14px; padding: 14px; } }

@media (prefers-reduced-motion: reduce) {
  .p-track::after { transform: none !important; }
}

/* Flag band (replaces the text marquee) */
.marquee.flags { padding: 22px 0; background: var(--navy-900); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.marquee.flags .marquee-track { animation-duration: 70s; }
.marquee .fl {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 30px;
  font-family: var(--caps); font-weight: 700; font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.82); white-space: nowrap; line-height: 1;
}
.marquee .fl img { width: 44px; height: 33px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 6px 14px -6px rgba(0,0,0,.6); }
.marquee.flags:hover .marquee-track { animation-play-state: paused; }


/* ==========================================================
   Phone fit-and-finish
   ========================================================== */
/* Big headlines never wider than the screen */
.headline { font-size: clamp(38px, 11.5vw, 96px); overflow-wrap: anywhere; }
/* Sized to its column, so "NARRATIVES" never splits mid-word */
.theme-grid > :first-child { container-type: inline-size; }
.theme-grid .headline { font-size: clamp(34px, 15cqi, 96px); overflow-wrap: normal; }
h1, h2 { overflow-wrap: break-word; }
@media (max-width: 380px) {
  .hero h1 { font-size: 42px; }
  .section-head h2, .film-head h2, .gallery-title { font-size: 34px; }
  .cta h2 { font-size: 32px; }
  .page-head h1 { font-size: 38px; }
}
/* Comfortable tap targets for the film controls */
@media (max-width: 700px) {
  .film-bar { right: 8px; bottom: 8px; gap: 6px; }
  .film-btn { min-height: 40px; padding: 8px 12px; font-size: 12px; }
}
.motion-toggle .icon, .film-btn .ic { font-size: 12px; }

/* Footer: Instagram button sits in the Contact column */
.footer-grid .ig-btn { margin: 0 0 24px; }
.footer-brand .ig-btn { grid-column: auto; }

/* Phones: tighter rhythm, no floating back-to-top over the text */
@media (max-width: 700px) {
  :root { --space: 72px; }
  .to-top { display: none; }
  .section-head { margin-bottom: 40px; }
}
.ig-btn { white-space: nowrap; letter-spacing: .12em; font-size: 13px; }
@media (min-width: 861px) { .footer-grid { grid-template-columns: 1fr 1.25fr .85fr; } }
.footer-brand strong { white-space: nowrap; font-size: clamp(20px, 2vw, 24px); }
.film-vol { display: inline-flex; align-items: center; padding: 0 12px; background: rgba(5,10,21,.72); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.film-volume { width: 90px; margin: 0; cursor: pointer; accent-color: #fff; background: transparent; }
@media (max-width: 560px) { .film-volume { width: 64px; } .film-vol { padding: 0 8px; } }
.pdf-export { position: absolute; left: -99999px; top: 0; width: 720px; background: #fff; color: #111; padding: 0; }
.pdf-export, .pdf-export * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.html2pdf__container .pdf-export { position: static; left: auto; width: auto; }
.pdf-export, .pdf-export * { box-sizing: border-box; }
.pdf-export .guide { width: 100%; max-width: none; margin: 0; padding: 0; }

/* ==========================================================
   Applications
   ========================================================== */
.apply-hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 0; }
.apply-card {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0;
  background: radial-gradient(120% 140% at 0% 0%, #1d3d80 0%, var(--navy-800) 50%, var(--navy-900) 100%);
  box-shadow: 0 40px 90px -40px rgba(7,15,36,.55), 0 0 0 1px rgba(7,15,36,.08);
}
.apply-card::before {                    /* stars */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 34% 78%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 58% 14%, #fff, transparent), radial-gradient(1px 1px at 72% 64%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 88% 30%, #fff, transparent), radial-gradient(1px 1px at 22% 52%, #fff, transparent),
    radial-gradient(1px 1px at 46% 40%, #fff, transparent), radial-gradient(1.2px 1.2px at 94% 86%, #fff, transparent);
}
.apply-card::after {                     /* fine inner frame */
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.12); pointer-events: none;
}
.apply-main { padding: clamp(36px, 5vw, 72px); }
.apply-main h2 { color: #fff; font-size: clamp(38px, 5.4vw, 68px); font-weight: 900; line-height: 1; margin: 14px 0 22px; }
.apply-kicker { font-family: var(--caps); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; font-size: 13px; color: #b8c6e8; margin: 22px 0 0; }
.apply-note { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--on-dark-muted); max-width: 30em; margin: 0 0 34px; }
.apply-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.28);
  font-family: var(--caps); font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #fff;
}
.apply-status i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); display: inline-block; }
.apply-status.open { border-color: rgba(200,16,46,.7); }
.apply-status.open i { background: var(--red); }
.apply-action .btn { font-size: 15px; padding-inline: 34px; }
.apply-action .is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.apply-small { font-size: 14px; color: rgba(255,255,255,.5); margin: 14px 0 0; font-style: italic; }
.apply-facts {
  list-style: none; margin: 0; padding: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--line-dark); background: rgba(3,7,18,.22);
  display: flex; flex-direction: column; justify-content: center;
}
.apply-facts li { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.apply-facts li:last-child { border-bottom: 0; }
.apply-facts span { display: block; font-family: var(--caps); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #9fb0d6; margin-bottom: 4px; }
.apply-facts b { font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff; line-height: 1.3; }

.apply-how, .apply-pick { padding-top: var(--space); padding-bottom: 0; }
.apply-pick { padding-bottom: var(--space); }
.apply-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.apply-steps li { padding: 34px clamp(18px, 2.4vw, 36px) 8px 0; }
.apply-steps li + li { border-left: 1px solid var(--line); padding-left: clamp(18px, 2.4vw, 36px); }
.apply-steps .num { display: block; font-family: var(--display); font-style: italic; font-size: 44px; color: var(--red); line-height: 1; margin-bottom: 18px; }
.apply-steps h3 { font-size: 26px; margin-bottom: 10px; }
.apply-steps p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0; }
.apply-steps a { text-decoration: underline; text-underline-offset: 3px; }

.pick-grid { display: grid; gap: 34px; }
.pick-tier { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.pick-level { margin: 10px 0 0; font-family: var(--caps); font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--navy); }
.pick-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pick {
  display: inline-flex; align-items: baseline; gap: 12px; padding: 14px 20px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .3s, background .3s, color .3s, transform .4s var(--ease);
}
.pick b { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--navy); transition: color .3s; }
.pick span { font-size: 17px; color: var(--muted); transition: color .3s; }
.pick:hover { text-decoration: none; background: var(--navy); border-color: var(--navy); transform: translateY(-2px); }
.pick:hover b, .pick:hover span { color: #fff; }


@media (max-width: 860px) {
  .apply-card { grid-template-columns: 1fr; }
  .apply-facts { border-left: 0; border-top: 1px solid var(--line-dark); }
  .apply-steps { grid-template-columns: 1fr; }
  .apply-steps li, .apply-steps li + li { border-left: 0; padding: 26px 0; }
  .apply-steps li + li { border-top: 1px solid var(--line); }
  .pick-tier { grid-template-columns: 1fr; gap: 12px; }
  .pick-level { margin: 0; }
}
@media (max-width: 480px) {
  .apply-card::after { inset: 8px; }
  .apply-main { padding: 34px 24px; }
  .apply-facts { padding: 20px 24px 28px; }
  .apply-action .btn { width: 100%; justify-content: center; }
  .pick { width: 100%; }
}
.apply-pick .section-head .lede { margin-left: 0; }

/* ---------- Conference schedule ---------- */
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.day-head .day-title { margin: 0; }
.day-venue { margin: 0; font-family: var(--caps); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; color: var(--navy); }
.sched-wrap { overflow-x: auto; box-shadow: 0 0 0 1px var(--line); }
.sched-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 18px; }
.sched-table thead th { background: var(--navy-900); color: #fff; text-align: left; font-family: var(--caps); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; padding: 16px 20px; vertical-align: bottom; }
.sched-table thead th span { display: block; margin-top: 3px; letter-spacing: .12em; color: #aeb7c9; font-size: 13px; }
.sched-table td, .sched-table tbody th { padding: 16px 20px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); font-weight: 400; }
.sched-table tbody th { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 17px; }
.sched-table .when, .sched-table.groups td { font-family: var(--caps); font-weight: 600; letter-spacing: .1em; font-size: 16px; color: var(--navy); white-space: nowrap; }
.sched-table .note { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 400; font-size: 15px; font-style: italic; color: var(--muted); }
.sched-table .k-break td, .sched-table .k-break th { background: var(--paper); }
.sched-table .k-break th { font-weight: 500; font-style: italic; color: var(--muted); }
.sched-table .k-key th { box-shadow: inset 3px 0 0 var(--red); }
.sched-table .k-key td, .sched-table .k-key th { background: var(--navy-soft); }
.sched-table .span { text-align: center; }
.sched-table .all { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
@media (max-width: 640px) {
  .sched-table { font-size: 16px; }
  .sched-table thead th, .sched-table td, .sched-table tbody th { padding: 12px 10px; }
  .sched-table thead th { font-size: 12px; letter-spacing: .1em; }
  .sched-table thead th span { font-size: 11px; letter-spacing: .04em; }
  .sched-table tbody th { font-size: 15px; }
  .sched-table .when, .sched-table.groups td { font-size: 14px; letter-spacing: .04em; white-space: normal; }
}

/* ---------- Invitation letter ---------- */
.apply-invite { padding-top: var(--space); }
.invite-card { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line); background: var(--paper); }
.invite-text { padding: clamp(28px, 4vw, 52px); }
.invite-text h2 { margin: 6px 0 14px; font-size: clamp(28px, 3.4vw, 40px); }
.invite-text p { color: var(--muted); }
.invite-text .btn { margin-top: 10px; }
.invite-text .apply-small { margin-top: 10px; color: var(--muted); }
.invite-facts { list-style: none; margin: 0; padding: clamp(28px, 4vw, 52px); background: #fff; border-left: 1px solid var(--line); display: grid; align-content: center; }
.invite-facts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.invite-facts li:last-child { border-bottom: 0; }
.invite-facts span { display: block; font-family: var(--caps); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--navy); }
.invite-facts b { font-family: var(--display); font-size: 20px; color: var(--ink); }
@media (max-width: 800px) { .invite-card { grid-template-columns: 1fr; } .invite-facts { border-left: 0; border-top: 1px solid var(--line); } }

/* Hide the "Powered by Netlify" badge Netlify injects for visitors (the owner-only toolbar is untouched). */
#nl-badge-frame { display: none !important; }
