/* Space Harpoon brand tokens. Colours: guidelines p.11-12. Type: p.15-18.
   Nothing outside these seven colours is used anywhere on the page. */
:root {
  --gray: #F2F2F2;
  --blue: #0043FF;
  --black: #161616;
  --white: #FFFFFF;
  --navy: #061656;
  --purple: #8D84FD;
  --sky: #6EB6FF;

  /* Headings: Neue Helvetica. Body and buttons: Gilroy (loads only where it is installed). */
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: Gilroy, "Avenir Next", "Century Gothic", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* One container, one gutter. */
  --page: 1120px;
  --pad: 1.25rem;
  --gutter: 1.5rem;
  --header: 4rem;

  /* One type scale. Every size on the page is one of these seven. */
  --t-display: clamp(2.5rem, 6.67vw, 6rem);
  --t-h2: clamp(2.25rem, 3.9vw, 3.5rem);
  --t-h3: clamp(1.375rem, 1.95vw, 1.75rem);
  --t-lede: clamp(1.125rem, 1.53vw, 1.375rem);
  --t-body: clamp(1rem, 1.18vw, 1.0625rem);
  --t-label: clamp(0.75rem, 0.9vw, 0.8125rem);
  --t-plate: clamp(7.5rem, 16.7vw, 15rem);

  /* One set of timings. Every transition and animation uses these. */
  --d-fast: 200ms;
  --d-base: 600ms;
  --d-slow: 1200ms;
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 14px;
  --cut: clamp(1.75rem, 5vw, 4.25rem);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --pad: 2.5rem; } }
@media (min-width: 900px) { :root { --gutter: 2rem; } }

@font-face { font-family: Gilroy; font-weight: 300; src: local("Gilroy-Light"), local("Gilroy Light"); }
@font-face { font-family: Gilroy; font-weight: 400; src: local("Gilroy-Regular"), local("Gilroy Regular"), local("Gilroy"); }
@font-face { font-family: Gilroy; font-weight: 500; src: local("Gilroy-Medium"), local("Gilroy Medium"); }
@font-face { font-family: Gilroy; font-weight: 700; src: local("Gilroy-Bold"), local("Gilroy Bold"); }

/* Surfaces. Each one sets its own ink, so text can only land on an approved pairing (p.13). */
[data-surface] { background-color: var(--surface); color: var(--ink); }
[data-surface="black"] { --surface: var(--black); --ink: var(--white); --soft: rgb(255 255 255 / 0.72); --line: rgb(255 255 255 / 0.14); --accent: var(--sky); }
[data-surface="navy"]  { --surface: var(--navy);  --ink: var(--white); --soft: rgb(255 255 255 / 0.78); --line: rgb(255 255 255 / 0.18); --accent: var(--sky); }
[data-surface="blue"]  { --surface: var(--blue);  --ink: var(--white); --soft: var(--white); --line: rgb(255 255 255 / 0.3);  --accent: var(--white); }
[data-surface="sky"]   { --surface: var(--sky);   --ink: var(--navy);  --soft: var(--navy); --line: rgb(6 22 86 / 0.28);     --accent: var(--navy); }
[data-surface="gray"]  { --surface: var(--gray);  --ink: var(--black); --soft: var(--black); --line: rgb(22 22 22 / 0.18);    --accent: var(--black); }
[data-surface="purple"] { --surface: var(--purple); --ink: var(--navy); --soft: var(--navy); --line: rgb(6 22 86 / 0.3); --accent: var(--navy); }
[data-surface="white"] { --surface: var(--white); --ink: var(--blue);  --soft: var(--blue); --line: rgb(0 67 255 / 0.3); --accent: var(--blue); }

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--black); color: var(--white); }

body {
  margin: 0;
  font: 400 var(--t-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 0.96; }
h2 { font-size: var(--t-h2); line-height: 1.04; }
h3 { font-size: var(--t-h3); line-height: 1.14; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.defs { position: absolute; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  padding: 0.5rem 0.9rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--page), 100% - 2 * var(--pad)); margin-inline: auto; }

/* Thin uppercase label over a heavy title, as on the guideline's section pages. */
.label {
  font: 400 var(--t-label)/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
}

