/* Uncut website.
   Colours are the app's tokens (Uncut/Design/Theme.swift and the asset catalog): accent #C2410C light /
   #FB923C dark, tint #FCEEE8 / #2E1A12, tint text #9A3412 / #FDBA74. One family, Mona Sans, with its
   width axis carrying the idea: clips are narrow, full episodes are wide.
   Shapes: interactive things are pills, artwork is a 22% squircle like the app, panels are 28px. */

@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  src: url("../fonts/mona-sans-latin.woff2") format("woff2-variations"), url("../fonts/mona-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  src: url("../fonts/mona-sans-latin-ext.woff2") format("woff2-variations"), url("../fonts/mona-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --orange: #C2410C;          /* AccentFill: buttons, bars, the hero */
  --on-orange: #FFF7F2;
  --accent: #C2410C;          /* AccentColor: text and icons */
  --tint: #FCEEE8;
  --tint-ink: #9A3412;
  --paper: #F4F4F2;
  --paper-2: #EAEAE6;
  --ink: #141413;
  --muted: #5C5B57;
  --hair: rgb(20 20 19 / 0.12);
  --clip: #C9C7C2;
  --shadow: 18 8 4;           /* rgb triplet for tinted shadows */

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1360px;
  --section: clamp(6rem, 15vh, 11rem);
  --s: clamp(12px, 1.3vw, 21px);   /* the glyph's stroke */
  --icon: min(32vw, 168px);        /* the app icon the page opens from */
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FB923C;
    --tint: #2E1A12;
    --tint-ink: #FDBA74;
    --paper: #0F0F0E;
    --paper-2: #1A1A18;
    --ink: #F1F0ED;
    --muted: #A3A19C;
    --hair: rgb(241 240 237 / 0.13);
    --clip: #4A4844;
    --shadow: 0 0 0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 430;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: normal; }

