/* Session Explorer — Canterbury Tech Summit talk archive.

   The identity is Canterbury Tech's own, lifted from techsummit.nz and
   canterburytech.nz: FH Lecturis for display, Inter for everything else, a
   deep-teal ground (#003642 → #005f75) and the two colours in the CT mark —
   cyan #4ABBCD and green #87BF40. Te Pae's anodised gold stays as the single
   warm accent for calls to action; it reads as Christchurch and it lifts off
   the teal.

   The braid comes from the Canterbury rivers: channels that split, run in
   parallel and rejoin are exactly what the topic threads do across four
   Summits, so it is structure here, not ornament.

   Dark by default, because this is somewhere you watch video. The light theme
   is the same palette on shingle instead of riverbed.

   Thread colours are the one exception to these tokens: they live in data.js,
   because each topic keeps its colour across the braid, the chips and the
   cards, so the colour carries meaning rather than style. */

@font-face {
  font-family: "FH Lecturis";
  src: url("/assets/brand/FHLecturis-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/brand/Inter-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/brand/Inter-Medium.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/brand/Inter-Bold.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --riverbed: #02202a;        /* page ground: the deepest of the brand teals */
  --channel:  #003642;        /* alternating band — CT's dark teal */
  --shingle:  #004a5c;        /* raised surface: cards, panels */
  --shingle-2:#005f75;        /* hover / nested surface */
  --silt:     #0f5566;        /* hairline rules */
  --silt-strong: #2a7385;

  --ink:      #f1f8fa;
  --ink-soft: #b5d3da;
  --ink-mute: #85adb7;

  --gold:      #e9a94d;       /* Te Pae's anodised cladding; the warm accent */
  --gold-deep: #c4832f;
  --gold-wash: #3f3116;
  --on-gold:   #161004;

  --cyan:     #4abbcd;        /* the CT mark's cyan */
  --green:    #87bf40;        /* the CT mark's green */

  --water:    var(--cyan);    /* progress and watched state */
  --water-wash: #0d4552;

  --seen:     var(--green);   /* you were in the room */

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-sm: 9px;

  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --head: "FH Lecturis", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shadow: 0 18px 40px -24px #00000090;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --riverbed: #f2f7f8;
    --channel:  #e7f0f2;
    --shingle:  #ffffff;
    --shingle-2:#eef5f7;
    --silt:     #cfe0e4;
    --silt-strong: #9fbfc7;
    --ink:      #062a33;
    --ink-soft: #2f5a66;
    --ink-mute: #567c86;
    --gold:      #a56a15;
    --gold-deep: #7e4f09;
    --gold-wash: #fbeed6;
    --on-gold:   #fffaf0;
    --water:     #0e7f92;
    --water-wash:#d9f0f3;
    --seen:      #4f8a1a;
    --shadow: 0 16px 34px -26px #1b3a4530;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --riverbed: #f2f7f8;
  --channel:  #e7f0f2;
  --shingle:  #ffffff;
  --shingle-2:#eef5f7;
  --silt:     #cfe0e4;
  --silt-strong: #9fbfc7;
  --ink:      #062a33;
  --ink-soft: #2f5a66;
  --ink-mute: #567c86;
  --gold:      #a56a15;
  --gold-deep: #7e4f09;
  --gold-wash: #fbeed6;
  --on-gold:   #fffaf0;
  --water:     #0e7f92;
  --water-wash:#d9f0f3;
  --seen:      #4f8a1a;
  --shadow: 0 16px 34px -26px #1b3a4530;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--riverbed);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Present to a screen reader, absent to the eye. Used where the page needs a
   heading or a name that the visual design already conveys another way. */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  padding: 12px 18px; background: var(--gold); color: var(--on-gold); font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 32px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-xs { display: flex; flex-direction: column; gap: 7px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.self-start { align-self: flex-start; }
[hidden] { display: none !important; }

/* ---------- type ---------- */

.display {
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
h1.display { font-size: clamp(38px, 6.2vw, 78px); }
h2.display { font-size: clamp(28px, 3.6vw, 46px); }
h3.display { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}
.prose { font-family: var(--sans); font-weight: 300; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); max-width: 66ch; }
.prose strong { font-weight: 600; color: var(--ink); }
.meta { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */

.btn {
  min-height: 46px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 15px; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-deep); color: var(--on-gold); }
.btn-line { border-color: var(--silt-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-quiet { background: var(--shingle-2); color: var(--ink); }
.btn-quiet:hover { background: var(--silt); color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-link {
  min-height: 40px; padding: 0 2px; border: 0; background: none;
  color: var(--ink-soft); font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--gold); }

.field {
  min-height: 48px; width: 100%; padding: 0 16px;
  background: var(--shingle); color: var(--ink);
  border: 1px solid var(--silt); border-radius: var(--radius-sm);
  font: inherit;
}
.field::placeholder { color: var(--ink-mute); }
.field:focus { border-color: var(--gold); }
.field-area { min-height: 0; padding: 12px 14px; line-height: 1.5; resize: vertical; font-weight: 400; }

.chip {
  min-height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--silt); border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}
.chip:hover { border-color: var(--silt-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--riverbed); border-color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.chip .n { font-family: var(--mono); font-size: 11.5px; opacity: 0.75; }

/* ---------- shell ---------- */

/* --topbar-h is written by trackTopbarHeight() in util.js; this is the value
   before the first measurement and the one a no-JS reader gets. */
:root { --topbar-h: 66px; }

/* Anything you can jump to has to clear the sticky bar, or the heading you
   landed on sits behind it. Zero specificity, so a section can still override. */
:where(section[id], .sp, #top) { scroll-margin-top: calc(var(--topbar-h) + 18px); }

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in oklab, var(--riverbed) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--silt);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }
/* Only ever shown at phone widths; the media query below turns it on. */
.nav-toggle {
  display: none; align-items: center; gap: 7px; margin-left: auto;
  background: transparent; border: 1px solid var(--silt); border-radius: 999px;
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 14px; min-height: 44px; cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.mark { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.mark-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.mark-name { font-family: var(--head); font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.mark-sub { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.mark-logo { width: 140px; height: auto; flex: none; }
.foot-logo { width: 156px; height: auto; }

.brand-logo-on-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-logo-on-dark { display: none; }
  :root:not([data-theme="dark"]) .brand-logo-on-light { display: block; }
}
:root[data-theme="light"] .brand-logo-on-dark { display: none; }
:root[data-theme="light"] .brand-logo-on-light { display: block; }
:root[data-theme="dark"] .brand-logo-on-dark { display: block; }
:root[data-theme="dark"] .brand-logo-on-light { display: none; }
.topbar nav { display: flex; gap: 2px; margin-left: auto; }
.topbar nav a {
  padding: 9px 12px; border-radius: 999px; color: var(--ink-soft);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.topbar nav a:hover { color: var(--ink); background: var(--shingle); }
.topbar-tools { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--silt); border-radius: 50%; background: transparent; color: var(--ink-soft);
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn-sm { width: 34px; height: 34px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn:disabled:hover { color: var(--ink-soft); border-color: var(--silt); }

section { padding-block: clamp(56px, 7vw, 96px); }
.band { background: var(--channel); border-block: 1px solid var(--silt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

/* ---------- the gate ---------- */

.gate { min-height: 100%; display: grid; place-items: center; padding: 48px var(--gutter); position: relative; overflow: hidden; }
.gate-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.gate-card {
  position: relative; width: min(520px, 100%);
  background: color-mix(in oklab, var(--shingle) 92%, transparent);
  border: 1px solid var(--silt); border-radius: 20px;
  padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 22px;
  backdrop-filter: blur(10px);
  animation: gate-rise 700ms cubic-bezier(.2,.7,.2,1) both;
}
.gate-brand { margin-bottom: 4px; }
.gate-brand .brand-logo { width: min(168px, 55vw); height: auto; }
.gate-card h1 { font-size: clamp(30px, 4.4vw, 42px); }
.code-input {
  font-family: var(--mono); font-size: clamp(20px, 3.6vw, 27px); font-weight: 600;
  letter-spacing: 0.14em; text-align: center; text-transform: uppercase;
  min-height: 62px;
}
.gate-error { color: #ff9c8a; font-size: 14.5px; font-weight: 600; }
:root[data-theme="light"] .gate-error, :root:not([data-theme="dark"]) .gate-error { color: #b3301a; }

@keyframes gate-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 78px) clamp(36px, 4vw, 56px);
  overflow: clip;
}
.hero-wash {
  position: absolute; inset: -10% -5% auto;
  height: min(70vh, 640px);
  background:
    radial-gradient(ellipse 55% 50% at 78% 28%, color-mix(in oklab, var(--gold) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 45% at 12% 70%, color-mix(in oklab, var(--water) 14%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 .quiet { color: var(--ink-mute); }
.hero h1 .lit { color: var(--gold); }

.reveal {
  animation: reveal-up 780ms cubic-bezier(.2,.7,.2,1) both;
}
.reveal-delay { animation-delay: 120ms; }
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* The braid: eight channels crossing four years. Drawn from the data. */
.braid-figure { position: relative; }
.braid-svg { width: 100%; height: auto; display: block; overflow: visible; }
.braid-svg .chan { fill: none; stroke-linecap: round; opacity: 0.85; }
.braid-svg .node { stroke-width: 2.5; }
.braid-animate .chan {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: braid-draw 1100ms cubic-bezier(.2,.7,.2,1) both;
}
.braid-animate .channel:nth-child(n+2) .chan { animation-delay: 40ms; }
.braid-animate .channel:nth-child(n+4) .chan { animation-delay: 90ms; }
.braid-animate .channel:nth-child(n+6) .chan { animation-delay: 140ms; }
.braid-animate .channel:nth-child(n+8) .chan { animation-delay: 190ms; }
.braid-animate .node {
  animation: braid-pop 480ms cubic-bezier(.2,.9,.3,1.25) both;
  animation-delay: 520ms;
}
.braid-svg .node-open { fill: var(--riverbed); }
.braid-svg .yearline { stroke: var(--silt); stroke-width: 1; }
.braid-svg text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; fill: var(--ink-mute); }
.braid-caption { margin-top: 12px; }

/* The live braid is a table you place picks on. Hit areas are invisible but
   generous; what's picked stays full, the rest steps back. */
/* Hit areas are hit-tested, never painted: pointer-events carries the click
   so the stroke can stay at zero opacity and still be reachable. Keeping the
   inline colour (rather than stroke: transparent) is what lets the hover and
   picked rings below tint it. */
/* The year/topic rows fold on a phone; the summary carries what is picked so
   a folded filter is never a silent one. Borrowed wholesale from .cloud-wrap. */
.filters-wrap > .cloud-toggle { margin-bottom: 10px; }
.filters-wrap[open] > .cloud-toggle { margin-bottom: 14px; }
.filters-wrap .row-wrap + .row-wrap { margin-top: 10px; }

.braid-svg .hit { fill: transparent; stroke-opacity: 0; pointer-events: all; }
.braid-svg path.hit { fill: none; }
.braid-svg.is-live .channel, .braid-svg.is-live .stop, .braid-svg.is-live .yearcol { cursor: pointer; outline: none; }
.braid-svg.is-live .chan, .braid-svg.is-live .node, .braid-svg.is-live .yearline, .braid-svg.is-live text,
.braid-svg.is-live .stop .hit { transition: opacity 180ms ease, stroke-width 180ms ease, stroke-opacity 180ms ease; }
.braid-svg.is-live .channel:hover .chan, .braid-svg.is-live .channel:focus-visible .chan { opacity: 1; }
.braid-svg.is-live .channel:hover .node, .braid-svg.is-live .channel:focus-visible .node { stroke-width: 3; }
/* The year labels are buttons, so they get a pill to say so. Quiet until you
   approach them, gold once the year is on the table. */
/* The hero braid is a picture of the real one further down, so it takes you
   there. Its own marks stay put; only the invitation underneath moves. */
.braid-hero-link { display: block; position: relative; text-decoration: none; color: inherit; border-radius: var(--radius); }
.braid-hero-go {
  display: block; text-align: right; color: var(--ink-mute);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease, color 200ms ease;
}
.braid-hero-link:hover .braid-hero-go, .braid-hero-link:focus-visible .braid-hero-go {
  opacity: 1; transform: none; color: var(--gold);
}
.braid-hero-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
@media (hover: none) { .braid-hero-go { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .braid-hero-go { transition: none; transform: none; } }

.braid-svg .yearpill {
  fill: color-mix(in oklab, var(--ink) 6%, transparent);
  stroke: var(--silt); stroke-width: 1;
  transition: fill 160ms ease, stroke 160ms ease;
}
.braid-svg.is-live .yearcol:hover .yearpill,
.braid-svg.is-live .yearcol:focus-visible .yearpill {
  fill: color-mix(in oklab, var(--ink) 12%, transparent); stroke: var(--silt-strong);
}
.braid-svg.is-live .yearcol.is-on .yearpill {
  fill: color-mix(in oklab, var(--gold) 18%, transparent); stroke: var(--gold);
}

/* The glint: one bright dash running the length of a channel while the cursor
   is on it. A sixth of the segment lit, the rest clear, the offset animating
   the full normalised length so it reads as travel rather than a blink. Each
   segment starts a beat after the one before, so the light crosses the braid
   left to right instead of all four segments lighting at once. */
.braid-svg .glint {
  fill: none; stroke-width: 6; stroke-linecap: round; pointer-events: none;
  opacity: 0; stroke-dasharray: 0.3 0.7; stroke-dashoffset: 1;
}
.braid-svg.is-live .channel:hover .glint,
.braid-svg.is-live .channel:focus-visible .glint {
  animation: glint-run 820ms cubic-bezier(.45,0,.55,1) infinite;
  animation-delay: calc(var(--i, 0) * 170ms);
  filter: drop-shadow(0 0 7px currentColor);
}
@keyframes glint-run {
  0%   { opacity: 0;   stroke-dashoffset: 1;   stroke-width: 3; }
  15%  { opacity: 1;                           stroke-width: 7; }
  85%  { opacity: 1;                           stroke-width: 7; }
  100% { opacity: 0;   stroke-dashoffset: 0;   stroke-width: 3; }
}

/* The rest of the braid steps back while one channel is under the cursor, so
   the thread you are following is the only one running. Only when nothing is
   picked — once a pick is down, has-pick owns the dimming and this must not
   fight it. */
.braid-svg.is-live:not(.has-pick):has(.channel:hover) .channel:not(:hover) .chan { opacity: 0.14; }
.braid-svg.is-live:not(.has-pick):has(.channel:hover) .channel:not(:hover) .node { opacity: 0.22; }
.braid-svg.is-live .channel:hover .chan { filter: drop-shadow(0 0 6px currentColor); }
.braid-svg.is-live .channel .chan { color: inherit; transition: opacity 200ms ease, filter 200ms ease; }

.braid-svg.is-live .yearcol:hover text, .braid-svg.is-live .yearcol:focus-visible text, .braid-svg.is-live .yearcol.is-on text { fill: var(--ink); }
.braid-svg.is-live .yearcol:hover .yearline, .braid-svg.is-live .yearcol:focus-visible .yearline { stroke: var(--silt-strong); }
.braid-svg.is-live .yearcol.is-on .yearline { stroke: var(--gold); stroke-width: 2; }
.braid-svg.is-live .yearcol.is-on text { fill: var(--gold); font-weight: 700; }
.braid-svg.is-live .stop:hover .hit, .braid-svg.is-live .stop:focus-visible .hit { stroke-opacity: 0.5; stroke-width: 1.5; }
/* the marker: a ring round the picked stop */
.braid-svg.is-live .stop.is-on .hit { stroke: var(--gold); stroke-opacity: 1; stroke-width: 2.5; fill: color-mix(in oklab, var(--gold) 18%, transparent); }
/* everything not in play steps back */
.braid-svg.has-pick .channel.is-off .chan { opacity: 0.16; }
.braid-svg.has-pick .channel.is-off .node { opacity: 0.25; }
.braid-svg.has-pick .channel:not(.is-off) .stop.is-off .node { opacity: 0.3; }
.braid-svg.has-pick .channel.is-off:hover .chan { opacity: 0.55; }
.braid-svg.has-pick .channel.is-off:hover .node { opacity: 0.7; }
.braid-svg.has-pick .channel.is-on .chan { opacity: 1; }

/* the slip under the braid: what's on the table and where to take it */
.braid-slip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 12px 16px; border: 1px solid color-mix(in oklab, var(--gold) 35%, var(--silt)); border-radius: var(--radius);
  background: color-mix(in oklab, var(--gold) 5%, var(--shingle)); min-height: 52px;
}
.braid-slip.is-empty { border-style: dashed; border-color: var(--silt); background: transparent; }
.slip-hint { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-soft); }
.slip-key { display: inline-flex; align-items: center; gap: 7px; }
.slip-key i { display: inline-block; }
.slip-line { width: 22px; height: 3px; border-radius: 2px; background: var(--cyan); }
.slip-col { width: 2px; height: 16px; background: var(--gold); }
.slip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 2.5px var(--gold); }
.slip-bet { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slip-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--shingle); border: 1.5px solid var(--c, var(--gold));
}
.slip-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.slip-chip .chip-x { color: var(--ink-mute); margin-left: 2px; }
.slip-chip:hover .chip-x { color: var(--ink); }
.slip-n { font-family: var(--head); font-size: 18px; color: var(--ink); }
.slip-n .meta { font-family: var(--body); font-size: 12.5px; }
.slip-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .slip-actions { margin-left: 0; width: 100%; } }

@keyframes braid-draw {
  from { stroke-dashoffset: 1; opacity: 0.2; }
  to { stroke-dashoffset: 0; opacity: 0.85; }
}
@keyframes braid-pop {
  from { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
  to { opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; }
}

/* ---------- the stat strip ---------- */

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--silt); border: 1px solid var(--silt); border-radius: var(--radius); overflow: hidden; }
.strip-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.strip-6 .strip-n { font-size: clamp(26px, 2.6vw, 36px); }
.strip-cell { background: var(--riverbed); padding: 20px 22px; display: flex; flex-direction: column; gap: 5px; }
.strip-n { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.strip-n.is-gold { color: var(--gold); }
.strip-n.is-water { color: var(--water); }
.strip-n.is-green { color: var(--seen); }
.strip-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- talk cards ---------- */

.grid-talks { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 22px; }

.talk {
  display: flex; flex-direction: column; gap: 0;
  background: var(--shingle); border: 1px solid var(--silt); border-radius: var(--radius);
  overflow: hidden; text-align: left; padding: 0;
  transition: border-color 150ms ease, transform 150ms ease;
}
.talk:hover { border-color: var(--silt-strong); transform: translateY(-2px); }
.talk:has(.talk-open:focus-visible) { border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .talk:hover { transform: none; } }

.talk-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--shingle-2); }
/* Pinned to the box rather than sized by it: the container gets its height
   from aspect-ratio, so an image asking for height:100% is a cycle and the
   browser falls back to the file's own ratio. YouTube's sddefault is 4:3
   with the 16:9 frame letterboxed inside, so that fallback put black bars
   on every card. Absolute fill lets object-fit crop them away. */
.talk-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.talk-thumb.is-coming {
  display: grid; place-items: center;
  background:
    linear-gradient(145deg, var(--shingle-2), color-mix(in oklab, var(--gold-wash) 55%, var(--shingle-2)));
}
.talk-faces {
  display: flex; align-items: center; justify-content: center;
  padding-inline: 18px;
}
.talk-faces img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--shingle); box-shadow: 0 8px 20px -10px #0008;
}
.talk-faces img + img { margin-left: -14px; }
.talk-faces.is-many img { width: 52px; height: 52px; }
.talk-coming-label {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 9px; border-radius: 999px;
  background: color-mix(in oklab, var(--riverbed) 72%, transparent);
  color: var(--gold); font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}
.talk-dur {
  position: absolute; right: 8px; bottom: 8px;
  padding: 3px 7px; border-radius: 5px;
  background: #0b1418d9; color: #eaf2f4;
  font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.talk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #0b141880; }
.talk-bar i { display: block; height: 100%; background: var(--water); }
.talk-body { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px 18px; flex: 1; }
/* A session's title is set in its topic's colour — on the card and everywhere
   downstream (trail, notebook, moments, viewer, related, speakers page). The
   container sets --c to the thread colour; --title pulls it a little toward
   the ink so it reads as text on either theme (lighter on dark, darker on
   light). Hovering underlines rather than recolouring, so the colour keeps
   meaning something. */
.talk, .trail-item, .nb-talk, .moment, .v-head, .v-rel-item, .sp-talk, .xp, .v-route {
  --title: color-mix(in oklab, var(--c, var(--ink)) 72%, var(--ink));
}
.talk-open {
  border: 0; background: none; padding: 0; text-align: left; color: var(--title, var(--ink));
  font-family: var(--head); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.18;
}
.talk-open::after { content: ""; position: absolute; inset: 0; } /* whole card is the hit area */
.talk-open:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.talk-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.talk-by { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; min-width: 0; }

/* Speaker circles: a headshot where the Summit site had one, initials where
   it didn't. They overlap like the faces on a '26 "video to come" tile, and
   the ring is the card ground so they read as cut-outs, not stickers. */
.avatars { display: inline-flex; align-items: center; flex: none; position: relative; z-index: 1; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--shingle); background: var(--shingle-2);
  box-shadow: 0 4px 12px -6px #0009;
}
.avatar-mono {
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--cyan); background: color-mix(in oklab, var(--cyan) 16%, var(--shingle-2));
}
.avatar-more { color: var(--ink-mute); background: var(--shingle-2); font-size: 10px; }
.avatars.is-many .avatar + .avatar { margin-left: -9px; }
.talk:hover .avatar { border-color: color-mix(in oklab, var(--shingle) 80%, var(--silt-strong)); }

/* Hashtags: the talk's three strongest tags. They read as text, not chips, so
   three of them sit in one quiet line and don't compete with the flags below;
   they only look like buttons when you reach for one. */
.hashtags { display: flex; flex-wrap: wrap; gap: 2px 10px; position: relative; z-index: 1; }
.hashtag {
  border: 0; background: none; padding: 2px 0; margin: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--cyan); opacity: 0.85; border-bottom: 1px solid transparent;
  transition: opacity 120ms ease, border-color 120ms ease;
}
.hashtag:hover { opacity: 1; border-bottom-color: currentColor; }
.hashtag.is-on { color: var(--gold); opacity: 1; border-bottom-color: currentColor; }
.hashtag:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

.chip.is-tag { font-family: var(--mono); letter-spacing: 0.01em; }

/* The picked hashtag as a panel: what it is, how big, where it cuts across,
   what it travels with, how much of it you've covered, and the lot in one
   button. Replaces the bare "Tagged" chip row. */
#tag-chips:not([hidden]) {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 18px 18px; border: 1px solid color-mix(in oklab, var(--gold) 35%, var(--silt)); border-radius: var(--radius);
  background: color-mix(in oklab, var(--gold) 5%, var(--shingle));
}
.tagp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.tagp-head .chip.is-tag { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.tagp-label { font-family: var(--head); font-size: 20px; line-height: 1.15; color: var(--ink); }
.tagp-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tagp-body { display: flex; flex-direction: column; gap: 8px; }
.tagp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tagp-row > .meta:first-child { min-width: 96px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.tagp-thread { border: 0; background: none; padding: 2px 0; cursor: pointer; font-size: 12.5px; }
.tagp-thread span:last-child { color: var(--ink-soft); border-bottom: 1px solid transparent; }
.tagp-thread:hover span:last-child, .tagp-thread[aria-pressed="true"] span:last-child { color: var(--ink); border-bottom-color: currentColor; }
.tagp-row .hashtag sup { font-size: 9px; margin-left: 2px; opacity: 0.7; }
.tagp-bar { flex: 0 1 220px; height: 6px; border-radius: 3px; background: var(--silt); overflow: hidden; }
.tagp-bar i { display: block; height: 100%; background: var(--seen); border-radius: 3px; }

/* hashtags on an expedition card and a speaker card */
.xp-tags { margin-top: -2px; }
.sp-tags { padding-top: 10px; border-top: 1px solid var(--silt); }
.sp-tags .hashtag { text-decoration: none; }
.claimed-head.is-quiet .claimed-n { color: var(--ink-mute); }
.claimed-tags.is-quiet .hashtag { color: var(--ink-soft); }

/* The tag cloud. Each hashtag's size follows --w (0–1, log-scaled from how
   many talks in view carry it) and its colour follows the topic most of those
   talks sit in, mixed toward the ink like a title. Baseline-aligned so the
   big and small words read as one paragraph rather than a grid. */
.cloud-wrap, .filters-wrap { border: 1px solid var(--silt); border-radius: var(--radius); background: var(--shingle); }
.cloud-toggle {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 18px; min-height: 44px;
}
.cloud-toggle::-webkit-details-marker { display: none; }
.cloud-toggle .eyebrow { white-space: nowrap; }
.cloud-toggle .meta { text-align: right; }
.cloud-toggle .meta::after { content: " ▾"; }
.cloud-wrap[open] .cloud-toggle .meta::after, .filters-wrap[open] .cloud-toggle .meta::after { content: " ▴"; }
.cloud-toggle:hover .eyebrow { color: var(--gold); }
.cloud-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: var(--radius); }
.cloud {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 18px;
  padding: 6px 22px 22px; line-height: 1.25;
}
.cloud-tag {
  --title: color-mix(in oklab, var(--c, var(--ink)) 72%, var(--ink));
  border: 0; background: none; padding: 4px 2px; margin: 0; cursor: pointer;
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.01em;
  font-size: calc(12px + var(--w, 0) * 16px);
  color: var(--title); opacity: calc(0.6 + var(--w, 0) * 0.4);
  border-bottom: 1.5px solid transparent;
  transition: opacity 120ms ease, border-color 120ms ease, color 120ms ease;
}
.cloud-tag .n { font-size: 10px; margin-left: 3px; opacity: 0.6; vertical-align: super; font-weight: 500; }
.cloud-tag:hover { opacity: 1; border-bottom-color: currentColor; }
.cloud-tag.is-on { color: var(--gold); opacity: 1; border-bottom-color: currentColor; }
.cloud-tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.chip .chip-x { margin-left: 2px; opacity: 0.7; font-size: 14px; line-height: 1; }
/* The two-sentence summary, shown in full under the presenter's name. Cards
   in a row stretch to the tallest, so the grid stays aligned. */
.talk-sum {
  margin: 0; font-size: 14px; line-height: 1.5; font-weight: 300; color: var(--ink-soft);
  text-wrap: pretty;
}
.talk-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.talk-topic { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.talk-topic .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.flags { display: flex; gap: 6px; position: relative; z-index: 1; }
.flag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.flag-seen { background: color-mix(in oklab, var(--seen) 18%, transparent); color: var(--seen); }
.flag-done { background: var(--water-wash); color: var(--water); }
.flag-rated { background: var(--gold-wash); color: var(--gold); }
.flag-note { background: color-mix(in oklab, var(--ink) 10%, transparent); color: var(--ink-soft); }

/* the bookmark on every card */
.talk-save {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: color-mix(in oklab, var(--riverbed) 70%, transparent);
  color: #fff; backdrop-filter: blur(6px);
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.talk-save:hover { background: var(--gold); color: var(--on-gold); transform: scale(1.06); }
.talk-save[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
.talk.is-saved { border-color: color-mix(in oklab, var(--gold) 45%, var(--silt)); }

/* ---------- sponsors ---------- */

/* Logos come as the sponsors supplied them, mostly dark marks on transparent,
   so every tile carries a pale plate whatever the theme. The plate is the
   one place on the page that stays light in dark mode; keep it small. */
.sponsor-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sponsor {
  display: flex; flex-direction: column; gap: 0;
  background: var(--shingle); border: 1px solid var(--silt); border-radius: var(--radius-sm);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}
.sponsor:hover { border-color: var(--silt-strong); transform: translateY(-2px); }
.sponsor.is-platinum { border-color: color-mix(in oklab, var(--gold) 40%, var(--silt)); }
@media (prefers-reduced-motion: reduce) { .sponsor:hover { transform: none; } }
.sp-plate {
  display: grid; place-items: center; height: 84px; padding: 14px 18px; box-sizing: border-box;
  background: #f6f8f9; border-bottom: 1px solid var(--silt);
}
/* A fixed box with object-fit, not max-height: a percentage max-height
   doesn't resolve for a grid item, and a 2000px-wide wordmark would overflow. */
.sp-plate img { display: block; width: 100%; height: 56px; object-fit: contain;
  filter: grayscale(1); opacity: 0.85;
  transition: filter 220ms ease, opacity 220ms ease, transform 300ms ease;
}
/* Colour on approach: forty-four logos in forty-four palettes is a lot of
   noise at rest, and the one you are looking at is the one worth seeing. */
.sponsor:hover .sp-plate img, .sponsor:focus-visible .sp-plate img {
  filter: none; opacity: 1; transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .sponsor:hover .sp-plate img, .sponsor:focus-visible .sp-plate img { transform: none; }
}
.sp-wordmark { font-family: var(--head); font-size: 17px; color: #1a2a30; text-align: center; line-height: 1.1; }
.sp-body { display: flex; flex-direction: column; gap: 4px; padding: 11px 14px 12px; }
.sp-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
/* The sponsor's own sentence about itself. Quiet — the logo and the name lead,
   this explains. Clamped so a long description cannot stretch the wall. */
.sp-blurb {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5;
  overflow: hidden; font-size: 12.5px; line-height: 1.45; color: var(--ink-mute);
}
.sponsor.is-quad .sp-blurb, .sponsor.is-wide .sp-blurb { -webkit-line-clamp: 7; line-clamp: 7; font-size: 13px; }
.sp-meta .meta { font-size: 11.5px; }
.sp-years { display: flex; gap: 8px; margin-top: 3px; }
.sp-year {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-mute); opacity: 0.35;
}
.sp-year.is-on { color: var(--cyan); opacity: 1; }
.sponsor.is-platinum .sp-year.is-on { color: var(--gold); }

/* Bigger tiles (SPONSOR_TILES in data.js). A quad is two columns by two
   rows, a wide two columns by one; both fill the extra room with the plate.
   dense flow lets the ordinary tiles pack in around them. */
.sponsor-wall { grid-auto-flow: dense; }
.sponsor.is-quad { grid-column: span 2; grid-row: span 2; }
.sponsor.is-wide { grid-column: span 2; }
/* white, not the plate's off-white: the ASX mark is a jpg on white */
.sponsor.is-quad .sp-plate { flex: 1; height: auto; min-height: 220px; padding: 28px 36px; background: #fff; }
.sponsor.is-quad .sp-plate img { height: 100%; max-height: 160px; }
.sponsor.is-quad .sp-wordmark { font-size: 30px; }
.sponsor.is-quad .sp-body { padding: 14px 18px 16px; }
.sponsor.is-quad .sp-name { font-size: 17px; }
.sponsor.is-quad .sp-meta .meta { font-size: 12.5px; }
.sponsor.is-wide .sp-plate { flex: 1; height: auto; min-height: 96px; padding: 16px 48px; }
.sponsor.is-wide .sp-plate img { height: 100%; max-height: 64px; }
.sponsor.is-wide .sp-wordmark { font-size: 22px; }
.sponsor.is-wide .sp-name { font-size: 15px; }
@media (min-width: 481px) { .sponsor-wall { grid-auto-rows: 1fr; } }
@media (max-width: 480px) {
  .sponsor.is-quad, .sponsor.is-wide { grid-column: auto; grid-row: auto; }
  .sponsor.is-quad .sp-plate { min-height: 140px; padding: 20px 24px; }
  .sponsor.is-quad .sp-plate img { max-height: 96px; }
  .sponsor.is-wide .sp-plate { min-height: 0; padding: 14px 18px; }
  .sponsor.is-wide .sp-plate img { max-height: 56px; }
}

/* ---------- the trail (watch list) ---------- */

.trail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trail-empty { padding: 22px 24px; border: 1px dashed var(--silt-strong); border-radius: var(--radius); }
.trail-item {
  display: grid; grid-template-columns: 44px 160px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 12px 14px 12px 10px; background: var(--shingle); border: 1px solid var(--silt); border-radius: var(--radius);
  position: relative;
}
.trail-item.is-done { opacity: 0.7; }
.trail-stop { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trail-stop .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.trail-n { font-family: var(--head); font-size: 15px; color: var(--ink-soft); }
.trail-thumb {
  position: relative; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--shingle-2); cursor: pointer;
}
.trail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trail-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trail-title {
  border: 0; background: none; padding: 0; text-align: left; color: var(--title, var(--ink));
  font-family: var(--head); font-size: 17px; font-weight: 700; line-height: 1.2;
}
.trail-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.trail-actions { display: flex; gap: 6px; }
.trail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 2px 0; }
.trail-tags .talk-topic { font-size: 11.5px; }
.trail-tags .hashtags { gap: 2px 8px; }
.trail-tags .hashtag { font-size: 11.5px; }

/* Tags claimed: the hashtags on everything they've watched or sat in. The
   count is set like the journey strip's numbers; the tags read as the same
   quiet hashtags the cards use, with a small count where one covers more
   than one talk. */
.claimed {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 24px; align-items: start;
  padding: 16px 18px; border: 1px solid var(--silt); border-radius: var(--radius);
  background: color-mix(in oklab, var(--seen) 6%, var(--riverbed));
}
.claimed-head { display: flex; align-items: center; gap: 12px; }
.claimed-n { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1; color: var(--seen); font-variant-numeric: tabular-nums; }
.claimed-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.claimed-head .meta { font-size: 12px; }
.claimed-tags { gap: 4px 14px; align-self: center; justify-content: flex-start; padding-left: 12px; border-left: 1px solid var(--silt); }
.claimed-tags .hashtag { font-size: 12.5px; color: var(--seen); }
.claimed-tags .hashtag.is-on { color: var(--gold); }
.claimed-tags .hashtag sup { font-size: 9px; margin-left: 2px; opacity: 0.8; font-weight: 600; }

/* ---------- the notebook ---------- */

.notebook { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.nb-talk { background: var(--shingle); border: 1px solid var(--silt); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.nb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.nb-title {
  border: 0; background: none; padding: 0; text-align: left; color: var(--title, var(--ink));
  font-family: var(--head); font-size: 16px; font-weight: 700; line-height: 1.2;
}
.nb-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nb-note { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; }
.nb-at {
  border: 0; padding: 3px 7px; border-radius: 6px; text-align: center;
  background: var(--gold-wash); color: var(--gold);
  font-family: var(--mono); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.nb-at:hover { background: var(--gold); color: var(--on-gold); }
.nb-at.is-general { background: color-mix(in oklab, var(--ink) 10%, transparent); color: var(--ink-mute); font-family: var(--sans); }
.nb-text { font-size: 15px; line-height: 1.5; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }

/* notes in the viewer */
.notes { border: 1px solid var(--silt); border-radius: var(--radius); background: var(--shingle); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.note-form { display: flex; flex-direction: column; gap: 10px; }
.note-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.note-pin { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; min-height: 40px; }
.note-pin input { width: 18px; height: 18px; accent-color: var(--gold); }
.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.note-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--silt); }
.note-item:first-child { border-top: 0; }
.note-tools { display: flex; gap: 10px; }
.note-tools .btn-link { min-height: 28px; font-size: 12.5px; }
.note-edit { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.note-empty { padding: 6px 0; }

/* ---------- expeditions ---------- */

.expeditions { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.xp {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 22px 22px 20px; background: var(--shingle); border: 1px solid var(--silt); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 150ms ease, transform 150ms ease;
}
.xp::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c);
}
.xp:hover { border-color: var(--silt-strong); transform: translateY(-2px); }
.xp.is-complete { border-color: color-mix(in oklab, var(--c) 55%, var(--silt)); }
.xp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xp h3 { font-size: clamp(22px, 2.2vw, 27px); color: var(--title); }   /* the expedition's name in its topic's colour, like a talk title */
.xp-tag { font-size: 15.5px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.xp-why { font-size: 14.5px; }
.xp-map { display: flex; align-items: center; margin-top: 6px; padding: 8px 2px; }
.xp-stop {
  width: 16px; height: 16px; border-radius: 50%; flex: none; padding: 0;
  border: 2.5px solid var(--c); background: var(--shingle); cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}
.xp-stop:hover { transform: scale(1.35); }
.xp-stop.is-done { background: var(--c); }
.xp-stop.is-next { box-shadow: 0 0 0 4px color-mix(in oklab, var(--c) 30%, transparent); background: color-mix(in oklab, var(--c) 35%, var(--shingle)); }
.xp-seg { flex: 1; height: 2.5px; background: var(--c); opacity: 0.55; min-width: 8px; }
.xp-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 6px; }
.xp-foot .btn { max-width: 100%; }
.xp-foot .btn-gold { white-space: normal; text-align: left; line-height: 1.2; }

/* ---------- shape '27 ---------- */

.wish-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.wish-card {
  background: var(--shingle); border: 1px solid var(--silt); border-radius: 20px;
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow);
}
.wish-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wish-card legend { padding: 0; margin-bottom: 4px; }
/* Their own topics: typed into the box, kept as chips with a gold dot so
   they read as theirs, not one of the eight. */
.wish-own { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--silt); }
.wish-own-row { display: flex; gap: 8px; align-items: center; }
.wish-own-row .field { flex: 1; min-width: 0; }
.wish-own-row .btn { flex: none; white-space: nowrap; }
.chip.is-own { border-style: dashed; color: var(--ink); cursor: default; padding-right: 8px; }
.chip.is-own .dot { background: var(--gold); }
.chip.is-own .chip-x {
  border: 0; background: none; color: var(--ink-mute); cursor: pointer; padding: 0 4px; min-height: 0;
  font-size: 16px; line-height: 1;
}
.chip.is-own .chip-x:hover { color: var(--gold); }
#wish-own-topics:empty { display: none; }

/* ---------- search ---------- */

.searchbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.searchbox { position: relative; flex: 1 1 340px; }
.searchbox .field { padding-left: 44px; min-height: 52px; font-size: 16px; }
.searchbox svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }

.moments { display: flex; flex-direction: column; gap: 10px; }
.moment {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: start;
  width: 100%; text-align: left;
  padding: 13px 16px; border: 1px solid var(--silt); border-radius: var(--radius-sm);
  background: var(--shingle);
}
.moment:hover { border-color: var(--gold); }
.moment-at { font-family: var(--mono); font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.moment-talk { font-size: 13px; font-weight: 650; color: var(--ink-mute); }
.moment-title { color: var(--title, var(--ink)); }
.moment-text { font-family: var(--serif); font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.moment-text mark { background: var(--gold-wash); color: var(--gold); border-radius: 3px; padding: 0 2px; }

/* ---------- the talk view ---------- */

dialog.viewer {
  width: min(1180px, 100%); max-width: 100%; max-height: 100%; height: 100%;
  margin: 0 0 0 auto; padding: 0; border: 0;
  background: var(--riverbed); color: var(--ink);
}
dialog.viewer::backdrop { background: #04090bcc; backdrop-filter: blur(3px); }
.viewer-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.viewer-top { display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter); border-bottom: 1px solid var(--silt); }
.viewer-top .eyebrow { margin-right: auto; }
/* Two columns that scroll independently. Left: the talk and everything about
   it, with the transcript at the foot. Right: the rail of things you do while
   it plays — notes and the rating — so they stay in reach as the left column
   scrolls. The transcript can be put away altogether. */
.viewer-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.viewer-cols.is-quiet .viewer-tr { display: none; }
.viewer-main { min-height: 0; overflow-y: auto; padding: 0 0 40px; }
.viewer-side {
  min-height: 0; overflow-y: auto; border-left: 1px solid var(--silt);
  padding: 18px 18px 40px; display: flex; flex-direction: column; gap: 16px;
  background: color-mix(in oklab, var(--riverbed) 70%, var(--channel));
}
.viewer-side .notes, .viewer-side .rate { padding: 16px; gap: 14px; }
.viewer-side .notes .display, .viewer-side .rate .display { font-size: 17px; }
.viewer-side .rate-row { flex-direction: column; align-items: flex-start; gap: 8px; }
.viewer-side .scale button { width: 38px; height: 38px; }
.viewer-side .note-item { grid-template-columns: 50px minmax(0, 1fr); }
.viewer-side .note-tools { grid-column: 2; }
.viewer-side .nb-text { font-size: 14px; }

/* The transcript, at the foot of the left column: its own scroll box, so the
   line under the playhead can be kept in view without moving the page. */
.viewer-tr { margin: 28px var(--gutter) 0; padding: 0; border: 1px solid var(--silt); border-radius: var(--radius); overflow: hidden; background: color-mix(in oklab, var(--riverbed) 70%, var(--channel)); }
.viewer-tr .tr-body { max-height: min(60vh, 520px); padding-bottom: 12px; }
.viewer-tr .tr-head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.viewer-tr .tr-head .field { width: min(100%, 260px); }

.player { aspect-ratio: 16 / 9; width: 100%; background: #000; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer-info { padding: 22px var(--gutter) 0; display: flex; flex-direction: column; gap: 18px; }
.viewer-info h2 { font-size: clamp(22px, 2.6vw, 32px); }
.viewer-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.viewer-speaker {
  display: flex; align-items: center; gap: 14px;
}
.viewer-speaker img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--silt); flex: none;
}
.viewer-speaker img + img { margin-left: -22px; }
.viewer-speaker .lede { margin: 0; }

/* The journey strip: the talk drawn as a line, straight under the player.
   Watched portion in the thread's colour, a moving playhead, and a pin for
   every note they've taken — so the talk has a shape before it starts. */
.v-strip { display: flex; flex-direction: column; gap: 8px; margin: -6px 0 -2px; }
.v-strip-bar { position: relative; height: 22px; }
.v-track, .v-seen {
  position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px;
}
.v-track { right: 0; background: var(--silt); }
.v-seen { background: var(--c); transition: width 900ms linear; }
.v-now {
  position: absolute; top: 4px; width: 2px; height: 14px; margin-left: -1px;
  background: var(--ink); border-radius: 1px; transition: left 900ms linear;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--riverbed) 85%, transparent);
}
.v-pin {
  position: absolute; top: 3px; width: 16px; height: 16px; margin-left: -8px; padding: 0;
  border: 2px solid var(--gold); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--gold-wash); cursor: pointer; transition: transform 140ms ease;
}
.v-pin:hover { transform: rotate(-45deg) scale(1.3); background: var(--gold); }
.v-pin:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.v-strip-labels { display: flex; justify-content: space-between; gap: 12px; }
.v-strip-labels .meta { font-family: var(--mono); font-size: 11.5px; }

/* The title block carries the thread's colour as a hairline down its left. */
.v-head { border-left: 3px solid var(--c); padding-left: 16px; }
.v-head h2 { color: var(--title); }
.v-head .viewer-facts .meta { font-size: 12.5px; }

/* Speakers: a card each, with the face large enough to recognise, their years
   on this stage, a line of bio and a way to their other talks. */
.v-people { display: flex; flex-direction: column; gap: 14px; }
.v-people.is-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 22px; }
.v-person {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 14px 16px 14px 14px; border-radius: var(--radius);
  background: color-mix(in oklab, var(--shingle) 60%, var(--riverbed)); border: 1px solid var(--silt);
}
.v-people.is-panel .v-person { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.v-face {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--silt-strong); background: var(--shingle-2);
}
.v-people.is-panel .v-face { width: 56px; height: 56px; }
.v-face-mono {
  display: grid; place-items: center; font-family: var(--mono); font-size: 18px; font-weight: 700;
  color: var(--cyan); background: color-mix(in oklab, var(--cyan) 16%, var(--shingle-2));
}
.v-person-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.v-person-body .lede { margin: 0; font-size: clamp(16px, 1.3vw, 19px); }
.v-role { font-size: 12.5px; }
.v-bio { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.v-person-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px; }
.v-person-more .sp-years { margin: 0; }
.v-person-more .sp-year.is-here { color: var(--gold); }
.v-profile { text-decoration: underline; text-underline-offset: 3px; }
.v-profile:hover { color: var(--gold); }
.v-other {
  border: 1px solid var(--silt); border-radius: 999px; background: none; padding: 4px 11px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; text-align: left;
  display: inline-flex; gap: 6px; align-items: baseline; max-width: 100%;
  transition: border-color 120ms ease, color 120ms ease;
}
.v-other .meta { font-family: var(--mono); font-size: 11px; }
.v-other:hover { border-color: var(--cyan); color: var(--cyan); }

/* The route this talk sits on, with the stops either side within reach. */
.v-route {
  border: 1px solid color-mix(in oklab, var(--c) 40%, var(--silt)); border-radius: var(--radius);
  padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--c) 9%, var(--riverbed)), var(--riverbed) 70%);
}
.v-route-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.v-route-head .eyebrow { color: var(--c); }
.v-route-head .meta:last-child { margin-left: auto; font-family: var(--mono); font-size: 11.5px; }
.v-route-name { font-family: var(--head); font-size: 18px; color: var(--title); }
.v-route .xp-map { margin-top: 2px; }
.v-route .xp-stop.is-here { background: var(--c); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c) 30%, transparent); transform: scale(1.15); }
.v-route-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.v-step {
  border: 0; background: none; padding: 8px 0 0; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 3px; color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.3; border-top: 1px solid var(--silt);
}
.v-step.is-next { text-align: right; align-items: flex-end; }
.v-step-title { color: color-mix(in oklab, var(--tc, var(--ink)) 72%, var(--ink)); }
.v-step:hover .v-step-title { text-decoration: underline; text-underline-offset: 3px; }
.v-step:hover .meta { color: var(--c); }
.v-route-end { align-self: end; text-align: right; padding-top: 8px; border-top: 1px solid var(--silt); }

