/* ==========================================================================
   Deepfield Physics — website stylesheet
   Deepfield design system, Night theme: midnight navy, brass as the single
   accent, square corners, hairlines instead of shadows, three type faces.
   Mobile first. No inline styles anywhere (the CSP forbids them).
   ========================================================================== */

/* Self-hosted type faces (from @fontsource, SIL Open Font License; licences in ../fonts/). */
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-latin-500-italic.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:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-latin-500-normal.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:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/cormorant-garamond-latin-600-normal.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:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-latin-ext-500-italic.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/cormorant-garamond-latin-ext-500-normal.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/cormorant-garamond-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-mono-latin-400-normal.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:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-mono-latin-500-normal.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:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/source-serif-4-latin-400-italic.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:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/source-serif-4-latin-400-normal.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:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/source-serif-4-latin-600-normal.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:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/source-serif-4-latin-ext-400-italic.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/source-serif-4-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/source-serif-4-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}

:root {
  --bg-void: #070b16;
  --bg: #0e1629;
  --surface: #1a2642;
  --hairline: #2c3a5c;
  --ink: #f2ede3;
  --ink-soft: #d3d9e4;
  --ink-muted: #a3aec4;
  --accent: #c9a55c;
  --accent-hover: #e0c07a;
  --on-accent: #070b16;
  --redshift: #d07a4e;
  --nu: #8cbeff;

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --font-body: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 128px);
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Type roles ---------- */

.kicker {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; line-height: 1.5;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); line-height: 1.06; }
h3 { font-weight: 600; font-size: 1.625rem; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.9375rem; line-height: 1.55; }
.label {
  font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.6; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted);
}
.prose p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.78125rem; line-height: 1.3;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; text-align: center;
  border: 1px solid var(--accent); border-radius: 2px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-fill { background: var(--accent); color: var(--on-accent); }
.btn-fill:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: rgba(201, 165, 92, 0.14); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 0.75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Placeholders: anything still to be filled in before launch ---------- */

[data-todo] { outline: 2px dashed var(--redshift); outline-offset: 4px; }
[data-todo]:focus-visible { outline: 2px solid var(--accent); }
a[data-todo]::after, .todo::before {
  content: "TODO"; display: inline-block; margin-left: 8px; padding: 1px 6px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.625rem; line-height: 1.5; letter-spacing: 0.12em;
  background: var(--redshift); color: var(--on-accent); border-radius: 2px; vertical-align: middle;
}
.todo::before { margin: 0 8px 0 0; }
p > .todo, li > .todo { margin-inline: 4px; }
.todo {
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--redshift);
  outline: 1px dashed var(--redshift); outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(163, 174, 196, 0.18);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 18px; height: 18px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1; letter-spacing: 0.24em; text-transform: uppercase; }
.brand-sub { font-family: var(--font-mono); font-size: 0.59375rem; line-height: 1; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-muted); }

.nav-desktop { display: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-muted);
}
.nav-links a:hover { color: var(--ink); }

.nav-mobile { position: static; }
.nav-mobile summary {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  cursor: pointer; list-style: none; border: 1px solid var(--hairline); border-radius: 2px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.5; fill: none; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-void); border-bottom: 1px solid var(--hairline);
  padding: 8px var(--gutter) 20px;
}
.nav-mobile .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(44, 58, 92, 0.6); font-size: 0.8125rem; }

@media (min-width: 900px) {
  .nav-mobile { display: none; }
  .nav-desktop { display: block; margin-right: 20px; }
  .nav-desktop .nav-links { display: flex; gap: 28px; }
  .nav-desktop .nav-links a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .nav-desktop { margin-right: 12px; }
  .nav-desktop .nav-links { gap: 18px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-void); }
.hero-sky { position: absolute; inset: 0; z-index: -2; }
.hero-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(7, 11, 22, 0.72) 0%, rgba(7, 11, 22, 0.5) 38%, rgba(14, 22, 41, 0.86) 82%, var(--bg) 100%),
    radial-gradient(120% 90% at 50% 40%, rgba(7, 11, 22, 0) 35%, rgba(7, 11, 22, 0.7) 100%);
}
.hero-inner {
  min-height: min(92svh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(96px, 16vw, 180px) clamp(40px, 6vw, 64px);
}
.hero h1 { font-size: clamp(2.625rem, 7.6vw, 5.75rem); line-height: 1; letter-spacing: -0.008em; max-width: 17ch; }
.nowrap { white-space: nowrap; }
.hero .lede { margin: 28px 0 36px; max-width: 56ch; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: clamp(48px, 8vw, 88px);
}
.hero-meta .coords { display: none; text-align: right; }
@media (min-width: 700px) { .hero-meta .coords { display: block; } }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); border-top: 1px solid var(--hairline); }
.section-void { background: var(--bg-void); }
.section-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 780px; }
.section-head h2 + .lede { margin-top: 22px; }

