:root {
  --ink: #07090b;
  --paper: #eef0ef;
  --fg-d: #eef2f3;
  --mut-d: #a3aeb4;
  --fg-l: #0e1418;
  --mut-l: #4a555b;
  --red: #e1251b;
  --water: #9fd4ff;
  --pad: 4.4vw;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --f: "Onest", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink); color: var(--fg-l);
  font-family: var(--f); font-weight: 300;
  font-size: clamp(15px, 1.05vw, 20px); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video, canvas { display: block; }
::selection { background: var(--red); color: #fff; }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 24px var(--pad);
  color: var(--fg-d);
  background: var(--hbg, transparent);
  transition: color .5s var(--ease), transform .6s var(--ease), background-color .4s, padding .4s var(--ease);
}
.hdr.is-top { background: transparent; }
/* always on screen once you scroll: a slimmer bar with its own backing so it never sits on top of a headline */
.hdr:not(.is-top) { padding-top: 14px; padding-bottom: 14px; }
.hdr.is-light { color: var(--fg-l); }
.brand { display: inline-flex; align-items: center; gap: 6px; }
.brand__word { font-weight: 600; font-size: 25px; letter-spacing: -.045em; font-style: italic; line-height: 1; }
.cross { width: 17px; height: 17px; transform: translateY(-5px); }
.cross rect { fill: var(--red); }
.cross path { fill: #fff; }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 400; }
.nav a { opacity: .8; transition: opacity .3s; }
.nav a:hover { opacity: 1; }
.hdr__buy { justify-self: end; display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 400; }

/* ---------- type ---------- */
.eyebrow { font-size: clamp(15px, 1.1vw, 20px); font-weight: 400; color: var(--mut-d); }
.h1 { font-weight: 300; font-size: clamp(44px, 4.8vw, 92px); line-height: 1.02; letter-spacing: -.045em; }
.lead { font-size: clamp(17px, 1.35vw, 25px); line-height: 1.45; color: var(--mut-d); max-width: 30em; }
.sec:not([data-dark]) .eyebrow, .sec:not([data-dark]) .lead { color: var(--mut-l); }
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.li { display: block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 30px;
  background: var(--red); color: #fff; border-radius: 4px;
  font-weight: 400; font-size: 17px;
  transition: background .3s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease); }
