/* ============================================================
   Showcase website kit — local styles
   Builds on ../../colors_and_type.css
   ============================================================ */

/* ---------- Layout ---------- */
.cf-app {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  position: relative;
  padding-bottom: 56px; /* room for fixed date bar */
}

/* ---------- Header ---------- */
.cf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  position: relative;
  z-index: 5;
}
.cf-header-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.cf-header-nav {
  display: flex;
  gap: 32px;
}
.cf-header-nav-item {
  color: var(--fg);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cf-header-nav-item:hover { opacity: 0.7; }
.cf-header-nav-item.is-active { color: var(--cf-acid); }

/* ---------- Halo ---------- */
.cf-halo-stage { position: relative; }
.cf-halo-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Defocused-photo background with film grain */
.cf-defocus-bg { background: #C8FF2E; }
.cf-defocus-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Headline float — entire title block drifts slowly (in addition to letter-level wave) */
.cf-hero-float {
  animation: cf-hero-float 14s ease-in-out infinite;
  will-change: transform;
}
@keyframes cf-hero-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(-6px, -10px) rotate(-0.4deg); }
  50%      { transform: translate(4px, -16px) rotate(0.3deg); }
  75%      { transform: translate(8px, -6px)  rotate(0.5deg); }
}
.cf-defocus-a { animation: cf-defocus-a 11s ease-in-out infinite; }
.cf-defocus-b { animation: cf-defocus-b 13s ease-in-out infinite; }
.cf-defocus-c { animation: cf-defocus-c  8s ease-in-out infinite; }

@keyframes cf-defocus-a {
  0%, 100% { transform: translate(0, 0)         scale(1);    }
  50%      { transform: translate(-220px, 120px) scale(1.28); }
}
@keyframes cf-defocus-b {
  0%, 100% { transform: translate(0, 0)         scale(1);    }
  50%      { transform: translate(200px, -140px) scale(1.32); }
}
@keyframes cf-defocus-c {
  0%, 100% { transform: translate(0, 0)         scale(1);    }
  50%      { transform: translate(-110px, 80px)  scale(1.35); }
}

/* Film grain overlay — separate SVG that renders at viewport pixel scale */
.cf-grain-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.95;
}
.cf-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.95;
}
.cf-blob-1 {
  width: 60%; height: 100%;
  background: var(--cf-acid);
  left: -10%; top: -20%;
  animation: cf-drift-1 28s ease-in-out infinite;
}
.cf-blob-2 {
  width: 65%; height: 100%;
  background: var(--cf-cyan);
  left: 30%; top: 10%;
  animation: cf-drift-2 32s ease-in-out infinite;
}
.cf-blob-3 {
  width: 45%; height: 90%;
  background: var(--cf-acid-soft);
  right: -5%; top: -10%;
  animation: cf-drift-3 36s ease-in-out infinite;
}
.cf-halo-bg.is-intense .cf-blob { opacity: 1; filter: blur(60px); }

@keyframes cf-drift-1 {
  0%,100% { transform: translate(0,0) scale(1) rotate(0); }
  33%     { transform: translate(40px,-30px) scale(1.1) rotate(5deg); }
  66%     { transform: translate(-20px,20px) scale(0.95) rotate(-3deg); }
}
@keyframes cf-drift-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-40px,30px) scale(1.08); }
}
@keyframes cf-drift-3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px,40px) scale(1.05); }
}

.cf-halo-content { position: relative; z-index: 1; }

/* ---------- Cursor halo ---------- */
.cf-cursor-halo {
  position: fixed;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,46,0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  filter: blur(20px);
  top: 0; left: 0;
}

/* ---------- Wave text ---------- */
@keyframes cf-wave-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(calc(-1 * var(--cf-amp, 2px))); }
}

/* ---------- Date bar (fixed bottom, marquee right → left) ---------- */
.cf-datebar-fixed {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--cf-acid);
  color: var(--cf-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 0;
  z-index: 10;
  overflow: hidden;
  white-space: nowrap;
}
.cf-datebar-track {
  display: inline-flex;
  white-space: nowrap;
  animation: cf-marquee 70s linear infinite;
  will-change: transform;
}
.cf-datebar-seg { padding-right: 0; flex: 0 0 auto; }
@keyframes cf-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero eyebrow ---------- */
.cf-hero-eyebrow {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cf-black);
  padding-top: 8px;
}

/* ---------- Themes band ---------- */
.cf-themes-band {
  padding: 96px 48px 48px;
  margin-top: 0;
}
.cf-themes-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cf-fog);
  margin-bottom: 32px;
}
.cf-themes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.cf-theme-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-display);
  text-transform: uppercase;
}
.cf-theme-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cf-acid);
  letter-spacing: 0.06em;
}
.cf-theme-name {
  font-size: 28px;
  line-height: 1;
}

