/* Lumar — site + manual.
   The system is the app's own: black ground, white at stepped opacities, Avenir Next with the
   condensed cut on dials, small uppercase demi-bold labels, hairlines instead of boxes.
   The values come from the app's default theme (CameraUITheme.lumar).

   Contrast on black (WCAG): w100 21:1 · w85 14.9:1 · w65 8.6:1 · w50 5.3:1 · w42 3.9:1.
   Text never goes below w50. w42 and lower are for strokes, hairlines and fills only. */
:root {
  color-scheme: dark;
  --bg: #000;
  --accent: #fff;
  --w100: #fff;
  --w85: rgba(255, 255, 255, 0.85);
  --w65: rgba(255, 255, 255, 0.65);
  --w50: rgba(255, 255, 255, 0.5);
  --w42: rgba(255, 255, 255, 0.42);
  --w18: rgba(255, 255, 255, 0.18);
  --w08: rgba(255, 255, 255, 0.08);
  --rec: #ff3b2f;
  --callout: #c9a678; /* Quick Start callouts: the app icon rings beige (#feebd5), two steps darker (user, 28 Nov) */
  --bar: rgba(0, 0, 0, 0.84);
  --font: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --dial: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Avenir Next", sans-serif;
  --w-text: 400; --w-head: 400; --w-label: 600; --w-dial: 600;
  --label: var(--w-label) 0.6875rem/1.2 var(--font); /* 11 px, the smallest size on the site */
  --notch: 1;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 56px;
}
/* Increase Contrast: every step moves up. */
@media (prefers-contrast: more) {
  :root { --w85: #fff; --w65: rgba(255, 255, 255, 0.85); --w50: rgba(255, 255, 255, 0.72); --w42: rgba(255, 255, 255, 0.6); --w18: rgba(255, 255, 255, 0.4); }
}
/* Reduce Transparency: bars go solid. */
@media (prefers-reduced-transparency: reduce) { :root { --bar: #000; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--w85); font: var(--w-text) 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--w100); text-decoration-color: var(--w42); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--w100); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: #000; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; text-decoration: none; border-radius: 10px; }
.skip:focus { top: 10px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type ---------- */
.label { font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); margin: 0; }
h1, h2, h3 { font-family: var(--font); font-weight: var(--w-head); color: var(--w100); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 8.2vw, 7.75rem); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); line-height: 1.05; letter-spacing: -0.024em; }
.major h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--w65); max-width: 56ch; }
.num { font-family: var(--dial); font-weight: var(--w-dial); letter-spacing: 0.02em; }
.note { color: var(--w65); font-size: 0.9375rem; max-width: 52ch; }

/* Paid-tier marker, for when Lumar has a free and a paid tier. Put it after a feature's name:
   <h3>Star <span class="tier">Pro</span></h3>. Not used yet. */
.tier { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 8px; vertical-align: 0.2em; border: 1px solid var(--w42); border-radius: 6px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w85); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bar); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--w18); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header); }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--w100); font: var(--w-label) 0.875rem/1 var(--font); letter-spacing: 0.2em; text-transform: uppercase; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
/* Two kinds of link, kept apart: the sections of this page, and the other pages. */
.nav { display: flex; align-items: center; gap: 26px; min-width: 0; }
.nav.sections { margin-left: auto; }
.nav.pages { margin-left: auto; }
.nav.sections + .nav.pages { margin-left: 0; padding-left: 26px; border-left: 1px solid var(--w18); }
.nav a { display: flex; align-items: center; min-height: 44px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--w100); }
.nav a[aria-current="page"], .nav a.active { color: var(--accent); }
@media (max-width: 899px) {
  .nav.sections { display: none; }
  .nav.pages { gap: 22px; }
  .nav.sections + .nav.pages { padding-left: 0; border-left: 0; margin-left: auto; }
}

/* Section strip: the sections of a long page, floating under the header on narrow screens.
   The home page and the manual share it. */
.strip { position: sticky; top: var(--header); z-index: 40; background: var(--bar); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--w18); }
.strip ol { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.strip ol::-webkit-scrollbar { display: none; }
.strip a { position: relative; display: flex; align-items: center; min-height: 44px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); text-decoration: none; white-space: nowrap; }
.strip a:hover { color: var(--w100); }
.strip a.active { color: var(--accent); }
.strip a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); }
@media (min-width: 900px) { .home-strip { display: none; } }
@media (max-width: 899px) { html:has(.home-strip) { scroll-padding-top: calc(var(--header) + 64px); } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--w42); color: var(--w100); font: var(--label); letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--w100); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #000; }

/* ---------- Sections ---------- */
.hero { padding: clamp(56px, 10vw, 150px) 0 0; }
.hero h1 { margin: 26px 0 30px; max-width: 11ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 38px; }

