/* ------------------------------------------------------------------
   Type system — all tracking in em so it scales with font-size.
   Large sizes track tight (negative), tiny labels track open (positive).
------------------------------------------------------------------- */
:root {
  --ink: #111113;
  --ink-2: #3a3a3f;
  --muted: #6b6b72;
  --line: #ececee;
  --surface: #f7f7f8;
  --blue: #0a5cff;
  --green-bg: #e3f7e6;
  --green: #1d7a35;
  --max: 72rem;
  --gutter: clamp(1rem, 6vw, 6rem);

  /* tracking scale */
  --track-display: -0.038em;  /* 48–56px headlines */
  --track-title: -0.026em;    /* 28–36px titles */
  --track-ui: -0.008em;       /* 14–15px UI text */
  --track-body: 0.012em;      /* 15px muted paragraphs */
  --track-caption: 0.045em;   /* 11px captions */
  --track-mono: 0.08em;       /* step numbers */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01", "ss03"; /* single-storey a, open digits, round quotes */
  font-size: 0.9375rem;
  letter-spacing: var(--track-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

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

.display {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: var(--track-display);
}

.title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: var(--track-title);
}

.body {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.62;
  letter-spacing: var(--track-body);
}

/* ---------------- Nav ---------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
}
.logo { display: inline-flex; color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.4vw, 2.1rem);
  font-size: 0.875rem;
  letter-spacing: -0.004em;
}
.nav-links a { display: inline-flex; align-items: center; gap: 0.35em; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.menu { position: relative; }
.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover,
.menu[open] summary { color: var(--ink); }
.menu-panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  translate: -50% 0;
  min-width: 10.5rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.8rem rgb(0 0 0 / .08);
  display: grid;
}
.menu-panel a {
  padding: 0.55em 0.8em;
  border-radius: 0.45rem;
  color: var(--ink);
  white-space: nowrap;
}
.menu-panel a:hover { background: var(--surface); }
.pill { padding: 0.5em 0.95em; border-radius: 999px; background: var(--surface); }

/* ---------------- Hero ---------------- */
.hero { padding-block: clamp(4rem, 12vw, 7.5rem) 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin-top: 2.4rem;
  padding: 0.82em 1.25em;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.006em;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #0049d6; }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(0.18em); }

/* ---------------- Film (rounded video) ---------------- */
.film {
  padding-top: clamp(6rem, 14vw, 10rem);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: calc(var(--max) + var(--gutter) * 2);
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(1rem, 2.2vw, 2rem);
  background: #111;
}
.watch {
  position: absolute;
  left: 50%;
  top: 52%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.95em 1.7em 0.95em 1.45em;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: clamp(0.9375rem, 1.3vw, 1.25rem);
  font-weight: 450;
  letter-spacing: -0.018em;
  cursor: pointer;
  box-shadow: 0 0.6em 2em rgb(0 0 0 / .18);
  transition: scale .25s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
.watch:hover { scale: 1.04; }
.watch.is-hidden { opacity: 0; pointer-events: none; }

/* ---------------- Proof ---------------- */
.proof { padding-top: clamp(6rem, 14vw, 10rem); }
.lead-sm {
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
.lead-sm strong { font-weight: 650; }
.store { display: flex; align-items: center; gap: 0.55em; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.product-copy { width: 100%; margin-top: 1.4rem; }
.proof hr { border: 0; border-top: 1px solid var(--line); margin: 60px 0; }
.product-title { margin: 0 0 60px; }
.sources {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.002em;
}
.sources li { display: flex; align-items: center; gap: 0.55em; }
.dot { font-size: 1.05em; line-height: 1; }

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}
.card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #222;
}
.card video { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2,.8,.2,1); }
.card:hover video { scale: 1.05; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .55), transparent 45%);
}
.card-meta {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  display: grid;
  color: #fff;
}
.card-meta strong { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card-meta span { font-size: 0.6875rem; letter-spacing: var(--track-caption); opacity: .75; }

/* ---------------- Statement ---------------- */
.statement { padding-block: clamp(6rem, 14vw, 10rem); }
.statement .title { max-width: 26em; }

/* ---------------- Steps ---------------- */
.steps {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding-bottom: 60px;
}
.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 60px;
}

/* ---------------- Gallery ---------------- */
.gallery { padding-bottom: 60px; }
.gallery-title { margin: 0 0 0.85rem; }
.gallery-lead {
  margin: 0 0 60px;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
.gallery-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 0.25rem;
}
.gallery-track::-webkit-scrollbar { height: 0; }
.gallery-frame {
  flex: 0 0 78%;
  aspect-ratio: 16 / 10;
  margin: 0;
  scroll-snap-align: start;
  border-radius: clamp(1rem, 2vw, 1.75rem);
  overflow: hidden;
  background: #111;
}
.gallery-frame video,
.gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-nav,
.step-visual {
  position: sticky;
  top: 12vh;
  align-self: start;
}
.step-nav { display: grid; gap: 1.15rem; padding-top: 1rem; font-size: 0.875rem; letter-spacing: 0.004em; }
.step-nav li {
  display: flex;
  align-items: center;
  gap: 1.1em;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.step-nav li::before {
  content: "";
  width: 0.6em;
  height: 1px;
  margin-left: 0.15em;
  background: currentColor;
  transition: width .3s;
}
.step-nav li.is-active { color: var(--ink); }
.step-nav li.is-active::before { width: 1.8em; margin-left: 0; }

.step-visual {
  height: min(76vh, 40rem);
  border-radius: 0.5rem;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.step-photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  opacity: 0;
}
.step-photo.is-cover {
  top: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.step-visual.is-photo .step-photo.is-on { opacity: 1; }
.step-visual.is-photo .globe { opacity: 0; }
.globe {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #c9c9ce;
}

.step-copy { display: grid; }
.step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  opacity: .25;
  transition: opacity .5s;
}
.step.is-active { opacity: 1; }
.step .body { max-width: 22em; margin-top: 1rem; }
.num {
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--track-mono);
}

/* ---------------- Footer ---------------- */
.footer {
  display: flex;
  justify-content: space-between;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .sources, .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card:nth-child(n + 4), .sources li:nth-child(n + 4) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step-nav { display: none; }
  .step-visual { position: relative; top: 0; height: 22rem; }
  .step { min-height: auto; padding-block: 3rem; opacity: 1; }
  .step .body { margin-top: 0; }
}
@media (max-width: 560px) {
  .nav-links a:not(.pill),
  .menu { display: none; }
  .sources, .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:nth-child(n + 3), .sources li:nth-child(n + 3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Wordmark */
.logo {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

/* ---------------- Gallery: hover-to-watch + fullscreen player ---------------- */
.gallery-frame { position: relative; }
.gallery-watch {
  opacity: 0;
  font-size: clamp(0.875rem, 1.1vw, 1.0625rem);
}
.gallery-frame:hover .gallery-watch,
.gallery-frame:focus-within .gallery-watch { opacity: 1; }
.gallery-watch:hover { scale: 1.04; }
@media (hover: none) { .gallery-watch { opacity: 1; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / .94);
}
.lightbox[hidden] { display: none; }
.lightbox video {
  width: min(100vw, 177.78vh);
  max-height: 100vh;
  aspect-ratio: 16 / 9;
  background: #000;
  outline: none;
}
.lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / .14);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgb(255 255 255 / .28); }
body.is-locked { overflow: hidden; }
