:root {
  --ultramarine: #1423b8;
  --yellow: #f7dd47;
  --crimson: #c0143c;
  --sky: #38a6ec;
  --black: #000;
  --paper: #fff;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 2vw, 28px);

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.8vw, 4.5rem);
  --step-hero: clamp(3.25rem, 15vw, 7.5rem);
}

@media (min-width: 900px) {
  :root { --step-hero: clamp(5rem, 10.4vw, 11.5rem); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: "Stack Sans Text", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, h1, h2, h3, p, blockquote, dl, dd, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.head {
  font-family: "Stack Sans Headline", "Stack Sans Text", system-ui, sans-serif;
  font-size: var(--step-head);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--crimson);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.btn:hover { background: var(--black); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0 16px; background: var(--yellow); color: var(--black); font-size: var(--step-small); }
.btn--small:hover { background: var(--paper); }

/* Hero: two fields meet at the middle of the second line */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  --seam: 50%;
}
.hero { background: var(--yellow); }
.hero__ground { position: absolute; inset: var(--seam) 0 0; background: var(--ultramarine); }
.hero__head--top { margin: 0; color: var(--ultramarine); }
/* Yellow letters over the real headline, shown only below the seam */
.hero__field { position: absolute; inset: 0; z-index: 1; color: var(--yellow); clip-path: inset(var(--seam) 0 0 0); pointer-events: none; }
.hero__field [data-text]::before { content: attr(data-text); }
.hero__head {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Stack Sans Headline", "Stack Sans Text", system-ui, sans-serif;
  font-size: var(--step-hero);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
/* The seam crosses line two low on the letters, clear of the bars of the E */
.hero__head { top: calc(var(--seam) - 1.64em); }
.hero__mark {
  position: absolute;
  top: var(--gutter);
  left: var(--gutter);
  color: var(--ultramarine);
  font-weight: 500;
  font-size: var(--step-lead);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.hero__call { position: absolute; z-index: 2; top: var(--gutter); right: var(--gutter); }
.hero__nav {
  position: absolute;
  z-index: 2;
  top: var(--gutter);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  min-height: 52px;
  color: var(--ultramarine);
  font-weight: 500;
  white-space: nowrap;
}
.hero__nav a { text-decoration: none; text-underline-offset: 5px; }
.hero__nav a:hover { text-decoration: underline; }
.hero__line {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: min(62rem, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  color: var(--paper);
  font-size: var(--step-lead);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
}

.lines .line { display: block; overflow: hidden; }
.lines [data-line] { display: block; }

/* Given */
.given {
  min-height: 100svh;
  padding: clamp(72px, 9vw, 128px) var(--gutter) var(--gutter);
  background: var(--black);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}
.given__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
}
.stairs {
  font-family: "Stack Sans Headline", "Stack Sans Text", system-ui, sans-serif;
  font-size: min(var(--step-lead), 2.25rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.stairs span { display: block; }
.stairs span:nth-child(1) { color: var(--yellow); }
.stairs span:nth-child(2) { color: var(--yellow); padding-left: 2.5vw; }
.stairs span:nth-child(3) { color: var(--sky); padding-left: 5vw; }
.stairs span:nth-child(4) { color: var(--paper); padding-left: 7.5vw; }
.stairs span:nth-child(5) { color: var(--paper); padding-left: 10vw; }
.given__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.given__pics figure { overflow: hidden; aspect-ratio: 4 / 5; }
.given__pics img { width: 100%; height: 100%; object-fit: cover; }
.given__pics figure:first-child img { object-position: 50% 18%; }
.given__text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; height: 100%; }
.given__prove { max-width: 38ch; }
.given__prove h3 {
  text-wrap: balance;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* To find */
.find {
  min-height: 100svh;
  padding: clamp(72px, 9vw, 128px) var(--gutter);
  background: var(--yellow);
  color: var(--black);
}
.find__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.find__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) clamp(180px, 16vw, 240px);
  gap: clamp(20px, 2.5vw, 40px);
  align-items: stretch;
}
.tabs { display: grid; gap: 6px; grid-auto-rows: 1fr; }
.tab {
  display: block;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  background: var(--ultramarine);
  color: var(--paper);
  text-align: left;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.tab span { display: block; font-weight: 500; }
.tab small { display: block; font-size: var(--step-small); }
.tab:hover { transform: translateX(4px); }
.tab[aria-selected="true"] { background: var(--black); color: var(--yellow); }
.panels { min-width: 0; }
.panel { display: grid; gap: 6px; grid-auto-rows: 1fr; height: 100%; }
html:not(.js) .panel { height: auto; }
.panel + .panel { margin-top: 32px; }
.js .panel + .panel { margin-top: 0; }
.panel[hidden] { display: none; }
.panel__title {
  font-size: var(--step-body);
  font-weight: 500;
  margin-bottom: 8px;
}
.js .panel__title { display: none; }
.band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 24px;
  min-height: 112px;
  padding: 16px 24px;
  color: var(--paper);
  text-decoration: none;
  transition: transform .25s var(--ease-out);
}
.band:nth-of-type(odd) { background: var(--crimson); }
.band:nth-of-type(even) { background: var(--sky); color: var(--black); }
.band strong { grid-column: 1; font-size: var(--step-lead); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.band em { grid-column: 1; font-style: normal; }
.band span { grid-column: 2; grid-row: 1 / span 2; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.band:hover { transform: translateX(6px); }
.find__poster img { width: 100%; transform: rotate(1.5deg); }
.find__poster figcaption { margin-top: 16px; font-size: var(--step-small); }

/* Proof */
.proof {
  min-height: 100svh;
  padding: clamp(72px, 9vw, 128px) var(--gutter) 0;
  background: var(--crimson);
  color: var(--paper);
  display: flex;
  flex-direction: column;
}
.proof__top {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}
.batches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 48px 0 24px;
}
.batch {
  min-height: 48px;
  padding: 0 18px;
  background: var(--black);
  color: var(--paper);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.batch:hover { transform: translateY(-2px); }
.batch[aria-selected="true"] { background: var(--yellow); color: var(--black); }
.quotes {
  display: grid;
  grid-template-columns: 7fr 5fr;
  margin: 0 calc(-1 * var(--gutter));
  min-height: 60svh;
  flex: 1;
}
.quote {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(32px, 4vw, 64px) var(--gutter);
  background: var(--yellow);
  color: var(--black);
}
.quote + .quote { margin-top: 0; }
.quote[hidden] { display: none; }
html:not(.js) .quote { grid-row: auto; }
.quote blockquote {
  font-size: var(--step-lead);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 30ch;
  text-indent: -0.42em;
  padding-left: 0.42em;
}
.quote footer strong { display: block; font-weight: 500; }
.quote__page {
  grid-column: 2;
  grid-row: 1 / span 8;
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: 24px;
  align-items: end;
  padding: clamp(32px, 4vw, 64px) var(--gutter);
  background: var(--black);
  color: var(--paper);
  align-self: stretch;
}
.quote__page figcaption { font-size: var(--step-small); }

/* The constant */
.constant {
  min-height: 100svh;
  padding: clamp(72px, 9vw, 128px) var(--gutter);
  background: var(--sky);
  color: var(--black);
}
.constant__lead { max-width: 34ch; margin-top: 24px; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .constant__lead { max-width: 52ch; }
  .js .quote__page { grid-row: 1; }
  .given__pics figure { position: relative; aspect-ratio: auto; min-height: 420px; }
  .given__pics img { position: absolute; inset: 0; }
}
.constant__grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 16px;
  margin-top: 72px;
  align-items: start;
}
.constant__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.constant__photo img { width: 100%; height: 100%; object-fit: cover; }
.constant__photo figcaption {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 60%;
  padding: 20px;
  background: var(--paper);
  color: var(--black);
  font-size: var(--step-small);
}
.floors { padding: 24px; background: var(--yellow); }
.floors svg { width: 100%; height: auto; }
.floors p { margin-top: 16px; font-weight: 500; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  margin-top: 24px;
}
.facts dt { font-size: var(--step-small); }
.facts dd { font-weight: 500; }

/* Doubts */
.doubts {
  min-height: 100svh;
  padding: clamp(72px, 9vw, 128px) var(--gutter);
  background: var(--ultramarine);
  color: var(--paper);
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.doubts__side { position: sticky; top: 56px; }
.doubts__side figure { width: min(46%, 170px); margin-top: 32px; }
.doubts__side img { transform: rotate(-1.5deg); }
.tiles { display: grid; gap: 8px; }
.tiles details { background: #0e1a94; transition: background-color .2s; }
.tiles details:hover:not([open]) { background: #0a1478; }
.tiles details[open] { background: var(--yellow); color: var(--black); }
.tiles summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 64px 16px 24px;
  font-size: var(--step-body);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.tiles summary::-webkit-details-marker { display: none; }
.tiles summary::before,
.tiles summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 16px;
  height: 3px;
  margin-top: -1.5px;
  background: currentColor;
  transition: transform .25s var(--ease-out);
}
.tiles summary::after { transform: rotate(90deg); }
.tiles details[open] summary::after { transform: rotate(0); }
.tiles details > p { max-width: 56ch; padding: 0 24px; }
.tiles details > :last-child { padding-bottom: 24px; }

/* Hence */
.visit {
  background: var(--yellow);
  color: var(--black);
  padding-top: clamp(72px, 9vw, 128px);
}
.visit .head { padding: 0 var(--gutter) 40px; }
.rows { display: grid; }
.row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  column-gap: 1em;
  min-height: clamp(84px, 10vw, 138px);
  padding: 12px var(--gutter) 16px;
  font-family: "Stack Sans Headline", "Stack Sans Text", system-ui, sans-serif;
  font-size: var(--step-head);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
  text-decoration: none;
  transition: padding-left .3s var(--ease-out);
}
.row:nth-child(even) { background: #eccf30; }
a.row:not(.row--hello) { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
a.row:hover { padding-left: calc(var(--gutter) + 12px); }
.row--hello { justify-content: space-between; align-items: center; flex-wrap: nowrap; background: var(--crimson) !important; color: var(--paper); }
.row__go { display: grid; place-items: center; width: 0.9em; height: 0.9em; min-width: 52px; min-height: 52px; background: var(--yellow); color: var(--black); }
.row__go svg { width: 55%; fill: currentColor; }
.visit__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  background: var(--black);
  color: var(--yellow);
  font-weight: 500;
}
.visit__bar .btn { margin-left: auto; }

/* Footer */
.foot { padding: var(--gutter); background: var(--black); color: var(--paper); }
.mark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34svh;
  min-height: 180px;
}
.mark span {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.06em;
  overflow: hidden;
  height: var(--h);
  font-family: "Stack Sans Headline", "Stack Sans Text", system-ui, sans-serif;
  font-size: var(--step-hero);
  font-weight: 300;
  line-height: 1;
}
.mark span:nth-child(4n+1) { background: var(--yellow); color: var(--black); }
.mark span:nth-child(4n+2) { background: var(--crimson); color: var(--paper); }
.mark span:nth-child(4n+3) { background: var(--sky); color: var(--black); }
.mark span:nth-child(4n) { background: var(--ultramarine); color: var(--paper); }
.foot__grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 32px;
  margin-top: 56px;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.foot__links a { text-underline-offset: 4px; }
.credits { max-width: 80ch; margin-top: 40px; font-size: var(--step-small); }
.foot__end { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; font-size: var(--step-small); }

.callbar { display: none; }

@media (min-width: 900px) {
  .tiles summary { min-height: 84px; }
}

/* Phone and tablet */
@media (max-width: 639px) {
  .hero__nav a:nth-child(3), .hero__nav a:nth-child(4) { display: none; }
}

@media (max-width: 899px) {
  .hero { --seam: 46%; }
  .hero__nav { top: calc(var(--gutter) + 52px); left: var(--gutter); transform: none; min-height: 44px; gap: 24px; }
  .hero__call { min-height: 44px; padding: 0 12px; font-size: var(--step-small); }
  .hero__mark { font-size: var(--step-body); line-height: 44px; }
  .hero__line { left: var(--gutter); transform: none; text-align: left; bottom: 32px; text-wrap: wrap; }

  .given__grid { grid-template-columns: minmax(0, 1fr); }
  .given { min-height: 0; }
  .given__grid { flex: none; }
  .given__text { height: auto; }
  .stairs { font-size: 1.5rem; }
  .stairs span:nth-child(2) { padding-left: 4vw; }
  .stairs span:nth-child(3) { padding-left: 8vw; }
  .stairs span:nth-child(4) { padding-left: 12vw; }
  .stairs span:nth-child(5) { padding-left: 16vw; }

  .find__top { flex-direction: column; align-items: stretch; }
  .find__grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { grid-template-columns: 1fr 1fr; position: static; }
  .band { grid-template-columns: 1fr; padding: 16px; min-height: 96px; }
  .band span { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .find__poster { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: end; }
  .find__poster figcaption { margin: 0; }

  .callbar {
    position: fixed;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--black);
    transition: transform .3s var(--ease-out);
  }
  .js .callbar { transform: translateY(100%); }
  .js .callbar.is-on { transform: none; }
  .callbar a { display: grid; place-items: center; min-height: 54px; font-weight: 500; text-decoration: none; }
  .callbar a:first-child { background: var(--crimson); color: var(--paper); }
  .callbar a:last-child { background: var(--yellow); color: var(--black); }

  .proof__top { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .quote { grid-column: 1; min-height: 320px; }
  .quote__page { grid-column: 1; grid-row: auto; grid-template-columns: 120px 1fr; }

  .constant { min-height: 0; }
  .constant__grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .floors svg { max-width: 240px; }
  .constant__photo { aspect-ratio: auto; overflow: visible; }
  .constant__photo img { aspect-ratio: 4 / 3; height: auto; }
  .constant__photo figcaption { position: static; width: auto; max-width: none; }

  .doubts { grid-template-columns: minmax(0, 1fr); }
  .doubts__side { position: static; }
  .doubts__side figure { display: none; }
  .tiles { gap: 6px; }
  .tiles summary { font-size: var(--step-body); min-height: 64px; padding: 14px 52px 14px 20px; }
  .tiles details > p { padding: 0 20px; }

  .row { min-height: 84px; }
  .row--hours { row-gap: 4px; }
  .row__go { width: 56px; height: 56px; }

  .mark { height: 22svh; min-height: 120px; gap: 3px; }
  .mark span { font-size: var(--step-head); }
  .foot__grid { grid-template-columns: 1fr; }
}

/* Motion */
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes after-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes after-up-centred { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] {
    animation: line-up 900ms var(--ease-out) both;
    animation-delay: calc(var(--i) * 110ms + 150ms);
  }
  .js .hero__line { animation: after-up 700ms var(--ease-out) 900ms both; }
  .js .hero__call, .js .hero__mark, .js .hero__nav a { animation: after-up 700ms var(--ease-out) 900ms both; }
  .js [data-rise] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-rise].is-in { opacity: 1; transform: none; }
  .js .quote:not([hidden]) blockquote { animation: after-up 500ms var(--ease-out) both; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .hero__line { animation-name: after-up-centred; }
  .js .constant__photo.is-in img { animation: drift 14s var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