section.band { padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--w18); }
.hero + .band, .home-strip + .band { border-top: 0; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.major .head { gap: 22px; margin-bottom: clamp(40px, 6vw, 84px); max-width: 860px; }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Photograph with the app's caption line beneath: lens · aperture · style · frame */
.plate { margin: 0; }
.plate .img { position: relative; overflow: hidden; background: #0a0a0a; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 0 0; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); }
.plate figcaption b { font-weight: inherit; color: var(--w100); }
.plate.bleed { margin-top: clamp(56px, 8vw, 110px); }
.plate.bleed figcaption { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.r-xpan { aspect-ratio: 65 / 24; } .r-scope { aspect-ratio: 2.39 / 1; } .r-32 { aspect-ratio: 3 / 2; } .r-43 { aspect-ratio: 4 / 3; }
@media (max-width: 640px) { .plate.bleed .r-xpan { aspect-ratio: 2.39 / 1; } }
.rec::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); margin-right: 8px; }

/* Hairline rows: the site's replacement for cards */
.rows { border-top: 1px solid var(--w18); }
.rows > * { display: grid; grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2fr); gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid var(--w18); align-items: baseline; }
.rows h3 { font-size: 1.1875rem; }
.rows p:not(.label) { color: var(--w65); font-size: 1rem; }
.rows .label { grid-column: 2; }
.rows.three > * { grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr) minmax(0, 1.6fr); }
.rows.three .label { grid-column: auto; }
@media (max-width: 640px) { .rows > *, .rows.three > * { grid-template-columns: 1fr; } .rows .label { grid-column: auto; } }
.grid-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.grid-rows > .rows + .rows { border-top: 0; }
@media (min-width: 760px) { .grid-rows > .rows + .rows { border-top: 1px solid var(--w18); } }
/* Specifications: the same rows, set tighter, as at the back of a camera brochure */
.rows.spec > * { padding: 14px 0; }
.rows.spec h3 { font-size: 1rem; font-weight: 500; }
.rows.spec p:not(.label) { font-size: 0.9375rem; }

/* ---------- Open-type option rows (LOOK / FRAME / FOCUS, aspect ratios, kits) ---------- */
.options { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.options > .label { width: 62px; color: var(--w50); }
.opt { display: inline-flex; align-items: center; min-width: 28px; min-height: 44px; font: var(--w-label) 0.75rem/1 var(--font); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); transition: color 0.15s; }
.opt:hover { color: var(--w85); }
.opt[aria-pressed="true"], .opt.on { color: var(--accent); }
.panel { display: grid; gap: 4px; padding: 18px 0 0; }

/* ---------- Lens tiles ---------- */
.lens-row { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 18px 0 18px; min-height: 104px; }
.lens { display: grid; justify-items: center; gap: 4px; width: 68px; padding: 6px 0 8px; border-radius: 7px; color: var(--w65); }
.lens svg { width: 64px; height: 64px; }
.lens .num { font-size: 0.9375rem; line-height: 1; color: inherit; }
.lens small { font: var(--label); letter-spacing: 0.1em; color: var(--w50); }
.lens:hover { color: var(--w100); }
.lens[aria-pressed="true"] { background: var(--w08); color: var(--accent); }
.kit-note { color: var(--w65); max-width: 52ch; min-height: 3.2em; }

