@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --paper: #eef0e9;
  --paper-2: #f7f8f2;
  --paper-3: #e4e8dc;
  --ink: #10151f;
  --muted: #5b625d;
  --line: #c3c9bd;
  --line-dark: #10151f;
  --blue: #1b34d8;
  --blue-dark: #1226a8;
  --lime: #d9f95a;
  --pink: #c42572;
  --green: #5f7d00;
  --ochre: #a15412;
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1320px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --cols: 44px 148px minmax(0, 1fr) 154px 112px 46px;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-optical-sizing: auto;
}

body.is-locked {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(16, 21, 31, 0.11) 0.6px, transparent 0.6px);
  background-size: 21px 21px;
  mask-image: linear-gradient(to bottom, black, transparent 34%);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

sup {
  font-size: 0.38em;
  vertical-align: super;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 240, 233, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  padding-block: 6px;
}

.brand:hover {
  color: var(--blue);
}

.brand sup {
  margin-left: 2px;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0;
}

.header-note {
  margin: 0;
  padding-left: clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.season-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 52, 216, 0.13);
}

.shortlist-meter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease;
}

.shortlist-meter > svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.shortlist-meter strong {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 20px;
  padding-inline: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 500;
}

.shortlist-meter:hover {
  background: var(--ink);
  color: var(--paper);
}

.shortlist-meter:hover strong {
  background: var(--lime);
  color: var(--ink);
}

.shortlist-meter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.shortlist-meter[aria-pressed="true"] strong {
  background: var(--lime);
  color: var(--ink);
}

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

.hero {
  padding-top: clamp(34px, 3.6vw, 48px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5.6vw, 86px);
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-index {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 21px;
  padding-inline: 5px;
  border: 1px solid currentColor;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--blue);
}

.hero-lede {
  max-width: 56ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 13px 19px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 180ms ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.text-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.text-link:hover span {
  transform: translate(2px, 2px);
}

.hero-figure {
  margin: 0;
  isolation: isolate;
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border: 1px solid var(--line-dark);
  background: var(--blue);
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 16px -16px -16px 16px;
  background: var(--blue);
}

.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: filter 300ms ease;
}

.hero-figure:hover img {
  filter: saturate(1) contrast(1.04);
}

.hero-sticker {
  position: absolute;
  top: -19px;
  right: -13px;
  z-index: 2;
  display: block;
  padding: 10px 12px 9px;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(3.5deg);
  box-shadow: 3px 3px 0 rgba(16, 21, 31, 0.9);
}