/* Header: company logo, a rule outside its clear space, then the Voyage emblem and wordmark. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: max(var(--pad), (100% - var(--page)) / 2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-fast) var(--e-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.lockup { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 1.875rem; width: auto; fill: var(--white); flex: none; }
.lockup-rule { width: 1px; height: 1.75rem; background: var(--line); margin-inline: 1.125rem; flex: none; }
.voyage-id { display: inline-flex; align-items: center; gap: 0.55rem; }
.voyage-emblem { height: 1.5rem; width: auto; fill: var(--sky); }
.voyage-word { height: 1.0625rem; width: auto; fill: var(--white); }
.site-header nav { display: flex; align-items: center; gap: 1.75rem; }
.site-header nav a {
  font: 500 var(--t-label)/1 var(--text); color: var(--ink); text-decoration: none;
  padding-block: 0.75rem;
  transition: color var(--d-fast) var(--e-out);
}
.site-header nav a:hover { color: var(--sky); }
.site-header nav .nav-cta { background: var(--blue); color: var(--white); font-weight: 700; padding: 0.7rem 1rem; border-radius: 8px; white-space: nowrap; }
.site-header nav .nav-cta:hover { color: var(--white); }

/* Buttons and links */
.button {
  display: inline-block;
  background: var(--blue); color: var(--white);
  font: 700 var(--t-body)/1 var(--text); text-decoration: none;
  padding: 1.1rem 1.6rem; border-radius: 10px;
  transition: transform var(--d-fast) var(--e-out);
}
.button:hover { transform: translateY(-2px); }
.button[data-surface] { background: var(--surface); color: var(--ink); }
.text-link { font-weight: 500; text-underline-offset: 0.3em; text-decoration-thickness: 1px; padding-block: 0.6rem; }
.text-link::after { content: " \2193"; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }

/* Product pictures. They sit straight on the page, with no card and no frame. */
/* A picture's own margins are the page's black, so it can be set larger than its box (--z) and
   moved sideways (--shift) to put the product where the layout wants it; nothing visible is lost. */
.media, .seq { --z: 1; --shift: 0%; }
.media > *, .seq > * { width: calc(100% * var(--z)); max-width: none; margin-left: calc((1 - var(--z)) * 50% + var(--shift)); }
.media img, .seq img, .seq canvas { height: auto; }
.scene-figure img { width: 100%; }
.seq { display: grid; }
.seq > * { grid-area: 1 / 1; min-width: 0; }
.seq canvas { display: none; }
.seq-start { display: none; }
/* A sequence that is running draws on its canvas; its still stays in place, unseen, for screen readers. */
.seq.s-on canvas, .seq.s-done canvas { display: block; }
.seq.s-on .seq-still { opacity: 0; }

