/* Español con Raquel · Trial lesson — "The night path"
   You start in the dark with a light, and it is dawn by the time you reach the end. */

:root {
  --pink: #FF7AAC;
  --pink-soft: #FFEEF4;
  --ink: #121117;
  --paper: #FFFFFF;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --measure: 36em;

  --sky: #0A0910;
  --night: 1;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
em { font-style: italic; }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }

::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.defs { position: absolute; }

/* ---------- Sky, stars, lantern ---------- */

.sky { display: none; }
.js .sky { display: block; position: fixed; inset: 0; z-index: 0; background: var(--sky); }

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  opacity: var(--night);
}

.stars--b { animation: twinkle 4.5s ease-in-out infinite; }

@keyframes twinkle {
  0%, 100% { opacity: var(--night); }
  50% { opacity: calc(var(--night) * 0.25); }
}

.lantern { display: none; }

.js .lantern {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 172, 0.30), rgba(255, 122, 172, 0.10) 45%, transparent 72%);
  opacity: var(--night);
  pointer-events: none;
  will-change: transform;
}

/* ---------- Masthead ---------- */

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 13px var(--gutter);
  color: var(--paper);
  background: var(--sky);
  background: color-mix(in srgb, var(--sky) 80%, transparent);
  backdrop-filter: blur(10px);
  transition: color 0.4s;
}

[data-ink="1"] .masthead { color: var(--ink); }

.masthead__name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.masthead__name em { font-weight: 300; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
[data-ink="1"] .dot { background: currentColor; box-shadow: none; }

.masthead__nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; }

.masthead__nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.masthead__nav a:hover { border-color: currentColor; }

.masthead__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Page frame ---------- */

main { position: relative; z-index: 2; }

.chapter {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 9vw, 140px) var(--gutter);
  background: var(--bg);
}

.js .chapter { background: transparent; }

.night { color: var(--paper); --muted: rgba(255, 255, 255, 0.74); --rule: rgba(255, 255, 255, 0.22); }
.day { color: var(--ink); --muted: rgba(18, 17, 23, 0.74); --rule: rgba(18, 17, 23, 0.22); }

.js .night, .js .day { transition: color 0.5s ease; }
[data-ink="1"] .night { color: var(--ink); --muted: rgba(18, 17, 23, 0.74); --rule: rgba(18, 17, 23, 0.22); }
[data-ink="0"] .day { color: var(--paper); --muted: rgba(255, 255, 255, 0.74); --rule: rgba(255, 255, 255, 0.22); }
[data-ink="1"] .fork__svg path { stroke: rgba(18, 17, 23, 0.5); }
.item, .rule, .fineprint { color: var(--ink); }

.wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.wrap--narrow { max-width: 820px; }

.center { max-width: 820px; margin: 0 auto; text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }

/* Invisible markers the path is threaded through */
.way { display: block; width: 0; height: 0; }
.way--top { position: absolute; top: 0; left: 50%; }
.way--bottom { position: absolute; bottom: 0; left: 50%; }
.way--drop { margin-top: clamp(56px, 7vw, 96px); }

/* ---------- The path ---------- */

.trailpath { display: none; }

.js .trailpath {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.trailpath path { fill: none; stroke-linecap: round; }
.trailpath__track { stroke-width: 2; stroke-dasharray: 1 10; opacity: 0.38; }
.trailpath__lit { stroke-width: 2.5; }

.walker {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(255, 122, 172, 0.45), 0 0 26px 10px rgba(255, 122, 172, 0.7);
  pointer-events: none;
  will-change: transform;
}

.js .walker { display: block; }
[data-ink="1"] .walker { background: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 0 22px 8px rgba(255, 255, 255, 0.8); }

/* ---------- Shared type ---------- */

.kicker {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker b {
  margin-right: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--pink);
  vertical-align: -2px;
}

.day .kicker b { color: inherit; }

.label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(32px, 5vw, 68px); font-weight: 300; line-height: 1.04; margin-bottom: 30px; max-width: 16em; letter-spacing: -0.03em; }
h3 { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.2; letter-spacing: -0.01em; }

.night h2 em { color: var(--pink); text-shadow: 0 0 40px rgba(255, 122, 172, 0.55); }

.lead {
  max-width: 32em;
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.45;
}

.lead--small { font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--muted); max-width: var(--measure); }
.lead--center { margin: 0 auto; text-align: center; }

