/* Popoyo's Secret · design proposal
   Brand colours: gold poster paper, black linocut ink, pale neon yellow, lantern red. */

:root {
  --gold: #d9b45f;
  --ink: #140f0a;
  --night: #0f0c09;
  --night-2: #221b13;
  --yellow: #fffd80;
  --red: #b3301b;
  --red-ink: #fffd80;
  --pale: #efd98f;

  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --m: 32px;                       /* page margin, everywhere */
  --s-small: 15px;
  --s-body: 18px;
  --s-say: 22px;
  --s-h2: clamp(48px, 6vw, 96px);
  --s-giant: clamp(88px, 9.8vw, 150px);
  --s-shout: clamp(110px, 13vw, 190px);

  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 900px) { :root { --m: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gold);
  color: var(--ink);
  font: 400 var(--s-body)/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.ask :focus-visible, .lineup :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--ink); color: var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display, .h2, .giant, .hero-title, .night-title, .ask-title, .step-name {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  text-transform: lowercase;
  letter-spacing: -0.035em;
}
.h2 { font-size: var(--s-h2); line-height: .9; }
.h3 { font: 700 var(--s-say)/1.2 var(--text); }
.body { font-size: var(--s-body); line-height: 1.55; max-width: 52ch; }
.statement { font: 500 clamp(24px, 2.4vw, 34px)/1.22 var(--text); letter-spacing: -0.01em; max-width: 30ch; }

.mark { display: block; width: 210px; color: var(--ink); transition: transform .3s var(--ease); }
.mark img { display: block; width: 100%; height: auto; }
.mark:hover { transform: rotate(-3deg); }
.mark-small { width: 180px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--red); color: var(--red-ink);
  font: 700 var(--s-body)/1 var(--text);
  text-decoration: none;
  border-radius: 0;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); background: #c8381f; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-light { background: var(--yellow); color: var(--ink); }
.btn-light:hover { background: #fff; }

.text-link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-underline-offset .2s, opacity .2s;
}
.text-link:hover { text-underline-offset: 9px; }

/* ---------------- Hero: narrow talk, wide headline ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 34% 1fr;
  background: var(--gold);
  overflow: hidden;
}
.hero-left { padding: var(--m); display: flex; flex-direction: column; }
.hero-say { margin-top: calc(30svh - 90px); font-size: var(--s-say); line-height: 1.35; max-width: 24ch; }
.hero-left .btn { margin-top: 32px; align-self: flex-start; }
.hero-right {
  --pic-top: max(48svh, calc(var(--s-giant) * 2 + 150px));
  /* the photo always gets at least 380px; on short windows the hero grows instead of the photo shrinking */
  --pic-h: max(calc(100svh - var(--pic-top)), 380px);
  min-height: calc(var(--pic-top) + var(--pic-h));
  padding: var(--m) var(--m) 0 0; position: relative; display: flex; flex-direction: column;
}
.links { display: flex; gap: 32px; font-size: var(--s-small); font-weight: 500; }
.links a { text-decoration: none; transition: opacity .2s; }
.links a:hover { opacity: .6; }
.hero-title {
  margin-top: 6svh;
  font-size: var(--s-giant);
  line-height: .86;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; }
.hero-pic {
  position: absolute; left: 0; right: var(--m);
  top: var(--pic-top); height: var(--pic-h);
}
.hero-pic { overflow: hidden; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.count {
  position: absolute; left: 0; top: calc(var(--pic-top) - 56px);
  width: 260px; padding: 18px 20px 20px;
  background: var(--ink); color: var(--yellow);
  z-index: 2;
}
.count-fig { font: 900 48px/1 var(--display); font-variation-settings: "opsz" 144, "SOFT" 100; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.count-text { margin-top: 8px; font-size: var(--s-small); line-height: 1.35; }

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-left { display: contents; }
  .mark { order: 0; margin: var(--m) var(--m) 0; align-self: flex-start; width: 150px; }
  .hero-right { order: 1; padding: 0 var(--m); display: contents; }
  .links { order: 0; position: absolute; top: calc(var(--m) + 4px); right: var(--m); gap: 18px; }
  .links a:not(:first-child):not(:last-child) { display: none; }
  .hero-title { order: 2; margin: 48px var(--m) 0; font-size: 15vw; line-height: .85; }
  .hero-say { order: 3; margin: 24px var(--m) 0; font-size: var(--s-body); }
  .hero-left .btn { order: 4; margin: 24px var(--m) 0; align-self: stretch; }
  .hero-pic { order: 6; position: relative; inset: auto; height: auto; margin-top: 40px; }
  .hero-pic img { aspect-ratio: 4 / 3; height: auto; }
  .count { order: 7; position: relative; inset: auto; width: 64vw; margin: -56px 0 0 var(--m); }
}

/* ---------------- About: gold band with the shell print ---------------- */
.about {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: center;
  padding: 160px var(--m);
  background: var(--pale);
  overflow: hidden;
}
.about-text { grid-column: 1 / 7; display: grid; gap: 32px; position: relative; z-index: 1; }
.about-print { grid-column: 7 / 13; }
.about-print img { width: 100%; mix-blend-mode: multiply; filter: contrast(1.25) sepia(.25); }
.about-chip {
  position: absolute; width: 11vw; right: 40%; top: 72px;
  mix-blend-mode: multiply; filter: contrast(1.3); transform: rotate(8deg);
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; padding: 96px var(--m); row-gap: 40px; }
  .about-text, .about-print { grid-column: 1; }
  .about-chip { width: 26vw; right: 6vw; top: auto; bottom: 40px; }
}

