@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --mustard: #d9a521;
  --ink: #1a1a1c;
  --paper: #fafaf7;
  --panel: #efeee9;
  --rule: rgb(26 26 28 / 0.14);
  --soft: rgb(26 26 28 / 0.68);
  --gutter: clamp(20px, 4vw, 64px);
  --top: 84px;
  --columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  --band: clamp(64px, 11vh, 128px);
  --measure: 62ch;
  --display: 'Inter Display', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 3vw, 44px);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--mustard);
  color: var(--ink);
}

/* Header. */
.top {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--top);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.brand img {
  display: block;
  width: 118px;
  height: auto;
}

.top nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 15px;
  font-weight: 500;
}

.top nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current='page'] {
  border-bottom-color: currentColor;
}

.top nav .nav-join {
  white-space: nowrap;
  padding: 0.6em 1.2em;
  border: 0;
  border-radius: 999px;
  background: var(--mustard);
}

/* Actions. Mustard is for these and nothing else. */
.join,
.field button {
  display: inline-block;
  padding: 0.85em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease-out;
}

.join:hover,
.field button:hover {
  transform: translateY(-2px);
}

.more {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.actions .more {
  padding: 14px 0;
}

/* Home: opening. */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: var(--gutter);
  min-height: min(100svh, 860px);
  padding: calc(var(--top) + 40px) var(--gutter) 56px;
}

.home-words h1 {
  max-width: none;
  font-size: clamp(44px, 6.2vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.home-words p {
  max-width: 40ch;
  margin: 28px 0 32px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--soft);
}

/* The pedals share one case size, so they sit in a row at one height. */
.home-shot {
  margin: 0;
}

.shot-row {
  display: flex;
  align-items: center;
  gap: 5%;
}

/* Each picture grows in proportion to its width-to-height ratio, which gives
   the three the same height. */
.shot-row img {
  flex: 0.624 1 0;
  min-width: 0;
  height: auto;
  filter: drop-shadow(0 22px 20px rgb(26 26 28 / 0.26));
}

.shot-row img:first-child {
  flex-grow: 0.604;
}

.home-shot figcaption {
  margin-top: 28px;
  font-size: 13px;
  color: var(--soft);
}

/* Home: products. */
.products {
  padding: var(--band) var(--gutter);
  border-top: 1px solid var(--rule);
}

.products-head,
.made-head,
.faq-head {
  margin-bottom: 28px;
}

.products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tiles::-webkit-scrollbar {
  display: none;
}

.rail-buttons {
  display: flex;
  gap: 8px;
}

.rail-buttons button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out,
    border-color 160ms ease-out;
}

.rail-buttons button:hover:not(:disabled) {
  background: #000;
}

/* At the end of the row the button empties out, so the dark one is the way to go. */
.rail-buttons button:disabled {
  border-color: var(--rule);
  background: transparent;
  color: rgb(26 26 28 / 0.35);
  cursor: default;
}

.rail-buttons svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tiles {
  display: flex;
  gap: 16px;
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-right: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.tile {
  flex: 0 0 calc((100% - var(--gutter) - 32px) / 2.25);
  display: grid;
  grid-template-rows: auto 1fr;
  scroll-snap-align: start;
}

.tile-stage {
  position: relative;
  display: block;
  height: 54svh;
  min-height: 340px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel);
}

.tile-print {
  position: absolute;
  right: -6%;
  top: 50%;
  height: 128%;
  width: auto;
  transform: translateY(-50%);
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%);
  mask-image: linear-gradient(to right, transparent 0, #000 34%);
}

.tile-shot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile-tall {
  height: 78%;
  width: auto;
  filter: drop-shadow(0 20px 18px rgb(26 26 28 / 0.22));
}

.tile-wide {
  width: 78%;
  height: auto;
  filter: drop-shadow(0 24px 20px rgb(26 26 28 / 0.22));
}

.tile-stage:hover .tile-shot {
  transform: translate(-50%, -52%) scale(1.02);
}

.tile-words {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  align-content: start;
  padding: 22px 0 0;
}

.tile-words h3 {
  grid-column: 1 / -1;
  font-size: clamp(26px, 2.6vw, 38px);
}

.tile-words p {
  margin: 0;
  color: var(--soft);
}

.tile-words ul {
  grid-row: span 2;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.tile-words li {
  padding: 7px 0;
  border-top: 1px solid var(--rule);
}

.tile-words li:first-child {
  padding-top: 0;
  border-top: 0;
}

.tile-words .more {
  justify-self: start;
  align-self: end;
}

/* Home: how the products are made. */
.made {
  padding: var(--band) var(--gutter);
  background: var(--panel);
}

.made-head,
.faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
}

