:root {
  --paper: #f7f3e8;
  --paper-2: #eee7d5;
  --stone: #d9d1bc;
  --ink: #15362a;
  --ink-deep: #0d271d;
  --terra: #b8511f;
  --terra-deep: #9b4117;
  --muted: #625c4d;

  --f-display: 'Gloock', 'Georgia', serif;
  --f-text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-data: 'Geist Mono', ui-monospace, 'Consolas', monospace; /* taste-skill-ignore: fonte de dados da marca (códigos e preços) */

  --s-display: clamp(3.25rem, min(7.6vw, 12.5svh), 7.5rem);
  --s-h2: clamp(2.25rem, min(5.4vw, 10svh), 5rem);
  --s-h3: clamp(1.75rem, 2.5vw, 2.25rem);
  --s-lead: clamp(1.375rem, 1.8vw, 1.625rem);
  --s-body: 1.0625rem;
  --s-small: 0.875rem;

  --margin: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(96px, 13vw, 200px);
  --radius: 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
::selection { background: var(--terra); color: var(--paper); }

.display, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
}
.display { font-size: var(--s-display); }
.h2 { font-size: var(--s-h2); }
.h3 { font-size: var(--s-h3); line-height: 1.02; letter-spacing: -0.02em; }
.code, .price { font-family: var(--f-data); font-variant-numeric: tabular-nums; }

main {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  background: var(--paper);
}

/* Buttons: square corners, one fill, decided once */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font-weight: 600;
  font-size: var(--s-body);
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-deep); }
.btn-terra { background: var(--terra-deep); color: var(--paper); }
.btn-terra:hover { background: var(--ink); }
.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--terra);
  transition: color 180ms ease, text-underline-offset 180ms var(--ease-out);
}
.link:hover { color: var(--terra-deep); text-underline-offset: 8px; }

/* Bar */
.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 84px;
  padding: 0 var(--margin);
  background: var(--paper);
  position: relative;
  z-index: 3;
}
.bar-brand img { width: 118px; height: auto; }
.bar-links { display: flex; justify-content: center; gap: clamp(16px, 2.6vw, 40px); }
.bar-links a { position: relative; font-weight: 500; text-decoration: none; padding: 6px 0; }
.bar-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--terra); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 220ms var(--ease-out);
}
.bar-links a:hover::after { transform: scaleX(1); }

/* Hero: the cover of the catalogue, cropped by the fold */
.hero {
  position: relative;
  height: calc(100svh - 84px);
  min-height: 560px;
}
.hero-photo { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transform-origin: 70% 60%;
  animation: drift 26s var(--ease-in-out) infinite alternate;
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }

.hero-card {
  position: absolute;
  z-index: 2;
  left: calc(var(--margin) + 6vw);
  top: clamp(32px, 7svh, 110px);
  width: min(760px, 54vw);
  min-height: calc(100% - clamp(32px, 7svh, 110px) + 22svh);
  padding: clamp(28px, min(4vw, 6svh), 56px) clamp(32px, 4vw, 56px);
  background: var(--paper);
  --scoop: 26px;
  -webkit-mask:
    radial-gradient(circle at 0 0, #0000 var(--scoop), #000 calc(var(--scoop) + 0.5px)) top left / 51% 51% no-repeat, /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
    radial-gradient(circle at 100% 0, #0000 var(--scoop), #000 calc(var(--scoop) + 0.5px)) top right / 51% 51% no-repeat, /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
    radial-gradient(circle at 0 100%, #000 0 0) bottom left / 51% 51% no-repeat, /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
    radial-gradient(circle at 100% 100%, #000 0 0) bottom right / 51% 51% no-repeat; /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
          mask:
    radial-gradient(circle at 0 0, #0000 var(--scoop), #000 calc(var(--scoop) + 0.5px)) top left / 51% 51% no-repeat, /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
    radial-gradient(circle at 100% 0, #0000 var(--scoop), #000 calc(var(--scoop) + 0.5px)) top right / 51% 51% no-repeat, /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
    radial-gradient(circle at 0 100%, #000 0 0) bottom left / 51% 51% no-repeat, /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
    radial-gradient(circle at 100% 100%, #000 0 0) bottom right / 51% 51% no-repeat; /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
}
.hero-seal {
  position: absolute;
  top: clamp(24px, min(3vw, 4svh), 44px);
  right: clamp(24px, 3vw, 44px);
  width: clamp(60px, min(6vw, 11svh), 92px);
  height: auto;
}
.hero-card .display { margin-top: clamp(16px, 3svh, 56px); }
.hero-card .display span { display: block; white-space: nowrap; }
.hero-lede {
  margin-top: clamp(14px, 2.6svh, 24px);
  max-width: 30ch;
  font-family: var(--f-display);
  font-size: var(--s-lead);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-facts { margin-top: clamp(10px, 2svh, 20px); display: grid; gap: 4px; color: var(--muted); }
.hero-actions { margin-top: clamp(16px, 3svh, 28px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* Intro: title and note */
.intro {
  padding: clamp(180px, 26svh, 280px) var(--margin) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}
.intro-top { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.intro-top .h2 { grid-column: 1 / 8; max-width: 9.5em; }
.intro-note { grid-column: 9 / 13; display: grid; gap: 14px; max-width: 46ch; }
.intro-note p:first-child { font-weight: 500; }

/* Menu sheets over a photograph */
.menu {
  position: relative;
  margin-top: var(--gap-section);
  padding: clamp(80px, 12svh, 140px) var(--margin);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  background: var(--ink);
}
.menu-ground { position: absolute; inset: 0; }
.menu-ground img {
  position: sticky; top: 0;
  width: 100%; height: 100svh;
  object-fit: cover;
}
.menu-left .menu-ground img { object-position: 30% 50%; }
.menu + .menu { margin-top: 0; }
.sheet {
  position: relative;
  z-index: 1;
  grid-column: 7 / 13;
  max-width: 680px;
  width: 100%;
  justify-self: end;
  padding: clamp(56px, 6vw, 80px) clamp(24px, 4vw, 64px);
  background: var(--paper);
  --sc: 14px;
  -webkit-mask:
    radial-gradient(var(--sc) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--sc) * 2.6) 51% repeat-x, /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
    radial-gradient(var(--sc) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--sc) * 2.6) 51% repeat-x; /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
          mask:
    radial-gradient(var(--sc) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--sc) * 2.6) 51% repeat-x, /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
    radial-gradient(var(--sc) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--sc) * 2.6) 51% repeat-x; /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
}
.menu-left .sheet { grid-column: 1 / 7; justify-self: start; }
.sheet-head { margin-bottom: 56px; }
.sheet-head .h3 { max-width: 12em; }
.sheet-head p { margin-top: 18px; max-width: 40ch; font-weight: 500; }
.group + .group { margin-top: 48px; }
.group-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--s-lead);
  letter-spacing: -0.01em;
  color: var(--terra-deep);
  margin-bottom: 8px;
}
.item {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  grid-template-areas: "code text price add";
  align-items: start;
  column-gap: 16px;
  padding: 14px 0;
}
.item .code { grid-area: code; padding-top: 4px; font-size: var(--s-small); color: var(--muted); }
.item-text { grid-area: text; }
.item h4 { font-size: var(--s-body); font-weight: 700; line-height: 1.3; }
.item-text p { margin-top: 4px; line-height: 1.5; }
.item .price { grid-area: price; font-size: var(--s-body); font-weight: 600; color: var(--terra-deep); padding-top: 1px; }
.sheet-foot { margin-top: 48px; font-size: var(--s-small); color: var(--muted); }

/* Add controls, created by app.js */
.add, .step-btn {
  grid-area: add;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: var(--s-lead); line-height: 1;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.add:hover { background: var(--ink); color: var(--paper); }
.add:active, .step-btn:active { transform: scale(0.9); }
.qty {
  grid-area: add;
  display: flex; align-items: center; gap: 6px;
}
.qty .step-btn { width: 34px; height: 34px; font-size: var(--s-body); }
.qty .step-btn.plus { background: var(--ink); color: var(--paper); }
.qty output { min-width: 18px; text-align: center; font-family: var(--f-data); font-weight: 600; }
.item.in-order h4 { color: var(--terra-deep); }
.item.pop { animation: pop 380ms var(--ease-out); }
@keyframes pop { 0% { transform: translateX(0); } 35% { transform: translateX(6px); } 100% { transform: translateX(0); } }

/* Brasa: square plate, spare text */
.brasa {
  margin-top: var(--gap-section);
  min-height: 88svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-2);
}
.brasa-plate {
  align-self: center;
  justify-self: center;
  width: min(calc(100% - 80px), calc(100svh - 80px));
  margin: 40px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink);
}
.brasa-plate video { width: 100%; height: 100%; object-fit: cover; }
.brasa-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px var(--margin) 40px 24px;
}
.tabs { display: flex; gap: 28px; }
.tabs button {
  background: none; border: 0; padding: 6px 0;
  font-size: var(--s-body); font-weight: 600;
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}
.tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--terra); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 260ms var(--ease-out);
}
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button:hover { color: var(--ink); }
.brasa-body .h3 { font-size: var(--s-h2); max-width: 8em; }
.brasa-desc { margin-top: 32px; max-width: 34ch; font-size: var(--s-lead); font-family: var(--f-display); line-height: 1.25; transition: opacity 200ms ease; }
.brasa-price { margin-top: 28px; display: flex; gap: 16px; align-items: baseline; }
.brasa-price .code { color: var(--muted); }
.brasa-price .price { font-size: var(--s-h3); font-weight: 600; color: var(--terra-deep); }
.brasa-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; }
.cell {
  min-height: 72px;
  display: flex; align-items: center; padding: 0 24px;
  border: 0; font-weight: 600; font-size: var(--s-body); text-align: left; text-decoration: none;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.cell:active { transform: scale(0.98); }
.cell-ink { background: var(--ink); color: var(--paper); }
.cell-ink:hover { background: var(--ink-deep); }
.cell-tone { background: var(--stone); color: var(--ink); }
.cell-tone:hover { background: #cfc6ae; }

/* Pairing: stacking folders */
.pairing { margin-top: var(--gap-section); padding: 0 var(--margin); }
.pairing-title { max-width: 9em; margin-bottom: 48px; }
.folder {
  position: sticky;
  top: calc(var(--i) * 72px + 16px);
  min-height: 86svh;
  margin: 0 calc(var(--margin) * -1);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 72px 1fr;
  column-gap: 24px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}
.f1 { --i: 0; background: var(--stone); color: var(--ink); }
.f2 { --i: 1; background: var(--ink); color: var(--paper); }
.f3 { --i: 2; background: var(--terra-deep); color: var(--paper); }
.f4 { --i: 3; background: var(--paper-2); color: var(--ink); }
.f5 { --i: 4; background: var(--ink-deep); color: var(--paper); }
.folder-band {
  grid-column: 1 / 7;
  grid-row: 1;
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--margin);
}
.folder-band .h3 { white-space: nowrap; }
.folder-tag { font-size: var(--s-small); opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-body {
  grid-column: 1 / 7;
  grid-row: 2;
  align-self: start;
  padding: clamp(28px, 5svh, 56px) var(--margin) 40px;
  max-width: 600px;
}
.folder-pair {
  font-family: var(--f-display);
  font-size: var(--s-h3);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.folder-body p:last-child { max-width: 46ch; }
.folder-photo {
  grid-column: 7 / 13;
  grid-row: 1 / 3;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--ink-deep);
  color: transparent;
  font-size: 0;
}
.pairing .folder:last-child { margin-bottom: 0; }

/* Kits: tickets */
.kits {
  padding: var(--gap-section) var(--margin);
  background: var(--ink);
  color: var(--paper);
}
.kits-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin-bottom: 72px; }
.kits-head .h2 { grid-column: 1 / 8; max-width: 8.5em; }
.kits-note { grid-column: 9 / 13; max-width: 40ch; }
.tickets { display: grid; gap: 40px; justify-items: center; }
.ticket {
  --ground: var(--ink);
  position: relative;
  width: min(64vw, 960px);
  aspect-ratio: 2.3 / 1;
  max-height: calc(100svh - 120px);
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  background: var(--paper);
  color: var(--ink);
}
.ticket:nth-child(2) { transform: translateX(4vw); }
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  left: 70%;
  width: 28px; height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  background: var(--ground);
}
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.ticket-photo { overflow: hidden; }
.ticket-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.ticket:hover .ticket-photo img { transform: scale(1.04); }
.ticket-main {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px;
}
.ticket-name { font-family: var(--f-display); font-weight: 400; font-size: var(--s-h3); letter-spacing: -0.03em; line-height: 0.95; }
.ticket-lines { display: grid; gap: 8px; }
.ticket-stub {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  padding: 32px 28px;
  border-left: 6px dotted var(--ground);
  background: var(--paper-2);
}
.ticket-price {
  font-family: var(--f-data);
  font-weight: 600;
  font-size: var(--s-h2);
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--terra-deep);
  line-height: 1;
}
.ticket-action {
  margin-top: 28px;
  min-height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; border: 0;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.ticket-action:hover { background: var(--terra-deep); }
.ticket-action:active { transform: scale(0.97); }

/* Steps: drag row of moments */
.steps { padding: var(--gap-section) 0 var(--gap-section); background: var(--paper); overflow: hidden; }
.steps-head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--margin); }
.steps-nav { display: flex; gap: 8px; }
.sq {
  width: 48px; height: 48px; border: 0;
  background: var(--ink); color: var(--paper);
  font-size: var(--s-lead);
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.sq:hover { background: var(--terra-deep); }
.sq:active { transform: scale(0.92); }
.steps-progress { margin: 28px var(--margin) 48px; height: 6px; background: var(--stone); }
.steps-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0.2); transition: transform 200ms linear; }
.steps-row {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--margin);
  padding: 0 var(--margin) 8px;
  scrollbar-width: none;
}
.steps-row::-webkit-scrollbar { display: none; }
.step { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.step h3 { font-size: var(--s-body); font-weight: 700; }
.step p { margin-top: 10px; min-height: 4.65em; }
.step img { margin-top: var(--gap); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.step img.crop-right { object-position: 78% 50%; }
.steps-row:focus-visible { outline-offset: -3px; }

/* Footer: the back of the card, revealed by the curtain */
.back {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 96px var(--margin) 40px;
  background: var(--ink-deep);
}
.postcard {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 420px;
  padding: 72px clamp(28px, 5vw, 72px) 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px 64px;
  background: var(--paper);
  --sc: 50px;
  -webkit-mask: radial-gradient(var(--sc) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--sc) * 2) 100% repeat-x; /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
          mask: radial-gradient(var(--sc) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--sc) * 2) 100% repeat-x; /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
  -webkit-mask-position: 50% -24px;
          mask-position: 50% -24px;
}
.postcard-msg p { margin-top: 16px; max-width: 36ch; }
.postcard-msg .sign { color: var(--muted); }
.postcard-logo { width: 150px; height: auto; margin-top: 32px; }
.postcard-addr { position: relative; padding-top: 112px; }
.stamp {
  position: absolute; top: 0; right: 0;
  width: 92px; height: auto;
  transform: rotate(-6deg);
  transition: transform 300ms var(--ease-out);
}
.postcard:hover .stamp { transform: rotate(4deg) scale(1.04); }
.postcard-addr ul { display: grid; gap: 12px; }
.postcard-addr a { text-decoration: none; font-weight: 500; transition: color 180ms ease; }
.postcard-addr a:hover { color: var(--terra-deep); text-decoration: underline; text-underline-offset: 5px; }
.imprint { grid-column: 1 / -1; align-self: end; text-align: center; font-size: var(--s-small); color: var(--muted); }