.split { display: grid; gap: clamp(36px, 6vw, 80px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split-wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split-video { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; }
}

/* ---------- Lecture ---------- */

.video { container-type: inline-size; position: relative; aspect-ratio: 16 / 9; background: var(--bg-void); border: 1px solid var(--hairline); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 4vw, 40px); text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate;
  outline-offset: -6px;
}
.video-poster:hover { color: var(--ink); }
.video-poster img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.video-poster::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 11, 22, 0.78), rgba(7, 11, 22, 0.62));
}
.video-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.125rem, 6cqi, 2.75rem); line-height: 1.08; max-width: 20ch; }
.video-title small { display: block; margin-bottom: 0.5em; font-family: var(--font-mono); font-size: clamp(0.625rem, 1.4vw, 0.75rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.video-poster[data-todo]::after { position: absolute; top: 10px; right: 10px; margin: 0; }
@media (max-width: 520px) { .video-title small { display: none; } .video-play .disc { width: 44px; height: 44px; } }
.video-play {
  display: inline-flex; align-items: center; gap: 14px; align-self: flex-start;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.78125rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.video-play .disc {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none;
  background: var(--accent); border-radius: 999px; transition: background-color 0.25s ease;
}
.video-poster:hover .disc { background: var(--accent-hover); }
.video-play svg { width: 18px; height: 18px; fill: var(--on-accent); margin-left: 3px; }
.video-note { margin-top: 14px; }
.video-status { margin-top: 10px; color: var(--redshift); font-family: var(--font-mono); font-size: 0.8125rem; }
.video-status:empty { display: none; }
.statement { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(1.875rem, 4.6vw, 3rem); line-height: 1.15; }
.statement em { color: var(--accent); }

/* ---------- Ticked list (who it is for) ---------- */

.signs { border-top: 1px solid var(--hairline); }
.signs li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.signs .num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); padding-top: 7px; }
.signs strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.signs span.detail { display: block; margin-top: 4px; color: var(--ink-muted); }

/* ---------- Four tiles (how it works) ---------- */

.tiles { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tile { border-top: 1px solid var(--accent); padding-top: 22px; }
.tile .roman { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1; color: var(--accent); margin-bottom: 16px; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--ink-muted); }

/* ---------- Facts (definition lists) ---------- */

.facts { border-top: 1px solid var(--hairline); }
.facts > div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.7; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); padding-top: 4px; }
.facts dd { color: var(--ink); }
.facts dd .sub { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--ink-muted); }
@media (min-width: 560px) { .facts > div { grid-template-columns: 150px 1fr; } }

.local-time { color: var(--accent); }

/* ---------- Fee panel ---------- */

