/* M Squared Labs
   Look: grey stage, white cards, one blue accent, Geist display type with Geist Mono labels, 3D camera (camera3d.js).
   Type rule: Geist for words; Geist Mono, uppercase and tracked, for camera, data and status labels.
   Shape rule: buttons, tags and the brand mark are pills; cards 32px; media 22px; icon tiles 14px.
   Smoothness rule: only transform and opacity animate; no backdrop blur; stable viewport units. */

/* Geist and Geist Mono by Vercel (SIL OFL 1.1, fonts/Geist-OFL.txt). */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Arial resized to Geist's metrics, so text doesn't shift when the real font arrives. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0%;
  size-adjust: 104.76%;
}
@font-face {
  font-family: "Geist Mono Fallback";
  src: local("Arial");
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0%;
  size-adjust: 134.59%;
}

:root {
  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ink: #0f1318;
  --muted: #4b5563;
  --bg: #e9ecf0;
  --card: #f8f9fb;
  --stage: #e2e6eb;
  --line: rgba(15, 19, 24, 0.14);
  --accent: #2563eb;
  --accent-soft: #d5e1f8;
  --accent-deep: #1d4ed8;
  --white: #fdfdfe;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: 20px;
  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[id] { scroll-margin-top: 88px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

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

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

.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Stage: fixed backdrop seen through the transparent .scene sections.
   100lvh keeps it from resizing when mobile browser bars show or hide. */
.stage {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background:
    radial-gradient(38% 55% at 0% 42%, rgba(120, 140, 170, 0.2), transparent 70%),
    radial-gradient(38% 55% at 100% 42%, rgba(120, 140, 170, 0.2), transparent 70%),
    var(--stage);
  pointer-events: none;
}

main, .footer { position: relative; z-index: 1; }

/* Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pill:active { transform: scale(0.98); }
.pill-lg { min-height: 58px; padding: 0 30px; font-size: 1.1875rem; }
.pill .icon { font-size: 1.05em; transition: transform 0.3s var(--ease); }

.pill-dark { background: var(--accent); color: var(--white); }
.pill-line { background: rgba(253, 253, 254, 0.95); border-color: var(--line); color: var(--ink); }

@media (hover: hover) {
  .pill-dark:hover { background: var(--accent-deep); }
  .pill-line:hover { border-color: rgba(16, 20, 26, 0.32); }
  .pill:hover .icon { transform: translate(2px, -2px); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 18px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(253, 253, 254, 0.95);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

/* The M Squared Labs mark (logo-mark symbol in index.html). */
.brand-mark {
  width: 23px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

@media (max-width: 420px) {
  .nav .pill { padding: 0 16px; font-size: 0.9375rem; }
  .brand { padding-right: 14px; font-size: 0.9375rem; }
}
/* Smallest phones: the brand collapses to its mark; the name stays for screen readers. */
@media (max-width: 380px) {
  .brand { padding: 6px 12px; }
  .brand > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 112px var(--gutter) 150px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 15% 5%, #d6e2f6 0%, transparent 70%),
    radial-gradient(60% 60% at 88% 95%, #d9dee6 0%, transparent 70%),
    var(--stage);
  text-align: center;
}

.hero-inner { position: relative; display: grid; justify-items: center; max-width: 1100px; }

/* Hand-path light trails (trails.js), after the Gilbreths' chronocyclegraphs. The mask fades them
   where the words sit; trails.js sizes it from the text block, the percentages are fallbacks. */
.hero-trails {
  --trail-right: var(--accent);
  --trail-left: #55657d;
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(var(--trail-rx, 42%) var(--trail-ry, 40%) at 50% var(--trail-cy, 48%), rgb(0 0 0 / 0.16) 62%, #000 100%);
  mask-image: radial-gradient(var(--trail-rx, 42%) var(--trail-ry, 40%) at 50% var(--trail-cy, 48%), rgb(0 0 0 / 0.16) 62%, #000 100%);
}
.hero-trails canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trails-fading .hero-trails canvas { opacity: 0; transition: opacity 1.1s ease-in; }
.trail-lamp {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--trail-right);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 0.16), 0 0 18px 2px rgb(37 99 235 / 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.trail-lamp-left { background: var(--trail-left); box-shadow: 0 0 0 4px rgb(85 101 125 / 0.14), 0 0 16px 2px rgb(85 101 125 / 0.4); }
.trails-drawing .trail-lamp { opacity: 1; }

/* Wide screens: level with the consent tab, below where the trails reach. */
.trail-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 26px;
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.trail-caption > span { transition: opacity 0.5s var(--ease); }
.trail-caption[hidden] { display: none; }
.trail-name { color: var(--ink); }
.trail-key {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.05em;
}
.trail-key-left { margin-left: 4px; background: #55657d; }
.trails-fading .trail-caption > span { opacity: 0; }
/* Below 900px the consent tab needs the bottom edge, so the caption sits just above it, on a
   backing so trails passing behind never cross its text. */
@media (max-width: 899px) {
  .hero { padding-bottom: 190px; }
  .trail-caption {
    right: 12px;
    bottom: 112px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgb(226 230 235 / 0.9);
  }
}

.display {
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero h1 { max-width: 13ch; font-size: clamp(2.75rem, 1.4rem + 6vw, 6.5rem); }

.hero-lede {
  max-width: 46ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.tab {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: min(520px, calc(100% - 24px));
  padding: 20px 20px 20px var(--gutter);
  border-top-right-radius: 28px;
  background: var(--stage);
  text-align: left;
  text-decoration: none;
}
.tab-text {
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.5rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.tab-arrow {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 22px;
  flex: none;
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) {
  .tab:hover .tab-arrow { transform: rotate(45deg); }
}

/* Scenes: transparent so the fixed stage shows through. svh keeps heights stable on mobile. */
.scene { position: relative; }
.scene-pov { height: 360vh; height: 360svh; }
/* The words and viewfinder take the height the bar leaves, so a taller bar (narrow screens, larger text) never covers them. */
.scene-sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100vh;
  height: 100svh;
  padding: 76px 0 max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.scene-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.scene-brand .brand-mark { width: 20px; height: 22px; }
.scene h2 span { display: block; }

/* Point-of-view scene. Portrait: viewfinder above, words below. Wide: words left, viewfinder right. */
.pov-layout {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0 var(--gutter);
}
.pov-art-wrap { order: -1; min-height: 0; display: grid; place-items: end center; }
.scene-copy { display: grid; justify-items: center; gap: 14px; text-align: center; container-type: inline-size; }
/* 12.8cqi keeps "One point of view." (7.5em wide) on one line in whatever width the column has. */
.scene-pov h2 { font-size: min(clamp(2rem, 1rem + 3.4vw, 4.25rem), 10vh); }
.scene-pov h2 { font-size: min(clamp(2rem, 1rem + 3.4vw, 4.25rem), 10vh, 12.8cqi); }

@media (min-aspect-ratio: 11/10) {
  .scene-sticky { gap: 22px; }
  .pov-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 2vw;
    padding-left: max(var(--gutter), 6vw);
  }
  .pov-art-wrap { order: 0; height: 100%; place-items: center; }
  .scene-copy { justify-items: start; text-align: left; }
}

/* Viewfinder: real footage once clips exist; a soft out-of-focus field until then. */
.pov-art-wrap { position: relative; container-type: size; }
/* 3D camera canvas (camera3d.js) sits under the viewfinder, which grows out of its lens. */
.cam3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vf { z-index: 1; }
.has-morph .vf { opacity: 0; box-shadow: none; transition: box-shadow 0.6s var(--ease); }
.has-morph .vf.is-open { box-shadow: 0 40px 80px -40px rgba(15, 19, 24, 0.55); }
.has-morph .vf-hud { opacity: 0; }
.vf {
  position: relative;
  width: 100%;
  width: min(100%, 160cqh);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: #11161d;
  box-shadow: 0 40px 80px -40px rgba(15, 19, 24, 0.55);
}
/* Portrait screens: a square frame fills the space better (clips crop to the centre, where the hands are). */
@media not (min-aspect-ratio: 11/10) {
  .vf { aspect-ratio: 1; width: min(100%, 100cqh); }
}
.vf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5, 8, 12, 0.38));
  pointer-events: none;
}
.vf-screen { position: absolute; inset: 0; }
.vf-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.vf-shot.is-on { opacity: 1; }
.vf-ph {
  position: absolute;
  inset: -15%;
  animation: vf-drift 16s ease-in-out infinite alternate;
  will-change: transform;
}
.vf-shot:not(.is-on) .vf-ph { animation-play-state: paused; }
@keyframes vf-drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1.04); }
  to { transform: translate3d(4%, 3%, 0) scale(1.12); }
}
.vf-ph-garment {
  background:
    radial-gradient(40% 45% at 30% 40%, #9db4f0, transparent 70%),
    radial-gradient(45% 50% at 72% 62%, #3b5bdb, transparent 70%),
    radial-gradient(30% 35% at 58% 22%, #e8eefc, transparent 70%),
    #2a3f86;
}
.vf-ph-auto {
  background:
    radial-gradient(40% 45% at 66% 38%, #c9d2de, transparent 70%),
    radial-gradient(45% 50% at 28% 66%, #4d5f7a, transparent 70%),
    radial-gradient(30% 35% at 40% 24%, #8494ab, transparent 70%),
    #263241;
}
.vf-ph-hospital {
  background:
    radial-gradient(40% 45% at 36% 62%, #c6d7f3, transparent 70%),
    radial-gradient(45% 50% at 70% 34%, #eef3fb, transparent 70%),
    radial-gradient(30% 35% at 20% 22%, #9fb6dc, transparent 70%),
    #6f86ad;
}
.vf-ph-barbershop {
  background:
    radial-gradient(40% 45% at 70% 66%, #a9bff0, transparent 70%),
    radial-gradient(45% 50% at 30% 34%, #3f6fd6, transparent 70%),
    radial-gradient(30% 35% at 82% 18%, #d7e3fb, transparent 70%),
    #1e2a44;
}
.vf-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.vf-shot.has-clip .vf-video { opacity: 1; }

.vf-hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 0.6rem + 0.3vw, 0.8125rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.vf-corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255, 255, 255, 0.85); }
.vf-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 5px; }
.vf-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 5px; }
.vf-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 5px; }
.vf-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 5px; }
.vf-rec, .vf-setting, .vf-time { position: absolute; }
.vf-rec { top: 21px; left: 46px; display: inline-flex; align-items: center; gap: 8px; }
.vf-dot { width: 9px; height: 9px; border-radius: 999px; background: #ef4444; animation: rec-blink 1s steps(1, end) infinite; }
@keyframes rec-blink { 50% { opacity: 0.15; } }
.vf-setting { top: 21px; right: 46px; }
.vf-time { right: 46px; bottom: 21px; letter-spacing: 0.04em; }
/* A very small viewfinder (short phones) has no room for the name; the pills below already show it. */
.vf { container-type: inline-size; }
@container (max-width: 259px) { .vf-setting { display: none; } }

.scene-bar {
  flex: none;
  margin-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setting-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.setting-pills li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(253, 253, 254, 0.95);
  font-size: 0.9375rem;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.setting-pills li.is-on { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Smallest phones: keep the four workplaces to two rows. */
@media (max-width: 380px) {
  .setting-pills { gap: 6px; }
  .setting-pills li { padding: 7px 12px; font-size: 0.8125rem; }
}

@media (max-width: 640px) {
  .scene-bar { justify-content: center; }
  .setting-pills { justify-content: center; }
}

/* Closing scene: the logo, large. Its three pieces settle into place when it scrolls in. */
.scene-end {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px var(--gutter) 40px;
}
.end-center { display: grid; justify-items: center; gap: 22px; text-align: center; }
.end-mark {
  width: clamp(84px, 12vh, 136px);
  aspect-ratio: 714 / 797;
  height: auto;
  overflow: visible;
  fill: var(--ink);
}
.end-name { margin-top: -6px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.scene-end h2 { margin-top: 18px; font-size: min(clamp(2.5rem, 1.5rem + 4vw, 5rem), 11vh); }
.end-mark path { transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.end-mark .end-mark-1 { transition-delay: 0.1s; }
.end-mark .end-mark-2 { transition-delay: 0.2s; }
.js .end-mark:not(.in) .end-mark-0 { opacity: 0; transform: translate(-170px, -120px); }
.js .end-mark:not(.in) .end-mark-1 { opacity: 0; transform: translateY(40px); }
.js .end-mark:not(.in) .end-mark-2 { opacity: 0; transform: translate(170px, 120px); }

/* Panels */
.panel {
  position: relative;
  padding-block: clamp(72px, 8vw, 112px);
  background: var(--bg);
}
#datasets { border-radius: 40px 40px 0 0; }
.panel-statement { border-radius: 0 0 40px 40px; padding-block: clamp(96px, 12vw, 180px); }

.section-title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
  letter-spacing: -0.04em;
}

.section-lede {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
}

/* Datasets */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 56px; }

.card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 20px;
  border-radius: 32px;
  background: var(--card);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.label {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.status {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media img[hidden] { display: none; }
/* Fluted-glass texture over the gradient; hidden once real footage loads. */
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 11px);
  pointer-events: none;
}
.media:has(img:not([hidden]))::after { display: none; }

.media-garment {
  background:
    radial-gradient(60% 70% at 62% 12%, #e8efff, transparent 70%),
    radial-gradient(80% 90% at 18% 32%, #93b2f6, transparent 62%),
    radial-gradient(70% 80% at 86% 74%, #6f95ec, transparent 66%),
    #c9d8fb;
}
.media-auto {
  background:
    radial-gradient(50% 50% at 40% 18%, #e2e8f0, transparent 70%),
    radial-gradient(80% 90% at 76% 30%, #8494ab, transparent 62%),
    radial-gradient(70% 80% at 16% 82%, #4d5f7a, transparent 66%),
    #b9c3d1;
}
.media-hospital {
  background:
    radial-gradient(80% 90% at 28% 72%, #c6d7f3, transparent 62%),
    radial-gradient(70% 80% at 82% 24%, #ffffff, transparent 66%),
    #e7eef9;
}
.media-barber {
  background:
    radial-gradient(60% 60% at 90% 10%, #d7e3fb, transparent 70%),
    radial-gradient(80% 90% at 72% 72%, #3f6fd6, transparent 62%),
    radial-gradient(70% 80% at 18% 20%, #c4d3f2, transparent 66%),
    #a9bff0;
}

.card-text { max-width: 52ch; color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 860px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 24px; }
}

/* What you receive */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  margin-top: 56px;
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}
.stats dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stats dd {
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stats dd .fact { font-size: 0.9375rem; line-height: 1.4; letter-spacing: 0; }

.spec-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 56px; }
.spec-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

.spec-group { padding: 28px; border-radius: 32px; background: var(--card); }
.spec-group h3 { margin-bottom: 18px; font-size: 1.375rem; }
.spec-group dl { display: grid; gap: 16px; }
.spec-group dl div { display: grid; gap: 4px; }
.spec-group dt { color: var(--muted); }

.record {
  padding: 28px;
  border-radius: 32px;
  background: var(--ink);
  color: #e8edf4;
}
.record figcaption {
  color: #9aa6b6;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.record pre {
  margin: 16px 0 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  tab-size: 2;
}
.record b { color: #8db4ff; font-weight: 400; }

@media (min-width: 600px) {
  .spec-group dl div { grid-template-columns: 180px 1fr; gap: 16px; }
}
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .spec-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .record { position: sticky; top: 96px; }
}

/* Consent */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 56px; }

.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border-radius: 32px;
  background: var(--card);
}
.feature h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.feature p { max-width: 46ch; color: var(--muted); }

.tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--white);
  font-size: 26px;
}

.feature-wide { grid-column: 1 / -1; background: var(--accent-soft); }
.feature-wide p { color: #4a5565; max-width: 60ch; }

@media (min-width: 760px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:not(.feature-wide) { min-height: 280px; }
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.step-n {
  color: var(--accent-deep);
  font-size: clamp(3rem, 2.4rem + 2vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}
.steps h3 { font-size: 1.5rem; }
.steps p { color: var(--muted); }

.pricing { max-width: 60ch; margin-top: 40px; color: var(--muted); }

.band {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 72px;
  padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: 40px;
  background: var(--accent-soft);
  text-align: center;
}
.band h2 { max-width: 18ch; font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); letter-spacing: -0.04em; }
.band p { max-width: 46ch; color: #4a5565; }
.band .pill { margin-top: 10px; }
.band-note { font-size: 0.9375rem; }
.band-note a { color: var(--ink); text-underline-offset: 3px; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.faq details { border-radius: 24px; background: var(--card); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 20px 24px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 18px;
  flex: none;
  transition: transform 0.4s var(--ease);
}
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details p { max-width: 60ch; padding: 0 24px 24px; color: var(--muted); }
.faq a { color: var(--ink); text-underline-offset: 3px; }

/* Smooth open/close where the browser supports animating to auto height. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

@media (min-width: 1024px) {
  .faq-wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .faq-wrap .section-title { position: sticky; top: 110px; }
}

/* Statement */
.statement {
  max-width: 16ch;
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 5.5rem);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom));
}
.footer a { text-underline-offset: 3px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand .brand-mark { width: 18px; height: 20px; }

/* Reveal on scroll. Content is visible without JS; the .js class turns on the start state. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.cards > .reveal:nth-child(even),
.features > .reveal:nth-child(even),
.steps > .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps > .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Facts still needed from M Squared Labs. Remove every one before publishing. */
.fact {
  padding: 1px 8px;
  border: 1.5px dashed #d9480f;
  border-radius: 6px;
  background: #fff4e6;
  color: #9a3412;
  font-family: var(--font-sans);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.fact::before { content: attr(data-need) ": "; font-weight: 600; }
.fact-inline {
  padding: 0 4px;
  border-radius: 4px;
  outline: 1px dashed #f7922e;
  background: rgba(247, 146, 46, 0.14);
  color: #ffd2a8;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .pill .icon, .tab-arrow, .faq-icon { transition: none; }
  .faq details::details-content { transition: none; }
  .vf-shot, .vf-video, .setting-pills li, .end-mark path { transition: none; }
  .vf-dot, .vf-ph { animation: none; }
}