.todo { background: #FFF1B8; color: var(--ink); padding: 1px 5px; border-radius: 3px; font-style: italic; }

/* The foot print */
.foot { width: 18px; height: 27px; fill: currentColor; overflow: visible; }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-in { opacity: 1; transform: none; }

.js .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .is-in .stagger > *, .js .stagger.is-in > * { opacity: 1; transform: none; }
.stagger > *:nth-child(1) { transition-delay: 0.25s; }
.stagger > *:nth-child(2) { transition-delay: 0.45s; }
.stagger > *:nth-child(3) { transition-delay: 0.65s; }
.stagger > *:nth-child(4) { transition-delay: 0.85s; }
.stagger > *:nth-child(5) { transition-delay: 1.05s; }

/* ---------- Hero ---------- */

.hero { min-height: 100vh; min-height: 100svh; padding-top: clamp(120px, 15vw, 190px); padding-bottom: 40px; }

.hero__title {
  padding-bottom: 0.12em;
  font-size: clamp(46px, 11.4vw, 176px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

/* The headline is dim until the lantern passes over it */
.js .hero__title {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: radial-gradient(circle 360px at var(--lx, 30%) var(--ly, 40%), #fff 0%, #fff 28%, rgba(255, 255, 255, 0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__title .hl {
  color: var(--pink);
  -webkit-text-fill-color: var(--pink);
  text-shadow: 0 0 18px rgba(255, 122, 172, 0.9), 0 0 60px rgba(255, 122, 172, 0.65);
  animation: flicker 5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { text-shadow: 0 0 18px rgba(255, 122, 172, 0.9), 0 0 60px rgba(255, 122, 172, 0.65); }
  48% { text-shadow: 0 0 26px rgba(255, 122, 172, 1), 0 0 90px rgba(255, 122, 172, 0.85); }
  52% { text-shadow: 0 0 12px rgba(255, 122, 172, 0.7), 0 0 40px rgba(255, 122, 172, 0.45); }
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 96px);
  margin-top: clamp(32px, 5vw, 64px);
}

.hero__text { max-width: 35em; }

.hero__intro {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.42;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
}

.facts { display: flex; flex-wrap: wrap; gap: 8px; }

.facts li {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* Headline beside the portrait */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}

.hero .hero__title { font-size: clamp(44px, 6.7vw, 106px); }
.hero__grid .hero__foot { flex-direction: column; align-items: flex-start; gap: 30px; }

/* The portrait: an arch lit from behind */
.portrait {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.portrait::before {
  content: '';
  position: absolute;
  inset: -22% -26%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(255, 122, 172, 0.34), rgba(255, 122, 172, 0.08) 55%, transparent 75%);
  pointer-events: none;
}

/* a fine pink arch set just behind the photo */
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255, 122, 172, 0.75);
  border-radius: 999px 999px 4px 4px;
  transform: translate(-18px, 18px);
  pointer-events: none;
}

.portrait__frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  background: #1B1426;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
}

.portrait__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.92) contrast(1.03);
}

/* the bottom of the photo melts into the night */
.portrait__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(10, 9, 16, 0.72) 100%),
    linear-gradient(200deg, rgba(255, 122, 172, 0.16), transparent 45%);
  pointer-events: none;
}

.portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.portrait figcaption::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

/* it opens upwards like a curtain, slowly settling into focus */
.js .portrait.reveal { opacity: 1; transform: none; }
.js .portrait .portrait__frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.7s cubic-bezier(0.65, 0, 0.25, 1) 0.3s; }
.js .portrait.is-in .portrait__frame { clip-path: inset(0 0 0 0); }
.js .portrait img { transform: scale(1.14); transition: transform 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.js .portrait.is-in img { transform: none; }
.js .portrait::after, .js .portrait figcaption { opacity: 0; transition: opacity 1.2s ease 1.6s, transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1.4s; }
.js .portrait::after { transform: translate(0, 0); }
.js .portrait.is-in::after { opacity: 1; transform: translate(-18px, 18px); }
.js .portrait.is-in figcaption { opacity: 1; }

/* A1 → B2 */
.scale {
  position: relative;
  flex: none;
  display: flex;
  justify-content: space-between;
  width: clamp(220px, 24vw, 300px);
  padding-top: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.scale::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), #fff);
}

.scale li { position: relative; }

.scale li::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #0A0910;
  border: 2px solid #fff;
}

.scale li:first-child::before { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 14px var(--pink); }
.scale li:last-child::before { background: #fff; }

.start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: max-content;
  margin: clamp(44px, 6vw, 80px) auto 0;
  text-decoration: none;
}

.start__label {
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 34px rgba(255, 122, 172, 0.55);
  transition: transform 0.25s, box-shadow 0.25s;
}

.start:hover .start__label { transform: translateY(-3px); box-shadow: 0 0 54px rgba(255, 122, 172, 0.85); }

.trail { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--pink); }

.trail .foot { width: 13px; height: 20px; opacity: 0; animation: walk 4.4s linear infinite; }
.trail .foot:nth-child(odd) { transform: translateX(-11px) rotate(172deg); }
.trail .foot:nth-child(even) { transform: translateX(11px) rotate(188deg); }
.trail .foot:nth-child(2) { animation-delay: 0.42s; }
.trail .foot:nth-child(3) { animation-delay: 0.84s; }
.trail .foot:nth-child(4) { animation-delay: 1.26s; }
.trail .foot:nth-child(5) { animation-delay: 1.68s; }