/* Curtain: the back of the card slides out from under the page */
@supports (animation-timeline: view()) {
  .postcard {
    animation: curtain linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  @keyframes curtain { from { transform: translateY(-45%); } to { transform: none; } }
}

/* Order slip: the live thing, floats */
.slip {
  position: fixed;
  z-index: 20;
  right: var(--margin);
  bottom: var(--margin);
  width: min(400px, calc(100vw - 2 * var(--margin)));
  color: var(--ink);
  animation: slip-in 420ms var(--ease-out);
}
@keyframes slip-in { from { transform: translateY(120%); } to { transform: none; } }
.slip-bar {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border: 0;
  background: var(--terra-deep);
  color: var(--paper);
  box-shadow: 0 18px 40px -12px rgba(13, 39, 29, 0.55); /* taste-skill-ignore: bilhete flutuante (overlay) */
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.slip-bar:hover { background: var(--ink); }
.slip-bar:active { transform: scale(0.98); }
.slip-count { font-weight: 600; }
.slip-total { font-family: var(--f-data); font-weight: 600; text-align: right; }
.slip-open { padding-left: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.slip-panel {
  position: absolute;
  right: 0; bottom: 72px;
  width: 100%;
  max-height: min(70svh, 620px);
  overflow: auto;
  padding: 36px 24px 24px;
  background: var(--paper);
  box-shadow: 0 24px 60px -16px rgba(13, 39, 29, 0.5); /* taste-skill-ignore: bilhete flutuante (overlay) */
  --sc: 9px;
  -webkit-mask: radial-gradient(var(--sc) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--sc) * 2.4) 100% repeat-x; /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
          mask: radial-gradient(var(--sc) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--sc) * 2.4) 100% repeat-x; /* taste-skill-ignore: máscara que recorta festão/picote, não é preenchimento */
  transform-origin: 100% 100%;
  animation: panel-in 260ms var(--ease-out);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.slip-title { font-family: var(--f-display); font-weight: 400; font-size: var(--s-lead); letter-spacing: -0.02em; }
.slip-close { background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: var(--s-small); }
.slip-items li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name sum" "meta qty";
  gap: 2px 12px;
  padding: 12px 0;
}
.slip-items .n { grid-area: name; font-weight: 600; }
.slip-items .m { grid-area: meta; font-size: var(--s-small); color: var(--muted); font-family: var(--f-data); }
.slip-items .s { grid-area: sum; font-family: var(--f-data); font-weight: 600; text-align: right; }
.slip-items .qty { grid-area: qty; justify-self: end; }
.slip-sums { margin-top: 12px; padding-top: 16px; background: var(--paper); display: grid; gap: 6px; }
.slip-sums div { display: flex; justify-content: space-between; }
.slip-sums dd { font-family: var(--f-data); }
.slip-sums [data-sum="disc"] { color: var(--terra-deep); }
.slip-total-row { margin-top: 6px; font-weight: 700; }
.slip-hint { margin-top: 12px; padding: 12px 14px; background: var(--paper-2); font-size: var(--s-small); }
.slip-hint:empty { display: none; }
.slip-send { width: 100%; margin-top: 18px; min-height: 56px; }

/* Entrances (only when the script runs) */
.js [data-rise] { opacity: 0; transform: translateY(28px); animation: rise 900ms var(--ease-out) forwards; }
.js [data-rise]:nth-of-type(1) { animation-delay: 120ms; }
.js .hero-lede[data-rise] { animation-delay: 220ms; }
.js .hero-facts[data-rise] { animation-delay: 300ms; }
.js .hero-actions[data-rise] { animation-delay: 380ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js [data-reveal], .js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease-out), transform 820ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .brasa-plate[data-reveal] { transform: scale(1.04); }
.js .is-in[data-reveal], .js .is-in[data-reveal-group] > * { opacity: 1; transform: none; }
.js .folder .folder-body, .js .folder .folder-photo { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
.js .folder .folder-photo { transform: scale(1.05); transition-delay: 90ms; }
.js .folder.is-in .folder-body, .js .folder.is-in .folder-photo { opacity: 1; transform: none; }

/* Short desktop screens (notebooks with 125% scaling) */
@media (min-width: 701px) and (max-height: 780px) {
  .folder { top: calc(var(--i) * 56px + 8px); grid-template-rows: 56px 1fr; min-height: 80svh; }
  .folder-band .h3 { font-size: var(--s-lead); }
  .bar { height: 72px; }
  .bar-brand img { width: 100px; }
  .hero { height: calc(100svh - 72px); }
}

/* Tablet */
@media (max-width: 1080px) {
  .hero-card { width: min(620px, 64vw); }
  .intro-top .h2 { grid-column: 1 / -1; }
  .intro-note { grid-column: 1 / 10; margin-top: 32px; }
  .sheet, .menu-left .sheet { grid-column: 2 / 12; justify-self: center; }
  .folder-band { grid-column: 1 / -1; }
  .folder-band .h3 { white-space: normal; }
  .ticket { width: 88vw; }
  .ticket:nth-child(2) { transform: none; }
}

/* Phone: its own composition */
@media (max-width: 700px) {
  :root { --s-body: 1rem; }
  .bar { height: 68px; grid-template-columns: auto 1fr; }
  .bar-brand img { width: 96px; }
  .bar-links { display: none; }
  .bar-action { justify-self: end; min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
  .hero { height: auto; min-height: 0; padding: 96px 12px 0; }
  .hero-photo { height: 74svh; bottom: auto; }
  .hero-card {
    position: relative;
    left: 0; top: 0;
    width: 100%;
    min-height: 0;
    padding: 40px 24px 48px;
    --scoop: 18px;
  }
  .hero-card .display { font-size: 14vw; margin-top: 40px; }
  .hero-seal { width: 60px; top: 24px; right: 24px; }
  .intro { padding-top: 72px; display: block; }
  .intro-top { display: block; }
  .intro-top .h2 { font-size: 11vw; }
  .intro-note { margin-top: 24px; }
  .menu { display: block; padding: 48px 10px; }
  .sheet { padding: 48px 20px; }
  .item { grid-template-columns: 1fr auto auto; grid-template-areas: "code price add" "text text text"; align-items: center; column-gap: 12px; row-gap: 6px; padding: 14px 0; }
  .item .code { padding-top: 0; }
  .item .price { padding-top: 0; }
  .brasa { display: block; padding-bottom: 32px; }
  .brasa-plate { margin: 16px; }
  .brasa-text { padding: 8px var(--margin) 0; }
  .brasa-body { margin-top: 28px; }
  .brasa-actions { grid-template-columns: 1fr; margin-top: 32px; }
  .cell { min-height: 60px; }
  .pairing-title { font-size: 11vw; }
  .folder {
    top: calc(var(--i) * 52px + 8px);
    min-height: 70svh;
    display: flex; flex-direction: column;
  }
  .folder-band { min-height: 52px; padding: 12px 20px; flex-wrap: wrap; gap: 4px 12px; }
  .folder-band .h3 { font-size: var(--s-lead); }
  .folder-tag { display: none; }
  .folder-photo { order: 2; aspect-ratio: 4 / 3; height: auto; }
  .folder-body { order: 3; padding: 24px 20px 32px; box-sizing: border-box; }
  .folder-pair { font-size: var(--s-lead); }
  .kits-head { display: block; margin-bottom: 48px; }
  .kits-head .h2 { font-size: 11vw; }
  .kits-note { margin-top: 20px; }
  .ticket { width: calc(100vw - 20px); aspect-ratio: auto; max-height: none; grid-template-columns: 1fr; }
  .ticket-photo { aspect-ratio: 16 / 10; }
  .ticket::before, .ticket::after { left: auto; top: auto; margin: 0; }
  .ticket::before { left: -14px; bottom: calc(196px - 14px); }
  .ticket::after { right: -14px; bottom: calc(196px - 14px); }
  .ticket-main { padding: 32px 24px; gap: 24px; }
  .ticket-lines { grid-template-columns: 1fr; }
  .ticket-stub { height: 196px; border-left: 0; border-top: 6px dotted var(--ground); }
  .steps-nav { display: none; }
  .step { flex-basis: 72vw; }
  .step img { margin-top: calc(var(--gap) * 0.45); }
  .steps-row { gap: 16px; }
  .postcard {
    grid-template-columns: 1fr;
    padding: 64px 22px 24px;
    --sc: 30px;
  }
  .postcard-addr { padding-top: 0; }
  .stamp { position: static; width: 64px; margin-bottom: 20px; }
  .slip { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .hero-photo img { animation: none; transform: none; }
  .js [data-rise], .js [data-reveal], .js [data-reveal-group] > *, .js .folder .folder-body, .js .folder .folder-photo { opacity: 1; transform: none; }
}
