/* Slipity Pro landing page */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	
	--brand: #eb8d00;

  --light-bg: #ffffff;
  --gray-bg: #f5f5f7;
  --dark-bg: #000000;
  --dark-raised: #1d1d1f;

  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-dark: #f5f5f7;
  --ink-dark-2: #a1a1a6;

  --accent: #2f6bff;
  --accent-hover: #4b80ff;
  --link: #0066cc;
  --link-dark: #2997ff;

  --warm-a: #ffb36b;
  --warm-b: #ff5e7e;
  --cool-a: #5ac8fa;
  --cool-b: #9b6bff;

  --ph-tint: rgba(47, 107, 255, 0.08);
  --ph-border: rgba(47, 107, 255, 0.35);
  --ph-ink: #2f56c4;

  --nav-h: 52px;
  --gutter: 22px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 52px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--ink);
  /*background: var(--light-bg);*/
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* Layout */
.container { width: min(980px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2 * var(--gutter)); text-align: center; }
.container.wide { width: min(1200px, 100% - 2 * var(--gutter)); }

section { padding-block: clamp(80px, 12vw, 160px); }

.section-light { background: var(--light-bg); color: var(--ink); }
.section-gray { background: var(--gray-bg); color: var(--ink); }
.section-dark { background: var(--dark-bg); color: var(--ink-dark); }
.section-dark a:not(.button) { color: var(--link-dark); }

/* Type */
.eyebrow {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.004em;
  margin-bottom: 12px;
  color: var(--ink-2);
}
.section-dark .eyebrow { color: var(--ink-dark-2); }

.headline-xxl { font-size: clamp(48px, 9vw, 112px); line-height: 1.04; font-weight: 700; letter-spacing: -0.015em; }
.headline-xl  { font-size: clamp(40px, 6.5vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.015em; }
.headline-l   { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.005em; }
.headline-m   { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: 0.004em; }

.lede {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 24px;
}
.section-dark .lede { color: var(--ink-dark-2); }

.grad {
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.grad-warm { background-image: linear-gradient(90deg, var(--warm-a), var(--warm-b)); }
.grad-cool { background-image: linear-gradient(90deg, var(--cool-a), var(--cool-b)); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 22px;
  border-radius: 980px;
  transition: background-color 0.2s var(--ease);
}
.button:hover { background: var(--accent-hover); text-decoration: none; }
.button-small { font-size: 12px; padding: 4px 11px; line-height: 1.4; }
.button.orange {
	border-radius: 980px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand); -webkit-text-fill-color: var(--brand);
}
.link-arrow { font-size: 19px; }
.link-arrow::after { content: " ›"; }

/* Site header */
.globalnav {
  height: 44px;
  background: var(--dark-bg);
  color: var(--ink-dark);
  font-size: 12px;
}
.globalnav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(980px, 100% - 2 * var(--gutter)); height: 100%;
  margin-inline: auto;
}
.globalnav-home {
  display: inline-flex; align-items: center; gap: 7px;
  color: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0;
}
.globalnav-home:hover { text-decoration: none; }
.globalnav-mark { width: auto; height: 18px; fill: var(--brand); flex: none; }
.globalnav-links { display: flex; gap: clamp(18px, 4vw, 32px); }
.globalnav-links a { color: inherit; opacity: 0.8; }
.globalnav-links a:hover { opacity: 1; text-decoration: none; }
.globalnav-links a[aria-current="page"] { opacity: 1; }

/* Local nav */
.localnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(22, 22, 23, 0.72);
  color: var(--ink-dark);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* At the top of the page, part of the black hero rather than a bar of its own until it sticks. */