@keyframes walk {
  0% { opacity: 0; }
  6% { opacity: 1; }
  55% { opacity: 1; }
  75%, 100% { opacity: 0; }
}

/* ---------- 01 The idea: text that lights up as you pass ---------- */

.lit-text { max-width: 30em; font-family: var(--serif); font-size: clamp(21px, 2.5vw, 31px); line-height: 1.4; letter-spacing: -0.01em; }
.lit-text p { margin-bottom: 0.9em; }

.js .lit-text .w { opacity: 0.2; transition: opacity 0.45s ease, text-shadow 0.45s ease; }
.js .lit-text .w.on { opacity: 1; }

/* The key sentence: the shortcut fails, the path has to be walked */
.keyline {
  margin: clamp(36px, 5vw, 64px) 0 0;
  padding: clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
}

.keyline__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.7vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.keyline__text span { display: block; }
.keyline__text span + span { margin-top: 0.35em; }
.keyline__text b { font-weight: inherit; }

.ns { position: relative; display: inline-block; transition: opacity 0.5s; }

.ns::after {
  content: '';
  position: absolute;
  left: -3%;
  right: -3%;
  top: 56%;
  height: 3px;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.3, 1) 0.55s;
}

.keyline.is-struck .ns { opacity: 0.6; }
.keyline.is-struck .ns::after { transform: scaleX(1); }
.keyline.is-trying .ns { animation: shake 0.5s ease 0.55s; }

@keyframes shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -6px 0; }
  40% { translate: 6px 0; }
  60% { translate: -4px 0; }
  80% { translate: 3px 0; }
}

.gp { transition: color 0.8s, text-shadow 0.8s; }
.keyline.is-done .gp { color: var(--pink); font-style: italic; text-shadow: 0 0 34px rgba(255, 122, 172, 0.75); }

.keyline__scene { display: block; width: 100%; height: auto; margin: clamp(14px, 2vw, 26px) 0; overflow: visible; }
.keyline__scene path { fill: none; stroke-linecap: round; }

/* the leap that tries to skip the steps */
.kl-leap { stroke: #fff; stroke-width: 2; stroke-dasharray: 4 8; opacity: 0; }
.keyline.is-trying .kl-leap { animation: leapfade 1.5s ease forwards; }

@keyframes leapfade {
  0% { opacity: 0.9; }
  45% { opacity: 0.9; }
  100% { opacity: 0; }
}

.kl-x { opacity: 0; transition: opacity 0.3s 0.6s; }
.kl-x path { stroke: var(--pink); stroke-width: 3; }
.keyline.is-struck .kl-x { opacity: 0.8; }

.kl-track { stroke: rgba(255, 255, 255, 0.45); stroke-width: 2; stroke-linejoin: round; }
.kl-lit { stroke: var(--pink); stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 122, 172, 0.9)); }
.kl-dot { fill: #fff; filter: drop-shadow(0 0 8px var(--pink)) drop-shadow(0 0 16px var(--pink)); }

.kl-level { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; fill: rgba(255, 255, 255, 0.4); transition: fill 0.4s; }
.kl-level.on, html:not(.js) .kl-level { fill: var(--pink); }

.kl-lamp { color: rgba(255, 255, 255, 0.4); --glass: transparent; transition: color 0.6s; }
.kl-lamp circle { fill: rgba(255, 122, 172, 0.3); opacity: 0; transition: opacity 0.9s; }
.keyline.is-done .kl-lamp, html:not(.js) .kl-lamp { color: #fff; --glass: var(--pink); }
.keyline.is-done .kl-lamp circle, html:not(.js) .kl-lamp circle { opacity: 1; }

.keyline__btns { display: flex; flex-wrap: wrap; gap: 10px; }
html:not(.js) .keyline__btns, html:not(.js) .kl-dot { display: none; }

.kbtn {
  position: relative;
  overflow: hidden;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s, opacity 0.4s;
}

.kbtn:hover { border-color: #fff; }
.keyline.is-struck #kl-try { opacity: 0.5; text-decoration: line-through; }

.kbtn--hold {
  border-color: var(--pink);
  background: linear-gradient(90deg, rgba(255, 122, 172, 0.6) calc(var(--p, 0) * 100%), transparent 0);
  box-shadow: 0 0 24px rgba(255, 122, 172, 0.35);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.kbtn--hold:hover { border-color: var(--pink); box-shadow: 0 0 36px rgba(255, 122, 172, 0.6); }
.keyline.is-done .kbtn--hold { background: var(--pink); color: var(--ink); cursor: default; }
.keyline.is-done .kbtn--hold span::after { content: ' ✓'; }

.glow-quote {
  margin: clamp(48px, 8vw, 110px) 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.glow-quote em { display: block; color: var(--pink); text-shadow: 0 0 44px rgba(255, 122, 172, 0.6); }

/* ---------- 02 Light and steps ---------- */

.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }

.half {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 48px);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
}

.half h3 { margin-bottom: 26px; font-size: clamp(26px, 3vw, 40px); font-weight: 300; line-height: 1.08; }
.half li { position: relative; padding: 15px 0; border-top: 1px solid var(--rule); }

/* A beam of light falling across the card */
.half__beam {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 96deg at 0% 0%, transparent 0deg, rgba(255, 122, 172, 0.36) 16deg, rgba(255, 122, 172, 0.1) 46deg, transparent 68deg);
  transform-origin: 0 0;
  pointer-events: none;
  animation: sway 7s ease-in-out infinite;
}

.js .half__beam { opacity: 0; transition: opacity 1.6s ease 0.2s; }
.js .is-in .half__beam { opacity: 1; }

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(7deg); }
}

