/* PAITITI landing · Bajar los andenes
   Tokens from design/project/tokens.json (source of truth: scripts/design.py). */

:root {
  --night-900: #110e09;
  --night-800: #221c13;
  --gold-200: #f4c980;
  --gold-400: #dca84a;
  --gold-600: #a8833b;
  --gold-800: #564317;
  --gold-dust: #f4be60;
  --parchment-50: #f6efe3;
  --parchment-100: #ece0c8;
  --parchment-200: #d8c49f;
  --parchment-400: #b09d7b;
  --ink-400: #6b4a1e;
  --ink-800: #2b1f11;
  --serve-light: #e8d6b9;

  --collasuyo-50: #e6f0f8;
  --collasuyo-200: #a4c2dc;
  --collasuyo-800: #1c2e49;
  --contisuyo-50: #f7eddc;
  --contisuyo-200: #eec698;
  --contisuyo-800: #56331f;
  --chinchaysuyo-50: #f8e8db;
  --chinchaysuyo-200: #dfae97;
  --chinchaysuyo-800: #441f16;
  --antisuyo-50: #e5efde;
  --antisuyo-200: #aac8a0;
  --antisuyo-800: #193b22;

  --font-brand: Herculanum, "Cinzel", "Trajan Pro", serif;
  --font-display: "Big Caslon", "Libre Caslon Display", "Libre Caslon Text", Baskerville, Georgia, serif;
  --font-text: "Big Caslon", "Libre Caslon Text", Baskerville, Georgia, serif;

  --gutter: clamp(16px, 6vw, 96px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wall: clamp(14px, 1.6vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night-900);
  color: var(--parchment-100);
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--gold-800) var(--night-900);
}

body {
  margin: 0;
  background: var(--night-900);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, .35vw + .98rem, 1.1875rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-400); color: var(--night-900); }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 4px; }

.muted { color: var(--parchment-400); }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--gold-400); color: var(--night-900);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wordmark {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: .15em;
  color: var(--gold-400);
  text-decoration: none;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; line-height: 1.2; text-decoration: none;
  border-radius: 2px;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-line {
  padding: 10px 18px;
  font-size: .9375rem;
  color: var(--gold-200);
  border: 1px solid var(--gold-600);
}
.btn-line:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--night-900); }
.btn-solid {
  padding: 18px 28px;
  font-size: 1.0625rem;
  background: var(--night-900);
  color: var(--gold-200);
  box-shadow: 0 10px 24px -10px rgb(43 31 17 / .55);
}
.btn-solid:hover { background: var(--ink-800); color: var(--gold-dust); box-shadow: 0 16px 32px -12px rgb(43 31 17 / .6); }
.btn-solid:active { transform: translateY(1px); }

/* Masthead */
.masthead {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 22px var(--gutter);
}
.masthead-nav { display: none; gap: 28px; font-size: .9375rem; }
.masthead-nav a { text-decoration: none; color: var(--parchment-200); transition: color .2s; }
.masthead-nav a:hover { color: var(--gold-200); }
@media (min-width: 1100px) {
  .masthead-nav { display: flex; margin-left: auto; margin-right: 12px; }
}

/* Depth gauge: the floor you are on */
.gauge { display: none; }
@media (min-width: 1100px) {
  .gauge {
    display: block;
    position: fixed; right: 26px; top: 50%; z-index: 30;
    translate: 0 -50%;
  }
  .gauge ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; justify-items: end; position: relative; }
  .gauge ol::before {
    content: ""; position: absolute; right: 10.5px; top: 10px; bottom: 4px; width: 1px;
    background: linear-gradient(var(--gold-800), rgb(86 67 23 / .2));
  }
  .gauge a {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    min-height: 24px; color: var(--parchment-200);
  }
  .gauge-ring {
    position: relative;
    width: var(--s); height: var(--s); border-radius: 50%;
    margin-right: calc((22px - var(--s)) / 2);
    border: 1px solid var(--gold-600);
    background: rgb(17 14 9 / .55);
    transition: background-color .35s var(--ease-out), border-color .35s, box-shadow .35s;
  }
  .gauge-label {
    order: -1;
    font-size: .8125rem; letter-spacing: .04em;
    opacity: 0; translate: 6px 0;
    padding: 3px 8px; background: rgb(17 14 9 / .72); border-radius: 2px;
    transition: opacity .3s var(--ease-out), translate .3s var(--ease-out);
  }
  .gauge a:hover .gauge-label, .gauge a:focus-visible .gauge-label { opacity: 1; translate: 0 0; }
  .gauge a[aria-current="true"] .gauge-ring { background: var(--gold-400); border-color: var(--gold-200); box-shadow: 0 0 0 4px rgb(220 168 74 / .18); }
  .gauge a[aria-current="true"] .gauge-label { color: var(--gold-200); }
  .is-show .gauge a[data-floor="puna"][aria-current="true"] .gauge-ring {
    background: conic-gradient(var(--gold-400) calc(var(--year, 0) * 1turn), rgb(17 14 9 / .55) 0);
  }
}

