@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* EXIM 2X — Phase 2 editorial system
   Thesis: a Japanese integrated-report reading room — deep corporate-blue cover with a
   concentric-ripple texture, white paper interior ruled by hairline blue, card objects
   with locally-stored imagery, heavy serif Thai display over a light body, and long-ease
   restrained motion that prefers small travel over spectacle. */

:root {
  --paper: #FBFAF7;
  --ink: #16181A;
  --ink-2: #4A4F55;
  --ink-3: #767C84;
  --blue-deep: #0B3D74;
  --blue: #1463A8;
  --cyan: #2F87C8;
  --rule-blue: #CFE0EF;
  --sky-soft: #EAF3FB;
  --amber: #8A6D2F;
  --amber-soft: #F5EFE0;
  --night: #07111D;
  --night-2: #13283D;
  --wine: #4A2035;
  --wine-2: #70404C;
  --copper: #C88967;
  --copper-soft: #E8D2C5;
  --ivory: #F8F4EE;
  --card-shadow: 0 1px 2px rgba(11, 61, 116, .06), 0 10px 30px rgba(11, 61, 116, .08);
  --card-shadow-hover: 0 2px 4px rgba(11, 61, 116, .08), 0 18px 44px rgba(11, 61, 116, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Noto Serif Thai", "Sarabun", "Thonburi", system-ui, serif;
  --body: "IBM Plex Sans Thai", "Sarabun", "Thonburi", system-ui, sans-serif;
  color-scheme: light;
  font-size: 16px;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  word-break: normal;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

button, input { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--blue); }
img, svg { max-width: 100%; }

h1, h2, h3 {
  margin-block: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .01em;
  text-wrap: balance;
}

h1 { font-size: 2.4rem; line-height: 1.3; }
h2 { font-size: 1.6rem; line-height: 1.35; }
h3 { font-size: 1.2rem; line-height: 1.4; }

p, li, dt, dd, label, legend, button, input, time, small, span { letter-spacing: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 40;
  inset: .75rem auto auto .75rem;
  padding: .7rem 1rem;
  border-radius: .5rem;
  background: var(--blue-deep);
  color: #FFFFFF;
  transform: translateY(-160%);
  transition: transform .45s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

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

.liquid-glass {
  position: relative;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, .01);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .15) 20%,
    rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, .15) 80%, rgba(255, 255, 255, .45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Shell ─────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--rule-blue);
  background: var(--paper);
}

.wordmark { display: flex; flex-direction: column; text-decoration: none; }
.wordmark span { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.wordmark small { color: var(--ink-3); font-size: .75rem; }
.site-header nav { display: flex; gap: 1.5rem; font-size: .875rem; }
.site-header nav a { text-decoration: none; }

.site-header--inner {
  position: relative;
  z-index: 20;
  min-height: 5rem;
  overflow: hidden;
  border-bottom-color: rgba(200, 137, 103, .42);
  background:
    radial-gradient(circle at 88% -80%, rgba(200, 137, 103, .34), transparent 42%),
    linear-gradient(115deg, var(--night) 0%, #12263A 52%, var(--wine) 100%);
  color: #FFFFFF;
}
.site-header--inner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: .7;
}
.site-header--inner > * { position: relative; z-index: 1; }
.site-header--inner .wordmark span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}
.site-header--inner .wordmark small { color: rgba(255, 255, 255, .66); }
.inner-nav {
  align-items: center;
  gap: .15rem !important;
  padding: .32rem;
  border-radius: 999px;
  background-color: rgba(2, 10, 20, .28);
}
.inner-nav > * { position: relative; z-index: 1; }
.inner-nav a { padding: .46rem .75rem; border-radius: 999px; color: rgba(255, 255, 255, .82); transition: background-color .3s var(--ease), color .3s var(--ease); }
.inner-nav a:hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 7rem;
  padding: 3rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid rgba(200, 137, 103, .38);
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 137, 103, .16), transparent 32%),
    linear-gradient(115deg, var(--night), var(--night-2) 58%, var(--wine));
  color: #FFFFFF;
  font-size: .875rem;
}

.site-footer p { margin: 0; }
.site-footer p:last-child { color: rgba(255, 255, 255, .65); }

.eyebrow, .rail-label, .source-label, .meta-label, .empty-kicker {
  margin: 0 0 .75rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* ── Cover / hero — cinematic window onto global markets ──────────── */

.home-page { position: relative; }

.home-page .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  min-height: 0;
  padding: clamp(1rem, 2.8vw, 2rem) clamp(1.1rem, 4vw, 4rem);
  border-bottom: 0;
  background: none;
  color: #FFFFFF;
}