.made-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.made-grid figure {
  margin: 0;
}

.made-pic {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  aspect-ratio: 4 / 3;
  padding: 8%;
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
}

.made-pic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 16px 14px rgb(26 26 28 / 0.2));
}

.made-colour img {
  object-position: 50% 38%;
  opacity: 1;
}

.made-line {
  padding: 4%;
}

.made-line img {
  filter: none;
}

.made-pair {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 9%;
  padding: 5% 6% 4%;
}

/* Each picture with its one-word label beneath. */
.pair-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}

.pair-item > img {
  width: auto;
  height: 100%;
  min-height: 0;
}

.story-pic.made-pair {
  display: flex;
  padding: 6% 8% 4%;
}

.story-pic.made-pair img {
  width: auto;
  filter: none;
}

.story-pic.made-pair .pair-item > img {
  filter: drop-shadow(0 18px 16px rgb(26 26 28 / 0.24));
}

.pair-item > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}

/* The plugin's faceplate inside a plain window frame. */
.plugin-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  border-radius: 7px;
  overflow: hidden;
  background: #dcdbd6;
  box-shadow: 0 16px 14px rgb(26 26 28 / 0.2), 0 0 0 1px rgb(26 26 28 / 0.12);
}

.plugin-bar {
  display: flex;
  gap: 4px;
  padding: 5px 7px;
}

.plugin-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(26 26 28 / 0.28);
}

.plugin-window img {
  width: auto;
  height: 100%;
  filter: none;
}

.made-art {
  padding: 0;
}

.made-art img {
  object-fit: cover;
  object-position: 50% 12%;
  filter: none;
  opacity: 0.85;
}

.made-grid figcaption {
  padding-top: 16px;
  color: var(--soft);
}

.made-grid strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

/* Questions. */
.faq {
  display: grid;
  grid-template-columns: var(--columns);
  gap: 20px var(--gutter);
  padding: var(--band) var(--gutter);
}

.faq-head {
  display: grid;
  align-content: start;
  justify-content: start;
  gap: 16px;
  margin: 0;
}

.faq-list details {
  border-top: 1px solid var(--rule);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 20px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list p {
  max-width: 60ch;
  margin: 0 0 20px;
  color: var(--soft);
}

/* Product page: words on the left, a viewer with several angles on the right. */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--columns);
  align-items: center;
  gap: var(--gutter);
  padding: calc(var(--top) + 24px) var(--gutter) var(--gutter);
}

.pitch h1 {
  font-size: clamp(44px, 6.4vw, 104px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pitch p {
  max-width: 28ch;
  margin: 0.7em 0 1.4em;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.4;
}

.pitch .offer {
  max-width: none;
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--soft);
}

.viewer {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.stage {
  position: relative;
  height: calc(100svh - var(--top) - var(--gutter) - 116px);
  min-height: 320px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel);
}

.viewer:not(:has(.views)) .stage {
  height: calc(100svh - var(--top) - var(--gutter) - 24px);
}

.view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 240ms ease-out;
}

.view.is-on {
  opacity: 1;
}

.view-cut {
  object-fit: contain;
  padding: 5%;
  filter: drop-shadow(0 24px 22px rgb(26 26 28 / 0.24));
}

.view-photo {
  object-fit: cover;
}