/* ---------- Aperture dial (ApertureScale in the app) ---------- */
.dial { position: relative; height: 64px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.12) 6%, rgba(0,0,0,.46) 14%, rgba(0,0,0,.82) 23%, #000 34%, #000 66%, rgba(0,0,0,.82) 77%, rgba(0,0,0,.46) 86%, rgba(0,0,0,.12) 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.12) 6%, rgba(0,0,0,.46) 14%, rgba(0,0,0,.82) 23%, #000 34%, #000 66%, rgba(0,0,0,.82) 77%, rgba(0,0,0,.46) 86%, rgba(0,0,0,.12) 94%, transparent 100%); }
.dial:active { cursor: grabbing; }
.dial .stop, .dial .notch { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; }
.dial .stop { width: 72px; height: 24px; margin: -12px 0 0 -36px; display: grid; place-items: center; font: 400 16px/1 var(--dial); color: #fff; }
.dial .stop span { grid-area: 1 / 1; }
.dial .stop .b { font-weight: var(--w-dial); }
.dial .notch { width: calc(1.4px * var(--notch)); height: calc(10px * var(--notch)); margin: calc(-5px * var(--notch)) 0 0 -0.7px; border-radius: 1px; background: #fff; }
.dial-label { text-align: center; margin-top: 2px; color: var(--w50); }
.hint { color: var(--w50); padding-top: 6px; }

/* ---------- Film rolls ---------- */
.rolls { display: flex; flex-wrap: wrap; gap: 6px 2px; }
.roll { display: grid; justify-items: center; align-content: start; gap: 7px; width: 66px; padding: 8px 0 9px; border-radius: 7px; font: var(--label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--w65); text-align: center; }
.roll svg { width: 30px; height: 44px; }
button.roll:hover { color: var(--w100); }
.roll[aria-pressed="true"] { background: var(--w08); color: var(--accent); }
/* Slider row (LumarRateLimitedSlider): label · thin filled track · value */
.slide { display: grid; grid-template-columns: auto minmax(0, 1fr) 3ch; align-items: center; gap: 18px; min-height: 44px; }
.slide output { font: var(--w-dial) 0.875rem/1 var(--dial); color: var(--w100); text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --fill: 100%; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(to right, var(--accent) var(--fill), var(--w18) var(--fill)); }
input[type="range"]::-moz-range-track { height: 2px; border-radius: 1px; background: linear-gradient(to right, var(--accent) var(--fill), var(--w18) var(--fill)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; }

/* Dot-on-a-line (the app's COLOR FILTER control), shown here as a picture of the control */
.dots { position: relative; display: flex; justify-content: space-between; max-width: 340px; padding: 8px 0 0; grid-column: 1 / -1; }
.dots::before { content: ""; position: absolute; left: 22px; right: 22px; top: 15px; height: 2px; background: var(--w18); }
.dots span { position: relative; display: grid; justify-items: center; gap: 9px; width: 48px; font: var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--w65); }
.dots i { width: 15px; height: 15px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.dots .on i { box-shadow: 0 0 0 2px #fff; } .dots .on { color: var(--w100); }

/* ---------- Framing ---------- */
.stage { position: relative; overflow: hidden; background: #000; }
.stage > img { width: 100%; height: 100%; object-fit: cover; }
.frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.78); outline: 1px solid rgba(255, 255, 255, 0.85); transition: width 0.34s cubic-bezier(.2,.7,.2,1), height 0.34s cubic-bezier(.2,.7,.2,1); }
.frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame svg * { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Level ruler (the editor's FRAME tab) ---------- */
.level .img img { transform-origin: center; will-change: transform; }
.level .fine { position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 8.333% 12.5%; }
.level.busy .fine { opacity: 1; }
.level .options { justify-content: center; }
.readout { text-align: center; font: var(--w-dial) 1.25rem/1 var(--dial); color: var(--accent); margin: 16px 0 2px; }
.ruler { position: relative; height: 44px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(to right, transparent, #000 28%, #000 72%, transparent); }
.ruler .ticks { position: absolute; left: 50%; top: 0; height: 100%; will-change: transform; }
.ruler .ticks i { position: absolute; top: 16px; width: 1px; height: calc(9px * var(--notch)); background: var(--w42); }
.ruler .ticks i.major { top: 12px; height: calc(17px * var(--notch)); background: var(--w85); }
.ruler::after { content: ""; position: absolute; left: 50%; top: 4px; width: 1.5px; height: 32px; margin-left: -0.75px; background: var(--accent); }

/* ---------- Closing ---------- */
.cta { text-align: center; }
.cta .head { margin-inline: auto; justify-items: center; margin-bottom: 0; }
.cta img { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 10px; }
.cta .actions { justify-content: center; margin-top: 10px; }

.site-footer { border-top: 1px solid var(--w18); padding: 28px 0 56px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); text-decoration: none; }
.site-footer nav a:hover { color: var(--w100); }
.site-footer .fine { max-width: 88ch; font-size: 0.8125rem; line-height: 1.6; color: var(--w50); }

/* ---------- Manual + text pages ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: 56px 0 120px; align-items: start; }
.toc { position: sticky; top: calc(var(--header) + 28px); max-height: calc(100vh - var(--header) - 48px); overflow-y: auto; padding-left: 2px; }
.toc .find { position: relative; margin-bottom: 18px; }
.toc input { width: 100%; height: 44px; padding: 0 0 0 2px; border: 0; border-bottom: 1px solid var(--w42); border-radius: 0; background: transparent; color: var(--w100); font: var(--w-text) 0.9375rem/1 var(--font); }
.toc input::placeholder { color: var(--w50); }
.toc input:focus { outline: 0; border-color: var(--accent); }
.toc input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.6; }
.toc .count { display: block; min-height: 1.2em; margin-top: 8px; color: var(--w50); }
.toc ol { list-style: none; margin: 0; padding: 0; }
/* Desktop: a reading list, in sentence case, with the dial's notch marking where you are. */
@media (min-width: 900px) {
  .toc nav { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .toc ol { display: block; padding: 0; overflow: visible; }
  .toc a { position: relative; display: block; min-height: 0; padding: 7px 0 7px 14px; font: var(--w-text) 0.9375rem/1.35 var(--font); letter-spacing: 0; text-transform: none; color: var(--w65); }
  .toc a:hover { color: var(--w100); }
  .toc a.active { color: var(--accent); }
  .toc a.active::after { left: 0; right: auto; top: 50%; bottom: auto; width: 1.5px; height: 14px; margin-top: -7px; }
}
@media (max-width: 899px) {
  /* Narrow screens: the section list becomes the floating strip under the header. */
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }
  .toc { display: contents; }
  .toc .find { margin-bottom: 6px; }
  .toc nav { margin: 0 calc(var(--gutter) * -1) 28px; }
  html { scroll-padding-top: calc(var(--header) + 64px); }
}
.page { padding: 64px 0 120px; }
.prose { max-width: 72ch; }
/* The manual: text keeps its 72-character measure, pictures (.wide) use the whole column. */
.doc .prose { max-width: none; }
.doc .prose > header, .doc .prose > .quick-title, .doc .prose section > :not(.wide) { max-width: 72ch; }
.prose .wide { margin: 28px 0 32px; }
.prose > header { margin-bottom: 48px; display: grid; gap: 20px; }
.prose > header h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.prose section { padding: 44px 0 12px; border-top: 1px solid var(--w18); }
.prose section[hidden] { display: none; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.prose h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.005em; color: var(--w100); margin: 36px 0 10px; }
.prose p, .prose ul, .prose ol, .prose table, .prose .tip { margin: 0 0 16px; }
.prose p, .prose li { color: var(--w65); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--w50); }
.prose b, .prose strong { color: var(--w100); font-weight: 500; }
/* A control's name, set the way the app sets it */
.prose .ui { font: var(--w-label) max(0.72em, 0.6875rem)/1 var(--font); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w100); white-space: nowrap; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; border-top: 1px solid var(--w18); }
.prose th, .prose td { text-align: left; padding: 12px 24px 12px 0; border-bottom: 1px solid var(--w18); vertical-align: top; color: var(--w65); }
.prose th { font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); white-space: nowrap; }
.prose td:first-child { color: var(--w100); white-space: nowrap; }
@media (max-width: 560px) { .prose td:first-child { white-space: normal; min-width: 7.5em; } }
.prose .tip { border-left: 1.5px solid var(--accent); padding: 2px 0 2px 18px; color: var(--w65); font-size: 1rem; }
.prose mark { background: none; color: var(--w100); text-decoration: underline 1.5px; text-underline-offset: 3px; }
.no-results { color: var(--w65); padding: 30px 0; }
.anchor-only { display: block; height: 0; }

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

/* Aperture series: one frame per stop, cross-faded */
[data-depth] img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s linear; }
[data-depth] img.on { opacity: 1; }

@media (max-width: 560px) {
  .options > .label { width: 100%; padding-top: 10px; }
  .options { gap: 0 20px; }
}

/* ---------- Interface screenshots ---------- */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); }
.screen { margin: 0; }
.screen .phone { position: relative; aspect-ratio: 9 / 19.5; border-radius: 13% / 6%; border: 1px solid var(--w42); background: #0a0a0a; overflow: hidden; display: grid; place-items: center; }
.screen .phone span { font: var(--label); line-height: 1.7; letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); text-align: center; }
.screen .phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen figcaption { padding-top: 14px; text-align: center; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); }
@media (max-width: 760px) {
  .screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .screens::-webkit-scrollbar { display: none; }
  .screen { flex: 0 0 62%; scroll-snap-align: center; }
  /* The editor row runs edge to edge, the same on both sides, with fades where more screens wait (user, 29 Nov).
     .wrap's width would otherwise keep it one gutter short on the right. */
  .edit-screens { width: auto; margin: 0; }
  .edit-screens.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .edit-screens.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); }
  .edit-screens.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
}