.home-page .wordmark { position: relative; z-index: 1; text-align: left; }
.home-page .wordmark span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1;
}
.home-page .wordmark small { color: rgba(255, 255, 255, .72); }
.home-page .site-header nav a:hover { color: #FFFFFF; }

.hero-desktop-nav {
  z-index: 1;
  align-items: center;
  gap: .25rem !important;
  padding: .38rem .42rem;
  border-radius: 999px;
  background-color: rgba(5, 18, 35, .2);
  color: rgba(255, 255, 255, .88);
  font-family: var(--body);
  font-size: .78rem !important;
}

.hero-desktop-nav > * { position: relative; z-index: 1; }
.hero-desktop-nav a { padding: .55rem .8rem; border-radius: 999px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.hero-desktop-nav a:hover { background: rgba(255, 255, 255, .1); text-decoration: none !important; }
.hero-desktop-nav .hero-nav-cta { margin-left: .25rem; padding-inline: 1.05rem; background: #FFFFFF; color: #10263D; font-weight: 600; }
.hero-desktop-nav .hero-nav-cta:hover { background: #EDF5FB; color: #10263D; }

.hero-menu-toggle {
  z-index: 2;
  display: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(5, 18, 35, .22);
  color: #FFFFFF;
  cursor: pointer;
}

.hero-menu-glyph, .hero-menu-glyph span { display: block; }
.hero-menu-glyph { position: relative; z-index: 1; width: 1.2rem; height: .9rem; }
.hero-menu-glyph span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: top .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.hero-menu-glyph span:first-child { top: .22rem; }
.hero-menu-glyph span:last-child { top: .68rem; }
.hero-menu-toggle[aria-expanded="true"] .hero-menu-glyph span:first-child { top: .45rem; transform: rotate(45deg); }
.hero-menu-toggle[aria-expanded="true"] .hero-menu-glyph span:last-child { top: .45rem; transform: rotate(-45deg); }

.hero-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(2, 11, 20, .96), rgba(2, 6, 12, .98));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1), visibility .5s cubic-bezier(.4, 0, .2, 1);
}

.hero-mobile-menu[aria-hidden="false"] { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.hero-mobile-menu a {
  display: grid;
  min-height: 3rem;
  place-items: center;
  padding-inline: .5rem;
  color: #FFFFFF;
  font-family: var(--display);
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1);
}
.hero-mobile-menu[aria-hidden="false"] a { opacity: 1; transform: none; }
.hero-mobile-menu[aria-hidden="false"] a:nth-child(1) { transition-delay: .1s; }
.hero-mobile-menu[aria-hidden="false"] a:nth-child(2) { transition-delay: .15s; }
.hero-mobile-menu[aria-hidden="false"] a:nth-child(3) { transition-delay: .2s; }
.hero-mobile-menu[aria-hidden="false"] a:nth-child(4) { transition-delay: .25s; }
.hero-mobile-menu[aria-hidden="false"] a:nth-child(5) { transition-delay: .3s; }
.hero-mobile-menu .hero-mobile-cta { margin-top: 1rem; padding: .75rem 1.5rem; border-radius: 999px; background: #FFFFFF; color: #10263D; font-family: var(--body); font-size: 1rem; }
.hero-menu-open { overflow: hidden; }

.masthead {
  position: relative;
  min-height: max(44rem, 100svh);
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-blue);
  color: #FFFFFF;
  background: #050A10;
  isolation: isolate;
}

.hero-media, .hero-video, .hero-scrim, .hero-window { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: 0; background: #050A10; }
.hero-video {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1s ease-in-out;
}
.hero-video.is-active { opacity: 1; }
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, .4) 0%, rgba(2, 8, 15, .08) 28%, rgba(2, 8, 15, .18) 66%, rgba(2, 8, 15, .62) 100%),
    radial-gradient(circle at 50% 45%, rgba(7, 36, 62, .02) 0%, rgba(3, 15, 28, .34) 78%);
  transition: background-color .7s var(--ease);
}
.hero-window {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: scale(1.03);
  animation: train-bob 3s ease-in-out infinite;
}
@keyframes train-bob {
  0%, 100% { transform: translateY(0) scale(1.03); }
  50% { transform: translateY(-6px) scale(1.03); }
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: max(44rem, 100svh);
  padding: clamp(7.5rem, 13vh, 9rem) clamp(1.25rem, 6vw, 6rem) clamp(1.25rem, 3vh, 2rem);
}