.views {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.views button {
  width: 82px;
  height: 82px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}

.views button[aria-pressed='true'] {
  border-color: var(--ink);
}

.views img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.views .thumb-photo {
  padding: 0;
  object-fit: cover;
}

.sheet {
  padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(30px, 6vh, 70px);
}

.detail {
  display: grid;
  grid-template-columns: var(--columns);
  gap: 24px var(--gutter);
  padding: clamp(36px, 6vh, 64px) 0;
  border-top: 1px solid var(--rule);
}

.detail h2 {
  grid-row: span 4;
  text-wrap: balance;
}

.detail > p {
  grid-column: 2;
  max-width: var(--measure);
  margin: 0;
}

.plain {
  grid-column: 2;
  display: grid;
  gap: 10px;
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs {
  grid-column: 2;
  max-width: var(--measure);
  margin: 0;
}

/* A picture set into the right column of the details. */
.detail-pic {
  margin: 0 0 clamp(36px, 6vh, 64px);
  padding-left: calc((100% - var(--gutter)) * 0.4 + var(--gutter));
}

.detail-pic .made-pair {
  max-width: var(--measure);
  height: clamp(300px, 44vh, 440px);
  border-radius: 6px;
  background: var(--panel);
}

.detail-pic .pair-item > img {
  filter: drop-shadow(0 18px 16px rgb(26 26 28 / 0.24));
}

/* Sound clips: a round play button, the clip's name, its length. */
.clips {
  grid-column: 2;
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

.clips li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.clips li:first-child {
  border-top: 0;
  padding-top: 0;
}

.clip {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.clip::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 14px;
  border-left: 13px solid var(--paper);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.clip[aria-pressed='true']::before {
  left: 15px;
  top: 15px;
  width: 4px;
  height: 14px;
  border: 0;
  border-left: 5px solid var(--paper);
  border-right: 5px solid var(--paper);
}

.clip:disabled {
  border-color: var(--rule);
  background: transparent;
  cursor: default;
}

.clip:disabled::before {
  border-left-color: rgb(26 26 28 / 0.3);
}

.clip-time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}

.specs div {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
}

.specs div:first-child {
  border-top: 0;
  padding-top: 0;
}

.specs dt {
  color: var(--soft);
}

.specs dd {
  margin: 0;
}

/* Plain pages: about, support, contact, legal. */
.page-head {
  padding: calc(var(--top) + clamp(48px, 9vh, 110px)) var(--gutter) clamp(36px, 6vh, 64px);
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: clamp(40px, 5.4vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-head p {
  max-width: 52ch;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--soft);
}

.story {
  padding: 0 var(--gutter);
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--gutter);
  padding: calc(var(--band) * 0.6) 0;
}

.story-flip .story-pic {
  order: 2;
}

.story-pic {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  aspect-ratio: 4 / 3;
  padding: 7%;
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.story-pic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgb(26 26 28 / 0.22));
}


.story-line {
  aspect-ratio: 850 / 420;
  padding: 5%;
}

.story-line img {
  filter: none;
}

.story-colour img {
  object-position: 50% 38%;
  opacity: 1;
}

/* All four units from above at one scale: a pedal is 116 mm long with its
   plug and the desk unit 300 mm wide, so a pedal's height is 0.387 of the
   desk's width. The desk takes 46% of the row. */
.family {
  margin: 0;
  padding: clamp(40px, 7vh, 80px) var(--gutter) 0;
}

.family-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  padding: 6% 5%;
  border-radius: 6px;
  background: var(--panel);
  container-type: inline-size;
}

.family-row img {
  height: calc(46cqw * 0.387);
  width: auto;
  filter: drop-shadow(0 18px 16px rgb(26 26 28 / 0.24));
}

.family-row .family-desk {
  width: 46cqw;
  height: auto;
}

.family figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--soft);
}

.promise {
  display: grid;
  grid-template-columns: var(--columns);
  gap: 20px var(--gutter);
  margin: 0 var(--gutter);
  padding: calc(var(--band) * 0.6) 0;
  border-top: 1px solid var(--rule);
}

.promise div {
  display: grid;
  gap: 14px;
  max-width: 56ch;
}

.promise p {
  margin: 0;
  color: var(--soft);
}

.story-close {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: calc(var(--band) * 0.4) var(--gutter) var(--band);
}

.story-close p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.story-art {
  padding: 0;
}

.story-art img {
  object-fit: cover;
  object-position: 50% 12%;
  filter: none;
  opacity: 0.85;
}

.story-words {
  display: grid;
  gap: 16px;
  max-width: 48ch;
}

.story-words h2 {
  text-wrap: balance;
}

.story-words p {
  margin: 0;
  color: var(--soft);
}

.doc {
  max-width: calc(72ch + 2 * var(--gutter));
  padding: clamp(40px, 7vh, 80px) var(--gutter) var(--band);
}

.doc h2 {
  margin: 48px 0 16px;
  font-size: clamp(22px, 2vw, 28px);
}

.doc > h2:first-child,
.doc > div:first-child h2 {
  margin-top: 0;
}

.doc p {
  margin: 0 0 14px;
}

.legal p {
  color: var(--soft);
}

.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  max-width: none;
}

.contact h2 {
  margin-top: 0;
}

.contact .mail {
  font-size: 18px;
  font-weight: 500;
}

.lost {
  min-height: 70svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: calc(var(--top) + 40px) var(--gutter) 80px;
}

.lost h1 {
  font-size: clamp(32px, 4.4vw, 64px);
}

.lost p {
  margin: 0 0 12px;
  color: var(--soft);
}

/* The list. */
.list {
  display: grid;
  grid-template-columns: var(--columns);
  align-items: start;
  gap: 24px var(--gutter);
  padding: var(--band) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.list h2 {
  max-width: 14ch;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 520px);
  min-width: 0;
  font-size: 15px;
}