/* Hero: the puna. The table starts dark, the projector switches on and, in show mode,
   a year passes over it as you scroll; the plate at its center is the button. */
.hero { position: relative; background: var(--night-900); }
.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding: 104px var(--gutter) 0;
  overflow: clip;
}
.lamp {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 68% 52%, rgb(45 35 28 / .55), transparent 70%);
}
.hero-copy { position: relative; z-index: 3; max-width: 34rem; }
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw + .6rem, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  color: var(--parchment-50);
}
.lead {
  margin-top: 28px;
  font-size: clamp(1.1rem, .6vw + .95rem, 1.35rem);
  line-height: 1.55;
  color: var(--parchment-200);
  max-width: 33rem;
}
.play-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px;
  color: var(--gold-200); text-decoration: none; font-size: 1.0625rem;
}
.play-link svg { width: 34px; height: 34px; transition: transform .35s var(--ease-out), color .2s; }
.play-link:hover svg { transform: scale(1.08); color: var(--gold-dust); }
.play-link:hover > span { text-decoration: underline; }

.disc {
  --size: 150vw;
  position: relative;
  margin: 28px 0 0 50%;
  width: var(--size);
  aspect-ratio: 1;
  translate: -50% 0;
  container-type: inline-size;
}
.disc-img, .disc-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 72%, rgb(0 0 0 / .65) 84%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 72%, rgb(0 0 0 / .65) 84%, transparent 100%);
}
.disc-img { animation: rise 2.2s var(--ease-out) .15s both; }
.disc-canvas, .disc-intro { display: none; }
@keyframes rise {
  from { clip-path: circle(18.5% at 50% 50%); filter: brightness(.55); }
  to { clip-path: circle(71% at 50% 50%); filter: brightness(1); }
}

/* The Inti rays around the plate */
.inti {
  position: absolute; left: 50%; top: 50%;
  width: 67.6%; height: 67.6%;
  translate: -50% -50%;
  pointer-events: none; overflow: visible;
}
.inti-rays {
  fill: var(--gold-400);
  transform-origin: 60px 60px;
  opacity: 0;
  animation: rays 3.6s var(--ease-out) 1.6s both;
}
@keyframes rays {
  0% { opacity: 0; transform: scale(.86); }
  35% { opacity: .95; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.02); }
}

/* The plate is the button */
.plate {
  position: absolute; left: 50%; top: 50%;
  width: 37%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: .5cqi;
  padding: 7cqi;
  text-align: center; text-decoration: none;
  color: var(--ink-800);
  z-index: 2;
  transition: box-shadow .5s var(--ease-out), color .9s var(--ease-out);
}
.plate-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6cqi, 2rem);
  line-height: 1.08;
  max-width: 11ch;
  animation: appear 1s var(--ease-out) 1.9s both;
}
.plate-note {
  font-size: clamp(.75rem, 1.15cqi, .95rem);
  letter-spacing: .06em;
  color: var(--ink-400);
  animation: appear 1s var(--ease-out) 2.1s both;
}
.plate-text::after {
  content: ""; display: block; width: 4.4em; height: 1px; margin: .5em auto 0;
  background: var(--gold-600);
  scale: .5 1;
  transition: scale .45s var(--ease-out);
}
@keyframes appear { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.plate:hover, .plate:focus-visible { box-shadow: 0 0 0 1.2cqi rgb(244 190 96 / .28); }
.plate:hover .plate-text::after, .plate:focus-visible .plate-text::after { scale: 1 1; }
.plate:focus-visible { outline-offset: 6px; }

.hero-note { margin-top: 20px; font-size: .8125rem; color: var(--parchment-400); }
.chapters, .cue, .stage-note, .dust { display: none; }

@media (min-width: 960px) {
  .stage { align-content: center; padding-top: 96px; padding-bottom: calc(10vw + 2vh); }
  .hero-copy { max-width: min(36vw, 34rem); }
  .disc {
    --size: min(118vh, 74vw);
    position: absolute; margin: 0;
    left: 70%; top: 50%;
    translate: -50% -50%;
  }
}
@media (min-width: 960px) and (max-height: 700px) {
  .disc { --size: min(132vh, 74vw); }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .disc-img { animation: rise 2.2s var(--ease-out) .15s both, descend linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
  }
}
@keyframes descend { from { transform: rotate(0) scale(1); } to { transform: rotate(9deg) scale(1.1); } }

/* Show mode (with JS): the stage holds still while the year plays on the disc. */
.is-show .hero { height: 440svh; }
.is-show .stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.is-show .disc-canvas { display: block; }
/* The intro (gold trails, the Inti) plays over the dark table; lighten keeps the lamp's glow under its black. */
.is-show .disc-intro {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 72%, rgb(0 0 0 / .65) 84%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 72%, rgb(0 0 0 / .65) 84%, transparent 100%);
  mix-blend-mode: lighten;
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.is-show .disc.is-intro .disc-intro { opacity: 1; transition-duration: .15s; }
.is-show .lamp { opacity: 0; }
/* A quiet scrim keeps the captions clear of the disc's fading edge and its motes. */
@media (min-width: 960px) {
  .is-show .stage::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, rgb(17 14 9 / .7), rgb(17 14 9 / .45) 30%, rgb(17 14 9 / 0) 44%);
  }
}
.is-show .dust {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}

