:root {
  color-scheme: dark;
  --bg: #0a0c09;
  --bg-raised: #10130f;
  --bg-hover: #151a13;
  --text: #f0f1e5;
  --muted: #a5ab9b;
  --faint: #878d7d;
  --line: rgba(240, 241, 229, 0.18);
  --line-strong: rgba(240, 241, 229, 0.42);
  --accent: #d6ff3f;
  --accent-ink: #0b0d08;
  --photo-edge: #0a0c09;
  --focus: #d6ff3f;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
  --font-display: Futura, "Avenir Next", "Century Gothic", "Helvetica Neue", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: Menlo, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --page-pad: clamp(20px, 3.2vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f2e8;
  --bg-raised: #e7e9dc;
  --bg-hover: #e1e4d5;
  --text: #10130d;
  --muted: #53594b;
  --faint: #656b5b;
  --line: rgba(16, 19, 13, 0.19);
  --line-strong: rgba(16, 19, 13, 0.45);
  --accent: #4c6300;
  --accent-ink: #f5f6ec;
  --photo-edge: #f1f2e8;
  --focus: #3d4b00;
  --shadow: 0 32px 90px rgba(30, 34, 22, 0.2);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

section[id],
footer[id] {
  scroll-margin-top: 86px;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 68px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@supports not (background: color-mix(in srgb, black 50%, white)) {
  .site-header {
    background: var(--bg);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-date {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-toggle {
  min-width: 58px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
  min-height: 590px;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(38px, 4.8vw, 64px) var(--page-pad) clamp(48px, 5vw, 70px);
}

.hero-copy {
  max-width: 810px;
}

.hero-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: clamp(54px, 6.7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.accent-line {
  color: var(--accent);
}

.hero-sub {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  border-color: var(--text);
  background: var(--text);
}

.button-primary span {
  font-size: 15px;
}

.hero-visual {
  position: relative;
  align-self: center;
  margin: 0;
  padding: 22px 22px 0 0;
}

.hero-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  outline: 1px solid var(--accent);
  outline-offset: 12px;
  filter: saturate(0.86) contrast(1.04);
}

.program {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(52px, 5.4vw, 82px) var(--page-pad) clamp(58px, 7vw, 100px);
  border-top: 1px solid var(--line);
}

.program-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 62px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.program-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.55fr) minmax(190px, 0.78fr) minmax(160px, 0.56fr);
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field input {
  padding: 0 14px;
}

.field input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.field input::-webkit-search-cancel-button {
  filter: invert(1);
}

html[data-theme="light"] .field input::-webkit-search-cancel-button {
  filter: none;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-62%);
}

.field select {
  appearance: none;
  padding: 0 42px 0 14px;
  cursor: pointer;
}

.saved-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease), transform 120ms var(--ease);
}

.saved-filter:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

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

.saved-filter:active {
  transform: scale(0.99);
}

.saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  border: 1px solid currentColor;
  font-size: 10px;
}

.list-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px 15px;
  border-bottom: 1px solid var(--line);
}

.result-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 180ms var(--ease);
}

.text-button:hover {
  color: var(--accent);
}

.workshop-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workshop-item {
  display: grid;
  grid-template-columns: 94px 150px minmax(0, 1fr) minmax(160px, 210px) 42px;
  gap: clamp(16px, 2.1vw, 34px);
  align-items: center;
  padding: 22px 2px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 220ms var(--ease);
}

.workshop-item:first-child {
  border-top: 0;
}

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

.workshop-item:hover {
  background: var(--bg-hover);
}

.date-rail {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  color: var(--text);
  font-family: var(--font-mono);
}

.date-day {
  grid-row: span 2;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.date-weekday,
.date-month {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.thumb {
  margin: 0;
  overflow: hidden;
  background: var(--bg-raised);
}

.thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transform: scale(1.001);
  transition: transform 520ms var(--ease), filter 300ms var(--ease);
}

.workshop-item:hover .thumb img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.035);
}

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

.item-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.item-category {
  color: var(--accent);
}

.item-separator {
  color: var(--faint);
}

.item-title {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.45vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.open-item {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms var(--ease);
}

.open-item:hover,
.open-item:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.item-description {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.item-facts {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}

.fact-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.fact-line span:first-child {
  color: var(--faint);
}

.fact-line span:last-child {
  color: var(--text);
  text-align: right;
}

.item-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), transform 220ms var(--ease);
}

.workshop-item:hover .item-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translate(2px, -2px);
}

.item-arrow.is-saved {
  border-color: var(--accent);
}