.hero-copy {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 58rem);
  padding-block: clamp(1rem, 5vh, 3rem);
  color: #FFFFFF;
  text-align: center;
  transform: translateY(-2.2vh);
  transition: color .7s var(--ease);
}

.hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2% -8%;
  background: radial-gradient(ellipse at center, rgba(1, 10, 20, .4) 0%, rgba(1, 10, 20, .18) 50%, transparent 76%);
  filter: blur(18px);
  pointer-events: none;
  transition: background .7s var(--ease);
}

.hero-badge {
  margin: 0 0 1.25rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  color: inherit;
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 500;
}
.hero-badge > *, .hero-search > * { position: relative; z-index: 1; }
.masthead h1 {
  max-width: 16ch;
  color: inherit;
  font-size: clamp(2.9rem, 6.6vw, 5rem);
  line-height: 1.3;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .22);
  transition: color .7s var(--ease), text-shadow .7s var(--ease);
}
.masthead h1 span { display: block; white-space: nowrap; }
.standfirst {
  max-width: 51ch;
  margin: 1.2rem 0 1.5rem;
  color: color-mix(in srgb, currentColor 86%, transparent);
  font-family: var(--body);
  font-size: clamp(.95rem, 1.35vw, 1.08rem);
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .34);
}

.hero-search {
  display: flex;
  width: min(100%, 27rem);
  padding: .36rem;
  border-radius: 999px;
  background-color: rgba(4, 18, 34, .18);
  font-family: var(--body);
}
.hero-search input {
  min-width: 0;
  flex: 1;
  padding: .72rem 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: .87rem;
}
.hero-search input::placeholder { color: color-mix(in srgb, currentColor 68%, transparent); }
.hero-search button {
  padding: .72rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  color: #10263D;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.hero-search button:hover { transform: translateY(-1px); background: #EDF5FB; }

.hero-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem;
  margin-top: 1rem;
  padding: .25rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(4, 18, 34, .42);
  font-family: var(--body);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-switcher button {
  min-height: 2.15rem;
  padding: .4rem .75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .76rem;
  opacity: .52;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.hero-switcher button:hover { opacity: .82; }
.hero-switcher button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); opacity: 1; }

.hero-stats {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: auto 0 0;
  color: rgba(255, 255, 255, .72);
  font-family: var(--body);
  font-size: .73rem;
}
.hero-stats div { display: flex; align-items: baseline; gap: .35rem; padding-inline: clamp(.7rem, 2vw, 1.7rem); }
.hero-stats div + div { border-left: 1px solid rgba(255, 255, 255, .3); }
.hero-stats dt { color: #FFFFFF; font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-stats dd { margin: 0; }

.masthead[data-active-tone="dark"] .hero-copy { color: #182C41; }
.masthead[data-active-tone="dark"] .hero-copy::after { background: radial-gradient(ellipse at center, rgba(246, 250, 252, .72) 0%, rgba(239, 246, 250, .42) 52%, transparent 78%); }
.masthead[data-active-tone="dark"] .hero-copy h1,
.masthead[data-active-tone="dark"] .standfirst { text-shadow: 0 1px 20px rgba(255, 255, 255, .45); }
.masthead[data-active-tone="dark"] .hero-search { background-color: rgba(255, 255, 255, .12); }
.masthead[data-active-tone="dark"] .hero-search button { background: #182C41; color: #FFFFFF; }
.masthead[data-active-tone="dark"] .hero-switcher { border-color: rgba(24, 44, 65, .16); background: rgba(245, 249, 252, .56); }
.masthead[data-active-tone="dark"] .hero-switcher button[aria-pressed="true"] { background: rgba(24, 44, 65, .14); box-shadow: inset 0 0 0 1px rgba(24, 44, 65, .18); }
.masthead[data-active-tone="dark"] .hero-scrim { background-color: rgba(241, 247, 251, .12); }

.home-page :focus-visible { outline-color: #FFFFFF; }
.masthead[data-active-tone="dark"] :focus-visible { outline-color: #182C41; }

.text-link { display: inline-block; color: var(--blue); font-weight: 500; }

/* ── Course spine ──────────────────────────────────────────────────── */

.session-spine, .latest {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  max-width: 86rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 8vw, 8rem);
}

.section-intro p { max-width: 34ch; color: var(--ink-2); }
.section-intro h2 { font-size: 2rem; }
.session-spine ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--blue-deep); }
.session-spine li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule-blue); }
.session-spine li span:last-child { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.session-number { font-variant-numeric: tabular-nums; color: var(--ink-3); font-family: var(--display); }
.session-spine small { color: var(--ink-3); }
.session-live { color: var(--blue-deep); }
.session-live .session-number { color: var(--blue); font-weight: 700; }
.session-live small { color: var(--blue); }

/* ── Cards ─────────────────────────────────────────────────────────── */

.latest { padding-top: 5rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.75rem;
}

.card, .archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--copper-soft);
  border-radius: 1rem;
  background: #FFFFFF;
  box-shadow: var(--card-shadow);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}

