/* Layout: an exhibition catalogue. Tattoos hang as numbered plates on a dark umber wall,
   captioned like museum labels; Bodoni carries the Italian fine-art voice, mono carries the labels. */
:root {
  --wall: #0f0d0c;
  --wall-raised: #191513;
  --line: rgba(236, 228, 216, 0.14);
  --bone: #ece4d8;
  --bone-dim: #a39a8f;
  --ember: #ef7a32;
  --cobalt: #6d8fea;

  --f-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --f-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.75rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.4rem, 2.2vw, 1.9rem);
  --step-3: clamp(2.4rem, 5.4vw, 4.75rem);
  --step-4: clamp(3rem, 9vw, 8.5rem);
  --step-5: clamp(3.6rem, 16.5vw, 17rem);

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* Lenis (inlined from lenis@1.3.26/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: var(--header-h); }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--bone);
  font-family: var(--f-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* film grain over the whole wall */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: var(--wall); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.mono {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}
.label { color: var(--bone-dim); margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--bone); color: var(--wall); padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 16px; }

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
  margin: 0;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--ember); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 14px;
  background: linear-gradient(to bottom, rgba(15, 13, 12, 0.85), rgba(15, 13, 12, 0));
  transition: transform 0.6s var(--ease);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header:focus-within { transform: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand-mark {
  font-family: var(--f-display);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand-mark i { color: var(--ember); }
.brand-name { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.site-nav a, .header-cta {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  justify-self: end;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.header-cta:hover { background: var(--bone); color: var(--wall); border-color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) 32px;
  gap: clamp(24px, 4vw, 48px);
}
.hero-eyebrow {
  align-self: end;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0; color: var(--bone-dim);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); }
.hero-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--step-5);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line-inner { display: inline-block; will-change: transform; }
.hero-title .line--italic { font-style: italic; text-align: right; margin-top: -0.04em; }
.hero-title .line--italic .line-inner { padding-right: 0.04em; }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero-lede { margin: 0; max-width: 44ch; font-size: var(--step-1); line-height: 1.5; color: var(--bone); text-wrap: pretty; }
.hero-facts { margin: 0; display: grid; gap: 6px; }
.hero-facts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hero-facts dt { color: var(--bone-dim); }
.hero-facts dd { margin: 0; text-align: right; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--bone-dim); }
.scroll-line { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--ember); animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- Pinned reveal ---------- */
/* the stage is pinned by JS; the section must stay height:auto so the pin spacer can push the page */
.reveal { position: relative; }
.reveal-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.reveal-frame {
  margin: 0;
  position: absolute;
  inset: 0;
  clip-path: inset(0% 0% 0% 0%);
  will-change: clip-path;
}
.reveal-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; will-change: transform; }
.reveal-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 13, 12, 0.9) 0%, rgba(15, 13, 12, 0) 45%);
}
.reveal-copy {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 64px);
  display: grid; gap: 14px;
}
.reveal-kicker { margin: 0; color: var(--bone-dim); }
.reveal-line {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.reveal-line em { color: var(--ember); }

/* ---------- Statement ---------- */
.statement {
  padding: clamp(96px, 16vw, 220px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr);
  gap: 24px;
}
.statement-text {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
  text-wrap: pretty;
}
.statement-text .w { opacity: 1; transition: color 0.2s; }

/* ---------- La Mostra (horizontal) ---------- */
.mostra { position: relative; }
.mostra-pin {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-top: calc(var(--header-h) + 8px);
  overflow: hidden;
  overflow: clip;
}
.mostra-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 8px 32px;
  padding: 0 var(--gutter) 24px;
}
.mostra-sub { margin: 0; color: var(--bone-dim); justify-self: end; text-align: right; }
.mostra-progress { grid-column: 1 / -1; height: 1px; background: var(--line); position: relative; }
.mostra-progress span { position: absolute; inset: 0; background: var(--ember); transform-origin: left; transform: scaleX(0); }
/* Without the pinned scroll (no JS, reduced motion, phones) the wall is a native sideways strip. */
.mostra-viewport {
  min-width: 0; display: flex; align-items: center;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px 0;
}
.mostra-viewport::-webkit-scrollbar { display: none; }
.mostra.is-pinned .mostra-viewport { overflow: visible; scroll-snap-type: none; padding: 0; }
.mostra-hint > span { display: none; }
.mostra-hint .hint-scroll { display: inline; }
.mostra.is-pinned .mostra-hint .hint-scroll { display: none; }
.mostra.is-pinned .mostra-hint .hint-pinned { display: inline; }
.mostra-track {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  gap: clamp(28px, 4vw, 72px);
  align-items: flex-start;
  width: max-content;
}
.mostra.is-pinned .mostra-track { will-change: transform; }
/* min-content: the photo sets the plate width; the label wraps beneath it */
.plate { flex: none; display: grid; grid-template-columns: min-content; gap: 14px; scroll-snap-align: center; }
.plate-img {
  display: block;
  padding: 0;
  border: 0;
  background: var(--wall-raised);
  cursor: zoom-in;
  height: min(60svh, 640px);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
/* hover zoom uses the individual `scale` property so it never fights the scroll-driven transform */
.plate-img img { height: 100%; width: auto; max-width: none; transition: scale 1.2s var(--ease); }
.plate-img:hover img { scale: 1.04; }
.plate-label { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: baseline; max-width: 34ch; }
.plate-label .mono:first-child { color: var(--ember); }
.plate-label h3 {
  margin: 0; font-family: var(--f-display); font-weight: 400; font-style: italic;
  font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.01em;
}
.plate-label .mono:last-child { grid-column: 2; color: var(--bone-dim); }
.plate--end { align-self: center; }
.plate-end { width: min(78vw, 460px); display: grid; gap: 24px; padding-right: var(--gutter); }
.plate-end-title { margin: 0; font-family: var(--f-display); font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.plate-end-title em { display: block; margin-top: 0.3em; color: var(--ember); font-size: 0.48em; letter-spacing: 0; overflow-wrap: anywhere; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; width: fit-content;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}
.link-arrow::after { content: "\2197"; transition: transform 0.4s var(--ease); }
.link-arrow:hover { color: var(--ember); border-color: var(--ember); }
.link-arrow:hover::after { transform: translate(3px, -3px); }

/* ---------- Portraits ---------- */
.portraits { padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(64px, 10vw, 140px); }
.portraits-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 8vw, 120px);
}
.portraits-copy { margin: 0; max-width: 46ch; color: var(--bone-dim); font-size: var(--step-1); line-height: 1.55; }
.portraits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); align-items: start; }
.p-col { display: grid; gap: clamp(16px, 3vw, 48px); }
.p-col:nth-child(2) { margin-top: clamp(40px, 12vw, 180px); }
.p-col:nth-child(3) { margin-top: clamp(20px, 5vw, 80px); }
.p-item { margin: 0; display: grid; gap: 10px; }
.p-img { display: block; border: 0; padding: 0; background: var(--wall-raised); overflow: hidden; cursor: zoom-in; }
.p-img img { width: 100%; transition: scale 1.2s var(--ease); }
.p-img:hover img { scale: 1.05; }
.p-item figcaption { color: var(--bone-dim); }