.panel { background: var(--surface); border: 1px solid var(--hairline); padding: clamp(24px, 4vw, 36px); }
.panel .label { margin-bottom: 10px; }
.price { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 8vw, 4.25rem); line-height: 1; }
.price-note { margin-top: 8px; color: var(--ink-soft); }
.panel hr { border: 0; border-top: 1px solid var(--hairline); margin: 24px 0; }
.panel ul li { position: relative; padding-left: 18px; margin-top: 10px; color: var(--ink-soft); }
.panel ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--accent); border-radius: 999px; }
.panel .btn { width: 100%; margin-top: 28px; }
@media (min-width: 900px) { .panel-sticky { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- Curriculum ---------- */

.weeks { display: grid; gap: 16px; }
@media (min-width: 640px) { .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .weeks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.week { display: flex; flex-direction: column; border: 1px solid var(--hairline); background: rgba(7, 11, 22, 0.45); padding: 22px 22px 24px; }
.week .wk { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.week .wk .date { color: var(--ink-muted); }
.week h3 { margin: 8px 0 0; font-weight: 500; font-size: 1.75rem; line-height: 1.1; }
.week .dgw { height: 132px; margin: 18px 0; display: flex; align-items: center; justify-content: center; }
.week ul { margin-top: auto; }
.week li { position: relative; padding-left: 16px; margin-top: 6px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-muted); }
.week li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; background: var(--accent); border-radius: 999px; }
.after-grid { margin-top: 28px; }

.dg { width: 100%; height: 100%; max-width: 280px; overflow: visible; }
.dg line, .dg polyline, .dg path, .dg rect, .dg circle, .dg polygon { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dg .ax { stroke: var(--hairline); stroke-width: 1.5; }
.dg .main { stroke: var(--ink); }
.dg .soft { stroke: var(--ink-muted); stroke-width: 1.6; }
.dg .acc { stroke: var(--accent); }
.dg .nu { stroke: var(--nu); }
.dg .fill { fill: rgba(201, 165, 92, 0.12); stroke: none; }
.dg .dot { fill: var(--ink); stroke: none; }
.dg text { font-family: var(--font-body); font-size: 20px; fill: var(--ink-muted); stroke: none; }
.dg .acc-t { fill: var(--accent); }

/* ---------- Tasters ---------- */

.dates { display: grid; gap: 16px; }
@media (min-width: 560px) { .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.date-card { border: 1px solid var(--hairline); padding: 24px; background: rgba(7, 11, 22, 0.45); }
.date-card .day { font-family: var(--font-display); font-weight: 500; font-size: 2.125rem; line-height: 1.05; margin: 6px 0 10px; }
.date-card .when { color: var(--ink-soft); }
.date-card .sub { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--ink-muted); }
.below { margin-top: 28px; }

/* ---------- Mentor ---------- */

.mentor-photo { max-width: 440px; }
.mentor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--hairline); background: var(--surface); }
.mentor-photo figcaption { margin-top: 12px; font-size: 0.9375rem; font-style: italic; color: var(--ink-muted); }
.mentor-role { margin: 8px 0 28px; }
.mentor .facts { margin-top: 32px; }

/* ---------- Child safety ---------- */

.safety-list { margin-top: 28px; border-top: 1px solid var(--hairline); }
.safety-list li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid var(--hairline); color: var(--ink-soft); }
.safety-list li::before {
  content: ""; position: absolute; left: 2px; top: 1.72em; width: 12px; height: 12px;
  background: var(--accent);
  clip-path: polygon(50% 0, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0 50%, 46% 46%);
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4375rem; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-weight: 400; font-size: 1.125rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent-hover); }
.faq .answer { padding: 0 0 24px; max-width: 64ch; color: var(--ink-soft); }

/* ---------- Apply ---------- */

.apply { position: relative; isolation: isolate; background: var(--bg-void); }
.apply::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.4; pointer-events: none;
  background-size: 260px 260px, 260px 260px, 260px 260px, 260px 260px, 520px 520px, 520px 520px, 520px 520px;
  background-image:
    radial-gradient(circle at 17px 33px, #f2ede3 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 160px 58px, #f2ede3 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 48px 140px, #b9c7e6 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 196px 201px, #f2ede3 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 60px 80px, #e2b07a 0 1.1px, transparent 2px),
    radial-gradient(circle at 300px 40px, #f2ede3 0 1.2px, transparent 2.1px),
    radial-gradient(circle at 390px 420px, #f2ede3 0 1.3px, transparent 2.2px);
}
.apply h2 { font-size: clamp(2.5rem, 6.6vw, 4.5rem); line-height: 1.02; }
.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: clamp(36px, 6vw, 56px); counter-reset: step; }
.steps li { border-top: 1px solid var(--hairline); padding-top: 20px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); margin-bottom: 12px; }
.steps strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin-bottom: 6px; }
.steps span { color: var(--ink-muted); }
.apply .fallback { margin-top: 28px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-void); border-top: 1px solid var(--hairline); padding-top: clamp(48px, 7vw, 72px); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-bottom: 40px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-col .label { margin-bottom: 12px; }
.footer-col li { margin-top: 2px; }
.footer-col li a { display: inline-block; padding: 8px 0; }
.footer-col li .todo { display: inline-block; margin: 8px 0; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col a, .footer-col li { font-size: 0.9375rem; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-block: 22px 36px; border-top: 1px solid var(--surface);
}

/* ---------- Simple text pages (privacy, 404) ---------- */

.page { padding-block: clamp(56px, 9vw, 104px) var(--section); }
.page h1 { font-size: clamp(2.5rem, 6.4vw, 4rem); line-height: 1.04; margin-bottom: 20px; }
.page h2 { font-size: clamp(1.625rem, 3.6vw, 2.125rem); font-weight: 600; margin: 2em 0 0.5em; }
.page p, .page li { color: var(--ink-soft); }
.page p + p { margin-top: 1em; }
.page ul.bullets { margin: 0.75em 0 0; }
.page ul.bullets li { position: relative; padding-left: 20px; margin-top: 8px; }
.page ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--accent); border-radius: 999px; }
.page .notice { margin: 24px 0; padding: 16px 20px; border: 1px dashed var(--redshift); color: var(--ink-soft); }