.half--light > *:not(.half__beam) { position: relative; }

.half--steps { background: rgba(255, 122, 172, 0.07); }
.prints li { display: flex; gap: 18px; align-items: flex-start; }
.prints .foot { flex: none; margin-top: 2px; color: var(--pink); filter: drop-shadow(0 0 8px rgba(255, 122, 172, 0.7)); }
.prints li:nth-child(odd) .foot { transform: rotate(-14deg); }
.prints li:nth-child(even) .foot { transform: translateX(8px) rotate(14deg); }

.js .prints .foot { opacity: 0; }
.js .is-in .prints .foot { animation: stamp 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.js .is-in .prints li:nth-child(1) .foot { animation-delay: 0.4s; }
.js .is-in .prints li:nth-child(2) .foot { animation-delay: 0.75s; }
.js .is-in .prints li:nth-child(3) .foot { animation-delay: 1.1s; }
.js .is-in .prints li:nth-child(4) .foot { animation-delay: 1.45s; }

@keyframes stamp {
  from { opacity: 0; scale: 2.2; }
  to { opacity: 1; scale: 1; }
}

/* ---------- 03 The week in minutes ---------- */

.minutes { margin: clamp(40px, 6vw, 72px) 0 0; }
.minutes canvas { display: block; width: 100%; }

.minutes figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.minutes figcaption span { display: inline-flex; align-items: center; gap: 9px; }
.minutes__note { margin-right: auto; font-style: italic; }

.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.sw--class { background: #fff; box-shadow: 0 0 10px #fff; }
.sw--practice { background: var(--pink); box-shadow: 0 0 10px var(--pink); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.stat { display: flex; flex-direction: column; gap: 8px; }

.stat__n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stat__n b { font-weight: 300; }
.stat__n small { font-size: 0.22em; font-style: italic; letter-spacing: 0; margin-left: 8px; }
.stat--pink .stat__n { color: var(--pink); text-shadow: 0 0 50px rgba(255, 122, 172, 0.5); }
.stat__l { font-size: 14px; font-weight: 500; max-width: 17em; color: var(--muted); }

/* The daily rule, said loud */
.rule20 {
  margin: clamp(44px, 6vw, 80px) 0 0;
  padding: clamp(22px, 3vw, 36px) clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--pink);
  box-shadow: 0 0 60px rgba(255, 122, 172, 0.25), inset 0 0 40px rgba(255, 122, 172, 0.1);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.rule20__min { display: block; font-size: clamp(32px, 5vw, 64px); }
.rule20__min b { font-weight: 400; color: var(--pink); text-shadow: 0 0 36px rgba(255, 122, 172, 0.7); }
.rule20__why { display: block; margin-top: 0.3em; font-style: italic; font-size: clamp(22px, 2.8vw, 36px); color: var(--muted); }

.js .rule20.is-in .rule20__min b { animation: glowpulse 2.8s ease-in-out 0.6s 2; }

@keyframes glowpulse {
  0%, 100% { text-shadow: 0 0 36px rgba(255, 122, 172, 0.7); }
  50% { text-shadow: 0 0 22px rgba(255, 122, 172, 1), 0 0 80px rgba(255, 122, 172, 0.9); }
}

/* ---------- 04 The route and its lamps ---------- */

.route {
  --gap: clamp(64px, 8vw, 104px);
  display: grid;
  gap: var(--gap);
  max-width: 900px;
  margin: clamp(70px, 9vw, 120px) auto clamp(90px, 11vw, 140px);
}

.stop { position: relative; display: flex; align-items: center; gap: clamp(18px, 4vw, 48px); }
.stop:nth-child(even) { flex-direction: row-reverse; text-align: right; }

/* the path runs down each lamp post and crosses over in the gap between stops */
.stop .way { position: absolute; left: 28px; }
.stop .way--in { top: calc(var(--gap) * -0.3); }
.stop .way--out { bottom: calc(var(--gap) * -0.3); }
.stop:nth-child(even) .way { left: auto; right: 28px; }

.stop__lamp { position: relative; flex: none; width: 56px; height: 134px; color: rgba(255, 255, 255, 0.4); --glass: transparent; transition: color 0.6s; }
.stop__lamp svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }

.halo {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 172, 0.55), rgba(255, 122, 172, 0.14) 50%, transparent 72%);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}