/* ---------- About ---------- */
.about {
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.about-media { position: relative; }
.about-figure { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 10px; }
.about-frame { overflow: hidden; background: var(--wall-raised); }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about-figure figcaption { color: var(--bone-dim); }
.about-body { min-width: 0; }
.about-intro { font-size: var(--step-1); line-height: 1.6; max-width: 54ch; margin: 28px 0 56px; text-wrap: pretty; }
.chrono { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chrono li {
  display: grid; grid-template-columns: minmax(96px, 9rem) minmax(0, 1fr);
  gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.chrono-year {
  font-family: var(--f-display); font-size: var(--step-2); font-style: italic; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: var(--ember);
}
.chrono p { margin: 0; max-width: 52ch; }

/* ---------- Awards ---------- */
.awards {
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas: "head figure" "list figure";
  gap: 40px clamp(32px, 6vw, 96px);
  background: var(--wall-raised);
}
.awards-head { grid-area: head; display: grid; gap: 16px; }
.awards-copy { margin: 0; color: var(--bone-dim); }
.awards-list { grid-area: list; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); align-self: start; }
.award {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr) auto;
  gap: 8px 28px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.award-place {
  display: inline-block;
  font-family: var(--f-display); font-size: var(--step-4); line-height: 0.9; letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
  min-width: 0.95em; /* same column width for 2nd and 3rd so the categories line up */
}
.award-place sup { font-size: 0.32em; font-style: italic; vertical-align: top; position: relative; top: 0.3em; letter-spacing: 0; color: var(--ember); }
.award-cat { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); }
.award-where { color: var(--bone-dim); text-align: right; }
.awards-figure { grid-area: figure; margin: 0; display: grid; gap: 10px; align-self: start; }
.awards-figure img { width: 100%; height: auto; object-fit: cover; }
.awards-figure figcaption { color: var(--bone-dim); }

/* ---------- Studios ---------- */
.studios { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.city {
  padding: clamp(48px, 8vw, 120px) var(--gutter);
  display: grid; gap: 24px; align-content: start;
  position: relative; overflow: hidden;
}
.city + .city { border-left: 1px solid var(--line); }
.city::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--ember);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease);
}
.city:hover::before { transform: scaleX(1); }
.city-flag { margin: 0; color: var(--bone-dim); }
.city-name {
  margin: 0; font-family: var(--f-display); font-weight: 400; font-size: var(--step-4);
  line-height: 0.9; letter-spacing: -0.04em; font-variation-settings: "opsz" 96;
}
.city-name em { color: var(--bone); }
.city-info { margin: 0; display: grid; gap: 8px; max-width: 420px; }
.city-info div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.city-info dt { color: var(--bone-dim); }
.city-info dd { margin: 0; text-align: right; }
.city-address { text-decoration: none; transition: color 0.3s; }
.city-address:hover, .city-address:focus-visible { color: var(--ember); }
.city-address address { font-style: normal; }
.clock { font-variant-numeric: tabular-nums; }