/* ---------- Motion: gentle reveal, only when JS opts in and motion is welcome ---------- */

.reveal-ready { opacity: 0; transform: translateY(20px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-ready.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
  .btn, .video-play .disc { transition: none; }
}

@media print {
  .site-header, .hero-sky, .video, .btn { display: none; }
  .reveal-ready { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Small spacing helpers ---------- */

.section-gap { margin-top: 22px; }
.list-label { margin-bottom: 14px; }
.faq-title { margin-bottom: clamp(28px, 5vw, 44px); }

/* ---------- Forms (tasters, apply, waitlist, booking, payment) ---------- */

.form { margin-top: 28px; }
.form h2 { font-size: clamp(1.5rem, 3.4vw, 1.875rem); font-weight: 600; margin: 1.6em 0 0.4em; }
.field { margin-top: 22px; }
.field label, .zone-form > label, .group-label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.field .optional { text-transform: none; letter-spacing: 0.02em; font-family: var(--font-body); font-size: 0.875rem; font-style: italic; }
.field input, .field select, .field textarea, .zone-form select {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--bg-void); color: var(--ink); border: 1px solid #5d6c8f; border-radius: 2px;
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select, .zone-form select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .zone-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); opacity: 0.7; }
.hint { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 26px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); }

.choices { display: grid; gap: 12px; margin-top: 4px; }
@media (min-width: 560px) { .choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: block; padding: 16px 18px; border: 1px solid #5d6c8f; border-radius: 2px; background: rgba(7, 11, 22, 0.45); }
.choice strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.choice small { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--ink-muted); }
.choice input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(201, 165, 92, 0.1); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:disabled + span { opacity: 0.45; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
fieldset > legend { padding: 0; }

/* Booking: time slots */
.zone-form { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--hairline); background: rgba(7, 11, 22, 0.45); }
.inline-field { display: flex; gap: 10px; }
.inline-field select { flex: 1; min-width: 0; }
.slot-day { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.slot-day legend { float: left; width: 100%; margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; }
.slot-grid { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.slot { position: relative; display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 8px 10px; border: 1px solid #5d6c8f; border-radius: 2px; font-family: var(--font-mono); font-size: 0.9375rem; text-align: center; }
.slot .slot-alt { font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--ink-muted); }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot input:checked + span .slot-alt { color: var(--on-accent); }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.slot:hover > span { border-color: var(--accent); }

.pay-panel { margin-top: 24px; }
.pay-panel .price { margin-bottom: 14px; }
button.btn { cursor: pointer; font-family: var(--font-mono); }
button.btn[disabled] { opacity: 0.6; cursor: progress; }
.page .notice[role="alert"] { border-style: solid; border-color: var(--redshift); }

/* ---------- Testimonial ---------- */

.quote { margin-top: 8px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(1.625rem, 3.8vw, 2.375rem); line-height: 1.25; }
.quote figcaption { margin-top: 22px; }
.quote-note { margin-top: 26px; }

.page .pay-panel .price { margin-top: 0; }
.page .pay-panel ul { margin-top: 0; }

/* ---------- Projects page ---------- */

.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }

.projects-hero, .page-hero { padding-block: clamp(64px, 11vw, 136px) clamp(48px, 8vw, 96px); background: var(--bg-void); }
.projects-hero h1, .page-hero h1 { font-size: clamp(2.75rem, 7.6vw, 5.5rem); line-height: 1; letter-spacing: -0.008em; max-width: 14ch; margin-bottom: 28px; }

.steps-seven { margin-bottom: clamp(48px, 8vw, 80px); }
@media (min-width: 1000px) { .steps-seven { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px; } .steps-seven strong { font-size: 1.3125rem; } }

.try-head { margin-bottom: clamp(28px, 5vw, 48px); }
.try-head .section-head { margin-bottom: 0; }
.prose code, .try-notes code { font-family: var(--font-mono); font-size: 0.875em; color: var(--accent); }
.try-notes { display: grid; gap: 12px; margin-top: 20px; max-width: 72ch; }

/* Notebook cell */
.nb-cell { border: 1px solid var(--hairline); background: var(--bg); }
.nb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--hairline); background: var(--surface); }
.nb-prompt { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--nu); min-width: 7ch; }
.nb-cell.is-running .nb-prompt { color: var(--accent); }
.nb-file { margin-right: auto; text-transform: none; letter-spacing: 0.04em; }
.nb-actions { display: flex; gap: 8px; }
.nb-actions .btn { min-height: 40px; padding: 8px 14px; }
.nb-actions .btn[hidden] { display: none; }
.nb-key { font-size: 0.875rem; letter-spacing: 0; opacity: 0.75; }
.nb-cell:not(.is-live) .nb-js { display: none; }

