/* The landing page of portik.app: a board of rounded blocks, like a designer's
   mood board. In the middle, a tall ink block with the headline and a phone;
   on its left, four small notes; on its right, a stack of screens and a
   notification. Colors of the identity kit. No script and no inline style:
   the security policy of the server forbids them. */
:root {
  --background: #ECECF1;
  --panel: #FFFFFF;
  --note: #F5F5F8;
  --text: #242635;
  --secondary: #5A5D75;
  --muted: #A3A6BA;
  /* The link color of the kit: the periwinkle is too pale for text on white. */
  --accent-text: #4F5698;
}
/* Always light, even on a phone in dark mode (asked by Mathis). */
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* The two ends of the dashed route stick out of the board. */
  overflow-x: clip;
  background: var(--background);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* Three columns: the notes, the tall block, the side. They do not start at
   the same height, like sheets pinned on a board. */
.board {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr);
  /* Room between the blocks for the dashed route. */
  gap: 24px clamp(24px, 5vw, 64px);
  align-items: start;
}
.features { grid-column: 1; grid-row: 1; margin-top: 56px; }
.hero { grid-column: 2; grid-row: 1; }
.side { grid-column: 3; grid-row: 1; margin-top: 24px; }

.panel {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border-radius: 32px;
  padding: 16px;
}

/* The tall block: always ink, like the visuals of the kit. */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #242635;
  color: #F5F5F8;
  border-radius: 40px;
  padding: 28px 28px 0;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: block; width: 118px; height: auto; }
