
/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  --bg:      light-dark(oklch(95.9% 0.009 85), oklch(21.8% 0 none));
  --fg:      light-dark(oklch(17.8% 0 none),   oklch(89.8% 0.010 87));
  --fg-soft: light-dark(oklch(32.1% 0 none),   oklch(77.4% 0.010 87));
  --muted:   light-dark(oklch(51% 0 none),     oklch(62.7% 0 none));
  --faint:   light-dark(oklch(62% 0 none),     oklch(50% 0 none));
  --border:  light-dark(oklch(84.9% 0.010 87), oklch(32.1% 0 none));
  --ink:     light-dark(oklch(21.8% 0 none),   oklch(89.8% 0.010 87));
  --signal:  light-dark(oklch(61.7% 0.196 35), oklch(70.4% 0.192 37));
  /* dark bands stay dark in both modes — never a large light block */
  --band:    light-dark(oklch(21.8% 0 none), oklch(27% 0 none));
  --band-fg: oklch(95.9% 0.009 85);

  --mono: 'Courier Prime', 'Courier New', monospace;
  --serif: 'EB Garamond', Garamond, Georgia, serif;
  --hand: Caveat, 'Comic Sans MS', cursive;

  /* fluid sizes: rem + vw middle term, max ≤ 2.5 × min */
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --section-space: clamp(3rem, 2rem + 3vw, 5rem);
  --step-h1: clamp(2.6rem, 1.6rem + 3.9vw, 5.55rem);
  --step-h2: clamp(1.95rem, 1.5rem + 1.85vw, 3.05rem);
  --step-h3: clamp(1.4rem, 1.2rem + .9vw, 1.8rem);

  --frame: 1360px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  interpolate-size: allow-keywords;
  scrollbar-gutter: stable;
  scroll-padding-block-start: 2rem;
  text-wrap: pretty;
  overflow-wrap: break-word;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
@media (any-pointer: coarse) { :root { overscroll-behavior-y: auto; } }
@view-transition { navigation: auto; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-inline-size: 0; }
body {
  min-height: 100svh;
  padding-block: 2.5rem 4rem;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px));
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 1.0625rem;
  line-height: 1.65;
}
h1, h2, h3, h4 { text-wrap: balance; font-weight: 400; }
img, svg, canvas { display: block; max-inline-size: 100%; block-size: auto; }
input, button { font: inherit; }
input { font-size: max(16px, 1rem); }
button, .btn { touch-action: manipulation; user-select: none; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: max(2px, 0.08em) solid var(--signal); outline-offset: 0.25em; }

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: var(--muted); }
}

/* ---------- frame ---------- */
.frame {
  max-inline-size: var(--frame);
  margin-inline: auto;
  border: 1px solid var(--border);
  overflow: clip;
}
.pad { padding-inline: var(--gutter); }

/* ---------- top bar ---------- */
/* Same edges as the hero: brand on the left gutter, CTA on the right gutter. */
.topbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(.75rem, 2.5vw, 2.5rem);
  min-block-size: 4.5rem;
  border-block-end: 1px solid var(--border);
  font-size: .82rem;
}
.brand { color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand::before { content: '■'; color: var(--signal); font-size: .7em; vertical-align: .12em; margin-inline-end: .5rem; }
.nav { display: flex; gap: clamp(1rem, 2vw, 1.6rem); }
.nav a { display: flex; flex: none; align-items: center; min-block-size: 2.75rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top-right { display: flex; gap: .5rem; align-items: center; }
.pill { color: var(--fg); text-decoration: none; border: 1px solid var(--ink); padding: .4rem .85rem .34rem; white-space: nowrap; }
.theme-toggle { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .theme-toggle:hover, .brand:hover { color: var(--fg); }
  .pill:hover { background: var(--ink); color: var(--bg); }
}
/* narrow: brand + actions on one row, links in a scrollable row below */
@media (width < 60rem) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(4rem, auto) auto; row-gap: 0; column-gap: .75rem; }
  .nav {
    grid-column: 1 / -1; grid-row: 2;
    margin-inline: calc(-1 * var(--gutter)); padding: .25rem var(--gutter);
    border-block-start: 1px solid var(--border);
    overflow-x: auto; scrollbar-width: none;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-inline: contain;
    animation: nav-edges linear;
    animation-timeline: scroll(self inline);
    mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
  }
  .brand { padding-block: .7rem; }
  .nav::-webkit-scrollbar { display: none; }
}
@media (width < 24rem) {
  .topbar { column-gap: .5rem; }
  .top-right { gap: .25rem; }
  .brand { font-size: .75rem; }
  .pill { font-size: .7rem; padding-inline: .4rem; }
  .theme-toggle { inline-size: 2rem; }
}

