/* =========================================================
   Forma — "Studio Nocturne"
   A dark, editorial identity for in-person creative workshops.
   ========================================================= */

:root {
  --ink: #14100d;
  --ink-2: #1b1510;
  --ink-3: #251d16;
  --cream: #f5eee3;
  --cream-dim: #cabfab;
  --muted: #948879;
  --muted-2: #6f6558;
  --line: rgba(245, 238, 227, 0.14);
  --line-strong: rgba(245, 238, 227, 0.28);
  --accent: #ff5a1f;
  --accent-deep: #d8440f;
  --gold: #e6b877;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: min(1240px, calc(100vw - 96px));
  --radius: 3px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Film grain — decorative only, never intercepts input. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 460;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}

em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

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

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

.dialog-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Shared pieces
   --------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.16);
}

.section-index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a0d05;
}
.btn-primary:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--cream);
}
.btn-ghost:hover {
  border-color: var(--cream);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 16, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 560;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.site-nav a {
  text-decoration: none;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: var(--cream);
}
.nav-saved {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0d05;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  font-weight: 430;
  margin-bottom: 26px;
}
.hero h1 em {
  font-weight: 500;
}

.hero-lede {
  margin: 0;
  max-width: 50ch;
  color: var(--cream-dim);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin: 52px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.hero-stats dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1;
}

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 560px;
  margin: 0;
}
.hero-collage figure {
  margin: 0;
  overflow: hidden;
  background: var(--ink-3);
  border-radius: var(--radius);
}
.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03) brightness(0.94);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-collage figure:hover img {
  transform: scale(1.045);
}
.hero-collage .c1 {
  grid-row: 1 / 3;
}
.hero-collage .c2 {
  margin-top: 26px;
}
.hero-collage .c3 {
  margin-bottom: 26px;
}
.collage-note {
  position: absolute;
  left: 16px;
  bottom: -2px;
  right: auto;
  background: var(--ink);
  padding: 8px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  border: 1px solid var(--line);
}
.collage-note span {
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* ---------------------------------------------------------
   Ticker
   --------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--accent);
  color: #1a0d05;
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.ticker-group i {
  font-style: normal;
  opacity: 0.6;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------
   Programme
   --------------------------------------------------------- */
.programme {
  padding: 88px 0 96px;
}

.section-head {
  margin-bottom: 34px;
}
.section-head .eyebrow {
  margin-bottom: 16px;
}
.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}
.section-count {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Controls */
.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px) auto;
  gap: 22px;
  align-items: end;
  padding: 22px;
  margin-bottom: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(245, 238, 227, 0.035), rgba(245, 238, 227, 0));
}
.control {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.control label,
.control-faux-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap svg {
  position: absolute;
  left: 2px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  padding: 8px 4px 10px 30px;
  transition: border-color 0.2s ease;
}
.input-wrap input::placeholder {
  color: var(--muted-2);
}
.input-wrap input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.input-wrap input:focus-visible {
  outline: none;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  padding: 8px 30px 10px 4px;
  cursor: pointer;
}
.select-wrap select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.select-wrap svg {
  position: absolute;
  right: 4px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.select-wrap option {
  background: var(--ink-2);
  color: var(--cream);
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  padding: 11px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.saved-toggle svg {
  width: 17px;
  height: 17px;
}
.saved-toggle:hover {
  border-color: var(--gold);
}
.saved-toggle[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #241505;
}
.saved-toggle[aria-pressed="true"] svg path {
  fill: currentColor;
}
.saved-toggle-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(245, 238, 227, 0.14);
  font-size: 0.7rem;
  font-weight: 700;
}
.saved-toggle[aria-pressed="true"] .saved-toggle-count {
  background: rgba(36, 21, 5, 0.18);
}

/* ---------------------------------------------------------
   Item grid + cards
   --------------------------------------------------------- */
.items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 26px;
}
.items[hidden] {
  display: none;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ink-3);
  border-radius: var(--radius);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03) brightness(0.9);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