/* Hero */
.hero { position: relative; padding-top: calc(var(--header) + clamp(1.5rem, 5vw, 3rem)); padding-bottom: clamp(3rem, 6vw, 4.5rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
.hero-copy { display: grid; row-gap: 1.25rem; }
.hero .line { display: block; overflow: clip; padding-bottom: 0.08em; }
.hero .line > span { display: block; }
.lede { font-size: var(--t-lede); line-height: 1.45; color: var(--soft); max-width: 30em; }
.hero .cta-row { margin-top: 0.5rem; }
.hero-media { --z: 1.24; margin-inline: calc(-1 * var(--pad)); overflow: clip; }
.hero-stats { list-style: none; padding: 0; }
.hero-stats li { display: flex; align-items: baseline; gap: 1rem; padding-block: 0.85rem; border-top: 1px solid var(--line); }
.stat-n { flex: none; width: 6.4em; font: 700 var(--t-h3)/1.1 var(--display); letter-spacing: -0.04em; }
.stat-l { color: var(--soft); line-height: 1.35; }

/* Statement */
.statement { --p: 1; min-height: 72svh; display: grid; align-content: center; padding-block: clamp(4.5rem, 9vw, 7rem); }
.statement h2 { line-height: 1.12; max-width: 19em; }
.js .statement .w { opacity: clamp(0.6, calc((var(--p) * 2.2 - 0.36) * var(--n) - var(--i)), 1); }
.hl { position: relative; font-style: normal; white-space: nowrap; padding: 0.02em 0.16em 0.06em; }
/* the guideline's cut corner (p.04, p.13) */
.hl::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 0.3em; height: 0.3em;
  background: linear-gradient(to top left, var(--blue) 50%, transparent 50.5%);
}

/* Dock scene. Plain layout first: each state is its heading over its picture, side by side on a wide
   screen and one after the other on a narrow one. With motion on it is pinned and follows the scroll. */
.scene { --t: 0; --off: 1; --on: 1; padding: clamp(4.5rem, 8.5vw, 7.5rem) 0 0; overflow-x: clip; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.scene-copy, .scene-media { display: contents; }
.scene-line { order: 1; padding-inline: max(var(--pad), (100% - var(--page)) / 2); }
.scene-line h2 { margin-top: 0.9rem; max-width: 9.5em; }
.scene-figure { order: 2; margin-top: 1.5rem; }
.scene-line--on { order: 3; margin-top: 4rem; }
.scene-figure--on { order: 4; }
.scene-media > * { grid-area: auto; }
.track { display: none; }
@media (min-width: 901px) {
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: max(var(--pad), (100% - var(--page)) / 2); }
  .scene-line { padding-inline: 0; }
  .scene-line--off { grid-area: 1 / 1; }
  .scene-figure--off { grid-area: 2 / 1; }
  .scene-line--on { grid-area: 1 / 2; margin-top: 0; }
  .scene-figure--on { grid-area: 2 / 2; }
}

/* Bands */
.band { padding-block: clamp(4rem, 7.5vw, 6.5rem); }
.scene + .band { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gutter); row-gap: 3rem; align-items: start; }
.section-head h2 { margin-top: 0.9rem; max-width: 11em; }
.section-head > h2:first-child { margin-top: 0; }
.section-head p { margin-top: 1.5rem; max-width: 34em; font-size: var(--t-lede); line-height: 1.45; color: var(--soft); }
.facts { list-style: none; padding: 0; }
.facts li { padding-block: 1.35rem; border-top: 1px solid var(--line); color: var(--soft); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts strong { color: var(--ink); }

/* Design: three rows, picture and words side by side */
.feature {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--gutter); row-gap: 1.5rem; align-items: center;
  margin-top: clamp(3rem, 6.5vw, 5.5rem);
}
/* On a screen narrower than the widest layout the picture's black margin reaches past the screen edge.
   It is cut there, so the page never becomes wider than the screen. */
#design { overflow-x: clip; }
.feature .media { --z: 1.2; --shift: -9.5%; }       /* set larger, towards the page edge and away from the words */
.feature--flip .media { --shift: 9.5%; }            /* the picture is on the right in this row, so it grows to the right */
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .media { order: 2; }
.feature-copy h3 { margin-block: 0.9rem 1rem; }
.feature-copy p { color: var(--soft); max-width: 30em; }

/* Schematic, drawn on light blue with white construction lines (after p.06) */
.profile svg { width: 100%; height: auto; margin-top: 1.5rem; }
.profile figcaption { font-size: var(--t-label); color: var(--soft); margin-top: 1rem; }
.segmented { display: inline-flex; gap: 0.25rem; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.segmented button {
  font: 500 var(--t-label)/1 var(--text); color: var(--ink);
  background: none; border: 0; border-radius: 7px;
  padding: 0.85rem 1.1rem; cursor: pointer;
}
.segmented button[data-surface] { background: var(--surface); }
.segmented button:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* A button that is its own dark surface takes its focus ring from the band it sits on,
   so the ring never lands on a background of its own colour. */
.segmented button:focus-visible, .founders .button:focus-visible { outline-color: var(--navy); }
.profile line { fill: none; }
.grid line { stroke: rgb(255 255 255 / 0.6); stroke-width: 0.3; }
.shell { fill: rgb(255 255 255 / 0.55); stroke: var(--navy); stroke-width: 0.8; stroke-linejoin: round; }
.shell.dock { fill: rgb(255 255 255 / 0.85); }
.shell.hinge { fill: var(--white); }
.phone { fill: var(--blue); }
.keys rect { fill: var(--navy); }
.ground { stroke: rgb(6 22 86 / 0.6); stroke-width: 0.5; stroke-dasharray: 2 2; }
.hidden-line { fill: none; stroke: rgb(6 22 86 / 0.7); stroke-width: 0.5; stroke-dasharray: 1.6 1.6; }
.notes text { font: 500 6.4px var(--display); fill: var(--navy); }
.leader { fill: none; stroke: var(--navy); stroke-width: 0.5; }
.dim line { stroke: var(--navy); stroke-width: 0.7; }
.profile[data-dock="off"] .dock-only { visibility: hidden; }

/* Craft: the picture stays put while the list of parts goes by */
.apart { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); align-items: start; margin-top: clamp(3rem, 7vw, 5rem); }
.apart-media { --z: 1.16; --shift: -8%; position: sticky; top: calc(var(--header) + 4svh); }
.parts { list-style: none; padding: 0; }
.parts li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 0.5rem; padding-block: clamp(1.5rem, 3.4vw, 2.75rem); border-top: 1px solid var(--line); transition: opacity var(--d-base) var(--e-out); }
.parts li:last-child { border-bottom: 1px solid var(--line); }
.parts-n { font: 700 var(--t-h3)/1.14 var(--display); letter-spacing: -0.04em; color: var(--accent); grid-row: span 2; }
.parts h3 { letter-spacing: -0.03em; }
.parts p { grid-column: 2; margin-top: 0.5rem; color: var(--soft); }
.pill {
  font: 500 var(--t-label)/1 var(--text); color: var(--accent); letter-spacing: 0;
  border: 1px solid currentColor; border-radius: 999px;
  padding: 0.2rem 0.55rem; margin-left: 0.35rem; vertical-align: 0.3em; white-space: nowrap;
}