/* ---------- Booking ---------- */
.book {
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.book-intro { display: grid; gap: 24px; align-content: start; }
.book-intro > p { margin: 0; max-width: 44ch; font-size: var(--step-1); }
.book-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--bone-dim); max-width: 46ch; }
.book-notes li { padding-left: 22px; position: relative; }
.book-notes li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 12px; height: 1px; background: var(--ember); }

.book-form { display: grid; gap: 22px; min-width: 0; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label, .field legend {
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bone-dim); padding: 0;
  display: flex; justify-content: space-between; gap: 12px;
}
.field output { color: var(--ember); font-variant-numeric: tabular-nums; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  font: inherit;
  font-size: var(--step-1);
  padding: 8px 0 10px;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%), linear-gradient(-45deg, transparent 50%, var(--bone-dim) 50%); background-position: right 10px center, right 4px center; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--wall); }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(163, 154, 143, 0.55); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ember); }
.field input[type="range"] { width: 100%; accent-color: var(--ember); margin: 14px 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { position: relative; text-transform: none; letter-spacing: 0; font-family: var(--f-text); font-size: var(--step-0); color: var(--bone); cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choices span { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 100px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.choices input:checked + span { background: var(--bone); color: var(--wall); border-color: var(--bone); }
.choices input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 3px; }
.form-error { margin: 0; color: var(--ember); }

/* field label as plain text (groups that are not a single input or a fieldset) */
.field-label {
  margin: 0; font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bone-dim);
  display: flex; justify-content: space-between; gap: 12px;
}
.field-count { color: var(--bone-dim); text-transform: none; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.field-hint { margin: 0; color: var(--bone-dim); font-size: 0.95rem; max-width: 52ch; }
.field-msg { margin: 0; color: var(--ember); font-size: var(--step--1); }
.field-msg:empty { display: none; }
.field[hidden] { display: none; }

/* image pickers: thumbnails stay on the device (object URLs) */
.field label.file-btn {
  display: inline-flex; justify-content: center; padding: 12px 22px; color: var(--bone);
  border: 1px solid var(--line); border-radius: 100px; width: fit-content; cursor: pointer;
}
.field label.file-btn:hover { background: var(--bone); color: var(--wall); }
.file-btn:focus-within { outline: 2px solid var(--ember); outline-offset: 3px; }
.thumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 76px; height: 76px; border: 1px solid var(--line); background: var(--wall-raised); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-name { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; font-family: var(--f-mono); font-size: 0.6rem; color: var(--bone-dim); overflow-wrap: anywhere; text-align: center; }
.thumb-remove {
  position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--wall); color: var(--bone);
  font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: background 0.3s, color 0.3s;
}
.thumb-remove::before { content: ""; position: absolute; inset: -8px; } /* 44px touch target */
.thumb-remove:hover { background: var(--bone); color: var(--wall); }
.thumb-remove:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.thumbs--ticket .thumb { width: 52px; height: 52px; }

/* availability: one row per stretch of days */
.ranges { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 36px; align-items: end; gap: 12px; }
.range-field { display: grid; gap: 4px; min-width: 0; }
.field .range-label { font-size: 0.65rem; }
.range-dash { padding-bottom: 12px; color: var(--bone-dim); }
.field input[type="date"] { min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 2.75em; -webkit-appearance: none; appearance: none; text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.75); cursor: pointer; }
.range-remove {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--bone-dim); font-size: 1.1rem; cursor: pointer; padding: 0; margin-bottom: 4px;
  transition: background 0.3s, color 0.3s;
}
.range-remove:hover { background: var(--bone); color: var(--wall); }
.range-remove:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.range-remove[hidden] { display: inline-block; visibility: hidden; }
.text-btn {
  justify-self: start; background: none; border: 0; padding: 6px 0; color: var(--bone);
  font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  border-bottom: 1px solid var(--line); transition: color 0.3s, border-color 0.3s;
}
.text-btn:hover { color: var(--ember); border-color: var(--ember); }
.text-btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.text-btn[hidden] { display: none; }
.choices--small span { padding: 6px 14px; font-size: 0.9rem; }
.ticket-attach { margin: 0; color: var(--bone); font-size: 0.95rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 100px; border: 1px solid var(--ember);
  background: var(--ember); color: var(--wall);
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; width: fit-content;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.btn:hover { background: var(--bone); border-color: var(--bone); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn--ghost:hover { background: var(--bone); color: var(--wall); }
.ticket { border: 1px solid var(--line); padding: 20px; display: grid; gap: 14px; background: var(--wall-raised); }
.ticket-label { margin: 0; color: var(--bone-dim); }
.ticket-text { margin: 0; white-space: pre-wrap; font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.6; overflow-wrap: anywhere; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticket-status { margin: 0; min-height: 1.5em; color: var(--ember); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-name {
  margin: 0 0 24px;
  font-family: var(--f-display); font-style: italic;
  font-size: 21vw; line-height: 0.8; letter-spacing: -0.05em;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--bone-dim);
  font-variation-settings: "opsz" 96;
  transform-origin: left bottom;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--bone-dim); }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--ember); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; background: #0a0807; color: var(--bone);
}
.lightbox::backdrop { background: rgba(10, 8, 7, 0.7); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in 0.5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox-figure { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 24px var(--gutter) 0; place-items: center; }
.lightbox-figure img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; }
.lightbox-figure figcaption { color: var(--bone-dim); text-align: center; }
.lightbox-ui { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 16px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 20px); }
.lightbox-ui button { background: none; border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--f-mono); font-size: var(--step--1); }
.lightbox-ui button:hover { border-color: var(--ember); color: var(--ember); }
#lightbox-count { font-variant-numeric: tabular-nums; color: var(--bone-dim); }

