/* ============================================================
   actusprimus.com public pages – design "The Poster".
   Used only by layouts/poster.blade.php (the front page and the six
   theme pages). Course pages and /privacy do not load this file.
   Light page, one accent at a time, no boxes inside boxes.
   Motion runs only when <html> has the class "motion" (home.js).
   ============================================================ */

@font-face {
  font-family: "Lexend";
  src: url("../kutri/fonts/lexend-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/home/big-shoulders-display-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --white: #ffffff;
  --navy: #002136;
  --petrol: #094f7c;
  --mid: #0078a5;
  --sun: #ffcc00;
  --pink: #ff94cf;
  --candy: #ffa3d9; /* MegaTADA candy highlight (vk-palette pinkki shade 2) */
  --muted: #23485c;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Lexend", system-ui, sans-serif;
  --g: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --out: cubic-bezier(.16, .8, .24, 1);
  --radius: 6px;
  --bar: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-weight: 350;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure, blockquote, dl, dd, h1, h2 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--g); top: -80px; z-index: 10;
  background: var(--navy); color: var(--white); padding: 12px 16px;
  border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- One-row top bar (not fixed) ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--bar); padding: 0 var(--g);
  view-transition-name: topbar;
}
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .16em; text-decoration: none;
}
.toplink {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .8rem; font-weight: 450; text-decoration: none; white-space: nowrap;
}
.toplink:hover, .toplink[aria-current="page"] { color: var(--petrol); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 600px) { .wordmark { letter-spacing: .24em; } .toplink { font-size: .889rem; } }

/* ---------- Shared type ---------- */
.label {
  margin: 0 0 clamp(14px, 2vw, 24px);
  font-family: var(--display); font-weight: 600; font-size: .95rem; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .3em; color: var(--petrol);
}
.display {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: .88; letter-spacing: 0;
}
.line { display: block; overflow: hidden; padding-top: .07em; margin-top: -.07em; }
.line > span { display: block; }
.small { font-size: 1rem; color: var(--muted); max-width: 34em; }
.lead { max-width: 30em; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 350; line-height: 1.4; }

.button {
  display: inline-flex; align-items: center; gap: .7em;
  min-height: 52px; padding: 10px 26px;
  background: var(--petrol); color: var(--white); border: 2px solid var(--petrol);
  border-radius: var(--radius);
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.button .arrow, .textlink .arrow { display: inline-block; transition: transform .25s var(--out); }
.button:hover { background: var(--mid); border-color: var(--mid); }
html.motion :is(.button, .textlink):is(:hover, :focus-visible) .arrow { transform: translateX(4px); }
.textlink {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 6px 0;
  color: var(--petrol); font-weight: 500; line-height: 1.35;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.textlink:hover { color: var(--mid); }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(24px, 3vw, 40px); }

/* =========================================================
   HOME – the poster
   ========================================================= */
.poster {
  display: grid; gap: clamp(20px, 3vw, 48px);
  padding: 0 var(--g) clamp(28px, 4vw, 56px);
}
.poster-image {
  position: relative; height: min(36svh, 520px); min-height: 220px;
  border-radius: var(--radius); overflow: hidden; background: var(--navy);
}
/* Absolutely positioned: a percentage height inside the stretched grid cell can resolve to 0 in Safari (iPad, 30 Nov 2026). */
.poster-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 36% 50%; }
.poster-type { display: grid; gap: clamp(18px, 3vw, 40px); align-content: start; }
.poster-title { font-size: clamp(3.9rem, 19.5vw, 9.5rem); line-height: .86; }
.poster-foot { display: grid; gap: 18px; justify-items: start; }

.billing { font-family: var(--display); text-transform: uppercase; line-height: 1.15; }
.b-pre { display: block; font-size: .85rem; font-weight: 500; letter-spacing: .32em; color: var(--petrol); }
.b-name { display: block; margin: 4px 0 6px; font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 700; letter-spacing: .05em; line-height: 1; }
.b-role { display: block; max-width: 26em; font-size: 1.05rem; font-weight: 500; letter-spacing: .11em; color: var(--muted); }
.home-fi { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; color: var(--petrol); font-weight: 500; text-underline-offset: 5px; }

@media (min-width: 900px) {
  .poster {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    height: calc(100svh - var(--bar)); min-height: 580px; max-height: 940px;
  }
  .poster-image { height: auto; min-height: 0; }
  .poster-type { display: flex; flex-direction: column; justify-content: space-between; }
  .poster-title { font-size: clamp(5.5rem, 9.6vw, 10.5rem); padding-top: .02em; }
}