.field {
  display: flex;
  gap: 8px;
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 0.85em 1.1em;
  border: 1px solid rgb(250 250 247 / 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.list :focus-visible {
  outline-color: var(--mustard);
}

.signup .status {
  min-height: 1.4em;
  margin: 0;
  color: var(--mustard);
}

.signup .small {
  margin: 0;
  font-size: 13px;
  color: rgb(250 250 247 / 0.65);
}

/* Footer. */
.foot {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 32px var(--gutter);
  padding: 56px var(--gutter) 32px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgb(250 250 247 / 0.14);
  font-size: 14px;
}

.foot-brand img {
  width: 128px;
  height: auto;
  filter: invert(1);
}

.foot-brand p {
  max-width: 26ch;
  margin: 16px 0 0;
  color: rgb(250 250 247 / 0.65);
}

.foot nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.foot h2 {
  margin-bottom: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgb(250 250 247 / 0.6);
}

.foot nav a {
  justify-self: start;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}

.foot nav a:hover {
  border-bottom-color: currentColor;
}

.foot :focus-visible {
  outline-color: var(--mustard);
}

.foot-line {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgb(250 250 247 / 0.14);
  font-size: 13px;
  color: rgb(250 250 247 / 0.6);
}

/* Reveal on scroll. Only when scripts run, so the page is whole without them. */
.js :is(
    .products-head,
    .tiles,
    .made-head,
    .made-grid figure,
    .faq-head,
    .faq > .faq-list,
    .story-row:not(:first-child),
    .promise,
    .detail,
    .list > *
  ) {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
    translate 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
}

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

@media (max-width: 860px) {
  :root {
    --top: 68px;
  }

  .brand img {
    width: 92px;
  }

  .top nav {
    gap: 11px;
    font-size: 13px;
  }

  .top nav a {
    padding: 14px 4px;
  }

  .top nav .nav-join {
    padding: 0.5em 0.9em;
  }

  /* On the home page the hero's own button is in view, so the header's goes. */
  .top-home nav .nav-join {
    display: none;
  }

  .home-words h1 {
    font-size: clamp(40px, 13vw, 64px);
  }

  .home-hero,
  .faq,
  .hero,
  .detail,
  .story-row,
  .promise,
  .list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero {
    min-height: 0;
    gap: 32px;
    padding-bottom: 32px;
  }

  .products {
    padding-top: 32px;
  }

  .detail > p,
  .plain,
  .clips,
  .specs {
    grid-column: 1;
  }

  .detail-pic {
    padding-left: 0;
  }


  .made-grid,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile {
    flex-basis: 84%;
  }

  .tile-stage {
    height: 80vw;
    min-height: 0;
  }

  .tile-words {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    align-items: start;
    gap: 24px;
  }

  .viewer {
    order: -1;
  }

  .stage {
    height: 52svh;
  }

  /* One view and no thumbnails: the stage is only as tall as a stage plus its
     thumbnail row, so the name and button stay in the first screen. */
  .viewer:not(:has(.views)) .stage {
    height: calc(52svh + 70px);
  }

  .views button {
    width: 60px;
    height: 60px;
  }

  .detail h2 {
    grid-row: auto;
  }

  .specs div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .story-flip .story-pic {
    order: 0;
  }

  .family-row {
    gap: 3%;
    padding: 9% 3%;
  }

  .family-row img {
    height: calc(52cqw * 0.387);
  }

  .family-row .family-desk {
    width: 52cqw;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* Short phones: a smaller picture, so the name and button stay in view. */
@media (max-width: 860px) and (max-height: 780px) {
  .stage {
    height: 34svh;
    min-height: 0;
  }

  .viewer:not(:has(.views)) .stage {
    height: calc(34svh + 70px);
  }
}

/* On narrow phones Support moves to the footer only, so the header fits. */
@media (max-width: 440px) {
  .top nav a[href$='support.html'] {
    display: none;
  }
}

@media (max-width: 350px) {
  .top nav a[href$='about.html'] {
    display: none;
  }
}

/* With its button gone, the home header has room for every link. */
@media (max-width: 440px) {
  .top-home nav a[href$='support.html'],
  .top-home nav a[href$='about.html'] {
    display: block;
  }
}

@media (max-width: 350px) {
  .top-home nav a[href$='support.html'] {
    display: none;
  }

  /* The email field takes its own line above the button. */
  .field {
    flex-wrap: wrap;
  }

  .field input {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tile-shot,
  .view,
  .join,
  .field button {
    transition: none;
  }

  .js :is(
      .products-head,
      .tiles,
      .made-head,
      .made-grid figure,
      .faq-head,
      .faq > .faq-list,
      .story-row:not(:first-child),
      .promise,
      .detail,
      .list > *
    ) {
    opacity: 1;
    translate: none;
    transition: none;
  }
}