.stop__text { max-width: 30em; transition: opacity 0.8s ease; }
.stop__text p { margin: 0; color: var(--muted); }
.stop__text h3 { margin-bottom: 10px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 300; }

.stop__n {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--pink);
}

.js .stop__text { opacity: 0.3; }
.js .stop.is-lit .stop__text { opacity: 1; }
.stop.is-lit .stop__lamp, html:not(.js) .stop__lamp { color: #fff; --glass: var(--pink); }
.stop.is-lit .halo, html:not(.js) .halo { opacity: 1; transform: scale(1); }

/* ---------- The style is yours ---------- */

.styles { max-width: 940px; margin: 0 auto; }

.lanterns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
html:not(.js) .lanterns, html:not(.js) .stage { display: none; }

.lanternbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.lanternbtn i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; transition: background 0.25s, box-shadow 0.25s; }
.lanternbtn:hover { border-color: var(--pink); }
.lanternbtn.is-active { background: var(--pink); border-color: var(--pink); color: var(--ink); box-shadow: 0 0 34px rgba(255, 122, 172, 0.55); }
.lanternbtn.is-active i { background: var(--ink); }

.stage { margin: 8px 0 34px; }
.stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.stage__path { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; filter: drop-shadow(0 0 6px rgba(255, 122, 172, 0.9)); }
.stage__lamp { color: #fff; --glass: var(--pink); }
.stage__lamp circle { fill: rgba(255, 122, 172, 0.22); }

.stage__labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage__labels span:nth-child(2) { text-align: center; }
.stage__labels span:nth-child(3) { text-align: right; }

.styles__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding-top: 28px; border-top: 1px solid var(--rule); }

.style-panel p:not(.style-panel__name) { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 26px); line-height: 1.38; }
.style-panel__name { font-weight: 600; margin-bottom: 4px; }
.js .style-panel__name { display: none; }
.style-panel[hidden] { display: none; }
.js .style-panel { animation: fadein 0.6s ease both; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.styles__same { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); color: var(--muted); }
.styles__same p:last-child { margin: 0; }
.styles__foot { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------- 05 The fork ---------- */

.fork { position: relative; height: clamp(110px, 13vw, 170px); margin-top: clamp(40px, 5vw, 64px); }
.fork__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fork__svg path { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; stroke-linecap: round; }
.js .fork__svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s ease 0.2s; }
.js .fork__svg.is-in path { stroke-dashoffset: 0; }

.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: start; }

.branch { position: relative; padding: clamp(24px, 3vw, 40px); }
.branch h3 { margin-bottom: 20px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; line-height: 1.1; }
.branch li { position: relative; padding: 13px 0 13px 32px; border-top: 1px solid var(--rule); }
.branch li::before { position: absolute; left: 0; top: 11px; font-family: var(--serif); font-size: 19px; }

.branch--yes { background: var(--pink); color: var(--ink); --rule: rgba(18, 17, 23, 0.25); box-shadow: 0 0 80px rgba(255, 122, 172, 0.45); }
.branch--yes li::before { content: '✓'; }

.branch--no { background: #391C3A; color: rgba(255, 255, 255, 0.82); border: 1px dashed rgba(255, 255, 255, 0.4); }
.branch--no li::before { content: '–'; }

/* ---------- 06 The letter ---------- */

.story { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(20px, 3vw, 40px); }

.letter {
  position: relative;
  padding: clamp(22px, 3.4vw, 48px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 34px 60px -30px rgba(18, 17, 23, 0.6);
  rotate: -1.2deg;
}

/* fold creases */
.letter::before, .letter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(rgba(18, 17, 23, 0), rgba(18, 17, 23, 0.06) 50%, rgba(18, 17, 23, 0));
  pointer-events: none;
}

.letter::before { top: 33.3%; }
.letter::after { top: 66.6%; }

/* it arrives folded and opens out */
.js .letter.reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(-70px -70px 68% -70px);
  transition: clip-path 1.6s cubic-bezier(0.65, 0, 0.25, 1) 0.25s;
}

.js .letter.reveal.is-in { clip-path: inset(-70px -70px -70px -70px); }

.letter p { max-width: 34em; }
.letter__sign { margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--pink); }

.video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.video__play { position: relative; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: var(--pink); animation: pulse 2.4s ease-out infinite; }

.video__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--ink);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 172, 0.6); }
  100% { box-shadow: 0 0 0 26px rgba(255, 122, 172, 0); }
}

.video__title { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 26px); }
.video__note { margin: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65; }

.notes { display: grid; gap: 18px; padding-top: 12px; }

