:root {
  --kit-accent: var(--accent);
  --bg: #050608;
  --fg: #f2f4f5;
  --muted: #8d979e;
  --line: #1d2226;
  --accent: #ff8a3d;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* minimal scrollbars: thin, no track, a quiet thumb */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 244, 245, 0.24) transparent;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(242, 244, 245, 0.24);
  border-radius: 3px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--fg);
}
body {
  margin: 0;
  font:
    400 17px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
p {
  margin: 0;
}
a {
  color: inherit;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(var(--bg), transparent);
}
.brand {
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 13px;
}
.buy {
  font-size: 14px;
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.buy:hover {
  border-color: var(--accent);
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 120px clamp(20px, 6vw, 96px) 80px;
}
.split {
  font-weight: 300;
  font-size: clamp(44px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.line > span {
  display: block;
}
.js .line > span {
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
}
.js .split.in .line > span {
  transform: none;
}
.js .split.in .line:nth-child(2) > span {
  transition-delay: 0.1s;
}
.js .split.in .line:nth-child(3) > span {
  transition-delay: 0.2s;
}
.split em {
  font-style: normal;
  color: var(--accent);
}
.orbits {
  position: absolute;
  z-index: -1;
  right: -18vw;
  top: 50%;
  width: min(130vw, 1100px);
  translate: 0 -50%;
  rotate: -14deg;
  overflow: visible;
}
.orbits ellipse {
  fill: none;
  stroke: rgba(255, 138, 61, 0.22);
  stroke-width: 1;
}
.orbits circle {
  fill: var(--accent);
}
.js .orbits ellipse {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: orbit-draw 2.4s var(--ease) 0.3s forwards;
}
.js .orbits ellipse:nth-child(2) {
  animation-delay: 0.45s;
}
.js .orbits ellipse:nth-child(3) {
  animation-delay: 0.6s;
}
@keyframes orbit-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.sub {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 32ch;
}
.cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* frame scrub */
.spin {
  height: 340vh;
}
.spin-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.spin-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.spin-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12vh;
  text-align: center;
  padding: 0 20px;
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
/* one caption at a time, only when the script runs: without it they read as a list (below) */
html.js .spin-cap {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s,
    transform 0.6s var(--ease);
}
html.js .spin-cap.on {
  opacity: 1;
  transform: none;
}

/* words lit by the scroll */
.statement {
  height: 220vh;
}
.words {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0 0.28em;
  padding: 0 clamp(20px, 8vw, 140px);
  font-size: clamp(30px, 5.4vw, 72px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.js .words span {
  opacity: 0.38; /* the lowest that keeps 3:1 contrast for unlit words */
  transition: opacity 0.25s;
}
.js .words span.lit {
  opacity: 1;
}

/* product tour */
/* phones: the device sits on top, the features scroll underneath it */
.tour {
  display: grid;
  padding: 0 clamp(20px, 6vw, 96px);
}
.tour-device {
  position: sticky;
  top: 60px;
  z-index: 1;
  height: 46svh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
/* the speaker seen from above: a light ring around the button shows what it is doing */
.tour-screen {
  --sweep: 0.33turn;
  --tint: #ff8a3d;
  position: relative;
  width: min(56vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 300;
  background: radial-gradient(circle, #0d0f11 0 52%, transparent 53%), conic-gradient(from -90deg, var(--tint) 0 var(--sweep), #1a1e21 var(--sweep) 1turn);
  box-shadow:
    0 0 0 10px #0b0d0f,
    0 0 0 11px #262c30,
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transition:
    --sweep 0.8s var(--ease),
    --tint 0.6s;
}
.tour-screen[data-i='1'] {
  --sweep: 0.66turn;
  --tint: #5cc8ff;
}
.tour-screen[data-i='2'] {
  --sweep: 1turn;
  --tint: #9be15d;
}
@property --sweep {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0turn;
}
@property --tint {
  syntax: '<color>';
  inherits: false;
  initial-value: #ff8a3d;
}
.tour-screen span {
  transition: opacity 0.3s;
}
.feat {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}
/* the feature being read is lit by colour, not opacity, so the others still meet contrast */
.feat {
  --shift: 0;
}
.feat .num {
  translate: 0 calc(var(--shift) * 70px);
}
.feat h2 {
  translate: 0 calc(var(--shift) * 24px);
}
.feat h2,
.feat .num {
  color: var(--muted);
  transition: color 0.5s;
}
.feat.on h2 {
  color: var(--fg);
}
.feat.on .num {
  color: var(--accent);
}
.num {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.2em;
}
.feat h2 {
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: -0.035em;
}
.feat p {
  color: var(--muted);
  max-width: 30ch;
}

/* order */
.order {
  min-height: 80svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 80px 20px;
  border-top: 1px solid var(--line);
}
.order h2 {
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.045em;
}
.order p {
  color: var(--muted);
}
.btn {
  margin-top: 10px;
  padding: 15px 30px;
  border-radius: 99px;
  background: var(--accent);
  color: #140800;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover {
  filter: brightness(1.1);
}
/* the nav links, from tablet width up */
.links {
  display: none;
  gap: 26px;
  margin-left: auto;
  margin-right: 24px;
  font-size: 14px;
}
.links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.links a:hover,
.links a:focus-visible {
  color: var(--fg);
}

/* colours: the choice recolours a speaker drawn in CSS, and the canvas one */
.colours {
  --s1: #33393d;
  --s2: #1b1f22;
  --s3: #07080a;
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 16svh clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.colours[data-tone='sand'] {
  --s1: #c9bda6;
  --s2: #91866f;
  --s3: #3b352c;
}
.colours[data-tone='clay'] {
  --s1: #b4694a;
  --s2: #74402b;
  --s3: #2a140c;
}
.colours-text {
  display: grid;
  gap: 16px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.colours h2,
.specs h2,
.faq h2 {
  font-weight: 300;
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.colours-text > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 38ch;
}
.tones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.tones button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  background: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  transition: border-color 0.3s;
}
.tones button[aria-pressed='true'] {
  border-color: var(--accent);
}
.tones i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #33393d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
[data-tone='sand'] > i {
  background: #c9bda6;
}
[data-tone='clay'] > i {
  background: #b4694a;
}
.swatch-speaker {
  justify-self: center;
  position: relative;
  width: min(60vw, 300px);
  aspect-ratio: 3 / 4;
}
/* the body: a cylinder, its fabric a fine dot grid, with an elliptical top and the button */
.swatch-speaker::before {
  content: '';
  position: absolute;
  inset: 12% 0 0;
  border-radius: 50% / 12%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.6px) 0 0 / 9px 9px,
    linear-gradient(90deg, var(--s1), var(--s2) 40%, var(--s3));
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.85);
  transition: background 0.6s;
}
.swatch-speaker span {
  position: absolute;
  inset: 0 0 76%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 6%, transparent 7%), radial-gradient(ellipse at 40% 40%, #22272a, #0d0f11);
  box-shadow: inset 0 0 0 1px rgba(242, 244, 245, 0.35);
}

/* details */
.specs {
  display: grid;
  gap: 36px;
  padding: 14svh clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.specs dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.specs dl div {
  display: grid;
  gap: 6px;
  padding: 24px;
  background: var(--bg);
}
.specs dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.specs dd {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* questions: native disclosure, so it works with a keyboard and without the script */
.faq {
  display: grid;
  gap: 8px;
  padding: 14svh clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.faq h2 {
  margin-bottom: 28px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 300;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  transition: rotate 0.3s;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  max-width: 52ch;
  padding-bottom: 24px;
  color: var(--muted);
}

.foot {
  display: grid;
  gap: 32px;
  padding: 56px clamp(20px, 6vw, 96px) 32px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.foot-cols {
  display: grid;
  gap: 24px;
}
.foot ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a {
  text-decoration: none;
}
.foot a:hover,
.foot a:focus-visible {
  color: var(--fg);
}
.foot .brand {
  color: var(--fg);
}
.foot-note {
  font-size: 13px;
}
@media (min-width: 760px) {
  .links {
    display: flex;
  }
  .colours {
    grid-template-columns: 1fr 1fr;
  }
  .specs dl {
    grid-template-columns: repeat(4, 1fr);
  }
  .foot-cols {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 11;
}

/* larger screens: the device and the features side by side */
@media (min-width: 761px) {
  .tour {
    grid-template-columns: 1fr 1fr;
    gap: 0 6vw;
  }
  .tour-device {
    top: 0;
    height: 100svh;
    background: none;
  }
  .tour-screen {
    width: min(360px, 30vw);
    font-size: 24px;
  }
  .feat {
    min-height: 100svh;
    align-items: flex-start;
    text-align: left;
  }
}

/* without the script the speaker cannot turn, so the section is a still picture with its captions under it */
html:not(.js) .spin {
  height: auto;
}
html:not(.js) .spin-pin {
  position: relative;
  height: auto;
}
html:not(.js) .spin-cap {
  position: static;
  padding-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html.js:not(.motion-on) .orbits ellipse {
    animation: none;
    stroke-dashoffset: 0;
  }
  html.js:not(.motion-on) .line > span,
  html:not(.motion-on) .feat,
  html:not(.motion-on) .tour-screen,
  html:not(.motion-on) .feat :is(h2, .num) {
    transition: none;
    transform: none;
  }
  /* the same still picture: the speaker on its first frame and every caption under it */
  html:not(.motion-on) .spin {
    height: auto;
  }
  html:not(.motion-on) .spin-pin {
    position: relative;
    height: auto;
  }
  html:not(.motion-on) .spin-canvas {
    height: 72svh;
  }
  html:not(.motion-on) .spin-cap {
    position: static;
    opacity: 1;
    transform: none;
    transition: none;
    padding-bottom: 16px;
  }
}

/* the film layer, shared by all five projects: grain over everything, letterbox bars that close in while the
   signature moment plays (html.film, set by the script), and a fade up from black as the page opens. All of it is
   decoration, kept out of the way of the pointer and the reader, and still under reduced motion */
.grain {
  position: fixed;
  inset: -20px;
  z-index: 30;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bars {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: none;
  pointer-events: none;
}
.bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 7vh;
  background: #000;
  transform: scaleY(0);
  transition: transform 0.7s var(--ease);
}
.bars i:first-child {
  top: 0;
  transform-origin: top;
}
.bars i:last-child {
  bottom: 0;
  transform-origin: bottom;
}
html.film .bars i {
  transform: none;
}
@media (min-width: 900px) {
  .bars {
    display: block;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .grain {
    animation: gate 1s steps(4) infinite;
  }
  .js body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #000;
    pointer-events: none;
    animation: curtain 1.4s var(--ease) 0.1s forwards;
  }
}
html.motion-on .grain {
  animation: gate 1s steps(4) infinite;
}
@keyframes gate {
  25% {
    transform: translate(-8px, 5px);
  }
  50% {
    transform: translate(6px, -7px);
  }
  75% {
    transform: translate(-4px, -3px);
  }
}
@keyframes curtain {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---- the scroll kit's styles: the same in all five projects, coloured by each site's own tokens ---- */
header nav a[aria-current='location'] {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--kit-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
/* reveal on scroll: hidden only when the script runs and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .kit-reveal {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity 0.9s var(--ease),
      translate 0.9s var(--ease);
  }
  .js .kit-reveal.kit-in {
    opacity: 1;
    translate: none;
  }
}
html.motion-on.js .kit-reveal:not(.kit-in) {
  opacity: 0;
  translate: 0 28px;
}
html.motion-on.js .kit-reveal {
  transition:
    opacity 0.9s var(--ease),
    translate 0.9s var(--ease);
}
.kit-section {
  padding: 14vh clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.kit-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}
.kit-head h2 {
  margin: 0;
  font-weight: inherit;
  font-size: clamp(32px, 4.8vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.kit-buttons {
  display: flex;
  gap: 8px;
}
.kit-buttons button,
.kit-more {
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  background: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
}
.kit-buttons button:hover,
.kit-buttons button:focus-visible,
.kit-more:hover,
.kit-more:focus-visible {
  border-color: var(--kit-accent);
}
/* scroll snap: a native horizontal track that settles on a card */
.kit-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.kit-track > * {
  scroll-snap-align: start;
  margin: 0;
}
.kit-card {
  display: grid;
  gap: 10px;
}
.kit-card .kit-art {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.kit-card h3 {
  margin: 0;
  font-weight: inherit;
  font-size: 22px;
}
.kit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
/* zoom on scroll: the frame stays put, the picture inside settles from 1.28x to 1x */
.kit-zoom {
  overflow: hidden;
  border: 1px solid var(--line);
}
.kit-zoom > * {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(var(--zoom, 1));
  transform-origin: 50% 60%;
}
/* infinite scroll */
.kit-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.kit-list li {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 4px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.kit-list time,
.kit-list .kit-tag {
  color: var(--kit-accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 4px;
}
.kit-list p {
  margin: 0;
  color: var(--muted);
}
.kit-list b {
  display: block;
  color: var(--fg);
  font-weight: inherit;
  font-size: 1.15em;
}
.kit-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
.kit-more {
  display: none;
}
.js .kit-more:not([hidden]) {
  display: inline-block;
}

/* reduced motion: state changes happen at once, nothing fades or slides into place */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) *,
  html:not(.motion-on) *::before,
  html:not(.motion-on) *::after {
    transition-duration: 0s !important;
  }
}
