/* ==========================================================================
   Poznej svůj pohyb — warm editorial: paper, ink, one terracotta line.
   ========================================================================== */

/* --- Fonts (self-hosted, GDPR-friendly) ------------------------------------ */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ---------------------------------------------------------------- */
:root {
  --paper:       oklch(96.2% 0.016 85);
  --paper-deep:  oklch(92.5% 0.024 80);
  --card:        oklch(98.6% 0.008 85);
  --ink:         oklch(21% 0.012 60);
  --ink-soft:    oklch(44% 0.016 60);
  --ink-faint:   oklch(70% 0.014 70);
  --line:        oklch(84% 0.02 75);
  --accent:      oklch(58% 0.155 40);
  --accent-deep: oklch(49% 0.14 38);
  --accent-wash: oklch(91% 0.045 50);
  --sage:        oklch(72% 0.045 145);
  --todo-bg:     oklch(93% 0.11 95);
  --todo-ink:    oklch(40% 0.09 75);
  --error:       oklch(52% 0.18 28);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Manrope", "Segoe UI", system-ui, sans-serif;

  --text-hero:  clamp(3.3rem, 0.9rem + 12.5vw, 11rem);
  --text-h2:    clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem);
  --text-h3:    clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --text-lede:  clamp(1.1rem, 1rem + 0.45vw, 1.35rem);

  --gutter:        clamp(1rem, 0.4rem + 3vw, 3rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --maxw: 1240px;
  --tap: 2.75rem; /* 44px minimum touch target */

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
}

/* ==========================================================================
   Layout is MOBILE-FIRST: base rules target phones; larger screens are
   layered on with min-width queries at the bottom of this file.
   ========================================================================== */

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Placeholder content — visible on purpose until real text arrives */
mark.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .82em;
  padding: .1em .45em; border-radius: 3px; border: 1px dashed currentColor;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
mark.todo::before { content: "doplnit · "; opacity: .7; }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-deep);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: var(--tap);
  font: 700 1rem/1 var(--font-body); letter-spacing: .01em;
  padding: 1.05em 1.6em; border-radius: 999px; border: 1.5px solid var(--ink);
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: transform .35s var(--ease-out-expo), background-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-arrow { display: inline-block; transition: transform .35s var(--ease-out-expo); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--card); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: .7em 1.15em; font-size: .88rem; background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn:hover .btn-arrow { transform: translateX(5px); }
  .btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }
  .btn-small:hover { background: var(--accent); border-color: var(--accent); }
}

.text-link {
  font-weight: 700; color: var(--accent-deep); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: .2em;
  display: inline-block; padding: .5rem 0; /* bigger tap area */
}