.notes li {
  padding: 20px 22px;
  border: 1.5px solid var(--ink);
  background: rgba(255, 255, 255, 0.28);
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  transition: rotate 0.3s, background 0.3s, opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notes li:nth-child(odd) { rotate: 1.4deg; }
.notes li:nth-child(even) { rotate: -1.6deg; }
.notes li:hover { rotate: 0deg; background: var(--paper); }

/* ---------- 07 The backpack ---------- */

.pack { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: clamp(20px, 3vw, 44px); }

.pack__bag { position: sticky; top: 110px; text-align: center; }
.pack__bag svg { display: block; width: 170px; margin: 0 auto; overflow: visible; }
.pack__bag.bump svg { animation: bump 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }

@keyframes bump {
  0% { transform: none; }
  35% { transform: scale(1.12, 0.9) translateY(6px); }
  100% { transform: none; }
}

.pack__count { margin: 14px 0 0; font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.pack__count b { font-weight: 300; }
.pack__count span { font-size: 0.45em; font-style: italic; opacity: 0.7; }
.pack__label { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.pack__list { display: grid; gap: 14px; }

.item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px 18px 18px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.32;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.4s;
}

.js .item { opacity: 0.35; transform: translateX(40px); }
.js .item.is-packed { opacity: 1; transform: none; box-shadow: 5px 5px 0 var(--ink); }

.item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pink);
  transition: background 0.4s 0.3s;
}

.item__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s 0.3s; }
.item.is-packed .item__icon { background: var(--ink); }
.item.is-packed .item__icon svg { stroke: var(--paper); }

.token { position: fixed; left: 0; top: 0; z-index: 50; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ink); pointer-events: none; }

/* ---------- 08 The dial ---------- */

.rulesgrid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }

.dial { position: sticky; top: 110px; aspect-ratio: 1; }
.dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dial circle, .dial path { fill: none; }
.dial text { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; fill: var(--ink); opacity: 0.7; }

.dial__early { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; opacity: 0.2; transform-origin: 120px 120px; transition: opacity 0.5s, stroke 0.5s, stroke-width 0.5s; }
.dial__ticks { stroke: var(--ink); stroke-width: 7; stroke-dasharray: 1.6 24.84; opacity: 0.45; }
.dial__arc { stroke-width: 18; transition: opacity 0.5s; }
.dial__arc--a { stroke: var(--pink); }
.dial__arc--b { stroke: var(--ink); }
.dial__hand { transform-origin: 120px 120px; transition: transform 1s cubic-bezier(0.3, 1.3, 0.5, 1); }
.dial__hand path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dial__hand circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }

.dial[data-state="ask"] .dial__arc { opacity: 0.3; }
.dial[data-state="ask"] .dial__early { opacity: 1; stroke: var(--pink); stroke-width: 5; animation: spin 26s linear infinite; }
.dial[data-state="preply"] .dial__hand { transform: rotate(180deg); }
.dial[data-state="same"] .dial__arc { opacity: 0.3; }
.dial[data-state="same"] .dial__hand { animation: shift 2.6s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shift {
  0%, 100% { transform: rotate(250deg); }
  50% { transform: rotate(310deg); }
}

.dial__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; pointer-events: none; }
.dial__center b { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.dial__center span { max-width: 11em; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; }

.rules { display: grid; gap: 16px; }

.rule {
  padding: 22px 26px;
  border: 1.5px solid rgba(18, 17, 23, 0.22);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rule h3 { margin-bottom: 10px; }
.rule p:last-child { margin: 0; font-size: 16px; }
.rule.is-active { background: var(--paper); border-color: var(--ink); box-shadow: 7px 7px 0 var(--pink); }

.fineprint { max-width: 46em; margin: clamp(32px, 4vw, 56px) 0 0; padding: 20px 24px; border-left: 3px solid var(--ink); font-size: 15px; background: rgba(255, 255, 255, 0.5); }

/* ---------- 09 Signposts ---------- */

.hint { margin: -10px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
html:not(.js) .hint { display: none; }

.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 60px); margin-top: clamp(32px, 4vw, 56px); }

.signs__col { position: relative; display: grid; gap: 26px; align-content: start; padding-bottom: 30px; }

/* the post the signs hang on */
.signs__col::before { content: ''; position: absolute; top: -16px; bottom: 0; left: 50%; width: 8px; margin-left: -4px; background: var(--ink); border-radius: 4px 4px 0 0; }

.sign { position: relative; perspective: 1400px; transition: rotate 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sign:nth-child(odd) { rotate: -1.3deg; }
.sign:nth-child(even) { rotate: 1.1deg; }
.sign:hover { rotate: 0deg; }

.sign__face {
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(22px, 2.6vw, 32px);
  border: 0;
  border-radius: 6px;
  text-align: left;
}

.sign__front {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 132px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.01em;
  cursor: pointer;
}

/* two nails */
.sign__front::before, .sign__front::after { content: ''; position: absolute; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.sign__front::before { left: 12px; }
.sign__front::after { right: 12px; }

.sign__back { background: var(--pink); color: var(--ink); cursor: pointer; }
.sign__back p { margin: 0; font-size: 16px; line-height: 1.55; }

.js .sign__inner { display: grid; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.3, 1.25, 0.5, 1); }
.js .sign__face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.js .sign__back { transform: rotateY(180deg); display: flex; align-items: center; }
.js .sign.is-flipped .sign__inner { transform: rotateY(180deg); }

/* ---------- 10 Sunrise: three promises, three steps up to the sun ---------- */

.finale { overflow: hidden; padding-bottom: clamp(140px, 18vw, 260px); }
.finale .wrap { z-index: 2; }
.finale__title { font-size: clamp(38px, 7vw, 100px); max-width: 12em; }
.finale .lead { max-width: 30em; }

.sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 74vmin;
  height: 74vmin;
  margin-left: -37vmin;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 120px 40px rgba(255, 122, 172, 0.45);
  transform: translateY(82%);
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  animation: sunbreath 5s ease-in-out infinite;
}

@keyframes sunbreath {
  0%, 100% { box-shadow: 0 0 120px 40px rgba(255, 122, 172, 0.45); }
  50% { box-shadow: 0 0 170px 70px rgba(255, 122, 172, 0.6); }
}

.finale[data-count="1"] .sun { transform: translateY(66%); }
.finale[data-count="2"] .sun { transform: translateY(48%); }
.finale[data-count="3"] .sun { transform: translateY(20%) scale(9); transition-duration: 2.2s; }

/* the three promises climb towards the sun like steps */
.vows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  align-items: end;
  margin-top: clamp(70px, 9vw, 130px);
}