.card:hover, .archive-card:hover,
.card:focus-within, .archive-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sky-soft);
}
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.card:hover .card-media img, .archive-card:hover .card-media img { transform: scale(1.045); }
.card-media--document { padding: .35rem; background: linear-gradient(145deg, var(--night), var(--wine)); }
.card-media--document img { object-fit: contain; border-radius: .35rem; background: #FFFFFF; }
.card:hover .card-media--document img, .archive-card:hover .card-media--document img { transform: scale(1.018); }
.card-media--type {
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
  background-image: linear-gradient(160deg, var(--night) 0%, var(--night-2) 55%, var(--wine-2) 100%);
}
.card-media--type .visual-word {
  color: rgba(255, 255, 255, .92);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
}
.card-session-badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: rgba(74, 32, 53, .88);
  color: #FFFFFF;
  font-size: .75rem;
  font-weight: 500;
}

.card-body { display: flex; flex: 1; flex-direction: column; gap: .7rem; padding: 1.25rem 1.4rem 1.5rem; }
.card-body h2, .card-body h3 { font-size: 1.22rem; line-height: 1.4; }
.card-body h2 a, .card-body h3 a { text-decoration: none; }
.card-body > p { margin: 0; color: var(--ink-2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.chip-line { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .4rem; min-height: 3.1rem; }
.meta-chip {
  display: inline-block;
  padding: .18rem .68rem;
  border-radius: 999px;
  background: #F3E8E1;
  color: var(--wine);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.5;
}

.row-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--copper-soft); color: var(--ink-3); font-size: .8125rem; }
.row-meta time { color: var(--wine-2); font-weight: 500; }

/* ── Archive ───────────────────────────────────────────────────────── */

.archive-page, .collection-page, .article-page { background: var(--ivory); }
.archive-shell {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 88rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 5vw, 5rem) 5rem;
}