.localnav:not(.is-stuck):not(.is-open) {
  background: var(--dark-bg);
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.localnav.is-light {
  background: rgba(251, 251, 253, 0.8);
  color: var(--ink);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}
.localnav-inner {
  display: flex; align-items: center; gap: 16px;
  width: min(980px, 100% - 2 * var(--gutter)); height: 100%;
  margin-inline: auto;
}
.localnav-title { font-size: 21px; font-weight: 600; color: inherit; margin-right: auto; letter-spacing: 0.011em; }
.localnav-title:hover { text-decoration: none; }
.localnav-menu { display: flex; gap: 24px; font-size: 12px; }
.localnav-menu a { color: inherit; opacity: 0.85; }
.localnav-menu a:hover, .localnav-menu a[aria-current="true"] { opacity: 1; text-decoration: none; }
.localnav-menu a[aria-current="true"] { font-weight: 600; }
.localnav-toggle {
  display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.localnav-toggle[aria-expanded="true"] { transform: rotate(180deg); }

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 120px); text-align: center; overflow: hidden; }
.hero-name {
  font-size: clamp(56px, 11vw, 128px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  background-image: linear-gradient(100deg, #ffffff 20%, #b9c9ff 45%, var(--brand) 75%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  position: relative;
  /* Room below the line for the y's descender, which background-clip: text otherwise cuts
     off at the bottom of a line-height: 1 box; taken back so the layout doesn't move. */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
/* Above the name, out of the flow: removing it changes nothing else on the page. */
.hero-badge {
  position: absolute; left: 50%; bottom: 100%;
  transform: translate(-50%, -12px);
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; line-height: 1;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 980px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand); -webkit-text-fill-color: var(--brand);
}
.hero-tagline { font-size: clamp(24px, 3.6vw, 40px); font-weight: 600; line-height: 1.15; margin-top: 18px; }
.hero-ctas { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.hero-media { width: min(1200px, 100% - 2 * var(--gutter)); margin: clamp(48px, 7vw, 80px) auto 0; }

/* Statement */
.statement .ph { margin-top: clamp(56px, 8vw, 96px); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: clamp(56px, 8vw, 96px); text-align: center;
}
.stat-num {
  display: block; font-size: clamp(56px, 7vw, 88px); font-weight: 700; line-height: 1;
  background-image: linear-gradient(180deg, var(--accent), var(--cool-b));
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.stat-label { display: block; margin-top: 12px; color: var(--ink-2); font-weight: 600; font-size: 17px; }

/* Placeholders */
.ph { display: block; }
.ph-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(47, 107, 255, 0.05) 14px 15px),
    var(--ph-tint);
  border: 1.5px dashed var(--ph-border);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph-16x9 .ph-box  { aspect-ratio: 16 / 9; }
.ph-16x10 .ph-box { aspect-ratio: 16 / 10; }
.ph-21x9 .ph-box  { aspect-ratio: 21 / 9; }
.ph-4x3 .ph-box   { aspect-ratio: 4 / 3; }
.ph-4x5 .ph-box   { aspect-ratio: 4 / 5; }
.ph-1x1 .ph-box   { aspect-ratio: 1 / 1; }

.ph-kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ph-ink);
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 12px; border-radius: 980px;
}
.ph-kind::before {
  content: ""; width: 14px; height: 14px; border-radius: 3px;
  background: currentColor; opacity: 0.8;
  -webkit-mask: var(--ph-icon) center / contain no-repeat; mask: var(--ph-icon) center / contain no-repeat;
}
.ph-image { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 3h12v10H2zM3.5 11.5l3-3.5 2.5 2.5 1.5-1.5 2 2.5z'/%3E%3C/svg%3E"); }
.ph-video { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2.5v11l9.5-5.5z'/%3E%3C/svg%3E"); }

.ph figcaption {
  margin-top: 12px;
  font-size: 14px; line-height: 1.43; letter-spacing: -0.016em;
  color: var(--ink-2);
  text-align: left;
}
.ph figcaption b { color: var(--ph-ink); font-weight: 600; }

.section-dark {
  --ph-tint: rgba(120, 150, 255, 0.1);
  --ph-border: rgba(140, 165, 255, 0.4);
  --ph-ink: #a9bcff;
}
.section-dark .ph-kind { background: rgba(0, 0, 0, 0.45); }
.section-dark .ph figcaption { color: var(--ink-dark-2); }

/* Carousel */
.carousel { margin-top: 48px; }
.carousel-track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - 980px) / 2);
  padding-inline: max(var(--gutter), (100% - 980px) / 2);
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { scroll-snap-align: start; flex: 0 0 auto; }

.carousel-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.25); cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.carousel-dots button[aria-current="true"] { width: 28px; border-radius: 4px; background: rgba(0, 0, 0, 0.8); }
.section-dark .carousel-dots button { background: rgba(255, 255, 255, 0.3); }
.section-dark .carousel-dots button[aria-current="true"] { background: rgba(255, 255, 255, 0.9); }
.carousel-arrows { display: flex; gap: 14px; }
.carousel-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.08); color: var(--ink);
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn:hover { background: rgba(0, 0, 0, 0.14); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.section-dark .carousel-btn { background: rgba(255, 255, 255, 0.14); color: var(--ink-dark); }

/* What's new tiles */
.tile {
  width: min(372px, 82vw);
  min-height: 560px;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
}
.tile-dark { background: var(--dark-raised); color: var(--ink-dark); --ph-tint: rgba(120,150,255,0.1); --ph-border: rgba(140,165,255,0.4); --ph-ink: #a9bcff; }
.tile-dark .ph-kind { background: rgba(0,0,0,0.45); }
.tile-dark .tile-body, .tile-dark figcaption { color: var(--ink-dark-2); }
.tile-eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }
.tile-dark .tile-eyebrow { color: var(--link-dark); }
.tile-title { font-size: 28px; line-height: 1.14; font-weight: 600; margin-top: 8px; }
.tile-body { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.tile .ph { margin-top: auto; padding-top: 24px; }
.tile .ph-box { border-radius: 14px; }
.tile .ph figcaption { font-size: 12px; }

/* What's new: the + on each tile, and the sheet it opens */
/* Room under the picture for the +, at every width the tile has its own padding for. */
.tile.tile-has-more { position: relative; padding-bottom: 88px; cursor: pointer; }
.tile-more {
  position: absolute; left: 28px; bottom: 28px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.tile-more svg { width: 14px; height: 14px; }
.tile-dark .tile-more { background: var(--ink-dark); color: var(--ink); }
.tile-has-more:hover .tile-more, .tile-more:focus-visible { transform: scale(1.08); }

.modal {
  /* The dialog is the scroller, the panel scrolls inside it: a sheet taller than the window
     reads down the page, as Apple's do, with the page underneath held still. */
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: clamp(16px, 5vh, 56px) var(--gutter);
  border: 0; background: transparent; color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.48);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.modal-panel {
  position: relative;
  width: min(980px, 100%);
  margin-inline: auto;
  background: var(--light-bg);
  border-radius: 32px;
  padding: clamp(56px, 8vw, 88px) clamp(24px, 8vw, 88px) clamp(48px, 7vw, 80px);
}
.modal[open] .modal-panel { animation: modal-in 0.45s var(--ease); }
/* Focused only so the keys keep working inside the sheet: nothing to outline. */
.modal-panel:focus { outline: none; }
@keyframes modal-in { from { opacity: 0; transform: translateY(48px) scale(0.98); } }
.modal-close {
  /* Stays in reach while the sheet scrolls under it. */
  position: sticky; top: 16px; z-index: 2;
  float: right; margin: calc(-1 * clamp(40px, 6vw, 68px)) calc(-1 * clamp(8px, 6vw, 64px)) 0 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.08); color: var(--ink-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.modal-close:hover { background: rgba(0, 0, 0, 0.14); color: var(--ink); }
.modal-close svg { width: 12px; height: 12px; }
.modal-eyebrow { font-size: 17px; font-weight: 600; color: var(--accent); }
.modal-title { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; margin-top: 10px; max-width: 16em; }
.modal-lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.33; font-weight: 600; margin-top: 20px; max-width: 30em; }
.modal-media { margin-top: clamp(32px, 5vw, 48px); }
.modal-copy { margin-top: clamp(32px, 5vw, 48px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.modal-copy p { font-size: 17px; line-height: 1.47; color: var(--ink-2); }
.modal-copy b { color: var(--ink); font-weight: 600; }
.modal-shots { margin-top: clamp(32px, 5vw, 48px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.modal .ph-box { border-radius: 18px; }
.modal-dark { color: var(--ink-dark); --ph-tint: rgba(120,150,255,0.1); --ph-border: rgba(140,165,255,0.4); --ph-ink: #a9bcff; }
.modal-dark .modal-panel { background: var(--dark-raised); }
.modal-dark .modal-eyebrow { color: var(--link-dark); }
.modal-dark .modal-copy p, .modal-dark .ph figcaption { color: var(--ink-dark-2); }
.modal-dark .modal-copy b { color: var(--ink-dark); }
.modal-dark .ph-kind { background: rgba(0, 0, 0, 0.45); }
.modal-dark .modal-close { background: rgba(255, 255, 255, 0.12); color: var(--ink-dark-2); }
.modal-dark .modal-close:hover { background: rgba(255, 255, 255, 0.2); color: var(--ink-dark); }
html.has-modal { overflow: hidden; }

/* The sheets before and after, at the foot of each */
.modal-pager {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.modal-dark .modal-pager { border-top-color: rgba(255, 255, 255, 0.14); }
.modal-pager button {
  display: flex; flex-direction: column; gap: 2px;
  max-width: 48%; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.modal-pager-next { margin-left: auto; text-align: right; align-items: flex-end; }
.modal-pager-label { font-size: 12px; color: var(--ink-2); }
.modal-dark .modal-pager-label { color: var(--ink-dark-2); }
.modal-pager-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 600; color: var(--link);
}
.modal-dark .modal-pager-name { color: var(--link-dark); }
.modal-pager-name svg { width: 12px; height: 12px; flex: none; }
.modal-pager button:hover .modal-pager-name span { text-decoration: underline; }
/* Moving between sheets: a short slide the way the reader is going, not the rise of opening. */
.modal.is-switching[open] .modal-panel { animation: modal-swap 0.3s var(--ease); }
.modal.is-switching.from-left[open] .modal-panel { --swap-from: -32px; }
@keyframes modal-swap { from { opacity: 0; transform: translateX(var(--swap-from, 32px)); } }
@media (max-width: 734px) {
  .modal-copy, .modal-shots { grid-template-columns: 1fr; }
  /* Stacked, each the full width, so a long name is never squeezed. */
  .modal-pager { flex-direction: column; gap: 0; padding-top: 0; }
  .modal-pager button { max-width: none; width: 100%; padding-block: 16px; }
  .modal-pager button + button { border-top: 1px solid rgba(128, 128, 128, 0.2); }
  .modal-panel { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal[open] .modal-panel, .modal.is-switching[open] .modal-panel { animation: none; }
}

/* Lightweight Powerhouse: installed size, app by app */
.size-chart { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.size-chart li {
  display: grid; align-items: center; column-gap: 12px; row-gap: 4px;
  grid-template-columns: minmax(0, 11em) 1fr auto auto;
  font-size: 14px; color: var(--ink-dark-2);
}
.size-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.size-bar > span { display: block; height: 100%; border-radius: 5px; background: rgba(255, 255, 255, 0.32); }
.size-value { font-variant-numeric: tabular-nums; text-align: right; min-width: 5.2em; }
.size-ratio { font-variant-numeric: tabular-nums; text-align: right; min-width: 3.4em; color: var(--ink-dark); font-weight: 600; }
.size-chart li.is-us { color: var(--ink-dark); font-weight: 600; }
.size-chart li.is-us .size-bar > span { background: var(--brand); }
.size-chart li.is-us .size-ratio { color: var(--brand); }
/* On the tile: the name over its bar, three rows, and no ratio column. */
.tile-chart { margin-top: auto; padding-top: 24px; }
.size-chart-compact li { grid-template-columns: 1fr auto; }
.size-chart-compact .size-bar { grid-column: 1 / -1; grid-row: 2; }
.size-chart-compact .size-ratio { display: none; }
.modal-chart { margin-top: clamp(32px, 5vw, 48px); padding: clamp(20px, 4vw, 32px); border-radius: 18px; background: rgba(255, 255, 255, 0.04); }
.modal-chart-title { font-size: 17px; font-weight: 600; color: var(--ink-dark); margin-bottom: 18px; }
.modal-chart .size-chart li { font-size: 15px; }
.modal-chart-note { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--ink-dark-2); }
@media (max-width: 734px) {
  .modal-chart .size-chart li { grid-template-columns: 1fr auto auto; }
  .modal-chart .size-name { white-space: normal; }
  .modal-chart .size-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Chapters nav */
.chapters {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.chapters ul {
  display: flex; justify-content: center; gap: 8px;
  padding: 10px var(--gutter);
  overflow-x: auto; scrollbar-width: none;
}
.chapters ul::-webkit-scrollbar { display: none; }
.chapters a {
  display: block; white-space: nowrap;
  font-size: 14px; color: var(--ink-dark-2);
  padding: 6px 14px; border-radius: 980px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chapters a:hover { color: var(--ink-dark); text-decoration: none; }
.chapters a[aria-current="true"] { background: var(--ink-dark); color: var(--ink); }

.chapter > .ph, .chapter > .container.wide { margin-top: clamp(56px, 8vw, 96px); }

/* Feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: clamp(56px, 8vw, 96px);
}
.feature-grid-icons { grid-template-columns: repeat(4, 1fr); }
.feature h3 { font-size: 21px; line-height: 1.19; font-weight: 600; }
.feature p { margin-top: 10px; color: var(--ink-2); }
.section-dark .feature p { color: var(--ink-dark-2); }
.feature-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 16px; }

/* Split */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  margin-top: clamp(56px, 8vw, 96px);
}
.split-copy p { margin-top: 12px; color: var(--ink-2); font-size: 19px; }
.split-copy h3 + p + h3 { margin-top: 40px; }

/* Static tiles (bento) */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: clamp(56px, 8vw, 96px);
}
.tile-static {
  background: var(--dark-raised);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
}
.tile-static h3 { font-size: 24px; font-weight: 600; line-height: 1.16; }
.tile-static p { margin-top: 10px; color: var(--ink-dark-2); }
.tile-static .ph { margin-top: auto; padding-top: 24px; }
.tile-span-2 { grid-column: span 2; }
.tile-light { background: var(--gray-bg); }
.tile-light p { color: var(--ink-2); }
.tile-light .ph figcaption { color: var(--ink-2); }

/* Ecosystem */
.device-rows { display: grid; gap: clamp(64px, 9vw, 120px); margin-top: clamp(56px, 8vw, 96px); }
.device-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.device-row-flip > figure { order: 2; }
.device-copy p { margin-top: 12px; color: var(--ink-2); font-size: 19px; }

/* Gallery */
.slide { width: min(820px, 86vw); }
.slide .ph-box { border-radius: var(--radius-lg); }
.slide-caption { margin-top: 18px; font-size: 19px; color: var(--ink-dark-2); max-width: 600px; }
.slide-caption b { color: var(--ink-dark); font-weight: 600; }

/* Specs */
.spec-list { margin-top: 48px; border-top: 1px solid #d2d2d7; }
.spec { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid #d2d2d7; }
.spec dt { font-weight: 600; font-size: 19px; }
.spec dd { color: var(--ink-2); }
.footnote { margin-top: 24px; font-size: 12px; color: var(--ink-2); }

/* Closing */
.closing { text-align: center; }
.closing .ph { margin-top: clamp(56px, 8vw, 96px); }

/* Footer */
.footer { background: var(--gray-bg); color: var(--ink-2); font-size: 12px; line-height: 1.33; padding: 24px 0 32px; }
.footer p + p { margin-top: 10px; }

/* Apple TV page */
.tv-section .headline-l { text-align: center; }
.tv-lede { text-align: center; max-width: 34em; margin-inline: auto; }
.tile-white { background: var(--light-bg); }
.tile-white p { color: var(--ink-2); }

.tv-compare-wrap { margin-top: clamp(40px, 6vw, 64px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tv-compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
.tv-compare th, .tv-compare td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid #d2d2d7; }
.tv-compare thead th { font-size: 21px; font-weight: 600; border-bottom-color: var(--ink); }
.tv-compare thead th span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.tv-compare tbody th { font-weight: 600; width: 16%; }
.tv-compare td { color: var(--ink-2); width: 28%; }
.tv-compare .tv-ours { background: color-mix(in srgb, var(--brand) 7%, transparent); color: var(--ink); }
.tv-compare thead .tv-ours { border-radius: 14px 14px 0 0; color: var(--brand); }
.tv-compare tbody tr:last-child .tv-ours { border-radius: 0 0 14px 14px; }

.tv-steps { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tv-steps li { background: var(--light-bg); border-radius: var(--radius-lg); padding: 32px; }
.tv-steps h3 { font-size: 21px; font-weight: 600; margin-top: 16px; }
.tv-steps p { margin-top: 8px; color: var(--ink-2); }
.tv-step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-weight: 700;
}
@media (max-width: 734px) {
  .tv-steps { grid-template-columns: 1fr; }
  .tv-section .headline-l, .tv-lede { text-align: left; }
}

/* Reveal animation */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-media.reveal { transform: translateY(60px) scale(0.96); }
.js .hero-media.reveal.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-media.reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Tablet */
@media (max-width: 1068px) {
  .feature-grid-icons { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 734px) {
  :root { --gutter: 16px; --nav-h: 48px; }
  body { font-size: 17px; }

  .localnav-toggle { display: block; order: 2; }
  .localnav-cta { order: 3; }
  .localnav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #161617;
    padding: 0 var(--gutter);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  }
  .localnav.is-open .localnav-menu { max-height: 320px; padding-block: 8px 16px; }
  .localnav.is-open { background: rgba(22, 22, 23, 0.96); }
  .localnav.is-light.is-open, .localnav.is-light .localnav-menu { background: #fbfbfd; }
  .localnav-menu li + li { border-top: 1px solid rgba(128, 128, 128, 0.25); }
  .localnav-menu a { display: block; padding: 12px 0; font-size: 17px; }

  .chapters ul { justify-content: flex-start; }

  .stats, .feature-grid, .feature-grid-icons, .split, .tiles, .device-row { grid-template-columns: 1fr; }
  .stats { gap: 40px; }
  .tile-span-2 { grid-column: auto; }
  .device-row-flip > figure { order: 0; }
  .feature-grid { gap: 32px; text-align: left; }

  .tile { min-height: 520px; padding: 28px 22px 22px; }
  .tile.tile-has-more { padding-bottom: 80px; }
  .tile-more { left: 22px; bottom: 22px; }
  .tile-static { padding: 26px 22px; }

  .spec { grid-template-columns: 1fr; gap: 6px; }
  .container.narrow { text-align: left; }
  .hero, .closing { text-align: center; }
  .closing .container.narrow { text-align: center; }
}

/* Captured assets */
.asset { display: block; }
.asset img, .asset video {
  width: 100%; height: auto;
  border-radius: var(--radius);
  background: var(--dark-raised);
}
.asset figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); text-align: left; }
.section-dark .asset figcaption, .tile-dark .asset figcaption { color: var(--ink-dark-2); }
.asset-contain { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 3vw, 40px); }
.tile .asset { margin-top: auto; padding-top: 24px; }
.tile .asset img, .tile .asset video { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
/* A wide clip shown whole, its edges kept: a screen recording whose sides are the point. */
.tile .asset-wide img, .tile .asset-wide video { aspect-ratio: 16 / 9; object-fit: contain; }
.tile-static .asset { margin-top: auto; padding-top: 24px; }

/* Device frames, drawn in CSS as stand-ins (no Apple artwork) */
.device {
  position: relative;
  background: #0b0b0d;
  border: 1px solid #3a3a3f;
  box-shadow: 0 0 0 1px #000, 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.device img, .device video { display: block; width: 100%; height: auto; border-radius: inherit; background: #000; }
.device-phone { width: min(280px, 42%); padding: 10px; border-radius: 44px; }
.device-phone img, .device-phone video { border-radius: 34px; }
.device-phone-land { width: min(560px, 100%); padding: 10px; border-radius: 44px; }
.device-phone-land img, .device-phone-land video { border-radius: 34px; }
.device-tablet { width: 100%; padding: 14px; border-radius: 34px; }
.device-tablet img, .device-tablet video { border-radius: 20px; }
.device-tablet.device-portrait { width: min(380px, 60%); }
.section-light .device, .tile-light .device { box-shadow: 0 0 0 1px #000, 0 30px 60px -24px rgba(0, 0, 0, 0.35); }
.device-pair { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.device-pair .device-tablet { flex: 1 1 auto; max-width: 820px; }
.device-pair .device-phone { flex: 0 0 auto; width: min(220px, 26%); }

.needs-capture b::after {
  content: "Needs real capture";
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 980px;
  font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase;
  background: rgba(255, 94, 126, 0.15); color: #d6365c;
}
.section-dark .needs-capture b::after, .tile-dark .needs-capture b::after { color: #ff8aa3; }

@media (max-width: 734px) {
  .device-pair { flex-direction: column; align-items: center; }
  .device-pair .device-phone { width: 46%; }
  .device-phone { border-radius: 36px; padding: 8px; }
  .device-phone img, .device-phone video { border-radius: 28px; }
  .device-tablet { padding: 10px; border-radius: 24px; }
  .device-tablet img, .device-tablet video { border-radius: 14px; }
}

.device-hero { width: min(900px, 100%); margin-inline: auto; }
.hero-media .device-hero + figcaption { max-width: 900px; margin-inline: auto; }
.device-pair-phones .device-phone { width: min(260px, 44%); }
.split .asset img { border-radius: var(--radius); }
.chapter .asset > video, .chapter .asset > img { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.tile-static.tile-light .asset img { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); }
/* A device or window cut out on transparency, with its own shadow: no box drawn behind it. */
.asset.asset-object img { background: none; box-shadow: none; border-radius: 0; }
/* In a tile, stood in the same 4:3 space as its neighbors’ screenshots. */
.tile-static .asset.asset-object img { aspect-ratio: 4 / 3; object-fit: contain; box-shadow: none; }
.asset video { display: block; }
/* A clip whose sound is worth hearing: muted to autoplay, with a button to turn it on. */
.video-frame { position: relative; }
.video-sound {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer;
}
.video-sound:hover { background: rgba(0, 0, 0, 0.75); }
.video-sound svg { width: 20px; height: 20px; }
.video-sound .icon-on, .video-sound[aria-pressed="true"] .icon-off { display: none; }
.video-sound[aria-pressed="true"] .icon-on { display: block; }

/* Legal pages: privacy policy and terms of use */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 112px); }
.legal .container { width: min(720px, 100% - 2 * var(--gutter)); }
.legal h1 { margin-bottom: 8px; }
.legal .legal-updated { color: var(--ink-2); font-size: 15px; margin-bottom: 32px; }
.legal .legal-summary { font-size: 19px; line-height: 1.5; margin-bottom: 8px; }
.legal h2 { font-size: 24px; line-height: 1.2; font-weight: 700; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 17px; line-height: 1.55; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--link); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 10px 0 0; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: var(--ink); }