/* ---------- Filter row ---------- */
.cf-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.cf-filter {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 14px;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
  border-radius: 0;
}
.cf-filter:hover { border-color: var(--cf-acid); color: var(--cf-acid); }
.cf-filter.is-on {
  background: var(--cf-acid);
  color: var(--cf-black);
  border-color: var(--cf-acid);
}

/* ---------- Protocard meta + dropdown ---------- */
.cf-protocard-meta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.cf-protocard.is-open { cursor: default; }
.cf-more-toggle {
  margin-top: 4px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cf-acid);
  color: var(--fg);
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}
.cf-more-toggle:hover { color: var(--cf-acid); }
.cf-more-chev {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cf-acid);
  line-height: 1;
}
.cf-protocard-details {
  margin-top: 12px;
  padding: 16px;
  background: var(--cf-ink);
  display: grid;
  gap: 10px;
  animation: cf-detail-in 0.18s ease-out;
}
@keyframes cf-detail-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cf-detail-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
}
.cf-detail-label {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cf-fog);
}
.cf-detail-value { color: var(--cf-bone); }
.cf-detail-body {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cf-bone);
}

/* ---------- About ---------- */
.cf-pullquote {
  margin: 0 0 32px;
  padding: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--cf-acid);
  border: 0;
}
.cf-pullquote em {
  font-style: normal;
  color: #FD5765;
}
.cf-about-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cf-bone);
  margin: 0 0 18px;
}
.cf-organisers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.cf-organiser {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 4px;
}
.cf-organiser-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1;
  color: var(--fg);
}
.cf-organiser-role {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cf-bone);
  line-height: 1.4;
}
.cf-organiser-program {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cf-acid);
}
.cf-organiser-bio {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.65;
  color: var(--cf-fog);
  margin: 8px 0 0;
}

/* ---------- Prev/next ---------- */
.cf-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 96px;
  padding-top: 24px;
}
.cf-prevnext-btn {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  color: var(--fg);
  transition: opacity 0.2s;
}
.cf-prevnext-btn:hover { opacity: 0.75; }
.cf-prevnext-btn-right { text-align: right; align-items: flex-end; }
.cf-prevnext-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 28px;
  line-height: 0.95;
}

/* ---------- Hero ---------- */
.cf-hero-screen { position: relative; min-height: 88vh; overflow: hidden; }
.cf-hero-content {
  position: relative;
  padding: 8px 48px 40px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 20px;
  min-height: 88vh;
  align-content: center;
}
.cf-hero-headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--cf-black);
  letter-spacing: 0.01em;
  margin: 0;
  align-self: end;
  overflow: visible;
}
.cf-hero-headline .row1,
.cf-hero-headline .row2 {
  font-size: clamp(56px, 10.5vw, 140px);
  line-height: 0.92;
  white-space: nowrap;
}
.cf-hero-headline .row2 { padding-left: 5vw; margin-top: 2px; }
.cf-hero-headline .row3 { margin-top: 4px; }

/* Display font specimens from the design system */
@font-face {
  font-family: "Super Basic";
  src: url("fonts/Super-Basic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
.cf-font-super    { font-family: "Super Basic", var(--font-display); letter-spacing: 0.02em; }
.cf-font-bungee   { font-family: "Bungee Shade", var(--font-display); letter-spacing: 0.02em; }
.cf-font-monoton  { font-family: "Monoton", var(--font-display); letter-spacing: 0.04em; }
.cf-font-climate  { font-family: "Climate Crisis", var(--font-display); font-variation-settings: "YEAR" 1990; letter-spacing: 0.01em; }
.cf-font-sixtyfour {
  font-family: "Sixtyfour", var(--font-mono);
  font-variation-settings: "BLED" 30, "SCAN" -50;
  letter-spacing: 0;
}
.cf-hero-headline .row3 {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  margin-top: 8px;
  padding-left: 2vw;
}
.cf-hero-showcase,
.cf-hero-year {
  font-size: clamp(36px, 6.2vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}
.cf-hero-aside {
  align-self: end;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--cf-black);
  color: var(--cf-paper);
  padding: 18px 24px;
  max-width: max-content;
  position: relative;
  z-index: 2;
}
.cf-hero-aside h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cf-paper);
}

/* ---------- Photo ---------- */
.cf-photo {
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
.cf-photo.is-drifting {
  animation: cf-photo-drift 9s ease-in-out infinite;
}
@keyframes cf-photo-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -6px); }
}