.archive-header {
  position: relative;
  grid-column: 1 / -1;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(200, 137, 103, .5);
  border-radius: 1.5rem;
  background-image:
    linear-gradient(105deg, rgba(7, 17, 29, .96) 0%, rgba(19, 40, 61, .82) 50%, rgba(74, 32, 53, .72) 100%),
    url("video/hero-scene-2-poster.jpg");
  background-position: center;
  background-size: cover;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(7, 17, 29, .18), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.archive-header::after, .collection-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .65rem;
  border: 1px solid rgba(232, 210, 197, .24);
  border-radius: 1rem;
  pointer-events: none;
}
.archive-header h1 { color: #FFFFFF; font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1.3; }
.archive-header > p:last-of-type { max-width: 55ch; color: rgba(255, 255, 255, .78); }
.archive-header .eyebrow, .collection-header .eyebrow { color: var(--copper-soft); }
.taxonomy-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .8rem 2rem; margin-top: 1.35rem; color: rgba(255, 255, 255, .84); font-size: .8125rem; }
.taxonomy-group { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .5rem .7rem; }
.taxonomy-group > span { padding-top: .27rem; color: rgba(255, 255, 255, .56); }
.taxonomy-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.taxonomy-nav a { padding: .25rem .68rem; border: 1px solid rgba(232, 210, 197, .36); border-radius: 999px; background: rgba(7, 17, 29, .2); text-decoration: none; }
.taxonomy-nav a:hover { border-color: var(--copper); color: #FFFFFF; }
.filter-rail { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.25rem; border: 1px solid var(--copper-soft); border-radius: 1rem; background: rgba(255, 255, 255, .8); box-shadow: 0 14px 34px rgba(7, 17, 29, .07); }
.filter-rail fieldset { margin: 0; padding: 1.25rem 0; border: 0; border-bottom: 1px solid var(--copper-soft); }
.filter-rail legend, .search-field label { display: block; margin-bottom: .75rem; color: var(--ink-2); font-size: .875rem; font-weight: 500; }
.search-field { padding-bottom: 1.25rem; border-bottom: 1px solid var(--wine); }
.search-field input { width: 100%; padding: .7rem .8rem; border: 1px solid var(--copper-soft); border-radius: .65rem; background: #FFFFFF; color: var(--ink); }
.filter-stack { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-button, .clear-button {
  border: 1px solid var(--copper-soft);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink-2);
  cursor: pointer;
  font-size: .8125rem;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.filter-button { padding: .38rem .85rem; }
.filter-button:hover { border-color: var(--copper); color: var(--wine); }
.filter-button[aria-pressed="true"] { border-color: var(--wine); background: var(--wine); color: #FFFFFF; }
.clear-button { width: 100%; margin-top: 1.5rem; padding: .65rem; border-color: var(--ink-3); }
.clear-button:hover { border-color: var(--wine); color: var(--wine); }

.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--wine); }
.results-heading h2 { font-size: 1.2rem; }
.results-heading p { margin: 0; color: var(--ink-3); font-size: .875rem; }

.archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.75rem;
  padding-top: 2rem;
}
.archive-card[hidden] { display: none; }

.empty-state { margin-top: 2rem; padding: 3rem clamp(1rem, 5vw, 4rem); border: 1px solid var(--copper-soft); border-radius: 1rem; background: linear-gradient(145deg, #FFFFFF, #F4EAE3); }
.empty-state[hidden] { display: none; }
.empty-state h3 { font-size: 1.5rem; }
.empty-state p:last-child { max-width: 45ch; color: var(--ink-2); }

/* ── Collection and policy pages ──────────────────────────────────── */

.collection-shell, .about-shell { max-width: 88rem; margin: 0 auto; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 5vw, 5rem) 5rem; }
.collection-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  border: 1px solid rgba(200, 137, 103, .5);
  border-radius: 1.5rem;
  background-image:
    linear-gradient(105deg, rgba(7, 17, 29, .96) 0%, rgba(19, 40, 61, .8) 54%, rgba(74, 32, 53, .72) 100%),
    var(--collection-image, url("video/hero-scene-1-poster.jpg"));
  background-position: center;
  background-size: cover;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(7, 17, 29, .16), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.collection-page--session { --collection-image: url("video/hero-scene-1-poster.jpg"); }
.collection-page--market { --collection-image: url("video/hero-scene-2-poster.jpg"); }
.collection-page--topic { --collection-image: url("video/hero-scene-3-poster.jpg"); }
.collection-page--lecturer { --collection-image: url("video/hero-scene-4-poster.jpg"); }
.collection-page--about { --collection-image: url("video/hero-scene-1-poster.jpg"); }
.collection-page--not-found { --collection-image: url("video/hero-scene-4-poster.jpg"); }
.collection-header h1 { max-width: 18ch; color: #FFFFFF; font-size: clamp(2.5rem, 6vw, 4.8rem); }
.collection-header > p:last-child { max-width: 58ch; color: rgba(255, 255, 255, .78); }
.collection-results { padding-top: 2.5rem; }
.collection-results .card-grid { padding-top: 2rem; }
.collection-empty { margin-bottom: 4rem; }
.about-prose { max-width: 68ch; margin-top: clamp(2rem, 5vw, 4rem); padding: clamp(1.5rem, 4vw, 3rem); border-left: 3px solid var(--copper); background: rgba(255, 255, 255, .76); box-shadow: 0 18px 46px rgba(7, 17, 29, .06); }
.about-prose h2 { margin-top: 2.5rem; color: var(--wine); }
.about-prose h2:first-child { margin-top: 0; }
.about-prose p { color: var(--ink-2); }
.not-found-actions { max-width: 42rem; }
.not-found-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.not-found-links a { color: var(--wine); font-weight: 600; text-decoration: none; }
.not-found-links .not-found-primary { padding: .72rem 1.15rem; border-radius: 999px; background: var(--wine); color: #FFFFFF; box-shadow: 0 10px 24px rgba(74, 32, 53, .16); }
.not-found-links .not-found-primary:hover { background: var(--night-2); color: #FFFFFF; }

/* ── Article ───────────────────────────────────────────────────────── */

.read-progress { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 3px; background: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), #F2C3A8); transform: scaleX(0); transform-origin: 0 50%; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 88rem; margin: 0 auto; padding: 1.25rem clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--rule-blue); color: var(--ink-3); font-size: .8125rem; }
.archive-header > .breadcrumb, .collection-header > .breadcrumb { position: relative; z-index: 1; max-width: none; margin: 0 0 1.25rem; padding: 0 0 .7rem; border-bottom-color: rgba(232, 210, 197, .24); color: rgba(255, 255, 255, .62); }
.archive-header > .breadcrumb a, .collection-header > .breadcrumb a { color: rgba(255, 255, 255, .82); }
.article-page > main > .breadcrumb {
  max-width: none;
  border-bottom-color: rgba(200, 137, 103, .34);
  background:
    radial-gradient(circle at 85% -80%, rgba(200, 137, 103, .22), transparent 34%),
    linear-gradient(110deg, var(--night), var(--night-2) 68%, var(--wine));
  color: rgba(255, 255, 255, .62);
}
.article-page > main > .breadcrumb a { color: rgba(255, 255, 255, .86); }
.article-layout { display: grid; grid-template-columns: minmax(0, 68ch) minmax(14rem, 20rem); justify-content: center; align-items: start; gap: clamp(3rem, 7vw, 7rem); max-width: 88rem; margin: 0 auto; padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 5vw, 5rem); }
.article-content { min-width: 0; }
.article-visual { position: relative; margin: 0 0 2.5rem; overflow: hidden; border: 1px solid var(--copper-soft); border-radius: 1rem; box-shadow: 0 18px 44px rgba(7, 17, 29, .12); }
.article-visual img { display: block; width: 100%; height: clamp(11rem, 26vw, 15rem); object-fit: cover; }
.article-visual figcaption { position: absolute; right: .9rem; bottom: .9rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(74, 32, 53, .88); color: #FFFFFF; font-size: .72rem; }
.article-header { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--copper-soft); border-top: 3px solid var(--copper); border-radius: 1rem; background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(245, 235, 229, .86)); box-shadow: 0 18px 44px rgba(7, 17, 29, .06); }
.article-header .eyebrow { color: var(--wine-2); }
.article-header h1 { margin-top: .75rem; font-size: clamp(2.15rem, 3.6vw, 2.75rem); line-height: 1.35; text-wrap: pretty; }
.article-standfirst { margin: 2rem 0; color: var(--ink-2); font-family: var(--display); font-size: 1.28rem; line-height: 1.7; }
.article-meta { display: grid; grid-template-columns: 1.35fr 1fr .7fr; gap: 1.25rem; margin-top: .5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--copper-soft); border-radius: 1rem; background: rgba(255, 255, 255, .72); }
.article-meta > div { display: flex; flex-direction: column; }
.meta-link { color: inherit; text-decoration-color: var(--copper); text-decoration-thickness: .08em; text-underline-offset: .18em; }
.meta-link:hover { color: var(--wine); }
.article-meta small { color: var(--ink-3); font-size: .75rem; }
.freshness { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-top: 1.25rem; color: var(--ink-3); font-size: .8125rem; }
.freshness time { color: var(--wine-2); font-weight: 500; }

.article-rail { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.25rem; border: 1px solid var(--copper-soft); border-radius: 1rem; background: rgba(255, 255, 255, .72); }
.toc { padding: 0 0 2rem; border-bottom: 1px solid var(--copper-soft); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--copper-soft); }
.toc li { margin: 0; font-size: .8125rem; line-height: 1.45; }
.toc a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -2px; border-left: 2px solid rgba(0, 0, 0, 0); text-decoration: none; transition: color .4s var(--ease), border-color .4s var(--ease); }
.toc .toc-level-3 a { padding-left: 1.8rem; color: var(--ink-3); }
.toc a.toc-current { border-left-color: var(--copper); color: var(--wine); font-weight: 600; }
.toc-empty { color: var(--ink-3); font-size: .875rem; }
.mobile-toc { display: none; }