h1 {
  margin: 56px 0 0;
  font-size: clamp(34px, 3.9vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 700;
}
/* Kit rule: ink text on periwinkle, never white. */
h1 mark {
  /* A box of its own, so that the word sits in the middle of the pill: the
     body of the letters (not their tails) is what the eye centers on, and it
     is a little below the middle of a line of text. */
  display: inline-block;
  line-height: 1;
  padding: 0.05em 0.3em 0.15em;
  border-radius: 999px;
  background: #B2B9F5;
  color: #242635;
}
/* The titles that roll are cut into letters: a word never breaks, and its
   punctuation stays with it. */
.word { display: inline-block; white-space: nowrap; }
.lead {
  margin: 20px 0 0;
  font-size: 16px;
  color: #D5D8EA;
}
/* Apple's badge, as Apple draws it: never recolored nor cropped, at least
   40 px high, with free space around it (Apple's marketing guidelines). */
.store {
  display: inline-block;
  margin: 24px 0 0;
  line-height: 0;
  border-radius: 9px;
}
.store img { height: 48px; width: auto; }
.store:focus-visible { outline: 2px solid #B2B9F5; outline-offset: 4px; }
/* The phone is cut by the bottom of the block. Its screen is a lock screen,
   drawn here: the notification comes even when the app is closed. */
.hero-phone {
  position: relative;
  width: 76%;
  margin: 44px auto -67%;
  padding: 7px;
  border-radius: 42px;
  background: #0B0C12;
  box-shadow: 0 0 0 1.5px #3B3E55;
  transform-origin: 50% 20%;
}
.lock {
  position: relative;
  aspect-ratio: 600 / 1304;
  overflow: hidden;
  border-radius: 35px;
  background: #B2B9F5;
  color: #242635;
  text-align: center;
}
.island {
  position: absolute;
  top: 1.8%;
  left: 33%;
  width: 34%;
  height: 3.5%;
  border-radius: 999px;
  background: #0B0C12;
}
.lock p { position: absolute; left: 0; right: 0; margin: 0; }
.lock-date { top: 8.4%; font-size: 15px; font-weight: 600; }
.lock-time {
  top: 11.6%;
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
/* The arch of Portik as wallpaper. */
.lock-arch {
  position: absolute;
  top: 45%;
  left: 12%;
  width: 76%;
  fill: #9FA7EE;
}
.lock-door { fill: #C9CEF9; }

/* The notification of the arrival: the heart of the app. It is wider than
   the phone, so that it can be read, and looks like one of iOS. */
.hero .notif {
  position: absolute;
  top: 29.5%;
  left: -15%;
  right: -15%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(11, 12, 18, 0.42);
  transform-origin: 50% 0;
}
.hero .notif img { width: 42px; height: 42px; border-radius: 10px; }
.hero .notif p { color: #3F4258; line-height: 1.35; }
.hero .notif strong { color: #242635; }
.hero .notif span { color: #6E7189; }

/* Under the stack of screens, one line; then what makes the codes private. */
.side-line { margin: 28px 0 32px; font-size: 15px; color: var(--secondary); }
.arrival-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--secondary);
}

/* The four notes. */
.features { display: grid; gap: 12px; }
/* What the block is about, above its four notes. */
.features h2 { max-width: 16ch; padding: 18px 0 10px; text-align: center; }
.features article {
  background: var(--note);
  border-radius: 20px;
  padding: 24px;
}
.features svg {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--accent-text);
}
h3 {
  margin: 16px 0 4px;
  font-size: 18px;
  line-height: 1.25;
}
.features p {
  margin: 0;
  font-size: 15px;
  color: var(--secondary);
}

/* The side: a stack of screens, then a notification. */
.side { padding: 32px 24px 28px; text-align: center; }
h2 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-weight: 800;
  text-transform: uppercase;
}
.stack {
  position: relative;
  height: 300px;
  margin-top: 28px;
}
.stack img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 124px;
  margin-left: -62px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(36, 38, 53, 0.22);
}
.stack .card-left { transform: translate(-58%, 22px) rotate(-9deg); }
.stack .card-right { transform: translate(58%, 22px) rotate(9deg); }
.stack .card-middle { z-index: 1; }
.facts {
  list-style: none;
  margin: 8px 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px;
  border-radius: 20px;
  background: var(--note);
  text-align: left;
}
.notif img { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; }
.notif p { margin: 0; flex: 1; font-size: 14px; color: var(--secondary); }
.notif strong { font-size: 15px; color: var(--text); }
.notif span { align-self: flex-start; font-size: 12px; color: var(--muted); }

/* The dashed route between the blocks, like on the App Store screenshots.
   It is drawn in pixels for the three-column layout at full width (a board
   1260 wide), so it only shows there. */
.route, .spot { display: none; }
@media (min-width: 1260px) {
  /* Behind the blocks: they cut the route wherever it passes under them. */
  .route {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: visible;
  }
  /* The dashes walk along the route, towards the door. */
  .route-dashes {
    stroke: #8790EC;
    stroke-dasharray: 10 12;
    animation: walk 1.6s linear infinite;
  }
  /* The pen that uncovers them: a mask along the same path. */
  .route-pen { stroke-dasharray: 1 1; }
  /* "My position", as in the app: a ring that pulses. */
  .spot {
    display: block;
    position: absolute;
    top: 52px;
    left: 38px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #B2B9F5;
    border: 4px solid #242635;
    animation: pulse 2.4s ease-out infinite;
  }
}

/* Motion, without any script. Nothing here hides content: with "reduce
   motion" turned on, everything simply stays still. */
.hero, .features, .side { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.features { animation-delay: 0.1s; }
.side { animation-delay: 0.2s; }
/* The notification drops from the top of the screen with a small bounce,
   the phone buzzes, it stays to be read, leaves, and comes again. */
.hero .notif { animation: arrive 8s cubic-bezier(0.25, 0.8, 0.3, 1) infinite; }
.hero-phone { animation: buzz 8s linear infinite; }
/* The screens of the stack sway a little. */
.stack .card-left { animation: sway-left 6s ease-in-out infinite; }
.stack .card-right { animation: sway-right 6s ease-in-out infinite; }
.features article { transition: transform 0.2s ease; }
.features article:hover { transform: translateY(-3px); }

@keyframes walk { to { stroke-dashoffset: -22; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(154, 162, 240, 0.6); }
  100% { box-shadow: 0 0 0 16px rgba(154, 162, 240, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes arrive {
  0%, 6% { opacity: 0; transform: translateY(-64px) scale(0.86); }
  11% { opacity: 1; transform: translateY(7px) scale(1.02); }
  14% { transform: translateY(-2px) scale(1); }
  17%, 88% { opacity: 1; transform: translateY(0) scale(1); }
  94%, 100% { opacity: 0; transform: translateY(-24px) scale(0.94); }
}
@keyframes buzz {
  0%, 10.5%, 16%, 100% { transform: rotate(0); }
  11.5% { transform: rotate(-0.9deg); }
  12.5% { transform: rotate(0.9deg); }
  13.5% { transform: rotate(-0.6deg); }
  14.5% { transform: rotate(0.4deg); }
}
@keyframes sway-left {
  0%, 100% { transform: translate(-58%, 22px) rotate(-9deg); }
  50% { transform: translate(-61%, 18px) rotate(-11deg); }
}
@keyframes sway-right {
  0%, 100% { transform: translate(58%, 22px) rotate(9deg); }
  50% { transform: translate(61%, 18px) rotate(11deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}

footer {
  position: relative;
  z-index: 1;
  padding: 16px 24px 32px;
  text-align: center;
  font-size: 14px;
  color: var(--secondary);
}

/* Under the board, what scrolling reveals (asked by Mathis): the dashed route
   goes on, comes out from under the tall block, draws itself as the page
   scrolls, and ends at the door of Portik.
   Everything below is the final picture: a browser that cannot tie an
   animation to the scroll, or "reduce motion", simply shows it. */
.arrival {
  position: relative;
  padding: 0 24px 48px;
  text-align: center;
}
/* Behind the blocks of the board, so that the route comes out from under. */
.trail {
  position: relative;
  z-index: 0;
  width: min(100%, 560px);
  aspect-ratio: 560 / 260;
  margin: -24px auto 0;
}
.trail svg { display: block; width: 100%; height: 100%; overflow: visible; }
.trail-dashes {
  stroke: #8790EC;
  stroke-dasharray: 10 12;
  animation: walk 1.6s linear infinite;
}
/* The pen that uncovers the dashes: a mask along the same path. */
.trail-pen { stroke-dasharray: 1 1; }
/* Wide screens: the route comes out from under the last block, where the
   route of the board ends; elsewhere, from under the middle of the page. */
.trail-wide { display: none; }
@media (min-width: 1260px) {
  .trail-narrow { display: none; }
  .trail-wide { display: inline; }
}
.arrival-door { display: block; width: 56px; height: 56px; margin: 6px auto 0; }
.arrival h2 {
  max-width: none;
  margin: 12px 0 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: none;
}
.arrival-line { margin: 8px 0 0; font-size: 18px; color: var(--secondary); }

/* The opening logo: only shown where the page can tie its motion to the
   scroll (see below). Elsewhere the page starts with the board. */
.intro {
  display: none;
  place-items: center;
  align-content: center;
  gap: 30px;
  color: var(--muted);
}
.intro-logo { width: min(62vw, 420px); height: auto; }
.intro-hint { width: 40px; height: 40px; animation: nudge 1.8s ease-in-out infinite; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* On a phone, the reveal follows the block as it enters the screen. */
    .arrival { view-timeline: --arrival block; }
    .trail-pen, .arrival-door, .arrival-line {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --arrival;
    }
    .trail-pen { animation-name: draw; animation-range: entry 8% entry 66%; }
    .arrival-door { animation-name: pop; animation-range: entry 64% entry 78%; }
    .arrival-line { animation-name: lift; animation-range: entry 84% entry 100%; }

    /* Rolling titles, like the reels of a slot machine (asked by Mathis, from
       a React and GSAP component: redone here in CSS, the page has no
       script). Each letter is a cell; in it, a column of copies of the
       letter, under an empty line, goes up and stops on the last copy.
       The letter itself only keeps the cell at its size. Without this block
       the titles are plain text. */
    .reel {
      position: relative;
      display: inline-block;
      clip-path: inset(0);
      -webkit-text-fill-color: transparent;
    }
    mark.reel { clip-path: inset(0 round 999px); }
    .reel::after {
      content: "\A" attr(data-c) "\A" attr(data-c) "\A" attr(data-c);
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      white-space: pre;
      text-align: center;
      line-height: 1.5;
      -webkit-text-fill-color: currentColor;
      /* Where it stops: on its last line, in the middle of the cell. */
      translate: 0 calc(-0.75em - var(--n, 3) * 1.5em);
    }
    /* The text of a highlighted word sits a little above the middle of its pill. */
    mark.reel::after { top: calc(50% - 0.05em); }
    /* Not all the reels turn as many times. */
    .word > :nth-child(3n + 2) { --n: 4; }
    .word > :nth-child(3n + 2)::after { content: "\A" attr(data-c) "\A" attr(data-c) "\A" attr(data-c) "\A" attr(data-c); }
    .word > :nth-child(3n) { --n: 5; }
    .word > :nth-child(3n)::after { content: "\A" attr(data-c) "\A" attr(data-c) "\A" attr(data-c) "\A" attr(data-c) "\A" attr(data-c); }
    /* Nor at the same moment: the rank of the word, then of the letter. */
    .reels > .word:nth-child(1) { --w: 0; }
    .reels > .word:nth-child(2) { --w: 1; }
    .reels > .word:nth-child(3) { --w: 2; }
    .reels > .word:nth-child(4) { --w: 3; }
    .reels > .word:nth-child(5) { --w: 4; }
    .reels > .word:nth-child(6) { --w: 5; }
    .reels > .word:nth-child(7) { --w: 6; }
    .reels > .word:nth-child(8) { --w: 7; }
    .word > :nth-child(1) { --l: 0; }
    .word > :nth-child(2) { --l: 1; }
    .word > :nth-child(3) { --l: 2; }
    .word > :nth-child(4) { --l: 3; }
    .word > :nth-child(5) { --l: 4; }
    .word > :nth-child(6) { --l: 5; }
    .word > :nth-child(7) { --l: 6; }
    .word > :nth-child(8) { --l: 7; }
    .word > :nth-child(9) { --l: 8; }
    .word > :nth-child(10) { --l: 9; }
    .arrival .reel::after {
      animation: reel-in cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: --arrival;
      animation-range: entry calc(64% + var(--w) * 2% + var(--l) * 0.8%) entry calc(82% + var(--w) * 2% + var(--l) * 0.8%);
    }
  }
  /* On a computer, the first screen is the board: the reveal follows the
     whole scroll of the page, from its top to its bottom. */
  @media (prefers-reduced-motion: no-preference) and (min-width: 1080px) {
    .trail-pen, .arrival-door, .arrival-line, .arrival .reel::after {
      animation-timeline: scroll(root);
    }
    .trail-pen { animation-range: 0% 64%; }
    .arrival-door { animation-range: 62% 76%; }
    .arrival .reel::after { animation-range: calc(66% + var(--w) * 2% + var(--l) * 0.8%) calc(84% + var(--w) * 2% + var(--l) * 0.8%); }
    .arrival-line { animation-range: 82% 100%; }
  }
  /* The page opens on the logo alone, and everything else appears little by
     little with the scroll, in the order of the route (asked by Mathis).
     In three columns the board stays in place meanwhile, for 760 pixels of
     scroll: the logo gives way to the tall block (what Portik is), "my
     position" lights up, the route sets off, and each block appears when the
     route reaches it — the notes, the notification when it passes behind the
     tall block, the arrival. Then the page goes on, and the route below is
     drawn as it comes into view, down to the door. */
  @media (prefers-reduced-motion: no-preference) and (min-width: 1260px) {
    .stage::after { content: ""; display: block; height: 760px; }
    /* A block that stays in place is a layer of its own: without a rank, the
       route below would be painted over the blocks instead of under them. */
    .board { position: sticky; top: 0; z-index: 1; }
    .intro {
      display: grid;
      position: fixed;
      inset: 0;
      z-index: 3;
      pointer-events: none;
      animation: intro-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0px 110px;
    }
    .hero, .features, .side {
      animation: block-in linear both;
      animation-timeline: scroll(root);
    }
    .hero { animation-range: 60px 190px; }
    .spot {
      animation: pulse 2.4s ease-out infinite, pop linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 200px 240px;
    }
    .route-pen {
      animation: draw-route linear both;
      animation-timeline: scroll(root);
      animation-range: 230px 760px;
    }
    /* A block must be fully there before the route goes under it (at 389 px
       for the notes, 612 px for the arrival): while it fades in, the route
       shows through it (seen by Mathis on the site). */
    .features { animation-range: 290px 378px; }
    /* The notification comes once, when the route passes behind the phone. */
    .hero .notif {
      animation: notif-in linear both;
      animation-timeline: scroll(root);
      animation-range: 500px 570px;
    }
    .hero-phone { animation: none; }
    .side { animation-range: 515px 602px; }
    .trail-pen, .arrival-door, .arrival-line, .arrival .reel::after { animation-timeline: --arrival; }
    .trail-pen { animation-name: draw-all; animation-range: entry 10% entry 66%; }
    .arrival-door { animation-range: entry 64% entry 78%; }
    .arrival .reel::after { animation-range: entry calc(64% + var(--w) * 2% + var(--l) * 0.8%) entry calc(82% + var(--w) * 2% + var(--l) * 0.8%); }
    .arrival-line { animation-range: entry 84% entry 100%; }
    /* The titles of the board roll in when their block appears. */
    .board .reel::after {
      animation: reel-in cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: scroll(root);
    }
    .hero .reel::after { animation-range: calc(90px + var(--w) * 14px + var(--l) * 4px) calc(240px + var(--w) * 14px + var(--l) * 4px); }
    .features .reel::after { animation-range: calc(305px + var(--w) * 8px + var(--l) * 3px) calc(425px + var(--w) * 8px + var(--l) * 3px); }
    .side .reel::after { animation-range: calc(530px + var(--w) * 7px + var(--l) * 3px) calc(640px + var(--w) * 7px + var(--l) * 3px); }
  }
  /* On a phone or a tablet the blocks are stacked: the logo fills the first
     screen, then each block appears as it comes into view. */
  @media (prefers-reduced-motion: no-preference) and (max-width: 1079px) {
    .intro {
      display: grid;
      height: 100vh;
      height: 100svh;
      animation: intro-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0px 360px;
    }
    .hero, .features, .side {
      animation: block-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    /* Each title of the board rolls in as it comes up the screen. */
    .board .reels { view-timeline: --title block; }
    .board .reel::after {
      animation: reel-in cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: --title;
      animation-range: cover calc(12% + var(--w) * 1.2% + var(--l) * 0.4%) cover calc(40% + var(--w) * 1.2% + var(--l) * 0.4%);
    }
  }
}
/* The route starts with its tip already drawn: at the bottom of the first
   screen, it tells that the page goes on. */
@keyframes draw { from { stroke-dashoffset: 0.86; } }
@keyframes draw-all { from { stroke-dashoffset: 1; } }
/* The route of the board. The numbers are what is left to draw at each
   moment: the pen takes its time where the route shows (above the first
   block, then between the blocks) and hurries behind the blocks, where it
   cannot be seen. They also say when each block must appear (see the ranges
   above). If the route changes, measure again where it enters and leaves
   each block (getTotalLength / getPointAtLength). */
@keyframes draw-route {
  0% { stroke-dashoffset: 1; }
  30% { stroke-dashoffset: 0.744; }
  36% { stroke-dashoffset: 0.542; }
  50% { stroke-dashoffset: 0.501; }
  58% { stroke-dashoffset: 0.26; }
  72% { stroke-dashoffset: 0.219; }
  80%, 100% { stroke-dashoffset: 0; }
}
/* A reel starts on its empty line and ends where its style puts it. */
@keyframes reel-in { from { translate: 0 -0.75em; } }
@keyframes intro-out { to { opacity: 0; scale: 0.7; translate: 0 -40px; } }
@keyframes block-in { from { opacity: 0; translate: 0 36px; scale: 0.97; } }
@keyframes notif-in { from { opacity: 0; translate: 0 -48px; scale: 0.9; } }
@keyframes nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 8px; }
}
@keyframes pop { from { opacity: 0; scale: 0.4; } }
@keyframes lift { from { opacity: 0; translate: 0 16px; } }

/* Two columns, then one: the tall block always comes first. */
@media (max-width: 1079px) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { grid-column: 1; grid-row: 1 / span 2; }
  .features { grid-column: 2; grid-row: 1; margin-top: 0; }
  .side { grid-column: 2; grid-row: 2; margin-top: 0; }
}
@media (max-width: 680px) {
  .board { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 8px; gap: 16px; }
  .hero, .features, .side { grid-column: 1; grid-row: auto; }
  .hero { border-radius: 32px; padding: 24px 24px 0; }
  h1 { margin-top: 40px; font-size: 38px; }
}

/* On a computer, the whole page must fit in the window without scrolling
   (asked by Mathis). First the blocks are tighter than on a phone… */
@media (min-width: 1080px) {
  .board { padding: 28px 24px 12px; }
  .features { margin-top: 36px; gap: 8px; }
  .side { margin-top: 16px; padding: 26px 22px 20px; }
  .panel.features { padding: 12px; }
  .features h2 { padding: 14px 0 8px; }
  .features article { padding: 16px 20px; }
  .features svg { width: 30px; height: 30px; }
  h3 { margin: 10px 0 2px; font-size: 17px; }
  .features p { font-size: 14px; line-height: 1.4; }
  .hero { padding: 24px 26px 0; }
  h1 { margin-top: 32px; font-size: clamp(34px, 3.6vw, 43px); line-height: 1.26; }
  .lead { margin-top: 14px; font-size: 15px; }
  .store { margin-top: 18px; }
  .store img { height: 44px; }
  .hero-phone { margin-top: 30px; margin-bottom: -84%; }
  h2 { font-size: 21px; }
  .stack { height: 272px; margin-top: 20px; }
  .stack img { width: 116px; margin-left: -58px; border-radius: 16px; }
  .side-line { margin: 22px 0 26px; font-size: 14px; }
  .facts { margin-bottom: 24px; font-size: 15px; gap: 2px 16px; }
  .arrival-note { margin-top: 10px; font-size: 13px; }
  footer { padding: 6px 24px 12px; font-size: 13px; }
}
/* More room above the blocks when the route shows, for its start and end. */
@media (min-width: 1260px) {
  .board { padding-top: 60px; }
}
/* … then the page is 850 px tall. In a window that is less tall, the
   whole page shrinks, by steps of 20 px of height, down to about 60 %:
   below that the text would be too small, and the page scrolls. */
@media (min-width: 1080px) and (max-height: 850px) { body { zoom: 0.976; } }
@media (min-width: 1080px) and (max-height: 830px) { body { zoom: 0.953; } }
@media (min-width: 1080px) and (max-height: 810px) { body { zoom: 0.929; } }
@media (min-width: 1080px) and (max-height: 790px) { body { zoom: 0.906; } }
@media (min-width: 1080px) and (max-height: 770px) { body { zoom: 0.882; } }
@media (min-width: 1080px) and (max-height: 750px) { body { zoom: 0.859; } }
@media (min-width: 1080px) and (max-height: 730px) { body { zoom: 0.835; } }
@media (min-width: 1080px) and (max-height: 710px) { body { zoom: 0.812; } }
@media (min-width: 1080px) and (max-height: 690px) { body { zoom: 0.788; } }
@media (min-width: 1080px) and (max-height: 670px) { body { zoom: 0.765; } }
@media (min-width: 1080px) and (max-height: 650px) { body { zoom: 0.741; } }
@media (min-width: 1080px) and (max-height: 630px) { body { zoom: 0.718; } }
@media (min-width: 1080px) and (max-height: 610px) { body { zoom: 0.694; } }
@media (min-width: 1080px) and (max-height: 590px) { body { zoom: 0.671; } }
@media (min-width: 1080px) and (max-height: 570px) { body { zoom: 0.647; } }
@media (min-width: 1080px) and (max-height: 550px) { body { zoom: 0.624; } }
@media (min-width: 1080px) and (max-height: 530px) { body { zoom: 0.600; } }
@media (min-width: 1080px) and (max-height: 510px) { body { zoom: 0.576; } }
