/* InOA — brand tokens pulled from the logo artwork */
:root {
  --paper: #EBEBEB;       /* logo background */
  --paper-2: #F5F5F4;
  --ink: #2E2E2E;         /* InOA charcoal */
  --ink-soft: #5A5A5A;
  --blue: #1B4D93;        /* InOA bars */
  --nots: #004AAD;        /* NOTS eye */
  --steel: #7692BA;       /* "are now part of" */
  --iris: #6B3E12;        /* InOA iris brown */
  --iris-deep: #41220A;
  --mint: #9EE3A6;        /* NSOC lens */
  --line: #CFCFCF;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --body: "Lexend", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --r-sm: 6px;
  --r-lg: 18px;
  --surface: #FFFFFF;
  --band: #2E2E2E;
  --header-bg: rgba(235,235,235,.88);
  --field-line: #BDBDBD;
  color-scheme: light;
}
/* Dark mode — set by the toggle (data-theme) or the device setting */
:root[data-theme="dark"] {
  --paper: #15171D;
  --paper-2: #1B1E25;
  --ink: #ECECEC;
  --ink-soft: #A9ADB8;
  --blue: #6E9BE0;
  --steel: #8FA7CF;
  --iris: #D39257;
  --line: #333743;
  --surface: #232731;
  --band: #0D0E12;
  --header-bg: rgba(21,23,29,.85);
  --field-line: #444957;
  color-scheme: dark;
}
:root[data-theme="dark"] .prog--nots { background: #0B3C8C; }
:root[data-theme="dark"] .post-card { border-top-color: var(--blue); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--nots); }
:focus-visible { outline: 3px solid var(--nots); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--iris); color: #fff; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 .4em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); }
strong { font-weight: 600; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--white { background: var(--paper-2); }
.section--ink { background: var(--band); color: #EDEDED; }
.section--ink .lead, .section--ink p { color: #C9C9C9; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head p { margin: 0; }

/* Brand bar — the two blue rules from the InOA lockup */
.bar { display: block; height: 10px; width: 120px; background: var(--blue); margin-bottom: 1.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 400; font-size: .92rem;
  padding: .5rem .7rem; border-radius: 999px;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .btn { margin-left: .5rem; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 500; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper) !important; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--blue); border-color: var(--blue); color: #fff !important; }
.btn--ghost { background: transparent; color: var(--ink) !important; }
.btn--ghost:hover { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.btn--nots { background: var(--nots); border-color: var(--nots); }
.btn--iris { background: var(--iris); border-color: var(--iris); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Diamond line motif (from the poster corners) ---------- */
.diamonds { position: absolute; pointer-events: none; opacity: .9; }
.diamonds--tr { top: 0; right: 4%; width: min(46vw, 520px); }
.diamonds--bl { bottom: 0; left: 0; width: min(30vw, 340px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .3em; }
.hero h1 span { display: block; }
.hero h1 .s2 { font-size: .62em; color: var(--blue); }
.hero h1 .s3 { font-size: .38em; color: var(--iris); }
.hero .lead { margin-bottom: 2rem; }

.eye-stage { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.eye-stage svg { width: 100%; height: 100%; overflow: visible; }
.eye-caption { text-align: center; font-size: .85rem; color: var(--ink-soft); margin: .5rem auto 0; }

/* Small-page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .logo-lockup { height: 90px; width: auto; margin-bottom: 1.5rem; }

/* ---------- Programme split (NSOC / NOTS) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.prog {
  position: relative; border-radius: var(--r-lg); padding: 2.5rem; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  text-decoration: none; color: inherit;
}
.prog img { height: 80px; width: auto; margin-bottom: 1.6rem; }
.prog--nsoc { background: var(--surface); }
.prog--nsoc::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--mint); opacity: .55; }
.prog--nots { background: var(--nots); color: #fff; }
.prog--nots .logo-plate { display: inline-block; background: #fff; border-radius: 14px; padding: .7rem 1.1rem; margin-bottom: 1.6rem; }
.prog--nots .logo-plate img { margin: 0; height: 70px; }
.prog--nots p { color: #DDE6F5; }
.prog p { position: relative; z-index: 1; }
.prog .btn-row { position: relative; z-index: 1; }
.prog--nots .btn { background: #fff; color: var(--nots) !important; border-color: #fff; }
.prog--nots .btn--ghost { background: transparent; color: #fff !important; border-color: #fff; }

/* ---------- Next event band with countdown ---------- */
.next {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
}
.next .meta { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .4rem; }
.next .meta li { display: flex; gap: .8rem; }
.next .meta b { font-weight: 500; min-width: 4.5rem; color: var(--mint); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.countdown div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sm); padding: 1.2rem .5rem; text-align: center; }
.countdown span { display: block; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; color: #fff; }
.countdown small { font-size: .85rem; color: #B5B5B5; }
.section--white .countdown div, .page-hero .countdown div { background: var(--surface); border-color: var(--line); }
.page-hero .countdown span { color: var(--ink); }

/* ---------- Lists / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-sm);
  padding: 1.6rem; text-decoration: none; color: inherit; border-top: 6px solid var(--blue);
}
.post-card:hover h3 { color: var(--blue); }
.post-card h3 { font-family: var(--body); text-transform: none; font-weight: 600; font-size: 1.2rem; line-height: 1.3; letter-spacing: 0; }
.post-card .tag { font-size: .85rem; color: var(--iris); font-weight: 500; margin-bottom: .6rem; }
.post-card .date { margin-top: auto; font-size: .85rem; color: var(--ink-soft); }

/* Sessions */
.session {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.session:first-child { border-top: 1px solid var(--line); }
.session .when { font-family: var(--display); font-size: 2.4rem; line-height: .95; color: var(--nots); }
.session .when small { display: block; font-family: var(--body); font-size: .85rem; color: var(--ink-soft); }
.session h3 { font-family: var(--body); text-transform: none; font-weight: 600; font-size: 1.2rem; letter-spacing: 0; margin: 0 0 .15rem; }
.session p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.chip { display: inline-block; font-size: .8rem; padding: .15rem .65rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-right: .4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button {
  font: inherit; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.empty { padding: 2rem; background: var(--surface); border-radius: var(--r-sm); color: var(--ink-soft); }

/* Programme timeline (a real sequence, so numbered by time) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--blue); }
.timeline li { position: relative; padding: .55rem 0 .55rem 1.6rem; display: grid; grid-template-columns: 70px 1fr; gap: 1rem; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 1.05rem; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.timeline time { font-weight: 600; color: var(--blue); }

/* Past conferences */
.archive { display: grid; gap: 1.25rem; }
.year-card { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; background: var(--surface); border-radius: var(--r-lg); padding: 2rem 2.2rem; }
.year-card .yr { font-family: var(--display); font-size: 5.5rem; line-height: .85; color: var(--blue); }
.year-card .yr small { display: block; font-family: var(--body); font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; }
.year-card ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }

/* Ticket Tailor wrapper */
.tickets { background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.tt-widget-fallback p { margin: 0; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.person .ph {
  aspect-ratio: 4/5; border-radius: var(--r-sm); background: var(--line); margin-bottom: .8rem;
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--display); font-size: 3rem; color: var(--steel);
}
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person b { font-weight: 600; display: block; }
.person span { color: var(--ink-soft); font-size: .95rem; }

/* Reps */
.rep-tools { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.rep-tools input { font: inherit; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--ink); min-width: 260px; background: var(--surface); color: var(--ink); }
.reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.rep { background: var(--surface); border-radius: var(--r-sm); padding: 1.3rem 1.4rem; border-left: 6px solid var(--iris); }
.rep b { display: block; font-weight: 600; }
.rep .who { color: var(--ink-soft); font-size: .95rem; }

/* Founder */
.founder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.founder .portrait { aspect-ratio: 4/5; border-radius: var(--r-lg); background: var(--iris-deep); position: relative; overflow: hidden; display: grid; place-items: center; }
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder .portrait .placeholder { color: #E8D9C8; text-align: center; padding: 2rem; font-size: .95rem; }
blockquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 6px solid var(--blue); font-size: 1.5rem; line-height: 1.4; font-weight: 400; }
.milestones { list-style: none; padding: 0; margin: 2rem 0 0; }
.milestones li { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.milestones b { font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--blue); }

/* Values (About) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.values h3 { color: var(--blue); }

/* Blog article view */
.article { max-width: 720px; }
.article h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.article .byline { color: var(--ink-soft); margin-bottom: 2rem; }
.article-body p { font-size: 1.15rem; line-height: 1.75; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* Forms (Netlify Forms) */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 300; padding: .8rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--field-line); background: var(--surface); color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-inline { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 520px; }
.form-inline input { flex: 1; min-width: 220px; font: inherit; padding: .85rem 1.2rem; border-radius: 999px; border: none; }
.hidden { display: none; }

/* Logos strip */
.partners { display: flex; flex-wrap: wrap; gap: 1rem; }
.partners span { flex: 1 1 160px; height: 84px; border: 1px dashed #BDBDBD; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); position: relative; z-index: 2; color: #CFCFCF; padding: 4rem 0 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer img { height: 64px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--body); font-weight: 600; color: #fff; margin: 0 0 .8rem; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: #CFCFCF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #474747; padding-top: 1.5rem; font-size: .85rem; color: #9A9A9A; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .next, .founder, .split { grid-template-columns: 1fr; }
  .eye-stage { max-width: 240px; order: -1; }
  .grid-3, .values { grid-template-columns: 1fr 1fr; }
  .year-card { grid-template-columns: 1fr; gap: .5rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; font: inherit; font-weight: 500; background: var(--ink); color: var(--paper);
    border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer;
  }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; font-size: 1.1rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
}
@media (max-width: 620px) {
  .grid-3, .values { grid-template-columns: 1fr; }
  .session { grid-template-columns: 1fr; gap: .5rem; }
  .prog { min-height: 0; padding: 2rem 1.6rem; }
  .countdown span { font-size: 2.3rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}
/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none;
}
.theme-toggle svg { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
body { transition: background-color .3s ease, color .3s ease; }

/* ---------- Page-stack scroll: each section slides over the last like a page ---------- */
.stack > section[data-fx="stack"] { position: sticky; }
.stack > section {
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 40px -24px rgba(0,0,0,.35);
  transform-origin: 50% 0;
  will-change: transform;
}
.stack > section:first-child { border-radius: 0; box-shadow: none; }
.stack > section.section--white { background: var(--paper-2); }
.stack > section.section--ink { background: var(--band); }
.stack > section .page-shade {
  position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; z-index: 3;
}

/* ---------- Timeline page ---------- */
.tl { position: relative; list-style: none; margin: 0; padding: 0; }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--line); transform: translateX(-50%); }
.tl li { position: relative; width: 50%; padding: 0 3rem 3rem 0; }
.tl li:nth-child(even) { margin-left: 50%; padding: 0 0 3rem 3rem; }
.tl li::after {
  content: ""; position: absolute; top: .6rem; right: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--dot, var(--blue));
}
.tl li:nth-child(even)::after { right: auto; left: -11px; }
.tl .card { background: var(--surface); border-radius: var(--r-lg); padding: 1.6rem 1.8rem; border-top: 6px solid var(--dot, var(--blue)); }
.tl .when { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--dot, var(--blue)); display: block; margin-bottom: .4rem; }
.tl h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1.25rem; }
.tl p { margin: 0; color: var(--ink-soft); }
.tl li[data-type="NSOC"] { --dot: var(--blue); }
.tl li[data-type="NOTS"] { --dot: var(--nots); }
:root[data-theme="dark"] .tl li[data-type="NOTS"] { --dot: #4C86E8; }
.tl li[data-type="InOA"] { --dot: var(--iris); }
.tl li.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.tl li.reveal.in { opacity: 1; transform: none; }

/* ---------- NSOC history ---------- */
.origin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.origin .yr-big { font-family: var(--display); font-size: clamp(6rem, 16vw, 12rem); line-height: .8; color: var(--blue); margin-bottom: 1rem; }
.origin .photo { aspect-ratio: 4/3; border-radius: var(--r-lg); background: var(--surface); border: 2px dashed var(--line); display: grid; place-items: center; color: var(--ink-soft); overflow: hidden; }
.origin .photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.mini-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--iris); }

/* ---------- NOTS impact ---------- */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.15); border-radius: var(--r-lg); overflow: hidden; margin: 2.5rem 0; }
.impact div { background: var(--nots); padding: 2rem 1.5rem; }
:root[data-theme="dark"] .impact div { background: #0B3C8C; }
.impact b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .9; color: #fff; }
.impact span { color: #DDE6F5; }
.section--nots { background: var(--nots); color: #fff; }
:root[data-theme="dark"] .section--nots { background: #0B3C8C; }
.section--nots p, .section--nots .lead { color: #DDE6F5; }
.stack > section.section--nots { background: var(--nots); }
:root[data-theme="dark"] .stack > section.section--nots { background: #0B3C8C; }
.countries { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.countries li { padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-size: .95rem; }

/* Founders */
.founder + .founder { margin-top: clamp(4rem, 9vw, 7rem); }
.founder--flip .portrait { order: 2; }
.founder .portrait.alt { background: var(--blue); }

@media (max-width: 960px) {
  .impact { grid-template-columns: 1fr 1fr; }
  .origin { grid-template-columns: 1fr; }
  .founder--flip .portrait { order: 0; }
}
@media (max-width: 700px) {
  .tl::before { left: 11px; }
  .tl li, .tl li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2.2rem 2.6rem; }
  .tl li::after, .tl li:nth-child(even)::after { left: 0; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .stack > section[data-fx="stack"] { position: relative; }
  [data-fx] .fx, [data-fx="lid"] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .tl li.reveal { opacity: 1; transform: none; }
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* =================== v3 additions =================== */

/* NSOC dropdown in the header */
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: .5rem; display: grid; gap: 2px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sub::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { border-radius: 9px !important; display: block; }
.sub a small { display: block; color: var(--ink-soft); font-size: .78rem; }

/* Intro: logo pops up, pupil dilates, site appears */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: grid; place-items: center; transition: opacity .5s ease;
}
.intro .mark { position: relative; width: min(62vw, 420px); animation: pop .7s cubic-bezier(.2,.9,.25,1.2) both; }
.intro .mark img { width: 100%; }
.intro .dilate {
  position: absolute; left: 50.4%; top: 41.8%; width: 4.8%; aspect-ratio: 1; border-radius: 50%;
  background: #050505; transform: translate(-50%, -50%) scale(1); transition: transform .9s cubic-bezier(.7,0,.3,1);
}
.intro.open .dilate { transform: translate(-50%, -50%) scale(var(--cover, 120)); }
.intro.gone { opacity: 0; pointer-events: none; }
@keyframes pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }

/* Scroll effects (set per page with data-fx) */
[data-fx="focus"] .fx { opacity: .25; filter: blur(14px); transform: scale(1.035); transition: opacity .9s ease, filter .9s ease, transform .9s ease; }
[data-fx="focus"].in .fx { opacity: 1; filter: none; transform: none; }
[data-fx="drift"] .fx { opacity: 0; transform: translateX(var(--dx, -36px)); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
[data-fx="drift"] .fx:nth-child(even) { --dx: 36px; }
[data-fx="drift"].in .fx { opacity: 1; transform: none; }
[data-fx="lid"] { clip-path: inset(48% 0 48% 0 round 40px); transition: clip-path 1s cubic-bezier(.7,0,.2,1); }
[data-fx="lid"].in { clip-path: inset(0 0 0 0 round 0); }
[data-fx="lid"] .fx { opacity: 0; transform: translateY(16px); transition: opacity .6s ease .45s, transform .6s ease .45s; }
[data-fx="lid"].in .fx { opacity: 1; transform: none; }

/* NSOC hero */
.conf-tag { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--blue); margin-bottom: .8rem; }
.conf-tag img { height: 30px; width: auto; }
.page-hero h1 .edition { display: block; font-size: .42em; color: var(--iris); margin-bottom: .1em; }

/* Explore NSOC 2026 */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tabs button {
  font: inherit; font-size: .95rem; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.explorer { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.slots { display: grid; gap: .5rem; }
.slot {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; width: 100%; text-align: left;
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid transparent; border-radius: 12px;
  padding: .9rem 1.1rem; cursor: pointer; transition: border-color .15s, transform .15s;
}
.slot:hover { transform: translateX(4px); }
.slot[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }
.slot time { font-weight: 600; color: var(--blue); }
.slot b { font-weight: 500; }
.type { font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; background: var(--paper); white-space: nowrap; }
.type--talk { color: var(--blue); } .type--workshop { color: var(--iris); } .type--research { color: #2E8B57; } .type--break { color: var(--ink-soft); }
.detail { position: sticky; top: 100px; background: var(--band); color: #EDEDED; border-radius: var(--r-lg); padding: 2rem; min-height: 260px; }
.detail h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1.5rem; margin: .6rem 0 .3rem; }
.detail .time { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--mint); }
.detail p { color: #C9C9C9; }
.detail.swap { animation: swap .35s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.venue-card { background: var(--surface); border-radius: var(--r-lg); padding: 2rem; display: grid; gap: 1rem; }

/* Past NSOC selector */
.years { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.years button {
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; padding: .3rem .9rem;
  background: none; border: 0; border-bottom: 4px solid transparent; color: var(--line); cursor: pointer; transition: color .2s;
}
.years button:hover { color: var(--ink-soft); }
.years button[aria-selected="true"] { color: var(--blue); border-color: var(--blue); }
.year-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.6rem); }
.year-panel.swap { animation: swap .4s ease; }
.year-panel .pill { display: inline-block; font-size: .85rem; padding: .2rem .8rem; border-radius: 999px; background: var(--paper); margin-bottom: .8rem; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.statgrid div { background: var(--surface); padding: 1.2rem; }
.statgrid b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--blue); }
.statgrid span { color: var(--ink-soft); font-size: .9rem; }
.peek { margin-top: 1.4rem; display: flex; gap: .5rem; }
.peek img { width: 33%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* Explore 2025 overlay — opens like an iris from where you clicked */
.overlay {
  position: fixed; inset: 0; z-index: 150; background: var(--paper); overflow-y: auto;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); visibility: hidden;
  transition: clip-path .8s cubic-bezier(.7,0,.25,1), visibility 0s .8s;
}
.overlay.open { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); visibility: visible; transition: clip-path .8s cubic-bezier(.7,0,.25,1); }
.overlay-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1.25rem, 4vw, 3rem); background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.overlay-bar b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }
.overlay .hero-img { position: relative; height: min(70vh, 640px); overflow: hidden; }
.overlay .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.overlay .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); }
.overlay .hero-img h2 { position: absolute; left: clamp(1.25rem, 4vw, 3rem); bottom: 1.5rem; z-index: 1; color: #fff; margin: 0; font-size: clamp(3rem, 9vw, 7rem); }
.gallery { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.gallery figure { margin: 0; flex: 0 0 min(78%, 620px); scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 14px; }
.gallery figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
.abstracts { list-style: none; margin: 0; padding: 0; }
.abstracts li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.abstracts b { display: block; font-weight: 500; }
.abstracts span { color: var(--ink-soft); font-size: .95rem; }
body.locked { overflow: hidden; }

/* NOTS series */
.series-blurb { color: var(--ink-soft); margin: -0.5rem 0 1rem; }
.coming { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 2rem; margin-bottom: 2rem; }
.coming .pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--nots); box-shadow: 0 0 0 0 rgba(0,74,173,.5); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 18px rgba(0,74,173,0); } }
.coming h3 { margin: 0 0 .3rem; }
.coming p { margin: 0; }

@media (max-width: 960px) {
  .explorer, .year-panel { grid-template-columns: 1fr; }
  .detail { position: static; }
}
@media (max-width: 820px) {
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; min-width: 0; }
  .sub::before { display: none; }
  .has-sub > a::after { display: none; }
  .sub a small { display: none; }
  .sub a { font-size: 1rem !important; padding: .5rem 1rem !important; color: var(--ink-soft) !important; }
  .nav { max-height: calc(100vh - 72px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .overlay, .overlay.open { transition: none; }
}
#nots-past.swap { animation: swap .35s ease; }
.page-hero .meta b { min-width: 4.5rem; }
.form-inline + * { margin-top: 1rem; }
#upcoming .form-inline { margin-top: 1rem; }
.stack > section:not([data-fx="stack"]) { border-radius: 0; box-shadow: none; }
.stack > section[data-fx="stack"] + section:not([data-fx="stack"]) { border-radius: 28px 28px 0 0; box-shadow: 0 -18px 40px -24px rgba(0,0,0,.35); }
#top h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
#top .wrap.next { grid-template-columns: 1.35fr 1fr; }
.conf-tag img { height: 34px; }
@media (max-width: 960px) { #top .wrap.next { grid-template-columns: 1fr; } }
.next > *, .hero .wrap > *, .split > *, .explorer > *, .year-panel > * { min-width: 0; }
h1, h2 { overflow-wrap: break-word; }
@media (max-width: 620px) { #top h1 { font-size: 2.7rem; } .countdown { gap: .4rem; } }

/* =================== v4: intro + transitions =================== */

/* Intro: mark focuses in, the name writes itself out, then the pupil dilates into the site */
.intro { background: #EBEBEB; cursor: pointer; }
.intro .stage { display: grid; justify-items: center; gap: 1.4rem; width: min(80vw, 560px); }
.intro .mark { width: min(62vw, 380px); animation: focusIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
.intro .dilate { left: 50%; top: 51.7%; width: 4.9%; }
.intro .name {
  font-family: var(--body); font-weight: 400; color: #1B4D93;
  font-size: clamp(1rem, 3.4vw, 1.55rem); letter-spacing: .01em; text-align: center; min-height: 1.5em;
}
.intro .name span { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(4px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease; white-space: pre; }
.intro .name span.on { opacity: 1; transform: none; filter: none; }
.intro .rule { height: 2px; width: 0; background: #6B3E12; transition: width 1.4s cubic-bezier(.6,0,.2,1); }
.intro.writing .rule { width: 72%; }
.intro .skip { position: absolute; bottom: 1.5rem; font-size: .85rem; color: #8A8A8A; }
.intro.open .name, .intro.open .rule, .intro.open .skip { opacity: 0; transition: opacity .3s; }
@keyframes focusIn { from { opacity: 0; filter: blur(16px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } }

/* Page-to-page transitions (Chrome, Edge, Safari 18+; others just load normally) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vtOut .35s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vtIn .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }

/* Scroll progress line under the header */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

/* Headlines rise word by word from behind a mask */
.wsplit .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.wsplit .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 55ms); }
.wsplit.in .w > span { transform: none; }

/* Cards hop in from alternating sides, with a small spring */
.hop { opacity: 0; transform: translateX(var(--dx, -26px)); transition: opacity .6s ease, transform .9s cubic-bezier(.34,1.45,.64,1); transition-delay: calc(var(--i, 0) * 70ms); }
.hop.in { opacity: 1; transform: none; }

/* NOTS drift gets the same small spring */
section[data-fx="drift"] .fx { transition: opacity .7s ease, transform .95s cubic-bezier(.34,1.45,.64,1); }
section[data-fx="drift"] .fx:nth-child(3n) { transition-delay: .08s; }

/* Magnetic buttons */
.btn.magnet { transition: transform .25s cubic-bezier(.2,.8,.2,1), background .15s ease; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .wsplit .w > span, .hop { transform: none !important; opacity: 1 !important; }
}
.theme { font-weight: 500; font-style: italic; color: var(--iris); margin: -.2rem 0 .6rem; }
.overlay .hero-img.contain { background: #0D0E12; }
.overlay .hero-img.contain img { object-fit: contain; }
.overlay .hero-img.contain::after { background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.8)); }
.countries.ws li { border-color: var(--line); background: var(--surface); }
.origin .photo img { object-fit: contain; background: #0D0E12; }
.gallery img[src*="nsoc-history"], .gallery img[src*="art-winner"] { object-fit: contain; background: #0D0E12; }

/* Home: NSOC 2026 coming-soon banner */
.hero { min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; }
.next-banner {
  position: relative; z-index: 1; display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 1.4rem;
  background: var(--band); color: #EDEDED; text-decoration: none; border-radius: 20px; padding: 1.1rem 1.4rem 1.1rem 1.1rem;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s cubic-bezier(.34,1.4,.64,1), box-shadow .2s;
}
.next-banner.in { opacity: 1; transform: none; }
.next-banner:hover { color: #fff; box-shadow: 0 30px 60px -26px rgba(0,0,0,.6); }
.nb-badge { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--ink); background: var(--mint); border-radius: 8px; padding: .7rem .3rem; }
.nb-logo { height: 52px; width: auto; background: #fff; border-radius: 12px; padding: .45rem .7rem; }
.nb-text { display: grid; gap: .1rem; line-height: 1.35; }
.nb-text b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.nb-text > span { color: #CFCFCF; }
.nb-text small { color: var(--mint); font-size: .85rem; }
.countdown--mini { gap: .4rem; }
.countdown--mini div { padding: .55rem .4rem; min-width: 58px; }
.countdown--mini span { font-size: 1.9rem; }
.countdown--mini small { font-size: .7rem; }
.next-banner .btn { background: var(--mint); border-color: var(--mint); color: var(--ink) !important; }
.next-banner .btn:hover { background: #fff; border-color: #fff; }
.conf-full { font-weight: 500; font-size: 1.1rem; margin: -.2rem 0 .3rem; }
@media (max-width: 1100px) {
  .next-banner { grid-template-columns: auto 1fr; }
  .nb-badge { display: none; }
  .next-banner .countdown--mini { grid-column: 1 / -1; }
  .nb-cta { grid-column: 1 / -1; }
  .nb-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .nb-logo { height: 40px; }
  .nb-text b { font-size: 1.35rem; }
  .countdown--mini div { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .next-banner { opacity: 1; transform: none; } }
.hero .wrap.nb-wrap { display: block; }
.hero { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); gap: 2rem; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.hero .eye-stage { max-width: 380px; }
#top h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
@media (max-width: 960px) {
  .hero .wrap.nb-wrap { order: -1; }
  .hero .eye-stage { max-width: 190px; }
  .hero .wrap:not(.nb-wrap) { gap: 1.5rem; }
}

/* Country map */
.map { margin: 0; }
.map svg { width: 100%; height: auto; display: block; }
.map path { fill: var(--line); stroke: var(--surface); stroke-width: .5; transition: fill .2s; }
.map path.hit { fill: var(--blue); }
.map path:hover { fill: var(--steel); }
.map .pin circle { fill: var(--iris); }
.map .pin .ring { fill: none; stroke: var(--iris); stroke-width: 2; transform-origin: center; transform-box: fill-box; animation: ping 2.4s ease-out infinite; animation-delay: var(--d); }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
.map figcaption { margin-top: 1rem; }
.panel-map { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.year-panel .map svg { max-height: 340px; }
@media (prefers-reduced-motion: reduce) { .map .pin .ring { animation: none; opacity: 0; } }
.statgrid div:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Mini map in the year panel */
.panel-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.panel-map .mm-label { font-weight: 500; color: var(--ink-soft); font-size: .9rem; }
.panel-map .map { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr; gap: 1.5rem; align-items: center; }
.panel-map .map svg { max-height: 190px; }
.panel-map .map figcaption { margin: 0; }
.panel-map .countries.ws li { font-size: .82rem; padding: .25rem .7rem; }
@media (max-width: 700px) { .panel-map .map { grid-template-columns: 1fr; } }
/* NOTS reach: map on blue */
.reach-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.section--nots .map path { fill: rgba(255,255,255,.16); stroke: rgba(0,0,0,0); }
.section--nots .map path.hit { fill: #fff; }
.section--nots .map path:hover { fill: rgba(255,255,255,.4); }
.section--nots .map .pin circle { fill: var(--mint); }
.section--nots .map .pin .ring { stroke: var(--mint); }
.section--nots .countries.ws li { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.top-inst { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: .1rem; }
.top-inst li { counter-increment: t; display: grid; grid-template-columns: 2.2rem 1fr; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; }
.top-inst li::before { content: counter(t, decimal-leading-zero); font-family: var(--display); color: var(--mint); font-size: 1.1rem; }
@media (max-width: 900px) { .reach-grid { grid-template-columns: 1fr; } }
.impact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.impact b { font-size: clamp(2.8rem, 5.5vw, 4.6rem); }

/* Sponsor logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.logo-tile {
  background: #fff; border-radius: 14px; padding: 1.4rem 1.2rem 1rem; display: grid; justify-items: center; align-content: space-between; gap: .8rem;
  min-height: 150px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.logo-tile img { max-height: 70px; max-width: 100%; width: auto; object-fit: contain; }
.logo-tile span { font-size: .8rem; color: #6A6A6A; text-align: center; line-height: 1.3; }
.logo-tile.text b { font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: .03em; color: #1B4D93; line-height: 1; margin-top: .6rem; }

/* NOTS series tabs, themed with each series' banner colours */
.series-tabs { display: grid; gap: 1rem; margin-bottom: 2rem; }
.series-year { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: center; }
.yr-label { font-family: var(--display); font-size: 1.6rem; color: var(--ink-soft); }
.series-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.series-btns button {
  font: inherit; font-size: .95rem; font-weight: 500; text-align: left; cursor: pointer;
  padding: .6rem 1.1rem .65rem; border-radius: 14px; border: 2px solid var(--s-bg);
  background: var(--surface); color: var(--ink); display: grid; gap: .05rem; transition: transform .15s, background .2s, color .2s;
}
.series-btns button small { font-size: .72rem; font-weight: 400; opacity: .75; }
.series-btns button:hover { transform: translateY(-2px); }
.series-btns button[aria-selected="true"] { background: var(--s-bg); color: var(--s-fg); }
.series-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; background: var(--s-bg); color: var(--s-fg);
  border-radius: 14px; padding: 1rem 1.3rem; margin-bottom: .8rem; border-bottom: 6px solid var(--s-label);
}
.series-banner b { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.sb-term { font-size: .8rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--s-label); color: var(--s-ink); }
.sb-meta { margin-left: auto; font-size: .9rem; opacity: .85; }
.series-blurb p { color: var(--ink-soft); margin: 0 0 1rem; }
#series-panel .session .when {
  background: var(--s-bg); color: var(--s-fg); border-radius: 12px; padding: .7rem .5rem .55rem; text-align: center; font-size: 2.2rem;
}
#series-panel .session .when small { color: var(--s-fg); opacity: .85; }
#series-panel .session .chip { border-color: var(--s-bg); }
#series-panel.swap { animation: swap .35s ease; }
@media (max-width: 620px) {
  .series-year { grid-template-columns: 1fr; gap: .4rem; }
  #series-panel .session .when { display: inline-block; min-width: 90px; }
}
.series-year { grid-template-columns: 120px 1fr; } .yr-label { white-space: nowrap; }

/* Home: subtle rise — content fades up out of a soft blur, one element after another */
section[data-fx="rise"] .fx {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1s ease;
  transition-delay: calc(var(--k, 0) * 110ms);
}
section[data-fx="rise"].in .fx { opacity: 1; transform: none; filter: none; }
.hero > .wrap { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { section[data-fx="rise"] .fx { opacity: 1; transform: none; filter: none; } }

/* ---- v5: stat divider, map interactions, UK close-up ---- */
.sep { display: inline-block; width: 2px; height: .8em; background: currentColor; opacity: .35; margin: 0 .35em; vertical-align: .05em; }
.statgrid .stat-map { display: grid; gap: .3rem; align-content: start; }
.stat-map .map svg { max-height: 150px; }
.statgrid div:last-child:nth-child(odd).stat-map { grid-column: auto; }
.panel-map { border-top: 0; padding-top: 0; }
.panel-map .map-chips { margin-top: .2rem; }
.map-chips li { cursor: default; transition: background .2s, color .2s, border-color .2s; }
.map-chips li.hl, .map-chips li:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.map path.hit.hl { fill: var(--iris); }
.map .pin.hl circle { fill: var(--blue); }
.map .pin.hl .ring { stroke: var(--blue); }
.section--nots .map path.hit.hl { fill: var(--mint); }
.section--nots .map-chips li.hl, .section--nots .map-chips li:hover { background: #fff; border-color: #fff; color: var(--nots); }

.map-stage { position: relative; overflow: hidden; border-radius: 14px; }
.map-stage .world { transform-origin: var(--ox) var(--oy); transition: transform .9s cubic-bezier(.7,0,.2,1), opacity .6s ease; }
.map.zoomed .map-stage .world { transform: scale(5); opacity: 0; pointer-events: none; }
.map path.zoom-uk { cursor: zoom-in; }
.uk-view {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: center;
  opacity: 0; transform: scale(.7); transform-origin: var(--ox) var(--oy); pointer-events: none;
  transition: opacity .6s ease .35s, transform .9s cubic-bezier(.2,.8,.2,1) .25s;
}
.map.zoomed .uk-view { opacity: 1; transform: none; pointer-events: auto; }
.uk-view svg { width: 100%; height: 100%; max-height: 100%; }
.uk-view path { fill: rgba(255,255,255,.9); stroke: none; }
.uk-view circle.uni { fill: var(--mint); fill-opacity: .75; stroke: var(--nots); stroke-width: 1; cursor: pointer; transition: fill .15s, fill-opacity .15s; }
.uk-view circle.uni:hover { fill: var(--iris); fill-opacity: 1; }
.uk-side { color: #fff; }
.uk-side b { font-family: var(--display); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; }
.uk-side p { color: #DDE6F5; font-size: .95rem; margin: .4rem 0; }
.uk-tip { min-height: 3em; color: #fff !important; }
.uk-back { background: #fff !important; color: var(--nots) !important; border-color: #fff !important; }
.uk-open {
  margin-top: .6rem; font: inherit; font-size: .85rem; background: none; border: 1px dashed rgba(255,255,255,.5); color: #fff;
  border-radius: 999px; padding: .35rem .9rem; cursor: zoom-in;
}
.map.zoomed .uk-open, .map.zoomed figcaption { visibility: hidden; }
:root[data-theme="dark"] .uk-view path { fill: rgba(255,255,255,.85); }
@media (max-width: 700px) { .uk-view { grid-template-columns: 1fr; align-content: start; } .uk-side { display: none; } }
/* Contact page */
.contact-side h3 { font-size: 1.3rem; margin-top: 1.4rem; }
.contact-side h3:first-child { margin-top: 0; }
.contact-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.contact-links li { display: grid; }
.contact-links span { font-size: .85rem; color: var(--ink-soft); }

/* NSOC 2026 co-host lockup: InOA × St George's Ophthalmology Society */
.cohost { display: grid; gap: .45rem; margin: .4rem 0 1.2rem; }
.cohost-label { font-size: .85rem; color: var(--ink-soft); }
.cohost-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cohost-inoa { height: 46px; width: auto; }
.cohost-x { font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--iris); }
.cohost-partner img { height: 54px; width: auto; background: #fff; border-radius: 10px; padding: .35rem .6rem; }
.cohost-text { display: grid; line-height: 1.2; border-left: 3px solid var(--blue); padding-left: .75rem; }
.cohost-text b { font-weight: 600; font-size: 1.05rem; }
.cohost-text small { color: var(--ink-soft); font-size: .82rem; }
.nb-host { font-size: .85rem; color: #fff !important; font-weight: 500; }
@media (max-width: 620px) {
  #top h1 { font-size: clamp(1.9rem, 8.6vw, 2.7rem); }
  .cohost-row { gap: .6rem; }
  .cohost-text { flex-basis: 100%; }
}
.cohost-partner img { height: 84px; padding: .3rem .5rem; }
@media (max-width: 620px) { .cohost-partner img { height: 70px; } }

/* Home banner: NSOC logo with St George's OpSoc logo underneath */
.nb-logos { display: grid; justify-items: center; gap: .4rem; }
.nb-host-logo img { height: 52px; width: auto; background: #fff; border-radius: 10px; padding: .2rem .45rem; display: block; }
.nb-host-logo .cohost-text { display: none; }
.cohost-partner img { height: 84px; }
@media (max-width: 520px) { .nb-host-logo img { height: 44px; } }
.next-banner .btn, .nb-badge { color: #2E2E2E !important; }

/* ---------- Coming soon panel ---------- */
.soon {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.8rem, 5vw, 3.5rem); border: 1px solid var(--line);
}
.soon::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.soon-iris { width: clamp(110px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #0A0A0A 0 24%, #41220A 25%, #8A5520 45%, #6B3E12 62%, #2A1606 70%, #F2F2EE 71% 86%, var(--ink) 87%); position: relative; }
.soon-iris span { position: absolute; left: 30%; top: 28%; width: 11%; aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: .9; }
.soon-iris { animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); filter: brightness(1.06); } }
.soon-tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: .25rem .8rem; border-radius: 999px; background: var(--mint); color: #2E2E2E; margin-bottom: .8rem; }
.soon h2 { margin-bottom: .3em; }
.soon-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin: 1.6rem 0; }
.soon-item { background: var(--surface); padding: 1.2rem 1.1rem; display: grid; gap: .2rem; align-content: start; }
.soon-item b { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: .9; color: var(--blue); }
.soon-item span { font-weight: 500; }
.soon-item small { color: var(--ink-soft); font-size: .85rem; line-height: 1.4; }
@media (max-width: 700px) { .soon { grid-template-columns: 1fr; } .soon-iris { width: 96px; } }
@media (prefers-reduced-motion: reduce) { .soon-iris { animation: none; } }

/* ---------- NSOC 2026 hero: stacked year, jump bar ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conf-title { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.4rem); margin: .3rem 0 .2rem; }
.conf-title h1 { margin: 0; }
.yr-stack {
  display: grid; font-family: var(--display); font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: .82;
  color: var(--iris); padding-right: clamp(.8rem, 2vw, 1.4rem); border-right: 3px solid var(--blue);
}
.yr-stack span:last-child { color: var(--blue); }
.hero-side { display: grid; gap: 1rem; align-content: center; }
.jumpbar { display: grid; gap: .5rem; }
.jumpbar a {
  display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .6rem; align-items: center;
  padding: .75rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500; transition: transform .2s cubic-bezier(.34,1.45,.64,1), border-color .2s;
}
.jumpbar a small { grid-column: 2; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.jumpbar .jb-k { grid-row: span 2; font-family: var(--display); font-size: 1.3rem; color: var(--blue); }
.jumpbar a:hover { transform: translateX(6px); border-color: var(--blue); color: var(--ink); }
.jumpbar a.jb-hot { background: var(--blue); border-color: var(--blue); color: #fff; }
.jumpbar a.jb-hot .jb-k { color: var(--mint); }
.jumpbar a.jb-hot small { color: #DDE6F5; }
.jumpbar a[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.countdown-cap { margin: -.4rem 0 0; font-size: .85rem; color: var(--ink-soft); text-align: right; }

/* ---------- NSOC tickets: alerts form ---------- */
.tix { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tix-types { display: grid; gap: .8rem; margin-top: 1.4rem; }
.tix-types div { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-left: 4px solid var(--blue); background: var(--paper); border-radius: 0 12px 12px 0; }
.tix-types div:last-child { border-left-color: var(--iris); }
.tix-types b { font-weight: 600; }
.tix-types span { color: var(--ink-soft); font-size: .95rem; }
.tix-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); max-width: none; }
.tix-form h3 { margin: 0 0 .2rem; }
.checks { border: 0; padding: 0; margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.checks legend { font-weight: 500; font-size: .95rem; margin-bottom: .4rem; }
.checks label { display: flex; align-items: center; gap: .45rem; font-weight: 400; }
.checks input { width: 18px; height: 18px; accent-color: var(--blue); }
@media (max-width: 860px) { .tix { grid-template-columns: 1fr; } .countdown-cap { text-align: left; } }

#top .conf-title { min-width: 0; }
#top .conf-title h1 { font-size: clamp(2rem, 3.7vw, 4rem); overflow-wrap: normal; min-width: 0; }
#top .wrap.next > div:first-child { min-width: 0; }
@media (max-width: 620px) { #top .conf-title h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); } .yr-stack { font-size: 2.6rem; } }
/* Home banner: conference name under the title, in a lighter navy */
.nb-sub { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; color: #8FB0E6 !important; margin-top: -.1rem; }
/* NSOC page: same treatment for the full name under the title */
#top .conf-full { font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: .03em; text-transform: uppercase; color: #4F78B8; margin: .4rem 0 .6rem; }
:root[data-theme="dark"] #top .conf-full { color: #8FB0E6; }
.logo-tile.text b { font-size: 1.7rem; text-align: center; }

/* Team: grouped cards, coming-soon state */
.team-group { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--ink-soft); }
.team-group:first-of-type { margin-top: 0; }
.person { display: grid; gap: .15rem; align-content: start; }
.person .role { font-size: .8rem; font-weight: 600; color: var(--blue); }
.person small { color: var(--ink-soft); font-size: .85rem; line-height: 1.4; }
.soon-pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: var(--mint); color: #2E2E2E; }
.soon-person .ph { background: var(--surface); border: 1px dashed var(--line); }
.ph-soon { width: 42%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #0A0A0A 0 26%, #6B3E12 27% 64%, transparent 65%); opacity: .35; }
.rep .who .soon-pill { margin-top: .3rem; }
.committee-cta { margin-top: 1.5rem; color: var(--ink-soft); }
:root[data-theme="dark"] .jumpbar a.jb-hot { background: #1B4D93; border-color: #1B4D93; }
:root[data-theme="dark"] .yr-stack span:last-child { color: #8FB0E6; }

/* NSOC menu: lateral strip under the header instead of a drop-down list */
@media (min-width: 821px) {
  .has-sub.lateral { position: static; }
  .has-sub.lateral .sub {
    position: absolute; left: 0; right: 0; top: 100%; transform: translateY(-6px); min-width: 0;
    border-radius: 0 0 18px 18px; border-width: 0 0 1px 0; padding: .9rem max(1.25rem, calc((100vw - var(--wrap)) / 2));
    display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none;
  }
  .has-sub.lateral .sub::before { inset: -14px 0 auto 0; height: 14px; }
  .has-sub.lateral:hover .sub, .has-sub.lateral:focus-within .sub { transform: none; }
  .has-sub.lateral .sub a {
    flex: 1 1 0; min-width: 130px; padding: .75rem .9rem !important; border: 1px solid var(--line); border-radius: 12px !important;
    font-weight: 500; transition: transform .2s cubic-bezier(.34,1.45,.64,1), border-color .2s, background .2s;
  }
  .has-sub.lateral .sub a:hover { transform: translateY(-3px); border-color: var(--blue); background: var(--paper); }
  .has-sub.lateral .sub a[target="_blank"] { background: var(--blue); border-color: var(--blue); color: #fff; }
  .has-sub.lateral .sub a[target="_blank"] small { color: #DDE6F5; }
  :root[data-theme="dark"] .has-sub.lateral .sub a[target="_blank"] { background: #1B4D93; border-color: #1B4D93; }
}
@media (min-width: 821px) and (max-width: 1080px) { .nav a { padding: .45rem .5rem; font-size: .86rem; } }
@media (min-width: 821px) and (max-width: 1100px) { .has-sub.lateral .sub { flex-wrap: wrap; } .has-sub.lateral .sub a { flex: 1 1 22%; } }

/* NSOC page: jump bar runs side by side (lateral) above the countdown */
.jumpbar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.jumpbar a { grid-template-columns: 1fr; padding: .8rem .9rem; align-content: start; }
.jumpbar .jb-k { grid-row: auto; font-size: 1.05rem; line-height: 1; margin-bottom: .35rem; }
.jumpbar a small { grid-column: 1; margin-top: .2rem; line-height: 1.3; }
.jumpbar a:hover { transform: translateY(-4px); }
@media (max-width: 520px) { .jumpbar a { padding: .7rem .65rem; font-size: .9rem; } .jumpbar a small { font-size: .72rem; } }
@media (max-width: 820px) { .stack > section[data-fx="stack"] { position: relative; } }

/* "NATIONAL CONFERENCE": wide, tracked-out periwinkle line under Global Ophthalmology (from the NSOC 2026 poster) */
.nat-conf {
  font-family: "Lexend Zetta", "Lexend", sans-serif; font-weight: 600; text-transform: uppercase;
  color: #A7B6DB; letter-spacing: .32em; line-height: 1; white-space: nowrap;
}
#top .nat-conf { font-size: clamp(.95rem, 1.75vw, 1.6rem); margin: .55rem 0 .3rem; }
:root[data-theme="dark"] .nat-conf { color: #8FA3D6; }
/* the full name becomes a quieter line underneath */
#top .conf-full { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .95rem; color: var(--ink-soft); margin: .2rem 0 .6rem; }
:root[data-theme="dark"] #top .conf-full { color: var(--ink-soft); }
.next-banner .nb-sub.nat-conf { font-family: "Lexend Zetta", "Lexend", sans-serif; font-size: .82rem; letter-spacing: .3em; color: #A7B6DB !important; margin: .3rem 0 .1rem; }
@media (max-width: 620px) { #top .nat-conf { font-size: .82rem; letter-spacing: .22em; } .next-banner .nb-sub.nat-conf { font-size: .7rem; letter-spacing: .2em; } }
.conf-title-text { min-width: 0; }
#top .conf-title-text .nat-conf { margin: .5rem 0 0; }
#top .conf-title + .conf-full { margin-top: .9rem; }

/* 2026 stacked next to the NSOC logo */
.nsoc-lockup { display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1rem); margin-bottom: 1.2rem; }
.nsoc-lockup .logo-lockup { margin: 0; }
.nsoc-lockup .yr-stack { border-right: 0; border-left: 3px solid var(--blue); padding: 0 0 0 clamp(.6rem, 1.4vw, 1rem); font-size: clamp(2.2rem, 3.6vw, 3rem); }
#top .conf-title { display: block; }
/* width is set by JS to match the title exactly */
.nat-conf { letter-spacing: 0; }
.next-banner .nb-sub.nat-conf, #top .nat-conf { letter-spacing: 0; }
.nb-text { justify-items: start; }

/* ---------- Jump bar: bolder, colour-blocked cards ---------- */
.jumpbar { gap: .7rem; }
.jumpbar a {
  position: relative; overflow: hidden; border: 0; color: #fff !important; padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 16px 30px -18px rgba(0,0,0,.55); min-height: 150px;
}
.jumpbar a:nth-child(1) { background: #2E2E2E; }
.jumpbar a:nth-child(2) { background: var(--iris); }
.jumpbar a:nth-child(3), .jumpbar a.jb-hot { background: linear-gradient(150deg, #2A62B8 0%, #1B4D93 60%, #15306B 100%); }
:root[data-theme="dark"] .jumpbar a:nth-child(1) { background: #3A3F4B; }
:root[data-theme="dark"] .jumpbar a:nth-child(2) { background: #8A5520; }
.jumpbar .jb-k { font-size: 2.4rem; line-height: .9; color: rgba(255,255,255,.28); margin-bottom: .5rem; }
.jumpbar a.jb-hot .jb-k { color: var(--mint); }
.jumpbar a { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.jumpbar a small { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .8rem; line-height: 1.35; color: rgba(255,255,255,.78) !important; margin-top: .45rem; }
.jumpbar a::after {
  content: ""; position: absolute; right: .9rem; bottom: .9rem; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s cubic-bezier(.34,1.45,.64,1), background-color .2s;
}
.jumpbar a[href^="#"]::after { transform: rotate(90deg); }
.jumpbar a:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.jumpbar a:hover::after { background-color: rgba(255,255,255,.3); transform: translateX(3px); }
.jumpbar a[href^="#"]:hover::after { transform: rotate(90deg) translateX(3px); }
.jb-days {
  display: inline-block; margin-top: .45rem; padding: .2rem .6rem; border-radius: 999px; font-weight: 600; font-size: .78rem;
  background: var(--mint); color: #15306B; box-shadow: 0 0 0 0 rgba(158,227,166,.7); animation: jbPulse 2.2s ease-out infinite;
}
@keyframes jbPulse { 0% { box-shadow: 0 0 0 0 rgba(158,227,166,.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(158,227,166,0); } }
.jumpbar a.jb-hot { outline: 3px solid var(--mint); outline-offset: 3px; }
@media (max-width: 520px) {
  .jumpbar { gap: .45rem; }
  .jumpbar a { font-size: 1.05rem; min-height: 132px; padding: .85rem .7rem 2.4rem; }
  .jumpbar .jb-k { font-size: 1.7rem; }
  .jumpbar a small { font-size: .7rem; }
  .jumpbar a::after { width: 22px; height: 22px; right: .6rem; bottom: .6rem; }
  .jb-days { font-size: .68rem; padding: .15rem .45rem; }
}
@media (prefers-reduced-motion: reduce) { .jb-days { animation: none; } }
.jb-days { display: table; }
.jumpbar a { padding-bottom: 2.9rem; }
@media (max-width: 520px) { .jumpbar a { padding-bottom: 2.5rem; } }

/* Blog: cover images and rich text from the admin editor */
.post-card.has-cover { padding-top: 0; overflow: hidden; }
.post-cover { margin: 0 -1.6rem 1rem; width: calc(100% + 3.2rem); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); margin: 0 0 2rem; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 600; margin: 2rem 0 .6rem; }
.article-body h2 { font-size: 1.6rem; } .article-body h3 { font-size: 1.3rem; } .article-body h4 { font-size: 1.1rem; }
.article-body ul, .article-body ol { font-size: 1.15rem; line-height: 1.75; padding-left: 1.4rem; margin: 0 0 1em; }
.article-body blockquote { font-size: 1.3rem; }
.article-body figure { margin: 1.8rem 0; }
.article-body img { border-radius: 14px; width: 100%; }
.article-body figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
.nb-host-logo img { height: 64px; } @media (max-width: 520px) { .nb-host-logo img { height: 54px; } }

/* ---------- Phones: NOTS past sessions look like the desktop view ---------- */
@media (max-width: 620px) {
  /* series picker: one swipeable row of themed pills, grouped by year */
  .series-tabs { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .4rem; margin: 0 -1.25rem 1.5rem; padding-left: 1.25rem; padding-right: 1.25rem; scrollbar-width: none; }
  .series-tabs::-webkit-scrollbar { display: none; }
  .series-year { display: flex; flex-direction: column; gap: .4rem; flex: none; }
  .yr-label { font-size: 1.05rem; }
  .series-btns { flex-wrap: nowrap; gap: .5rem; }
  .series-btns button { flex: none; scroll-snap-align: start; padding: .5rem .85rem .55rem; font-size: .88rem; }
  /* series banner a bit tighter */
  .series-banner { padding: .85rem 1rem; }
  .series-banner b { font-size: 1.6rem; }
  .sb-meta { margin-left: 0; width: 100%; }
  /* sessions: compact date block on the left, details on the right (like desktop) */
  #series-panel .session, .session { grid-template-columns: 64px 1fr; gap: .9rem; align-items: start; padding: 1rem 0; }
  #series-panel .session > div:last-child:empty { display: none; }
  #series-panel .session .when { display: block; min-width: 0; font-size: 1.6rem; padding: .5rem .2rem .45rem; border-radius: 10px; }
  #series-panel .session .when small { font-size: .65rem; }
  .session h3 { font-size: 1rem; line-height: 1.3; margin-top: .3rem; }
  .session .chip { font-size: .7rem; padding: .1rem .5rem; }
  .session p { font-size: .85rem; }
}

/* ---------- Phones: UK close-up map that actually works ---------- */
@media (max-width: 700px) {
  .map.zoomed .map-stage .world { display: none; }
  .map.zoomed .uk-view { position: relative; inset: auto; transform: none; opacity: 1; grid-template-columns: 1fr; gap: .8rem; }
  .uk-view svg { max-height: 62vh; }
  .uk-side { display: block !important; }
  .uk-side b { font-size: 1.4rem; }
  .uk-tip { min-height: 2.6em; background: rgba(255,255,255,.12); border-radius: 10px; padding: .5rem .75rem; }
  .map.zoomed figcaption, .map.zoomed .uk-open { display: none; }
  .uk-view circle.uni { stroke-width: 1.5; }
}
.uk-view circle.uni.on { fill: var(--iris); fill-opacity: 1; stroke: #fff; stroke-width: 2; }
@media (max-width: 620px) {
  .series-tabs { margin: 0 0 1.5rem; padding: 0 0 .4rem; }
  .series-year { align-items: flex-start; }
  .yr-label { padding-left: .1rem; }
}

/* =================== Phone polish (audit pass) =================== */
/* never let a card that's mid-animation push the page sideways */
main { overflow-x: clip; }

@media (max-width: 620px) {
  /* iOS zooms into any field with text under 16px: keep fields at 16px */
  input, select, textarea, .form input, .form select, .form textarea, .form-inline input, .rep-tools input { font-size: 16px !important; }

  /* readable small text */
  .countdown small, .countdown--mini small { font-size: .78rem; }
  .jumpbar a small { font-size: .76rem; }
  .jb-days { font-size: .74rem; }
  #series-panel .session .when small { font-size: .72rem; }
  .session .chip, .chip { font-size: .76rem; }
  .next-banner .nb-sub.nat-conf { font-size: .74rem; }

  /* comfortable tap targets */
  .faq summary { padding: .35rem 0; min-height: 44px; align-items: center; }
  .uk-back { padding: .7rem 1.1rem !important; }
  .values a, .committee-cta a, .series-blurb a { display: inline-block; padding: .45rem 0; }
  .checks label { padding: .35rem 0; }

  /* team: two compact cards per row instead of one giant photo each */
  .people { grid-template-columns: 1fr 1fr; gap: 1rem .8rem; }
  .person .ph { aspect-ratio: 1; font-size: 2rem; }
  .person b { font-size: .95rem; }
  .person small { font-size: .78rem; }

  /* NOTS reach: the odd last stat spans the full row (no empty box) */
  .impact > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* "new series in the works" card stacks neatly */
  .coming { grid-template-columns: 1fr; gap: .8rem; padding: 1.4rem; }

  /* NSOC 2025 panel: mini map gets its own full row */
  .statgrid .stat-map { grid-column: 1 / -1; }
  .stat-map .map svg { max-height: 190px; }

  /* footer: links in two columns so it isn't a long list */
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
  .site-footer .wrap > div:first-child, .site-footer .legal { grid-column: 1 / -1; }
  .site-footer { padding-top: 3rem; }

  /* section rhythm a touch tighter on small screens */
  .section { padding: 3.4rem 0; }
  .page-hero { padding: 2.6rem 0 2.2rem; }
}

/* NSOC page on phones: put the jump bar + countdown right after the "hosted by" line,
   before the long description, so the key actions are on the first screen */
@media (max-width: 960px) {
  #top .wrap.next { display: flex; flex-direction: column; gap: 0; }
  #top .wrap.next > div:first-child { display: contents; }
  #top .nsoc-lockup { order: 1; }
  #top .conf-title { order: 2; }
  #top .conf-full { order: 3; }
  #top .cohost { order: 4; }
  #top .hero-side { order: 5; margin: .4rem 0 1.6rem; }
  #top .lead { order: 6; }
  #top .meta { order: 7; }
  #top .btn-row { order: 8; }
}
@media (max-width: 700px) { .map .uk-back { min-height: 44px; padding: .6rem 1.1rem !important; } }

/* ---------- NSOC 2026 live tickets ---------- */
.tix--live { grid-template-columns: 1.35fr 1fr; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.price-card {
  display: grid; align-content: start; gap: .35rem; padding: 1.4rem 1.3rem 1.3rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none;
  transition: transform .25s cubic-bezier(.34,1.45,.64,1), box-shadow .2s, border-color .2s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 18px 34px -20px rgba(0,0,0,.4); }
.price-card--main { background: linear-gradient(150deg, #2A62B8 0%, #1B4D93 60%, #15306B 100%); border: 0; color: #fff !important; }
.pc-name { font-weight: 600; font-size: .95rem; }
.pc-price { font-family: var(--display); font-size: clamp(3rem, 7vw, 4.4rem); line-height: .95; color: var(--blue); }
.price-card--main .pc-price { color: var(--mint); }
.pc-text { font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }
.price-card--main .pc-text { color: #DDE6F5; }
.pc-btn { justify-self: start; margin-top: .6rem; }
.price-card--main .pc-btn { background: #fff; border-color: #fff; color: var(--nots) !important; }
.perks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.perks h3 { margin: 0 0 .8rem; }
.perks ul { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .7rem; }
.perks li { position: relative; padding-left: 1.7rem; line-height: 1.45; }
.perks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315306B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.perks-note { font-size: .82rem; color: var(--ink-soft); margin: .7rem 0 0; }

/* ---------- Programme detail: format line and split tracks ---------- */
.d-format { display: inline-block; font-size: .8rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--mint) !important; margin: .2rem 0 .6rem; }
.tracks { display: grid; gap: .7rem; margin: .4rem 0 .2rem; }
.track { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .8rem 1rem; }
.track b { display: block; color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.track ul { margin: 0; padding-left: 1.1rem; color: #C9C9C9; font-size: .92rem; line-height: 1.5; }
.slot time { white-space: nowrap; }

@media (max-width: 860px) {
  .tix--live { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .price-cards { grid-template-columns: 1fr; }
  .explorer .detail { padding: 1.4rem; }
  .slot { grid-template-columns: 52px 1fr; }
  .slot .type { display: none; }
}
@media (max-width: 960px) {
  .slots > .detail { margin: .2rem 0 .6rem; position: static; }
}

/* ===== NSOC 2026 speakers ===== */
.section--speakers { background: var(--band); color: #EDEDED; position: relative; overflow: hidden; }
.section--speakers::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(158,227,166,.16), transparent 70%); pointer-events: none; }
.section--speakers h2 { color: #fff; }
.section--speakers .lead { color: #B9BEC8; }
.section--speakers .bar { background: var(--mint); }
.spk-group { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .04em; font-size: 1.35rem; color: #fff; margin: 2.2rem 0 1rem; }
.spk-group span { font-family: var(--body); font-size: .75rem; letter-spacing: 0; background: rgba(255,255,255,.1); color: var(--mint);
  border-radius: 99px; padding: .15rem .55rem; }
.spk-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.spk { position: relative; display: flex; flex-direction: column; background: #24272F; border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; }
.spk:hover { transform: translateY(-6px); border-color: rgba(158,227,166,.45); box-shadow: 0 24px 40px -24px rgba(0,0,0,.8); }
.spk-face { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: #1B1E25; }
.spk-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.spk:hover .spk-face img { transform: scale(1.05); }
.spk > .spk-face::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(36,39,47,.95)); }
.spk-face--mono { display: grid; place-items: center; background:
  radial-gradient(circle at 50% 46%, transparent 0 26%, rgba(255,255,255,.06) 26.5% 27.5%, transparent 28% 38%, rgba(255,255,255,.05) 38.5% 39.5%, transparent 40%),
  linear-gradient(150deg, #2A62B8 0%, #1B4D93 55%, #15306B 100%); }
.spk-face--mono span { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.6rem); color: #fff; letter-spacing: .03em; }
.spk-face--tbc { display: grid; place-items: center; background:
  repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px), #1E2128; }
.spk-face--tbc span { font-family: var(--display); font-size: 4.4rem; color: var(--mint); width: 120px; height: 120px; display: grid; place-items: center;
  border: 2px dashed rgba(158,227,166,.5); border-radius: 50%; animation: spkPulse 2.6s ease-in-out infinite; }
@keyframes spkPulse { 50% { transform: scale(1.06); border-color: rgba(158,227,166,.9); } }
.spk-tag { position: absolute; top: .8rem; left: .8rem; z-index: 2; font-size: .72rem; font-weight: 600; background: var(--mint); color: #1F2A22;
  border-radius: 99px; padding: .28rem .7rem; }
.spk-body { padding: 0 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; margin-top: -1.4rem; position: relative; z-index: 1; }
.spk-body h3 { color: #fff; font-size: 1.15rem; line-height: 1.25; margin: 0; }
.spk-role { color: #9EA4B0; font-size: .82rem; line-height: 1.4; margin: 0; }
.spk-title { color: var(--mint); font-weight: 600; font-size: .92rem; line-height: 1.35; margin: .2rem 0 0; }
.spk-short { color: #C9CDD5; font-size: .86rem; line-height: 1.55; margin: .1rem 0 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.spk-more { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: .5rem 0 0; color: #fff; font: inherit; font-weight: 600;
  font-size: .88rem; cursor: pointer; }
.spk-more::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.spk-more span { display: inline-block; transition: transform .25s; color: var(--mint); }
.spk:hover .spk-more span { transform: translateX(5px); }
.spk-more:focus-visible { outline: none; }
.spk:has(.spk-more:focus-visible) { outline: 3px solid var(--mint); outline-offset: 3px; }
.spk-more--muted { color: #8A909C; font-weight: 400; cursor: default; }
.spk--tbc .spk-body h3 { color: #DDE; }

/* Speaker chip inside the programme detail panel */
.d-spk { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: .55rem .8rem .55rem .55rem; color: #fff; font: inherit; cursor: pointer; margin: .6rem 0; transition: background .2s, border-color .2s; }
.d-spk:hover { background: rgba(255,255,255,.1); border-color: var(--mint); }
.spk-face--xs { width: 46px; height: 46px; aspect-ratio: 1; border-radius: 50%; flex: none; }
.spk-face--xs span { font-size: 1rem !important; }
.spk-face--xs.spk-face--mono { background: linear-gradient(150deg, #2A62B8, #15306B); }
.d-spk span { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.d-spk small { color: #A9AFBA; font-size: .76rem; line-height: 1.35; }
.d-spk em { font-style: normal; font-size: .75rem; font-weight: 600; color: #1F2A22; background: var(--mint); border-radius: 99px; padding: .2rem .6rem; }

/* Full-bio pop-up */
html.spk-lock { overflow: hidden; }
.spk-modal { border: 0; padding: 0; background: transparent; max-width: min(920px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 48px); overflow: visible; color: var(--ink); }
.spk-modal::backdrop { background: rgba(10,12,16,.72); backdrop-filter: blur(6px); }
.spk-modal[open] { animation: spkIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes spkIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.spk-m { position: relative; display: grid; grid-template-columns: 300px 1fr; background: var(--surface); border-radius: 22px; overflow: auto; max-height: calc(100vh - 48px); }
.spk-m-side { background: var(--band); padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; align-self: start; min-height: 100%; }
.spk-face--lg { border-radius: 14px; aspect-ratio: 4 / 5; }
.spk-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.spk-links a { font-size: .8rem; font-weight: 600; color: #fff !important; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: .3rem .8rem; text-decoration: none; }
.spk-links a:hover { border-color: var(--mint); color: var(--mint) !important; }
.spk-m-main { padding: 2.2rem 2.4rem 2.2rem; }
.spk-kind { display: inline-block; font-size: .72rem; font-weight: 600; background: var(--mint); color: #1F2A22; border-radius: 99px; padding: .25rem .7rem; }
.spk-m-main h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.05; margin: .7rem 0 .2rem; letter-spacing: .01em; }
.spk-creds { color: var(--blue); font-weight: 600; font-size: .85rem; margin: 0; }
.spk-m-main .spk-role { color: var(--ink-soft); font-size: .92rem; margin: .3rem 0 0; }
.spk-talk { margin: 1.2rem 0 .2rem; padding: .9rem 1rem; border-left: 4px solid var(--blue); background: var(--paper-2); border-radius: 0 10px 10px 0; display: grid; gap: .2rem; }
.spk-talk small { color: var(--ink-soft); font-size: .75rem; }
.spk-talk b { font-size: 1rem; line-height: 1.35; }
.spk-bio { margin: 1.2rem 0 1.4rem; font-size: .95rem; line-height: 1.7; }
.spk-bio p { margin: 0 0 .9rem; }
.spk-bio ul { margin: 0 0 .9rem; padding-left: 1.1rem; }
.spk-bio li { margin: .25rem 0; }
.spk-x { position: absolute; top: .8rem; right: .8rem; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--surface);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.spk-x:hover { transform: rotate(90deg); transition: transform .25s; }
@media (max-width: 720px) {
  .spk-row { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .spk-body { padding: 0 .85rem 1rem; }
  .spk-body h3 { font-size: .98rem; }
  .spk-short { display: none; }
  .spk-title { font-size: .82rem; }
  .spk-tag { font-size: .66rem; top: .55rem; left: .55rem; padding: .22rem .55rem; }
  .spk-face--tbc span { width: 80px; height: 80px; font-size: 3rem; }
  .spk-modal { max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .spk-m { display: block; border-radius: 0; max-height: 100dvh; height: 100dvh; }
  .spk-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .spk-m-side { padding-right: 4rem !important; }
  .spk-m-side { position: static; min-height: 0; flex-direction: row; align-items: center; padding: 1rem 1.2rem; }
  .spk-face--lg { width: 96px; aspect-ratio: 1; border-radius: 50%; flex: none; }
  .spk-face--lg.spk-face--mono span { font-size: 1.9rem; }
  .spk-m-main { padding: 1.4rem 1.2rem 2rem; }
}
@media (prefers-reduced-motion: reduce) { .spk-face--tbc span, .spk-modal[open] { animation: none; } }
.stack > section.section--speakers { background: var(--band); }
@media (min-width: 1100px) { .spk-row { grid-template-columns: repeat(5, 1fr); gap: 1rem; } .spk-body h3 { font-size: 1.05rem; } }

/* Mini bio in the timetable detail panel */
.d-about { color: #E4E7EC; font-size: .95rem; line-height: 1.6; margin: .8rem 0; }
div.d-spk { display: block; cursor: default; padding: .85rem .95rem; }
div.d-spk:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.d-spk-top { display: flex; align-items: center; gap: .75rem; }
.d-spk-top span { display: grid; gap: .1rem; min-width: 0; }
.d-spk-bio { color: #C9CDD5; font-size: .86rem; line-height: 1.55; margin: .7rem 0 .2rem; }
.d-spk-more { background: none; border: 0; padding: .3rem 0 0; color: #fff; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.d-spk-more span { color: var(--mint); display: inline-block; transition: transform .25s; }
.d-spk-more:hover span { transform: translateX(4px); }

/* ===== Keynote colour, bold highlights, split workshop tracks ===== */
:root { --key: #F5B841; }
.type--keynote { color: #8A5A00; background: #FFF1CF; font-weight: 600; }
:root[data-theme="dark"] .type--keynote { color: #F5B841; background: rgba(245,184,65,.14); }
.slot--keynote { border-left: 4px solid var(--key); }
.slot--keynote time { color: #B07A0A; }
:root[data-theme="dark"] .slot--keynote time { color: var(--key); }
@media (max-width: 720px) { .slot--keynote .type { display: inline-block !important; } }
.detail .type--keynote { background: var(--key); color: #2A1E00; }
.spk-tag.is-key, .spk-kind.is-key { background: var(--key); color: #2A1E00; }
.spk.has-key { border-color: rgba(245,184,65,.25); }
.spk-short strong, .d-spk-bio strong { color: #fff; font-weight: 600; }
.spk-bio strong { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, rgba(158,227,166,.55) 62%); }
:root[data-theme="dark"] .spk-bio strong { background: linear-gradient(transparent 62%, rgba(158,227,166,.28) 62%); }
.spk-lead { max-width: 62ch; }
.spk-lead strong { color: var(--mint); font-weight: 600; }
.spk-hint { color: #8A909C; font-size: .85rem; margin: .4rem 0 0; }
.detail p strong, .track li strong { color: #fff; }
.tracks--split { grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .8rem; }
.track { display: flex; flex-direction: column; gap: .5rem; }
.track-h { display: flex; align-items: center; gap: .55rem; }
.track-h i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; flex: none; }
.track-h span { display: grid; line-height: 1.2; }
.track-h b { margin: 0 !important; font-size: 1rem !important; }
.track-h small { color: #A9AFBA; font-size: .74rem; }
.track--inperson { border-top: 3px solid var(--mint); }
.track--inperson .track-h i { background: rgba(158,227,166,.18); }
.track--online { border-top: 3px solid #7FA8F0; }
.track--online .track-h i { background: rgba(127,168,240,.18); }
.track ul { padding-left: 1rem; }
@media (max-width: 720px) { .tracks--split .track { padding: .7rem .75rem; } .track-h i { width: 26px; height: 26px; font-size: .8rem; } .track ul { font-size: .84rem; padding-left: .9rem; } }
@media (max-width: 330px) { .tracks--split { grid-template-columns: 1fr; } }
.spk:has(.spk-tag.is-key) { border-top: 3px solid var(--key); }
.spk-group.is-key { color: var(--key); }

/* ===== Jump bar 2x2, slit lamp callout, tidier sponsor tiles ===== */
.jumpbar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.jumpbar a { min-height: 128px; }
.jumpbar a:nth-child(3):not(.jb-hot) { background: linear-gradient(150deg, #C98A12 0%, #9A6408 100%); }
.slitlamp-callout { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0 1.2rem; padding: 1rem 1.2rem; border-radius: 16px;
  background: linear-gradient(120deg, #15306B 0%, #1B4D93 55%, #2A62B8 100%); color: #fff !important; text-decoration: none; max-width: 620px;
  box-shadow: 0 18px 36px -22px rgba(21,48,107,.8); position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.slitlamp-callout::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(158,227,166,.35), transparent); }
.slitlamp-callout:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -20px rgba(21,48,107,.9); }
.sl-icon { width: 52px; height: 52px; flex: none; color: var(--mint); background: rgba(255,255,255,.08); border-radius: 14px; padding: 8px; }
.slitlamp-callout span { display: grid; gap: .25rem; position: relative; }
.slitlamp-callout b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .02em; color: var(--mint); }
.slitlamp-callout small { font-size: .88rem; line-height: 1.5; color: #DDE6F5; }
.slitlamp-callout small strong { color: #fff; }
.slitlamp-callout i { font-style: normal; font-size: 1.3rem; color: var(--mint); margin-left: auto; transition: transform .25s; position: relative; }
.slitlamp-callout:hover i { transform: translateX(4px); }
@media (max-width: 520px) { .slitlamp-callout { padding: .9rem; gap: .75rem; } .sl-icon { width: 44px; height: 44px; } .slitlamp-callout i { display: none; } }
.logo-tile { align-content: stretch; grid-template-rows: 1fr auto; }
.lt-mark { height: 84px; width: 100%; display: grid; place-items: center; }
.logo-tile img { max-height: 72px; }
.logo-tile.text .lt-mark b { font-family: var(--body); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; color: var(--blue); margin: 0; text-align: center; line-height: 1.15; }
.logo-tile span { border-top: 1px solid var(--line); padding-top: .6rem; width: 100%; }
:root[data-theme="dark"] .logo-tile { background: #fff; }
:root[data-theme="dark"] .logo-tile.text .lt-mark b { color: #1B4D93; }
.logos--sponsors { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 520px) { .logos--sponsors { grid-template-columns: 1fr 1fr; gap: .7rem; } .logos--sponsors .logo-tile { min-height: 130px; padding: 1rem .8rem .8rem; } .logos--sponsors .lt-mark { height: 64px; } .logo-tile.text .lt-mark b { font-size: 1.2rem; } }
@media (max-width: 960px) {
  #top .slitlamp-callout { order: 6; margin: 0 0 1.6rem; }
  #top .lead { order: 7; } #top .meta { order: 8; } #top .btn-row { order: 9; }
}

/* ===== Split sessions: two boxes side by side ===== */
.slot-pair { background: var(--surface); border-radius: 12px; padding: .75rem .75rem .75rem 1.1rem; display: grid; gap: .6rem; }
.pair-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding-right: .35rem; }
.pair-head time { font-weight: 600; color: var(--blue); }
.pair-head b { font-weight: 500; }
.pair-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-left: calc(64px + 1rem); }
.slot.slot--half { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .7rem .85rem; border: 1px solid var(--line);
  background: var(--paper-2); border-top-width: 3px; }
.slot--half:hover { transform: translateY(-2px); }
.slot--half.slot--inperson { border-top-color: #4FB85E; }
.slot--half.slot--online { border-top-color: #4F7FD8; }
.slot--half[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.half-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.slot--inperson .half-tag { color: #2E8B3E; }
.slot--online .half-tag { color: #2F5FBF; }
:root[data-theme="dark"] .slot--inperson .half-tag { color: var(--mint); }
:root[data-theme="dark"] .slot--online .half-tag { color: #8FB3F5; }
.slot--half b { font-size: .95rem; line-height: 1.3; }
.half-sub { font-size: .75rem; color: var(--ink-soft); }
.tracks--split:has(> .track:only-child) { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .slot-pair { padding: .7rem; }
  .pair-head { grid-template-columns: 52px 1fr; }
  .pair-head .type { display: none; }
  .pair-boxes { margin-left: 0; gap: .5rem; }
  .slot--half b { font-size: .88rem; }
}
.page-hero .lead strong { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 62%, rgba(158,227,166,.6) 62%); }
:root[data-theme="dark"] .page-hero .lead strong { background: linear-gradient(transparent 62%, rgba(158,227,166,.3) 62%); }
.slot-main { display: grid; gap: .2rem; min-width: 0; }
.slot-spk { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; }
.slot-spk i { color: var(--blue); }
.slot--keynote .slot-spk i { color: #9A6A08; }
:root[data-theme="dark"] .slot--keynote .slot-spk i { color: var(--key); }
@media (max-width: 720px) {
  .slot--keynote { grid-template-areas: "t k" "t m"; row-gap: .3rem; }
  .slot--keynote time { grid-area: t; }
  .slot--keynote .slot-main { grid-area: m; }
  .slot--keynote .type { grid-area: k; justify-self: start; font-size: .68rem; }
}

/* ===== Hero partner box (City St George's, Haag-Streit, Topcon) ===== */
.host-row { display: flex; align-items: stretch; gap: 1rem; justify-content: space-between; }
.host-main { min-width: 0; }
.host-main .cohost { margin-bottom: 0; }
.partner-box { flex: none; width: 168px; align-self: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .8rem .7rem;
  display: grid; gap: .45rem; justify-items: center; box-shadow: 0 10px 24px -18px rgba(0,0,0,.4); }
.partner-box small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: #6A6A6A; font-weight: 600; }
.pb-logo { height: 30px; width: 100%; display: grid; place-items: center; }
.pb-logo img { max-height: 30px; max-width: 100%; object-fit: contain; }
.pb-logo + .pb-logo { border-top: 1px solid #ECECEC; padding-top: .45rem; height: 37px; }
.logo-fallback { font-family: var(--body); font-weight: 700; color: #1B4D93; letter-spacing: -.01em; text-align: center; line-height: 1.15; }
.pb-logo .logo-fallback { font-size: .88rem; }
.lt-mark .logo-fallback { font-size: 1.5rem; }
.host-row + .lead { margin-top: 1.2rem; }
@media (max-width: 960px) {
  #top .host-row { order: 3; }
}
@media (max-width: 520px) {
  .host-row { gap: .6rem; }
  .partner-box { width: 118px; padding: .5rem .55rem .55rem; gap: .35rem; }
  .partner-box small { font-size: .55rem; letter-spacing: .05em; text-align: center; }
  .pb-logo { height: 24px; } .pb-logo + .pb-logo { height: 30px; padding-top: .35rem; }
  .pb-logo img { max-height: 24px; }
  .pb-logo .logo-fallback { font-size: .74rem; }
  .lt-mark .logo-fallback { font-size: 1.2rem; }
}
.partner-box .pb-logo:first-of-type { height: 64px; }
.partner-box .pb-logo:first-of-type img { max-height: 64px; }
@media (max-width: 520px) { .partner-box .pb-logo:first-of-type { height: 50px; } .partner-box .pb-logo:first-of-type img { max-height: 50px; } }
.logos--sponsors .lt-mark img { max-height: 76px; }
/* Partner box v2: logos only, compact 3 x 2 grid */
.partner-box { width: 190px; grid-template-columns: repeat(3, 1fr); gap: .45rem .5rem; padding: .55rem .6rem; align-items: center; }
.partner-box .pb-logo, .partner-box .pb-logo + .pb-logo, .partner-box .pb-logo:first-of-type { height: 34px; padding: 0; border: 0; }
.partner-box .pb-logo img, .partner-box .pb-logo:first-of-type img { max-height: 34px; max-width: 100%; }
.partner-box .pb-logo .logo-fallback { font-size: .6rem; }
@media (max-width: 520px) {
  .partner-box { width: 112px; grid-template-columns: repeat(2, 1fr); gap: .35rem .4rem; padding: .45rem; }
  .partner-box .pb-logo, .partner-box .pb-logo + .pb-logo, .partner-box .pb-logo:first-of-type { height: 26px; }
  .partner-box .pb-logo img, .partner-box .pb-logo:first-of-type img { max-height: 26px; }
}