.source-panel { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--copper-soft); border-radius: 1rem; background: #FFFFFF; }
.source-title, .related-title { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.source-panel p { color: var(--ink-2); font-size: .875rem; }
.source-panel--restricted { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.source-panel--restricted .source-label, .source-panel--restricted .source-title { color: var(--amber); }
.source-panel--public { border-color: var(--blue); }
.source-link { display: inline-block; color: var(--blue); font-weight: 500; }
.source-checked { color: var(--ink-3) !important; font-size: .75rem !important; }

.prose { padding-top: 3rem; font-size: 1.0625rem; line-height: 1.75; }
.prose > * { max-width: 68ch; }
.prose h2 { margin-top: 4.5rem; padding-top: 1.1rem; border-top: 2px solid var(--wine); scroll-margin-top: 2rem; }
.prose h3 { margin-top: 2.75rem; scroll-margin-top: 2rem; }
.prose p { margin: 1.15rem 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .5rem 0; }
.prose strong { font-weight: 600; }
.prose img { display: block; width: 100%; height: auto; margin: 2.5rem 0 .6rem; border: 1px solid var(--copper-soft); border-radius: .8rem; background: #FFFFFF; box-shadow: 0 16px 34px rgba(7, 17, 29, .08); }
.prose a > img { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.prose a:hover > img { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(11, 61, 116, .14); }
.prose p > em:only-child { display: block; margin-top: -.25rem; color: var(--ink-3); font-size: .84rem; line-height: 1.6; }
.prose blockquote { margin: 2.5rem 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 3px solid var(--copper); color: var(--ink-2); }
.prose .editorial-note { max-width: 68ch; margin-top: 4rem; padding: 1.5rem; border: 1px solid var(--copper-soft); border-left: 3px solid var(--wine); border-radius: 0 1rem 1rem 0; background: #F4EAE3; }
.step-heading { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 1rem; padding: 1.25rem 0; border-top: 2px solid var(--wine); }
.step-index { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: .3rem; color: var(--wine-2); }
.step-kicker { font-family: var(--body); font-size: .72rem; font-weight: 500; }
.step-number { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--wine); }
.step-title { font-family: var(--display); }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; white-space: nowrap; border: 1px solid var(--rule-blue); border-radius: .75rem; }
.prose th, .prose td { padding: .65rem .8rem; border: 1px solid var(--rule-blue); text-align: left; }
.prose th { background: var(--sky-soft); color: var(--blue-deep); }
.related { margin-top: 5rem; padding-top: 2rem; border-top: 2px solid var(--wine); }
.related ul { list-style: none; padding: 0; }
.related li { padding: .8rem 0; border-bottom: 1px solid var(--copper-soft); }

/* ── Motion — long ease, small travel, honestly disabled ───────────── */

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.motion-ready [data-reveal].is-in { opacity: 1; transform: none; }
.motion-ready .card-grid [data-reveal]:nth-child(2), .motion-ready .archive-list [data-reveal]:nth-child(2) { transition-delay: .08s; }
.motion-ready .card-grid [data-reveal]:nth-child(3), .motion-ready .archive-list [data-reveal]:nth-child(3) { transition-delay: .16s; }
.motion-ready .card-grid [data-reveal]:nth-child(4), .motion-ready .archive-list [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .session-spine, .latest { grid-template-columns: 1fr; }
  .archive-shell { grid-template-columns: 1fr; gap: 1rem; }
  .archive-header { min-height: 13.75rem; padding: 1.35rem 1.25rem 1.6rem; border-radius: 1.1rem; }
  .collection-header { padding: 2.25rem 1.25rem 2.5rem; border-radius: 1.1rem; }
  .archive-header > .breadcrumb { margin-bottom: .65rem; padding-bottom: .45rem; }
  .archive-header .eyebrow { margin-bottom: .35rem; }
  .archive-header h1 { font-size: clamp(2.5rem, 6vw, 3.3rem); }
  .archive-header > p:last-of-type { margin-block: .35rem 0; }
  .archive-header .taxonomy-nav { display: none; }
  .filter-rail { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem 1rem; max-height: none; padding: .75rem 1rem; }
  .search-field { grid-column: 1 / -1; }
  .search-field { padding-bottom: .55rem; }
  .search-field input { padding-block: .55rem; }
  .filter-rail fieldset { padding: .2rem 0; }
  .filter-rail legend, .search-field label { margin-bottom: .35rem; }
  .filter-stack { gap: .3rem; }
  .filter-button { padding: .3rem .65rem; }
  .filter-rail fieldset:nth-of-type(4) { grid-column: 1 / 3; display: flex; align-items: center; gap: .65rem; border-bottom: 0; }
  .filter-rail fieldset:nth-of-type(4) legend { min-width: max-content; margin: 0; }
  .clear-button { grid-column: 3; align-self: center; margin-top: 0; padding: .55rem .65rem; }
  .archive-list { padding-top: .75rem; }
  .article-layout { grid-template-columns: minmax(0, 68ch); }
  .article-rail .toc { display: none; }
  .article-rail { position: static; max-height: none; }
  .mobile-toc { display: block; margin-top: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-blue); }
  .mobile-toc summary { cursor: pointer; font-weight: 500; }
  .mobile-toc ol { padding-left: 1.25rem; }
}

@media (max-width: 760px) {
  .hero-desktop-nav { display: none !important; }
  .hero-menu-toggle { display: grid; }
  .home-page .site-header { align-items: center; }
  .masthead, .hero-shell { min-height: max(46rem, 100svh); }
  .hero-shell { padding: 7rem 1.1rem 1.1rem; }
  .hero-copy { width: min(100%, 34rem); padding-block: 1rem; }
  .hero-badge { margin-bottom: .9rem; padding: .48rem .8rem; font-size: .68rem; }
  .masthead h1 { font-size: clamp(2.2rem, 10.3vw, 3.5rem); }
  .standfirst { max-width: 34ch; margin: .85rem 0 1.15rem; font-size: .9rem; line-height: 1.65; }
  .hero-search { width: min(100%, 23rem); }
  .hero-search input { padding: .66rem .8rem; font-size: 1rem; }
  .hero-search button { padding: .66rem .95rem; font-size: .78rem; }
  .hero-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem; width: min(100%, 22rem); margin-top: .8rem; border-radius: 1rem; }
  .hero-switcher button { min-height: 2.75rem; padding-inline: .55rem; font-size: .78rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 0; max-width: 25rem; }
  .hero-stats div { justify-content: center; padding: .12rem .65rem; }
  .hero-stats div + div { border-left: 0; }
  .hero-stats div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .28); }
  .hero-stats { font-size: .75rem; }
  .hero-window { opacity: .86; transform: scale(1.1); animation-name: train-bob-mobile; }
  @keyframes train-bob-mobile {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-4px) scale(1.1); }
  }
}