/* --- Top bar --------------------------------------------------------------- */
.topbar {
  position: relative; z-index: 5;
  max-width: var(--maxw); margin: 0 auto; padding: .9rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.wordmark {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
  text-decoration: none; letter-spacing: -.01em;
  display: inline-block; padding: .55rem 0; /* tap height without flex (flex eats the spaces) */
}
.wordmark em { color: var(--accent); }
.topbar-meta { display: none; }
.topbar .btn-small { margin-left: auto; }

/* --- Sticky mobile CTA ----------------------------------------------------- */
.sticky-cta {
  position: fixed; z-index: 20; left: .75rem; right: .75rem;
  bottom: calc(.75rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: .45rem .45rem .45rem 1.25rem;
  box-shadow: 0 18px 40px -12px oklch(20% 0.02 50 / .45);
  transform: translateY(160%); transition: transform .5s var(--ease-out-expo);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta p { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.sticky-cta strong { color: var(--accent); font-size: 1.05rem; }
.sticky-cta .btn { padding: .8em 1.2em; flex-shrink: 0; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem var(--gutter) var(--space-section);
}
.motion-line {
  /* phones: stays behind the headline only, never under body text */
  position: absolute; z-index: -1; left: -10%; top: 4.5rem;
  width: 120%; height: clamp(11rem, 52vw, 16rem);
}
.motion-line path {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s var(--ease-out-expo) .25s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-eyebrow { margin-bottom: 1rem; }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-hero); line-height: .88; letter-spacing: -.045em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.hero-title .line > span {
  display: inline-block; transform: translateY(105%);
  animation: rise 1.1s var(--ease-out-expo) forwards;
}
.hero-title .line-indent { padding-left: 1.25rem; }
.hero-title .line-indent > span { animation-delay: .12s; }
.hero-title em { color: var(--accent); font-weight: 350; }
@keyframes rise { to { transform: translateY(0); } }

.hero-photo {
  position: relative; z-index: 1;
  margin: .75rem calc(var(--gutter) * -1) 0;
  opacity: 0; animation: fade 1.2s ease .45s forwards;
}
/* multiply melts the photo's white wall into the paper — no visible box */
.hero-photo img {
  width: 100%; height: auto; mix-blend-mode: multiply;
  /* floor fades into the page instead of ending in a hard edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.hero-lede {
  margin-top: 1.5rem;
  font-size: var(--text-lede); line-height: 1.5; color: var(--ink-soft); max-width: 34ch;
  opacity: 0; animation: fade .9s ease .55s forwards;
}
.hero-facts {
  margin-top: 1.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem;
  opacity: 0; animation: fade .9s ease .7s forwards;
}
.hero-facts > div:last-child { grid-column: 1 / -1; }
.hero-facts dt, .facts dt, .payment-details dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.hero-facts dd { font-weight: 600; line-height: 1.45; font-size: .95rem; }
.hero-facts .price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1.1; }

.seats {
  margin-top: 2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.25rem;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px oklch(30% 0.05 50 / .25);
  opacity: 0; animation: fade .9s ease .85s forwards;
}
.seats-label { font-weight: 600; margin-bottom: .9rem; }
.seats-label strong { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--accent); vertical-align: -.1em; }
.seat-dots {
  list-style: none; padding: 0; margin-bottom: 1.3rem;
  display: grid; grid-template-columns: repeat(15, 1fr); gap: .3rem;
}
.seat-dots li {
  aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--accent); background: var(--accent-wash);
  transform: scale(0); animation: pop .5s var(--ease-out-expo) forwards;
}
.seat-dots li.is-taken { background: var(--ink); border-color: var(--ink); }
.seat-dots li:nth-child(5n+1) { animation-delay: 1.00s; }
.seat-dots li:nth-child(5n+2) { animation-delay: 1.05s; }
.seat-dots li:nth-child(5n+3) { animation-delay: 1.10s; }
.seat-dots li:nth-child(5n+4) { animation-delay: 1.15s; }
.seat-dots li:nth-child(5n+5) { animation-delay: 1.20s; }
.seats .btn { width: 100%; }
@keyframes pop { to { transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }

/* --- Section scaffolding --------------------------------------------------- */
.block {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) var(--space-section);
}
.block-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.25rem;
  border-top: 1.5px solid var(--ink); padding-top: 1rem; margin-bottom: 2rem;
}
.block-num { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--accent); }
.block-title {
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-h2);
  line-height: 1; letter-spacing: -.03em;
}
.block-note { width: 100%; color: var(--ink-soft); font-weight: 500; }

/* --- 01 About -------------------------------------------------------------- */
.about-grid { display: grid; row-gap: 2rem; margin-bottom: 3rem; }
.statement {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(1.6rem, 1.1rem + 2.3vw, 3rem); line-height: 1.18; letter-spacing: -.02em;
}
.statement em { color: var(--accent); }
.audience { list-style: none; padding: 0; }
.audience li {
  padding: .65rem 0; border-bottom: 1px solid var(--line); font-weight: 600;
  display: flex; align-items: center; gap: .8rem;
}
.audience li::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--sage); flex-shrink: 0;
}
.takeaways {
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 1.75rem 1.4rem; margin: 0 calc(var(--gutter) * -.5);
}
.takeaways-title {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: var(--text-h3); color: var(--accent-wash); margin-bottom: 1.25rem;
}
.takeaways ol { list-style: none; padding: 0; counter-reset: take; display: grid; gap: 1.1rem; }
.takeaways li {
  counter-increment: take; display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline;
  font-size: var(--text-lede); line-height: 1.4;
}
.takeaways li::before {
  content: counter(take, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1rem; color: var(--accent);
}

/* --- 02 Program ------------------------------------------------------------ */
.timeline { --time-col: 4.2rem; list-style: none; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: calc(var(--time-col) + .3rem); top: .9rem; bottom: 1rem;
  width: 1.5px; background: linear-gradient(var(--accent), var(--accent) 85%, transparent);
}
.timeline-item {
  display: grid; grid-template-columns: var(--time-col) 1fr; column-gap: 1.5rem;
  padding-bottom: 2rem; position: relative;
}
.timeline-item::after {
  content: ""; position: absolute; left: var(--time-col); top: .55rem;
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline-time {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; line-height: 1.2;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.timeline-body h3 { font-size: var(--text-h3); font-weight: 700; line-height: 1.25; margin-bottom: .3rem; }
.timeline-body p { color: var(--ink-soft); max-width: 46ch; }
.timeline-item.is-break .timeline-time,
.timeline-item.is-break h3 { color: var(--ink-faint); }
.timeline-item.is-break::after { border-color: var(--ink-faint); }
.timeline-end { padding-bottom: 0; }
.timeline-end::after { background: var(--accent); }

/* --- 03 Lecturers ---------------------------------------------------------- */
.lecturer-grid { display: grid; gap: 3rem; }
.portrait {
  position: relative; aspect-ratio: 1; margin-bottom: 1.4rem; /* square on phones = less scrolling */
  background: var(--paper-deep); border-radius: var(--radius); overflow: hidden;
}
.portrait {
  background: radial-gradient(120% 80% at 50% 100%, var(--accent-wash), var(--paper-deep) 70%);
}
.portrait img {
  width: 100%; height: 100%; padding-top: 7%;
  object-fit: cover; object-position: 50% 0;
}
.portrait-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: clamp(4rem, 22vw, 8rem);
  color: var(--accent); opacity: .35; letter-spacing: -.05em;
}
.portrait-todo { position: absolute; left: 1rem; bottom: 1rem; }
.lecturer h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.1; }
.lecturer-role { color: var(--accent-deep); font-weight: 700; font-size: .92rem; margin: .35rem 0 .9rem; }
.lecturer-text > p:not(.lecturer-role) { color: var(--ink-soft); max-width: 46ch; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.tags li {
  font-size: .8rem; font-weight: 700; padding: .3em .8em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}

/* --- 04 Practical ---------------------------------------------------------- */
.facts { display: grid; border-top: 1px solid var(--line); }
.fact { padding: 1.15rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.fact dd { margin-top: .35rem; line-height: 1.5; }
.fact dd strong { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; }

/* --- 05 Register (inverted) ----------------------------------------------- */
.register {
  background: var(--ink); color: var(--paper);
  padding: var(--space-section) var(--gutter);
}
.register-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 2rem; }
.register-title {
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-h2);
  line-height: 1; letter-spacing: -.03em; margin: .5rem 0 1.25rem;
}
.register-title em { color: var(--accent); }
.register-lede { color: var(--ink-faint); font-size: var(--text-lede); line-height: 1.5; max-width: 32ch; }
.register-price { margin-top: 1.5rem; font-weight: 600; }
.register-price span { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
.register-seats { margin-top: .3rem; color: var(--ink-faint); }
.register-seats strong { color: var(--accent); }

.register-form {
  background: var(--card); color: var(--ink); border-radius: var(--radius);
  padding: 1.4rem 1.15rem; margin: 0 calc(var(--gutter) * -.5);
  display: grid; gap: 1.2rem;
}
.field-row { display: grid; gap: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; }
.optional { font-weight: 500; color: var(--ink-faint); font-size: .85em; margin-left: .3em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; /* ≥16px stops iOS zoom-on-focus */
  color: var(--ink); min-height: 3rem;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--card);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: .88rem; font-weight: 600; margin-top: .4rem; }
.form-alert {
  background: oklch(95% 0.04 30); color: var(--error); font-weight: 600;
  border-left: 3px solid var(--error); padding: .9rem 1rem; border-radius: var(--radius);
}

.consents { border: 0; padding: 0; display: grid; gap: .4rem; margin: .2rem 0 .4rem; }
.check {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: .8rem; align-items: start;
  font-size: .9rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer;
  padding: .5rem 0; /* whole row is the tap target */
}
.check input {
  appearance: none; width: 1.5rem; height: 1.5rem; margin: 0;
  border: 1.5px solid var(--ink-faint); border-radius: 4px; background: var(--paper);
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.check input::after {
  content: ""; width: .7rem; height: .38rem; border: 2px solid var(--card);
  border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0) translate(1px, -1px);
  transition: transform .2s var(--ease-out-expo);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1) translate(1px, -1px); }