.hero-sticker b {
  display: block;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-sticker span {
  color: rgba(16, 21, 31, 0.66);
  font-size: 8px;
}

.hero-figure figcaption {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.fig {
  flex: none;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-statline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  margin: 0 0 24px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-statline span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.hero-statline b {
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: none;
}

/* ---------- Programme ---------- */

.programme {
  padding-top: clamp(46px, 4.8vw, 64px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 22px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.section-aside {
  max-width: 38ch;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px 236px;
  border: 1px solid var(--line-dark);
  background: var(--paper-2);
}

.control {
  position: relative;
  min-width: 0;
  padding: 10px 16px 11px;
  border-left: 1px solid var(--line);
}

.control:first-child {
  border-left: 0;
}

.control label,
.control-label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-right: 9px;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  height: 36px;
  border: 0;
  padding: 0 30px 0 0;
  background: transparent;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -0.01em;
  outline: none;
}

.search-field input::placeholder {
  color: #7d837c;
  opacity: 1;
}

.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.control:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.clear-search {
  position: absolute;
  right: 0;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 50%;
}

.clear-search svg {
  width: 12px;
  height: 12px;
}

.clear-search:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.select-control select {
  width: 100%;
  height: 36px;
  padding: 0 22px 0 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 450;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.saved-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.saved-toggle svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.saved-toggle:hover {
  border-color: var(--ink);
}

.saved-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.saved-toggle[aria-pressed="true"] svg path {
  fill: var(--lime);
}

.saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 18px;
  margin-left: auto;
  padding-inline: 4px;
  background: var(--paper-3);
  color: var(--ink);
  font-size: 9px;
  font-weight: 500;
}

.saved-toggle[aria-pressed="true"] .saved-count {
  background: var(--lime);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 13px 0 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.results-bar p {
  margin: 0;
}

#resultCount {
  color: var(--ink);
}

.results-hint {
  color: var(--muted);
}

.list-head {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 24px;
  align-items: end;
  padding: 0 0 9px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.head-main {
  grid-column: span 2;
}

.workshop-list {
  border-top: 0;
}

.workshop-item {
  border-bottom: 1px solid var(--line);
}

.workshop-item:last-child {
  border-bottom-color: var(--line-dark);
}

.row-btn {
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 132px;
  padding: 17px 0;
  border: 0;
  background: transparent;
  text-align: left;
  transition: background-color 150ms ease;
}

.row-btn:hover {
  background: var(--paper-2);
}

.row-btn:focus-visible {
  outline-offset: -2px;
}

.row-index {
  align-self: start;
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.row-thumb {
  width: 148px;
  height: 104px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.9);
  background: var(--paper-3);
  transition: filter 200ms ease;
}

.row-btn:hover .row-thumb {
  filter: saturate(1.05);
}

.row-main {
  min-width: 0;
}

.row-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.cat-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat, var(--ink));
}

.cat-ceramics {
  --cat: var(--blue);
}

.cat-painting {
  --cat: var(--pink);
}

.cat-floristry {
  --cat: var(--green);
}

.cat-baking {
  --cat: var(--ochre);
}

.saved-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid var(--ink);
  background: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-title {
  display: block;
  font-size: clamp(23px, 1.9vw, 28px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.row-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 54ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.row-schedule {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14.5px;
  line-height: 1.3;
}

.row-date {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.row-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}

.row-fee {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.row-price {
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.row-per {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.row-arrow {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.row-arrow svg {
  width: 15px;
  height: 15px;
}

.row-btn:hover .row-arrow,
.row-btn:focus-visible .row-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

/* ---------- Empty state ---------- */

.empty-state {
  margin: 26px 0 10px;
  padding: clamp(36px, 6vw, 68px) 24px;
  border: 1px dashed var(--muted);
  background: var(--paper-2);
  text-align: center;
}

.empty-code {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.empty-state h3 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.empty-state > p:not(.empty-code) {
  max-width: 44ch;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 14.5px;
}

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

.visit {
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: clamp(52px, 6vw, 82px);
  background: var(--ink);
  color: var(--paper);
}

.eyebrow.light {
  color: rgba(238, 240, 233, 0.62);
}

.eyebrow.light .eyebrow-index {
  color: var(--lime);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: end;
}

.visit h2 {
  margin: 0;
  font-size: clamp(52px, 6.4vw, 92px);
  font-weight: 650;
  line-height: 0.84;
  letter-spacing: -0.06em;
}

.visit h2 span {
  color: var(--lime);
}

.visit-copy {
  padding-bottom: 4px;
}

.visit-copy p {
  max-width: 38ch;
  margin: 0 0 24px;
  color: rgba(238, 240, 233, 0.7);
  font-size: 15.5px;
  line-height: 1.6;
}

.visit-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(44px, 5.5vw, 68px);
  padding-top: 18px;
  border-top: 1px solid rgba(238, 240, 233, 0.24);
}

.visit-facts > div {
  padding-right: 24px;
  border-left: 1px solid rgba(238, 240, 233, 0.14);
  padding-left: 22px;
}

.visit-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact-label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(238, 240, 233, 0.5);
}

.visit-facts p,
.visit-facts address {
  margin: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(238, 240, 233, 0.85);
}

.visit-facts a {
  text-decoration-color: rgba(217, 249, 90, 0.55);
  text-underline-offset: 3px;
}

.visit-facts a:hover {
  color: var(--lime);
}

.visit :focus-visible {
  outline-color: var(--lime);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(238, 240, 233, 0.24);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238, 240, 233, 0.46);
}

.footer-bar p {
  margin: 0;
}

/* ---------- Detail drawer ---------- */

.detail-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.detail-shell[hidden] {
  display: none;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 20, 0.56);
  opacity: 0;
  transition: opacity 300ms ease;
}

.detail-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  height: 100%;
  border-left: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: -30px 0 80px rgba(8, 11, 20, 0.24);
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.22, 0.82, 0.24, 1);
  outline: none;
}

.detail-shell.is-open .detail-backdrop {
  opacity: 1;
}

.detail-shell.is-open .detail-panel {
  transform: translateX(0);
}

.detail-bar {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  height: 62px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper-2);
}

.detail-file {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-file span {
  color: var(--blue);
}

.close-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.close-btn svg {
  width: 14px;
  height: 14px;
}

.close-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.detail-media {
  margin: 0;
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper-3);
}

.detail-media img {
  width: 100%;
  height: clamp(230px, 32vh, 330px);
  object-fit: cover;
}

.detail-media figcaption {
  padding: 8px 24px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.detail-content {
  padding: 26px 32px 22px;
}

.detail-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-short {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-content h2 {
  margin: 0 0 16px;
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.detail-body {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0;
  border-top: 1px solid var(--line-dark);
}

.fact-grid > div {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--line);
}

.fact-grid > div:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.fact-grid > div:nth-last-child(-n + 2) {
  border-bottom-color: var(--line-dark);
}

.fact-grid dt {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-grid dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.instructor-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.instructor-initials {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.instructor-card .fact-label {
  color: var(--muted);
  margin-bottom: 3px;
}

.instructor-name {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.instructor-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.detail-note {
  margin: 24px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--blue);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
}

.detail-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 13px 24px;
  padding-bottom: max(13px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  background: var(--paper-2);
}

.save-btn {
  display: inline-flex;
  flex: 1 1 260px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.save-btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.save-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.save-btn[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
}

.save-btn[aria-pressed="true"] svg path {
  fill: var(--ink);
}

.quiet-link {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-underline-offset: 3px;
}

.quiet-link:hover {
  color: var(--blue);
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  :root {
    --cols: 36px 120px minmax(0, 1fr) 142px 96px 42px;
  }

  .header-note {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .controls {
    grid-template-columns: minmax(0, 1fr) 230px 210px;
  }

  .row-btn {
    column-gap: 18px;
    min-height: 118px;
  }

  .row-thumb {
    width: 120px;
    height: 94px;
  }

  .row-desc {
    -webkit-line-clamp: 1;
  }

  .row-title {
    font-size: 24px;
  }

  .list-head {
    column-gap: 18px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    align-items: start;
  }

  .hero h1 {
    font-size: clamp(58px, 11.5vw, 92px);
  }

  .hero-lede {
    max-width: 52ch;
  }

  .hero-figure {
    max-width: 620px;
  }

  .hero-image-wrap img {
    aspect-ratio: 16 / 10;
  }

  .hero-image-wrap::before {
    inset: 12px -12px -12px 12px;
  }

  .hero-sticker {
    top: -14px;
    right: -8px;
  }

  .section-head {
    display: block;
    margin-bottom: 24px;
  }

  .section-aside {
    margin-top: 16px;
    max-width: 52ch;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .control {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 9px 14px 10px;
  }

  .control:first-child {
    border-top: 0;
  }

  .select-control,
  .saved-control {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 12px;
  }

  .select-control label,
  .saved-control .control-label {
    margin-bottom: 0;
  }

  .saved-toggle {
    max-width: 320px;
  }

  .results-hint {
    display: none;
  }

  .list-head {
    display: none;
  }

  .workshop-list {
    border-top: 1px solid var(--line-dark);
  }

  .workshop-item:last-child {
    border-bottom-color: var(--line-dark);
  }

  .row-btn {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 18px;
    min-height: 0;
    padding: 18px 0 20px;
  }

  .row-index {
    position: absolute;
    top: 27px;
    left: 9px;
    z-index: 2;
    padding: 3px 6px;
    border: 1px solid var(--line-dark);
    background: var(--paper-2);
    color: var(--ink);
    font-size: 9px;
  }

  .row-thumb {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 15px;
  }

  .row-main {
    grid-column: 1 / -1;
  }

  .row-title {
    font-size: 25px;
  }

  .row-desc {
    -webkit-line-clamp: 2;
    max-width: 58ch;
  }

  .row-schedule {
    grid-column: 1;
    margin-top: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }

  .row-schedule .row-meta {
    white-space: nowrap;
  }

  .row-schedule .row-date::after {
    content: "·";
    margin-left: 9px;
    color: var(--line);
  }

  .row-fee {
    grid-column: 2;
    margin-top: 12px;
    align-items: flex-end;
    text-align: right;
  }

  .row-price {
    font-size: 22px;
  }

  .row-arrow {
    display: none;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .visit h2 {
    font-size: clamp(48px, 10vw, 78px);
  }

  .visit-copy p {
    max-width: 48ch;
  }

  .visit-facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .visit-facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-bar {
    flex-direction: column;
    gap: 8px;
  }

  .detail-panel {
    width: 100%;
    border-left: 0;
  }

  .detail-content {
    padding: 24px 22px 20px;
  }

  .detail-media img {
    height: clamp(210px, 30vh, 300px);
  }

  .detail-actions {
    padding-inline: 18px;
  }

  .detail-bar {
    padding: 0 18px;
  }

  .detail-media figcaption {
    padding-inline: 22px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 60px;
  }

  .brand {
    font-size: 23px;
  }

  .season-pill {
    display: none;
  }

  .shortlist-meter {
    gap: 7px;
    padding-inline: 8px;
    border-color: var(--line);
  }

  .hero {
    padding-top: 30px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(52px, 15.5vw, 72px);
    margin-bottom: 22px;
  }

  .hero-lede {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .text-link {
    align-self: flex-start;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-figure {
    padding-right: 8px;
  }

  .hero-image-wrap img {
    aspect-ratio: 16 / 9;
  }

  .hero-figure figcaption {
    margin-top: 20px;
    font-size: 8.5px;
  }

  .hero-sticker {
    font-size: 8px;
    padding: 8px 9px 7px;
  }

  .hero-sticker b {
    font-size: 19px;
  }

  .programme {
    padding-top: 46px;
  }

  .section-head h2 {
    font-size: 40px;
  }

  .section-aside {
    font-size: 13.5px;
  }

  .select-control,
  .saved-control {
    grid-template-columns: 86px 1fr;
  }

  .search-field input {
    height: 40px;
    font-size: 16px;
  }

  .select-control select,
  .saved-toggle {
    min-height: 42px;
  }

  .results-bar {
    padding-top: 11px;
    font-size: 8.5px;
  }

  .row-btn {
    padding-top: 14px;
  }

  .row-index {
    top: 22px;
  }

  .row-thumb {
    aspect-ratio: 3 / 2;
    margin-bottom: 14px;
  }

  .row-title {
    font-size: 24px;
  }

  .row-schedule {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .row-schedule .row-date::after {
    content: none;
  }

  .row-fee {
    margin-top: 12px;
  }

  .empty-state {
    padding-inline: 18px;
  }

  .visit {
    margin-top: 58px;
    padding-top: 42px;
  }

  .visit h2 {
    font-size: clamp(46px, 13.5vw, 62px);
  }

  .visit-facts {
    grid-template-columns: 1fr;
    row-gap: 20px;
    margin-top: 36px;
  }

  .visit-facts > div {
    padding-left: 0;
    padding-bottom: 16px;
    border-left: 0;
    border-bottom: 1px solid rgba(238, 240, 233, 0.14);
  }

  .visit-facts > div:last-child {
    border-bottom: 0;
  }

  .footer-bar {
    margin-top: 34px;
  }

  .detail-bar {
    height: 56px;
  }

  .detail-content h2 {
    font-size: 40px;
  }

  .detail-body {
    font-size: 16px;
  }

  .fact-grid dd {
    font-size: 14.5px;
  }

  .detail-actions {
    gap: 8px;
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .save-btn {
    flex-basis: 100%;
    min-height: 50px;
  }

  .quiet-link {
    margin-inline: auto;
    padding-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