/* Where next: three related talks, each openable without leaving the viewer. */
.v-next { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.v-rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.v-rel-item {
  border: 1px solid var(--silt); border-radius: var(--radius); background: var(--shingle); padding: 0;
  cursor: pointer; text-align: left; overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease;
}
.v-rel-item:hover { transform: translateY(-2px); border-color: var(--silt-strong); }
.v-rel-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.v-rel-thumb { display: block; aspect-ratio: 16 / 9; background: #000; }
.v-rel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-rel-item.is-done .v-rel-thumb img { opacity: 0.55; }
.v-rel-body { display: flex; flex-direction: column; gap: 5px; padding: 11px 14px 13px; }
.v-rel-title { font-family: var(--head); font-size: 16px; line-height: 1.3; color: var(--title, var(--ink)); }
.v-rel-body .meta { font-size: 12px; }
.v-rel-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 2px; }
.v-rel-tags .hashtag { pointer-events: none; }
blockquote.pull {
  font-family: var(--head); font-size: 21px; line-height: 1.35;
  color: var(--ink); border-left: 3px solid var(--cyan); padding-left: 18px;
}
/* the two-sentence summary sits between the facts and the longer read */
.viewer-sum { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 400; color: var(--ink); max-width: 62ch; }

/* "About this talk": two or three paragraphs, open by default, collapsible so
   people who came for the notes or the rating can fold it away. */
.about { border-top: 1px solid var(--silt); border-bottom: 1px solid var(--silt); }
.about-toggle {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 0; min-height: 44px;
}
.about-toggle::-webkit-details-marker { display: none; }
.about-toggle .display { font-size: 17px; }
.about-toggle .about-hint::after { content: " ▾"; font-family: var(--sans); }
.about[open] .about-toggle .about-hint::after { content: " ▴"; }
.about-toggle:hover .display { color: var(--gold); }
.about-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-sm); }
.about-body { display: flex; flex-direction: column; gap: 14px; padding: 0 0 18px; }