@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes nav-edges {
  from { --fade-start: 0px; --fade-end: 2.5rem; }
  10%, 90% { --fade-start: 2.5rem; --fade-end: 2.5rem; }
  to { --fade-start: 2.5rem; --fade-end: 0px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; gap: .6rem; align-items: center; justify-content: center;
  padding: .7rem 1.15rem .62rem;
  border: 1px solid var(--ink); text-decoration: none; font-size: .9rem;
}
.btn-solid { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--signal); border-color: var(--signal); color: oklch(100% 0 none); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
  .btn:active { transform: scale(0.97); }
  .pill, .theme-toggle { transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
  :is(.pill, .theme-toggle):active { transform: scale(0.95); }
}

/* ---------- hero ---------- */
/* Personal, not corporate: a first-person greeting, one headline, one real photo of a workshop. */
.hero { border-block-end: 1px solid var(--border); }
.hero-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2.5vw, 4rem); }

.hello { display: flex; align-items: center; gap: .7rem; margin-block-end: 1.8rem; font-size: .9rem; color: var(--muted); }
.hello b { color: var(--fg); font-weight: 400; }
.avatar { flex: none; inline-size: 2.25rem; block-size: 2.25rem; border-radius: 50%; object-fit: cover; outline: 1px solid var(--border); outline-offset: -1px; }

.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); align-items: end; gap: 2rem clamp(2rem, 4vw, 4rem); }
@media (width < 60rem) { .hero-row { grid-template-columns: 1fr; } }
h1 { font-family: var(--serif); font-size: var(--step-h1); line-height: 1.02; letter-spacing: -.015em; }
h1 em, .title em, .signup h2 em { color: var(--signal); }
.cursor { display: inline-block; inline-size: .38em; block-size: .72em; background: var(--ink); margin-inline-start: .12em; vertical-align: -.02em; }
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1s step-end infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}
.lead { color: var(--fg-soft); font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-block-start: 1.6rem; }
.quiet { font-size: .9rem; color: var(--muted); }

.hero-photo { display: grid; border-block-start: 1px solid var(--border); }
.hero-photo > * { grid-area: 1 / 1; }
.hero-photo img { inline-size: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%; }
@media (width >= 48rem) { .hero-photo img { aspect-ratio: 21 / 8; } }
.hero-photo figcaption {
  align-self: end; justify-self: start; margin: clamp(.75rem, .2rem + 2.2vw, 3rem);
  padding: .2rem .6rem; text-wrap: balance; background: var(--band); color: var(--band-fg); font-size: .72rem;
}

.hero-photo { overflow: clip; }
@media (prefers-color-scheme: dark) { :root:not([style*="light"]) .hero-photo img { filter: brightness(.82); } }
:root[style*="dark"] .hero-photo img { filter: brightness(.82); }

/* idle motion: text settles in once, the photo drifts slowly forever */
@media (prefers-reduced-motion: no-preference) {
  .hello, .hero-row h1, .hero-side { animation: rise 900ms var(--ease-out) both; }
  .hero-row h1 { animation-delay: 80ms; }
  .hero-side { animation-delay: 220ms; }
  .hero-photo figcaption { animation: rise 900ms var(--ease-out) 500ms both; }
  @keyframes rise { from { opacity: 0; translate: 0 .6rem; } }

  .hero-photo img { animation: drift 28s ease-in-out infinite alternate; transform-origin: 48% 45%; }
  @keyframes drift {
    from { scale: 1; translate: 0 0; }
    to   { scale: 1.06; translate: -1.2% -.8%; }
  }
}