/* The plate waits for the Inti, reads gold on the dark table and ink once the plate is lit. */
.is-show .plate { color: var(--gold-200); }
.is-show .plate-note { color: var(--parchment-400); transition: color .9s var(--ease-out); }
.is-show .disc.is-lit .plate { color: var(--ink-800); }
.is-show .disc.is-lit .plate-note { color: var(--ink-400); }
.is-show .plate-text, .is-show .plate-note {
  animation: none; opacity: 0; translate: 0 6px;
  transition: opacity 1s var(--ease-out), translate 1s var(--ease-out), color .9s var(--ease-out);
}
.is-show .stage.is-ready .plate-text, .is-show .stage.is-ready .plate-note { opacity: 1; translate: 0 0; }
.is-show .inti { display: none; }
.is-show .disc.is-served .disc-canvas { animation: glow 2.4s var(--ease-out) both; }
@keyframes glow {
  0% { filter: brightness(1); }
  16% { filter: brightness(1.5) saturate(1.12); }
  42% { filter: brightness(1.32) saturate(1.06); }
  100% { filter: brightness(1); }
}
.is-show .disc.is-served .plate { animation: serve 2.4s var(--ease-out) both; }
.is-show .disc.is-served .plate-text::after { scale: 1 1; }
@keyframes serve {
  0% { box-shadow: 0 0 0 0 rgb(244 190 96 / .5); }
  100% { box-shadow: 0 0 0 5cqi rgb(244 190 96 / 0); }
}
.disc:has(.plate:hover) .inti-rays,
.disc:has(.plate:focus-visible) .inti-rays {
  animation: spin 40s linear infinite;
  opacity: .9;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* What the stage says at each beat of the year: one group at a time. */
.is-show .hero-copy, .is-show .chapters { grid-area: 1 / 1; }
.is-show .chapters {
  display: grid; position: relative; z-index: 3;
  list-style: none; margin: 0; padding: 0;
  max-width: min(34vw, 30rem);
  align-items: center;
}
.chapters li { grid-area: 1 / 1; display: grid; gap: 18px; justify-items: start; }
.chapters h2 {
  font-size: clamp(2.1rem, 3.2vw + .9rem, 3.9rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--parchment-50);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.when { display: block; margin-top: .4em; font-family: var(--font-text); font-size: max(.875rem, .42em); letter-spacing: .02em; color: var(--gold-200); white-space: nowrap; }
.chapters p { color: var(--parchment-200); max-width: 30rem; }
.chapters .btn { margin-top: 6px; }

.is-show [data-beat] {
  opacity: 0; translate: 0 18px; filter: blur(6px);
  pointer-events: none;
  transition: opacity .55s var(--ease-out), translate .9s var(--ease-out), filter .55s var(--ease-out);
}
.is-show [data-beat].is-past { translate: 0 -18px; }
.is-show [data-beat].is-on {
  opacity: 1; translate: 0 0; filter: blur(0); pointer-events: auto;
  transition-delay: .2s;
}

.is-show .cue {
  display: flex; align-items: center; gap: 12px;
  position: absolute; left: var(--gutter); bottom: 32px; z-index: 3;
  font-size: .8125rem; letter-spacing: .04em; color: var(--gold-200);
}
.cue-line {
  width: 1px; height: 30px; flex: none;
  background: linear-gradient(var(--gold-200), transparent);
  transform-origin: top;
  animation: cue 2.6s var(--ease-out) infinite;
}
@keyframes cue {
  0% { scale: 1 0; opacity: 1; }
  60% { scale: 1 1; opacity: 1; }
  100% { scale: 1 1; opacity: 0; }
}
.is-show .stage-note {
  display: block; position: absolute; left: var(--gutter); bottom: 32px; z-index: 3;
  max-width: 30rem;
  font-size: .8125rem; line-height: 1.45; color: var(--parchment-400);
}
@media (min-width: 960px) {
  .is-show .stage { padding-bottom: calc(6vw + 2vh); }
}

/* Rings: each section is a terrace, its top an arc that tightens as you descend.
   The fill circle, the contact shadow and the flat fill share one background, so they never seam;
   the cantería wall is a ring masked out of ::before. Everything is limited to the upper half of
   the circle, so the arc never re-enters lower in a tall section. */
.ring {
  --d: 200vw;
  --cap: 13.4vw;
  --pad: clamp(72px, 8vw, 128px);
  --next: 0px;
  --R: calc(var(--d) / 2);
  --Ri: calc(var(--R) - var(--wall));
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: calc(var(--cap) * -1);
  padding: calc(var(--cap) * var(--lift, 1) + var(--pad)) var(--gutter) calc(var(--next) + var(--pad));
  background:
    radial-gradient(circle at 50% var(--R), transparent calc(var(--Ri) - var(--wall) * 1.6), rgb(0 0 0 / var(--shade, .34)) calc(var(--Ri) - 1px), transparent var(--Ri)) 0 0 / 100% var(--R) no-repeat,
    radial-gradient(circle at 50% var(--R), var(--fill) calc(var(--Ri) - .5px), transparent var(--Ri)) 0 0 / 100% var(--R) no-repeat,
    linear-gradient(var(--fill), var(--fill)) 0 calc(var(--cap) + 2px) / 100% 100% no-repeat;
}
.ring::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--stones) 0 0 / auto calc(var(--wall) * 1.15) repeat, var(--wall-ground);
  -webkit-mask: radial-gradient(circle at 50% var(--R), transparent calc(var(--Ri) - .5px), #000 var(--Ri), #000 calc(var(--R) - .5px), transparent var(--R)) 0 0 / 100% var(--R) no-repeat;
  mask: radial-gradient(circle at 50% var(--R), transparent calc(var(--Ri) - .5px), #000 var(--Ri), #000 calc(var(--R) - .5px), transparent var(--R)) 0 0 / 100% var(--R) no-repeat;
}

/* Light from above and a fine earth grain, so each terrace reads as ground rather than a flat panel. */
.ring::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 560px at 50% calc(var(--cap) * var(--lift, 1)), rgb(255 238 205 / .07), transparent 70%),
    linear-gradient(transparent 28%, rgb(0 0 0 / .3)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
  -webkit-mask: radial-gradient(circle at 50% var(--R), #000 calc(var(--Ri) - .5px), transparent var(--Ri)) 0 0 / 100% var(--R) no-repeat, linear-gradient(#000, #000) 0 calc(var(--cap) + 2px) / 100% 100% no-repeat;
  mask: radial-gradient(circle at 50% var(--R), #000 calc(var(--Ri) - .5px), transparent var(--Ri)) 0 0 / 100% var(--R) no-repeat, linear-gradient(#000, #000) 0 calc(var(--cap) + 2px) / 100% 100% no-repeat;
}
.ring-plato::after { content: none; }

.ring-alto {
  --d: 260vw; --cap: 10vw; --next: 12vw; --lift: .8;
  --fill: var(--collasuyo-800);
  --stones: url("/assets/walls/collasuyo.svg");
  --wall-ground: #22385a;
  --tint: var(--collasuyo-50);
  --soft: var(--collasuyo-200);
  z-index: 4;
}
.ring-anti {
  --d: 220vw; --cap: 12vw; --next: 14.7vw; --lift: .75;
  --fill: var(--antisuyo-800);
  --stones: url("/assets/walls/antisuyo.svg");
  --wall-ground: #295132;
  --tint: var(--antisuyo-50);
  --soft: var(--antisuyo-200);
  z-index: 5;
}
.ring-medio {
  --d: 185vw; --cap: 14.7vw; --next: 19.1vw; --lift: .7;
  --fill: var(--contisuyo-800);
  --stones: url("/assets/walls/contisuyo.svg");
  --wall-ground: #6b4127;
  --tint: var(--contisuyo-50);
  --soft: var(--contisuyo-200);
  z-index: 6;
}
.ring-bajo {
  --d: 150vw; --cap: 19.1vw; --next: 32vw; --lift: .55;
  --fill: var(--chinchaysuyo-800);
  --stones: url("/assets/walls/chinchaysuyo.svg");
  --wall-ground: #57291d;
  --tint: var(--chinchaysuyo-50);
  --soft: var(--chinchaysuyo-200);
  z-index: 7;
}
.ring-plato {
  --d: 110vw; --cap: 32vw; --lift: .4;
  --fill: var(--serve-light);
  --stones: linear-gradient(transparent, transparent);
  --wall-ground: radial-gradient(circle at 50% 30%, var(--gold-200), var(--gold-600) 70%);
  --wall: clamp(10px, 1.1vw, 16px);
  --shade: .16;
  z-index: 8;
  color: var(--ink-800);
}

.wrap { position: relative; max-width: 1200px; margin: 0 auto; }

.ring h2 {
  font-size: clamp(2.1rem, 3.2vw + .9rem, 3.9rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--tint, var(--ink-800));
}
.ring p { color: var(--parchment-100); }
.center { text-align: center; margin-inline: auto; max-width: 18ch; }

/* Andén alto */
.intro { display: grid; gap: 24px; max-width: 46rem; margin: 0 auto; text-align: center; }
.intro h2 { max-width: 16ch; margin-inline: auto; }
.intro p { max-width: 40rem; margin: 0 auto; color: var(--parchment-200); }

.film { position: relative; margin: clamp(48px, 6vw, 88px) 0 0; }
.film-video {
  width: 100%; aspect-ratio: 1280 / 768; object-fit: cover;
  background: var(--night-900);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8);
}
.film-toggle {
  position: absolute; right: 16px; bottom: 52px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgb(244 201 128 / .55);
  background: rgb(17 14 9 / .66); color: var(--gold-200);
  cursor: pointer;
  transition: background-color .2s, transform .3s var(--ease-out);
}
.film-toggle:hover { background: rgb(17 14 9 / .9); transform: scale(1.05); }
.film-toggle svg { width: 22px; height: 22px; }
.film-toggle[data-state="playing"] .i-play, .film-toggle[data-state="paused"] .i-pause { display: none; }
.film figcaption, .split-media figcaption, .gains-media figcaption, .rig-figure figcaption {
  margin-top: 14px; font-size: .875rem; color: var(--soft);
}

.aside { margin: 48px auto 0; max-width: 40rem; text-align: center; font-size: .9375rem; color: var(--soft) !important; }

/* Andén del Antisuyo: twelve concepts for one dish, then the method for yours */
.concepts {
  list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px;
}
.concepts li, .concept-yours a { display: grid; gap: 8px; justify-items: center; align-content: start; text-align: center; }
.concepts img, .concept-plate {
  display: block; width: 100%; aspect-ratio: 1; margin-bottom: 10px;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 18px 30px -16px rgb(0 0 0 / .7);
}
.concepts h3 { font-size: clamp(1.15rem, .5vw + 1rem, 1.35rem); line-height: 1.15; color: var(--tint); }
.concepts p { font-size: .9375rem; line-height: 1.45; color: var(--parchment-200); max-width: 16rem; }
.concept-yours a { text-decoration: none; }
.concept-plate {
  background:
    url("/assets/emblems/inti-mark.svg") center / 20% no-repeat,
    radial-gradient(circle at 50% 46%, var(--parchment-50) 0 30%, var(--serve-light) 52%, var(--parchment-200) 60%, var(--parchment-50) 66%, var(--serve-light) 80%, var(--parchment-200) 100%);
  box-shadow: inset 0 -14px 28px rgb(43 31 17 / .2), 0 0 0 1px var(--gold-600), 0 18px 30px -16px rgb(0 0 0 / .7);
  transition: box-shadow .5s var(--ease-out);
}
.concept-yours h3 { color: var(--gold-200); }
.concept-yours a:hover .concept-plate, .concept-yours a:focus-visible .concept-plate {
  box-shadow: inset 0 -14px 28px rgb(43 31 17 / .2), 0 0 0 1px var(--gold-600), 0 0 0 10px rgb(244 190 96 / .28), 0 18px 30px -16px rgb(0 0 0 / .7);
}
.concept-yours a:hover h3, .concept-yours a:focus-visible h3 { text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 699px) {
  .concepts { gap: 32px 16px; }
  .concepts img, .concept-plate { width: min(100%, 150px); }
}
@media (min-width: 700px) { .concepts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .concepts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 48px 24px; } }

.method { margin-top: clamp(80px, 9vw, 136px); }
.method-title { font-size: clamp(1.6rem, 1.2vw + 1.15rem, 2.25rem); line-height: 1.1; color: var(--tint); text-align: center; }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 32px; counter-reset: step; position: relative; }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding-left: 58px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -6px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold-600); background: var(--fill);
  font-family: "Libre Caslon Display", var(--font-display); font-size: 1.125rem; font-variant-numeric: lining-nums; color: var(--gold-200);
}
.steps h4 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.25rem, .5vw + 1.1rem, 1.5rem); line-height: 1.15; color: var(--parchment-50);
}
.steps p { font-size: 1rem; color: var(--parchment-200); max-width: 30rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .steps::before {
    content: ""; position: absolute; left: 19px; right: 0; top: 19px; height: 1px;
    background: linear-gradient(90deg, var(--gold-600), rgb(168 131 59 / .2));
  }
  .steps li { padding: 58px 0 0; }
  .steps li::before { top: 0; }
}