/* rating */
.rate { border: 1px solid var(--silt); border-radius: var(--radius); background: var(--shingle); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.rate-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rate-q { font-size: 14.5px; font-weight: 650; }
.rate-hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.scale { display: flex; gap: 6px; }
.scale button {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--silt); background: transparent; color: var(--ink-soft);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.scale button:hover { border-color: var(--gold); color: var(--gold); }
.scale button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button { min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--silt); background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.pills button:hover { border-color: var(--gold); color: var(--gold); }
.pills button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--riverbed); }

.want {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px dashed var(--silt-strong); background: transparent; color: var(--ink); text-align: left;
  font-size: 14.5px; font-weight: 650;
}
.want:hover { border-color: var(--gold); color: var(--gold); }
.want[aria-pressed="true"] { background: var(--gold-wash); border-style: solid; border-color: var(--gold); color: var(--gold); }
.want .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; }

/* transcript */
.tr-head { padding: 12px 16px; border-bottom: 1px solid var(--silt); display: flex; flex-direction: column; gap: 8px; }
.tr-head .section-head { align-items: baseline; }
.tr-head h3 { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.tr-head .meta { font-size: 11.5px; }
.tr-head .field { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.tr-body { overflow-y: auto; padding: 8px 10px 40px; }
.tr-line {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: baseline;
  width: 100%; text-align: left; border: 0; background: none; padding: 4px 6px; border-radius: 6px;
  font-family: var(--sans); font-size: 13px; line-height: 1.45; font-weight: 300; color: var(--ink-mute);
}
.tr-line:hover { background: var(--shingle); color: var(--ink); }
.tr-line time { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); opacity: 0.7; font-variant-numeric: tabular-nums; }
/* The line under the playhead is the one thing in the rail that should be read. */
.tr-line.is-now { background: var(--gold-wash); color: var(--ink); font-weight: 400; }
.tr-line.is-now time { color: var(--gold); opacity: 1; }
.tr-line mark { background: transparent; color: var(--gold); font-weight: 600; }
.tr-empty { padding: 22px 16px; }
.tr-toggle[aria-pressed="true"] { background: var(--shingle); color: var(--ink); }

/* ---------- year rail ---------- */

.years { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
/* Each Summit card can also play that year's highlights reel — the only
   footage of the room rather than of a stage. The reel replaces the card in
   place, so the row keeps its shape. */
.year-wrap { display: flex; flex-direction: column; gap: 8px; }
.year-wrap > .year-card { flex: 1; }
.year-reel {
  position: relative; display: block; width: 100%; padding: 0; cursor: pointer;
  background: #000; border: 1px solid var(--silt); border-radius: var(--radius);
  overflow: hidden; color: #fff; font: inherit; text-align: left;
  aspect-ratio: 16 / 9;
  transition: border-color 160ms ease;
}
.year-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 200ms ease; }

/* A 276px thumbnail is too small to tell you what a reel is of. Coming near
   one lifts it out of the row at the size it deserves — the same frame, grown
   from its own centre so the row underneath keeps its shape, and never wider
   than the screen it is on. */
.year-reel {
  transform-origin: center top;
  transition: border-color 160ms ease, transform 320ms cubic-bezier(.2,.7,.2,1), box-shadow 320ms ease;
}
.year-reel:hover, .year-reel:focus-visible {
  border-color: var(--gold); z-index: 5;
  transform: scale(var(--reel-grow, 1.9));
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.55);
}
/* It grows from its own centre, so the two on the ends would reach past the
   page. They grow from their inner edge instead and stay on the screen. */