/* hover: white spreads from the point where the pointer came in, the label turns red (js sets --x / --y) */
.btn { overflow: hidden; isolation: isolate; transition: color .35s var(--ease); }
.btn::before {
  content: ''; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%);
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--red); }
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(var(--fill, 60)); }
.btn:hover svg { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .btn::before { transition: none; } }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 68px; padding: 0 36px; font-size: 19px; }
.link { position: relative; font-weight: 400; padding: 4px 0; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.link:hover::after { transform: scaleX(0); }

/* ---------- sections ---------- */
.sec { position: relative; background: var(--paper); }
[data-dark] { background: var(--ink); color: var(--fg-d); }
.pin { position: sticky; top: 0; height: 100vh; overflow: clip; }

/* wave reveal: the incoming section opens as a ring from the top, over the colour of the previous one */
.reveal { background: var(--under); }
.reveal > .pin, .reveal > .rv { clip-path: circle(var(--r, 150vmax) at var(--rx, 50%) 0); background: var(--paper); }
.reveal[data-dark] > .pin, .reveal[data-dark] > .rv { background: var(--ink); }
.ring {
  position: absolute; left: var(--rx, 50%); top: 0; z-index: 5; pointer-events: none;
  width: calc(var(--r, 0px) * 2); height: calc(var(--r, 0px) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(159, 212, 255, var(--ra, 0));
  box-shadow: 0 0 40px rgba(159, 212, 255, calc(var(--ra, 0) * .35));
}

/* ---------- 1. hero ---------- */
.hero { height: 270vh; }
.hero .pin { background: radial-gradient(70vw 60vh at 62% 38%, #121a20 0%, #07090b 70%); }
.hero__water, .hero__brush { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__water { display: none; }   /* the black glass is drawn on the brush canvas */
.hero__copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: 40vw; z-index: 2; }
.hero__title { margin-top: 22px; font-weight: 300; font-size: 7.6vw; line-height: .92; letter-spacing: -.055em; }
.hero__buy { margin-top: 44px; display: flex; align-items: center; gap: 34px; }
.hero__num { position: absolute; left: var(--pad); top: 15vh; z-index: 2; opacity: 0; pointer-events: none; }
.num { font-weight: 200; font-size: 13.5vw; line-height: .8; letter-spacing: -.065em; white-space: nowrap; }
.num__cap { margin-top: 4vh; max-width: 24em; font-size: clamp(18px, 1.5vw, 28px); line-height: 1.35; color: #c9d3d8; }

/* ---------- 2. compare ---------- */
.compare { height: 320vh; }
.compare__in {
  height: 100%; padding: 18vh var(--pad) 8vh;
  display: grid; grid-template-columns: 31vw 1fr; column-gap: 3vw; align-items: center;
}
.compare__head .h1 { font-size: clamp(40px, 3.8vw, 74px); }
.compare__head .lead { margin-top: 28px; min-height: 5.8em; transition: opacity .4s; }
.state { position: relative; display: grid; margin-bottom: 26px; font-size: clamp(16px, 1.15vw, 21px); font-weight: 500; }
.state span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 12px; transition: opacity .5s, transform .6s var(--ease); }
.state span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.state__a { color: #7d5a17; }   /* AA on the light page */
.state__b { color: #1f6fb8; opacity: 0; transform: translateY(12px); }
.compare.is-sonic .state__a { opacity: 0; transform: translateY(-12px); }
.compare.is-sonic .state__b { opacity: 1; transform: none; }
.teeth {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 72%, transparent);
  mask-composite: intersect;
}
.teeth svg { width: 100%; height: auto; overflow: visible; }

/* ---------- 3. macro ---------- */
.macro { height: 360vh; }
.macro__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.macro .pin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, #07090b 0%, rgba(7,9,11,.9) 14%, rgba(7,9,11,0) 38%),
    linear-gradient(90deg, rgba(7,9,11,.85) 0%, rgba(7,9,11,.35) 40%, rgba(7,9,11,0) 60%);
}
.beat { position: absolute; right: var(--pad); bottom: 14vh; width: 34vw; z-index: 2; opacity: 0; transform: translateY(30px); }   /* right: the head passes through the left half of the frame */
.beat .h1 { margin-top: 18px; font-size: clamp(40px, 4vw, 78px); }

/* ---------- 4. modes ---------- */
.modes { overflow-x: clip;
  min-height: 100vh; padding: 16vh var(--pad) 10vh;
  display: grid; grid-template-columns: 34vw 1fr; grid-template-rows: auto auto 1fr; column-gap: 3vw;
}
.modes__head { grid-column: 1; }
.modes__head .h1 { margin-top: 18px; font-size: clamp(38px, 3.6vw, 70px); }
.stage { position: relative; grid-column: 2; grid-row: 1 / 4; height: 76vh; align-self: center; }
.stage__flow {
  position: absolute; inset: -10vh calc(-1 * var(--pad)) 0; width: calc(100% + 2 * var(--pad)); height: calc(100% + 10vh);
  /* the streams fade out before any edge of the canvas */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 70%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 70%, transparent), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.stage__heads { position: absolute; left: 50%; top: 44%; width: 54vw; aspect-ratio: 1600 / 1000; transform: translate(-50%, -50%); }
.head {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: translateX(8vw) rotate(4deg) scale(.94);
  transition: opacity .5s, transform .9s var(--ease);
}
.head.is-on { opacity: 1; transform: none; }
.head.is-out { opacity: 0; transform: translateX(-8vw) rotate(-4deg) scale(.94); }
.stage__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 13vh; }
.tiles { grid-column: 1; display: grid; grid-auto-rows: 1fr; gap: 12px; margin-top: 5vh; align-self: start; }
/* buttons do not stretch in a grid by themselves: without this a shorter card sits in a taller row */
.tiles > .tile { align-self: stretch; height: 100%; }
.tile {
  position: relative; text-align: left;
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-content: start;
  padding: 24px 26px;
  border: 1px solid #263037; border-radius: 6px; background: #0d1215;
  transition: background .45s, border-color .45s, color .45s, transform .5s var(--ease);
}
.tile__n { font-size: 15px; padding-top: .55em; color: var(--mut-d); transition: color .45s; }
.tile__t { font-size: clamp(26px, 2.2vw, 42px); letter-spacing: -.035em; line-height: 1.1; }
.tile__d { grid-column: 2; margin-top: 8px; font-size: 16px; color: var(--mut-d); transition: color .45s; }
.tile::after {
  content: ""; position: absolute; right: 24px; top: 30px; width: 14px; height: 14px;
  border-radius: 50%; border: 1px solid #4a5760; transition: background .45s, border-color .45s;
}
.tile:hover { border-color: #4a5760; transform: translateX(6px); }
.tile.is-on { background: var(--fg-d); color: var(--fg-l); border-color: var(--fg-d); }
.tile.is-on .tile__n, .tile.is-on .tile__d { color: var(--mut-l); }
/* listen: the brush's own hum per mode, made in the browser (Web Audio), with a line on what you hear */
.sound { grid-column: 1; grid-row: 3; margin-top: 4vh; display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; justify-items: start; }   /* caption under the button */
.sound__btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px 0 16px; border: 1px solid #263037; border-radius: 6px; background: #0d1215; font-size: 16px; white-space: nowrap; transition: border-color .4s, color .4s; }
.sound__btn:hover { border-color: #4a5760; }
.sound__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound__btn .w1, .sound__btn .w2 { opacity: .35; }
.sound__btn[aria-pressed="true"] { border-color: #3f9be6; color: #9fd4ff; }
.sound__btn[aria-pressed="true"] .w1 { animation: sw 1.2s ease-in-out infinite; }
.sound__btn[aria-pressed="true"] .w2 { animation: sw 1.2s .25s ease-in-out infinite; }
@keyframes sw { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.sound__cap { font-size: 15px; line-height: 1.5; color: var(--mut-d); max-width: 34em; padding-top: 4px; }
.sound__cap b { font-weight: 500; color: var(--fg-d); }
@media (prefers-reduced-motion: reduce) { .sound__btn[aria-pressed="true"] .w1, .sound__btn[aria-pressed="true"] .w2 { animation: none; opacity: 1; } }
.tile.is-on::after { background: #3f9be6; border-color: #3f9be6; box-shadow: 0 0 0 6px rgba(63,155,230,.18); }

/* ---------- 5. inside ---------- */
.inside { height: 300vh; }
.xray { position: absolute; inset: 0; width: 100%; height: 100%; }
.inside__head { position: absolute; left: var(--pad); top: 15vh; width: 30vw; z-index: 2; }
.inside__head .h1 { margin-top: 18px; font-size: clamp(40px, 3.8vw, 72px); }
.callines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.callines path { fill: none; stroke: rgba(238, 242, 243, .45); stroke-width: 1; transition: opacity .5s; }
.callines circle { fill: var(--fg-d); transition: opacity .5s; }
.call {
  position: absolute; left: var(--x); top: var(--y); width: 25vw; z-index: 2;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s, transform .8s var(--ease);
}
.call.is-on { opacity: 1; transform: none; }
.call b { display: block; font-weight: 400; font-size: 24px; letter-spacing: -.02em; margin-bottom: 8px; }
.call p { font-size: 16px; color: var(--mut-d); line-height: 1.5; }

/* ---------- 6. swiss ---------- */
.swiss { min-height: 110vh; overflow: clip; display: grid; align-items: end; }
.swiss__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swiss__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,9,11,.92) 8%, rgba(7,9,11,.35) 55%, rgba(7,9,11,.55)); }
.swiss__in { position: relative; z-index: 2; padding: 0 var(--pad) 12vh; }
.swiss__in .eyebrow { color: #d5dee3; }
.swiss__title { margin-top: 18px; font-weight: 300; font-size: 8.4vw; line-height: .92; letter-spacing: -.06em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; margin-top: 9vh; border-top: 1px solid rgba(238,242,243,.25); padding-top: 30px; }
.fact b { display: block; font-weight: 300; font-size: clamp(40px, 3.6vw, 68px); letter-spacing: -.05em; line-height: 1; }
.fact p { margin-top: 14px; color: #c9d3d8; font-size: 17px; max-width: 24em; }

/* ---------- 7. who ---------- */
.who .rv { padding: 22vh var(--pad) 18vh; }
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; margin-top: 8vh; }
.case__art { width: 100%; height: auto; display: block; }
.case h3 { margin-top: 14px; font-weight: 400; font-size: clamp(22px, 1.8vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.case p { margin-top: 10px; color: var(--mut-l); font-size: 17px; max-width: 18em; }

/* ---------- 8. set ---------- */
.set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 100vh; padding: 8vh var(--pad); gap: 5vw; overflow: clip; }
.set__img { position: relative; display: flex; justify-content: center; align-items: center; height: 84vh; }
.set__img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }   /* white studio background melts into the paper */
.box { list-style: none; margin-top: 4vh; font-size: clamp(18px, 1.35vw, 25px); letter-spacing: -.02em; line-height: 1.5; }
.box li { position: relative; padding-left: 1.1em; }
.box li::before { content: ''; position: absolute; left: 0; top: .62em; width: .36em; height: .36em; border-radius: 50%; background: var(--red, #e1251b); }   /* what's in the box: a mark per item */
.spec { margin-top: 7vh; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3vw; border-top: 1px solid #cdd2d1; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #cdd2d1; font-size: 16px; }
.spec dt { color: var(--mut-l); }
.spec dd { text-align: right; }

/* ---------- 9. order ---------- */
.order { overflow: clip; }
.order .rv { position: relative; min-height: 110vh; padding: 22vh var(--pad) 14vh; }
.order__brush { position: absolute; right: 9vw; top: -6vh; height: 118vh; aspect-ratio: 800 / 2000; z-index: 1; }
.order__brush .fb, .order__brush canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.order__brush .fb + .fb { opacity: 0; }
.ledlist { list-style: none; position: absolute; inset: 0; pointer-events: none; }
.ordlines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ordlines path { fill: none; stroke: rgba(238, 242, 243, .22); stroke-width: 1; transition: stroke .5s; }
.ordlines path.is-on { stroke: rgba(191, 224, 255, .8); }
.ledlist li {
  position: absolute; transform: translateY(-50%);
  display: grid; justify-items: end; gap: 2px; white-space: nowrap; text-align: right;
  color: var(--mut-d); opacity: .62; transition: opacity .5s, color .5s;
}
.ledlist b { font-weight: 400; font-size: 17px; color: var(--fg-d); }
.ledlist span { font-size: 14px; }
.ledlist li.is-on { opacity: 1; color: #bfe0ff; }
.order__in { position: relative; z-index: 2; width: 46vw; }
.order__title { font-weight: 300; font-size: 5.2vw; line-height: .98; letter-spacing: -.05em; }
.order__price { margin-top: 7vh; font-size: 20px; color: var(--mut-d); }
.order__price span { font-size: 6vw; font-weight: 200; letter-spacing: -.05em; color: var(--fg-d); margin-right: 8px; }
.form { margin-top: 6vh; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 2vw; max-width: 46vw; }
.fld { display: grid; gap: 8px; font-size: 14px; color: var(--mut-d); }
.fld input {
  font: inherit; font-size: 21px; color: var(--fg-d);
  background: transparent; border: 0; border-bottom: 1px solid #3a4750;
  padding: 10px 0; outline: none; transition: border-color .3s;
}
.fld input::placeholder { color: #75828a; }
.fld input:focus { border-color: var(--fg-d); }
.fld.bad input { border-color: var(--red); }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
.form__msg { grid-column: 1 / -1; font-size: 16px; color: var(--mut-d); min-height: 1.5em; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--ink); color: var(--fg-d); padding: 8vh var(--pad) 0; overflow: clip; }
.foot__word { position: relative; height: 20vw; margin: 4vh calc(var(--pad) * -1) 0; cursor: crosshair; }   /* the word in halftone dots, whole and centred (js/halftone.js) */
.foot__word canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foot__row { display: flex; justify-content: space-between; gap: 30px; font-size: 14px; color: var(--mut-d); }
.foot__row a:hover { color: var(--fg-d); }

@media (prefers-reduced-motion: reduce) {
  .li { transform: none !important; }
  .reveal > .pin, .reveal > .rv { clip-path: none; }
}

/* who: looping scenes, run only while visible */
.case__art .flows path { fill: none; stroke: #2f8fe0; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 22 200; stroke-dashoffset: 22; opacity: 0; }
.case__art .plq { transform-box: fill-box; transform-origin: center; }
.who.is-play .case__art .flows path { animation: flowrun 3.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.who.is-play .case__art .plq { animation: plq 3.6s ease-in-out infinite; }
.who.is-play .case__art .calm { animation: calm 3.6s ease-in-out infinite; }
@keyframes flowrun { 0% { stroke-dashoffset: 22; opacity: 0; } 12% { opacity: 1; } 55% { stroke-dashoffset: -100; opacity: 1; } 62%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes plq { 0%, 25% { transform: scale(1); opacity: .9; } 48%, 82% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: .9; } }
@keyframes calm { 0%, 25% { stroke: #d0605a; } 55%, 85% { stroke: #2a3338; stroke-width: 1.3; } 100% { stroke: #d0605a; } }

/* who: no hard edges around the little scenes */
.case__art {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, #000 60%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, #000 60%, transparent 96%);
  mask-composite: intersect;
}

/* ---------- details ---------- */
.beat[data-beat="2"] { right: auto; left: var(--pad); }   /* at the end of the fly-in the head sits on the right */
.beat::before { content: ''; position: absolute; inset: -18vh -6vw -10vh; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(0,0,0,.72), rgba(0,0,0,.4) 55%, transparent); }   /* text stays readable over the bristles */
.buy__note { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--mut-d); max-width: 32em; }
.buy__note b { font-weight: 500; color: var(--fg-d); margin-right: .3em; }
.num__pre { max-width: 26em; margin-bottom: 4vh; font-size: clamp(17px, 1.35vw, 25px); line-height: 1.4; color: #c9d3d8; }
.num__do { font-size: .32em; letter-spacing: -.02em; margin-right: .18em; vertical-align: .9em; }
.beat .h1 { margin-top: 0; }
.beat .lead { margin-top: 22px; color: #c9d3d8; }
.compare__head .h1 { font-size: clamp(34px, 3.2vw, 60px); }
.warranty { margin-top: 6vh; padding-top: 26px; border-top: 1px solid #cdd2d1; }
.warranty b { display: block; font-weight: 300; font-size: clamp(30px, 2.6vw, 48px); letter-spacing: -.04em; line-height: 1.05; }
.warranty p { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--mut-l); max-width: 30em; }
.warranty span { color: var(--fg-l); }
.order__lead { margin-top: 5vh; max-width: 30em; font-size: clamp(18px, 1.4vw, 26px); line-height: 1.45; color: #c9d3d8; }
.order__buy { margin-top: 6vh; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 30px 4vw; font-size: 15px; line-height: 1.55; }
.foot__cols > div { display: flex; flex-direction: column; gap: 4px; }
.foot__cols b { font-weight: 500; color: var(--fg-d); margin-bottom: 6px; }
.foot__cols span, .foot__cols a { color: var(--mut-d); }
.foot__cols a:hover { color: var(--fg-d); }
.foot__top { align-self: start; }
.foot__top a { font-weight: 500; color: var(--fg-d); }   /* same weight as the column heads next to it */
@media (max-width: 820px) { .foot__cols { grid-template-columns: 1fr; } }

/* =====================================================================================================
   PHONE (<= 820 px). Portrait-first layout of every block; native scroll (no Lenis on touch).
   Pinned scroll scenes are kept only where the picture fits a portrait screen (compare); the rest
   become calm stacked blocks: picture first, then the words.
   ===================================================================================================== */
@media (max-width: 820px) {
  :root { --pad: 20px; }
  html, body { overflow-x: clip; }        /* clip, not hidden: sticky scenes keep working */
  body { -webkit-text-size-adjust: 100%; }
  .modes, .compare .pin, .inside .pin { overflow-x: clip; }
  .h1 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.02; }
  .lead { font-size: 17px; }
  .eyebrow { font-size: 14px; }

  /* header: logo, price, one button */
  .nav { display: none; }
  .hdr { grid-template-columns: 1fr auto; padding-top: 12px; padding-bottom: 12px; }
  .hdr__buy { gap: 14px; }
  .hdr__price { display: inline; font-size: 14px; color: inherit; opacity: .8; }

  /* 1. hero: the brush turns on its own at the top, words under it, then the 40 000 screen */
  .hero { height: auto; }
  .hero .pin { position: relative; height: auto; min-height: 0; display: flex; flex-direction: column; padding: 64px 0 0;
    background: radial-gradient(120vw 60vh at 50% 28%, #121a20 0%, #07090b 70%); }
  .hero__brush { position: relative; inset: auto; width: 100%; height: 54svh; min-height: 380px; }
  .hero__copy { position: relative; left: auto; top: auto; bottom: auto; right: auto; width: auto; transform: none !important; opacity: 1 !important; padding: 2svh var(--pad) 0; }
  .hero__title { margin-top: 14px; font-size: 15.5vw; }
  .hero__buy { margin-top: 28px; flex-wrap: wrap; gap: 14px 24px; }
  .hero__buy .btn { width: 100%; justify-content: center; }
  .buy__note { font-size: 13px; }
  /* the price note right under the button, the «how it works» link after it */
  .hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero__buy { display: contents; }
  .hero__buy .btn { order: 1; margin-top: 28px; }
  .hero__copy .buy__note { order: 2; margin-top: 14px; }
  .hero__buy .link { order: 3; margin-top: 18px; }
  .hero__num { position: relative; left: auto; top: auto; opacity: 1 !important; transform: none !important; pointer-events: auto;
    margin-top: 48px; padding: 56px var(--pad) 64px; border-top: 1px solid rgba(238,242,243,.12); }
  .num__pre { font-size: 17px; max-width: none; margin-bottom: 3svh; }
  .num { font-size: 23vw; }
  .num__cap { margin-top: 2svh; font-size: 19px; }

  /* 3. macro: a pinned scene like on desktop - the fly-in runs from the first pixel of scroll,
     the three ideas take turns over the lower part of the frame */
  .macro { height: 300svh; }
  .macro .pin { position: sticky; top: 0; height: 100svh; min-height: 0; clip-path: none; }
  .macro__cv#macroCv, .macro__cv#macroFlow { position: absolute; inset: 0 0 auto 0; height: 72svh; min-height: 0; }
  .macro .pin::after { display: block; background: linear-gradient(180deg, rgba(7,9,11,0) 46svh, rgba(7,9,11,.85) 62svh, #07090b 72svh); }
  .beat { left: var(--pad); right: var(--pad); bottom: max(7svh, 32px); width: auto; padding: 0; }
  .beat[data-beat="2"] { left: var(--pad); }
  .beat .h1 { font-size: 34px; line-height: 1.04; }
  .beat .lead { margin-top: 12px; font-size: 17px; line-height: 1.45; }
  .beat::before { display: none; }

  /* 4. compare: stays a pinned scene (text on top, teeth below) - it fits a portrait screen */
  .compare { height: 300svh; }
  .compare .pin { position: sticky; top: 0; height: 100svh; min-height: 0; }
  .compare__in { grid-template-columns: 1fr; align-content: center; height: 100%; padding: 70px var(--pad) 4svh; gap: 3svh; }
  .compare__head .h1 { font-size: 34px; line-height: 1.04; }
  /* the teeth large enough to see the plaque: three teeth across the screen, the outer ones fade into the edges */
  .teeth { width: 128vw; margin-left: calc(50% - 64vw); }
  .compare__head .lead { min-height: 6.2em; margin-top: 14px; font-size: 16px; }
  .state { margin-bottom: 14px; font-size: 14px; }

  /* 5. modes: title, the three modes as one row of switches with the chosen one's note under it, the head, sound */
  .modes { grid-template-columns: 1fr; padding: 72px var(--pad) 56px; gap: 0; min-height: 0; }
  .modes__head .h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .tiles { position: relative; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 6px; margin-top: 24px; padding-bottom: 72px; }
  .tile { position: static; display: block; padding: 13px 4px; text-align: center; }
  .tile:hover { transform: none; }
  .tile__n, .tile::after { display: none; }
  .tile__t { font-size: 16px; letter-spacing: -.01em; }
  .tile__d { display: none; }
  .tile.is-on .tile__d { display: block; grid-column: 1 / -1; position: absolute; left: 0; right: 0; top: 60px; margin: 0; text-align: left; font-size: 15px; line-height: 1.45; color: var(--mut-d); }
  .stage { grid-column: 1; grid-row: auto; height: 38svh; min-height: 260px; margin-top: 8px; }
  .stage__heads { width: 104vw; top: 46%; }
  .stage__wave { height: 8svh; }
  .sound { grid-row: auto; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .sound__btn { justify-content: center; width: 100%; }

  /* 6. inside: a pinned scene - title on top, the brush opens up in the middle, the four notes take turns below */
  .inside { height: 340svh; }
  .inside .pin { position: sticky; top: 0; height: 100svh; min-height: 0; padding: 0; }
  .inside__head { position: absolute; left: var(--pad); right: var(--pad); top: 84px; width: auto; padding: 0; }
  .inside__head .h1 { margin-top: 10px; font-size: 30px; line-height: 1.06; }
  .xray { position: absolute; left: 0; right: 0; top: max(25svh, 200px); height: calc(100svh - max(25svh, 200px) - max(21svh, 140px)); min-height: 0; margin: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
  .callines { display: none; }
  .call { left: var(--pad) !important; right: var(--pad); top: auto !important; bottom: max(5svh, 24px); width: auto; padding: 0; }
  .call p { display: block; font-size: 15px; line-height: 1.45; }
  .call b { font-size: 22px; margin-bottom: 6px; }

  /* 7. Switzerland */
  .swiss { min-height: 0; }
  .swiss__in { padding: 38svh var(--pad) 9svh; }
  .swiss__title { font-size: 14vw; }
  .facts { grid-template-columns: 1fr; gap: 26px; margin-top: 5svh; }
  .fact b { font-size: 40px; }
  .fact p { font-size: 15px; }

  /* 8. who: two columns of small scenes */
  .who .rv { padding: 72px var(--pad) 56px; }
  /* one case per row: the scene on the left, the words beside it */
  .cases { grid-template-columns: 1fr; gap: 0; margin-top: 4svh; }
  .case { display: grid; grid-template-columns: 46% 1fr; column-gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(14,20,24,.1); }
  .case:last-child { border-bottom: 1px solid rgba(14,20,24,.1); }
  .case__art { grid-row: 1 / 3; margin: 0 -8px; width: calc(100% + 16px); }
  .case h3 { margin-top: 0; font-size: 21px; align-self: end; }
  .case p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; align-self: start; }

  /* 9. set */
  .set { grid-template-columns: 1fr; min-height: 0; padding: 72px var(--pad) 56px; gap: 28px; }
  .set__img { height: 52svh; min-height: 340px; }
  .box { font-size: 17px; }
  .warranty b { font-size: 30px; }
  .warranty p { font-size: 15px; }

  /* 10. order: the brush with its lit indicator on top, then the offer */
  .order .rv { min-height: 0; padding: 0 var(--pad) 56px; display: flex; flex-direction: column; }
  .order__brush { display: block; position: relative; right: auto; top: auto; height: 66svh; min-height: 440px; margin: 0 auto 1svh; }
  .ledlist, .ordlines { display: none; }
  .order__in { width: auto; }
  .order__title { font-size: 11vw; line-height: 1; }
  .order__lead { font-size: 17px; margin-top: 3svh; }
  .order__buy { margin-top: 4svh; }
  .order__buy .btn { width: 100%; justify-content: center; height: 62px; padding: 0 20px; font-size: 18px; }

  /* footer */
  .foot { padding-top: 40px; }
  .foot__cols { grid-template-columns: 1fr; gap: 22px; font-size: 15px; }
  .foot__word { height: 26vw; margin: 5svh calc(var(--pad) * -1) 0; }

  /* no wave reveals on phone: they cover content while the block is already readable */
  .reveal > .pin, .reveal > .rv { clip-path: none !important; }
  .ring { display: none; }
}

/* small phones */
@media (max-width: 380px) {
  .hero__title { font-size: 16vw; }
  .inside__head .h1 { font-size: 26px; }
  .num { font-size: 22vw; }
}

/* tablets in landscape and small laptops: the desktop layout, a little denser */
@media (min-width: 821px) and (max-width: 1180px) {
  .nav { gap: 18px; font-size: 14px; }
  .hdr__price { display: none; }
  .hero__copy { width: 46vw; }
  .hero__title { font-size: 8.4vw; }
  .num { font-size: 12vw; }
  .beat { width: 44vw; }
  /* modes: one column like on the phone -
     title, the three modes as a row of switches with the chosen one's note under it, the head, sound */
  .modes { grid-template-columns: 1fr; grid-template-rows: none; padding: 12vh 8vw 8vh; min-height: 0; }
  .modes__head, .tiles, .stage, .sound { grid-column: 1; grid-row: auto; }
  .tiles { position: relative; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 10px; margin-top: 32px; padding-bottom: 64px; }
  .tile { position: static; display: block; padding: 16px 8px; text-align: center; }
  .tile:hover { transform: none; }
  .tile__n, .tile::after { display: none; }
  .tile__t { font-size: 22px; }
  .tile__d { display: none; }
  .tile.is-on .tile__d { display: block; grid-column: 1 / -1; position: absolute; left: 0; right: 0; top: 76px; margin: 0; text-align: left; font-size: 16px; color: var(--mut-d); }
  .stage { height: 52vh; min-height: 340px; margin-top: 8px; align-self: auto; }
  .stage__heads { width: 70vw; top: 46%; }
  .sound { grid-template-columns: auto 1fr; gap: 24px; margin-top: 20px; }
  .call { width: 30vw; }
  .call p { font-size: 14px; }
  .facts { gap: 4vw; }
  .fact p { font-size: 15px; }
  .cases { grid-template-columns: 1fr 1fr; gap: 4vh 4vw; }
  .order__in { width: 54vw; }
  .order__title { font-size: 6vw; }
  .ledlist, .ordlines { display: none; }   /* no room for the labels beside the brush */
  .order__brush { right: 4vw; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