/* A screenshot slot with no file shows its label while working locally and is hidden on the
   published site (html.local is set by site.js); a band whose slots are all empty goes too. */
.shots { display: flex; gap: 22px; margin: 26px 0 30px; overflow-x: auto; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots .screen { flex: 0 1 240px; min-width: 160px; } /* was 178 px: too small to read the app's labels. Shrinks so a row of three fits the column instead of running off the edge (user, 28 Nov); scrolls only below 160 px each */
html:not(.local) .screen:not(.ready) { display: none; }
html:not(.local) .shots:not(:has(.ready)), html:not(.local) [data-screens]:not(:has(.ready)) { display: none; }

/* ---------- Manual: quick start, figures, Settings jump row, Troubleshooting questions ---------- */
/* Narrow screens: `.toc ol { padding: 0 }` above cancelled the strip's own side padding. */
@media (max-width: 899px) { .toc nav.strip ol { padding: 0 var(--gutter); } }

/* Quick start: four steps, numbered because they are a sequence */
.prose .quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 56px; padding: 0; list-style: none; counter-reset: step; }
.quick li { counter-increment: step; background: var(--w08); border-radius: 14px; padding: 18px 18px 20px; margin: 0; }
.quick li::before { content: counter(step); display: block; margin-bottom: 14px; font: var(--w-dial) 1.5rem/1 var(--dial); color: var(--w100); }
.prose .quick h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.prose .quick p { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--w65); }
.quick a { font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w85); text-decoration: none; }
.quick a:hover { color: var(--w100); }
.prose .quick-title { margin: 0 0 14px; }

/* One picture per idea: the aperture strip and the style, color filter and grain tiles */
.strip-fig { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 0; }
.strip-fig figure { margin: 0; }
.strip-fig .img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: #0a0a0a; }
.strip-fig .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 60%; }
.strip-fig figcaption { padding-top: 8px; text-align: center; font: var(--w-dial) 0.9375rem/1 var(--dial); color: var(--w85); }
.prose .fig-ends { display: flex; justify-content: space-between; margin: 14px 0 0; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tiles figure { margin: 0; }
.tiles .img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: #0a0a0a; }
.tiles .img img, .tiles .img svg { width: 100%; height: 100%; object-fit: cover; }
.tiles figcaption { padding-top: 8px; font-size: 0.9375rem; color: var(--w85); }
.tiles figcaption small { display: block; margin-top: 3px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); }
.tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles.six .img, .tiles.three .img { aspect-ratio: 1; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }

/* Settings: jump to a group */
.prose .jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.prose .jump li { margin: 0; }
.jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--w08); font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w85); text-decoration: none; }
.jump a:hover { background: var(--w18); color: var(--w100); }

/* Troubleshooting: questions that open one at a time (search opens the ones that match) */
.faq { border-top: 1px solid var(--w18); margin: 8px 0 16px; }
.faq details { border-bottom: 1px solid var(--w18); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none; color: var(--w100); font-size: 1.0625rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--w65); border-bottom: 1.5px solid var(--w65); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.prose .faq details p { margin: 0 0 18px; }