.years > .year-wrap:first-child .year-reel { transform-origin: left top; }
.years > .year-wrap:last-child .year-reel { transform-origin: right top; }
@media (max-width: 1100px) { .year-reel, .year-reel-frame { --reel-grow: 1.45; } }
/* Under 860px there is no room to grow into: the tile is already most of the
   width, and scaling it only pushes the page sideways. */
@media (max-width: 860px) {
  .year-reel, .year-reel-frame { --reel-grow: 1; }
  .year-reel:hover, .year-reel:focus-visible { box-shadow: none; }
  .year-reel-frame { box-shadow: none; }
}
.year-reel:hover img, .year-reel:focus-visible img { opacity: 1; }
.year-wrap { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .year-reel { transition: border-color 160ms ease; }
  .year-reel:hover, .year-reel:focus-visible { transform: none; }
}
/* No hover to grow on, and no room to grow into. */
@media (hover: none) { .year-reel:hover { transform: none; box-shadow: none; } }
.year-reel-face {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; font-size: 12.5px; font-weight: 600;
  background: linear-gradient(to top, rgb(0 0 0 / 0.78), transparent);
}
.year-reel-play {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 999px;
  background: var(--gold); color: #1a1205;
}
.year-reel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.year-reel .meta { margin-left: auto; font-family: var(--mono); color: rgb(255 255 255 / 0.8); }
/* Playing keeps the size the thumbnail grew to: it would be odd to open a
   reel by making it smaller than the preview you clicked. Same transform, same
   edge handling, so it lands exactly where the preview was. */
