/* ==========================================================================
   TEMPATAN FEST '26: "Back To Culture" design system
   Palette sampled from the official poster + TF emblem.
   Type: Saira Extra Condensed (display) + Archivo (body / expanded accents).
   ========================================================================== */

:root {
  /* Brand colours */
  --red: #c4302b;          /* Culture Red: poster wordmark */
  --red-deep: #8e1a14;     /* Oxblood: duotone shadows */
  --ember: #e8401f;        /* Ember: emblem flame / sticker shadow */
  --ink: #0b1019;          /* Ink: emblem navy-black */
  --ink-2: #151b27;
  --ink-3: #222a38;
  --paper: #f6ede6;        /* Paper: warm duotone highlight */
  --blush: #f3dcd5;
  --bone: #fffaf6;
  --steel: #6b7180;

  --sand: #ece0d5;         /* Sand: alternate light section */

  /* Type */
  --font-display: "Saira Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(4.5rem, 14vw, 12rem);
  --fs-h1: clamp(3.25rem, 8vw, 6.5rem);
  --fs-h2: clamp(2.5rem, 5.5vw, 4.5rem);
  --fs-h3: clamp(1.75rem, 3vw, 2.25rem);
  --fs-h4: 1.375rem;
  --fs-lead: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-micro: .75rem;

  /* Shape + motion */
  --radius: 4px;
  --radius-lg: 10px;
  --cut: 18px;                      /* angled corner cut size */
  --shadow-sticker: 6px 6px 0 var(--ember);
  --shadow-sticker-ink: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   Themes
   Light is the default: <html data-theme="light"> in the markup. Dark tokens
   live on :root as the base and apply when data-theme="dark" (the visitor's
   saved choice, applied before first paint by the inline script in <head>).
   .theme-ink   → always dark (footer, closing CTA)
   .theme-paper → always light (poster-like sections)
   .theme-red   → always red (big moments)
   -------------------------------------------------------------------------- */
:root, .theme-ink {
  --bg: var(--ink);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --text: var(--paper);
  --text-muted: #b8b1ad;
  --line: rgba(246, 237, 230, .16);
  --accent: var(--red);
  --focus: #ffb199;
  /* component tokens */
  --primary-bg: var(--red);
  --primary-shadow: var(--ember);
  --secondary-bg: var(--bone);
  --secondary-fg: var(--ink);
  --header-bg: color-mix(in srgb, var(--ink) 86%, transparent);
  --hero-glow-1: rgba(196, 48, 43, .55);
  --hero-glow-2: rgba(142, 26, 20, .6);
  --wordmark: var(--paper);
  --wordmark-shadow: var(--red);
  --tagline: var(--paper);
  --map-filter: grayscale(1) contrast(1.1) invert(.92) hue-rotate(180deg);
  color-scheme: dark;
}
.theme-ink { background: var(--bg); color: var(--text); }

:root[data-theme="light"], .theme-paper {
  --bg: var(--paper);
  --surface: var(--bone);
  --surface-2: var(--blush);
  --text: var(--ink);
  --text-muted: #5a5555;
  --line: rgba(11, 16, 25, .16);
  --focus: var(--ember);
  --primary-bg: var(--red);
  --primary-shadow: var(--ink);
  --secondary-bg: var(--ink);
  --secondary-fg: var(--bone);
  --header-bg: color-mix(in srgb, var(--paper) 88%, transparent);
  --hero-glow-1: rgba(196, 48, 43, .16);
  --hero-glow-2: rgba(232, 64, 31, .12);
  --wordmark: var(--red);
  --wordmark-shadow: var(--ink);
  --tagline: var(--ink);
  --map-filter: grayscale(.85) sepia(.15) contrast(1.05);
  color-scheme: light;
}
.theme-paper { background: var(--bg); color: var(--text); }
/* In light mode, "paper" sections drop to sand so they still read as separate bands */
[data-theme="light"] .theme-paper { --bg: var(--sand); }
[data-theme="light"] .theme-paper .card,
[data-theme="light"] .theme-paper .ticket { --surface: var(--bone); }

.theme-red {
  --bg: var(--red);
  --surface: var(--red-deep);
  --text: var(--bone);
  --text-muted: rgba(255, 250, 246, .78);
  --line: rgba(255, 250, 246, .25);
  --accent: var(--ink);
  --primary-bg: var(--ink);
  --primary-shadow: var(--bone);
  --secondary-bg: var(--bone);
  --secondary-fg: var(--ink);
  background: var(--bg);
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Film grain overlay (applied to hero/feature surfaces) */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .22; mix-blend-mode: overlay;
}
/* Halftone dot field */
.halftone {
  background-image: radial-gradient(circle at center, currentColor 1.1px, transparent 1.6px);
  background-size: 9px 9px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .005em;
  margin: 0 0 .35em;
}
.display { font-size: var(--fs-display); font-weight: 900; line-height: .82; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: .95; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1; letter-spacing: .02em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.muted { color: var(--text-muted); }
small, .small { font-size: var(--fs-small); }
.text-red { color: var(--red); }
.theme-paper .text-red { color: var(--red); }

/* Expanded italic accent, echoes "7-8 NOV 2026" on the poster */
.stamp {
  font-family: var(--font-body);
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
}
/* Small label / kicker above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body);
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: var(--fs-micro);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; transform: skewX(-30deg); }
.theme-red .eyebrow { color: var(--ink); }

.slash { color: var(--red); font-style: italic; }
blockquote.pull {
  margin: 0; padding-left: 1.25rem; border-left: 6px solid var(--red);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--bone);
  --btn-shadow: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; padding: .8em 1.6em;
  border: 0; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-variation-settings: "wdth" 112;
  font-weight: 800; font-size: .95rem; font-style: italic;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--btn-shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--btn-shadow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--btn-shadow); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }

/* on dark surfaces the hard shadow becomes ember so it stays visible */
.btn-primary { --btn-bg: var(--primary-bg); --btn-shadow: var(--primary-shadow); }

.btn-secondary { --btn-bg: var(--secondary-bg); --btn-fg: var(--secondary-fg); --btn-shadow: var(--red); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px currentColor; transform: none; background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-ghost:active { transform: translateY(1px); box-shadow: inset 0 0 0 2px currentColor; }

.btn-link {
  background: none; border: 0; padding: 0; color: var(--text); cursor: pointer;
  font: 800 .9rem/1 var(--font-body); font-variation-settings: "wdth" 112; font-style: italic;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5em;
  border-bottom: 2px solid var(--red); padding-bottom: .35em;
}
.btn-link:hover { color: var(--red); }

.btn-sm { min-height: 40px; padding: .55em 1.1em; font-size: .8rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn-lg { min-height: 64px; padding: 1em 2.1em; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Ticket CTA: price tag tucked into the button */
.btn-ticket .price {
  display: inline-flex; align-items: baseline; gap: .15em;
  padding: .25em .55em; margin-right: -.6em;
  background: var(--ink); color: var(--bone); border-radius: 2px;
  font-style: normal; letter-spacing: .02em;
}
.theme-red .btn-ticket .price { background: var(--red); }

/* ---------- Badges / tags / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .35em .75em;
  font: 800 var(--fs-micro)/1 var(--font-body); font-variation-settings: "wdth" 115;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--red); color: var(--bone);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  padding-inline: 1em;
}
.badge-ink { background: var(--ink); color: var(--paper); }
.badge-paper { background: var(--paper); color: var(--ink); }
.badge-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px currentColor; clip-path: none; border-radius: 999px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--text);
  font: 700 var(--fs-small)/1 var(--font-body); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--red); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--bone); }

/* ---------- Forms ---------- */
.field { display: grid; gap: .5rem; }
.label {
  font: 800 var(--fs-micro)/1 var(--font-body); font-variation-settings: "wdth" 115;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.hint { font-size: var(--fs-small); color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px;
  padding: .85em 1em;
  font: 500 1rem/1.3 var(--font-body);
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.textarea { min-height: 120px; resize: vertical; }
.select {
  padding-right: 3rem; cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--red) 50%),
    linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
.select option { color: var(--ink); background: var(--bone); }
.field.is-error .input { border-color: var(--ember); box-shadow: 4px 4px 0 var(--ember); }
.field.is-error .hint { color: var(--ember); font-weight: 600; }
.input:disabled, .select:disabled { opacity: .5; cursor: not-allowed; }

/* Inline input + button */
.input-group { display: flex; gap: 0; }
.input-group .input { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; box-shadow: none; }
.input-group .btn:hover, .input-group .btn:active { transform: none; box-shadow: none; background: var(--red-deep); }

/* Quantity stepper */
.stepper { display: inline-grid; grid-template-columns: 52px 1fr 52px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stepper button {
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  font: 800 1.4rem/1 var(--font-body); min-height: 48px;
}
.stepper button:hover { background: var(--red); color: var(--bone); }
.stepper input {
  width: 100%; min-width: 56px; text-align: center; border: 0; background: transparent; color: var(--text);
  font: 900 1.25rem/1 var(--font-body); font-variation-settings: "wdth" 120;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper:focus-within { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }

/* Checkbox / radio */
.check { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 500; }
.check input {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none;
  width: 22px; height: 22px; border: 2px solid var(--text); border-radius: 3px; background: transparent;
  display: grid; place-content: center; cursor: pointer;
}
.check input[type="radio"] { border-radius: 50%; }
.check input::before { content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .12s var(--ease); background: var(--red); }
.check input[type="checkbox"]::before { clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input[type="radio"]::before { border-radius: 50%; }
.check input:checked { border-color: var(--red); }
.check input:checked::before { transform: scale(1); }

/* Segmented day picker */
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: grid; gap: 2px; padding: .8rem clamp(.6rem, 2vw, 1rem); text-align: left;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: .15s; cursor: pointer;
}
.segmented b { font: 900 1.4rem/1 var(--font-display); text-transform: uppercase; }
.segmented small { color: var(--text-muted); font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.segmented input:checked + span { border-color: var(--red); background: var(--red); color: var(--bone); box-shadow: 4px 4px 0 var(--ink); }
.segmented input:checked + span small { color: rgba(255,250,246,.8); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 32px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover, .card.is-hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--red); border-color: var(--red); }

/* Pillar card: numbered, angled corner */
.pillar {
  display: flex; flex-direction: column; gap: .75rem; min-height: 260px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  border-radius: 0;
  overflow: hidden;
}
.pillar .num { font: 900 .85rem/1 var(--font-body); font-variation-settings: "wdth" 125; font-style: italic; color: var(--red); letter-spacing: .05em; }
.pillar h3 { margin: auto 0 .2em; }
.pillar p { margin: 0; color: var(--text-muted); font-size: var(--fs-small); }
.pillar .icon { width: 44px; height: 44px; color: var(--red); }
.pillar::before {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; color: var(--red);
  background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.6px); background-size: 9px 9px;
  opacity: 0; transition: opacity .3s; border-radius: 50%;
}
.pillar:hover::before { opacity: .35; }
.pillar:hover { background: var(--surface-2); }

/* Event card (collab) */
.event-card { display: grid; grid-template-rows: 120px auto 1fr; gap: 1rem; padding: 0; overflow: hidden; }
.event-card .logo-plate {
  display: grid; place-items: center; padding: 22px 28px;
  background: var(--paper); color: var(--red);
  border-bottom: 1.5px solid var(--line);
}
.event-card .logo-plate svg, .event-card .logo-plate img { max-height: 70px; width: auto; max-width: 100%; }
.event-card .body { padding: 0 24px 26px; display: grid; gap: .6rem; align-content: start; }
.event-card h3 { margin: 0; font-size: 1.75rem; }
.event-card p { margin: 0; color: var(--text-muted); font-size: var(--fs-small); }
.event-card.is-host .logo-plate { background: var(--ink); }

/* Post card (promo / news) */
.post {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.post-media { position: relative; background: #fff; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post-media img { transform: scale(1.03); }
.post-body { padding: clamp(20px, 3vw, 36px); display: grid; gap: .9rem; align-content: start; }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }

/* Stat */
.stat { display: grid; gap: .2rem; }
.stat b { font: 900 clamp(3rem, 6vw, 5rem)/.85 var(--font-display); color: var(--red); }
.stat span { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }

/* Ticket stub */
.ticket {
  --notch: 22px; --stub: 170px;
  position: relative; display: grid; grid-template-columns: 1fr auto;
  background: var(--bone); color: var(--ink);
  border-radius: var(--radius-lg);
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { padding: clamp(24px, 3vw, 40px); display: grid; gap: 1.25rem; }
.ticket-stub {
  width: var(--stub); padding: 28px 20px; display: grid; place-content: center; text-align: center; gap: .4rem;
  border-left: 2.5px dashed rgba(11,16,25,.35);
  background: var(--red); color: var(--bone);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.ticket-stub .amount { font: 900 4.25rem/.85 var(--font-display); }
.ticket-stub .amount sup { font-size: .4em; vertical-align: top; position: relative; top: .35em; margin-right: .08em; }
.ticket-stub .per { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }

.ticket-wrap { filter: drop-shadow(8px 8px 0 var(--ink)); }
.theme-paper .ticket .segmented span, .theme-paper .ticket .stepper, .theme-paper .ticket .input { background: var(--paper); }
.theme-paper .ticket .segmented input:checked + span { background: var(--red); }

/* Accordion */
.accordion { border-top: 1.5px solid var(--line); }
.accordion details { border-bottom: 1.5px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; font: 800 clamp(1.4rem, 2.4vw, 1.85rem)/1 var(--font-display); text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  font: 700 1.5rem/1 var(--font-body); background: var(--red); color: var(--bone); border-radius: 50%;
  transition: transform .25s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .answer { padding: 0 0 1.5rem; color: var(--text-muted); max-width: 70ch; }

/* Alert / notice */
.notice {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem;
  border-left: 5px solid var(--red); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-small);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap; position: relative;
  border-block: 2px solid var(--ink);
  background: var(--red); color: var(--bone);
}
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; padding-block: .9rem; }
.marquee-track > span {
  display: inline-flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem;
  font: 900 clamp(1.6rem, 3vw, 2.4rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
}
.marquee-track .star { width: .7em; height: .7em; color: var(--ink); }
.marquee.is-ink { background: var(--ink); color: var(--paper); border-color: var(--red); }
.marquee.is-ink .star { color: var(--red); }
.marquee.is-tilt { transform: rotate(-2deg); margin-inline: -20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header / Nav ---------- */
.topline {
  background: var(--red); color: var(--bone); text-align: center;
  font: 800 var(--fs-micro)/1 var(--font-body); font-variation-settings: "wdth" 115;
  letter-spacing: .16em; text-transform: uppercase; padding: .7rem var(--gutter);
}
.topline a { color: inherit; text-underline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { font: 900 1.45rem/.85 var(--font-display); text-transform: uppercase; }
.brand span em { font-style: normal; color: var(--red); }
.nav-links { display: flex; gap: clamp(.9rem, 1.3vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  white-space: nowrap;
  text-decoration: none; font: 700 .78rem/1 var(--font-body); font-variation-settings: "wdth" 108;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding-block: .5rem;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); border-color: var(--red); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 2px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* Narrower desktops: drop the price tag from the header ticket button to make room */
@media (max-width: 1360px) { .nav .btn-ticket .price { display: none; } }
@media (max-width: 1220px) {
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + 1px) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 2px solid var(--red); padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s var(--ease);
  }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1.3rem; font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; border-bottom: 1px solid var(--line); color: var(--text); }
  .site-header.is-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-toggle { display: grid; }
  .nav .btn-ticket .price { display: none; }
}
@media (max-width: 520px) {
  .nav { gap: .6rem; }
  .nav .btn-ticket { padding-inline: 1em; }
  .brand span { display: none; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .2s; }
.theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="light"] .theme-toggle .sun { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: rotate(90deg) scale(.6); }
/* Smooth swap when the user toggles (class added briefly by JS) */
.theme-anim, .theme-anim * { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 72% 40%, var(--hero-glow-1), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 100%, var(--hero-glow-2), transparent 70%),
    var(--bg);
  padding-top: clamp(32px, 5vw, 64px);
  min-height: min(920px, calc(100svh - var(--nav-h) - 36px));
}
.hero .halftone-field { position: absolute; inset: 0; color: var(--red); opacity: .18; -webkit-mask: linear-gradient(115deg, transparent 35%, #000 75%); mask: linear-gradient(115deg, transparent 35%, #000 75%); }
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem; align-items: center; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 80px); }
.hero-tagline { width: min(240px, 50%); margin-bottom: 1.25rem; color: var(--tagline); }
.hero-logo { width: min(640px, 100%); margin: 0 0 1.5rem -1.5%; color: var(--wordmark); }
/* Recolourable brand marks: the PNG's alpha is used as a mask, fill = currentColor */
.mark { display: block; width: 100%; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mark-wordmark { aspect-ratio: 2480 / 1200; --m: url("../img/tf26-logo-white.webp"); }
.mark-tagline { aspect-ratio: 1300 / 380; --m: url("../img/back-to-culture.webp"); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; align-items: center; margin-bottom: 2rem; }
.hero-date { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: var(--text); }
.hero-date small { display: block; font-size: .5em; color: var(--red); margin-top: .15em; }
.hero-venue { display: flex; gap: .7rem; align-items: flex-start; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 115; letter-spacing: .06em; line-height: 1.25; border-left: 3px solid var(--red); padding-left: 1rem; }
.hero-venue svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 1px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }
.hero-note { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--text-muted); }

.hero-art { position: relative; align-self: end; height: clamp(440px, 58vw, 760px); }
.hero-art img { position: absolute; user-select: none; pointer-events: none; }
.hero-art .city { width: 88%; left: -6%; bottom: 14%; opacity: .95; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.hero-art .robot { height: 92%; right: 0; bottom: 6%; filter: drop-shadow(-12px 0 30px rgba(0,0,0,.5)); }
.hero-art .car-1 { width: 68%; right: 4%; bottom: 0; z-index: 2; filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); }
.hero-art .car-2 { width: 46%; left: -4%; bottom: 8%; z-index: 1; filter: drop-shadow(0 14px 14px rgba(0,0,0,.5)); }

.countdown { display: flex; gap: .5rem; margin-top: 2rem; }
.countdown div { min-width: 72px; padding: .6rem .4rem .5rem; text-align: center; background: color-mix(in srgb, var(--text) 5%, transparent); border: 1.5px solid var(--line); border-radius: var(--radius); }
.countdown b { display: block; font: 900 2.2rem/.9 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { height: clamp(360px, 95vw, 560px); margin-inline: calc(-1 * var(--gutter)); }
}

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 44ch; color: var(--text-muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.about-visual { position: relative; aspect-ratio: 4/5; }
.about-visual .frame {
  position: absolute; inset: 0; background: var(--ink); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
}
.about-visual .frame img.city { position: absolute; inset: auto 0 0 0; width: 120%; max-width: none; left: -10%; opacity: .9; }
.about-visual .since {
  position: absolute; top: 8%; left: 8%; z-index: 2; color: var(--paper);
  font: 900 clamp(5rem, 11vw, 9rem)/.8 var(--font-display);
}
.about-visual .since small { display: block; font: 800 .8rem/1 var(--font-body); letter-spacing: .2em; color: var(--red); margin-bottom: .6rem; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.grid-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-pillars .pillar.is-wide { grid-column: span 2; }
.grid-events { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .grid-pillars, .grid-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-pillars, .grid-events { grid-template-columns: 1fr; }
  .grid-pillars .pillar.is-wide { grid-column: auto; }
  .pillar { min-height: 0; }
}

/* ---------- Events (4 epic events) ---------- */
.events-hero-title { font-size: clamp(3rem, 8vw, 7rem); line-height: .85; margin: 0; }
.events-hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--paper); }

/* ---------- Promo posts ---------- */
.promo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.promo-layout .post-featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.promo-layout .post-featured .post-media { aspect-ratio: auto; }
.post-square .post-media { aspect-ratio: 1; }
.post-wide .post-media { aspect-ratio: 7/3; }
@media (max-width: 900px) {
  .promo-layout { grid-template-columns: 1fr; }
  .promo-layout .post-featured { grid-template-columns: 1fr; }
}

/* ---------- Tickets ---------- */
.tickets { overflow: hidden; }
.tickets-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.planner { display: grid; gap: 1.4rem; }
.planner-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1.2rem; border-top: 2px dashed rgba(11,16,25,.25); }
.planner-total b { font: 900 3rem/.9 var(--font-display); color: var(--red); }
.tickets-perks { display: grid; gap: .9rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tickets-perks li { display: flex; gap: .8rem; align-items: flex-start; }
.tickets-perks svg { width: 22px; height: 22px; color: var(--bone); background: var(--ink); border-radius: 50%; padding: 4px; flex: none; }
@media (max-width: 900px) {
  .tickets-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket-stub { width: auto; border-left: 0; border-top: 2.5px dashed rgba(255,250,246,.5); border-radius: 0 0 var(--radius-lg) var(--radius-lg); grid-auto-flow: column; justify-content: space-between; align-items: center; text-align: left; }
}

/* ---------- Venue ---------- */
.venue-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.map-card { position: relative; min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--line); background: var(--surface); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: var(--map-filter); }
.venue-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.25rem; }
.venue-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.venue-list dt, .venue-list .k { font: 800 var(--fs-micro)/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.venue-list .v { font-weight: 600; }
@media (max-width: 860px) { .venue-grid { grid-template-columns: 1fr; } .venue-list li { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; overflow: hidden; }
.final-cta .display { margin-bottom: .2em; }
.final-cta .cars { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 2rem; }
.final-cta .cars img { width: min(46%, 440px); }
.final-cta .cars img:first-child { transform: translateX(8%); }
.final-cta .cars img:last-child { position: relative; z-index: 1; } /* right car sits in front of the left one */

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 4px solid var(--red); padding-block: 64px 120px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-size: 1.1rem; color: var(--red); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-grid a { text-decoration: none; color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-logo { width: 260px; margin-bottom: 1.2rem; }
.supporters { display: flex; gap: 1.25rem; align-items: center; margin-top: .75rem; }
.supporters img { height: 38px; width: auto; }
.supporters .logo-mask { width: auto; height: 22px; max-width: none; color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Mobile sticky ticket bar ---------- */
.ticket-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 10px 10px 18px; border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.45), 4px 4px 0 var(--red);
  transform: translateY(140%); transition: transform .35s var(--ease);
}
.ticket-bar.is-visible { transform: none; }
.ticket-bar .tb-info { line-height: 1.15; }
.ticket-bar .tb-info b { display: block; font: 900 1.3rem/1 var(--font-display); text-transform: uppercase; }
.ticket-bar .tb-info span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5a5555; }
.ticket-bar .btn { --btn-shadow: var(--ink); min-height: 46px; }
@media (max-width: 760px) { .ticket-bar { display: flex; } }
[data-theme="light"] .ticket-bar { background: var(--ink); color: var(--paper); box-shadow: 0 12px 40px rgba(11,16,25,.3), 4px 4px 0 var(--red); }
[data-theme="light"] .ticket-bar .tb-info span { color: #b8b1ad; }
[data-theme="light"] .ticket-bar .btn { --btn-shadow: var(--ember); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Style guide page helpers
   ========================================================================== */
.sg-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.sg-section { padding-block: 64px; border-top: 1px solid var(--line); }
.sg-section > .container > h2 { margin-bottom: .25em; }
.sg-row { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; margin-top: 1.5rem; }
.sg-label { font: 700 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--text-muted); text-transform: none; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 1.5rem; }
.swatch { border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--line); background: var(--surface); }
.swatch .chip-color { height: 120px; }
.swatch .meta { padding: .8rem 1rem; display: grid; gap: .2rem; }
.swatch .meta b { font: 800 1.2rem/1 var(--font-display); text-transform: uppercase; }
.swatch .meta code { font-size: .78rem; color: var(--text-muted); }
.swatch .meta span { font-size: .78rem; color: var(--text-muted); line-height: 1.35; }
.type-row { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: baseline; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.type-row > :last-child { margin: 0; }
@media (max-width: 700px) { .type-row { grid-template-columns: 1fr; gap: .4rem; } }
.font-card { padding: 28px; }
.font-card .specimen { font-size: clamp(3rem, 8vw, 6rem); line-height: .9; margin: .5rem 0 1rem; }
.sg-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 1.5rem; }
.sg-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 1.5rem; }
.sg-panel { padding: 28px; border-radius: var(--radius-lg); border: 1.5px solid var(--line); }

/* ---------- Partner logos (SVG masks → recolour with `color`) ---------- */
.logo-mask {
  display: block; width: 100%; max-width: 220px; aspect-ratio: var(--ar, 4/1);
  background: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.logo-row { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; }
.logo-row .logo-mask { width: auto; height: 44px; max-width: none; }

/* ---------- Promo layout overrides ---------- */
.promo-layout { grid-template-columns: minmax(0, 1fr); }
.post-media { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.post-wide .post-body-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2rem; }
.post-wide h3 { margin: .4rem 0 .3rem; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(11,16,25,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; margin: auto; box-shadow: 8px 8px 0 var(--red); background: #fff; }
.lightbox-close {
  position: absolute; top: -18px; right: -14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--red); color: var(--bone); font: 700 1.6rem/1 var(--font-body); cursor: pointer;
}
.btn-ticket .price small { font-size: .7em; opacity: .8; margin-left: .1em; }

/* ---------- MACHINA theme band ---------- */
.machina { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 120px); border-block: 4px solid var(--red); }
.machina .halftone-field { position: absolute; inset: 0; color: var(--red); opacity: .2; -webkit-mask: linear-gradient(90deg, #000, transparent 70%); mask: linear-gradient(90deg, #000, transparent 70%); }
.machina-inner { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.machina-word { margin: 0; line-height: 0; }
.machina-word img { width: min(100%, 560px); height: auto; }
.machina-tag { font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--text); margin-bottom: 1rem; }
@media (max-width: 860px) { .machina-inner { grid-template-columns: 1fr; } }

/* ---------- Pesta Kopi card (collabs) ---------- */
.coffee-card {
  margin-top: clamp(14px, 1.6vw, 22px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center;
  background: var(--ink); color: var(--paper); border-color: rgba(246, 237, 230, .16);
}
.coffee-card .logo-mask { width: clamp(150px, 18vw, 220px); max-width: none; color: #f26b21; }
.coffee-card h3 { margin: .6rem 0 .3rem; font-size: 1.75rem; }
.coffee-card p { margin: 0; color: #b8b1ad; font-size: var(--fs-small); }
.coffee-card .badge-ink { background: var(--red); color: var(--bone); }
@media (max-width: 560px) { .coffee-card { grid-template-columns: 1fr; } }
.event-card .badge svg { width: 12px; height: 12px; }

/* Footer booth CTA */
.booth-cta { margin-top: 1rem; color: var(--text-muted); max-width: 36ch; }
.booth-cta p { margin: 0 0 .4rem; }
.booth-cta b { color: var(--text); }
.booth-cta .btn-whatsapp { --btn-bg: #25d366; --btn-fg: var(--ink); --btn-shadow: var(--red); margin: .5rem 0 .9rem; color: var(--ink); text-decoration: none; }
.booth-cta .btn-whatsapp svg { width: 1.25em; height: 1.25em; }
.organiser { margin-top: .75rem; display: flex; align-items: center; gap: .9rem; }
.organiser img { height: 64px; width: auto; }
.supporters .supporter-pesta-kopi { height: 52px; width: auto; }
.booth-cta a { color: var(--text); text-underline-offset: 3px; }

/* ==========================================================================
   3D booth map page (/map)
   ========================================================================== */
.map-main { padding-bottom: clamp(48px, 7vw, 96px); }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; padding-block: clamp(28px, 4vw, 48px) 20px; }
.map-head p { margin: 0; max-width: 46ch; }
.map-title { margin: 0; font-size: clamp(3rem, 7vw, 5.5rem); }

.map-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 14px; }
.map-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.map-search > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.map-search .input { padding-left: 2.6rem; }
.map-search .input::-webkit-search-cancel-button { cursor: pointer; }
.map-results {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--red);
}
.map-results li { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 3px; cursor: pointer; }
.map-results li span:last-child { margin-left: auto; font-size: var(--fs-micro); color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.map-results li:hover, .map-results li[aria-selected="true"] { background: color-mix(in srgb, var(--red) 14%, transparent); }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.map-filters .chip { min-height: 40px; }

.map-stage {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(420px, min(72svh, 56vw), 820px);
  border: 2px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 70% at 50% 35%, color-mix(in srgb, var(--red) 10%, transparent), transparent 70%),
    var(--bg);
  touch-action: none;
}
.map-stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.map-stage.is-fallback canvas, .map-stage.is-fallback .map-views, .map-stage.is-fallback .map-legend { display: none; }

.map-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.map-label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 800 .66rem/1 var(--font-body); font-variation-settings: "wdth" 112; letter-spacing: .1em; text-transform: uppercase;
  padding: .35em .6em; border-radius: 3px; color: var(--text); background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
}
.map-label[hidden] { display: none; }
.map-label.is-entrance { background: var(--red); color: var(--bone); border-color: transparent; font-size: .74rem; box-shadow: 3px 3px 0 var(--ink); }
.map-label.is-stage { background: var(--ink); color: var(--paper); border-color: transparent; }
.map-label.is-exit { background: var(--ink); color: var(--paper); border-color: transparent; }
.map-label.is-wc { padding: .3em .45em; font-size: .58rem; }

.map-tooltip {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  display: grid; gap: 2px; padding: .5rem .7rem; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red);
}
.map-tooltip b { font: 900 1.15rem/1 var(--font-display); text-transform: uppercase; }
.map-tooltip span { font-size: .7rem; color: #b8b1ad; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

.map-views {
  position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; gap: 6px;
}
.map-views-gap { height: 4px; }
.map-btn {
  width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  transition: border-color .15s, color .15s, transform .15s;
}
.map-btn:hover { border-color: var(--red); color: var(--red); }
.map-btn:active { transform: translateY(1px); }
.map-btn svg { width: 20px; height: 20px; }

.map-legend {
  margin: 12px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: .78rem; font-weight: 700;
}
.map-legend li { display: flex; align-items: center; gap: .5rem; }
.map-legend li b { color: var(--text-muted); font-weight: 800; }
.map-legend span, .dir-swatch { width: 12px; height: 12px; border-radius: 2px; flex: none; box-shadow: inset 0 0 0 1px rgba(11,16,25,.25); display: inline-block; }

.booth-card {
  position: absolute; z-index: 5; left: 12px; bottom: 12px; width: min(340px, calc(100% - 24px));
  padding: 18px 20px 20px; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--red);
  animation: card-in .25s var(--ease);
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.booth-card .eyebrow { margin-bottom: .4rem; }
.booth-swatch { position: absolute; top: 0; left: 20px; width: 44px; height: 6px; border-radius: 0 0 3px 3px; }
.booth-id { margin: 0 0 .2rem; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: .9; padding-right: 2rem; }
.booth-type { margin: 0 0 .6rem; font-weight: 700; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.booth-brand { margin: 0 0 1rem; }
.booth-note { margin: -.4rem 0 1rem; }
.booth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.booth-card-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
}
.booth-card-close:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.booth-card-close svg { width: 18px; height: 18px; }

.map-loading {
  position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 12px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--text-muted);
  background: var(--bg);
}
.map-loading[hidden] { display: none; }
.map-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-fallback { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; padding: 14px; background: #fff; color: var(--ink); }
.map-fallback[hidden] { display: none; }
.map-fallback img { width: 100%; height: 100%; object-fit: contain; }
.map-fallback p { margin: 0; font-size: var(--fs-small); text-align: center; }

.map-directory { padding-top: clamp(48px, 7vw, 88px); }
.dir-count { margin-left: .5rem; font: 800 .8rem/1 var(--font-body); color: var(--text-muted); }
.accordion summary .dir-swatch { width: 16px; height: 16px; margin-right: .75rem; }
.accordion summary { justify-content: flex-start; }
.accordion summary::after { margin-left: auto; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.dir-booth {
  min-height: 44px; padding: .4rem .6rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: 900 1.05rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  transition: border-color .15s, background .15s, color .15s;
}
.dir-booth:hover { border-color: var(--red); }
.dir-booth[aria-current="true"] { background: var(--red); border-color: var(--red); color: var(--bone); }

@media (max-width: 700px) {
  .map-app { width: 100%; }
  .map-toolbar { padding-inline: var(--gutter); }
  .map-search { max-width: none; }
  .map-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scrollbar-width: none; }
  .map-filters::-webkit-scrollbar { display: none; }
  .map-filters .chip { flex: none; }
  .map-stage { border-radius: 0; border-inline: 0; height: min(76svh, 640px); }
  .map-legend { padding-inline: var(--gutter); gap: 6px 14px; font-size: .72rem; }
  .booth-card { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .map-views { top: 8px; right: 8px; }
}

/* Landing teaser for the map */
.map-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.map-teaser-shot {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--line);
  box-shadow: 8px 8px 0 var(--red); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.map-teaser-shot:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--red); }
.map-teaser-shot img { width: 100%; height: auto; }
.map-teaser-shot .badge { position: absolute; top: 14px; left: 14px; }
@media (max-width: 860px) { .map-teaser { grid-template-columns: 1fr; } }
.map-tooltip[hidden], .map-results[hidden], .booth-card[hidden] { display: none; }

/* Mobile: centred hero copy, full-width buttons and countdown (artwork untouched) */
@media (max-width: 640px) {
  .hero-copy { text-align: center; }
  .hero-tagline, .hero-logo { margin-inline: auto; }
  .hero-meta { flex-direction: column; align-items: center; gap: 1rem; }
  .hero-venue { text-align: left; }
  .hero-copy .hero-ctas { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hero-copy .hero-ctas .btn { width: 100%; }
  .hero-note { margin-inline: auto; }
  .countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .countdown div { min-width: 0; }
}

/* ---------- Giveaway promo ---------- */
.giveaway { overflow: hidden; }
.giveaway .halftone-field { position: absolute; inset: 0; color: var(--red); opacity: .16; -webkit-mask: linear-gradient(250deg, #000, transparent 60%); mask: linear-gradient(250deg, #000, transparent 60%); }
.giveaway-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.giveaway h2 { margin-bottom: .2em; }
.giveaway-value { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: #f7d046; margin: 0 0 1rem; }
.giveaway-steps-title { margin: 2rem 0 1rem; color: var(--red); }
.giveaway-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; counter-reset: step; }
.giveaway-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
.giveaway-steps li::before {
  content: counter(step); grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: var(--bone);
  font: 900 1.3rem/1 var(--font-display); box-shadow: 3px 3px 0 var(--ember);
}
.giveaway-steps b { font-weight: 800; }
.giveaway-steps span { color: var(--text-muted); font-size: var(--fs-small); }

.poster-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); align-items: start; }
.poster-card {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 8px 8px 0 var(--red); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.poster-card:first-child { transform: rotate(-3deg); }
.poster-card:last-child { transform: rotate(2.5deg) translateY(36px); box-shadow: 8px 8px 0 var(--ember); }
.poster-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 12px 12px 0 var(--red); }
.poster-card img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .giveaway-grid { grid-template-columns: 1fr; }
  .poster-pair { padding-bottom: 36px; }
}

/* ---------- Activity feature (TF Skate Comp) ---------- */
.activity {
  position: relative; overflow: hidden; margin-top: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-lg); border: 2px solid var(--red);
}
.activity > * { position: relative; z-index: 6; }
.activity h3 { margin-bottom: .4em; }
.activity-facts { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .5rem; }
.activity-facts li { display: grid; grid-template-columns: 90px 1fr; gap: .75rem; font-weight: 600; }
.activity-facts .k { font: 800 var(--fs-micro)/1.6 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.activity-tags { margin-top: 1rem; display: grid; gap: .55rem; }
.activity-tags > div { display: flex; flex-wrap: wrap; gap: 8px; }
.activity .poster-pair { padding-bottom: 36px; }
@media (max-width: 900px) { .activity { grid-template-columns: 1fr; } }
