:root {
  --paper: #fbf8f3;      /* warm white page */
  --ink: #23315b;        /* night blue: text, line, bar */
  --ink-soft: rgba(35, 49, 91, 0.2);
  --photo: #e9e3da;      /* photo placeholder */
  --serif: 'Newsreader Variable', 'Times New Roman', serif;
  --sans: 'Mona Sans Variable', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --off: 0.1;            /* opacity of the steps that wait */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.page {
  min-height: 100vh;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vh, 48px) clamp(16px, 5vw, 72px);
}

.why {
  width: 100%;
  max-width: min(1240px, calc((100vh - 270px) * 1.333 * 4 + 120px));
  position: relative;
}

.title {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: 'opsz' 60;
  font-size: clamp(26px, min(4.4vw, 6.4vh), 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(14px, 4vh, 44px);
}
.title .w { display: inline-block; will-change: transform; }

.head {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 100;
  font-weight: 500;
  margin-bottom: 10px;
}

.label { flex: 0 0 auto; line-height: 1.25em; }

.now {
  flex: 1 1 auto;
  min-width: 0;
}
.now__mask {
  display: inline-grid;
  overflow: hidden;
  vertical-align: top;
  height: 1.25em;
  line-height: 1.25em;
}
.now__word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
}

.pause {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pause svg { width: 16px; height: 16px; overflow: visible; }
.pause path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pause .pause__play { opacity: 0; fill: currentColor; stroke-width: 1; }
.pause:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) {
  .pause:hover { border-color: var(--ink); background: rgba(35, 49, 91, 0.04); }
}

.line {
  position: relative;
  height: 9px;
  margin-bottom: clamp(12px, 2.6vh, 26px);
}
.line__track,
.line__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 1px;
  transform-origin: 0 50%;
}
.line__track { background: var(--ink-soft); }
.line__bar { background: var(--ink); transform: scaleX(0); }
.line__tick {
  position: absolute;
  left: var(--at);
  top: 1px;
  width: 1px;
  height: 7px;
  background: var(--ink-soft);
  transform-origin: 50% 50%;
  transition: background-color .3s var(--ease);
}
.line__tick.is-past { background: var(--ink); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
}

.step {
  outline: none;
  opacity: var(--off);
  transition: opacity var(--fade, .3s) var(--ease);
  cursor: pointer;
}
.step.is-active { opacity: 1; }
.step:focus-visible .step__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.step__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--photo);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(35, 49, 91, 0.04);
  transition: box-shadow .6s var(--ease);
}
.step.is-active .step__photo { box-shadow: 0 18px 30px -22px rgba(35, 49, 91, 0.45), 0 1px 0 rgba(35, 49, 91, 0.06); }
.step__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) 50%;
  display: block;
}
/* a light grain and a thin edge of light, so the photos sit on the paper */
.step__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: multiply;
}

.step__name {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: 'opsz' 30;
  font-size: clamp(19px, min(1.9vw, 3vh), 27px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: clamp(10px, 1.8vh, 18px);
}

.step__copy {
  margin-top: 8px;
  font-size: clamp(13px, min(1.05vw, 1.9vh), 15px);
  line-height: 1.45;
  font-variation-settings: 'wdth' 95;
  max-width: 30ch;
  opacity: 0;
  transition: opacity var(--fade, .3s) var(--ease);
}
.step.is-active .step__copy { opacity: 1; }
.step__copy .w { display: inline-block; }

/* narrow screens: the steps sit on top of each other, a tap moves on (as on the site) */
@media (max-width: 759px) {
  .page { padding: 14px 18px; }
  .why { max-width: 520px; }
  .title { font-size: clamp(22px, min(7vw, 6vh), 34px); margin-bottom: clamp(10px, 2.6vh, 22px); }
  .head { font-size: 11px; gap: 12px; margin-bottom: 6px; }
  .pause { width: 28px; height: 28px; }
  .line { margin-bottom: clamp(10px, 2vh, 16px); }
  .steps { display: grid; grid-template-columns: 1fr; }
  .step { grid-area: 1 / 1; opacity: 0; pointer-events: none; }
  .step.is-active { opacity: 1; pointer-events: auto; }
  .step__photo { width: min(100%, calc((100vh - 215px) * 1.333)); }
  .step__name { font-size: clamp(18px, 5.4vw, 24px); margin-top: 10px; }
  .step__copy { font-size: 13px; max-width: 36ch; margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .step, .step__copy, .line__tick, .step__photo { transition-duration: .2s; }
}
