/* Pastificio Varriale — one motif: the face of the bronze die */

:root {
  /* colour: carta da zucchero, semolina, bronze */
  --navy: #14214a;
  --bg: #14214a;
  --surface: #1c2c5e;
  --paper: #f2e0ae;
  --paper-2: #ead398;
  --paper-3: #f8ecc9;
  --ink: #f2e0ae;
  --muted: #c4b48a;
  --accent: #d9944a;
  --accent-ink: #14214a;
  --bronze: #a98544;
  --bronze-2: #c9a05a;
  --blue-1: #0d1736;
  --blue-2: #1f3577;
  --blue-3: #2f4f9c;
  --blue-4: #7f9ad0;
  --blue-5: #b7c8e8;

  /* type: Bodoni for the label, Bricolage for reading */
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Bricolage Grotesque", system-ui, sans-serif;
  --s-small: 0.875rem;
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s-lead: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  --s-head: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem);
  --s-display: clamp(2.3rem, 4.6vw, 4.25rem);

  --margin: clamp(16px, 2vw, 28px);
  --gap: clamp(120px, 14vw, 200px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--s-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 50; background: var(--paper); color: var(--navy); padding: 10px 16px; }
.skip:focus { top: 12px; }
.soft { color: var(--muted); }

.h-head {
  font-family: var(--display);
  font-size: var(--s-head);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-lead {
  font-family: var(--display);
  font-size: var(--s-lead);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* buttons: the die is round, so every button is a full pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--text); font-size: var(--s-body); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms ease;
}
.btn:hover { background: var(--bronze-2); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: var(--s-small); }
.link { font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color 160ms ease; }
.link:hover { color: var(--accent); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--margin);
  background: var(--bg);
}
.bar__mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.die-logo { width: 38px; height: 38px; transition: transform 700ms var(--ease-out); }
.bar__mark:hover .die-logo { transform: rotate(60deg); }
.die-logo__face { fill: var(--bronze-2); }
.die-logo__holes { fill: var(--bg); }
.bar__nav { display: flex; gap: 28px; margin-left: auto; }
.bar__nav a { text-decoration: none; font-weight: 500; position: relative; }
.bar__nav a::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateX(-50%) scale(.4); opacity: 0; transition: transform 200ms var(--ease-out), opacity 200ms ease; }
.bar__nav a:hover::after, .bar__nav a:focus-visible::after { transform: translateX(-50%) scale(1); opacity: 1; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
  padding: 0 var(--margin) var(--margin);
  min-height: calc(100svh - var(--bar-h));
}
.hero__card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--navy);
  min-height: 640px;
}
.holes-band { width: 100%; height: 56px; color: var(--navy); flex: none; }
.holes-band__pin { fill: var(--paper); }
.hero__label {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 48px clamp(24px, 4vw, 64px);
  gap: 0;
}
.hero__seal { width: 72px; height: 72px; margin-bottom: 36px; transition: transform 900ms var(--ease-out); }
.hero__seal-holes { fill: var(--paper); }
.hero__card:hover .hero__seal { transform: rotate(120deg); }
.hero__title {
  font-family: var(--display);
  font-size: var(--s-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__title .line { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; padding-bottom: 0.06em; white-space: nowrap; vertical-align: top; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); animation: line-up 1100ms var(--ease-out) forwards; }
.js .hero__title .line + .line > span { animation-delay: 140ms; }
@keyframes line-up { to { transform: none; } }
.hero__lede { margin-top: 32px; max-width: 36ch; font-size: var(--s-body); }
.hero__label .btn { margin-top: 36px; background: var(--navy); color: var(--paper); }
.hero__label .btn:hover { background: var(--blue-2); }
.hero__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; padding: 0 24px 28px; font-size: var(--s-small); font-weight: 500; }
.hero__links a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hero__links a:hover { color: var(--blue-3); }