.check a { color: var(--ink); font-weight: 700; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* --- 06 FAQ ---------------------------------------------------------------- */
.faq { padding-top: var(--space-section); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.4rem 1.15rem 0; position: relative;
  font-family: var(--font-display); font-size: var(--text-h3); font-weight: 400; line-height: 1.3;
  min-height: var(--tap);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; translate: 0 -50%;
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 300; color: var(--accent);
  transition: rotate .35s var(--ease-out-expo);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 60ch; }

/* --- Confirmation / plain pages ------------------------------------------- */
.confirm, .prose, .admin {
  max-width: 52rem; margin: 0 auto; padding: 1.5rem var(--gutter) var(--space-section);
}
.confirm-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.03em;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.6rem); line-height: 1.04; margin: .8rem 0 1.25rem;
}
.confirm-title em { color: var(--accent); display: block; }
.confirm-lede { font-size: var(--text-lede); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; }
.payment {
  display: grid; gap: 1.75rem; justify-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; margin: 2rem 0;
}
.qr-code { width: min(15rem, 100%); }
.qr-code svg { width: 100%; height: auto; background: #fff; border-radius: var(--radius); }
.qr-code figcaption { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: .5rem; }
.payment-details { display: grid; gap: 1rem; }
.payment-details dd { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; overflow-wrap: anywhere; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.confirm-event { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; color: var(--ink-soft); }
.confirm .btn { width: 100%; }

.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h2); line-height: 1.05; letter-spacing: -.03em; margin: .6rem 0 1.75rem; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-h3); margin: 2rem 0 .5rem; }
.prose p, .prose li { color: var(--ink-soft); max-width: 66ch; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .6rem; }
.prose .btn { margin-top: 2rem; }