/* The one yellow marker – only in the front page's hero heading */
.marker { display: inline-block; line-height: .86; padding: .05em .06em 0; background: var(--sun); }

/* ---------- The programme: six doors as a cinema listing ---------- */
.programme { padding: clamp(72px, 11vw, 160px) var(--g) clamp(40px, 6vw, 80px); max-width: 1320px; margin: 0 auto; }
.doors { list-style: none; margin: 0; padding: 0; }
.doors > li { border-bottom: 1px solid var(--petrol); scroll-margin-top: 24px; }
.door {
  display: grid; align-items: center; column-gap: 16px;
  grid-template-columns: clamp(118px, 36vw, 170px) minmax(0, 1fr);
  grid-template-areas: "img no" "img title" "img line";
  padding: 18px 0; text-decoration: none; min-height: 44px;
}
.door-img { grid-area: img; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.door-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); }
.door-img .pos-speaking { object-position: 72% 26%; }
.door-img .pos-participants { object-position: 50% 30%; }
.door-img .pos-research { object-position: 50% 40%; }
.door-no { grid-area: no; align-self: end; font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .2em; color: var(--petrol); }
.door-title { grid-area: title; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 8.4vw, 2.4rem); line-height: .95; transition: color .2s; }
.door-line { grid-area: line; align-self: start; margin-top: 4px; font-size: .95rem; line-height: 1.35; color: var(--muted); }
.door-arrow { display: none; }
.door:is(:hover, :focus-visible) .door-title { color: var(--petrol); }
html.motion .door:is(:hover, :focus-visible) .door-img img { transform: scale(1.06); }
.door:focus-visible { outline-offset: 6px; }

@media (min-width: 900px) {
  .door {
    grid-template-columns: 3.5rem 260px minmax(0, 1fr) minmax(0, 19rem) 3rem;
    grid-template-areas: "no img title line arrow";
    column-gap: clamp(20px, 3vw, 44px); padding: 26px 0;
  }
  .door-no { align-self: center; }
  .door-title { font-size: clamp(3rem, 5.4vw, 5rem); }
  .door-line { align-self: center; margin: 0; font-size: 1.125rem; }
  .door-arrow { display: block; grid-area: arrow; justify-self: end; font-size: 1.6rem; transition: transform .35s var(--out), color .2s; }
  .door:is(:hover, :focus-visible) .door-arrow { color: var(--petrol); }
  html.motion .door:is(:hover, :focus-visible) .door-arrow { transform: translateX(10px); }
}

.closing {
  display: grid; justify-items: center; gap: 28px; text-align: center;
  padding: clamp(64px, 10vw, 140px) var(--g) clamp(72px, 10vw, 150px);
}
.closing-title { font-size: clamp(2.6rem, 9vw, 6rem); }

/* =========================================================
   THEME PAGES – the opening shot, then quiet scenes
   ========================================================= */
.opening {
  --ar: 1.5;
  display: grid; gap: clamp(22px, 3vw, 48px); align-content: start;
  padding: 0 var(--g) clamp(48px, 7vw, 88px);
}
.opening-media {
  width: min(100%, calc(62svh * var(--ar)));
  border-radius: var(--radius); overflow: hidden; background: var(--navy);
}
.opening-media img { width: 100%; height: auto; }
.vt-workshops, .vt-participants, .vt-research { --ar: 1.7778; }
.vt-speaking { --ar: .926; }
.opening-media.vt-speaking { max-width: 640px; }
.opening-type { display: grid; gap: 18px; justify-items: start; align-content: start; }
.opening-type .label { margin: 0; }
.opening-title { font-size: clamp(2.7rem, 13vw, 4.4rem); }
.opening-lead { max-width: 26em; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.45; color: var(--muted); }
.h1-sub {
  display: block; margin-top: 14px; max-width: 22em;
  font-family: var(--body); font-weight: 450; text-transform: none; letter-spacing: -.01em;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.25;
}
.candy { display: inline-block; padding: .06em .08em 0; border-radius: var(--radius); background: var(--candy); }

/* Wide screens: the image takes about 62% of the content width beside the title, never taller than
   the first screen, so image, H1 and button are all in view at 1280×800 and 1440×900. */
