:root {
  --bg-900: #0a0e2a;
  --bg-800: #121a48;
  --bg-700: #1b2563;
  --blue: #032ea1;
  --red: #e00025;
  --red-soft: #ff5468;
  --tint: #eaedf8;
  --white: #ffffff;
  --ink: #121a48;
  --body: #33405e;
  --muted: #5b6785;
  --line: #d7dcee;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.65; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: .6em; }
h3 { font-size: 1.28rem; margin-bottom: .45em; }
h4 { font-size: 1.08rem; margin: 1.2em 0 .35em; }
p + p { margin-top: .9em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; min-height: 68px; background: var(--bg-900); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 75%, var(--blue) 75% 100%);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo .logo-slot {
  width: 34px; height: 34px; flex: none; border: 1.5px dashed rgba(255,255,255,.55); border-radius: 9px;
  display: grid; place-items: center; font-family: "Inter", sans-serif; font-size: .5rem; font-weight: 700;
  letter-spacing: .08em; color: rgba(255,255,255,.65);
}
.logo .name { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.22rem; }
.logo .name b { color: var(--red-soft); font-weight: 700; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a, .nav-links button {
  color: rgba(255,255,255,.84); text-decoration: none; font: 500 .94rem "Inter", sans-serif;
  padding: 8px 13px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links button:hover, .nav-links .active > a, .nav-links .active > button {
  background: rgba(255,255,255,.1); color: var(--white);
}
.nav-links .active > a, .nav-links .active > button { box-shadow: inset 0 -2px 0 var(--red); }
.nav-links .caret { width: 10px; height: 10px; }
.has-sub { position: relative; }
.sub {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none;
  background: var(--bg-800); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.sub::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.sub a { display: block; border-radius: 8px; padding: 9px 12px; }
.sub a.current { background: rgba(255,255,255,.1); color: var(--white); }
.menu-btn { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-900); padding: 8px 12px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { display: flex; width: 100%; border-radius: 10px; padding: 12px 14px; }
  .nav-links .active > a, .nav-links .active > button { box-shadow: none; }
  .sub { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0 0 4px 14px; min-width: 0; }
  .sub a { padding: 9px 14px; font-size: .9rem; }
  .nav-links .caret { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(900px 480px at 85% -10%, rgba(3,46,161,.75), transparent 60%),
              radial-gradient(700px 420px at 0% 110%, rgba(224,0,37,.28), transparent 60%),
              linear-gradient(180deg, var(--bg-900), var(--bg-800));
  color: var(--white); padding: 88px 0 96px;
}
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.13rem; color: rgba(255,255,255,.84); max-width: 640px; margin-top: 18px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero { padding: 68px 0 60px; }
.page-hero .lead { max-width: 720px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-soft); margin-bottom: 14px;
}
.eyebrow.on-light { color: var(--blue); }
.byline {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  padding: 8px 16px 8px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-size: .92rem; color: rgba(255,255,255,.9);
}
.byline .dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: .75rem;
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
  font-size: .97rem; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #c4001f; }
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: var(--white); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 60px 0 68px; }
}

/* ---------- Photo placeholder frames ---------- */
.photo-frame {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 2px dashed rgba(3,46,161,.4); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, rgba(3,46,161,.05) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; text-align: center; padding: 18px; color: var(--muted);
}
.photo-frame.wide { aspect-ratio: 16 / 9; }
.photo-frame.square { aspect-ratio: 1 / 1; }
.photo-frame.tall { aspect-ratio: 3 / 4; }
.photo-frame .ph-icon {
  display: block; width: 40px; height: 40px; margin: 0 auto 8px; opacity: .7; background: currentColor;
  mask: url("photo-icon.svg") center / contain no-repeat;
  -webkit-mask: url("photo-icon.svg") center / contain no-repeat;
}
.photo-frame strong { display: block; font-size: .95rem; color: var(--bg-700); }
.photo-frame small { display: block; font-size: .82rem; margin-top: 2px; }
.photo-frame .tag {
  position: absolute; top: 10px; left: 10px; background: var(--bg-800); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px;
}
.hero .photo-frame, section.dark .photo-frame {
  border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.75);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
}
.hero .photo-frame strong, section.dark .photo-frame strong { color: var(--white); }
.hero .photo-frame .tag, section.dark .photo-frame .tag { background: var(--white); color: var(--bg-800); }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.alt { background: var(--tint); }
section.dark { background: var(--bg-800); color: rgba(255,255,255,.86); }
section.dark h2, section.dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
section.dark .section-head p { color: rgba(255,255,255,.72); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > :first-child { order: 0; }
  section.block { padding: 60px 0; }
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .2s, transform .2s;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { box-shadow: 0 14px 36px rgba(18,26,72,.12); transform: translateY(-3px); }
.card p, .card li { color: var(--muted); font-size: .97rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue); color: var(--white);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--red); font-size: .93rem; }
section.dark .card { background: var(--bg-700); border-color: rgba(255,255,255,.1); }
section.dark .card p { color: rgba(255,255,255,.74); }

.stat { border-left: 3px solid var(--red-soft); padding-left: 18px; }
.stat .num { font-family: "Playfair Display", Georgia, serif; font-size: 2.1rem; color: var(--white); line-height: 1.1; }
.stat p { font-size: .95rem; margin-top: 6px; }
.cite { font-size: .8rem; color: var(--muted); margin-top: 10px; }
section.dark .cite { color: rgba(255,255,255,.58); }
section.dark .cite a, section.dark a { color: #9db4ff; }

ul.ticks { list-style: none; margin-top: 12px; }
ul.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg);
}