/* ---------- Prototype tile (floor map) ---------- */
.cf-prototile {
  position: absolute;
  background: var(--cf-acid);
  color: var(--cf-black);
  font-family: var(--font-display);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.cf-prototile:hover {
  box-shadow: 0 0 24px rgba(200,255,46,0.65);
}
.cf-prototile.is-active {
  background: var(--cf-cyan);
  box-shadow: 0 0 32px rgba(108,247,224,0.65), 0 0 80px rgba(108,247,224,0.25);
}

/* ---------- Prototype card ---------- */
.cf-protocard {
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.2s;
}
.cf-protocard:hover { opacity: 0.85; }
.cf-protocard-photo {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
.cf-protocard-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cf-acid);
  letter-spacing: 0.06em;
}
.cf-protocard-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 28px;
  line-height: 0.95;
  margin: 0;
  color: var(--fg);
}
.cf-protocard-blurb {
  font-size: 13px;
  color: var(--cf-bone);
  line-height: 1.5;
  margin: 0;
}
.cf-protocard-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cf-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cf-fog);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 8px;
}

/* ---------- Buttons ---------- */
.cf-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.05s;
  border-radius: 0;
}
.cf-btn:active { transform: translateY(1px); }
.cf-btn-primary { background: var(--cf-acid); color: var(--cf-black); }
.cf-btn-primary:hover { opacity: 0.85; }
.cf-btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 13px 23px;
}
.cf-btn-ghost:hover { border-color: var(--cf-acid); color: var(--cf-acid); }
/* Inline text hyperlinks */
.cf-text-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.cf-text-link:hover {
  color: var(--cf-acid);
  text-decoration-color: var(--cf-acid);
}

.cf-btn-link {
  background: transparent;
  color: var(--fg);
  padding: 0 0 4px;
  border-bottom: 1px solid var(--cf-acid);
}
.cf-btn-link:hover { color: var(--cf-acid); }

/* ---------- Play / pause ---------- */
.cf-playpause {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.cf-playpause:hover { box-shadow: 0 0 24px rgba(200,255,46,0.55); }
.cf-pp-play {
  display: block;
  width: 0; height: 0;
  border-left: 10px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.cf-pp-pause { display: flex; gap: 3px; }
.cf-pp-pause span { display: block; width: 3px; height: 12px; background: #fff; }

/* ---------- Partners ---------- */
.cf-partners {
  padding: 64px 48px 32px;
}
.cf-partners-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cf-fog);
  margin-bottom: 24px;
}
.cf-partners-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.cf-partners-row img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.cf-partners-row img.no-invert {
  filter: none;
  opacity: 1;
}
/* Text partner row */
.cf-partners-text-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
}
.cf-partner-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--cf-bone);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  text-decoration: none;
}
.cf-partner-name:hover { color: var(--cf-acid); }
.cf-partner-sep {
  color: var(--cf-fog);
  font-size: 12px;
  user-select: none;
}

/* ---------- Floor map ---------- */
.cf-event-section {
  padding: 48px 48px 96px;
  position: relative;
}
.cf-event-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.cf-floormap-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px),
    var(--cf-ink);
  border: 1px dashed rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 64px;
}
.cf-floormap-placeholder-inner {
  text-align: center;
  display: grid;
  gap: 12px;
}
.cf-floormap-placeholder-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 56px;
  line-height: 1;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.cf-floormap-placeholder-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cf-fog);
}
.cf-floormap-v2 {
  position: relative;
  width: 100%;
  aspect-ratio: 600/540;
  background: #000;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
}
.cf-floormap-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.cf-tile-g rect { transition: transform 0.15s ease, filter 0.15s ease; transform-origin: center; transform-box: fill-box; }
.cf-tile-g:hover rect {
  filter: brightness(1.15) drop-shadow(0 0 8px currentColor);
  transform: scale(1.18);
}
.cf-floormap-legend {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cf-legend-row {
  display: flex; align-items: center; gap: 10px;
}
.cf-legend-swatch {
  width: 18px; height: 12px; display: inline-block;
}
.cf-event-aside {
  padding-top: 16px;
}
.cf-visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 64px;
  padding-top: 48px;
  max-width: 640px;
}