.hero__picture { position: relative; overflow: hidden; background: var(--surface); min-height: 640px; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__picture figcaption { position: absolute; left: 20px; bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(20, 33, 74, .72); color: var(--paper); font-size: var(--s-small); }

/* ---------- about: inset panel, round portrait ---------- */
.about { padding: var(--gap) var(--margin) 0; }
.about__panel {
  position: relative; overflow: hidden;
  background: var(--surface);
  min-height: 110svh;
  display: grid; grid-template-columns: 58fr 42fr; gap: 48px;
  padding: 56px clamp(24px, 4vw, 56px) 0;
}
.about__left { position: relative; display: flex; flex-direction: column; }
.about__left .h-head { max-width: 15ch; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: 36px 48px; margin: 64px 0 0; }
.figures div { display: grid; gap: 6px; }
.figures dt { font-family: var(--display); font-size: var(--s-head); font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.figures dd { margin: 0; font-size: var(--s-small); color: var(--muted); max-width: 22ch; }
.about__portrait {
  margin-top: auto; translate: 0 20%;
  width: min(38vw, 620px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: var(--bronze);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__right { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; padding-top: 8px; padding-bottom: 56px; max-width: 460px; }
.about__block { display: grid; gap: 12px; }
.about__archive { display: grid; gap: 12px; margin-top: 16px; }
.about__archive { overflow: hidden; }
.about__archive img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.25) contrast(1.05); transform: scale(1.08); transition: transform 2400ms var(--ease-out); }
.about__archive.is-in img { transform: none; }
.about__archive figcaption { font-size: var(--s-small); color: var(--muted); }

/* ---------- formats: object on the die ---------- */
.formats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  grid-template-rows: auto auto;
  padding: 136px var(--margin) 0;
  scroll-margin-top: -40px;
}
.formats__stage {
  grid-column: 4 / 10; grid-row: 1 / 3;
  position: relative; align-self: center;
  width: min(78vh, 100%); aspect-ratio: 1; justify-self: center; margin-top: 32px;
}
.mini-die { width: 56px; height: 56px; flex: none; overflow: visible; }
.die__holes { transform-box: view-box; transform-origin: 0 0; transition: transform 900ms var(--ease-out); }
.die__rim { fill: var(--bronze); }
.die__face { fill: var(--bronze-2); }
.die__holes { fill: var(--bg); }
.die__holes .pin { fill: var(--bronze-2); }
.die__holes > * { transition: opacity 300ms ease; }
.formats__photos { position: absolute; inset: 0; }
.formats__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: rotate(-14deg) scale(.94);
  transition: opacity 420ms ease, transform 900ms var(--ease-out);
}
.formats__head { display: flex; align-items: center; gap: 16px; }
.formats__photo.is-on { opacity: 1; transform: none; }