/* ---------- Long-form guide pages ---------- */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; list-style: none; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.subnav a {
  white-space: nowrap; display: block; font-size: .88rem; font-weight: 500; text-decoration: none;
  padding: 7px 14px; border-radius: 999px; color: var(--bg-700); border: 1px solid var(--line);
}
.subnav a.current { background: var(--bg-800); color: var(--white); border-color: var(--bg-800); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chips a {
  font-size: .86rem; text-decoration: none; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--bg-700); background: var(--white);
}
.chips a:hover { background: var(--bg-800); color: var(--white); border-color: var(--bg-800); }
.doc { max-width: 820px; }
.doc section { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc section:first-of-type { border-top: 0; }
.doc p, .doc li { color: var(--body); }
.doc ul:not(.ticks), .doc ol { padding-left: 22px; margin-top: 10px; }
.doc li { margin: 6px 0; }
.doc .photo-frame { margin: 24px 0; }
.callout {
  background: var(--tint); border-left: 4px solid var(--blue); border-radius: 10px;
  padding: 14px 18px; font-size: .95rem; color: var(--bg-700); margin: 18px 0;
}
.callout.red { border-left-color: var(--red); background: #fdecef; color: #5a1020; }
.say {
  margin-top: 12px; background: var(--tint); border-radius: 10px; padding: 12px 16px;
  font-size: .94rem; color: var(--bg-700);
}
.say b { font-weight: 600; }
.steps { list-style: none; counter-reset: s; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 4px 0 14px 54px; margin: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: var(--white); display: grid; place-items: center;
  font: 700 1rem "Playfair Display", Georgia, serif;
}
.steps > li b:first-child { color: var(--ink); }
.phrases { columns: 3 170px; column-gap: 24px; list-style: none; padding: 0 !important; margin-top: 12px; }
.phrases li { break-inside: avoid; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; margin: 0; }
.sample {
  background: #fbfcff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  font-family: Georgia, "Times New Roman", serif; font-size: .98rem; line-height: 1.7; color: #1c2240; margin-top: 14px;
}
.sample p { color: #1c2240; }
.sample .indent { padding-left: 28px; }
.sample .indent2 { padding-left: 56px; }
details.faq { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; background: var(--white); }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.faq p { margin-top: 10px; }
dl.glossary { display: grid; grid-template-columns: 220px 1fr; gap: 0; margin-top: 10px; }
dl.glossary dt, dl.glossary dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.glossary dt { font-weight: 600; color: var(--ink); padding-right: 16px; }
dl.glossary dd { color: var(--body); }
@media (max-width: 620px) {
  dl.glossary { grid-template-columns: 1fr; }
  dl.glossary dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 14px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 540px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
th { background: var(--bg-800); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 620px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px;
  box-shadow: 0 18px 48px rgba(18,26,72,.08);
}
.contact-card .email {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 1.05rem; font-weight: 600;
  color: var(--white); background: var(--red); padding: 13px 22px; border-radius: 999px; text-decoration: none;
  word-break: break-all;
}

/* ---------- Sources ---------- */
.sources ol { padding-left: 22px; }
.sources li { margin: 9px 0; color: var(--body); }

/* ---------- CTA + Footer ---------- */
.cta { text-align: center; }
.cta p { max-width: 620px; margin: 0 auto; }
.cta .btns { justify-content: center; }
.site-footer { background: var(--bg-900); color: rgba(255,255,255,.7); padding: 48px 0 30px; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; max-width: 640px; }
.made-by { margin-top: 12px; color: var(--white); font-weight: 500; }
.made-by b { color: var(--red-soft); }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.subnav + section.block { padding-top: 36px; }
.speaker .meta { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red-soft) !important; margin-bottom: 6px; }
.speaker p + p { margin-top: .7em; }
section.dark .card .say { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.speaker-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.speaker-head h3 { margin-bottom: 0; }
.portrait-slot {
  width: 84px; height: 84px; flex: none; border-radius: 50%; border: 2px dashed rgba(255,255,255,.45);
  display: grid; place-items: center; font-size: .6rem; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.6);
}
.speaker .watch { margin-top: 14px; font-size: .9rem; }
.speaker .watch a { display: inline-block; background: var(--red); color: var(--white) !important; text-decoration: none; font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.speaker .watch span { display: block; margin-top: 8px; font-size: .8rem; color: rgba(255,255,255,.6); }
.speaker .portrait { width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.3); background: var(--bg-900); }
.speaker .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speaker .credit { font-size: .72rem; color: rgba(255,255,255,.5) !important; margin-top: 10px; }
.speaker .credit a { color: rgba(255,255,255,.7); }
.speaker .portrait-big { margin: -24px -24px 20px; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-900); }
.speaker .portrait-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speaker h3 { font-size: 1.5rem; }
.photo-frame.filled, .hero .photo-frame.filled, section.dark .photo-frame.filled { border: 0; padding: 0; background: var(--bg-800); overflow: hidden; display: block; }
.photo-frame.filled img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* About gallery: centre an incomplete last row */
.grid-3.gallery { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-3.gallery > * { flex: 0 1 calc((100% - 40px) / 3); }
@media (max-width: 900px) { .grid-3.gallery > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 620px) { .grid-3.gallery > * { flex-basis: 100%; } }
