/* ============================================================
   PHOTLIN. Typographic lens / exploded-view landing page
   ============================================================ */

:root {
  --bg: #f5f5f2;
  --paper: #ffffff;
  --ink: #161614;
  --ink-soft: #5b5b55;
  --muted: #77776f;
  --faint: #a6a69e;
  --line: #d9d8d1;
  --rim: #3c3a37;
  --rim-soft: #4a4845;
  --glass: #ececea;
  --accent: #08b6e7;
  --accent-dark: #0098c6;
  --accent-soft: rgba(8, 182, 231, .12);
  --sans: "Roboto", Arial, Helvetica, sans-serif;
  --mono: "Roboto", Arial, Helvetica, sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
  font: 500 12px var(--mono); letter-spacing: .06em;
}
.skip-link:focus { top: 12px; }

/* ---------- navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 60;
  background: rgba(245, 245, 242, .97);
  border-bottom: 1px solid rgba(22, 22, 20, .09);
}
.nav-inner {
  height: 100%; padding: 0 clamp(20px, 4.2vw, 68px);
  display: flex; align-items: center; gap: clamp(20px, 4vw, 64px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.045em; }
.brand-mark { width: 34px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); margin-left: 14px; }
.nav-links a { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .25s ease; }
.nav-links a:hover::after { right: 0; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-spec { font: 400 10px var(--mono); letter-spacing: .1em; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1.4px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-sm { min-height: 36px; padding: 0 18px; font-size: 12px; }

/* ---------- stage shell ---------- */
.experience { position: relative; width: 100%; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--bg); isolation: isolate;
}
.stage-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(22,22,20,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22,22,20,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 75% 70% at 34% 50%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 34% 50%, #000 0%, transparent 100%);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 27% 47%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 46%);
}

/* Lens = eight pre-rendered typographic rings. Only transform changes
   at runtime, so every frame is a compositor update, never a repaint. */