@media (max-width: 899px) {
  .prose .quick { grid-template-columns: 1fr 1fr; }
  .strip-fig { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .strip-fig::-webkit-scrollbar { display: none; }
  .strip-fig figure { flex: 0 0 26%; }
  .prose .fig-ends { display: none; } /* the strip scrolls, so its two ends are never both in view */
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* An image slot: a picture still to be made. Drop the file at assets/examples/manual/<name> and it fills in.
   Like an empty screenshot slot, it shows its file name while working locally and is hidden on the published site. */
.slot { margin: 28px 0 32px; }
.slot .img { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 12px; background: var(--w08); display: grid; place-items: center; }
.slot .img span { font: var(--label); line-height: 1.7; letter-spacing: 0.11em; text-transform: uppercase; color: var(--w50); text-align: center; }
.slot .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot figcaption { padding-top: 10px; font-size: 0.875rem; color: var(--w50); }
html:not(.local) .slot:not(.ready) { display: none; }

/* ---------- Home: the opening photo, the acts (picture over a black deck, as on the camera screen), the spec, the closing photo ---------- */
  /* ---------- Act 1: the opening ---------- */
  .open { position: relative; height: calc(100svh - var(--header)); min-height: 560px; overflow: hidden; background: #000; }
  .open > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
  .open::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 30%, rgba(0,0,0,0) 58%); }
  .open .copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 1; }
  .open .setup { margin: 0 0 10px; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); color: var(--w85); }
  .open h1 { margin: 0 0 18px; max-width: 14ch; font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.02; }
  .open .lede { max-width: 36ch; margin: 0 0 28px; color: var(--w85); }
  .open .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
  .open .cap { position: absolute; left: 0; right: 0; top: 18px; z-index: 1; display: flex; justify-content: space-between;
    font: var(--label); letter-spacing: .11em; text-transform: uppercase; color: var(--w85); }
  .open .cap b { font-weight: inherit; color: #fff; }
  /* Tall screens (phones): a full-height slice of the wide photo can't hold both the phone in her hands and her face
     (user, 28 Nov: the camera must show). The photo sits on top at 5:6, the words below it on black. Recheck if the photo changes. */
  @media (max-aspect-ratio: 4/5) {
    .open { height: auto; min-height: 0; }
    .open > img { position: relative; height: auto; aspect-ratio: 5 / 6; object-position: 40% 50%; }
    .open::after { bottom: auto; aspect-ratio: 5 / 6; background: linear-gradient(to top, #000 0%, rgba(0,0,0,0) 30%); }
    .open .copy { position: relative; bottom: auto; margin-top: -48px; padding-bottom: 40px; }
  }

  /* ---------- Act 2: the lens ---------- */
  .act { padding: clamp(96px, 14vw, 180px) 0 0; }
  .act .head { text-align: center; max-width: 34rem; margin: 0 auto clamp(40px, 6vw, 72px); }
  .act .head .lede { margin-inline: auto; }
  .act .head h2 { margin-inline: auto; }

  /* The camera screen: the picture, then the black deck with the instruments, as in the app */
  .viewfinder { width: min(1200px, 100%); margin: 0 auto; }
  /* picture + deck fit one screen, so the picture changes in view while the dial turns */
  .viewfinder { scroll-margin-top: calc(var(--header) + 12px); }
  .viewfinder .img { position: relative; height: clamp(320px, calc(100svh - var(--header) - 312px), 680px); overflow: hidden; background: #0a0a0a; }
  .viewfinder .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .viewfinder .style-shot img { object-fit: contain; }   /* the whole style photo, tall ones with black at the sides (user, 28 Nov) */
  .style-shot img.plain { opacity: 0; transition: opacity .3s ease; }
  /* Tap (or click) the photo to see it in Standard, tap again to go back (user, 28 Nov: was hover/hold) */
  .style-shot.has-plain { cursor: pointer; }
  .style-shot.has-plain.show-plain img.plain { opacity: 1; }
  .style-shot .tag .std { display: none; }
  .style-shot.has-plain.show-plain .tag [data-cap-style] { display: none; }
  .style-shot.has-plain.show-plain .tag .std { display: inline; }
  /* tap-to-see-Standard (user, 28 Nov): the line shows only when <nn>-standard.jpg exists. Its space stays, so the text
     below doesn't jump while a new style's copy loads, or on Standard, which has none (user, 28 Nov: "glitches"). */
  .viewfinder .std-note { visibility: hidden; opacity: 0; transition: opacity .2s ease; }
  .viewfinder:has(.style-shot.has-plain) .std-note { visibility: visible; opacity: 1; }
  .viewfinder [data-depth] img { opacity: 0; transition: opacity .35s ease; object-fit: cover; object-position: 61% 50%; }   /* 16:9 bust photo, the user's own framing (29 Nov). site.js picks the fit from the frame's shape: narrower than the photo → fill, bust centered; wider → the whole photo, never cut top or bottom */
  .viewfinder [data-depth].fit-whole img { object-fit: contain; object-position: 50% 50%; }
  .viewfinder [data-depth] img.on { opacity: 1; z-index: 1; }   /* the incoming stop fades in on top… */
  .viewfinder [data-depth] img.under { opacity: 1; transition: none; }   /* …of the outgoing one, held fully shown: a dissolve, not a dip to black (user, 29 Nov) */

  /* ---------- Act 3: styles ---------- */
  .viewfinder .tag.right { left: auto; right: 20px; }
  .deck .rolls { justify-content: flex-start; gap: 6px 4px; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }   /* all 15 styles: one row that scrolls (user, 28 Nov) */
  .deck .rolls::-webkit-scrollbar { display: none; }
  .deck .rolls { max-width: 600px; margin-left: auto; margin-right: auto; }   /* narrower: about eight styles show, the rest scroll (user, 28 Nov) */
  .deck .roll { flex: none; }
  .deck .roll:first-child { margin-left: auto; } .deck .roll:last-child { margin-right: auto; }   /* centered when the row fits */
  .deck .rolls.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
  .deck .rolls.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); }
  .deck .rolls.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
  .deck .rolls.dragging { cursor: grabbing; user-select: none; }
  .deck .slide { max-width: 420px; margin: 14px auto 0; }
  .viewfinder .tag { position: absolute; left: 20px; top: 16px; z-index: 1; font: var(--label); letter-spacing: .11em; text-transform: uppercase; color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.6); }
  .viewfinder .tag b { font-weight: inherit; }
  .deck { background: #000; padding: 22px 0 6px; }
  .deck .lens-row { justify-content: center; margin: 0 auto 10px; min-height: 0; }
  .deck .dial { max-width: 640px; margin: 0 auto; }
  .fine-note { margin: 10px auto 0; padding: 0 16px; max-width: 640px; text-align: center; font-size: .8125rem; line-height: 1.5; color: var(--w50); }
  .fine-note a { white-space: nowrap; color: var(--w65); text-decoration: underline; text-underline-offset: 2px; }
  .points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 72px); max-width: 860px; margin: clamp(40px, 6vw, 72px) auto 0; }
  .points div { border-top: 1px solid var(--w18); padding-top: 18px; }
  .points h3 { margin: 0 0 6px; }
  .points p { margin: 0; color: var(--w65); }
  .points.one { grid-template-columns: 1fr; max-width: 420px; text-align: center; }

  /* ---------- Act 4: filters. A break from the camera-screen layout: one scene, five filters side by side ---------- */
  .filter-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: min(1320px, 100%); margin: 0 auto; padding: 0 20px; list-style: none; }
  .filter-row figure { margin: 0; }
  .filter-row .img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #0a0a0a; }
  .filter-row .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
  /* tap a tile to see the scene without the filter, tap again to go back (user, 28 Nov: was hover/hold) */
  .filter-row .img { cursor: pointer; }
  .filter-row .img .plain { opacity: 0; }
  .filter-row .img.show-plain .plain { opacity: 1; }
  .filter-row figcaption { padding: 14px 4px 0; }
  .filter-row h3 { margin: 0 0 4px; }
  .filter-row p { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--w65); }

  /* ---------- Act 5: the editor. Three phone screenshots, one per tab ---------- */
  .edit-screens { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
  .edit-screens figcaption { text-transform: none; letter-spacing: 0; font: inherit; }
  .edit-screens figcaption h3 { margin: 0 0 4px; color: #fff; }
  .edit-screens figcaption p { margin: 0 auto; max-width: 26ch; font-size: .9375rem; line-height: 1.45; color: var(--w65); }

  /* ---------- Spec: everything else, as a short three-column list ---------- */
  .spec-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); max-width: 1040px; margin: 0 auto; }
  .spec-cols h3 { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--w42); font: var(--label); letter-spacing: .11em; text-transform: uppercase; color: var(--w85); }
  .spec-cols dl { margin: 0; }
  .spec-cols dl div { padding: 14px 0; border-bottom: 1px solid var(--w18); }
  .spec-cols dt { margin-bottom: 2px; color: #fff; }
  .spec-cols dd { margin: 0; color: var(--w65); }

  /* ---------- Closing: a photo again, as the page opened ---------- */
  .close { position: relative; margin-top: clamp(96px, 14vw, 180px); height: min(88svh, 820px); min-height: 520px; overflow: hidden; background: #000; }
  .close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  /* Tall screens (phones): the icon and words landed on the phone in her hands (user, 28 Nov). The photo sits on top
     at 5:6, the words below it on black, as at the opening. Recheck if the photo changes. */
  @media (max-aspect-ratio: 4/5) {
    .close { height: auto; min-height: 0; }
    .close > img { position: relative; height: auto; aspect-ratio: 5 / 6; object-position: 30% 50%; }
    section.close::after { bottom: auto; aspect-ratio: 5 / 6; background: linear-gradient(to top, #000 0%, rgba(0,0,0,0) 30%); }
    .close .wrap.copy { position: relative; bottom: auto; margin-top: -40px; padding-bottom: 48px; }
  }
  .close::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 38%, rgba(0,0,0,0) 65%); }
  .close .copy { position: absolute; left: 0; right: 0; bottom: clamp(40px, 8vh, 88px); z-index: 1; text-align: center; }
  .close .copy img { display: block; margin: 0 auto 18px; border-radius: 22%; }
  .close h2 { margin: 0 0 10px; }
  .close .lede { margin: 0 auto 26px; color: var(--w85); }
  .close .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }


  @media (max-width: 640px) {
    .open .cap { display: none; }
    .viewfinder .img { height: clamp(300px, calc(100svh - var(--header) - 300px), 560px); }
    .deck .lens-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 16px; scrollbar-width: none; }
    .deck .lens-row::-webkit-scrollbar { display: none; }
    .points { grid-template-columns: 1fr; gap: 24px; padding: 0 16px; }
    .deck .slide { padding: 0 16px; }
    .deck .rolls { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 16px; scrollbar-width: none; }
    .deck .rolls::-webkit-scrollbar { display: none; }
    .deck .roll { flex: none; }
    .spec-cols { grid-template-columns: 1fr; gap: 40px; padding: 0 16px; }
  }
  /* five tiles get too narrow below 900 px: swipe through them instead */
  @media (max-width: 900px) {
    .filter-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; }
    .filter-row::-webkit-scrollbar { display: none; }
    .filter-row > li { flex: 0 0 min(68%, 300px); scroll-snap-align: center; }
    /* fade at the sides where more tiles wait (user, 28 Nov), as on the style row */
    .filter-row.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
    .filter-row.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent); }
    .filter-row.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
  }