/* Andén medio */
.split { display: grid; gap: clamp(40px, 5vw, 80px); align-items: center; }
/* The service, told on the left: your menu, the signature dish chosen, its legend plating itself, the real dish served */
.serve-stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; perspective: 900px; container-type: inline-size;
  background: var(--night-900); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .75);
}
.serve-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.serve-dim { position: absolute; inset: 0; background: rgb(17 14 9 / .6); transition: opacity .8s var(--ease-out); }
.serve-menu {
  position: absolute; left: 12%; right: 12%; top: 8%;
  padding: 7cqw 6cqw 5.5cqw;
  background: var(--parchment-50); color: var(--ink-800); text-align: center;
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / .85), inset 0 0 0 1px rgb(168 131 59 / .55),
    inset 0 0 0 6px var(--parchment-50), inset 0 0 0 7px rgb(168 131 59 / .35);
  transform-origin: 50% 100%;
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.serve-menu .serve-menu-title {
  font-family: var(--font-display); font-size: clamp(.62rem, 2.6cqw, .78rem); letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; color: var(--gold-800);
}
.serve-menu ul {
  list-style: none; margin: 3cqw 0 0; padding: 3.4cqw 0 0; display: grid; gap: 2.4cqw;
  border-top: 1px solid rgb(168 131 59 / .45);
}
.serve-menu li {
  font-family: var(--font-display); font-size: clamp(.8rem, 4.6cqw, 1.25rem); line-height: 1.2;
  transition: opacity .6s var(--ease-out);
}
.serve-menu .is-chosen span { position: relative; display: inline-block; }
.serve-menu .is-chosen svg { position: absolute; left: -17%; top: -48%; width: 134%; max-width: none; height: 196%; overflow: visible; }
.serve-menu .is-chosen path {
  fill: none; stroke: var(--gold-600); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.serve-menu .serve-menu-mark {
  margin-top: 3.4cqw; font-family: var(--font-display); font-style: italic; font-size: clamp(.78rem, 3.6cqw, 1rem); color: var(--gold-800);
  opacity: 0; transform: translateY(6px);
}
.serve-stage[data-phase="pick"] .serve-menu li:not(.is-chosen) { opacity: .36; }
.serve-stage[data-phase="pick"] .serve-menu .is-chosen path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.6, .05, .3, 1) .3s; }
.serve-stage[data-phase="pick"] .serve-menu-mark { opacity: 1; transform: none; transition: opacity .6s 1.2s, transform .7s var(--ease-out) 1.2s; }
.serve-stage:is([data-phase="build"], [data-phase="serve"], [data-phase="hold"]) .serve-dim { opacity: 0; }
.serve-stage:is([data-phase="build"], [data-phase="serve"], [data-phase="hold"]) .serve-menu {
  opacity: 0; transform: translateY(16%) rotateX(30deg) scale(.94);
}
.serve-caption {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%; margin: 0;
  background: linear-gradient(rgb(17 14 9 / 0), rgb(17 14 9 / .8));
}
.serve-caption span {
  position: absolute; left: 5cqw; right: calc(58px + 2cqw); bottom: max(18px, 4.4cqw);
  font-family: var(--font-display); font-size: clamp(.92rem, 4.6cqw, 1.3rem); line-height: 1.2; color: var(--parchment-50);
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.serve-stage[data-phase="menu"] [data-for="menu"], .serve-stage[data-phase="pick"] [data-for="pick"],
.serve-stage[data-phase="build"] [data-for="build"], .serve-stage:is([data-phase="serve"], [data-phase="hold"]) [data-for="serve"] {
  opacity: 1; transform: none;
}
.serve-toggle { right: 14px; bottom: 14px; width: 44px; height: 44px; }
.split-copy h2 { max-width: 15ch; }
.points { margin: 36px 0 0; display: grid; gap: 26px; }
.points div { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid rgb(238 198 152 / .22); }
.points dt { font-family: var(--font-display); font-size: clamp(1.3rem, .6vw + 1.1rem, 1.6rem); line-height: 1.15; color: var(--tint); }
.points dd { margin: 0; color: var(--parchment-200); max-width: 34rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* The four-top render: one projector over a table for four; the tabletop cycles four concepts */
.rig { margin-top: clamp(72px, 8vw, 120px); display: grid; gap: 36px clamp(40px, 5vw, 80px); grid-template-areas: "head" "art"; }
.rig-head { grid-area: head; }
.rig-title { font-size: clamp(2.1rem, 3.2vw + .9rem, 3.6rem); line-height: 1.05; letter-spacing: -.01em; color: var(--tint); max-width: 12ch; }
.rig-head p { margin-top: 22px; font-size: clamp(1.1rem, .4vw + 1rem, 1.25rem); color: var(--parchment-200); max-width: 30rem; }
.rig-figure { grid-area: art; margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.rig-figure figcaption { max-width: 30rem; }
.rig-stage {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 4 / 5; margin-inline: auto;
  background: var(--night-900); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8);
}
.rig-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .rig { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: 1fr auto 1fr; grid-template-areas: ". art" "head art" ". art"; }
  .rig-figure { align-self: center; }
}
/* Moray holds underneath; each later concept fades in over the one before, then all three fade back to Moray. */
.rig-shot + .rig-shot { opacity: 0; animation: 16s linear infinite; }
.rig-shot:nth-child(2) { animation-name: rig-second; }
.rig-shot:nth-child(3) { animation-name: rig-third; }
.rig-shot:nth-child(4) { animation-name: rig-fourth; }
.rig.is-waiting .rig-shot { animation-play-state: paused; }
@keyframes rig-second { 0%, 25% { opacity: 0; } 32.5%, 92.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rig-third { 0%, 50% { opacity: 0; } 57.5%, 92.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rig-fourth { 0%, 75% { opacity: 0; } 82.5%, 92.5% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rig-shot + .rig-shot { animation: none !important; display: none; }
}

.faq { margin-top: clamp(72px, 8vw, 120px); max-width: 860px; }
.faq-title { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); color: var(--tint); margin-bottom: 18px; }
.faq details { border-top: 1px solid rgb(238 198 152 / .22); }
.faq details:last-of-type { border-bottom: 1px solid rgb(238 198 152 / .22); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0;
  font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem); color: var(--parchment-50);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 1.5px solid var(--gold-400); border-bottom: 1.5px solid var(--gold-400);
  rotate: 45deg; translate: 0 -3px;
  transition: rotate .3s var(--ease-out), translate .3s var(--ease-out);
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq summary:hover { color: var(--gold-200); }
.faq details p { padding: 0 0 22px; max-width: 44rem; color: var(--parchment-200); }

/* Andén bajo */
.rest-lead { margin: 18px auto 0; max-width: 34rem; text-align: center; font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); color: var(--parchment-200) !important; }
.loop {
  list-style: none; margin: clamp(36px, 4.5vw, 56px) auto 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.loop li {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display); font-size: clamp(1.3rem, 1.1vw + 1rem, 1.75rem); line-height: 1.15;
  text-align: center; color: var(--parchment-50);
}
.loop li + li::before {
  content: ""; width: 1px; height: 26px; margin: 12px 0;
  background: linear-gradient(var(--gold-600), var(--gold-200));
}
.loop-back { margin: 18px auto 0; text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); color: var(--gold-200) !important; }
@media (min-width: 1000px) {
  .loop { flex-direction: row; justify-content: center; }
  .loop li { flex-direction: row; white-space: nowrap; }
  .loop li + li::before { width: clamp(28px, 3vw, 48px); height: 1px; margin: 0 clamp(14px, 1.4vw, 20px); background: linear-gradient(90deg, var(--gold-600), var(--gold-200)); }
}
.gains { display: grid; gap: clamp(40px, 5vw, 72px); margin-top: clamp(48px, 6vw, 88px); align-items: center; }
.gains-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.gains-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.gains-list h3 { font-size: clamp(1.6rem, 1.2vw + 1.15rem, 2.25rem); line-height: 1.1; color: var(--tint); }
.gains-list p { margin-top: 10px; color: var(--parchment-200); max-width: 32rem; }
@media (min-width: 960px) {
  .gains { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
}

.lockup-row {
  margin: clamp(80px, 9vw, 136px) auto 0;
  display: grid; justify-items: center; gap: 22px; text-align: center;
}
.lockup {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .5em; row-gap: 4px;
  font-size: clamp(2.2rem, 4.4vw, 4.6rem); line-height: 1;
}
.lockup-brand { font-family: var(--font-brand); font-weight: 500; letter-spacing: .12em; color: var(--gold-400); }
.lockup-x { color: var(--parchment-400); font-family: var(--font-text); font-size: .7em; }
.lockup-guest { font-family: var(--font-display); font-style: italic; color: var(--parchment-50); }
.lockup-copy { max-width: 36rem; color: var(--parchment-200) !important; }
@media (max-width: 599px) { .lockup { flex-direction: column; align-items: center; row-gap: 8px; } }


/* El plato */
.plate-cta { display: grid; justify-items: center; text-align: center; gap: 22px; max-width: 40rem; }
.plate-sun { width: 64px; height: 64px; margin-bottom: 4px; }
.ring-plato h2 { color: var(--ink-800); font-size: clamp(2.6rem, 4.4vw + .8rem, 5rem); }
.ring-plato p { color: var(--ink-800); max-width: 34rem; }
.plate-cta .btn-solid {
  margin-top: 10px; padding: 20px 34px; font-size: clamp(1.0625rem, .3vw + 1rem, 1.1875rem); letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgb(244 201 128 / .28), 0 14px 30px -12px rgb(43 31 17 / .6);
}
.plate-small { font-size: .9375rem; color: var(--ink-400) !important; }

/* Footer */
.foot {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 72px var(--gutter) 96px;
  font-size: .9375rem; color: var(--parchment-200);
}
.foot .wordmark { font-size: 1.5rem; margin-bottom: 8px; }
.foot .muted { max-width: 38rem; font-size: .8125rem; }

/* Mobile dock */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; justify-content: center; align-items: center;
  min-height: 52px; padding: 14px 20px; border-radius: 2px;
  background: var(--gold-400); color: var(--night-900);
  font-size: 1.0625rem; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / .7);
  translate: 0 140%;
  transition: translate .45s var(--ease-out);
}
.dock.is-on { translate: 0 0; }
.dock { gap: 14px; }
.dock-gauge { display: flex; align-items: center; gap: 5px; }
.dock-gauge i {
  width: var(--s); height: var(--s); border-radius: 50%;
  border: 1px solid rgb(17 14 9 / .55);
  transition: background-color .3s var(--ease-out);
}
.dock-gauge i.is-here { background: var(--night-900); border-color: var(--night-900); }
@media (min-width: 960px) { .dock { display: none; } }