@media (min-width: 900px) {
  .opening {
    --cap: 0px; /* room for a caption under the image */
    grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); align-items: center; align-content: center;
    column-gap: clamp(32px, 3.6vw, 64px);
    max-width: calc(1440px + 2 * var(--g)); margin: 0 auto;
    min-height: calc(100svh - var(--bar)); padding-top: clamp(8px, 2svh, 24px); padding-bottom: clamp(32px, 6svh, 72px);
  }
  .opening .opening-media { width: min(100%, calc((100svh - var(--bar) - 88px - var(--cap)) * var(--ar))); justify-self: end; }
  .opening-title { font-size: clamp(3.2rem, 4.9vw, 5.6rem); line-height: .9; }
  .opening-type { gap: 20px; }
  .opening-lead { font-size: clamp(1.1rem, 1.45vw, 1.3rem); }
  /* The portrait photo: two equal columns, the photo leaning on the title, at most its natural 640px */
  .opening-portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .opening-portrait .opening-title { font-size: clamp(3.4rem, min(7vw, 13svh), 7.4rem); }
  /* The lecture comic keeps its caption under it */
  .opening-captioned { --cap: 44px; }
}
.opening figcaption, .drawing figcaption {
  padding: 12px 0 0; font-size: .889rem; line-height: 1.45; color: var(--muted); background: var(--white);
}
.opening-captioned .opening-media { overflow: visible; background: none; }
.opening-captioned .opening-media img { border-radius: var(--radius); }
/* MegaTADA: the literature map screenshot (white background) at full content width with a thin full border */
.opening.opening-map { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 0; max-width: calc(1200px + 2 * var(--g)); margin: 0 auto; }
.opening.opening-map .opening-media { width: 100%; justify-self: stretch; overflow: visible; background: none; }
.opening-map .opening-media img { border: 1px solid var(--petrol); border-radius: var(--radius); }
@media (min-width: 900px) {
  .opening.opening-map { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 0; padding-top: clamp(16px, 3svh, 40px); }
  .opening-map .opening-type {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "label label" "title lead" "title action";
    column-gap: 48px; row-gap: 14px; align-items: end;
  }
  .opening-map .opening-type .label { grid-area: label; }
  .opening-map .opening-title { grid-area: title; font-size: clamp(3.4rem, 6.4vw, 7rem); }
  .opening-map .opening-lead { grid-area: lead; }
  .opening-map .opening-type .button { grid-area: action; justify-self: start; }
}

.scene {
  min-height: 86svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, min(9vw, 8svh), 112px) var(--g);
}
@media (min-width: 900px) and (min-height: 600px) { .scene { min-height: 100svh; } }
/* Sparse scenes (a title and a line) and closing scenes take part of a screen, so none is mostly blank */
@media (min-width: 900px) and (min-height: 600px) { .scene.scene-compact { min-height: 66svh; } }
.scene-short { min-height: 0; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.scene-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.scene-inner.narrow { max-width: 1200px; }
:where(.scene-inner.narrow) > * { max-width: 56rem; }
.scene-media { border-radius: var(--radius); overflow: hidden; background: var(--navy); aspect-ratio: 3 / 2; }
.scene-media img { width: 100%; height: 100%; object-fit: cover; }

/* Image beside text: the image takes about 60% of the row */
.duo { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .duo.duo-flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .duo .scene-media { max-height: calc(100svh - 2 * clamp(48px, min(9vw, 8svh), 112px)); }
}

/* Where a text-only scene sits. Default: the left edge. .to-right: one column against the right edge,
   text still ranged left. .to-centre: one centred column. The column is as wide as its widest line. */
@media (min-width: 900px) {
  .scene-inner.to-right { display: grid; justify-content: end; }
  .scene-inner.to-right > * { justify-self: start; }
}
.scene-inner.to-centre { display: grid; justify-content: center; justify-items: center; text-align: center; }

.scene-title { font-size: clamp(2.6rem, 8vw, 5.5rem); margin-bottom: clamp(20px, 3.5vw, 44px); text-wrap: balance; }
.scene-title-xl { font-size: clamp(3rem, min(10vw, 17svh), 8.4rem); line-height: .86; }
.scene-title-long { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: .92; }
.format-no { margin-bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .14em; color: var(--petrol); }
.scene .textlink { margin-top: 22px; }
.lead + .button, .lead + .action-row { margin-top: 28px; }
.nobr { white-space: nowrap; }

/* One sentence per screen: large, about 18–24 characters a line, no hyphenation */
.statement {
  max-width: 19ch;
  font-size: clamp(2rem, min(1.2rem + 4.3vw, 9.6svh), 5.6rem); font-weight: 300; line-height: 1.06; letter-spacing: -.027em;
  text-wrap: pretty; hyphens: manual;
}
.statement strong { font-weight: 600; }
.statement .tail { display: block; margin-top: 1.1em; max-width: 30em; font-size: max(1rem, .36em); font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--muted); }
.statement-mid { max-width: 20ch; font-size: clamp(1.75rem, min(1rem + 3.4vw, 8svh), 4.3rem); line-height: 1.1; }
.statement + .statement { margin-top: .8em; }
.statement + .small, .statement-mid + .small { margin-top: 28px; }
.statement ~ .small { font-size: clamp(1rem, 1.2vw, 1.125rem); }
/* The mirror: the second sentence answers from the right */
@media (min-width: 900px) {
  .statement.answer { margin-left: auto; margin-top: clamp(28px, 6svh, 72px); }
  .duo .statement-mid { font-size: clamp(1.6rem, min(2.4vw, 5svh), 2.6rem); }
}

