/* Rammenta home — light, quiet, product first.
   Warm paper background, one red, system type. Every moving picture is a
   short film (assets/cuts/, scripts/site-cuts.py) played natively by home.js.
   Nothing animates in on scroll; the films are the only things that move. */

:root {
  --bg: #F6F5F1;
  --card: #FFFFFF;
  --ink: #121212;
  --ink-2: #5C5B57;
  --ink-3: #6E6C67;
  --line: rgba(18, 18, 18, 0.08);
  --line-2: rgba(18, 18, 18, 0.14);
  --red: #FF3B30;          /* the app's red, for marks and fills */
  --red-ink: #D42A1E;      /* red text on paper (AA) */
  --red-btn: #E0261B;      /* white-on-red buttons (AA) */
  --night: #141414;        /* the dark band */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gut: 32px;
  --nav-h: 64px;
  --sec: clamp(104px, 12vw, 168px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-film: 0 1px 1px rgba(18, 18, 18, 0.04), 0 8px 24px -8px rgba(18, 18, 18, 0.14), 0 40px 80px -32px rgba(18, 18, 18, 0.22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html, body { overflow-x: clip; }
/* home.js turns smooth scrolling on after load, so arriving at #access doesn't glide */
html.is-smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.is-smooth { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-btn); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.anchor { position: relative; top: calc(-1 * var(--nav-h)); display: block; height: 0; }
.nowrap { white-space: nowrap; }

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

/* ---------- type ---------- */
.eyebrow { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--red-ink); }
.h1, .h2 { font-family: var(--display); font-weight: 500; color: var(--ink); margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; }
.h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.h1 .red { color: var(--red-btn); }
.h2 .soft { color: var(--ink-3); }
.lead { margin: 20px 0 0; font-size: clamp(18px, 1.45vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 600px; text-wrap: pretty; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 0.35em;
  font: 600 0.8em/1 var(--mono); color: var(--ink); background: var(--card);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; vertical-align: 0.08em;
}

/* ---------- buttons: colour changes on hover, nothing moves ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.btn--red { background: var(--red-btn); color: #fff; }
.btn--red:hover { background: #C21F15; }
.btn--ghost { background: rgba(18, 18, 18, 0.06); color: var(--ink); }
.btn--ghost:hover { background: rgba(18, 18, 18, 0.11); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #E7E6E1; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(246, 245, 241, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 245, 241, 0.9); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__brand { display: flex; align-items: center; flex: none; }
.nav__brand img { width: 118px; height: auto; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 18px; flex: none; }
.nav__cta .nav__plain { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav__cta .nav__plain:hover { color: var(--ink); }

/* ---------- films ---------- */
.film { position: relative; border-radius: 14px; overflow: hidden; background: #fff; isolation: isolate; }
.film--mac { aspect-ratio: 16 / 10; box-shadow: var(--shadow-film); outline: 1px solid rgba(18, 18, 18, 0.06); outline-offset: -1px; }
.film--wide { aspect-ratio: 1600 / 766; box-shadow: var(--shadow-film); outline: 1px solid rgba(18, 18, 18, 0.06); outline-offset: -1px; }
.film__v { width: 100%; height: 100%; object-fit: cover; background: #fff; }
/* the film's description for screen readers (home.js moves it off the <video>) */
.film__alt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film__nojs { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(18, 18, 18, 0.72); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, background-color 0.2s, visibility 0s 0.25s;
}
.film__play svg { width: 26px; height: 26px; margin-left: 4px; }
.film.is-idle .film__play { opacity: 1; visibility: visible; transition: opacity 0.25s, background-color 0.2s; }
.film__play:hover { background: rgba(18, 18, 18, 0.88); }
/* a measured number, shown the moment its film gets there (home.js counts it up) */
.film__stat {
  position: absolute; right: 16px; bottom: 16px; z-index: 1; padding: 11px 15px 12px 13px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.96); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 14px 32px -12px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translate3d(0, 8px, 0) scale(0.96); transform-origin: 100% 100%;
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.film__stat.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .film__stat { transition: none; transform: none; } }
.film__stat-row { display: flex; align-items: baseline; gap: 3px; line-height: 1; }
.film__stat svg { align-self: center; width: 15px; height: 15px; margin-right: 4px; color: var(--red); }
.film__stat-n { min-width: 1.15em; font-family: var(--display); font-size: 30px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; text-align: right; }
.film__stat-u { font-size: 15px; font-weight: 600; color: var(--red-ink); }
.film__stat-l { display: block; margin-top: 5px; font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--ink-2); }
/* on a film under 700px wide (home.js sets is-sm) */
.film__stat.is-sm { right: 8px; bottom: 8px; padding: 6px 9px 7px 8px; border-radius: 9px; }
.film__stat.is-sm svg { width: 11px; height: 11px; margin-right: 2px; }
.film__stat.is-sm .film__stat-n { font-size: 18px; }
.film__stat.is-sm .film__stat-u { font-size: 11px; }
.film__stat.is-sm .film__stat-l { margin-top: 3px; font-size: 9.5px; }

/* pause / play: always on screen, never hover-only */
.ctl {
  position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, 0.6); color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s;
}
.ctl:hover { background: #fff; border-color: rgba(18, 18, 18, 0.24); }
.ctl svg { width: 14px; height: 14px; }
.ctl::before { content: ""; position: absolute; inset: -5px; } /* a 44px target around a 36px circle */
.ctl .i-play { display: none; margin-left: 2px; }
.ctl:not(.is-playing) .i-play { display: block; }
.ctl:not(.is-playing) .i-pause { display: none; }
.film__ctl {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  border-color: transparent; background: rgba(18, 18, 18, 0.55); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.film__ctl:hover { background: rgba(18, 18, 18, 0.78); border-color: transparent; }
.film.is-idle .film__ctl { display: none; }
.ctl--dark { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff; }
.ctl--dark:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(48px, 6vw, 80px)) 0 0; text-align: center; }
.hero .h1 { margin: 0 auto; }
.hero .lead { max-width: 560px; margin: 20px auto 0; }
.hero__cta { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero__note { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); text-wrap: balance; }
.hero__note svg { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; margin-right: 6px; }
.stage {
  position: relative; margin: clamp(40px, 4.4vw, 56px) auto 0; max-width: 1200px;
  border-radius: 28px; padding: clamp(20px, 3.4vw, 48px) clamp(20px, 3.4vw, 48px) clamp(18px, 2.4vw, 32px);
  background:
    radial-gradient(55% 75% at 8% 12%, #FFD9C8 0%, rgba(255, 217, 200, 0) 70%),
    radial-gradient(45% 70% at 92% 6%, #FBCFDC 0%, rgba(251, 207, 220, 0) 70%),
    radial-gradient(60% 80% at 78% 100%, #E3DCFA 0%, rgba(227, 220, 250, 0) 70%),
    radial-gradient(55% 70% at 14% 100%, #FFEBC9 0%, rgba(255, 235, 201, 0) 70%),
    linear-gradient(180deg, #FCEDE6 0%, #F7E9EF 100%);
}
.stage .film { border-radius: 12px; }
.stage__bar { display: flex; align-items: flex-start; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(18px, 2vw, 26px); text-align: left; }
.stage__bar .ctl { margin-top: 10px; }
.chapters { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.chapter {
  position: relative; display: block; width: 100%; padding: 16px 0 2px; border: 0; background: none;
  text-align: left; cursor: pointer; color: var(--ink-3);
}
.chapter::before, .chapter::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; }
.chapter::before { background: rgba(18, 18, 18, 0.12); }
.chapter::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.chapter.is-done::after { background: rgba(18, 18, 18, 0.32); transform: scaleX(1); }
.chapter__t { display: block; font-size: 15px; font-weight: 600; color: var(--ink-3); transition: color 0.2s; }
.chapter__d { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.chapter:hover .chapter__t, .chapter.is-on .chapter__t { color: var(--ink); }
.chapter.is-on .chapter__d { color: var(--ink-2); }

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0 0; }
.sec__head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.sec__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.sec__head--split .lead { margin: 0; }

/* meetings: the film, then its chapters */
.meet__chapters { margin-top: clamp(22px, 2.4vw, 32px); }

/* highlights gallery: the front card sits on the page's left edge and the
   next one peeks in from the right; under it, a bar of labelled tabs */
.hl {
  position: relative;
  --edge: max(var(--gut), calc((100% - var(--wrap)) / 2));
  --card-w: min(960px, 78vw);
}
/* on a short screen the card shrinks so the whole card and its bar fit */
@supports (height: 100svh) {
  .hl { --card-w: min(960px, 78vw, max(640px, calc((100svh - var(--nav-h) - 250px) * 1.6 + 64px))); }
}
.hl__track {
  position: relative; display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 8px calc(100% - var(--card-w) - var(--edge)) 28px var(--edge);
  scroll-padding-inline-start: var(--edge);
}
.hl__track::-webkit-scrollbar { display: none; }
.hl__card {
  flex: 0 0 var(--card-w); scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 28px; padding: 30px 32px 32px;
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 18px 40px -26px rgba(18, 18, 18, 0.28);
  cursor: pointer;
}
.hl__card.is-on { cursor: auto; }
.hl__cap { margin: 0 0 22px; max-width: 680px; font-family: var(--display); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.38; letter-spacing: -0.012em; color: var(--ink-3); text-wrap: pretty; }
.hl__cap strong { color: var(--ink); font-weight: 600; transition: color 0.4s; }
.hl__card:not(.is-on) .hl__cap strong { color: var(--ink-3); }
.hl__card .film { margin-top: auto; border-radius: 12px; box-shadow: none; outline: 1px solid var(--line); outline-offset: -1px; transition: opacity 0.5s var(--ease); }
.hl__card:not(.is-on) .film { opacity: 0.5; }
.hl__bar { display: flex; align-items: center; gap: 24px; width: var(--card-w); margin: 4px 0 0 var(--edge); }
.hl__dots { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 24px); }
.hl__dot {
  position: relative; display: block; width: 100%; padding: 16px 0 4px; border: 0; background: none;
  text-align: left; cursor: pointer;
}
.hl__dot::before, .hl__dot::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; }
.hl__dot::before { background: rgba(18, 18, 18, 0.12); }
.hl__dot::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; }
.hl__dot.is-on::after { opacity: 1; }
.hl__dot-t { display: block; font-size: 15px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.hl__dot:hover .hl__dot-t, .hl__dot.is-on .hl__dot-t { color: var(--ink); }
.hl__toggle, .hl__arrow {
  position: relative; flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, 0.6); color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.hl__toggle::before, .hl__arrow::before { content: ""; position: absolute; inset: -5px; }
.hl__toggle:hover, .hl__arrow:hover:not([aria-disabled="true"]) { background: #fff; border-color: rgba(18, 18, 18, 0.24); }
.hl__toggle svg, .hl__arrow svg { width: 14px; height: 14px; }
.hl__toggle .i-play, .hl__toggle .i-replay { display: none; }
.hl__toggle .i-play { margin-left: 2px; }
.hl__toggle.is-paused .i-play { display: block; }
.hl__toggle.is-paused .i-pause, .hl__toggle.is-ended .i-pause, .hl__toggle.is-ended .i-play { display: none; }
.hl__toggle.is-ended .i-replay { display: block; }
.hl__arrows { flex: none; display: flex; gap: 10px; }
.hl__arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }

/* iPhone: the dark band */
.band { background: var(--night); color: #F5F5F2; margin-top: var(--sec); padding: clamp(96px, 11vw, 152px) 0; overflow: clip; }
.band .eyebrow { color: #FF6B61; }
.band .h2 { color: #fff; }
.band .lead { color: rgba(255, 255, 255, 0.72); }
.phone-sec { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 7vw, 120px); align-items: center; }
.phone-sec .lead { max-width: 500px; }
.ticks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; color: rgba(255, 255, 255, 0.86); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 59, 48, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3 7.7 11.7 12.8 6.5' fill='none' stroke='%23FF6B61' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.phone-sec__cta { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.phone-wrap { position: relative; display: grid; justify-items: center; gap: 20px; }
.phone-wrap::before {
  content: ""; position: absolute; inset: -8% -40% 0; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 59, 48, 0.16), rgba(255, 59, 48, 0));
}
.phone {
  position: relative; z-index: 1; width: clamp(260px, 24vw, 320px); padding: 10px;
  border-radius: clamp(46px, 4.3vw, 56px); background: #000;
  box-shadow: 0 0 0 1px #3A3A3F inset, 0 0 0 1px #1E1E21, 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.phone .film { width: 100%; aspect-ratio: 804 / 1748; border-radius: clamp(37px, 3.5vw, 46px); }
.phone .film__v { height: auto; aspect-ratio: 804 / 1748; }
.phone__island { position: absolute; z-index: 3; left: 50%; top: calc(10px + 2.3%); width: 31%; height: 3.6%; transform: translateX(-50%); border-radius: 999px; background: #000; pointer-events: none; }
.phone__ctl { position: relative; z-index: 1; }

/* look back / privacy */
.lookback .film { max-width: 1040px; margin: 0 auto; }
/* the gap sits under the film, so the #yours anchor lands on the facts */
.lookback { margin-bottom: clamp(48px, 5vw, 64px); }
#yours.anchor { top: 0; }
.privacy__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { background: var(--card); border-radius: 22px; padding: 28px 28px 30px; box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04); }
.fact__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 59, 48, 0.1); color: var(--red-ink); margin-bottom: 18px; }
.fact__icon svg { width: 18px; height: 18px; }
.fact h3 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.fact p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* closer */
.closer { padding: var(--sec) 0 clamp(72px, 8vw, 112px); text-align: center; }
.closer__icon { width: 92px; height: 92px; margin: 0 auto 30px; border-radius: 22px; box-shadow: 0 14px 34px -14px rgba(18, 18, 18, 0.45); }
.closer .h2 { font-size: clamp(40px, 5vw, 68px); }
.closer__sub { margin: 18px 0 0; font-size: 19px; color: var(--ink-2); }
.closer__cta { display: flex; justify-content: center; margin-top: 36px; }
.access__or { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px auto 18px; max-width: 460px; color: var(--ink-3); font-size: 14px; }
.access__or::before, .access__or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.access__form { display: flex; gap: 8px; justify-content: center; max-width: 460px; margin: 0 auto; }
.access__form .btn { height: 48px; }
.access__input {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(18, 18, 18, 0.35);
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.access__input::placeholder { color: #767470; }
.access__input:focus { outline: none; border-color: rgba(224, 38, 27, 0.6); box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.14); }
.access__input[aria-invalid="true"] { border-color: var(--red-btn); }
.access__note { min-height: 1.5em; margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.access__note.is-error { color: var(--red-ink); }
.access__note:focus { outline: none; }
.access__nojs { display: none; color: var(--ink-2); }
.access.is-sent .access__form, .access.is-sent .access__or { display: none; }

/* OAuth disclosure — crawlable and unanimated */
.integrations { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 40px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.integrations p { max-width: 760px; margin: 0; }
.integrations a { color: var(--ink-2); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-3); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__top img { width: 104px; height: auto; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { margin-top: 28px; display: grid; gap: 6px; }
.footer__legal p { margin: 0; }
.footer__legal a { color: var(--ink-2); }

/* short desktop screens: bring the stage up so its chapters are closer to the fold */
@media (min-width: 761px) and (max-height: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .hero .lead { margin-top: 18px; }
  .hero__cta { margin-top: 28px; }
  .stage { margin-top: 36px; }
}

/* desktop: each big film fits on screen whole, with its chapters */
@media (min-width: 761px) {
  .stage { max-width: min(1200px, max(640px, calc((100vh - var(--nav-h) - 210px) * 1.6 + 96px))); max-width: min(1200px, max(640px, calc((100svh - var(--nav-h) - 210px) * 1.6 + 96px))); }
  .meet, #meetings .sec__head { margin-inline: auto; max-width: min(100%, max(560px, calc((100vh - var(--nav-h) - 190px) * 1.6))); max-width: min(100%, max(560px, calc((100svh - var(--nav-h) - 190px) * 1.6))); }
  .lookback .film { max-width: min(1040px, max(560px, calc((100vh - var(--nav-h) - 120px) * 1.6))); max-width: min(1040px, max(560px, calc((100svh - var(--nav-h) - 120px) * 1.6))); }
}
/* a phone on its side */
@media (orientation: landscape) and (max-height: 500px) {
  .film, .stage { max-width: calc((100vh - 96px) * 1.6); max-width: calc((100svh - 96px) * 1.6); margin-inline: auto; }
  .meet, #meetings .sec__head { max-width: calc((100vh - 96px) * 1.6); max-width: calc((100svh - 96px) * 1.6); }
  .phone { width: min(260px, calc((100vh - 96px) * 804 / 1748)); width: min(260px, calc((100svh - 96px) * 804 / 1748)); }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .nav__links a:nth-child(n+5) { display: none; }
  .sec__head--split { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --gut: 20px; --nav-h: 56px; --sec: 96px; }
  body { font-size: 16px; }
  .nav__links, .nav__cta .nav__plain { display: none; }
  .nav__brand img { width: 108px; }
  .nav__cta { margin-left: auto; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero .h1 { font-size: clamp(40px, 11.6vw, 54px); }
  .hero .lead { font-size: 17px; margin-top: 18px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { flex: 1 1 100%; max-width: 360px; }
  .stage { margin: 36px calc(-1 * var(--gut) + 8px) 0; border-radius: 22px; padding: 12px 12px 14px; }
  .stage .film { border-radius: 9px; }
  .stage__bar { gap: 12px; margin-top: 14px; padding: 0 4px; }
  .stage__bar .ctl { margin-top: 6px; width: 32px; height: 32px; }
  .chapters { gap: 10px; }
  .chapter { padding-top: 12px; padding-bottom: 10px; }
  .chapter__t { font-size: 13px; }
  .chapter__d { display: none; }
  .sec__head { margin-bottom: 32px; }
  .sec__head--row { display: block; }
  .meet__chapters { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
  .meet__chapters .chapter__t { font-size: 15px; }
  .meet__chapters .chapter__d { display: block; }
  .meet .film, .film--wide, .lookback .film { margin: 0 calc(-1 * var(--gut) + 8px); border-radius: 10px; }
  .film__ctl { right: 10px; bottom: 10px; width: 32px; height: 32px; }
  #dictation .film__ctl { top: 10px; bottom: auto; } /* the dictated sentence runs into the bottom corner */
  .film__ctl::before, .stage__bar .ctl::before { inset: -6px; }
  .hl { --edge: var(--gut); --card-w: 86vw; }
  .hl__track { gap: 12px; padding-bottom: 22px; }
  .hl__card { padding: 18px 16px 16px; border-radius: 22px; }
  .hl__cap { font-size: 17px; margin-bottom: 14px; }
  .hl__card .film { border-radius: 9px; }
  /* on a phone the tabs become a pill of dots; swipe to move */
  .hl__bar { justify-content: center; gap: 10px; width: auto; margin: 4px var(--gut) 0; }
  .hl__arrows { display: none; }
  .hl__dots { flex: none; display: flex; gap: 0; height: 44px; padding: 0 10px; border-radius: 999px; background: rgba(18, 18, 18, 0.06); }
  .hl__dot { width: 32px; height: 44px; padding: 0; transition: width 0.5s var(--ease); }
  .hl__dot::before, .hl__dot::after { left: 50%; right: auto; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; }
  .hl__dot::before { background: rgba(18, 18, 18, 0.45); transition: width 0.5s var(--ease), margin 0.5s var(--ease), background-color 0.3s; }
  .hl__dot.is-on { width: 52px; }
  .hl__dot.is-on::before { width: 40px; margin-left: -20px; background: rgba(18, 18, 18, 0.2); }
  .hl__dot::after { width: 40px; margin-left: -20px; transform: none; clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0 round 999px); }
  .hl__dot-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hl__toggle { width: 44px; height: 44px; border: 0; background: rgba(18, 18, 18, 0.06); }
  .hl__toggle::before { content: none; }
  .hl__toggle svg { width: 16px; height: 16px; }
  .band { padding: 88px 0; }
  .phone-sec { grid-template-columns: 1fr; }
  .phone-wrap { order: 2; }
  .phone { width: min(290px, 72vw); }
  .privacy__grid { grid-template-columns: 1fr; gap: 12px; }
  .fact { padding: 22px 22px 24px; border-radius: 18px; }
  .access__form { flex-direction: column; }
  .access__input { flex: none; width: 100%; height: 52px; }
  .access__form .btn { height: 52px; }
  .access__form .btn { width: 100%; }
  .footer__links { gap: 0 18px; }
  .footer__links a { display: inline-block; padding: 10px 0; }
}