.formats__index { grid-column: 1 / 5; grid-row: 1 / 3; align-self: end; position: relative; z-index: 2; }
.formats__heading, .formats__list button {
  font-family: var(--display); font-size: var(--s-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500;
}
.formats__heading { color: var(--ink); margin-bottom: 20px; }
.formats__list button { font-size: var(--s-lead); white-space: nowrap; letter-spacing: -0.01em; line-height: 1.45; }
.formats__list { list-style: none; margin: 0; padding: 0; }
.formats__list button {
  display: flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left;
  color: var(--muted);
  transition: color 200ms ease, transform 240ms var(--ease-out);
}
.formats__list button::before {
  content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--accent);
  transform: scale(.4); opacity: 0; transition: transform 240ms var(--ease-out), opacity 200ms ease; flex: none;
}
.formats__list button:hover { color: var(--ink); transform: translateX(6px); }
.formats__list button { color: #a99a73; }
.formats__list button[aria-selected="true"] { color: var(--ink); }
.formats__list button[aria-selected="true"]::before { transform: scale(1); opacity: 1; }

.formats__fact {
  grid-column: 10 / 13; grid-row: 1 / 3; align-self: end; justify-self: end;
  display: grid; gap: 14px; max-width: 320px; position: relative; z-index: 2;
}
.formats__price { font-family: var(--display); font-size: var(--s-lead); font-weight: 600; white-space: nowrap; }
.formats__price .soft { font-weight: 500; }
.timer { display: grid; gap: 12px; margin-top: 8px; }
.timer__btn { justify-self: start; }
.timer__btn[aria-pressed="true"] { background: var(--paper); color: var(--navy); }
.timer__read { display: grid; gap: 2px; }
.timer__clock { font-family: var(--display); font-size: var(--s-lead); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.timer__msg { font-size: var(--s-small); color: var(--muted); }
.timer.is-done .timer__clock { color: var(--accent); }

/* ---------- band: the die at work ---------- */
.band { margin: var(--gap) 0 0; }
.band__video { width: 100%; height: min(86svh, 56.25vw); object-fit: cover; background: var(--blue-1); }
.band figcaption { padding: 16px var(--margin) 0; font-size: var(--s-small); color: var(--muted); }

/* ---------- how: accordion ---------- */
.how { padding: var(--gap) var(--margin) 0; }
.how__intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.how__intro .h-head { grid-column: 1 / 7; }
.how__lede { grid-column: 7 / 12; font-size: var(--s-lead); line-height: 1.35; font-family: var(--text); }
.accordion { display: flex; height: 560px; margin-top: 64px; }
.stage { position: relative; flex: 1 1 0; min-width: 0; background: var(--tone); color: var(--tone-ink); transition: flex-grow 450ms var(--ease-out); overflow: hidden; }
.stage.is-open { flex-grow: 7.5; }
.stage h3 { position: absolute; inset: 0; z-index: 2; }
.stage__tab {
  width: 100%; height: 100%; background: none; border: 0; cursor: pointer; color: inherit;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 24px 20px;
  font-family: var(--display); font-size: var(--s-lead); font-weight: 600; letter-spacing: -0.01em;
  writing-mode: vertical-rl; transform: rotate(180deg);
  transition: opacity 200ms ease;
}
.stage__tab:hover { opacity: .8; }
.stage.is-open h3 { position: absolute; inset: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.stage__body {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity 300ms ease 0ms, visibility 0s linear 300ms;
  min-width: 640px;
}
.stage.is-open .stage__body { opacity: 1; visibility: visible; transition: opacity 400ms ease 200ms, visibility 0s; }
.stage__name { grid-column: 1; grid-row: 1; padding: 32px; font-family: var(--display); font-size: var(--s-head); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.stage__text { grid-column: 1; grid-row: 2; padding: 0 32px 32px; max-width: 36ch; }
.stage__body img { grid-column: 2; grid-row: 1 / 3; width: 100%; height: 100%; object-fit: cover; }

/* ---------- week: a field of semolina ---------- */
.week {
  margin-top: var(--gap);
  padding: 120px var(--margin) 120px;
  background: var(--paper); color: var(--navy);
  --muted: #6a5a33;
}
.week .soft { color: #8a7444; }
.week__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.week__title { display: grid; gap: 16px; }
.week__today { color: #6a5a33; }
.week__head .btn { flex: none; background: var(--navy); color: var(--paper); }
.week__head .btn:hover { background: var(--blue-2); }
.week__agenda { display: grid; grid-template-columns: 150px 1fr; gap: 40px; margin-top: 56px; }
.days { display: grid; gap: 6px; align-content: start; }
.day {
  height: 64px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 16px; border: 0; cursor: pointer; text-align: left;
  background: var(--paper-2); color: var(--navy);
  transition: background-color 180ms ease, transform 180ms var(--ease-out);
}
.day:hover { background: #e2c886; transform: translateX(4px); }
.day[aria-selected="true"] { background: var(--navy); color: var(--paper); transform: none; }
.day__name { font-size: var(--s-body); font-weight: 600; line-height: 1.2; }
.day__date { font-size: var(--s-small); line-height: 1.2; }
.sessions { display: grid; gap: 4px; align-content: start; }
.session {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 24px;
  min-height: 76px; padding: 12px 24px;
  background: var(--paper-3);
  animation: rise 420ms var(--ease-out) both;
}
.session:nth-child(even) { background: var(--paper-2); }
.session:nth-child(2) { animation-delay: 50ms; } .session:nth-child(3) { animation-delay: 100ms; }
.session:nth-child(4) { animation-delay: 150ms; } .session:nth-child(5) { animation-delay: 200ms; }
.session__time { font-size: var(--s-lead); font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.session__title { font-weight: 600; line-height: 1.3; }
.session__note { font-size: var(--s-small); color: var(--muted); }
.session__who { font-size: var(--s-small); font-weight: 500; text-align: right; display: flex; align-items: center; gap: 10px; }
.session__who::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dot, var(--bronze)); flex: none; }
.session--open { --dot: var(--blue-3); }
.week__plain { margin-top: 24px; max-width: 60ch; }

.visit { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin-top: 120px; }
.visit__text { display: grid; gap: 20px; align-content: start; }
.visit__text p { max-width: 46ch; }
.visit__hours { margin: 0; display: grid; gap: 10px; }
.visit__hours div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.visit__hours dt { font-weight: 600; }
.visit__hours dd { margin: 0; }
.visit__picture { border-radius: 999px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.visit__picture img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.visit__picture:hover img { transform: scale(1.04); }

/* ---------- order: the coupon ---------- */
.order { padding: 120px var(--margin); }
.coupon {
  --notch: 28px;
  position: relative;
  margin: 0 auto; max-width: 1180px;
  display: grid; grid-template-columns: 46fr 54fr;
  background: var(--paper); color: var(--navy);
  min-height: 520px;
}
.coupon__stub {
  position: relative; overflow: hidden; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 48px;
}
.coupon__notch { position: absolute; z-index: 2; left: 46%; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); translate: -50% 0; }
.coupon__notch--top { top: -15px; }
.coupon__notch--bottom { bottom: -15px; }
.coupon__perf { position: absolute; z-index: 2; left: 46%; top: 24px; width: 8px; height: calc(100% - 48px); translate: -50% 0; color: var(--bg); }
.coupon__title { font-family: var(--display); font-size: var(--s-head); font-weight: 500; line-height: 1; letter-spacing: -0.02em; max-width: 10ch; }
.coupon__stub p { max-width: 30ch; position: relative; z-index: 1; }
.coupon__plate { position: absolute; right: -80px; top: 46%; width: 230px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; translate: 0 -40%; transition: rotate 1200ms var(--ease-out); }
.coupon:hover .coupon__plate { rotate: 25deg; }
.coupon__plate img { width: 100%; height: 100%; object-fit: cover; }
.coupon__fields { display: flex; flex-direction: column; gap: 10px; padding: 48px; justify-content: center; }
.coupon__fields input, .coupon__fields select {
  height: 54px; width: 100%; padding: 0 20px;
  border: 0; border-radius: 0; background: var(--paper-3); color: var(--navy);
  font-size: var(--s-body);
  transition: background-color 160ms ease;
}
.coupon__fields select { appearance: none; background-image: none; cursor: pointer; }
.coupon__fields input::placeholder { color: #6a5a33; opacity: 1; }
.coupon__fields input:hover, .coupon__fields select:hover { background: #fff6dc; }
.coupon__fields input:focus-visible, .coupon__fields select:focus-visible { outline: 3px solid var(--navy); outline-offset: 0; }
.coupon__fields input[aria-invalid="true"] { outline: 3px solid #a3341f; outline-offset: 0; }
.coupon__submit { width: 100%; height: 56px; margin-top: 6px; background: var(--navy); color: var(--paper); }
.coupon__submit:hover { background: var(--blue-2); }
.coupon__note { font-size: var(--s-small); color: #5d4f2c; margin-top: 4px; }

/* ---------- footer: the name, built from blocks ---------- */
.foot { padding: 0 var(--margin) 32px; background: var(--blue-1); }
.foot__view { margin: 0 calc(var(--margin) * -1); position: relative; overflow: hidden; }
.foot__view img { width: 100%; height: min(78svh, 62vw); object-fit: cover; object-position: 50% 60%; }
.foot__view figcaption { padding: 16px var(--margin) 0; font-size: var(--s-small); color: var(--muted); }
.foot__word {
  margin-top: 72px;
  font-family: var(--display); font-weight: 500;
  font-size: 28.4vw; line-height: 0.78; letter-spacing: -0.045em;
  color: var(--paper); white-space: nowrap; text-align: center;
  padding-bottom: 0.08em;
}
.foot__cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 56px; font-size: 0.9375rem; }
.foot__cols nav { grid-column: span 2; display: grid; align-content: start; gap: 6px; }
.foot__cols nav:first-child { grid-column: 1 / 3; }
.foot__contact { grid-column: 9 / 13; font-style: normal; line-height: 1.7; }
.foot__h { font-family: var(--display); font-size: var(--s-lead); font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.foot a { text-decoration: none; transition: color 160ms ease; }
.foot a:hover { color: var(--accent); }
.foot__cols nav a { justify-self: start; }
.foot__last { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; font-size: var(--s-small); color: var(--muted); }
.foot__last .btn { color: var(--accent-ink); flex: none; }
.foot__last p { line-height: 1.7; }
.foot .foot__credit { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.foot .foot__credit:hover { color: var(--accent); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero__video { animation: breathe 18s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 400ms ease; }
  .hero__video { animation: none; }
  .session { animation: none; }
  .stage, .die__holes, .formats__photo, .visit__picture img, .coupon__plate, .die-logo, .about__archive img { transition: none; }
  .js .hero__title .line > span { animation: none; transform: none; }
  .formats__photo { transform: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__picture { order: -1; min-height: 56svh; }
  .hero__card { min-height: 0; }
  .hero__title { font-size: clamp(2.3rem, 7vw, 4.25rem); }
  .about__panel { grid-template-columns: 1fr 1fr; }
  .formats { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; row-gap: 48px; min-height: 0; }
  .formats__stage { grid-column: 1 / -1; grid-row: 1; width: min(72vw, 560px); }
  .formats__index { grid-column: 1; grid-row: 2; align-self: start; }
  .formats__fact { grid-column: 2; grid-row: 2; align-self: start; max-width: none; }
  .how__intro .h-head { grid-column: 1 / -1; }
  .how__lede { grid-column: 1 / -1; }
  .stage__body { min-width: 520px; }
  .visit { grid-template-columns: 1fr; }
  .foot__cols nav { grid-column: span 4; }
  .foot__cols nav:first-child { grid-column: 1 / 5; }
  .foot__contact { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  :root { --bar-h: 64px; --gap: 104px; }
  .bar { gap: 16px; }
  .bar__nav { display: none; }
  .bar .btn { margin-left: auto; }
  .bar__mark { font-size: 1.625rem; }
  .hero { padding: 0 12px 12px; }
  .hero__picture { min-height: 48svh; }
  .hero__card { margin-top: -24px; z-index: 1; }
  .holes-band { height: 40px; }
  .hero__label { padding: 36px 20px 28px; }
  .hero__brand { margin-bottom: 28px; }
  .hero__title { font-size: 2.3rem; }
  .hero__label .btn { width: 100%; }

  .about { padding-left: 10px; padding-right: 10px; }
  .about__panel { grid-template-columns: 1fr; padding: 40px 20px 0; gap: 40px; min-height: 0; }
  .about__left { display: contents; }
  .about__left .h-head { order: 0; }
  .about__right { order: 1; padding-bottom: 0; }
  .figures { order: 0; margin: 0; gap: 28px 20px; }
  .about__portrait { order: 2; width: 86vw; justify-self: center; translate: 0 25%; margin-top: 0; }

  .formats { display: flex; flex-direction: column; gap: 32px; }
  .formats__index, .formats__fact { min-width: 0; width: 100%; }
  .formats__stage { width: 86vw; align-self: center; }
  .formats__heading { font-size: var(--s-lead); }
  .formats__list { display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .formats__list li { flex: none; scroll-snap-align: start; }
  .formats__list button { font-size: var(--s-lead); }
  .formats__list button:hover { transform: none; }

  .accordion { flex-direction: column; height: auto; margin-top: 40px; }
  .stage { flex: none; }
  .stage h3 { position: static; }
  .stage__tab { writing-mode: horizontal-tb; transform: none; height: 64px; align-items: center; padding: 0 20px; font-size: 1.25rem; }
  .stage.is-open h3 { width: auto; height: auto; }
  .stage.is-open .stage__tab { display: none; }
  .stage__body { position: static; display: none; min-width: 0; grid-template-columns: 1fr; grid-template-rows: auto; }
  .stage.is-open .stage__body { display: grid; }
  .stage__name { padding: 24px 20px 12px; font-size: 2rem; }
  .stage__text { padding: 0 20px 24px; }
  .stage__body img { grid-column: 1; grid-row: auto; aspect-ratio: 4 / 3; height: auto; }

  .week { padding: 88px var(--margin); }
  .week__head { flex-direction: column; align-items: stretch; }
  .week__head .btn { width: 100%; }
  .week__agenda { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .days { grid-template-columns: repeat(7, 1fr); gap: 4px; position: sticky; top: var(--bar-h); z-index: 2; background: var(--paper); padding: 8px 0; }
  .day { height: 56px; padding: 0; align-items: center; }
  .day:hover { transform: none; }
  .day__name { font-size: 0.9375rem; }
  .session { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px; }
  .session__time { grid-column: 1; }
  .session__who { grid-column: 2; grid-row: 1; }
  .session__main { grid-column: 1 / -1; }
  .visit { margin-top: 80px; gap: 32px; }
  .visit__hours div { grid-template-columns: 1fr; gap: 0; }
  .visit__picture { border-radius: 999px; aspect-ratio: 3 / 2; }

  .order { padding: 88px 12px; }

  .foot { padding-top: 0; }
  .foot__word { margin-top: 48px; }
  .foot__cols nav, .foot__cols nav:first-child { grid-column: span 6; }
  .foot__last { flex-direction: column; align-items: flex-start; }
}
.perf-h { display: none; }
@media (max-width: 1080px) { .perf-v { display: none; } .perf-h { display: inline; } }

/* the coupon stands upright below desktop width */
@media (max-width: 1080px) {
  .coupon { grid-template-columns: 1fr; min-height: 0; }
  .coupon__notch { left: auto; top: calc(var(--stub-h, 50%) - 15px); bottom: auto; translate: 0 0; }
  .coupon__notch--top { left: -15px; }
  .coupon__notch--bottom { right: -15px; }
  .coupon__perf { left: 24px; top: calc(var(--stub-h, 50%) - 4px); width: calc(100% - 48px); height: 8px; translate: 0 0; }
  .coupon__stub { padding: 48px 48px 56px; min-height: 0; }
  .coupon__plate { position: relative; right: auto; top: auto; translate: none; width: min(64%, 300px); align-self: flex-end; margin-right: -60px; }
  .coupon__fields { padding: 40px 48px 48px; }
  .coupon__stub p { max-width: 46ch; }
}
@media (max-width: 680px) { .coupon__stub { padding: 36px 24px 48px; } .coupon__fields { padding: 32px 24px 36px; } }