/* Squircles, not pills: where the browser can draw a true squircle, it does. */
@supports (corner-shape: squircle) { .btn, .jump a, .tier, .skip { corner-shape: squircle; border-radius: 16px; } }

/* The app, early: one phone after the opening (after the narrow-screen .screens rule, so it wins) */
.first-look { padding-top: clamp(40px, 7vw, 88px); }
.screens.one-screen { display: block; max-width: 300px; margin: 0 auto; padding: 0; overflow: visible; }

/* Gallery: photographs made with Lumar, with how each was made */
/* Gallery: one row that scrolls sideways (swipe on phones). Every photo keeps its own shape, uncropped. */
.gallery-row { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 14px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--w18) transparent; }
.gallery-row figure { flex: none; margin: 0; scroll-snap-align: start; }
.gallery-row img { display: block; width: auto; height: clamp(300px, 56svh, 560px); border-radius: 12px; background: #0a0a0a; } /* never cropped; every photo the same height (user, 28 Nov), so the wide one runs past a phone screen and scrolls */
.gallery-row figcaption { padding-top: 10px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); }
.gallery-row figcaption b { font-weight: inherit; color: var(--w100); }

/* Manual: a heading under a Settings group (Grids, Level, Steady Viewfinder) */
.prose h4 { font-size: 1rem; font-weight: 500; color: var(--w100); margin: 26px 0 8px; }
.prose table th[colspan] { padding-top: 18px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); }