@media (max-width: 959px) {
  .masthead .btn-line { padding: 8px 14px; font-size: .875rem; }
  .stage { padding-top: 92px; padding-bottom: calc(10vw + 40px); }
  .hero-copy, .hero-actions { display: contents; }
  .hero h1 { order: 1; position: relative; z-index: 3; }
  .disc { order: 2; margin-top: -40px; }
  .lead { order: 3; margin-top: -64px; position: relative; z-index: 3; }
  .play-link { order: 4; justify-self: start; position: relative; z-index: 3; }
  .hero-note { order: 5; }

  /* Show mode on a phone: headline on top, the disc in the middle, one caption at a time at the
     bottom, above the dock. When the year starts the headline leaves and the disc rises. */
  .is-show .stage { padding: 84px var(--gutter) 0; align-content: start; }
  .is-show .stage::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 44%; z-index: 2; pointer-events: none;
    background: linear-gradient(rgb(17 14 9 / 0), rgb(17 14 9 / .8) 42%, var(--night-900));
  }
  .is-show .hero-copy { display: block; position: static; }
  .is-show .disc {
    --size: min(134vw, 76svh);
    position: absolute; margin: 0;
    left: 50%; top: 55%;
    translate: -50% -50%;
    transition: translate 1.2s var(--ease-out);
  }
  .is-show .stage.is-going .disc { translate: -50% calc(-50% - 12svh); }
  .is-show .lead, .is-show .hero-actions, .is-show .chapters {
    position: absolute; left: var(--gutter); right: var(--gutter); z-index: 3;
    bottom: calc(96px + env(safe-area-inset-bottom));
    margin: 0;
  }
  .is-show .stage:not([data-now]) .lead { opacity: 0; }
  .is-show .lead { font-size: 1.0625rem; }
  .is-show .hero-actions { display: block; bottom: 76px; }
  .is-show .play-link { margin-top: 0; }
  .is-show .hero-note { margin-top: 10px; }
  .is-show .chapters { grid-area: auto; max-width: none; align-items: end; }
  .is-show .chapters li { gap: 12px; }
  .is-show .chapters .btn { display: none; }
  .is-show .cue { left: 0; right: 0; bottom: 26px; justify-content: center; }
  .is-show .stage-note { top: 18px; bottom: auto; right: var(--gutter); max-width: none; text-align: center; font-size: .75rem; }
  .is-show .lamp { background: radial-gradient(ellipse 95% 55% at 50% 50%, rgb(45 35 28 / .55), transparent 70%); }
  /* a wider plate keeps its rim shadow outside the phone's edges */
  .ring-plato { --d: 130vw; --cap: 23.5vw; }
  .ring-bajo { --next: 23.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .inti-rays { opacity: 0; }
  .cue-line { animation: none; }
}