.vow:nth-child(2) { translate: 0 -44px; }
.vow:nth-child(3) { translate: 0 -88px; }

.vow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: rotate 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s, background 0.4s;
}

.vow:hover { rotate: -1.2deg; box-shadow: 11px 11px 0 var(--pink); }
.vow:active { rotate: 0deg; box-shadow: 4px 4px 0 var(--ink); }
.vow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vow:focus-within { outline: 3px solid var(--pink); outline-offset: 5px; }

.vow__n { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(46px, 5vw, 66px); line-height: 0.8; color: var(--pink); transition: color 0.3s; }
.vow__text { flex: 1; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; }

.vow__stamp {
  position: relative;
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 2px dashed var(--ink);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.vow:hover .vow__stamp { transform: rotate(-8deg) scale(1.05); }

.vow__cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 0.2s;
}

.vow__stamp .foot {
  position: absolute;
  width: 38px;
  height: 57px;
  fill: var(--ink);
  opacity: 0;
  transform: rotate(-14deg) scale(2.6);
}

.vow input:checked ~ .vow__stamp { background: var(--pink); border: 2px solid var(--ink); }
.vow input:checked ~ .vow__stamp .vow__cta { opacity: 0; }
.vow input:checked ~ .vow__stamp .foot { opacity: 1; transform: rotate(-14deg) scale(1); transition: transform 0.4s cubic-bezier(0.2, 1.6, 0.4, 1), opacity 0.12s; }
.vow input:checked ~ .vow__n { color: var(--ink); }
.vow.is-on { background: var(--pink-soft); box-shadow: 8px 8px 0 var(--pink); }

/* the next promise waiting for you calls out */
.vow.is-next .vow__stamp { border-color: var(--pink); color: var(--pink); animation: beckon 1.7s ease-out infinite; }

@keyframes beckon {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 172, 0.65); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(255, 122, 172, 0); }
}

/* progress to the finish line */
.goal { max-width: 640px; margin: clamp(36px, 4vw, 56px) auto 0; text-align: center; }

.goal__track {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 6px;
  margin: 0 8px;
  border-radius: 3px;
  background: rgba(18, 17, 23, 0.14);
}

.goal__track span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 3px;
  background: var(--ink);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.goal__track i { position: relative; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: background 0.4s; }
.goal__track i:first-of-type { visibility: hidden; }
.goal__track i.on { background: var(--pink); }

.finish { margin: 26px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; }

.finish.is-done {
  font-weight: 300;
  font-size: clamp(36px, 6vw, 84px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  animation: fadein 1.2s ease 0.9s both;
}

/* little footprints thrown out when the last promise is made */
.spark { position: fixed; left: 0; top: 0; z-index: 50; width: 14px; height: 21px; margin: -10px 0 0 -7px; pointer-events: none; }

/* ---------- The finale: the universe from the top of the page bursts out again ---------- */

body.cosmos-open { overflow: hidden; }

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0A0910;
  color: #fff;
  cursor: pointer;
  animation: cosmosIn 0.35s ease both;
}