.year-reel-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000; z-index: 6;
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.55);
  /* Genuinely this wide, rather than scaled to it. A transform magnifies
     whatever YouTube drew for a 279px player, its controls included — which is
     why they came out enormous. Widening the element lets the player lay itself
     out at the size it is actually being watched at. */
  width: calc(var(--reel-grow, 1.9) * 100%);
}
/* The last column would run off the right, so it hangs to the left instead. */
.years > .year-wrap:last-child .year-reel-frame {
  margin-left: calc((1 - var(--reel-grow, 1.9)) * 100%);
}
.year-reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.year-reel-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
  background: rgb(0 0 0 / 0.6); color: #fff; border: 1px solid rgb(255 255 255 / 0.3);
  font-size: 19px; line-height: 1; display: grid; place-items: center;
}

.year-card {
  border: 1px solid var(--silt); border-radius: var(--radius); padding: 20px; background: var(--shingle);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left;
  font: inherit; color: inherit; cursor: pointer; transition: border-color 150ms ease, transform 150ms ease;
}
.year-card:hover { border-color: var(--silt-strong); transform: translateY(-2px); }
.year-card[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.year-card[aria-pressed="true"] .year-big { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .year-card:hover { transform: none; } }
.year-big { font-family: var(--head); font-weight: 700; font-size: 54px; letter-spacing: -0.03em; line-height: 0.85; }
.year-card.is-next { border-style: dashed; background: transparent; }
.year-card.is-next .year-big { color: var(--ink-mute); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--silt); padding-block: 46px calc(46px + env(safe-area-inset-bottom, 0px)); background: var(--channel); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-brand { flex: 1 1 260px; }
.foot-mark { display: inline-block; border-radius: 6px; transition: opacity 160ms ease; }
.foot-mark:hover, .foot-mark:focus-visible { opacity: 0.8; }
.foot-links { flex: 1 1 520px; }
/* The footer: four places this archive points at. At rest each is just its
   mark — a row of small boxes, quiet enough to sit under everything else. Come
   near one and it opens to say what you would go there for. The words are
   always in the DOM, hidden by width rather than display, so a screen reader
   reads all four and a keyboard opens them the same way a cursor does. */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.foot-link {
  display: flex; align-items: center; gap: 0; text-decoration: none; color: var(--ink);
  border: 1px solid var(--silt); border-radius: var(--radius); padding: 8px;
  background: color-mix(in oklab, var(--shingle) 45%, transparent);
  transition: border-color 200ms ease, background 200ms ease, gap 260ms ease;
}
.foot-link:hover, .foot-link:focus-visible, .foot-link:focus-within {
  border-color: var(--gold); background: color-mix(in oklab, var(--shingle) 85%, transparent); gap: 11px;
}
.foot-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.foot-icon.is-summit { color: var(--gold); background: color-mix(in oklab, var(--gold) 16%, transparent); }
/* The real mark — the green c over the teal t — rather than a drawn stand-in. */
.foot-icon.is-ct { background: color-mix(in oklab, var(--cyan) 14%, transparent); }
.foot-icon.is-ct img { width: auto; height: 20px; display: block; }
.foot-icon.is-youtube { color: #ff0033; background: color-mix(in oklab, #ff0033 14%, transparent); }
.foot-icon.is-linkedin { color: #0a66c2; background: color-mix(in oklab, #0a66c2 18%, transparent); }
/* Closed: no width, nothing painted, but still read aloud. */
.foot-copy {
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width 300ms cubic-bezier(.2,.7,.2,1), opacity 220ms ease;
}
.foot-link:hover .foot-copy, .foot-link:focus-visible .foot-copy, .foot-link:focus-within .foot-copy {
  max-width: 34ch; opacity: 1;
}
.foot-name { font-weight: 600; font-size: 13.5px; }
.foot-copy .meta { font-size: 11.5px; }
.foot-go { width: 0; opacity: 0; overflow: hidden; color: var(--gold); font-size: 14px; transition: width 260ms ease, opacity 200ms ease; }
.foot-link:hover .foot-go, .foot-link:focus-visible .foot-go, .foot-link:focus-within .foot-go { width: 14px; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .foot-link, .foot-copy, .foot-go { transition: none; }
}
/* No hover on a touch screen, so there they are simply open. */
@media (hover: none) {
  .foot-copy { max-width: 34ch; opacity: 1; }
  .foot-link { gap: 11px; }
}

/* ---------- organisers ---------- */

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--silt); }
table.data th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
table.data td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.table-scroll { overflow-x: auto; }
.bar { height: 6px; border-radius: 3px; background: var(--silt); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--gold); }
.wish-topics-agg { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.wish-bar-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 40px; gap: 14px; align-items: center; }
.wish-bar-row .bar { height: 10px; border-radius: 5px; }
.wish-bar-row .n { text-align: right; }
.wish-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.quote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quote { padding: 12px 16px; background: var(--shingle); border-left: 3px solid var(--cyan); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

/* ---------- responsive ---------- */

/* ---------- people: LinkedIn links and the speakers page ---------- */

/* A speaker's name as a link. Sits above the card's whole-surface hit area so
   the name goes to LinkedIn and everything else still opens the talk. */
.person { position: relative; z-index: 1; color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.person:hover { color: var(--gold); border-bottom-color: currentColor; }
.person-in { display: inline-block; margin-left: 5px; vertical-align: -1px; color: var(--cyan); opacity: 0.8; }
.person:hover .person-in { opacity: 1; }
/* a name search rather than a verified profile: same link, quieter mark */
.person.is-search .person-in { color: var(--ink-mute); opacity: 0.6; }
.person-lede .person-in svg { width: 15px; height: 15px; }
.viewer-profile { text-decoration: none; }
.viewer-profile:hover { color: var(--gold); }
.viewer-speaker .stack-xs { gap: 3px; }

.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--silt); background: var(--channel); }
.page-title { font-size: clamp(36px, 5vw, 56px); }
.topbar nav a[aria-current="page"] { color: var(--ink); background: var(--shingle); }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding-bottom: 56px; }
.sp-section { padding-top: 28px; }
.sp {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border: 1px solid var(--silt); border-radius: var(--radius); background: var(--shingle);
}
.sp.is-here { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.sp-top { display: flex; gap: 16px; align-items: center; }
.sp-photo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--silt);
}
.sp-mono {
  display: grid; place-items: center; background: var(--channel); color: var(--cyan);
  font-family: var(--head); font-size: 26px; letter-spacing: 0.02em;
}
.sp-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-name { font-family: var(--head); font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.sp-role { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.sp-years { margin: 2px 0 0; display: flex; gap: 6px; }
.sp-year { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-mute); border: 1px solid var(--silt); border-radius: 999px; padding: 2px 7px; }
/* The Canterbury Tech hats on a person's card. Deliberately quieter than the
   Summit-year pills: what someone said on stage leads, how they help run the
   thing follows. */
.sp-hats { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.flag-ct {
  background: color-mix(in oklab, var(--cyan) 16%, transparent);
  color: var(--ink); border: 1px solid color-mix(in oklab, var(--cyan) 42%, transparent);
}

.sp-bio { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 300; color: var(--ink-soft); }
.sp-talks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--silt); padding-top: 14px; }
.sp-talk { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.sp-talk-year { font-family: var(--mono); font-size: 11.5px; color: var(--gold); }
.sp-talk a { color: var(--title, var(--ink)); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.sp-talk a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-talk .meta { grid-column: 2; }
.sp-talk.is-coming a { opacity: 0.75; }
.sp-links { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-links .btn svg { margin-right: 6px; vertical-align: -2px; }
.sp-links .meta { text-decoration: none; }
.sp-links .meta:hover { color: var(--gold); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .wish-grid { grid-template-columns: minmax(0, 1fr); }
  .strip-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* One column, and the page scrolls. The left column's children become
     grid items of their own so the rail (notes, rating) can sit between the
     talk and the transcript rather than after everything. */
  .viewer-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .viewer-main { display: contents; }
  .viewer-side { order: 1; border-left: 0; border-top: 1px solid var(--silt); margin-top: 28px; overflow: visible; padding: 18px var(--gutter) 0; }
  .viewer-tr { order: 2; margin-bottom: 40px; }
  /* The shell is the scroller, and stops being a grid so nothing below is
     stretched to the viewport height: the grid then sizes to its content. */
  .viewer-shell { display: block; overflow-y: auto; }
}
@media (max-width: 720px) {
  /* The section links fold behind a button rather than vanishing. Before this
     there was no substitute at all below 720px: a phone could only reach
     Expeditions, '27 or Sponsors by scrolling the whole page. */
  .topbar nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--riverbed); border-bottom: 1px solid var(--silt);
    padding: 6px 0 10px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  }
  .topbar.nav-open nav { display: flex; }
  .topbar.nav-open nav a {
    padding: 13px var(--gutter, 18px); min-height: 44px; display: flex; align-items: center;
  }
  .nav-toggle { display: inline-flex; }
  /* Logo, menu, tools — in that order there is no room for the wordmark too,
     and the mark already says whose site this is. Without this the bar runs
     71px past the right edge of a 400px screen. */
  .topbar .mark-copy { display: none; }
  .topbar-inner { gap: 10px; }
  /* "Back to the archive" is 155px of button on a 400px screen, which pushed
     the bar 40px off the side of /people. The arrow says it on its own. */
  .topbar-tools .btn-back .back-long { display: none; }
  .topbar .mark-logo { width: 104px; }
  .topbar .mark-sub { display: none; }
  .strip, .strip-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-talks { grid-template-columns: minmax(0, 1fr); }
  .moment { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  dialog.viewer { width: 100%; }
  .v-route-nav { grid-template-columns: minmax(0, 1fr); }
  .v-step.is-next { text-align: left; align-items: flex-start; }
  .v-route-end { align-self: start; text-align: left; }
  .v-person { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .v-face { width: 56px; height: 56px; }
  .trail-item { grid-template-columns: 32px 112px minmax(0, 1fr); }
  .claimed { grid-template-columns: minmax(0, 1fr); }
  .claimed-tags { padding-left: 0; border-left: 0; }
  .trail-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .trail-title { font-size: 15.5px; }
  .notebook, .expeditions { grid-template-columns: minmax(0, 1fr); }
  .note-item { grid-template-columns: 58px minmax(0, 1fr); }
  .note-tools { grid-column: 2; }
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .braid-animate .chan { stroke-dasharray: none; stroke-dashoffset: 0; }
  .reveal, .gate-card { animation: none; }
  /* The pills still say the years are pressable; the light does not run. */
  .braid-svg .glint { animation: none !important; opacity: 0 !important; }
}

/* The player's place when YouTube won't play the video (viewer.js showUnavailable). */
.player-unavailable {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center;
  /* The player box is black in both themes, so the text stays light in both. */
  color: #f1f8fa;
}
.player-unavailable-title { font-family: var(--head); font-size: 1.25rem; margin: 0; }
.player-unavailable .meta { max-width: 42ch; margin: 0; color: #b5d3da; }