/* ---------------- Lineup: giant word, filled bars ---------------- */
.lineup {
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap: 96px;
  padding: 160px var(--m);
  background: var(--night);
  color: var(--yellow);
}
.lineup-col { container-type: inline-size; }
.giant { font-size: 37cqw; line-height: .78; margin-left: -.04em; }
.bars { margin-top: 28px; display: grid; gap: 6px; }
.bar { background: var(--night-2); transition: background-color .2s; }
.bar:hover { background: #2d2419; }
.bar summary {
  min-height: 60px; padding: 0 18px;
  display: grid; grid-template-columns: 7.5em 1fr 20px; align-items: center; gap: 12px;
  cursor: pointer; list-style: none;
  font-size: var(--s-body);
}
.bar summary::-webkit-details-marker { display: none; }
.bar-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-names { color: #f4ecc0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-next .bar-date::after { content: " · next"; color: var(--red-ink); font-weight: 500; }
.plus { position: relative; width: 20px; height: 20px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.plus::after { transform: rotate(90deg); }
.bar[open] .plus::after { transform: rotate(0); }
.sets { padding: 4px 18px 8px calc(18px + 7.5em + 12px); display: grid; gap: 14px; }
.sets li { display: flex; justify-content: space-between; font-size: var(--s-body); }
.sets li span:last-child { font-variant-numeric: tabular-nums; color: #f4ecc0; }
.bar-ticket { display: inline-block; margin: 12px 18px 22px calc(18px + 7.5em + 12px); font-weight: 700; text-underline-offset: 5px; }
.roster { align-self: end; display: grid; gap: 32px; max-width: 640px; }
.roster-names { display: flex; flex-wrap: wrap; font: 700 clamp(22px, 2.4vw, 34px)/1.2 var(--display); font-variation-settings: "opsz" 72, "SOFT" 100; letter-spacing: -0.01em; color: #f4ecc0; }
.roster-names li { white-space: nowrap; }
.roster-names li:not(:last-child)::after { content: "/"; margin: 0 .3em; }
.roster .text-link { color: var(--yellow); }
@media (max-width: 1100px) {
  .lineup { grid-template-columns: 1fr; gap: 72px; padding: 112px var(--m); }
  .lineup-col { max-width: 640px; }
}
@media (max-width: 600px) {
  .bar summary { grid-template-columns: 1fr 20px; row-gap: 2px; padding: 12px 16px; }
  .bar-names { grid-column: 1; grid-row: 2; white-space: normal; font-size: var(--s-small); }
  .plus { grid-row: 1 / 3; grid-column: 2; }
  .sets { padding: 4px 16px 8px; }
  .bar-ticket { margin: 12px 16px 20px; }
}

/* ---------------- The night: prints dropped on the headline ---------------- */
.night {
  position: relative;
  height: 100svh; min-height: 680px;
  background: var(--red);
  color: var(--red-ink);
  display: grid; place-items: center;
  overflow: hidden;
}
.night-title {
  position: relative; z-index: 2;
  display: grid; text-align: center;
  font-size: var(--s-shout); line-height: .85;
}
.print {
  position: absolute; z-index: 1;
  padding: 8px; background: #fff;
  transition: transform .2s var(--ease);
}
.print:hover { transform: rotate(0) scale(1.02); }
.print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.print-a { width: 22vw; left: 9vw; top: 10svh; transform: rotate(-8deg); }
.print-a img { object-position: 30% 30%; }
.print-b { width: 22vw; right: 9vw; top: 7svh; transform: rotate(6deg); }
.print-b img { object-position: 50% 40%; }
.print-c { width: 20vw; right: 12vw; bottom: 7svh; transform: rotate(-4deg); }
.print-c img { aspect-ratio: 4 / 3; object-position: 62% 72%; }
.night-note { position: absolute; left: var(--m); bottom: var(--m); max-width: 30ch; font-size: var(--s-body); }
@media (max-width: 900px) {
  .night { height: auto; min-height: 0; padding: 96px 0 160px; }
  .night { padding: 300px 0 340px; }
  .night-title { font-size: 21vw; }
  .print-a { width: 40vw; left: 6vw; top: 40px; }
  .print-b { width: 40vw; left: auto; right: 6vw; top: auto; bottom: 96px; }
  .night-note { bottom: 24px; }
  .print-c { display: none; }
  .night-note { font-size: var(--s-small); right: var(--m); }
}

/* ---------------- Getting there: accordion of tinted panels ---------------- */
.route { padding: 160px var(--m); background: var(--gold); }
.route-intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.route-intro .h2 { grid-column: 1 / 6; }
.route-intro .body { grid-column: 7 / 12; }
.steps { margin-top: 64px; display: flex; height: 540px; }
.step {
  position: relative; flex: 1 1 0; min-width: 0;
  background: var(--tone); color: var(--fg);
  transition: flex-grow .45s var(--ease);
  overflow: hidden;
}
.step.is-open { flex-grow: 6.2; }
.step-tab {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; padding: 24px 0 24px 20px;
  font: 700 var(--s-body)/1 var(--text); text-align: left;
}
.step-tab span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; transition: opacity .2s; }
.step:not(.is-open) .step-tab:hover span { opacity: .7; }
.step.is-open .step-tab { pointer-events: none; }
.step.is-open .step-tab span { opacity: 0; }
.step-body {
  position: absolute; inset: 0; padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity .3s .15s;
  min-width: 720px;
}
.step.is-open .step-body { opacity: 1; visibility: visible; }
.step-name { grid-column: 1; font-size: 48px; line-height: .95; }
.step-body p { grid-column: 1; align-self: end; max-width: 36ch; font-size: var(--s-body); }
.step-body .text-link { grid-column: 1; margin-top: 16px; }
.step-body img { grid-column: 2; grid-row: 1 / 4; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .route { padding: 112px var(--m); }
  .route-intro { grid-template-columns: 1fr; row-gap: 24px; }
  .route-intro .h2, .route-intro .body { grid-column: 1; }
  .steps { flex-direction: column; height: auto; margin-top: 48px; }
  .step { flex: none; }
  .step-tab { position: relative; inset: auto; width: 100%; min-height: 64px; align-items: center; padding: 0 20px; font-size: 18px; }
  .step-tab span { writing-mode: horizontal-tb; transform: none; }
  .step.is-open .step-tab { display: none; }
  .step-body { position: relative; min-width: 0; display: none; grid-template-columns: 1fr; padding: 24px 20px 28px; row-gap: 16px; }
  .step.is-open .step-body { display: grid; }
  .step-name { font-size: 36px; }
  
  .step-body img { grid-column: 1; grid-row: auto; aspect-ratio: 3 / 2; height: auto; }
}

/* ---------------- FAQ: tabbed index cards ---------------- */
.faq { padding: 160px var(--m); background: var(--night); color: var(--yellow); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.faq .h2 { grid-column: 3 / 11; margin-bottom: 48px; }
.cards { grid-column: 3 / 11; }
.card {
  --tab-x: calc(var(--i) * 150px);
  position: relative;
  background: var(--c); color: var(--ink, #140f0a);
  margin-top: -16px;
  clip-path: polygon(var(--tab-x) 0, calc(var(--tab-x) + 200px) 0, calc(var(--tab-x) + 200px) 40px, 100% 40px, 100% 100%, 0 100%, 0 40px, var(--tab-x) 40px);
  transition: transform .25s var(--ease);
}
.card:first-child { margin-top: 0; }
.card:not(.is-open):hover { transform: translateY(-6px); }
.card-head { display: block; width: 100%; text-align: left; padding: 0 28px 28px; }
.card-tab { display: flex; align-items: center; height: 40px; margin-left: calc(var(--tab-x) - 28px); padding-left: 18px; font-size: var(--s-small); font-weight: 700; }
.card-q { display: block; margin-top: 18px; font-size: 22px; font-weight: 500; }
.card-a { display: none; padding: 0 28px 32px; }
.card.is-open .card-a { display: block; }
.card-a p { max-width: 50ch; font-size: var(--s-body); }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; padding: 112px var(--m); }
  .faq .h2, .cards { grid-column: 1; }
  .card { --tab-x: calc(var(--i) * 40px); clip-path: polygon(var(--tab-x) 0, calc(var(--tab-x) + 120px) 0, calc(var(--tab-x) + 120px) 40px, 100% 40px, 100% 100%, 0 100%, 0 40px, var(--tab-x) 40px); }
  .card-head { padding: 0 20px 22px; }
  .card-tab { margin-left: calc(var(--tab-x) - 20px); padding-left: 12px; width: 120px; white-space: nowrap; }
  .card-q { font-size: var(--s-body); }
  .card-a { padding: 0 20px 24px; }
  .card-a p { font-size: var(--s-body); }
}

/* ---------------- Ask: question at both edges ---------------- */
.ask {
  position: relative;
  height: 100svh; min-height: 640px;
  background: var(--ink); color: var(--yellow);
  display: grid; place-items: center;
  text-align: center;
}
.ask-title { position: absolute; inset: 0; font-size: var(--s-shout); line-height: 1; pointer-events: none; }
.ask-1 { position: absolute; left: 0; right: 0; top: 24px; }
.ask-2 { position: absolute; left: 0; right: 0; bottom: 28px; }
.ask-row { display: grid; grid-template-columns: 240px 120px 240px; align-items: center; }
.ask-row .btn { width: 240px; }
.or { font-size: var(--s-body); color: #d8d39a; }
.ask-note { position: absolute; top: calc(50% + 52px); left: 50%; transform: translateX(-50%); width: min(560px, 90vw); font-size: var(--s-small); color: #e3dd9e; }
@media (max-width: 900px) {
  .ask { min-height: 620px; }
  .ask-title { font-size: 19vw; }
  .ask-row { grid-template-columns: 1fr; gap: 12px; width: 76vw; }
  .ask-row .btn { width: 100%; }
  .ask-note { top: calc(50% + 110px); }
}

/* ---------------- Footer: moving picture half, menu half ---------------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--gold); }
.foot-pic { position: relative; background: #000; overflow: hidden; }
.foot-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; transform: scale(1.5); transform-origin: 20% 50%; }
.foot-menu { padding: 80px var(--m) var(--m) 8vw; display: flex; flex-direction: column; }
.foot-links { margin-top: 48px; display: grid; gap: 28px; justify-items: start; }
.foot-links a { font: 900 clamp(32px, 2.8vw, 44px)/1 var(--display); font-variation-settings: "opsz" 144, "SOFT" 100; text-transform: lowercase; letter-spacing: -0.02em; text-decoration: none; transition: transform .25s var(--ease), opacity .2s; }
.foot-links:hover a { opacity: .45; }
.foot-links a:hover { opacity: 1; transform: translateX(12px); }
.foot-blocks { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: var(--s-small); }
.foot-h { font-weight: 700; margin-bottom: 6px; }
.foot-blocks a { text-underline-offset: 4px; }
.foot-legal { margin-top: auto; padding-top: 48px; font-size: var(--s-small); display: grid; gap: 8px; }
.credits summary { cursor: pointer; width: max-content; text-decoration: underline; text-underline-offset: 3px; }
.credits ul { margin-top: 8px; display: grid; gap: 4px; max-width: 70ch; }
@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr; }
  .foot-pic { height: 50svh; }
  .foot-menu { padding: 48px var(--m) var(--m); }
  .foot-links a { font-size: 8vw; }
  .foot-links { gap: 20px; }
  .foot-blocks { grid-template-columns: 1fr; }
}

/* ---------------- Motion ---------------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-title.in .line > span { transform: none; transition: transform .9s var(--ease); }
.js .hero-title.in .line:nth-child(2) > span { transition-delay: .11s; }
.js .print { opacity: 0; }
.js .print.in { opacity: 1; transition: opacity .6s var(--ease) var(--d, 0ms), transform .2s var(--ease); }
.js .night-title span { display: block; opacity: 0; transform: translateY(40px); }
.js .night-title.in span { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .night-title.in span + span { transition-delay: .1s; }
.hero-pic img { transform: scale(1.08); transform-origin: 50% 70%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .print, .js .night-title span, .js .hero-title .line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .print-a { transform: rotate(-8deg) !important; } .print-b { transform: rotate(6deg) !important; } .print-c { transform: rotate(-4deg) !important; }
  .hero-pic img { transform: none !important; }
  .step, .card, .btn, .foot-links a { transition: none !important; }
}

/* the poster is shown whole, like a print pinned to the panel */
.step-body img.step-poster { object-fit: contain; object-position: center top; }
@media (max-width: 900px) { .step-body img.step-poster { aspect-ratio: 905 / 1206; object-fit: cover; } }