.card:hover .card-media img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.04) brightness(0.98);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.32) 0%, rgba(20, 16, 13, 0) 42%, rgba(20, 16, 13, 0.55) 100%);
  pointer-events: none;
}
.card-index {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.card-cat {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  border: 1px solid rgba(245, 238, 227, 0.5);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(20, 16, 13, 0.42);
  backdrop-filter: blur(4px);
}
.card-saved {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #241505;
}
.card-saved svg {
  width: 16px;
  height: 16px;
}
.card-saved svg path {
  fill: currentColor;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 16px;
}
.card-title {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--cream-dim);
}
.card-meta .dot {
  color: var(--muted-2);
}
.card-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.open-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cream);
  cursor: pointer;
}
.open-item svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.open-item:hover {
  color: var(--accent);
}
.open-item:hover svg,
.open-item:focus-visible svg {
  transform: translateX(5px);
}
.card-seats {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.card-seats strong {
  color: var(--gold);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */
.empty-state {
  text-align: center;
  max-width: 620px;
  margin: 30px auto 0;
  padding: 60px 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty-state[hidden] {
  display: none;
}
.empty-kicker {
  margin: 0 0 14px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.empty-state h3 {
  font-size: 2rem;
  margin-bottom: 14px;
}
.empty-state p {
  color: var(--cream-dim);
  margin: 0 auto 26px;
  max-width: 44ch;
}
.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Studio
   --------------------------------------------------------- */
.studio {
  border-top: 1px solid var(--line);
  padding: 96px 0;
  background: var(--ink-2);
}
.studio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}
.studio-figure {
  margin: 0;
}
.studio-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.85) brightness(0.9);
}
.studio-figure figcaption {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.studio-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 20px;
}
.studio-copy > p {
  color: var(--cream-dim);
  max-width: 52ch;
}
.studio-list {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.studio-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--cream-dim);
}
.studio-list span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 64px;
  background: var(--ink);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 64ch;
}
.footer-meta {
  margin: 0;
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.footer-meta a {
  color: var(--cream-dim);
}

/* ---------------------------------------------------------
   Detail dialog
   --------------------------------------------------------- */
.detail {
  border: none;
  padding: 0;
  width: min(1080px, calc(100vw - 64px));
  height: min(88vh, 760px);
  background: var(--ink-2);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.detail::backdrop {
  background: rgba(8, 6, 4, 0.74);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.detail[open] {
  animation: detail-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.detail-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(20, 16, 13, 0.72);
  color: var(--cream);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.detail-close:hover {
  background: var(--accent);
  color: #1a0d05;
  transform: rotate(90deg);
}
.detail-close svg {
  width: 20px;
  height: 20px;
}

.detail-media {
  position: relative;
  background: var(--ink-3);
  min-height: 100%;
}
.detail-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-media-index {
  position: absolute;
  left: 20px;
  bottom: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.detail-body {
  overflow-y: auto;
  padding: 52px 48px 44px;
}
.detail-cat {
  margin: 0 0 12px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.detail-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 460;
  margin-bottom: 18px;
}
.detail-lede {
  margin: 0 0 30px;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
  margin: 0 0 34px;
  border-top: 1px solid var(--line);
}
.detail-specs > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-specs dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-specs dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--cream);
}
.spec-price dd {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  padding: 13px 24px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.save-btn svg {
  width: 18px;
  height: 18px;
}
.save-btn:hover {
  background: rgba(230, 184, 119, 0.14);
}
.save-btn[aria-pressed="true"] {
  background: var(--gold);
  color: #241505;
}
.save-btn[aria-pressed="true"] svg path {
  fill: currentColor;
}
.detail-hint {
  margin: 0;
  flex: 1 1 160px;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 64px, 900px);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-collage {
    height: 460px;
  }
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .controls {
    grid-template-columns: 1fr 1fr;
  }
  .field-saved {
    grid-column: 1 / -1;
  }
  .saved-toggle {
    width: 100%;
    justify-content: center;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .studio-figure img {
    aspect-ratio: 16 / 10;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 40px);
  }
  .header-inner {
    height: 64px;
  }
  .site-nav {
    gap: 18px;
  }
  .site-nav a:not(.nav-saved) {
    display: none;
  }
  .hero {
    padding: 46px 0 40px;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
  }
  .hero-stats {
    gap: 26px;
    justify-content: space-between;
  }
  .hero-stats dd {
    font-size: 1.7rem;
  }
  .hero-collage {
    height: 380px;
    gap: 8px;
  }
  .hero-collage .c2 {
    margin-top: 18px;
  }
  .hero-collage .c3 {
    margin-bottom: 18px;
  }
  .programme {
    padding: 60px 0 70px;
  }
  .controls {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 20px;
  }
  .items {
    grid-template-columns: 1fr;
  }
  .studio {
    padding: 64px 0;
  }
  .detail {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .detail-frame {
    grid-template-columns: 1fr;
    height: 100%;
    overflow-y: auto;
  }
  .detail-media {
    min-height: 42vh;
    position: relative;
  }
  .detail-media img {
    position: absolute;
  }
  .detail-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
  }
  .detail-body {
    padding: 30px 22px 40px;
    overflow: visible;
  }
  .detail-specs {
    grid-template-columns: 1fr 1fr;
  }
  .detail-actions {
    align-items: stretch;
  }
  .save-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track {
    animation: none;
    transform: none;
  }
}