.item-arrow.is-saved span {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.loading-row {
  height: 150px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg-raised) 0%, var(--bg-hover) 50%, var(--bg-raised) 100%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.loading-row:first-child {
  border-top: 0;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

.empty-state {
  padding: clamp(52px, 7vw, 90px) 0 clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.empty-copy {
  max-width: 470px;
  margin-bottom: 26px;
  color: var(--muted);
}

.load-error {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.load-error p {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.studio {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--page-pad);
  border-top: 1px solid var(--line);
}

.studio-visual {
  margin: 0;
  padding: 0 0 22px 22px;
  position: relative;
}

.studio-visual::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
}

.studio-visual img {
  width: 100%;
  max-height: 560px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.04);
}

.studio-copy {
  max-width: 700px;
}

.studio-copy h2 {
  margin-bottom: 26px;
}

.studio-copy > p {
  max-width: 590px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}

.studio-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.studio-facts div {
  padding: 17px 18px 0 0;
}

.studio-facts dt {
  margin-bottom: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 32px;
  align-items: end;
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px var(--page-pad) 42px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-links a {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  margin: 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.detail-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

.detail-dialog::backdrop {
  background: rgba(3, 4, 2, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.detail-panel {
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  height: 100%;
  margin-left: auto;
  border-left: 1px solid var(--line-strong);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  animation: panel-in 380ms var(--ease) both;
}

@keyframes panel-in {
  from { transform: translateX(44px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.detail-bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

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

.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.close-detail span {
  font-size: 17px;
  line-height: 0.7;
}

.close-detail:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.detail-visual {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.detail-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.detail-content {
  padding: 28px 28px 46px;
}

.detail-category {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-content h2 {
  margin-bottom: 16px;
  font-size: clamp(37px, 5vw, 52px);
  line-height: 0.98;
}

.detail-body {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
}

.detail-facts div {
  display: grid;
  gap: 4px;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts div:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.detail-facts dt {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
}

.save-item {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}

.save-item:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.save-item:active {
  transform: scale(0.99);
}

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

.save-note {
  margin: 10px 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

/* Entry motion is meaningful here: it sequences the programme after the hero. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.is-in {
  animation: rise-in 620ms var(--ease) both;
  animation-delay: calc(var(--order, 0) * 55ms);
}

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .workshop-item {
    grid-template-columns: 82px 128px minmax(0, 1fr) 160px 38px;
    gap: 18px;
  }

  .date-day {
    font-size: 38px;
  }

  .item-description {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 48px;
    padding-top: 46px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-visual {
    width: min(100%, 540px);
    justify-self: end;
  }

  .hero-visual img {
    aspect-ratio: 16 / 11;
  }

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

  .saved-filter {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
  }

  .saved-filter .saved-count {
    margin-left: auto;
  }

  .workshop-item {
    grid-template-columns: 74px minmax(0, 1fr) 38px;
    gap: 16px;
  }

  .thumb {
    display: none;
  }

  .item-facts {
    grid-column: 2 / 3;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
    margin-top: 10px;
  }

  .fact-line {
    justify-content: flex-start;
  }

  .fact-line span:last-child {
    text-align: left;
  }

  .item-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .studio {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .studio-visual {
    width: min(100%, 540px);
  }

  .studio-visual img {
    aspect-ratio: 16 / 11;
    max-height: none;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-note {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 620px) {
  section[id],
  footer[id] {
    scroll-margin-top: 74px;
  }

  .site-header {
    height: 60px;
    gap: 12px;
  }

  .header-date {
    display: none;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero-kicker {
    margin-bottom: 26px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(46px, 13vw, 64px);
    margin-bottom: 24px;
  }

  .hero-sub {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .hero-visual {
    padding: 14px 14px 0 0;
  }

  .hero-visual img {
    outline-offset: 8px;
  }

  .program {
    padding-top: 64px;
  }

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

  .program-count {
    margin-top: 12px;
  }

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

  .saved-filter {
    grid-column: auto;
  }

  .list-status {
    align-items: flex-start;
  }

  .workshop-item {
    grid-template-columns: 66px minmax(0, 1fr) 34px;
    padding: 20px 0;
  }

  .date-day {
    font-size: 34px;
  }

  .item-title {
    font-size: 28px;
  }

  .item-kicker {
    gap: 6px;
    font-size: 9px;
  }

  .item-facts {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .item-arrow {
    width: 32px;
    height: 32px;
  }

  .studio-facts {
    grid-template-columns: 1fr;
  }

  .studio-facts div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-facts dt {
    margin: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 34px;
  }

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

  .detail-bar {
    height: 58px;
    padding: 0 16px;
  }

  .detail-content {
    padding: 22px 18px 40px;
  }

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

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-facts div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .detail-panel {
    animation: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .detail-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