/* Manual: Quick Start — the camera screen with numbered controls, and the key beside it */
.tour { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin: 0 0 32px; max-width: 72ch; }
.tour-phone { position: relative; margin: 0; aspect-ratio: 140 / 230; }
.tour-screen { position: absolute; top: 0; height: 94.5217%; left: 14.2857%; width: 71.4286%; border-radius: 13% / 6%; border: 1px solid var(--w42); overflow: hidden; background: #0a0a0a; }
.tour-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The callouts: a line from each control out to its number in the margin, in a color the app's controls never use */
.tour-calls { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tour-calls polyline { fill: none; stroke: var(--callout); stroke-width: 0.45; stroke-linejoin: round; }
.tour-calls circle { fill: var(--callout); }
.tour-calls text { fill: #000; font: 600 4.3px var(--font); text-anchor: middle; dominant-baseline: central; }
.tour-keys { margin: 0; padding: 0; list-style: none; counter-reset: key; display: grid; gap: 10px; }
.tour-keys li { counter-increment: key; position: relative; padding-left: 32px; font-size: 0.9375rem; line-height: 1.45; color: var(--w85); }
.tour-keys li::before { content: counter(key); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--callout); color: #000; font: 600 11px/20px var(--font); text-align: center; }
.tour-keys b { color: var(--w100); font-weight: 500; }
.tour-keys a { margin-left: 4px; font: var(--label); letter-spacing: 0.11em; text-transform: uppercase; color: var(--w65); text-decoration: none; }
@media (max-width: 760px) { .tour { grid-template-columns: 1fr; } .tour-phone { max-width: 400px; width: 100%; margin: 0 auto; } }


/* A photo slot whose photograph hasn't arrived: a quiet tile with the style's name */
.img.empty { background: #141414; display: grid; place-items: center; }
.img.empty::after { content: attr(data-ph) " · photo to come"; font: var(--label); letter-spacing: .11em; text-transform: uppercase; color: var(--w42); }
.style-shot.empty .tag { display: none; }
.tiles .img.empty::after { content: "Photo to come"; }
/* The header's one call to action: Join the waitlist now, the App Store link from launch day */
.site-header .head-cta { margin-left: 22px; height: 34px; padding: 0 14px; }
/* Phones: the button takes the header's room; Manual and Support stay in the footer and the opening */
@media (max-width: 479px) { .site-header .nav.pages { display: none; } .site-header .head-cta { margin-left: auto; } }

/* The waitlist form, drawn by Lumar Mail's script: match the site's corners and type */
.join { padding-block: clamp(48px, 8vw, 104px); scroll-margin-top: var(--header); }
.join-wrap { max-width: 600px; }
.join .lumar-signup { padding: clamp(20px, 4vw, 32px); border: 1px solid var(--w42); font-family: var(--font); }
.join .lumar-signup input[type="email"], .join .lumar-signup select, .join .lumar-signup button { border-radius: 12px; font-family: var(--font); }
@supports (corner-shape: squircle) {
  .join .lumar-signup input[type="email"], .join .lumar-signup select, .join .lumar-signup button { corner-shape: squircle; border-radius: 16px; }
}

/* Phones: a floating "Join the waitlist" bar after the opening photo, hidden at the form; × closes it for the visit */
.float-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; background: var(--bar); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--w18); border-radius: 16px; transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform 0.35s ease, visibility 0s 0.35s; }
.float-cta.show { transform: none; visibility: visible; transition: transform 0.35s ease; }
.float-cta .t { flex: 1; min-width: 0; font: var(--label); letter-spacing: 0.13em; text-transform: uppercase; color: var(--w65); line-height: 1.4; }
.float-cta .t b { display: block; color: var(--w100); font-weight: var(--w-label); }
.float-cta .btn { height: 40px; padding: 0 16px; }
.float-cta .x { width: 32px; height: 32px; border: 0; background: none; color: var(--w50); font-size: 20px; line-height: 1; cursor: pointer; }
@media (min-width: 768px) { .float-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-cta, .float-cta.show { transition: none; } }

/* Photos and screenshots can't be dragged out, long-pressed to save, or selected (user, 28 Nov).
   This only puts saving out of easy reach: a screenshot or the browser's developer tools still get them. */
main img, .open img, .close img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

/* Phone held sideways (user, 29 Nov): the viewfinder photo fits in the short screen below the header and section tabs, instead of the 320 px minimum running past the bottom. */
@media (orientation: landscape) and (max-height: 500px) {
  .viewfinder .img { height: max(200px, calc(100svh - var(--header) - 72px)); }
  @supports (height: 100lvh) { .viewfinder .img { height: max(240px, calc(100lvh - var(--header) - 66px)); } }   /* the screen with Safari's bars hidden: svh counted the bars and left the photo too small; dvh changed as the bars slid in and out, so things resized while scrolling (user, 29 Nov) */
}

/* Phone held upright (user, 29 Nov): the whole aperture photo, edge to edge across the screen, nothing cropped. The frame takes the photo's own 16:9 shape. */
@media (orientation: portrait) and (max-width: 640px) {
  .viewfinder [data-depth] { height: auto; aspect-ratio: 16 / 9; }
}

/* Phone held sideways (user, 29 Nov): the filter pictures and the three editor screenshots were taller than the screen.
   Each is sized from the screen height left under the header and section tabs, so the whole picture fits. */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --fit-h: calc(100svh - var(--header) - 72px); }
  @supports (height: 100lvh) { :root { --fit-h: calc(100lvh - var(--header) - 66px); } }   /* lvh: steady while scrolling */
  .filter-row > li { flex: 0 0 calc(var(--fit-h) * 4 / 5); }
  .edit-screens { display: flex; justify-content: center; overflow: visible; margin: 0 auto; padding: 0 var(--gutter); }
  .edit-screens .screen { flex: 0 0 calc(var(--fit-h) * 9 / 19.5); }
}