@media (max-width: 620px) {
  h1 { font-size: 2.15rem; }
  .site-header { align-items: flex-start; }
  .site-header nav { flex-direction: column; gap: .25rem; text-align: right; }
  .home-page .site-header { align-items: center; }
  .site-header--inner { align-items: center; gap: .75rem; padding: .8rem 1rem; }
  .site-header--inner .wordmark small { display: none; }
  .site-header--inner .inner-nav { flex-direction: row; gap: .05rem !important; padding: .2rem; text-align: left; }
  .site-header--inner .inner-nav a { padding: .42rem .5rem; font-size: .72rem; }
  .site-footer { flex-direction: column; }
  .masthead h1 { font-size: clamp(2.15rem, 10.3vw, 3.4rem); }
  .archive-shell, .collection-shell, .about-shell { padding-inline: .9rem; }
  .archive-header, .collection-header { padding: 1.8rem 1.1rem 2.2rem; }
  .collection-header h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .archive-header > .breadcrumb, .collection-header > .breadcrumb { font-size: .7rem; }
  .session-spine li { grid-template-columns: 3rem 1fr; }
  .session-spine li span:last-child { flex-direction: column; gap: 0; }
  .filter-rail { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .filter-rail fieldset:nth-of-type(4) { grid-column: auto; display: block; }
  .filter-rail fieldset:nth-of-type(4) legend { margin-bottom: .35rem; }
  .clear-button { grid-column: auto; }
  .card-grid, .archive-list { grid-template-columns: 1fr; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .article-meta { grid-template-columns: 1fr; }
  .article-header { padding: 1.35rem; }
  .article-header h1 { font-size: 1.9rem; line-height: 1.4; }
  .article-rail { padding: 1rem; }
  .step-heading { grid-template-columns: 4rem minmax(0, 1fr); }
  .step-number { font-size: 1.85rem; }
}

@media (max-width: 380px) {
  .hero-search input { width: 9rem; }
  .hero-search button { padding-inline: .8rem; }
  .hero-stats { font-size: .66rem; }
  .hero-stats dt { font-size: .82rem; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero-shell { padding-top: 6.5rem; padding-bottom: 1rem; }
  .hero-copy { padding-block: .5rem; }
  .hero-badge { margin-bottom: .7rem; }
  .standfirst { margin-block: .75rem 1rem; }
  .hero-switcher { margin-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-video:not(.is-active) { display: none; }
}