/* Writer since 1994: the title on the left, the numbers on the right */
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
  .split > .scene-title { grid-row: 1 / span 2; margin: 0; font-size: clamp(4rem, min(10.5vw, 21svh), 10rem); line-height: .84; }
  .split > .credits { margin: 0 0 20px; max-width: none; }
  .split .credits > div { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 14px 0; }
  .split .credits dt { font-size: clamp(3.4rem, min(6.4vw, 12svh), 6rem); }
  .split .credits dd { font-size: clamp(1.0625rem, 1.4vw, 1.3rem); }
}

/* Disclosures: three acts, one row each */
.acts { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.acts > li { border-bottom: 2px solid var(--petrol); }
.acts summary {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) 44px; align-items: center;
  min-height: 72px; padding: clamp(14px, 2vw, 24px) 0; cursor: pointer; list-style: none;
  font-size: clamp(1.3rem, 3.4vw, 2.7rem); font-weight: 400; line-height: 1.15; letter-spacing: -.015em;
}
.acts summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.act-no { font-family: var(--display); font-weight: 700; font-size: .8em; letter-spacing: .1em; color: var(--petrol); }
.plus { justify-self: end; font-family: var(--display); font-weight: 400; font-size: 1.6em; line-height: 1; color: var(--petrol); transition: transform .3s var(--out); }
details[open] > summary .plus { transform: rotate(45deg); }
.acts summary:hover { color: var(--petrol); }
.acts details p { max-width: 40em; padding: 0 0 22px 3rem; font-size: 1.0625rem; color: var(--muted); }
.acts + .small { margin-top: 28px; }

/* A quiet "open more" button */
.more { margin: clamp(36px, 5vw, 64px) auto 0; max-width: 44rem; text-align: left; }
.more > summary {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  width: fit-content; margin: 0 auto; min-height: 48px; padding: 6px 22px; cursor: pointer; list-style: none;
  border: 1px solid var(--petrol); border-radius: var(--radius); font-weight: 500; line-height: 1.3; color: var(--petrol);
  transition: background-color .2s, color .2s;
}
.more > summary:hover { background: var(--petrol); color: var(--white); }
.more > summary .plus { font-size: 1.4em; color: inherit; }
.more-left { margin-left: 0; }
.more-left > summary { margin-left: 0; }