/* ---------- Act 6: video. The camera in Video mode, held sideways, the clip playing in its viewfinder (user, 1 Dec) ---------- */
.act .head .note { margin: 0 auto; }
.video-phone { max-width: 1000px; }
/* The phone around it (user, 2 Dec: "give the video the same frame"): black bezel, a thin metal edge, the buttons and the
   Dynamic Island, drawn for a phone turned left (top of the phone on the left, power button on top, volume along the bottom). */
.device-side { position: relative; padding: 1.56%; border-radius: 7.6% / 16%; background: #050505;
  box-shadow: 0 0 0 2px #3a3a3d, 0 0 0 3.5px #1c1c1e, 0 0 0 4.5px #5a5a5e, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 120px -20px rgba(255,255,255,.06); }
.device-side .btn-b, .device-side .btn-t { position: absolute; height: 3px; background: linear-gradient(180deg,#2c2c2e,#6a6a6e); border-radius: 2px; }
.device-side .btn-b { bottom: -7px; transform: scaleY(-1); } .device-side .btn-t { top: -7px; left: 27%; width: 11%; }
.device-side .btn-b.a { left: 17%; width: 4%; } .device-side .btn-b.b { left: 24%; width: 7.5%; } .device-side .btn-b.c { left: 33%; width: 7.5%; }
.phone-side .island { position: absolute; left: 1.6%; top: 50%; width: 3.6%; height: 31%; transform: translateY(-50%); background: #000; border-radius: 999px; }
.phone-side { position: relative; aspect-ratio: 2622 / 1206; border-radius: 6.2% / 13.4%; background: #0a0a0a; overflow: hidden; }
.phone-side img { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-side video { position: absolute; top: 0; height: 100%; left: calc(214 / 2622 * 100%); width: calc(1608 / 2622 * 100%); object-fit: cover; background: #0a0a0a; }
@media (orientation: landscape) and (max-height: 500px) {
  .video-phone { width: min(100%, calc(var(--fit-h) * 2622 / 1206)); }
}
.act .wrap.head.video-note { margin-top: 28px; margin-bottom: 0; }

/* Act 1: the opener (user, 2 Dec): words left, the camera in a drawn phone right; stacked on phones */
/* Spacing (user, 2 Dec): the top band follows the window's height, and there is no bottom padding,
   so the gap to Lenses is the same 122 px every section uses. Below 900 px a little room before the section row. */
.hero2 { --h2-top: clamp(24px, 5svh, 64px); padding: var(--h2-top) 0 0; }
@media (max-width: 899px) { .hero2 { padding-bottom: 32px; } }
.hero2-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Size (user, 2 Dec): capped at 100 px and held to a tenth of the window's height, so on big screens it stays
   four lines in its column (124 px broke it into 7) and the words fit the first screen beside the phone. */
.hero2 h1 { margin: 0 0 24px; max-width: 12ch; font-size: clamp(2.75rem, min(8.2vw, 10svh), 6.25rem); }
.hero2 .actions { margin-top: 30px; }
.hero2-small { margin-top: 22px; font-size: 14px; opacity: .6; }
/* The whole drawn phone (2.094 × its width tall) fits in the first screen under the header. */
.hero2-phone { justify-self: center; width: min(100%, 340px, calc((100svh - var(--header) - 2 * var(--h2-top)) / 2.094)); }
.device { position: relative; padding: 3.4%; border-radius: 16% / 7.6%; background: #050505;
  box-shadow: 0 0 0 2px #3a3a3d, 0 0 0 3.5px #1c1c1e, 0 0 0 4.5px #5a5a5e, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 120px -20px rgba(255,255,255,.06); }
.device .glass { position: relative; border-radius: 13.4% / 6.2%; overflow: hidden; background: #000; }
.device img { display: block; width: 100%; aspect-ratio: 1206 / 2622; }
.device .island { position: absolute; top: 1.6%; left: 50%; width: 31%; height: 3.6%; transform: translateX(-50%); background: #000; border-radius: 999px; }
.device .btn-l, .device .btn-r { position: absolute; width: 3px; background: linear-gradient(90deg,#2c2c2e,#6a6a6e); border-radius: 2px; }
.device .btn-l { left: -7px; } .device .btn-r { right: -7px; transform: scaleX(-1); }
.device .btn-l.a { top: 17%; height: 4%; } .device .btn-l.b { top: 24%; height: 7.5%; } .device .btn-l.c { top: 33%; height: 7.5%; }
.device .btn-r { top: 27%; height: 11%; }
@media (max-width: 760px) {
  .hero2-grid { grid-template-columns: 1fr; }
  .hero2-phone { width: min(78%, 300px); }
}