/* ---------- logos ---------- */
.logos { container-type: inline-size; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.2rem; padding-block: 1.3rem; border-block-end: 1px solid var(--border); }
.logo-row { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem clamp(1rem, .6rem + 1.2vw, 2rem); align-items: center; }
@container (width > 50rem) { .logo-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
@container (width > 72rem) { .logo-row { flex-basis: 0; } }
.logo-row img { inline-size: 100%; max-inline-size: 8.5rem; block-size: clamp(1.4rem, 1.2rem + .5vw, 1.7rem); object-fit: contain; object-position: center; opacity: .75; filter: grayscale(1); }
@media (prefers-color-scheme: dark) { :root:not([style*="light"]) .logo-row img { filter: grayscale(1) invert(1); } }
:root[style*="dark"] .logo-row img { filter: grayscale(1) invert(1); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-space); border-block-end: 1px solid var(--border); }
.label { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.label .n { color: var(--signal); margin-inline-end: .6rem; }
.kicker { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.sec-head { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: end; margin-block-end: 2.6rem; }
.sec-head > div { flex: 1 1 24rem; }
.sec-head > p { flex: 1 1 20rem; color: var(--fg-soft); font-size: .95rem; max-inline-size: 32rem; }
.title { font-family: var(--serif); font-size: var(--step-h2); line-height: 1.08; letter-spacing: -.015em; margin-block-start: .9rem; }
.note-row { margin-block-start: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: .88rem; color: var(--fg-soft); }

/* hairline grid: 1px gaps on a border-coloured background give clean dividers at any wrap */
.ruled { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.ruled > * { background: var(--bg); }

/* learning paths: intrinsic grid + subgrid so titles, lists and prices line up */
.paths { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.path { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: .7rem; padding: 1.6rem 1.4rem 1.4rem; }
.path h4 { font-family: var(--serif); font-size: var(--step-h3); line-height: 1.15; }
.path > p { font-size: .86rem; color: var(--fg-soft); }
.path ul { font-size: .82rem; color: var(--fg-soft); border-block-start: 1px dashed var(--border); padding-block-start: .7rem; }
.path li::before { content: '→ '; color: var(--faint); }
.price { align-self: baseline; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.price b { color: var(--fg); font-weight: 400; font-size: 1.1rem; }
.go { font-size: .88rem; text-decoration: none; border-block-start: 1px solid var(--border); padding-block-start: .8rem; display: flex; justify-content: space-between; }
@media (hover: hover) and (pointer: fine) { .go:hover { color: var(--signal); } }

/* curriculum: self-wrapping sidebar — the same pattern subpages can use */
.with-sidebar { display: flex; flex-wrap: wrap; gap: 3rem 4rem; }
.with-sidebar > :first-child { flex: 999 1 0; min-inline-size: 55%; }
.with-sidebar > :last-child { flex: 1 1 20rem; }
.lessons-list { container-type: inline-size; border-block-start: 1px solid var(--border); }
.lessons-list li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: baseline; padding-block: 1.15rem; border-block-end: 1px solid var(--border); }
.lessons-list .num { font-size: .8rem; color: var(--signal); font-variant-numeric: tabular-nums; }
.lessons-list .topic { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.lessons-list h4 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.lessons-list .len { font-size: .76rem; color: var(--muted); white-space: nowrap; }
@container (width < 34rem) {
  .lessons-list li { grid-template-columns: 2.2rem 1fr; }
  .lessons-list .len { display: none; }
}
.course-card { position: sticky; inset-block-start: 1.5rem; align-self: start; border: 1px solid var(--ink); padding: 1.4rem 1.3rem; }
.course-card h3 { font-family: var(--serif); font-size: var(--step-h3); line-height: 1.15; margin-block: .3rem 1rem; }
.course-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; border-block-start: 1px dashed var(--border); font-size: .84rem; }
.course-card dt { color: var(--muted); }
.course-card dd { font-variant-numeric: tabular-nums; }
.seatbar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-block-start: 1rem; }
.seatbar i { aspect-ratio: 1; background: var(--ink); }
.seatbar i.free { background: transparent; outline: 1px solid var(--border); outline-offset: -1px; }
.seats { margin-block: .4rem 1.2rem; font-size: .74rem; color: var(--muted); }
.course-card .btn { inline-size: 100%; }

/* slides library */
#slides { container-type: inline-size; }
.decks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem clamp(1.1rem, .4rem + 1.6vw, 2rem); }
@container (width > 32rem) { .decks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (width > 56rem) { .decks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.deck { text-decoration: none; }
.thumb { aspect-ratio: 16 / 9; border: 1px solid var(--border); padding: .8rem .9rem; display: flex; flex-direction: column; justify-content: space-between; }
.t-num { font-size: .62rem; color: var(--faint); letter-spacing: .14em; }
.t-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; line-height: 1.2; }
.t-title.huge { font-family: var(--serif); font-size: 2.4rem; line-height: 1; text-transform: none; letter-spacing: 0; }
.t-sig { font-size: .62rem; color: var(--signal); }
.thumb.dark { background: var(--band); color: var(--band-fg); border-color: var(--band); }
.deck-meta { margin-block-start: .55rem; font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; }
.deck-meta span { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .deck:hover .thumb { translate: 0 -3px; border-color: var(--ink); } }
@media (prefers-reduced-motion: no-preference) { .thumb { transition: translate 200ms var(--ease-out), border-color 200ms var(--ease-out); } }

/* voices + about: two columns that wrap on their own */
.split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); border-inline: 0; border-block-start: 0; }
.split > div { padding-block: var(--section-space); padding-inline: var(--gutter); }
.bigquote { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.3rem); line-height: 1.15; margin-block: 1.2rem 1.4rem; }
.bigquote::before { content: '„'; display: block; font-family: var(--hand); font-size: 4rem; line-height: .5; color: var(--signal); margin-block-end: .5rem; }
.full { margin-block: -.4rem 1.2rem; font-size: .84rem; color: var(--muted); }
.full summary { inline-size: fit-content; padding-block: .4rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; list-style: none; }
.full summary::-webkit-details-marker { display: none; }
.full summary::before { content: '+ '; color: var(--signal); }
.full[open] summary::before { content: '− '; }
.full p { margin-block-start: .7rem; max-inline-size: 34rem; line-height: 1.6; }
.full::details-content { block-size: 0; overflow: clip; }
.full[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: no-preference) {
  .full::details-content { transition: block-size 250ms var(--ease-out), content-visibility 250ms allow-discrete; }
}
.who { font-size: .84rem; }
.who span { display: block; color: var(--muted); font-size: .76rem; }
.stars { color: var(--signal); font-weight: 400; letter-spacing: .1em; margin-inline-start: .4rem; }
.voice-small { margin-block-start: 2.2rem; padding-block-start: 1.4rem; border-block-start: 1px dashed var(--border); }
.voice-small blockquote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin-block-end: .8rem; }
.about-head { display: flex; gap: 1.2rem; align-items: center; margin-block: 1.2rem; }
.about-head img { flex: none; inline-size: 5.5rem; block-size: 5.5rem; border-radius: 50%; object-fit: cover; outline: 1px solid var(--border); outline-offset: -1px; }
.about-head b { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; display: block; line-height: 1; }
.about-head i { color: var(--muted); font-size: .85rem; }
.about > p { font-size: .9rem; color: var(--fg-soft); }
.principles { margin-block-start: 1.3rem; border-block-start: 1px dashed var(--border); }
.principles li { padding-block: .5rem; border-block-end: 1px dashed var(--border); font-size: .84rem; color: var(--fg-soft); }
.principles strong { color: var(--fg); font-weight: 400; }
.principles strong::before { content: '■ '; color: var(--signal); font-size: .7em; vertical-align: .1em; }