/* ---------- DNI section: magenta override ---------- */
.cf-section-dni { --cf-acid: #FF3DAA; }

/* ============================================================
   Mobile responsive overrides — max-width: 768px
   Desktop layout is completely unchanged above this block.
   ============================================================ */
@media (max-width: 768px) {

  /* Header */
  .cf-header { padding: 16px 20px; }
  .cf-header-brand { font-size: 13px; }

  /* Hero */
  .cf-hero-screen { min-height: 70vh; }
  .cf-hero-content { padding: 8px 20px 28px; min-height: 70vh; gap: 16px; }
  .cf-hero-headline .row1,
  .cf-hero-headline .row2 { font-size: clamp(38px, 11vw, 56px); white-space: normal; word-break: break-word; }
  .cf-hero-headline .row2 { padding-left: 4vw; }
  .cf-hero-headline .row3 { flex-wrap: wrap; padding-left: 1vw; gap: 8px; }
  .cf-hero-showcase,
  .cf-hero-year { font-size: clamp(26px, 7.5vw, 48px); }
  .cf-hero-aside { padding: 14px 18px; max-width: 100%; }
  .cf-hero-aside h2 { font-size: 14px; }

  /* Floormap / event section */
  .cf-event-section { padding: 20px 20px 48px; }
  .cf-visit-grid { margin-top: 24px; padding-top: 20px; gap: 24px; }

  /* Catalogue section (inline padding overridden via data attribute) */
  [data-screen-label="Catalogue"] { padding: 20px 20px 56px !important; }

  /* Card grid: 3-col → 1-col */
  .cf-cards-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Category header */
  .cf-h1 { font-size: clamp(22px, 6.5vw, 36px) !important; }

  /* Protocard title */
  .cf-protocard-title { font-size: clamp(20px, 5.5vw, 28px); }

  /* Detail rows — shrink label column slightly */
  .cf-detail-row { grid-template-columns: 76px 1fr; gap: 8px; font-size: 12px; }

  /* About section */
  [data-screen-label="About"] { padding: 28px 20px 56px !important; }
  [data-screen-label="About"] .cf-display { font-size: clamp(38px, 10vw, 72px) !important; }
  .cf-pullquote { font-size: clamp(18px, 5vw, 28px); }
  .cf-about-body { font-size: 15px; }

  /* Organisers: 2-col → 1-col */
  .cf-organisers { grid-template-columns: 1fr !important; gap: 0 !important; }

  /* Partners */
  .cf-partners { padding-left: 20px; padding-right: 20px; }
  .cf-partners-text-row { gap: 8px 12px; }
  .cf-partner-name { font-size: 13px; }

  /* Date bar slightly smaller on mobile */
  .cf-datebar-fixed { font-size: 10px; padding: 10px 0; }

  /* Cursor halo hidden on touch devices */
  .cf-cursor-halo { display: none; }

  /* Themes band: 3-col → 1-col */
  .cf-themes-list { grid-template-columns: 1fr !important; }
  .cf-theme-name { font-size: 20px; }

  /* Event grid: sidebar collapses below map */
  .cf-event-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Tighter visit grid on mobile */
  .cf-visit-grid { margin-top: 24px !important; padding-top: 0 !important; gap: 16px !important; }

  /* Floormap legend: smaller on mobile */
  .cf-floormap-legend { font-size: 9px; padding: 8px 10px; gap: 6px; }
  .cf-legend-swatch { width: 14px; height: 10px; }

  /* Onepage divider tighter on mobile */
  .cf-onepage-divider { margin-top: 16px !important; padding-top: 0 !important; }

  /* Organiser name smaller */
  .cf-organiser-name { font-size: 16px; }
  .cf-organiser-bio { font-size: 11px; }

  /* More room above fixed date bar */
  .cf-app { padding-bottom: 48px; }

  /* Category count hidden on very small screens */
  .cf-protocard-id[style*="marginLeft: auto"] { display: none; }

  /* Schedule grid */
  .cf-schedule { grid-template-columns: 60px 1fr; }
  .cf-schedule-event { font-size: 14px; }
}

/* Extra small phones */
@media (max-width: 390px) {
  .cf-hero-headline .row1,
  .cf-hero-headline .row2 { font-size: 10.5vw; }
  .cf-hero-showcase,
  .cf-hero-year { font-size: 7vw; }
}

/* ============================================================ */
/* legacy classes (kept so older renders don't break) */
.cf-floormap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3.6;
  background: #000;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
}
.cf-floormap-mask {
  position: absolute;
  inset: 0;
  background: #000;
  /* the museum-curved gallery void */
  clip-path: ellipse(60% 70% at 75% 50%);
}
.cf-floormap-paths {
  position: absolute; inset: 0;
}
.cf-floormap-label {
  position: absolute;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- Schedule grid ---------- */
.cf-schedule {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.cf-schedule-row {
  display: contents;
}
.cf-schedule-time, .cf-schedule-event {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cf-schedule-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cf-fog);
}
.cf-schedule-event {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1;
}
.cf-schedule-event .meta {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 6px;
  color: var(--cf-fog);
}