.admin-title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h2); line-height: 1; }
.admin-title em { color: var(--accent); }
.admin-sub { color: var(--ink-soft); margin: .6rem 0 1.5rem; font-weight: 600; }
.admin-missing { background: var(--todo-bg); color: var(--todo-ink); padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.admin-missing summary { cursor: pointer; font-weight: 700; }
.admin-missing ul { margin-top: .6rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.admin-table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: .9rem 1rem; border-bottom: 1.5px solid var(--ink); }
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr.is-waitlist td { color: var(--ink-faint); }
.admin-table .pre { white-space: pre-wrap; max-width: 22rem; }

/* --- Footer ---------------------------------------------------------------- */
.footer { border-top: 1.5px solid var(--ink); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem var(--gutter) calc(6rem + env(safe-area-inset-bottom)); /* room for sticky CTA */
  display: grid; gap: 1.25rem; font-size: .9rem; color: var(--ink-soft);
}
.footer-inner p + p { margin-top: .25rem; }
.footer-mark { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.footer-mark em { color: var(--accent); }
.footer a { color: var(--ink); font-weight: 600; }

/* --- Scroll reveal (enabled by JS; content stays visible without it) ------ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1.1s var(--ease-out-expo); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 640px) {
  body { font-size: 1.0625rem; }
  .topbar { padding: 1.25rem var(--gutter); gap: 1.5rem; }
  .topbar-meta {
    display: flex; gap: .55rem; margin-left: auto;
    font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  }
  .topbar .btn-small { margin-left: 0; }
  .hero-title .line-indent { padding-left: clamp(1.5rem, 12vw, 11rem); }
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.5rem; }
  .hero-facts > div:last-child { grid-column: auto; }
  .seats { max-width: 24rem; }
  .seat-dots { grid-template-columns: repeat(5, 1fr); gap: .5rem; max-width: 15rem; }
  .seats .btn { width: auto; }
  .block-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); padding-top: 1.1rem; }
  .block-note { width: auto; margin-left: auto; }
  .takeaways { margin: 0; padding: clamp(2rem, 1rem + 4vw, 4rem); }
  .takeaways li { grid-template-columns: 3.5rem 1fr; }
  .timeline { --time-col: 7.5rem; }
  .timeline-item { column-gap: 2.5rem; padding-bottom: 2.4rem; }
  .timeline-item::after { top: .75rem; }
  .timeline-time { font-size: 2rem; line-height: 1; }
  .lecturer-grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
  .portrait { aspect-ratio: 4 / 5; }
  .lecturer:nth-child(2) { margin-top: clamp(0rem, 10vw, 9rem); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .register-form { margin: 0; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
  .payment { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 2.25rem; gap: 2.5rem; align-items: center; }
  .qr-code { width: 13rem; }
  .confirm .btn { width: auto; }
  .faq summary { padding-right: 3rem; }
  .faq details p { padding-right: 3rem; }
  .footer-inner { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; padding-bottom: 3rem; }
  .sticky-cta { display: none; }
}

@media (min-width: 960px) {
  .hero { padding-top: clamp(2rem, 1rem + 5vw, 5rem); }
  .motion-line { left: -6%; top: 4%; width: 112%; height: min(78vh, 640px); }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .hero-eyebrow, .hero-title { grid-column: 1 / -1; }
  .hero-title { position: relative; z-index: 2; }
  .hero-photo {
    grid-column: 6 / -1; grid-row: 3 / span 3; align-self: start;
    margin: clamp(-7rem, -6vw, -3rem) calc(var(--gutter) * -1) 0 0;
  }
  .hero-lede { grid-column: 1 / span 5; grid-row: 3; margin-top: clamp(2rem, 4vw, 3.5rem); }
  .hero-facts { grid-column: 1 / span 5; grid-row: 4; margin-top: 2.25rem; grid-template-columns: 1fr 1fr; }
  .hero-facts > div:last-child { grid-column: 1 / -1; }
  .seats { grid-column: 1 / span 5; grid-row: 5; margin-top: 2.25rem; padding: 1.6rem 1.5rem 1.5rem; }
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: clamp(3rem, 6vw, 5rem); }
  .statement { grid-column: 1 / span 7; }
  .audience { grid-column: 9 / -1; align-self: end; }
  .takeaways { margin-left: clamp(0rem, 8vw, 8rem); }
  .timeline, .faq-list { max-width: 58rem; margin-left: auto; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding: 1.4rem 1.5rem 1.6rem; border-left: 1px solid var(--line); }
  .fact:nth-child(1), .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact-wide { grid-column: span 2; }
  .register-grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .register-intro { position: sticky; top: 2rem; }
  .page-admin .admin { max-width: var(--maxw); }
  .portrait img { transition: transform 1.2s var(--ease-out-expo); }
  .lecturer:hover .portrait img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Consent bar (analytics) ---------------------------------------------- */
.consent-bar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  background: var(--ink); color: var(--paper);
  padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 50px -20px oklch(20% 0.02 50 / .5);
  animation: consent-in .6s var(--ease-out-expo);
}
.consent-bar[hidden] { display: none; }
@keyframes consent-in { from { transform: translateY(100%); } }
.consent-text h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; margin-bottom: .4rem; }
.consent-text p { font-size: .88rem; line-height: 1.5; color: var(--ink-faint); }
.consent-text a { color: var(--paper); font-weight: 700; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.consent-actions .btn { padding: .9em 1em; }
/* reject is exactly as prominent and easy as accept */
.btn-ghost-light { background: transparent; color: var(--paper); border-color: var(--paper); }
@media (hover: hover) { .btn-ghost-light:hover { background: var(--paper); color: var(--ink); } }
.consent-open .sticky-cta { display: none; }

.link-button {
  font: inherit; color: var(--ink); font-weight: 600; text-decoration: underline;
  background: none; border: 0; padding: .4rem 0; cursor: pointer;
}

@media (min-width: 640px) {
  .consent-bar {
    left: auto; right: 1.5rem; bottom: 1.5rem; max-width: 30rem;
    border-radius: var(--radius); padding: 1.5rem;
  }
}