::selection { background: var(--orange); color: var(--on-orange); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible { outline-color: var(--on-orange); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 650; text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}

/* ---------- Type ---------- */

.h2 {
  font-size: clamp(2.25rem, 4.7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  font-weight: 760;
  font-stretch: 106%;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 720;
  font-stretch: 110%;
}
.wide { font-stretch: 125%; }
.lead {
  font-size: clamp(1.125rem, 1.45vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 50ch;
  text-wrap: pretty;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 680;
  font-stretch: 115%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.textlink {
  position: relative;
  display: inline-block;
  font-weight: 620;
  text-decoration: none;
  padding-block: 0.2em;
}
.textlink::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.textlink:hover::after { transform: scaleX(0); }
.textlink--light { color: var(--on-orange); }
@media (hover: hover) {
  .textlink:hover::after { animation: underline 0.7s var(--ease-out); }
}
@keyframes underline {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.pill {
  display: inline-block;
  padding: 0.28rem 0.7rem 0.3rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 0.82rem;
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: lining-nums proportional-nums;
}

/* The show artwork placeholder, as the app draws it: initials on the show's colour. */
.art {
  flex: none;
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 22%;
  font-size: 0.74rem; font-weight: 820; letter-spacing: 0.01em;
}
.art--dg { background: #1F3A5F; color: #F7C948; }
.art--lg { background: #14532D; color: #BBF7D0; }
.art--ns { background: #312E81; color: #C7D2FE; }
.art--sw { background: #3F6212; color: #ECFCCB; }

/* "Coming soon to the App Store": becomes a link once the app is live. */
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 3.5rem;
  padding: 0.5rem 1.5rem 0.55rem;
  border-radius: 999px;
  background: var(--on-orange);
  color: #141413;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.store__small { font-size: 0.72rem; font-weight: 560; opacity: 0.7; }
.store__big { font-size: 1.22rem; font-weight: 740; font-stretch: 112%; letter-spacing: -0.01em; }
.store--ink { background: var(--ink); color: var(--paper); }
a.store { transition: transform 0.4s var(--ease-out); }
a.store:hover { transform: translateY(-2px); }
a.store:active { transform: scale(0.98); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 var(--gutter);
  color: var(--on-orange);
  transition: color 0.45s var(--ease-out), transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.nav::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--hair);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.nav.is-solid { color: var(--ink); }
.nav.is-solid::before { opacity: 1; }

.nav__brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
  font-weight: 760; font-stretch: 112%; font-size: 1.12rem; letter-spacing: -0.01em;
}
.nav__mark { width: 30px; height: 30px; border-radius: 22.4%; box-shadow: 0 0 0 1px rgb(255 247 242 / 0.35); transition: box-shadow 0.45s; }
.nav.is-solid .nav__mark { box-shadow: none; }

.nav__menu ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav__menu a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem; font-weight: 560;
  padding-block: 0.4rem;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  align-items: center; gap: 0.6rem;
  height: 40px; padding: 0 0.4rem 0 0.9rem;
  border: 0; border-radius: 999px;
  background: transparent;
  font-weight: 620; font-size: 0.95rem;
  cursor: pointer;
}
.nav__toggle-icon { position: relative; width: 22px; height: 22px; }
.nav__toggle-icon i {
  position: absolute; left: 3px; right: 3px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.nav__toggle-icon i:first-child { top: 7px; }
.nav__toggle-icon i:last-child { top: 13px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 64px 0 auto 0;
    height: calc(100svh - 64px);
    padding: 2rem var(--gutter);
    background: var(--paper);
    color: var(--ink);
    visibility: hidden; opacity: 0;
    transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .nav__menu ul { flex-direction: column; gap: 0.25rem; }
  .nav__menu a { display: block; font-size: 2.4rem; font-weight: 740; font-stretch: 112%; letter-spacing: -0.02em; padding-block: 0.35rem; }
  .nav__menu a::after { display: none; }
  .nav__menu li { transform: translateY(16px); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out); }
  .nav.is-open { color: var(--ink); }
  .nav.is-open::before { opacity: 1; }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease-out); }
  .nav.is-open .nav__menu li { transform: none; opacity: 1; }
  .nav.is-open .nav__menu li:nth-child(2) { transition-delay: 0.04s; }
  .nav.is-open .nav__menu li:nth-child(3) { transition-delay: 0.08s; }
  .nav.is-open .nav__menu li:nth-child(4) { transition-delay: 0.12s; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  color: var(--on-orange);
  overflow: clip;
}
.hero__field { position: absolute; inset: 0; z-index: -2; background: var(--orange); }
.hero__glyph {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  display: none;
}
.glyph-live .hero__glyph { display: block; }
.hero__glyph circle { fill: var(--on-orange); }
.hero__glyph line { stroke: var(--on-orange); stroke-linecap: round; }

.hero__grid {
  min-height: 100svh;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: calc(var(--s) * 1.9);
  row-gap: calc(var(--s) * 1.7);
  padding: calc(64px + 5vh) 0 7vh var(--gutter);
}

/* The anchors are the glyph laid out by CSS. Without script they draw it themselves; with it, they
   only tell the SVG where to go. */
.hero__dots { grid-area: 2 / 1; display: flex; align-items: center; gap: calc(var(--s) * 0.58); }
.hero__dots i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--on-orange); }
.hero__bar { grid-area: 1 / 2 / 4 / 3; width: var(--s); margin-right: calc(var(--s) * 1.2); border-radius: 999px; background: var(--on-orange); }
.hero__line { grid-area: 2 / 3; align-self: center; height: var(--s); border-radius: 999px 0 0 999px; background: var(--on-orange); }
.glyph-live .hero__dots i, .glyph-live .hero__bar, .glyph-live .hero__line { background: transparent; }

.hero__title {
  grid-area: 1 / 3;
  align-self: end;
  padding-right: var(--gutter);
  font-size: clamp(3rem, 7.6vw, 9.25rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.mask { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__t1, .hero__t2 { display: block; }
.hero__t1 { font-weight: 480; font-stretch: 100%; letter-spacing: -0.035em; }
.hero__t2 { --wdth: 125; font-stretch: calc(var(--wdth) * 1%); }
.br-sm { display: none; }

.hero__foot {
  grid-area: 3 / 3;
  padding-right: var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem 3rem;
}
.hero__sub {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.45vw, 1.4rem);
  line-height: 1.42;
  font-weight: 460;
  text-wrap: pretty;
}
.hero__ctas { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

@media (max-width: 760px) {
  :root { --s: clamp(11px, 3.2vw, 15px); }
  .hero__grid {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: end;
    row-gap: 2.25rem;
    padding: calc(64px + 4vh) 0 max(2.5rem, 6svh) var(--gutter);
  }
  .hero__dots { grid-area: 1 / 1; }
  .hero__bar { grid-area: 1 / 2; height: calc(var(--s) * 7.2); margin-right: calc(var(--s) * 0.6); }
  .hero__line { grid-area: 1 / 3; }
  .hero__title { grid-area: 2 / 1 / 3 / 4; font-size: clamp(2.9rem, 15.5vw, 5.5rem); line-height: 0.92; }
  .hero__t2 { --wdth: 112; }
  .br-sm { display: inline; }
  .hero__foot { grid-area: 3 / 1 / 4 / 4; gap: 1.5rem; }
}

/* While the page opens from the icon. Taken off by site.js, or by boot.js if it never runs.
   The first frame is the app icon, drawn by CSS, so there's something to see before any script. */
.hero__launch { display: none; }
.intro .hero__launch {
  display: block;
  position: absolute; z-index: 1;
  left: 50%; top: 50svh;
  width: var(--icon); height: var(--icon);
  margin: calc(var(--icon) / -2) 0 0 calc(var(--icon) / -2);
  animation: launch-in 0.7s var(--ease-out) both;
}
@keyframes launch-in { from { opacity: 0; transform: scale(0.8); } }
.intro .hero__field, .intro .hero__glyph { opacity: 0; }
.intro .hero__title .mask > span { transform: translateY(110%); }
.intro .hero__foot, .intro .nav { opacity: 0; }
.intro .nav { transform: translateY(-12px); }

/* ---------- How it works ---------- */

.cut { position: relative; }
.cut__pin {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--section) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
}
.cut__steps { display: grid; gap: 4rem; align-self: start; }
.cut__step p { margin-top: 1.25rem; max-width: 38ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--muted); text-wrap: pretty; }
.cut__step .h2 { font-size: clamp(2rem, 3.9vw, 3.9rem); }

.motion .cut__pin { min-height: 100svh; padding-block: 96px 6vh; }
.motion .cut__steps { gap: 0; align-self: center; }
/* The outgoing step clears quickly; the next one arrives just after, so they never overlap. */
.motion .cut__step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.2s ease-out, transform 0.5s var(--ease-out);
}
.motion .cut__step.is-before { transform: translateY(-26px); }
.motion .cut__step.is-active {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease-out) 0.18s, transform 0.8s var(--ease-out) 0.12s;
}

.feed {
  --row: clamp(46px, 6.6svh, 64px);
  --cols: 6.6rem minmax(0, 1fr) minmax(0, 32%) 4.2rem;
  --gap: 1.1rem;
  position: relative;
  font-size: 0.96rem;
}
.feed__head {
  display: grid; grid-template-columns: var(--cols); column-gap: var(--gap); align-items: end;
  padding-bottom: 0.9rem;
  border-bottom: 1.5px solid var(--ink);
}
.feed__head .art { grid-column: 1; width: 2.6rem; height: 2.6rem; font-size: 0.85rem; }
.feed__show { grid-column: 2; align-self: center; font-weight: 720; font-stretch: 110%; font-size: 1.1rem; letter-spacing: -0.01em; }
.feed__scale { grid-column: 3; position: relative; height: 1.2rem; color: var(--muted); font-size: 0.74rem; font-weight: 560; font-variant-numeric: lining-nums proportional-nums; }
.feed__scale span { position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap; }
.feed__scale span:nth-child(1) { left: 0; transform: none; }
.feed__scale span:nth-child(2) { left: 25%; }
.feed__scale span:nth-child(3) { left: 50%; }
.feed__scale span:nth-child(4) { left: 75%; }
.feed__scale span:nth-child(5) { left: 100%; transform: translateX(-100%); }

.feed__body { position: relative; }
.feed__rows { position: relative; z-index: 1; }
.row {
  display: grid; grid-template-columns: var(--cols); column-gap: var(--gap); align-items: center;
  height: var(--row);
  border-bottom: 1px solid var(--hair);
}
.row__when { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-stretch: 95%; }
.row__title {
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* A halo where the cutoff line crosses the text on narrow screens. */
  text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 6px var(--paper);
  transition: color 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.row__track { position: relative; height: 10px; }
.row__bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(min(var(--m, 30), 60) / 60 * 100%);
  min-width: 10px;
  border-radius: 999px;
  background: var(--orange);
  transform-origin: left center;
  transition: background-color 0.5s var(--ease-out);
}
.row__len { text-align: right; font-variant-numeric: lining-nums proportional-nums; font-weight: 560; color: var(--muted); white-space: nowrap; }
.row.is-clip .row__title { font-stretch: 85%; }

/* Below the line: clips go grey. Static by default; the scroll scene toggles .is-measured. */
.feed .is-clip .row__bar { background: var(--clip); }
.feed .is-clip .row__title { color: var(--muted); opacity: 0.75; }
.motion .feed:not(.is-measured) .is-clip .row__bar { background: var(--orange); }
.motion .feed:not(.is-measured) .is-clip .row__title { color: var(--ink); opacity: 1; }

.feed__overlay {
  position: absolute; inset: 0; z-index: 0;
  display: grid; grid-template-columns: var(--cols); column-gap: var(--gap);
  pointer-events: none;
}
.feed__cutoff { grid-column: 3; position: relative; }
.cutline {
  position: absolute; top: -2.4rem; bottom: 0; left: calc(20 / 60 * 100%);
  width: 0; border-left: 2px dashed var(--tint-ink);
  transform-origin: top;
}
/* Sits at the top of the header, above the 0 to 60 scale. */
.feed__cutoff .pill { position: absolute; top: calc(-3.7rem - 2px); left: calc(20 / 60 * 100%); transform: translateX(-50%); z-index: 2; }

.feed__note {
  display: flex; align-items: center; gap: 0.9rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 20px;
  background: var(--tint);
  color: var(--tint-ink);
}
.feed__note-mark { width: 2.5rem; height: 2.5rem; border-radius: 22.4%; flex: none; }
.feed__note strong { display: block; font-weight: 720; font-size: 1.02rem; }
.feed__note span span { font-size: 0.92rem; }

.motion .feed__note { position: absolute; left: 0; right: 0; top: calc(var(--row) * 4 + 1.25rem); margin: 0; z-index: 2; }

@media (max-width: 900px) {
  .cut__pin { grid-template-columns: minmax(0, 1fr); }
  .motion .cut__pin { align-content: center; gap: 2rem; padding-top: 84px; }
  .motion .cut__steps { align-self: end; }
}
@media (max-width: 600px) {
  .feed { --cols: minmax(0, 1fr) auto; --gap: 0.75rem; font-size: 0.9rem; --row: clamp(48px, 7.2svh, 62px); }
  .feed__head { grid-template-columns: auto minmax(0, 1fr); row-gap: 2.6rem; }
  .feed__cutoff .pill { top: -4.15rem; }
  .feed__head .art { width: 2.2rem; height: 2.2rem; }
  .feed__scale { grid-column: 1 / -1; }
  .row { grid-template-rows: auto auto; row-gap: 0.45rem; align-content: center; }
  .row__when { display: none; }
  .row__title { grid-area: 1 / 1; }
  .row__len { grid-area: 1 / 2; }
  .row__track { grid-area: 2 / 1 / 3 / 3; height: 7px; }
  .feed__overlay { grid-template-columns: minmax(0, 1fr); }
  .feed__cutoff { grid-column: 1; }
  .cut__step .h2 { font-size: clamp(1.85rem, 8.4vw, 2.6rem); }
  .cut__step p { margin-top: 0.85rem; font-size: 1rem; }
  .feed__note { padding: 0.7rem 0.9rem; }
  .feed__note-mark { width: 2.1rem; height: 2.1rem; }
}

/* ---------- Length chart ---------- */

.lengths { padding-block: var(--section); }
.lengths__intro { max-width: 48rem; }
.lengths__intro .lead { margin-top: 1.5rem; }

.lengths__shows { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.tab {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: 44px;
  padding: 0.3rem 1.1rem 0.3rem 0.35rem;
  border: 1px solid var(--hair); border-radius: 999px;
  background: transparent;
  font-weight: 620; font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.3s var(--ease-out);
}
.tab .art { width: 2rem; height: 2rem; border-radius: 999px; font-size: 0.66rem; }
.tab:hover { border-color: var(--ink); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.chart {
  margin-top: clamp(4.5rem, 8vw, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  column-gap: clamp(2rem, 5vw, 5rem);
}
.chart__plot {
  position: relative;
  grid-column: 1; grid-row: 1;
  height: clamp(220px, 34vh, 340px);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.chart__blocks { position: absolute; inset: 0; }
.blk {
  position: absolute; left: 0; bottom: 0;
  border-radius: 3px;
  background: var(--orange);
  transition: background-color 0.22s var(--ease-out);
}
.blk.is-hidden { background: var(--clip); }
.chart__cutoff {
  position: absolute; top: -3rem; bottom: -0.75rem; left: 0;
  width: 0;
  transform: translateX(var(--x, 0px));
  pointer-events: none;
  z-index: 2;
}
.chart__cutoff::before {
  content: ""; position: absolute; top: 2rem; bottom: 0; left: -1px;
  border-left: 2px dashed var(--tint-ink);
}
.chart__cutoff .pill { position: absolute; top: 0; left: 0; transform: translateX(-50%); transition: transform 0.3s var(--ease-out); box-shadow: 0 6px 18px -6px rgb(194 65 12 / 0.6); }
.chart__plot.is-dragging .pill { transform: translateX(-50%) scale(1.08); }
.chart:has(.chart__range:focus-visible) .pill,
.chart:has([data-range]:focus-visible) .pill { outline: 2px solid var(--accent); outline-offset: 3px; }
.chart__plot.is-off .chart__cutoff::before { opacity: 0.35; }

.chart__axis {
  grid-column: 1; grid-row: 2;
  position: relative; height: 2rem; margin-top: 0.75rem;
  border-top: 1.5px solid var(--ink);
  color: var(--muted); font-size: 0.8rem; font-weight: 560; font-variant-numeric: lining-nums proportional-nums;
}
.chart__axis span { position: absolute; top: 0.55rem; transform: translateX(-50%); white-space: nowrap; }
.chart__axis span:nth-child(1) { left: 0; transform: none; }
.chart__axis span:nth-child(2) { left: calc(15 / 72 * 100%); }
.chart__axis span:nth-child(3) { left: calc(30 / 72 * 100%); }
.chart__axis span:nth-child(4) { left: calc(45 / 72 * 100%); }
.chart__axis span:nth-child(5) { left: calc(60 / 72 * 100%); }
.chart__axis span:nth-child(6) { left: 100%; transform: translateX(-100%); }

.chart__readout { grid-column: 2; grid-row: 1 / 3; align-self: end; padding-bottom: 0.4rem; }
.chart__count { font-size: 1.05rem; font-weight: 560; color: var(--muted); }
.chart__count strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  line-height: 0.85;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums proportional-nums;
}
.chart__avg { margin-top: 1rem; color: var(--muted); max-width: 26ch; }
.chart__status { margin-top: 1.25rem; min-height: 3rem; font-weight: 600; max-width: 28ch; }
.chart__status .ok { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent); }
.chart__status .ok::before {
  content: ""; flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.chart__status .warn { color: var(--tint-ink); }
.chart__status button {
  display: inline-flex; align-items: center;
  margin-top: 0.75rem; min-height: 40px; padding: 0 1rem;
  border: 0; border-radius: 999px;
  background: var(--tint); color: var(--tint-ink);
  font-weight: 680; font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out);
}
.chart__status button:active { transform: scale(0.97); }

.lengths__rule {
  margin-top: clamp(4rem, 8vw, 6rem);
  max-width: 44ch;
  margin-left: auto;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.35;
  font-weight: 520;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.lengths__note { margin-top: 1.25rem; max-width: 44ch; margin-left: auto; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 820px) {
  .chart { grid-template-columns: minmax(0, 1fr); }
  .chart__plot { height: clamp(200px, 30vh, 280px); }
  .chart__readout { grid-column: 1; grid-row: 3; margin-top: 2.25rem; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: end; }
  .chart__count strong { font-size: 4.5rem; }
  .chart__count { grid-row: 1 / 3; }
  .chart__avg { margin-top: 0; }
  .chart__status { grid-column: 1 / -1; margin-top: 1rem; min-height: 0; max-width: none; }
  .lengths__rule, .lengths__note { margin-left: 0; }
}

/* ---------- Tour ---------- */

.tour { padding-block: calc(var(--section) * 0.6) var(--section); overflow: clip; }
/* Without the pan: the intro on top, then a row of phones you swipe through. */
.tour__intro { max-width: 40rem; padding-inline: var(--gutter); margin: 0 auto clamp(2.5rem, 5vw, 4rem) 0; }
.tour__intro .lead { margin-top: 1.5rem; }
.tour__shots {
  display: flex; align-items: flex-start;
  gap: clamp(1.5rem, 4.5vw, 5.5rem);
  padding: 0 var(--gutter) 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.tour__shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; width: clamp(230px, 64vw, 300px); scroll-snap-align: start; }
.shot:nth-of-type(even) { margin-top: clamp(1.5rem, 6vh, 4.5rem); }
.shot figcaption { margin-top: 1.6rem; max-width: 27ch; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.shot figcaption strong { display: block; margin-bottom: 0.2rem; color: var(--ink); font-weight: 720; font-stretch: 110%; font-size: 1.1rem; letter-spacing: -0.01em; }

/* A plain device frame around the real screenshot. */
.phone {
  position: relative;
  padding: 3.4%;
  border-radius: 15.5% / 7.2%;
  background: #111110;
  box-shadow:
    inset 0 0 0 1.5px #2C2B29,
    0 2px 2px rgb(var(--shadow) / 0.06),
    0 40px 80px -36px rgb(var(--shadow) / 0.45);
}
.phone img { width: 100%; height: auto; aspect-ratio: 760 / 1651; border-radius: 12.4% / 5.7%; }
.phone::after {
  content: "";
  position: absolute; top: 5.1%; left: 50%;
  width: 29%; height: 3.15%;
  border-radius: 999px;
  background: #111110;
  transform: translateX(-50%);
}

@media (min-width: 900px) {
  .pan .tour { padding: 0; }
  .pan .tour__pin { height: 100svh; display: flex; align-items: center; overflow: hidden; }
  .pan .tour__track { display: flex; align-items: center; padding: 64px var(--gutter) 0; will-change: transform; }
  .pan .tour__shots { overflow: visible; scroll-snap-type: none; padding: 0; }
  .pan .shot { width: clamp(220px, 30svh, 330px); }
  .pan .tour__intro { flex: 0 0 min(30rem, 34vw); padding: 0; margin: 0 clamp(2rem, 6vw, 7rem) 0 0; }
}

/* ---------- Player ---------- */

.player { padding-block: var(--section); }
.player__title { max-width: 13ch; }

.speed {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  border-radius: 28px;
  background: var(--paper-2);
  overflow: hidden;
}
.speed__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.speed__head p { margin-top: 0.6rem; color: var(--muted); max-width: 42ch; }
.speed__wave { width: 100%; height: clamp(96px, 14vw, 180px); margin-top: clamp(1.75rem, 4vw, 3rem); overflow: visible; }
.speed__wave rect { fill: var(--ink); }
.speed__wave .gap { fill: var(--orange); }
.speed__wave .saved { opacity: 0; transition: opacity 0.3s var(--ease-out); }
.speed__wave .saved.is-on { opacity: 1; transition: opacity 0.6s var(--ease-out) 0.85s; }
.speed__wave .saved line { stroke: var(--orange); stroke-width: 3; stroke-dasharray: 0.1 11; stroke-linecap: round; }
.speed__wave .saved text { fill: var(--accent); font-size: 26px; font-weight: 650; font-stretch: 110%; }

.switch {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 44px; padding: 0 0.25rem;
  border: 0; background: transparent;
  font-weight: 650;
  cursor: pointer;
}
.switch__track {
  position: relative; width: 3.4rem; height: 2rem; flex: none;
  border-radius: 999px;
  background: var(--clip);
  transition: background-color 0.35s var(--ease-out);
}
.switch__thumb {
  position: absolute; top: 3px; left: 3px;
  width: calc(2rem - 6px); height: calc(2rem - 6px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.18);
  transition: transform 0.45s var(--ease-out), width 0.2s var(--ease-out);
}
.switch:active .switch__thumb { width: calc(2.3rem - 6px); }
.switch[aria-pressed="true"] .switch__track { background: var(--orange); }
.switch[aria-pressed="true"] .switch__thumb { transform: translateX(1.4rem); }
.switch[aria-pressed="true"]:active .switch__thumb { transform: translateX(1.1rem); }

.groups { margin-top: clamp(4.5rem, 9vw, 8rem); display: grid; gap: clamp(3.5rem, 6vw, 5.5rem); }
.group {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(2rem, 5vw, 6rem);
  padding-top: 1.4rem;
  border-top: 1.5px solid var(--ink);
}
.group__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; font-weight: 760; font-stretch: 118%; letter-spacing: -0.025em; }
.group dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.group dt { font-weight: 680; font-size: 1.08rem; letter-spacing: -0.005em; }
.group dd { margin-top: 0.3rem; color: var(--muted); text-wrap: pretty; }

@media (max-width: 760px) {
  .group { grid-template-columns: minmax(0, 1fr); }
  .group dl { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
}

/* ---------- Privacy ---------- */

.privacy { padding-block: var(--section); }
.privacy__title {
  font-size: clamp(3.1rem, 9.4vw, 10.5rem);
  line-height: 0.9;
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.045em;
}
.privacy__title em { color: var(--accent); }
.privacy__body {
  margin: clamp(3rem, 6vw, 5rem) 0 0 auto;
  max-width: 24ch;
  font-size: clamp(1.45rem, 2.7vw, 2.5rem);
  line-height: 1.18;
  font-weight: 580;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.privacy__body .w { transition: opacity 0.2s linear; }
.privacy__site { margin: 2rem 0 0 auto; max-width: 24rem; color: var(--muted); }
.privacy__site .textlink { display: table; margin-top: 0.5rem; color: var(--ink); }

@media (min-width: 1100px) {
  .privacy__body, .privacy__site { margin-right: 4vw; }
}

/* ---------- Get ---------- */

.get { padding-block: calc(var(--section) * 0.8) var(--section); }
.get__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.get__mark { width: clamp(84px, 9vw, 120px); height: clamp(84px, 9vw, 120px); border-radius: 22.4%; box-shadow: 0 28px 60px -22px rgb(194 65 12 / 0.55); }
.get__title { margin-top: 2.25rem; }
.get__meta { margin-top: 1.1rem; color: var(--muted); font-size: 1.1rem; }
.get__cta { margin-top: 2.25rem; }

/* ---------- Footer ---------- */

.foot { padding: 0 var(--gutter) max(1.75rem, env(safe-area-inset-bottom)); overflow: clip; }
.foot__word {
  --wdth: 125;
  margin: 0 auto;
  width: fit-content;
  font-size: var(--word-size, 24vw);
  font-stretch: calc(var(--wdth) * 1%);
  font-weight: 820;
  line-height: 0.78;
  letter-spacing: -0.055em;
  color: var(--accent);
  white-space: nowrap;
  user-select: none;
}
.foot__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
  color: var(--muted); font-size: 0.95rem;
}
.foot__row ul { display: flex; gap: 1.75rem; }
.foot__row a { text-decoration: none; font-weight: 580; color: var(--ink); }
.foot__row a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- Reveal ---------- */

.motion:not(.anim-off) [data-reveal] { opacity: 0; transform: translateY(32px); }

/* ---------- Documents (privacy, support) ---------- */

.doc .nav { color: var(--ink); }
.doc .nav::before { opacity: 1; }
.doc .nav__mark { box-shadow: none; }
.doc main { padding: calc(64px + clamp(3.5rem, 9vw, 7rem)) var(--gutter) var(--section); }
.doc__head { max-width: 1100px; margin-inline: auto; }
.doc__glyph { display: flex; align-items: center; gap: calc(var(--s) * 0.6); margin-bottom: clamp(2rem, 4vw, 3rem); }
.doc__glyph i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--orange); flex: none; }
.doc__glyph b { width: var(--s); height: calc(var(--s) * 4); border-radius: 999px; background: var(--orange); margin-inline: calc(var(--s) * 0.9) calc(var(--s) * 0.6); flex: none; }
.doc__glyph u { height: var(--s); flex: 1; border-radius: 999px 0 0 999px; background: var(--orange); margin-right: calc(-1 * var(--gutter)); }
.doc h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); line-height: 0.92; font-weight: 800; font-stretch: 118%; letter-spacing: -0.04em; text-wrap: balance; }
.doc__meta { margin-top: 1.5rem; color: var(--muted); font-size: 1.05rem; }
.doc__body {
  max-width: 1100px;
  margin: clamp(3rem, 7vw, 5.5rem) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(2rem, 6vw, 6rem);
}
.doc__body h2 {
  grid-column: 1;
  padding-top: 1.4rem;
  border-top: 1.5px solid var(--ink);
  font-size: 1.25rem; line-height: 1.25; font-weight: 720; font-stretch: 110%; letter-spacing: -0.01em;
  text-wrap: balance;
}
.doc__text { grid-column: 2; padding-top: 1.4rem; border-top: 1.5px solid var(--ink); margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.doc__text p, .doc__text li { margin-bottom: 0.9rem; max-width: 62ch; text-wrap: pretty; }
.doc__text > :last-child { margin-bottom: 0; }
.doc__text li { position: relative; padding-left: 1.4rem; }
.doc__text li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); }
.doc__text a { color: var(--accent); text-underline-offset: 0.2em; }
.doc__text strong { font-weight: 680; }
.doc__lead { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.4; font-weight: 520; letter-spacing: -0.01em; }
.foot--doc { padding-top: 1rem; }

@media (max-width: 760px) {
  .doc__body { grid-template-columns: minmax(0, 1fr); }
  .doc__body h2, .doc__text { grid-column: 1; }
  .doc__text { border-top: 0; padding-top: 0.8rem; }
}

.not-found { min-height: 100svh; display: grid; align-content: center; padding: 6rem var(--gutter); }
.not-found h1 { font-size: clamp(3rem, 9vw, 8rem); line-height: 0.9; font-weight: 800; font-stretch: 120%; letter-spacing: -0.04em; max-width: 12ch; }
.not-found p { margin-top: 1.5rem; color: var(--muted); font-size: 1.2rem; max-width: 36ch; }
.not-found .textlink { margin-top: 2rem; color: var(--ink); }

/* ---------- Page transitions ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.32s var(--ease-out) both vt-out; }
  ::view-transition-new(root) { animation: 0.55s var(--ease-out) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