/* ---------- Cursor ---------- */
/* The outer box is moved by GSAP; the inner disc scales, so the two transforms never collide. */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: none;
}
.has-cursor .cursor { display: block; }
.cursor span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--ember); color: var(--wall);
  transform: scale(0); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.cursor.is-active span { transform: scale(1); opacity: 1; }
.has-cursor [data-lightbox] { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
  .awards { grid-template-columns: 1fr; grid-template-areas: "head" "list" "figure"; }
  .awards-figure { max-width: 420px; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .brand-name { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-title .line--italic { text-align: left; padding-left: 0.6em; }
  .statement { grid-template-columns: 1fr; }
  .mostra-pin { min-height: 0; padding-top: 96px; }
  .mostra-head { grid-template-columns: 1fr; }
  .mostra-sub { justify-self: start; text-align: left; }
  .mostra-hint .hint-scroll { display: none; }
  .mostra-hint .hint-swipe { display: inline; }
  .plate-img { height: min(58svh, 520px); }
  .plate-label { max-width: min(78vw, 34ch); }
  .portraits-head { grid-template-columns: 1fr; }
  .portraits-grid { grid-template-columns: 1fr 1fr; }
  .p-col:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: 0; }
  .p-col:nth-child(3) .p-item:last-child { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-figure { position: static; max-width: 520px; }
  .studios { grid-template-columns: 1fr; }
  .city + .city { border-left: 0; border-top: 1px solid var(--line); }
  .book { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .award { grid-template-columns: auto minmax(0, 1fr); }
  .award-where { grid-column: 1 / -1; text-align: left; }
  .chrono li { grid-template-columns: 1fr; gap: 6px; }
  .hero-facts div { flex-direction: column; gap: 0; }
  .hero-facts dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--ember); }
@media (max-width: 380px) {
  .range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .range-dash { display: none; }
}
.file-btn.is-disabled { opacity: 0.4; pointer-events: none; }
@media (max-width: 520px) {
  .field input[type="date"] { font-size: var(--step-0); }
}

/* phones: image picker and date ranges as full-width blocks */
@media (max-width: 520px) {
  .field label.file-btn { width: 100%; box-sizing: border-box; }
  .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 10px 10px 0 0; }
  .thumb { width: auto; height: auto; aspect-ratio: 1; }
  .ranges { gap: 12px; }
  .range {
    position: relative; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch;
    padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  }
  .range-dash { display: none; }
  .range-remove { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; margin: 0; }
  .range-remove[hidden] { display: none; }
  .range-field { padding-right: 40px; }
  .range-field + .range-dash + .range-field { padding-right: 0; }
  .field #add-range {
    justify-self: stretch; width: 100%; padding: 12px 22px; text-align: center;
    border: 1px dashed var(--line); border-radius: 100px;
  }
}