/* the flash of the burst, centred on the last stamp */
.cosmos::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at var(--ox, 50%) var(--oy, 50%), #fff 0%, rgba(255, 122, 172, 0.9) 18%, rgba(255, 122, 172, 0) 55%);
  pointer-events: none;
  animation: flash 1.4s ease-out forwards;
}

/* dawn, for the last scene */
.cosmos::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, #FF7AAC 0%, #8E3E6E 28%, #2B1935 58%, #0A0910 100%);
  opacity: 0;
  transition: opacity 3.2s ease;
  pointer-events: none;
}

.cosmos.dawn::before { opacity: 1; }
.cosmos.is-closing { animation: cosmosOut 0.6s ease forwards; }

@keyframes cosmosIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cosmosOut { to { opacity: 0; } }

@keyframes flash {
  0% { opacity: 1; transform: scale(0.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(2.4); }
}

.cosmos__sky { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }

.cosmos__sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 84vmin;
  height: 84vmin;
  margin-left: -42vmin;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 180px 70px rgba(255, 122, 172, 0.55);
  transform: translateY(110%);
  transition: transform 4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.cosmos.dawn .cosmos__sun { transform: translateY(64%); }

.cosmos__scenes {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(940px, calc(100% - 32px));
  text-align: center;
  pointer-events: none;
}

.scene {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(10px);
  transition: opacity 0.9s ease, transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.9s ease;
}

.scene.is-on { opacity: 1; transform: none; filter: none; }
.scene p { margin: 0; text-shadow: 0 2px 30px rgba(10, 9, 16, 0.6); }

.scene em { color: var(--pink); text-shadow: 0 0 36px rgba(255, 122, 172, 0.7); }
.dawn .scene--final em { color: #fff; }

.scene__big { font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 9vw, 130px); line-height: 1; letter-spacing: -0.045em; }
.scene__line { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.scene__when { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; }
.scene__es { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 27px); color: var(--pink); opacity: 0; transition: opacity 0.9s ease 1.1s; }
.scene.is-on .scene__es { opacity: 1; }
.dawn .scene--final .scene__es { color: #fff; }

.scene__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.scene.is-on .scene__btns { pointer-events: auto; }

.scene__btn {
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.scene__btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }
.scene__btn--pink { background: #fff; border-color: #fff; color: var(--ink); }
.scene__btn--pink:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.cosmos__skip, .cosmos__close {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(10, 9, 16, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.cosmos__skip { right: 20px; bottom: 20px; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.cosmos__close { top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; font-size: 16px; }
.cosmos.dawn .cosmos__skip { opacity: 0; pointer-events: none; }
.cosmos__skip:hover, .cosmos__close:hover { background: rgba(255, 255, 255, 0.15); }

/* keep the hover/active transitions on elements that also fade in */
.js .rule.reveal { transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .vow.reveal { transition: rotate 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s, background 0.4s, opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .sign.reveal { transition: rotate 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ---------- Colophon ---------- */

.colophon {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 980px) {
  .masthead__nav { display: none; }
  .masthead__tag { margin-left: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero .hero__title { font-size: clamp(44px, 12vw, 80px); }
  .portrait { order: -1; justify-self: center; max-width: 250px; }
  .scale { width: 100%; max-width: 280px; }
  .halves, .branches, .story, .styles__grid, .signs, .rulesgrid, .pack { grid-template-columns: 1fr; }
  .stop, .stop:nth-child(even) { flex-direction: row; text-align: left; align-items: flex-start; }
  .stop__lamp { width: 40px; height: 96px; }
  .stop .way, .stop:nth-child(even) .way { left: 20px; right: auto; }
  .halo { top: 20px; width: 220px; height: 220px; margin: -110px 0 0 -110px; }
  .styles__same { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid var(--rule); }
  .stage__labels { font-size: 10px; letter-spacing: 0.06em; }
  .fork { height: 70px; }
  .fork__svg { display: none; }
  .pack__bag { position: static; display: flex; align-items: center; justify-content: center; gap: 18px; }
  .pack__bag svg { width: 96px; margin: 0; }
  .pack__count { margin: 0; }
  .dial { position: relative; top: auto; width: 100%; max-width: 300px; margin: 0 auto; }
  .item { gap: 14px; padding: 14px 16px 14px 14px; }
  .item__icon { width: 42px; height: 42px; }
  .signs__col { padding-bottom: 0; }
  .signs__col:first-child::before { bottom: -30px; }
  .vows { grid-template-columns: 1fr; gap: 22px; margin-top: 44px; }
  .vow:nth-child(2), .vow:nth-child(3) { translate: none; }
  .vow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n stamp" "text stamp"; column-gap: 16px; row-gap: 10px; align-items: center; }
  .vow__n { grid-area: n; }
  .vow__text { grid-area: text; align-self: start; }
  .vow__stamp { grid-area: stamp; width: 92px; height: 92px; }
  .goal { margin-top: 36px; }
}

@media (max-width: 420px) {
  .masthead__tag { display: none; }
}