.lens { position: absolute; inset: 0; z-index: 1; overflow: hidden; contain: layout style paint; }
.lens-stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; }
.lens-window {
  position: absolute; left: -218px; top: -218px; width: 436px; height: 436px;
  border-radius: 50%; overflow: hidden; background: #ececea; z-index: 0;
  box-shadow: inset 0 0 40px rgba(0,0,0,.07);
}
.lens-window::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.55), rgba(255,255,255,0) 58%, rgba(30,28,25,.09));
  pointer-events: none;
}
.lw-block { position: absolute; left: 12%; top: 50%; width: 55%; height: 52%; border-radius: 26px; background: var(--accent); transform: rotate(-8deg); }
.lens-window img {
  position: absolute; left: 22%; top: 11%; width: 56%; height: 78%;
  object-fit: cover; object-position: top center; border-radius: 12px;
  transform: rotate(7deg); box-shadow: 0 14px 30px rgba(0,0,0,.28);
  border: 2px solid rgba(255,255,255,.5);
}
.lw-caption { position: absolute; left: 0; right: 0; bottom: 5%; z-index: 4; text-align: center; font: 400 9px var(--mono); letter-spacing: .2em; color: #9a9991; }
.part {
  position: absolute; left: -340px; top: -340px; width: 680px; height: 680px;
  transform-origin: 50% 50%; will-change: transform; z-index: 1;
}
.part-art { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.part-spin { position: absolute; inset: 0; }
.part.is-spinning .part-spin { animation: lenspin 90s linear infinite; will-change: transform; }
@keyframes lenspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.lens:not(.is-hero) .part-spin { animation-play-state: paused; }
.part::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--accent); opacity: 0; pointer-events: none;
}
.lens.is-chapter .part.is-active::after { opacity: 1; }
.lens.is-chapter .part.is-dim { opacity: .62; }
.lens-notes { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.lens-notes .part-label-g { pointer-events: auto; cursor: pointer; }

.plate-mark {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px;
  font: 400 10px var(--mono); letter-spacing: .13em; color: var(--muted);
  opacity: var(--plate-fade, 1); pointer-events: none;
}
.plate-mark span:last-child { color: var(--faint); }
.plate-tl { top: calc(var(--nav-h) + 28px); left: clamp(20px, 4.2vw, 68px); padding-left: 14px; border-left: 1px solid var(--line); }
.plate-tr { top: calc(var(--nav-h) + 28px); right: clamp(20px, 4.2vw, 68px); text-align: right; padding-right: 14px; border-right: 1px solid var(--line); }

/* ---------- hero copy ---------- */
.hero-copy {
  --fade: 1; --shift: 0px;
  position: absolute; z-index: 4; left: 52%; top: 50%; width: min(42%, 610px);
  transform: translateY(calc(-50% + var(--shift)));
  opacity: var(--fade);
  will-change: opacity, transform;
}
.hero-copy.is-off, .chapter-ui.is-off { pointer-events: none; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font: 400 10.5px var(--mono); letter-spacing: .17em; color: var(--muted); }
.eyebrow-rule { width: 34px; height: 1px; background: var(--ink); display: inline-block; }
.hero-copy h1 {
  margin: 0; font-size: clamp(64px, 7.6vw, 122px); line-height: .86;
  letter-spacing: -.075em; font-weight: 800;
}
.brand-dot { color: var(--accent); }
.hero-lede { margin: 26px 0 0; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.42; font-weight: 400; letter-spacing: -.02em; color: var(--ink-soft); }
.hero-price { margin-top: 30px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.hero-price span { font-weight: 400; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-meta { margin: 16px 0 0; font-size: 11.5px; color: var(--muted); }
.hero-bullets { list-style: none; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.hero-bullets li { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--ink-soft); }
.hero-bullets li::before { content: ""; position: absolute; left: 0; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.text-link { align-self: center; margin-left: 6px; font: 400 11.5px var(--mono); letter-spacing: .02em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
.text-link:hover { color: var(--accent-dark); border-color: var(--accent); }

/* ---------- chapter UI ---------- */
.chapter-ui {
  --fade: 0; --shift: 18px;
  position: absolute; z-index: 5; left: 50.5%; right: 3.6%; top: 50%;
  transform: translateY(calc(-50% + var(--shift)));
  opacity: var(--fade);
  will-change: opacity, transform;
}
.chapter-head { position: relative; }
.bracket {
  position: absolute; left: -22px; top: -14px; width: 118px; height: 74px;
  border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink); opacity: .55; pointer-events: none;
}
.part-label { margin: 0 0 12px; font: 500 10px var(--mono); letter-spacing: .15em; color: var(--accent-dark); }
.chapter-head h2 { margin: 0; font-size: clamp(30px, 3.1vw, 50px); line-height: 1.04; letter-spacing: -.055em; font-weight: 800; }
.part-tech { margin: 12px 0 0; font: 400 9.5px var(--mono); letter-spacing: .1em; color: var(--faint); }
.chapter-lede { margin: 14px 0 0; max-width: 520px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

.chapter-body { margin-top: clamp(18px, 2.6vh, 30px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.12fr); gap: clamp(16px, 2vw, 30px); align-items: center; }

/* circular viewfinder (the Nikon-filter idea: a photograph seen through glass) */
.viewfinder {
  position: relative; width: min(100%, 35vh); aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%; background: var(--rim);
  box-shadow: 0 26px 60px rgba(30, 28, 25, .16), inset 0 0 0 1px rgba(255,255,255,.08);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.1));
}
.vf-ring { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.vf-ring svg { width: 100%; height: 100%; }
.vf-dot { position: absolute; left: 21%; top: 14%; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.vf-glass {
  position: absolute; inset: 13%; border-radius: 50%; overflow: hidden; background: var(--glass);
  box-shadow: inset 0 0 40px rgba(0,0,0,.07);
}
.vf-block { position: absolute; left: 14%; top: 24%; width: 56%; height: 62%; border-radius: 18px 18px 26px 18px; background: var(--accent); transform: rotate(-7deg); }
.vf-glass img {
  position: absolute; left: 21%; top: 8%; width: 63%; height: 86%;
  object-fit: cover; object-position: top center; border-radius: 10px;
  transform: rotate(7deg); box-shadow: 0 14px 30px rgba(0,0,0,.28);
  border: 2px solid rgba(255,255,255,.5);
  transition: opacity .28s ease, transform .4s ease;
}
.vf-glass img.is-swapping { opacity: 0; transform: rotate(7deg) scale(.96); }
.vf-caption {
  position: absolute; left: 18%; right: 18%; bottom: 4.2%; text-align: center;
  font: 400 9px var(--mono); letter-spacing: .16em; color: rgba(255,255,255,.88); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* dashed folder card with the clipped corner */
.folder-card {
  position: relative; padding: clamp(20px, 2.1vw, 30px); min-height: clamp(240px, 34vh, 330px);
  background: transparent;
  display: flex; flex-direction: column;
}
.folder-shape { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.folder-shape path { fill: rgba(255,255,255,.55); stroke: #bcbcb5; stroke-width: 1.2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.folder-fold { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.card-eyebrow { position: relative; font: 400 9.5px var(--mono); letter-spacing: .15em; color: var(--muted); }
.card-title-row { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 12px; }
.card-title-row h3 { margin: 0; font-size: clamp(22px, 2.1vw, 31px); letter-spacing: -.045em; font-weight: 700; line-height: 1.1; }
.card-icon { width: 26px; height: 26px; color: var(--accent); flex: none; }
.card-icon svg { width: 100%; height: 100%; }
.card-text { position: relative; margin: 14px 0 18px; font-size: 12.5px; line-height: 1.62; color: var(--ink-soft); flex: 1; }
.card-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sub-tabs { display: flex; gap: 8px; }
.sub-tab {
  width: 34px; height: 34px; border-radius: 10px; border: 1.2px dashed #b9b9b1;
  background: transparent; color: var(--ink-soft); font: 500 12px var(--mono);
  cursor: pointer; transition: all .2s ease;
}
.sub-tab:hover { border-color: var(--accent); color: var(--accent-dark); }
.sub-tab[aria-selected="true"] { background: var(--accent); border: 1.2px solid var(--accent); color: #fff; }
.sub-arrows { display: flex; gap: 6px; }
.arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; transition: all .2s ease; }
.arrow:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.filmstrip { position: relative; display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip button { flex: none; width: 34px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #111; cursor: pointer; opacity: .55; transition: all .22s ease; }
.filmstrip button img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.filmstrip button:hover { opacity: .85; }
.filmstrip button.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.chapter-data[hidden] { display: none; }

/* floating CTA button, only in the CONTACTS chapter */
.final-cta-link {
  position: absolute; z-index: 6; left: 50%; bottom: 12%; transform: translate(-50%, 12px);
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px;
  border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease, background .2s ease;
  box-shadow: 0 14px 34px rgba(8,182,231,.28);
}
.final-cta-link.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.final-cta-link:hover { background: var(--accent-dark); }

/* ---------- stage footer / rail ---------- */
.stage-foot {
  position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; height: 58px;
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(20px, 4.2vw, 68px);
  border-top: 1px solid var(--line); background: rgba(245,245,242,.96);
}
.foot-left { display: flex; align-items: center; gap: 12px; font: 400 9.5px var(--mono); letter-spacing: .1em; color: var(--muted); }
.foot-rule { width: 22px; height: 1px; background: var(--ink); }
.foot-scroll { margin: 0 auto; font: 400 9.5px var(--mono); letter-spacing: .17em; color: var(--ink); opacity: var(--scroll-fade, 1); white-space: nowrap; }
.foot-scroll span { display: inline-block; margin-left: 6px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.part-rail { display: flex; align-items: center; gap: 4px; }
.rail-chip {
  width: 27px; height: 27px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; font: 400 10px var(--mono); color: var(--muted);
  cursor: pointer; transition: all .2s ease; position: relative;
}
.rail-chip:hover { color: var(--ink); border-color: var(--line); }
.rail-chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.rail-chip.is-past:not(.is-active) { color: var(--ink); }

/* ---------- SVG part labels ---------- */
.lbl-num { font: 500 13px var(--mono); letter-spacing: .06em; fill: var(--faint); }
.lbl-name { font: 500 11px var(--mono); letter-spacing: .11em; fill: var(--muted); }
.lbl-section { font: 700 20px var(--sans); letter-spacing: -.03em; fill: var(--ink); }
.lbl-tech { font: 400 9px var(--mono); letter-spacing: .09em; fill: var(--faint); }
.lbl-lead { stroke: #b6b5ae; stroke-width: 1; fill: none; }
.part-label-g { opacity: 1; cursor: pointer; }
.part-label-g.is-active .lbl-num, .part-label-g.is-active .lbl-name { fill: var(--accent-dark); }
.part-label-g.is-active .lbl-lead { stroke: var(--accent); stroke-width: 1.6; }
.part-label-g.is-active .lbl-dot { fill: var(--accent); }
.lbl-dot { fill: #c9c8c0; }
.callout { font: 400 10px var(--mono); letter-spacing: .13em; fill: var(--muted); }
.callout-line { stroke: #aaa9a1; stroke-width: 1; fill: none; }
.axis-line { stroke: #c6c5bd; stroke-width: 1; stroke-dasharray: 4 8; }
.axis-text { font: 400 9px var(--mono); letter-spacing: .12em; fill: var(--faint); }

/* ============================================================
   CONTACT SHEET
   ============================================================ */
.contact-sheet { position: relative; z-index: 2; background: var(--paper); padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 84px) clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); scroll-margin-top: var(--nav-h); }
.final-cta, .experience { scroll-margin-top: var(--nav-h); }
.sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; flex-wrap: wrap; margin-bottom: 74px; }
.sheet-head h2 { margin: 0; font-size: clamp(44px, 6vw, 86px); line-height: .95; letter-spacing: -.07em; font-weight: 800; }
.sheet-intro { max-width: 420px; margin: 0 0 6px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.sheet-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px clamp(40px, 6vw, 110px); }
.sheet-group { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.sheet-group h3 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 19px; letter-spacing: -.035em; font-weight: 700; }
.sheet-group h3 > span { font: 500 11px var(--mono); color: var(--accent-dark); letter-spacing: .08em; }
.sheet-group h3 em { margin-left: auto; font: 400 9px var(--mono); font-style: normal; letter-spacing: .1em; color: var(--faint); }
.sheet-cards { display: flex; flex-wrap: wrap; gap: 18px; }
.sheet-card { width: clamp(112px, 10.5vw, 148px); padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.sheet-frame { display: block; width: 100%; aspect-ratio: 540 / 1166; overflow: hidden; border-radius: 10px; border: 1px solid #cdccc5; background: #101010; transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.sheet-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sheet-card:hover .sheet-frame { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 14px 28px rgba(0,0,0,.14); }
.sheet-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 10px; }
.sheet-meta strong { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.sheet-meta em { font: 400 9px var(--mono); font-style: normal; color: var(--faint); white-space: nowrap; }

/* ---------- final CTA ---------- */
.final-cta { position: relative; z-index: 2; background: #171715; color: #f6f6f3; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 22% 50%, rgba(8,182,231,.16), transparent 45%); }
.final-inner { position: relative; display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: clamp(30px, 6vw, 100px); padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 84px); }
.final-lens { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; border: 14px solid #35342f; display: grid; place-items: center; animation: slowspin 48s linear infinite; box-shadow: 0 0 0 1px rgba(255,255,255,.08), inset 0 0 60px rgba(0,0,0,.6); }
.final-lens span { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); }
.final-lens span:nth-child(1) { inset: 8%; }
.final-lens span:nth-child(2) { inset: 20%; border-style: solid; border-color: rgba(255,255,255,.14); }
.final-lens span:nth-child(3) { inset: 34%; background: radial-gradient(circle at 35% 30%, rgba(8,182,231,.55), #101010 70%); border: none; box-shadow: inset 0 0 30px rgba(0,0,0,.8); }
.final-lens span:nth-child(4) { inset: 46%; border: 1px solid rgba(255,255,255,.25); }
@keyframes slowspin { to { transform: rotate(360deg); } }
.final-copy .eyebrow { color: #9b9b93; }
.final-copy .eyebrow-rule { background: #f6f6f3; }
.final-copy h2 { margin: 0; font-size: clamp(44px, 5.6vw, 88px); line-height: .95; letter-spacing: -.07em; font-weight: 800; }
.final-copy > p:not(.eyebrow):not(.hero-meta) { max-width: 480px; font-size: 15px; line-height: 1.6; color: #b9b9b1; }
.final-copy .btn:not(.btn-accent) { border-color: rgba(255,255,255,.4); color: #fff; }
.final-copy .btn:not(.btn-accent):hover { background: #fff; color: #171715; }
.final-copy .hero-meta { color: #8b8b83; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px clamp(20px, 5vw, 84px); background: #171715; color: #a6a69e; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); }
.site-footer a { font-size: 12px; transition: color .2s ease; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; font: 400 10.5px var(--mono); letter-spacing: .06em; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(16,16,15,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { display: flex; gap: 20px; font: 400 11px var(--mono); letter-spacing: .1em; color: #d9d9d3; }
.lightbox figcaption span:last-child { color: #8b8b83; }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: #fff; color: #171715; }

/* Horizontal chapter track (mobile only) — true horizontal scroll */
.chapter-track {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1250px) {
  .hero-copy { left: 51%; width: 45%; }
  .chapter-ui { left: 49%; right: 2.5%; }
  .chapter-lede { font-size: 12.5px; }
  .card-text { font-size: 11.8px; }
  .viewfinder { width: min(100%, 30vh); }
  .part-label-g .lbl-section { font-size: 18px; }
}

@media (max-width: 1000px) {
  :root { --nav-h: 58px; }
  .nav-links { display: none; }
  .nav-spec { display: none; }
  .hero-copy { left: 50%; width: 46%; }
  .hero-copy h1 { font-size: clamp(54px, 8vw, 88px); }
  .hero-bullets { display: none; }
  .chapter-ui { left: 48%; right: 2.5%; }
  .chapter-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
  .chapter-body { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; }
  .folder-card { padding: 18px; }
  .bracket { display: none; }
  .sheet-groups { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .stage-foot { height: 48px; padding: 0 18px; gap: 10px; }
  .foot-left { display: none; }
  .foot-scroll { margin: 0 auto 0 0; font-size: 8.5px; letter-spacing: .1em; }
  .part-rail { gap: 2px; }
  .rail-chip { width: 18px; height: 22px; font-size: 0; border-radius: 4px; }
  .rail-chip::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
  .rail-chip.is-active::after { width: 7px; height: 7px; background: #fff; }
  .plate-mark { display: none; }

  .hero-copy {
    left: 6%; right: 6%; top: auto; bottom: 16%; width: auto;
    transform: translateY(var(--shift)); text-align: left;
  }
  .hero-copy .eyebrow { margin-bottom: 16px; font-size: 9px; }
  .hero-copy h1 { font-size: clamp(56px, 15vw, 84px); }
  .hero-lede { margin-top: 14px; font-size: clamp(15px, 4vw, 19px); }
  .hero-lede br { display: none; }
  .hero-price { margin-top: 16px; font-size: 13px; }
  .hero-actions { margin-top: 16px; gap: 8px; }
  .hero-actions .btn { min-height: 42px; padding: 0 18px; font-size: 12px; }
  .hero-meta { font-size: 10px; margin-top: 12px; }

  .chapter-ui {
    left: 5%; right: 5%; top: auto; bottom: 7%; transform: translateY(var(--shift));
  }
  .chapter-head h2 { font-size: clamp(25px, 7vw, 34px); }
  .part-label { margin-bottom: 7px; font-size: 8.5px; }
  .part-tech { margin-top: 7px; font-size: 8px; }
  .chapter-lede { margin-top: 8px; font-size: 11.5px; line-height: 1.45; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .chapter-body { margin-top: 12px; grid-template-columns: 1fr; }
  .viewfinder { display: none; }
  .folder-card { min-height: 0; padding: 16px 18px 14px; }
  .card-title-row h3 { font-size: 21px; }
  .card-text { margin: 9px 0 12px; font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .card-eyebrow { font-size: 8.5px; }
  .sub-tab { width: 30px; height: 30px; }
  .filmstrip { margin-top: 12px; gap: 7px; }
  .filmstrip button { width: 40px; height: 84px; }
  .filmstrip button.is-active { width: 52px; height: 110px; }

  .final-cta-link { bottom: 11%; padding: 12px 24px; font-size: 12px; }
  .final-inner { grid-template-columns: 1fr; }
  .final-lens { width: min(60%, 240px); }
  .contact-sheet { padding-top: 70px; }
  .sheet-head { margin-bottom: 46px; }
  .sheet-cards { gap: 12px; }
  .sheet-card { width: clamp(88px, 26vw, 120px); }
  .sheet-meta strong { font-size: 10.5px; }
  .site-footer { padding: 24px 20px; }
  .site-footer nav { gap: 12px 18px; }

  /* Horizontal chapter carousel on mobile — true swipe scroll */
  .chapter-ui { display: none !important; }
  .chapter-track {
    display: flex;
    position: absolute;
    left: 0; top: 42%; right: 0; bottom: 44px;
    z-index: 5;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    will-change: opacity;
  }
  .chapter-track::-webkit-scrollbar { display: none; }
  .chapter-slide {
    width: 100vw;
    flex: none;
    padding: 0 5% 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    scroll-snap-align: center;
    opacity: .2;
    transition: opacity .3s ease;
  }
  .chapter-slide.is-active { opacity: 1; }
  .chapter-slide .chapter-head { margin-bottom: 8px; }
  .chapter-slide h2 {
    margin: 0;
    font-size: clamp(20px, 5.8vw, 28px);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 900;
    text-transform: uppercase;
  }
  .chapter-slide .chapter-lede {
    margin: 4px 0 0;
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 300;
    color: var(--muted);
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .chapter-slide .folder-card {
    min-height: 0;
    padding: 11px 14px 10px;
    margin: 0;
  }
  .chapter-slide .card-title-row h3 { font-size: 16px; }
  .chapter-slide .card-text {
    margin: 6px 0 8px;
    font-size: 10.5px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .chapter-slide .card-bottom { margin-top: 2px; }
  .chapter-slide .sub-tab { width: 26px; height: 26px; font-size: 11px; }
  .chapter-slide .filmstrip { margin-top: 8px; gap: 5px; }
  .chapter-slide .filmstrip button { width: 30px; height: 62px; }
  .chapter-slide .filmstrip button.is-active { width: 38px; height: 78px; }
  .final-cta-link { bottom: 52%; }
}

@media (max-width: 430px) {
  .hero-copy h1 { font-size: 58px; }
  .hero-meta { font-size: 9.5px; }
  .hero-actions .btn { padding: 0 14px; font-size: 11.5px; }
  .chapter-lede { -webkit-line-clamp: 2; }
  .card-text { -webkit-line-clamp: 4; }
}

@media (max-height: 720px) and (min-width: 861px) {
  .hero-bullets { display: none; }
  .hero-price { margin-top: 18px; }
  .hero-copy .eyebrow { margin-bottom: 16px; }
  .chapter-lede { display: none; }
  .chapter-body { margin-top: 12px; }
  .folder-card { min-height: 220px; }
}

/* shared shell for the download / legal pages */
.simple-page { padding-top: calc(var(--nav-h) + 34px) !important; }
#install { scroll-margin-top: calc(var(--nav-h) + 20px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* ============================================================
   TYPOGRAPHY + ICON REFINEMENT
   SpaceX-style hierarchy: CAPS heavy titles, light body copy.
   ============================================================ */
.fa-solid.fa-chevron-right {
  display: inline-block; flex: none;
  width: .62em; height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fa-solid.fa-chevron-right.flip { transform: rotate(180deg); }
.fa-solid.fa-chevron-right.down { transform: rotate(90deg); }

.brand { font-size: 17px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.nav-links a { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.hero-copy h1 { text-transform: uppercase; font-weight: 900; letter-spacing: -.045em; }
.hero-lede { font-weight: 300; color: var(--ink-soft); }
.hero-price { font-weight: 500; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.text-link .fa-chevron-right { font-size: 11px; }

.chapter-head h2 { text-transform: uppercase; font-weight: 900; letter-spacing: -.025em; }
.chapter-lede { font-weight: 300; color: var(--muted); }
.card-title-row h3 { font-weight: 700; text-transform: uppercase; letter-spacing: -.015em; }
.card-text { font-weight: 300; color: var(--ink-soft); }
.vf-caption { font-weight: 500; letter-spacing: .2em; }

.sheet-head h2 { text-transform: uppercase; font-weight: 900; letter-spacing: -.045em; }
.sheet-intro { font-weight: 300; color: var(--muted); }
.sheet-group h3 { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sheet-meta strong { font-weight: 400; color: var(--ink-soft); }
.final-copy h2 { text-transform: uppercase; font-weight: 900; letter-spacing: -.045em; }
.final-copy > p:not(.eyebrow):not(.hero-meta) { font-weight: 300; color: #c3c3bb; }

/* the exploded lens carries one pointing label, nothing else */
.lbl-section { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }

/* minimal scroll cue + progress dots */
.foot-scroll { margin-right: auto; font-size: 13px; color: var(--muted); opacity: var(--scroll-fade, 1); }
.foot-scroll .fa-chevron-right { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: rotate(90deg) translateY(0); } 50% { transform: rotate(90deg) translateY(4px); } }
.rail-chip {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: #cdccc5; font-size: 0; color: transparent; position: relative;
  transition: transform .2s ease, background .2s ease;
}
.rail-chip::after { display: none !important; }
.rail-chip:hover { background: var(--ink); transform: scale(1.2); }
.rail-chip.is-active { background: var(--accent); transform: scale(1.45); }
.rail-chip.is-past:not(.is-active) { background: #9b9a92; }
.arrow { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.arrow .fa-chevron-right { font-size: 11px; }
.final-cta-link .fa-chevron-right { font-size: 12px; }
.lightbox figcaption { font-family: var(--sans); font-weight: 300; letter-spacing: .04em; }

/* no top bar on phones: the hero and the final CTA carry the download action */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .contact-sheet, .final-cta, .experience { scroll-margin-top: 0; }
  .simple-page { padding-top: 26px !important; }
  .foot-scroll { margin: 0 auto 0 0; font-size: 12px; }
  .rail-chip { width: 9px; height: 9px; border-radius: 50%; }
  .hero-copy { bottom: 20%; }
}
@media (max-height: 720px) and (min-width: 861px) {
  .hero-copy .hero-price { margin-top: 18px; }
}