/* Specs */
.specs { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.specs div { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.05rem; border-top: 1px solid var(--line); }
.specs dt { flex: none; font-weight: 700; }
.specs dd { text-align: right; font-variant-numeric: tabular-nums; color: var(--soft); }
.fine { font-size: var(--t-label); line-height: 1.5; color: var(--soft); }
.specs + .fine { margin-top: 1.75rem; }

/* Founders Edition pre-order, on the brand purple with a dark blue number plate */
.founders .section-head p { color: var(--ink); }
.founders .cta-row { margin-top: 2.25rem; }
.terms { list-style: none; padding: 0; margin-top: 2.25rem; max-width: 34rem; }
.terms li { padding-block: 0.85rem; border-top: 1px solid var(--line); }
.terms li:last-child { border-bottom: 1px solid var(--line); }
.plate {
  position: relative; overflow: clip; border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: clamp(2rem, 6vw, 4.5rem);
}
/* the guideline's cut corner again: the one place it frames something, and it is not a product picture */
.plate::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: var(--cut); height: var(--cut);
  background: linear-gradient(to top left, var(--purple) 50%, transparent 50.5%);
}
.plate-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plate-id { display: inline-flex; align-items: center; gap: 0.55rem; }
.plate-number { display: flex; align-items: baseline; gap: 0.5rem; font: 700 var(--t-plate)/0.82 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plate-no { font-size: var(--t-label); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); align-self: flex-start; }
.plate-of { font-size: var(--t-h3); font-weight: 400; letter-spacing: -0.02em; color: var(--sky); }

/* Footer */
.site-footer { padding-block: clamp(4rem, 8vw, 6rem) 3rem; overflow: clip; }
.footer-word { width: 100%; height: auto; fill: none; stroke: rgb(255 255 255 / 0.3); stroke-width: 1.25px; overflow: visible; }
.footer-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2.5rem 4rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.logo--footer { height: 2.75rem; }
.footer-text { max-width: 34em; color: var(--soft); }
.footer-text .fine { margin-top: 0.6rem; }