.nb-editor { display: grid; position: relative; }
.nb-shade, .nb-code {
  grid-area: 1 / 1; margin: 0; padding: 18px 16px 20px;
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6; tab-size: 4;
  white-space: pre; overflow-wrap: normal; border: 0; border-radius: 0;
}
.nb-shade { overflow: hidden; color: var(--ink-soft); pointer-events: none; }
.nb-shade code { font: inherit; }
.nb-code {
  width: 100%; min-width: 0; resize: none; overflow-x: auto; overflow-y: hidden;
  background: transparent; color: var(--ink-soft); caret-color: var(--accent);
}
.nb-cell.is-live .nb-code { color: transparent; }
.nb-cell:not(.is-live) .nb-shade { display: none; }
.nb-code::selection { background: rgba(201, 165, 92, 0.35); color: transparent; }
.nb-cell:not(.is-live) .nb-code::selection { color: var(--ink); }
.nb-code:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tok-kw { color: var(--accent); }
.tok-bi { color: #e0c07a; }
.tok-str { color: #e9a983; }
.tok-num { color: var(--nu); }
.tok-com { color: var(--ink-muted); font-style: italic; }
.tok-fn { color: var(--ink); font-weight: 500; }

.nb-out { border-top: 1px solid var(--hairline); background: var(--bg-void); padding: 14px 16px 16px; }
.nb-out-label { margin-bottom: 8px; }
.nb-output { display: grid; gap: 12px; }
.nb-output:empty { display: none; }
.nb-output pre { margin: 0; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.nb-output .nb-warn { color: var(--ink-muted); }
.nb-output .nb-error { color: var(--redshift); }
.nb-output img { width: 100%; max-width: 760px; height: auto; }
.nb-status { margin-top: 10px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-muted); }
.nb-status:empty { display: none; }
.nb-cell.is-running .nb-status { color: var(--accent); }

/* Project menu */
.level-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 24px; }
.level-filter[hidden] { display: none; }
.level-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.level-buttons button {
  min-height: 44px; padding: 8px 16px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: var(--ink-muted); border: 1px solid var(--hairline); border-radius: 2px;
}
.level-buttons button:hover { color: var(--ink); border-color: var(--accent); }
.level-buttons button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.projects { display: grid; gap: 16px; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project { display: flex; flex-direction: column; border: 1px solid var(--hairline); background: rgba(7, 11, 22, 0.45); padding: 22px 22px 20px; }
.project[hidden] { display: none; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.project-meta .level { color: var(--ink-muted); }
.project h3 { margin: 10px 0 10px; font-weight: 500; font-size: 1.625rem; line-height: 1.12; }
.project .question { color: var(--ink-soft); font-style: italic; }
.project .data { margin-top: auto; padding-top: 16px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-muted); }
.menu-note { margin-top: 28px; max-width: 72ch; }

/* ---------- Schools page ---------- */

.page-hero h1 { max-width: 16ch; }
.form .form-h { font-size: clamp(1.5rem, 3.4vw, 1.875rem); font-weight: 600; margin: 1.6em 0 0.4em; }
.blurb { margin-top: 28px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--hairline); border-left: 2px solid var(--accent); background: var(--bg); }
.blurb blockquote { margin: 0; color: var(--ink-soft); }
.blurb figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.blurb .btn[hidden] { display: none; }

/* Lecture "coming soon" card */
.video-soon .video-poster { cursor: default; }
.video-soon .video-poster:hover { color: inherit; }
.video-soon .disc { font-size: 1.1em; line-height: 1; }