/* Observation and quotes */
.observation p { font-size: clamp(1.45rem, min(2.5vw, 5svh), 2.3rem); font-weight: 330; line-height: 1.22; letter-spacing: -.015em; text-wrap: pretty; }
.byline {
  display: block; margin-top: 22px; color: var(--muted);
  font-family: var(--display); font-weight: 600; font-size: clamp(.95rem, 1.2vw, 1.1rem); font-style: normal; line-height: 1.35;
  text-transform: uppercase; letter-spacing: .2em;
}
/* Quotes: one per screen, centred like the critics' lines on a film poster */
.quote-scene .scene-inner { max-width: 1200px; }
.quote { display: grid; justify-items: start; }
.qmark { display: block; height: .55em; font-family: var(--display); font-weight: 900; font-size: clamp(6rem, min(16vw, 26svh), 12rem); line-height: 1; color: var(--pink); }
.quote p { font-weight: 300; line-height: 1.08; letter-spacing: -.028em; text-wrap: pretty; hyphens: manual; }
.quote-long p { font-size: clamp(1.9rem, min(1rem + 3.5vw, 7.6svh), 4.3rem); max-width: 21ch; }
.quote-short p { font-size: clamp(2.6rem, min(1rem + 6vw, 12svh), 7rem); max-width: 15ch; text-wrap: balance; }
.quote-mid p { font-size: clamp(2rem, min(1rem + 3.9vw, 8.4svh), 4.7rem); max-width: 20ch; }
.quote .byline { margin-top: 32px; max-width: 34em; font-size: clamp(.85rem, 1vw, 1rem); }
@media (min-width: 900px) {
  .quote { justify-items: center; text-align: center; }
  .quote p { text-wrap: balance; }
}
.full-quotes { list-style: none; margin: 24px 0 0; padding: 0; }
.full-quotes li { padding: 18px 0; border-bottom: 1px solid var(--petrol); }
.full-quotes blockquote p { font-size: 1rem; }
.who { margin-top: 8px; font-size: .889rem; color: var(--muted); }

/* Writer since 1994 – numbers live in a small table */
.credits { max-width: 34rem; margin: 0 0 24px; }
.credits > div { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--petrol); }
.credits dt { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; }
.credits dd { font-size: 1.0625rem; }

/* Plain stacked lists */
.plain-list, .listing, .parts, .ask-list, .big-list, .workshop-list { list-style: none; margin: 0; padding: 0; }
.plain-list { margin-top: 20px; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--petrol); font-size: 1.0625rem; }

.big-list li {
  padding: clamp(12px, 2vw, 22px) 0; border-bottom: 2px solid var(--petrol); text-wrap: balance;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
}

.ask-list { counter-reset: ask; }
.ask-list li {
  counter-increment: ask; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--petrol); font-size: clamp(1.2rem, 2.6vw, 1.8rem); line-height: 1.25;
}
.ask-list li::before { content: counter(ask); font-family: var(--display); font-weight: 700; color: var(--petrol); }

/* Listing rows: when / what / where */
.listing { margin-top: 24px; }
.listing li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--petrol); }
.listing-open { margin: 0 0 12px; }
.when { font-family: var(--display); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .18em; color: var(--petrol); }
.what { font-weight: 500; font-size: 1.125rem; line-height: 1.35; }
.where { font-size: 1rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 900px) {
  .listing-open li { padding: 18px 0; }
  .listing-open .what { font-size: clamp(1.25rem, 1.9vw, 1.7rem); }
  .listing-open .where { font-size: 1.0625rem; }
}

/* Selected talks and workshops – an end-credits roll */
.stages { text-align: center; }
.stages .label { margin-bottom: 32px; }
.roll { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: clamp(14px, 2vw, 22px); }
.roll li { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 4.2vw, 2.8rem); line-height: 1.02; letter-spacing: .03em; }
.roll small { display: block; margin-top: 4px; font-family: var(--body); text-transform: none; font-weight: 400; font-size: .95rem; letter-spacing: 0; color: var(--muted); }

/* MegaTADA's thirteen parts */
.parts { margin-top: 20px; }
.parts li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--petrol); font-size: 1rem; }
.parts-no { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--petrol); }
.parts strong { font-weight: 600; }

/* Drawings with a caption */
.drawing img { border-radius: var(--radius); }
.drawing-wide { max-width: 52rem; }
@media (min-width: 900px) {
  /* The ledger drawing, as large as the screen allows with its caption and buttons in view */
  .drawing-wide { width: min(100%, calc((100svh - 300px) * 1.5)); max-width: 64rem; }
  .scene-inner:has(> .drawing-wide) { display: grid; justify-items: center; }
  .scene-inner:has(> .drawing-wide) > .action-row { width: min(100%, calc((100svh - 300px) * 1.5), 64rem); }
}

/* Workshops for participants */
.workshop-list li { border-bottom: 2px solid var(--petrol); }
.workshop-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) 2rem; column-gap: 12px; align-items: center;
  min-height: 72px; padding: 16px 0; text-decoration: none;
}
.workshop-list .what { grid-column: 1; font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 450; }
.workshop-list .where, .workshop-list .note { grid-column: 1; }
.workshop-list .note { font-size: .889rem; color: var(--petrol); font-weight: 500; }
.workshop-list .arrow { grid-column: 2; grid-row: 1 / span 3; justify-self: end; font-size: 1.5rem; color: var(--petrol); transition: transform .3s var(--out); }
.workshop-list a:hover .what { color: var(--petrol); }
html.motion .workshop-list a:is(:hover, :focus-visible) .arrow { transform: translateX(5px); }
.scene-short .statement + .textlink { margin-top: 28px; }