/* Wide screens */
@media (min-width: 901px) {
  .hero { --fw: min(68vw, 112svh); min-height: calc(24svh + var(--fw) * 0.75 + 1rem); display: grid; align-content: start; padding-top: calc(var(--header) + 5.5svh); }
  /* the headline runs the full width; the words sit under it on the left, and the product stands large on the
     right, placed against the screen itself so that it is the biggest thing on the first screen */
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gutter); row-gap: 0; align-items: start;
               grid-template-areas: "label label" "title title" "lede ." "cta ." "stats ."; }
  .hero-copy { display: contents; }
  .hero-copy > *, .hero-stats { position: relative; z-index: 1; }
  .hero-copy > .label { grid-area: label; }
  .hero-copy > h1 { grid-area: title; margin-top: 1.25rem; }
  .hero-copy > .lede { grid-area: lede; margin-top: 2.25rem; }
  .hero-copy > .cta-row { grid-area: cta; margin-top: 2rem; }
  .hero-stats { grid-area: stats; margin-top: 2.5rem; margin-right: -2.25rem; }   /* wide enough for each figure's line to stay on one line */
  /* The picture is --fw wide. Its box starts where the picture's own light begins (4.6% in from the left, 6% down),
     to the right of the words and below the headline's first line, so no word ever lies across an edge of it. */
  .hero-media { position: absolute; left: max(45vw, calc((100vw - var(--page)) / 2 + 31.5rem)); top: calc(24svh + var(--fw) * 0.045);
                width: calc(var(--fw) * 0.954); height: calc(var(--fw) * 0.705); margin: 0; overflow: clip; }
  .hero-media > * { width: var(--fw); max-width: none; margin-left: calc(var(--fw) * -0.046); margin-top: calc(var(--fw) * -0.045); }
}
/* Narrow screens */
@media (max-width: 900px) {
  .split, .feature, .apart { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .media { order: 0; }
  .media { margin-inline: calc(-1 * var(--pad)); overflow: clip; }
  .feature .media, .feature--flip .media { --shift: 0%; }
  .scene-media { --z: 1.53; --shift: 11.5%; }
  .apart-media { --z: 1.1; --shift: 0%; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  /* the picture stays under the header while the list goes by beneath it; the list fades in, so no line of
     words is ever cut off by an edge that cannot be seen */
  .apart-media { top: var(--header); z-index: 1; background: var(--surface); padding-top: 3px; overflow-x: clip; overflow-y: visible; }
  .apart-media::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 3.5rem; pointer-events: none; background: linear-gradient(var(--surface) 12%, transparent); }
  .founders .plate { order: -1; }
  :root { --radius: 12px; }
}
@media (max-width: 760px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .segmented { display: flex; }
  .segmented button { flex: 1; padding-block: 1rem; }
}
@media (max-width: 620px) {
  .specs div { flex-direction: column; gap: 0.15rem; }
  .specs dd { text-align: left; }
  .notes text { font-size: 8.8px; }
}
@media (max-width: 480px) {
  .lockup-rule, .voyage-id { display: none; }   /* on a phone the header is the company logo and the pre-order button; the page's first line names Voyage */
}
@media (max-width: 350px) {
  .notes text { font-size: 9.6px; } /* keeps the drawing's labels at 11px or more on the narrowest phones */
}

/* Motion. Everything below is skipped for reduced motion, and the hidden
   starting states also need the .js class, so nothing is ever hidden
   without a script there to reveal it. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise var(--d-slow) var(--e-out) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .hero .line .rise { animation-name: rise-line; }
  @keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
  @keyframes rise-line { from { transform: translate3d(0, 105%, 0); } }

  /* One quiet entrance for everything that is not the product: fade, and rise 16px, once. */
  .js [data-reveal] {
    opacity: 0; transform: translate3d(0, 16px, 0);
    transition: opacity var(--d-base) var(--e-out), transform var(--d-base) var(--e-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .profile .draw { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset var(--d-slow) var(--e-out), fill-opacity var(--d-base) var(--e-out) 500ms; }
  .js .profile.is-in .draw { stroke-dashoffset: 0; fill-opacity: 1; }
  .js .profile .notes, .js .profile .keys, .js .profile .phone, .js .profile .grid { opacity: 0; transition: opacity var(--d-base) var(--e-out) 500ms; }
  .js .profile .grid { transition-delay: 0s; }
  .js .profile.is-in .notes, .js .profile.is-in .keys, .js .profile.is-in .phone, .js .profile.is-in .grid { opacity: 1; }
  .dock-only { transition: opacity var(--d-fast) var(--e-out); }

  /* Hero: the first frame of the lid is painted first, the lid then comes up, and the sharp still takes over. */
  .js .hero-media:not(.s-off):not(.s-rest) .seq-start { display: block; }
  .js .hero-media:not(.s-on):not(.s-done):not(.s-rest):not(.s-off) .seq-still, .js .hero-media.s-on .seq-still { opacity: 0; }
  .js .hero-media.s-done .seq-start, .js .hero-media.s-on .seq-start { visibility: hidden; }
  .js .hero-media.s-done .seq-still { transition: opacity var(--d-base) var(--e-out); position: relative; z-index: 1; }   /* above the canvas until the canvas goes */

  /* Parts light up as their part moves */
  .js .parts.is-live li { opacity: 0.72; }   /* everything in it keeps more than 4.5:1 against the page; the small "optional" label is the closest, at 4.9:1 */
  .js .parts.is-live li.is-on { opacity: 1; }

  /* Pinned dock scene */
  .js .scene:not(.is-plain) { padding: 0; height: 250vh; overflow-x: visible; }
  .js .scene:not(.is-plain) .stage {
    position: sticky; top: 0; height: 100svh; padding: var(--header) 0 0; overflow: clip;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: center; row-gap: 1.5rem; column-gap: 0;
  }
  .js .scene:not(.is-plain) .scene-copy { display: grid; padding-inline: max(var(--pad), (100% - var(--page)) / 2); }
  .js .scene:not(.is-plain) .scene-line { grid-area: 1 / 1; order: 0; margin-top: 0; padding-inline: 0; }
  .js .scene:not(.is-plain) .scene-line--off { opacity: var(--off); transform: translate3d(0, calc((1 - var(--off)) * -12px), 0); }
  .js .scene:not(.is-plain) .scene-line--on { opacity: var(--on); transform: translate3d(0, calc((1 - var(--on)) * 12px), 0); }
  .js .scene:not(.is-plain) .scene-media { display: grid; align-self: center; }
  .js .scene:not(.is-plain) .scene-media > * { grid-area: 1 / 1; order: 0; margin-top: 0; }
  .js .scene:not(.is-plain) .scene-media:not(.s-end) .scene-figure--on,
  .js .scene:not(.is-plain) .scene-media.s-end .scene-figure--off,
  .js .scene:not(.is-plain) .scene-media.s-on .scene-figure--off { opacity: 0; }
  /* The line runs out as the dock runs in */
  .js .scene:not(.is-plain) .track { display: block; grid-area: 2 / 1; margin-top: 1.75rem; width: 7.5rem; height: 2px; background: var(--line); }
  .js .scene:not(.is-plain) .track-line { display: block; height: 100%; background: var(--sky); transform-origin: left; transform: scaleX(var(--t)); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .js .scene:not(.is-plain) .stage {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: minmax(0, 1fr); align-items: center; column-gap: var(--gutter);
    padding-left: max(var(--pad), (100% - var(--page)) / 2);
  }
  .js .scene:not(.is-plain) .scene-copy { padding: 0; position: relative; z-index: 2; }
  .js .scene:not(.is-plain) .scene-media { --z: 1.4; --shift: 20%; align-self: center; margin-top: 9svh; }   /* the product sits high in its frame: this centres it on the screen */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .statement .w, .statement .w { opacity: 1; }
  .button, .site-header, .site-header nav a, .parts li { transition: none; }
}
/* Printing: nothing waits for a scroll that will not happen. script.js also switches to the plain
   layout before printing; this covers the case where it cannot. */
@media print {
  body, [data-surface] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header { position: static; }
  .js [data-reveal], .rise { opacity: 1; transform: none; transition: none; animation: none; }
  .js .profile .draw { stroke-dashoffset: 0; fill-opacity: 1; transition: none; }
  .js .profile .notes, .js .profile .keys, .js .profile .phone, .js .profile .grid { opacity: 1; transition: none; }
  .js .statement .w { opacity: 1; }
  .js .parts.is-live li { opacity: 1; }
  .apart-media { position: static; }
  /* sequences show their stills */
  .seq canvas, .seq-start, .js .hero-media .seq-start { display: none !important; }
  .seq .seq-still, .js .hero-media .seq-still { opacity: 1 !important; }
  /* the pinned scene laid out flat: back to its plain layout, both states showing */
  .js .scene { height: auto !important; padding: 2rem 0 0 !important; }
  .js .scene .stage { position: static !important; height: auto !important; padding: 0 !important; overflow: visible !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; }
  .js .scene .scene-copy, .js .scene .scene-media { display: contents !important; }
  .js .scene .scene-line, .js .scene .scene-figure { grid-area: auto !important; opacity: 1 !important; transform: none !important; }
  .js .scene .scene-line { padding-inline: var(--pad) !important; }
  .js .scene .scene-figure { margin-top: 1rem !important; }
  .js .scene .track { display: none !important; }
}