/* teams */
.teams { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.team { padding: 1.2rem 1.1rem; }
.team h4 { font-size: .95rem; margin-block: .35rem .3rem; }
.team p:last-child { font-size: .78rem; color: var(--muted); }

/* newsletter */
.signup { display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; align-items: end; background: var(--band); color: var(--band-fg); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.signup > * { flex: 1 1 22rem; }
.signup .label { color: var(--faint); }
.signup h2 { font-family: var(--serif); font-size: clamp(1.95rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.015em; margin-block-start: .9rem; }
.signup p { font-size: .88rem; opacity: .75; margin-block-start: .8rem; }
.signup form { display: flex; flex-wrap: wrap; border: 1px solid var(--band-fg); }
.signup input { flex: 1 1 12rem; background: transparent; border: 0; color: var(--band-fg); padding: .85rem 1rem; outline-offset: -3px; }
.signup input::placeholder { color: var(--faint); }
.signup input:user-invalid { box-shadow: inset 0 -2px 0 var(--signal); }
.signup button { flex: 1 0 auto; background: var(--band-fg); color: var(--band); border: 0; padding: .85rem 1.2rem; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .signup button:hover { background: var(--signal); color: oklch(100% 0 none); } }
.signup .btn-solid { background: var(--band-fg); border-color: var(--band-fg); color: var(--band); }
.signup .btn-solid:focus-visible { outline-color: var(--band-fg); }
@media (hover: hover) and (pointer: fine) { .signup .btn-solid:hover { background: var(--signal); border-color: var(--signal); color: oklch(100% 0 none); } }
.signup small { display: block; margin-block-start: .7rem; font-size: .72rem; opacity: .6; }
.lessons { margin-block-start: 1.2rem; font-size: .8rem; opacity: .85; columns: 2 10rem; max-inline-size: 30rem; }
.lessons li::before { content: '□ '; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding-block: .7rem; font-size: .76rem; color: var(--faint); }
footer a { display: inline-block; padding-block: .3rem; color: var(--faint); }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: var(--fg); } }

a:active, button:active, summary:active { opacity: .75; }