/* The invitation */
.invite .scene-media-wide { aspect-ratio: auto; height: min(52svh, 560px); min-height: 220px; }
.invite .scene-media-wide img { object-position: 60% 50%; }
.invite-row { display: grid; gap: 22px; justify-items: start; margin-top: clamp(24px, 3.5vw, 44px); }
.invite-row .scene-title { margin: 0; }
@media (min-width: 900px) { .invite-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.closing-scene .scene-title { max-width: 14ch; font-size: clamp(2.8rem, min(8.6vw, 15svh), 7.6rem); line-height: .86; }

/* ---------- Footer: one quiet block on every page ---------- */
.foot { padding: clamp(40px, 6vw, 72px) var(--g) 40px; color: var(--muted); font-size: .9375rem; }
.foot-inner { max-width: 1320px; margin: 0 auto; display: grid; gap: 10px; justify-items: start; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.foot-back a { color: var(--petrol); font-weight: 500; gap: .5em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot-small { max-width: 46em; font-size: .889rem; line-height: 1.5; }

/* =========================================================
   MOTION – only with html.motion
   ========================================================= */

/* Front page opening titles: letterbox slit opens, title sets in, then stillness (< 1.5 s). Once per session. */
/* The slit is two white bars that pull away (transforms only). The earlier clip-path version was replaced
   after the poster image stayed hidden on an iPhone (cause not confirmed; 30 Nov 2026). The resting state has no bars, so a stalled animation still shows the image. */
html.motion:not(.intro-seen) .poster-image::before,
html.motion:not(.intro-seen) .poster-image::after { animation: bar-open 1.05s var(--ease) .05s backwards; }
html.motion:not(.intro-seen) .poster-image img { animation: settle 1.45s var(--out) backwards; }
html.motion:not(.intro-seen) .poster-title .line > span { animation: rise .6s var(--ease) both; }
html.motion:not(.intro-seen) .poster-title .line:nth-child(1) > span { animation-delay: .5s; }
html.motion:not(.intro-seen) .poster-title .line:nth-child(2) > span { animation-delay: .6s; }
html.motion:not(.intro-seen) .poster-title .line:nth-child(3) > span { animation-delay: .7s; }
html.motion:not(.intro-seen) .poster-foot,
html.home.motion:not(.intro-seen) .topbar { animation: fade .45s ease-out 1s both; }

/* Theme page titles rise out of their masks */
html.motion .opening-title .line > span { animation: rise .6s var(--ease) both; }
html.motion .opening-title .line:nth-child(1) > span { animation-delay: .3s; }
html.motion .opening-title .line:nth-child(2) > span { animation-delay: .4s; }
html.motion .opening-title .line:nth-child(3) > span { animation-delay: .5s; }
html.motion .opening-title .line:nth-child(4) > span { animation-delay: .6s; }
html.motion :is(.opening-type .label, .h1-sub, .opening-lead, .opening-type .button) { animation: fade .5s ease-out .55s both; }
/* The opening image opens from a letterbox slit, unless it has just grown out of a door (view transition) */
html.motion:not(.vt-arrival) .opening:not(.opening-captioned, .opening-map) .opening-media::before,
html.motion:not(.vt-arrival) .opening:not(.opening-captioned, .opening-map) .opening-media::after { animation: bar-open .95s var(--ease) .05s backwards; }
html.motion:not(.vt-arrival) .opening:not(.opening-captioned, .opening-map) .opening-media img { animation: settle 1.3s var(--out) backwards; }
html.motion:not(.vt-arrival) :is(.opening-captioned, .opening-map) .opening-media img { animation: fade .7s ease-out .05s backwards; }
html.motion :is(.opening-captioned, .opening-map) figcaption { animation: fade .5s ease-out .8s both; }

@keyframes bar-open {
  0%, 20% { transform: scaleY(.992); }
  100% { transform: scaleY(0); }
}
@keyframes slit {
  0%, 20% { clip-path: inset(49.6% 0 49.6% 0 round 2px); }
  100% { clip-path: inset(0 0 0 0 round 6px); }
}
@keyframes settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes rise { from { transform: translateY(150%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Scene reveals on scroll, only where scroll-driven animations exist; elsewhere everything is still */
@supports (animation-timeline: view()) {
  /* Images open from a letterbox slit as their scene arrives */
  html.motion :is(.door-img, .scene-media, .drawing img) {
    animation: open-frame linear both; animation-timeline: view(); animation-range: entry 5% cover 32%;
  }
  html.motion :is(.door-title, .door-line, .reveal) {
    animation: rise-in linear both; animation-timeline: view(); animation-range: entry 10% cover 28%;
  }
  /* One-sentence scenes: the lines are uncovered from the top down while the sentence rises, so they arrive one after another */
  html.motion .observation.reveal { animation: none; }
  html.motion .statement.reveal,
  html.motion .observation.reveal p {
    animation: lines-in linear both; animation-timeline: view(); animation-range: entry 5% cover 38%;
  }
  html.motion .statement.reveal .tail { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 30% cover 36%; }
  html.motion .reveal-late { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  /* Quotes: the quote mark is drawn in, then the words follow, then the byline */
  html.motion .quote.reveal { animation: none; }
  html.motion .quote.reveal .qmark { animation: draw-in linear both; animation-timeline: view(); animation-range: entry 20% cover 30%; }
  html.motion .quote.reveal p { animation: lines-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}
@keyframes open-frame {
  from { clip-path: inset(48% 0 48% 0 round 2px); }
  to { clip-path: inset(0 0 0 0 round 6px); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lines-in {
  from { clip-path: inset(0 0 100% 0); transform: translateY(.5em); }
  to { clip-path: inset(-.3em -.3em -.3em -.3em); transform: none; }
}
@keyframes draw-in {
  from { clip-path: inset(0 100% 0 0); transform: translateX(-.06em) rotate(-6deg); }
  to { clip-path: inset(0 -.1em 0 0); transform: none; }
}

/* Scenes snap gently, only while motion is on */
html.scenes.motion { scroll-snap-type: y proximity; }
.scene, .topbar { scroll-snap-align: start; }

/* Cross-document view transition: a door's image becomes its page's opening image */
.vt-workshops { view-transition-name: door-workshops; }
.vt-researchers { view-transition-name: door-researchers; }
.vt-speaking { view-transition-name: door-speaking; }
.vt-research { view-transition-name: door-research; }
.vt-megatada { view-transition-name: door-megatada; }
.vt-participants { view-transition-name: door-participants; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease); }
::view-transition-old(door-workshops), ::view-transition-new(door-workshops),
::view-transition-old(door-researchers), ::view-transition-new(door-researchers),
::view-transition-old(door-speaking), ::view-transition-new(door-speaking),
::view-transition-old(door-research), ::view-transition-new(door-research),
::view-transition-old(door-megatada), ::view-transition-new(door-megatada),
::view-transition-old(door-participants), ::view-transition-new(door-participants) {
  height: 100%; width: 100%; object-fit: cover; border-radius: var(--radius);
}
::view-transition-old(root) { animation: fade .18s ease-in reverse both; }
/* Doors that are not followed leave with the page instead of lingering */
::view-transition-old(*):only-child { animation: fade .18s ease-in reverse both; }
::view-transition-new(root) { animation: fade .3s ease-out .12s both; }

/* Without the motion class everything is visible and still */
html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation: none !important; transition: none !important; }
html:not(.motion)::view-transition-group(*),
html:not(.motion)::view-transition-old(*),
html:not(.motion)::view-transition-new(*) { animation: none !important; }

/* Permission line under the participant quotes. */
.quote-scene .quote-permission {
    margin: 2rem auto 0;
    text-align: center;
}

/* Cover bars for the opening slit (see bar-open). Invisible at rest. */
.poster-image, .opening:not(.opening-captioned, .opening-map) .opening-media { position: relative; }
.poster-image::before, .poster-image::after,
.opening:not(.opening-captioned, .opening-map) .opening-media::before,
.opening:not(.opening-captioned, .opening-map) .opening-media::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 1; height: 50.5%;
  background: var(--white); transform: scaleY(0); pointer-events: none;
}
.poster-image::before, .opening:not(.opening-captioned, .opening-map) .opening-media::before { top: 0; transform-origin: 50% 0; }
.poster-image::after, .opening:not(.opening-captioned, .opening-map) .opening-media::after { bottom: 0; transform-origin: 50% 100%; }
