/* OFFSET site. Type and color follow the app: SF system faces, SF Mono
   instrument labels, near-black surfaces and the #FFCC00 selection yellow. */
:root {
  --bg: #030303;
  --panel: #090909;
  --ink: #f7f4ed;
  --muted: rgba(247, 244, 237, 0.62);
  --line: rgba(247, 244, 237, 0.22);
  --accent: #ffcc00;
  --on-accent: #030303;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(14px, 1.8vw, 28px);
  --radius: clamp(20px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Frame ------------------------------------------------------------------ */
.frame { position: relative; height: 100vh; height: 100svh; padding: clamp(8px, 1.1vw, 16px); }
.hero {
  position: relative;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
}

.feed { position: absolute; inset: 0; z-index: -1; }
.feed-canvas { width: 100%; height: 100%; display: block; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.feed.is-blurred .feed-canvas { filter: blur(20px); }
.feed.is-scrubbing .feed-canvas { filter: blur(20px); opacity: .6; }
.feed-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.no-webgl .feed-video { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.no-webgl .feed-canvas { display: none; }
.feed-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,3,3,.55) 0%, rgba(3,3,3,0) 22%),
    linear-gradient(0deg, rgba(3,3,3,.6) 0%, rgba(3,3,3,0) 38%);
  pointer-events: none;
}

/* Camera guides: rule of thirds plus corner diagonals. */
.guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.guides line {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 0;
}
.guides line { transform-origin: center; transition: opacity .9s var(--ease); }
.is-loading .guides line { opacity: 0; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: absolute; inset: var(--gutter) var(--gutter) auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 7;
}
.nav { display: flex; gap: clamp(6px, .8vw, 12px); }
.pill {
  --h: clamp(32px, 2.5vw, 40px);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h);
  min-width: clamp(88px, 8.5vw, 140px);
  padding: 0 16px;
  border: 1px solid rgba(247, 244, 237, .85);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: clamp(10px, .72vw, 12px);
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pill-track { position: relative; display: block; height: 1.2em; line-height: 1.2em; overflow: hidden; }
.pill-track > span { display: block; transition: transform .45s var(--ease); }
.pill:hover .pill-track > span, .pill:focus-visible .pill-track > span { transform: translateY(-100%); }
.pill:hover { background: var(--ink); color: var(--bg); }
.pill.current { border-color: var(--accent); }
.pill.current:hover { background: var(--accent); color: var(--on-accent); }
.pill-download { justify-self: end; }
.apple { width: 13px; height: 15px; fill: currentColor; flex: none; }
.menu-toggle { display: none; }

.monogram { display: block; justify-self: center; height: clamp(22px, 2vw, 32px); }
.monogram svg { height: 100%; width: auto; display: block; fill: var(--ink); transition: fill .3s var(--ease), transform .45s var(--ease); }
.monogram:hover svg, .monogram:focus-visible svg { fill: var(--accent); transform: skewX(-8deg); }

/* Play cursor ------------------------------------------------------------ */
.play-button {
  position: absolute; left: 0; top: 0;
  width: 0; height: 0;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}
.play-button .ring { position: absolute; left: 0; top: 0; transition: opacity .3s var(--ease), scale .3s var(--ease); }
.play-button .ring > span {
  position: absolute; left: 0; top: 0;
  border: 1px solid rgba(247, 244, 237, .55);
  border-radius: 50%;
  translate: -50% -50%;
  will-change: transform;
}
.ring-1 > span { width: 70px; height: 70px; }
.ring-2 > span { width: 86px; height: 86px; border-color: rgba(247, 244, 237, .32) !important; }
.ring-3 > span { width: 102px; height: 102px; border-color: rgba(247, 244, 237, .18) !important; }
.play-label {
  position: absolute; left: 0; top: 0;
  translate: -50% -50%;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  width: 64px; text-align: center; line-height: 1.35;
  transition: opacity .3s var(--ease);
}
.play-button.is-hidden .ring, .play-button.is-hidden .play-label,
.play-button.is-over-control .ring, .play-button.is-over-control .play-label { opacity: 0; scale: .8; }
.is-loading .play-button { opacity: 0; }

/* Brand block ------------------------------------------------------------ */
/* Logo and label move as one block, centered on the frame's height. */
.brand { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; z-index: 3; pointer-events: none; }
.brand-logo { margin: 0; width: min(40vw, 720px); line-height: 0; }
.brand-logo svg { width: 100%; height: auto; fill: var(--ink); overflow: visible; }
.brand-logo svg .letter, .brand-logo svg .block, .intro-logo .letter, .intro-logo .block { transition: transform .8s var(--ease), opacity .5s var(--ease); }
.is-loading .brand-logo .letter { transform: translateY(110%); opacity: 0; }
.is-loading .brand-logo .block { transform: scale(0); opacity: 0; }
.label {
  margin: clamp(8px, .9vw, 14px) 0 0;
  font-family: var(--mono); font-size: clamp(10px, .7vw, 12px); letter-spacing: .12em; text-transform: uppercase;
}

/* Reveal rows slide up from a clipped line, as in the reference. */
.reveal { overflow: hidden; }
.reveal > span, .tagline > span { display: block; transition: transform .7s var(--ease); }
.is-loading .reveal > span { transform: translateY(105%); }

/* Navigator -------------------------------------------------------------- */
.navigator {
  position: absolute;
  right: var(--gutter);
  top: 58%;
  width: min(20vw, 300px);
  z-index: 5;
  font-family: var(--mono);
  text-transform: uppercase;
}
.slide-info { font-size: clamp(10px, .7vw, 12px); letter-spacing: .1em; margin-bottom: 10px; white-space: nowrap; }
.slide-kicker, .slide-divider { color: var(--muted); }
.slide-index { color: var(--accent); margin-right: .6em; }
.navigator-row { display: flex; align-items: center; gap: 14px; }
.progress { position: relative; flex: 1; height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(247, 244, 237, .22); }
.progress-bar { position: relative; height: 3px; width: 0%; border-radius: 3px; background: var(--ink); }
.progress-dot {
  position: absolute; right: -5px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--accent);
  transition: scale .3s var(--ease), opacity .3s var(--ease);
}
.progress.is-dragging .progress-dot, .progress:hover .progress-dot { scale: 1.5; }
.is-switching .progress-bar { opacity: 0; transition: opacity .3s; }
.arrows { display: flex; gap: 8px; }
.arrow svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: var(--accent); scale: 1.08; }
.is-switching .arrows { opacity: .2; pointer-events: none; }

/* Tagline ---------------------------------------------------------------- */
.tagline {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  margin: 0;
  font-family: var(--sans);
  font-weight: 900; font-style: italic;
  font-size: clamp(32px, 4vw, 78px);
  line-height: .86; letter-spacing: -.035em;
  text-transform: uppercase;
  z-index: 3; pointer-events: none;
}
.tagline > span { overflow: hidden; padding-right: .06em; }
.is-loading .tagline > span { transform: translateY(105%); }
.tagline > span:nth-child(2) { transition-delay: .08s; }

/* Filter ruler ---------------------------------------------------------- */
.ruler {
  position: absolute; left: 50%; bottom: var(--gutter);
  width: min(40vw, 680px); height: 34px;
  translate: -50% 0;
  z-index: 3;
  cursor: grab;
  touch-action: none;
  background: rgba(3, 3, 3, .28);
  border-radius: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ruler.is-dragging { cursor: grabbing; }
.ruler > .ruler-track { display: flex; gap: 14px; height: 100%; align-items: center; width: max-content; padding-top: 6px; will-change: transform; transition: none; }
.ruler-group { display: flex; align-items: center; gap: 3px; height: 100%; }
.ruler-group i { display: block; width: 1px; height: 6px; background: rgba(247, 244, 237, .45); }
.ruler-group i.mid { height: 9px; background: rgba(247, 244, 237, .7); }
.ruler-group i.major { height: 12px; background: var(--ink); }
.ruler-group i.accent { height: 12px; width: 2px; background: var(--accent); }
.ruler-group:hover i { background: var(--ink); }
.ruler-group:hover i.accent { background: var(--accent); }
.ruler-marker {
  position: absolute; left: 50%; top: 2px; z-index: 1;
  translate: -50% 0;
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 7px solid var(--ink);
  pointer-events: none;
}
.ruler { transition: opacity .8s var(--ease) .9s; }
.is-loading .ruler { opacity: 0; }

.site-footer {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  font-family: var(--mono); font-size: clamp(9px, .65vw, 11px); letter-spacing: .1em; text-transform: uppercase;
  z-index: 3;
}
.site-footer > span { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 14px; height: auto; fill: var(--ink); }

/* About + filter lab ---------------------------------------------------- */
.about { padding: clamp(96px, 16vh, 200px) clamp(8px, 1.1vw, 16px) clamp(8px, 1.1vw, 16px); }
.about-intro { max-width: 480px; margin: 0 auto clamp(56px, 10vh, 110px); padding: 0 var(--gutter); text-align: center; }
.about-logo { margin: 0 0 clamp(24px, 3vw, 40px); line-height: 0; }
.about-logo svg { width: clamp(170px, 17vw, 260px); height: auto; fill: var(--ink); }
.about-copy {
  margin: 0;
  font-family: var(--mono); font-size: clamp(11px, .8vw, 13px);
  line-height: 1.5; letter-spacing: .02em; text-transform: uppercase;
}
.lab {
  position: relative;
  height: clamp(640px, 92vh, 1000px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.lab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter .3s var(--ease); }
.lab.is-blurred .lab-canvas { filter: blur(20px); }
.lab-image { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.no-webgl .lab-image { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.no-webgl .lab-canvas, .no-webgl .lab-filters { display: none; }
.lab-filters {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 2.2vh, 26px);
  padding: 40px 16px;
}
.lab-filter {
  width: clamp(150px, 11vw, 176px); height: clamp(34px, 4.4vh, 42px);
  border: 1px solid rgba(247, 244, 237, .9);
  border-radius: 999px;
  font-family: var(--mono); font-size: clamp(11px, .8vw, 13px); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(3, 3, 3, .12);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lab-filter:hover { background: rgba(247, 244, 237, .18); }
.lab-filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lab-more { display: inline-flex; align-items: center; justify-content: center; border-style: dashed; border-color: var(--accent); color: var(--accent); }
.lab-more:hover { background: var(--accent); color: var(--on-accent); border-style: solid; }

/* Filter settings: the app's compact adjustment dock. */
.lab-settings {
  position: absolute; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px);
  width: min(340px, calc(100% - 32px));
  padding: 14px;
  border-radius: 22px;
  background: rgba(9, 9, 9, .82);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(247, 244, 237, .08);
  font-family: var(--mono);
  z-index: 2;
}
.settings-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 12px; }
.settings-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.settings-divider { color: var(--muted); }
.settings-filter { color: var(--accent); }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.settings-tab {
  height: 30px; padding: 0 11px;
  border-radius: 999px;
  background: #141414; color: var(--muted);
  font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.settings-tab:hover { color: var(--ink); }
.settings-tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.settings-tab.is-action { border: 1px solid rgba(247, 244, 237, .2); background: transparent; }
.settings-tab.is-action:active { background: var(--accent); color: var(--on-accent); }
.settings-control { min-height: 56px; padding: 0 4px; }
.setting-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.setting-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.setting-value { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.setting-range {
  --fill: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer;
}
.setting-range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--fill), rgba(247, 244, 237, .2) var(--fill)); }
.setting-range::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(247, 244, 237, .2); }
.setting-range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--ink); }
.setting-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: var(--accent); border: 0; }
.setting-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 0; }
.setting-swatches { display: flex; align-items: center; gap: 10px; }
.swatch { position: relative; flex: 1; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; cursor: pointer; }
.swatch input { grid-row: span 2; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(247, 244, 237, .3); border-radius: 50%; background: none; cursor: pointer; }
.swatch input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.swatch input::-moz-color-swatch { border: 0; border-radius: 50%; }
.swatch span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.swatch code { font-size: 12px; }
.swap { width: 32px; height: 32px; border-radius: 50%; background: #141414; font-size: 14px; }
.swap:hover { background: var(--accent); color: var(--on-accent); }
.setting-toggle { min-width: 64px; height: 30px; border-radius: 999px; background: #141414; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.setting-toggle[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.setting-text {
  width: 100%; height: 36px; padding: 0 12px;
  border-radius: 10px; border: 1px solid rgba(247, 244, 237, .2);
  background: #141414; color: var(--ink);
  font: 14px var(--mono); letter-spacing: .12em;
}
.setting-text:focus { outline: none; border-color: var(--accent); }

.scroll-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.scroll-reveal.in-view { opacity: 1; transform: none; }

/* Filter gallery --------------------------------------------------------- */
.gallery { padding: clamp(96px, 16vh, 200px) 0 clamp(64px, 10vh, 120px); }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 calc(var(--gutter) + clamp(8px, 1.1vw, 16px)); margin-bottom: clamp(32px, 5vh, 60px);
}
.gallery-title {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(48px, 5vw, 92px); line-height: .9; letter-spacing: -.035em;
}
.gallery-copy {
  margin: 0; max-width: 470px;
  font-family: var(--mono); font-size: clamp(11px, .8vw, 13px);
  line-height: 1.5; letter-spacing: .02em; text-transform: uppercase;
}
.gallery-nav { display: flex; align-items: center; gap: 8px; font-family: var(--mono); }
.gallery-count { font-size: 11px; letter-spacing: .1em; margin-right: 10px; font-variant-numeric: tabular-nums; }
.gallery-arrow, .arrow {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(247, 244, 237, .9); color: var(--bg);
  transition: background-color .3s var(--ease), scale .3s var(--ease), opacity .3s;
}
.gallery-arrow svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow:hover { background: var(--accent); scale: 1.08; }
.gallery-arrow:disabled { opacity: .25; pointer-events: none; }
.gallery-track {
  display: flex; gap: clamp(12px, 1.4vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(8px, 1.1vw, 16px);
  padding: 0 clamp(8px, 1.1vw, 16px);
  scrollbar-width: none;
  cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track.is-dragging .shot { pointer-events: none; }
.shot {
  position: relative; flex: 0 0 clamp(250px, 24vw, 372px);
  aspect-ratio: 372 / 600;
  margin: 0;
  border-radius: clamp(24px, 2.4vw, 38px);
  overflow: hidden;
  background: var(--panel);
  scroll-snap-align: start;
  user-select: none; -webkit-user-select: none;
}
.shot img, .shot video, .shot canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.shot canvas { transition: opacity .45s var(--ease); }
.shot video { object-position: 50% 100%; } /* keeps the clip's own OFFSET mark in frame */
.shot:hover canvas, .shot.show-original canvas { opacity: 0; }
.shot-label {
  position: absolute; top: clamp(12px, 1.2vw, 16px); right: clamp(12px, 1.2vw, 16px);
  min-width: clamp(120px, 10vw, 156px); height: clamp(34px, 2.8vw, 42px);
  display: grid; place-items: center; padding: 0 18px;
  border: 1px solid rgba(247, 244, 237, .9); border-radius: 999px;
  background: rgba(3, 3, 3, .42);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  font-family: var(--mono); font-size: clamp(11px, .85vw, 14px); letter-spacing: .04em; text-transform: uppercase;
  pointer-events: none;
}
.shot-logo { position: absolute; right: clamp(14px, 1.4vw, 20px); bottom: clamp(14px, 1.4vw, 20px); width: clamp(56px, 5vw, 76px); fill: var(--ink); pointer-events: none; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }

/* Intro ------------------------------------------------------------------ */
.intro {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: var(--bg);
}
.intro-logo { width: min(46vw, 560px); fill: var(--ink); overflow: visible; }
.intro .block { transform-box: fill-box; transform-origin: center; }
.intro.is-assembling .letter, .intro.is-assembling .block { transform: none; opacity: 1; }
.intro .letter { transform: translateY(40%); opacity: 0; }
.intro .block { transform: scale(0); opacity: 0; }
.intro.is-gone { display: none; }

.end-links { display: flex; gap: clamp(14px, 1.6vw, 26px); }
.legal-body { max-width: 760px; padding: 0 var(--gutter); }
.legal-body h2 { margin: clamp(36px, 5vh, 56px) 0 12px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: -.02em; }
.legal-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: rgba(247, 244, 237, .78); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-date { font-family: var(--mono); font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; }

/* ASCII page transition ---------------------------------------------------- */
html.ascii-in::after { content: ""; position: fixed; inset: 0; z-index: 100; background: #030303; }
.ascii-transition { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 101; pointer-events: none; }

/* Mobile ----------------------------------------------------------------- */
/* Interface feature grid ------------------------------------------------- */
.features { padding: clamp(64px, 12vh, 160px) clamp(8px, 1.1vw, 16px) clamp(96px, 14vh, 180px); }
.features-head { padding: 0 var(--gutter); margin-bottom: clamp(32px, 5vh, 60px); }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.feature {
  display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 12px;
  padding: 12px 12px clamp(20px, 2vw, 28px);
  border-radius: clamp(22px, 2.2vw, 32px);
  background: var(--panel);
  border: 1px solid rgba(247, 244, 237, .06);
}
.feature-visual {
  grid-column: 1 / -1;
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: clamp(18px, 1.8vw, 26px);
  border-radius: clamp(14px, 1.5vw, 22px);
  background: #0d0d0d;
}
.feature-num { padding-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); line-height: 1.9; }
.feature-title { margin: 0 0 10px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(22px, 1.9vw, 30px); line-height: .95; letter-spacing: -.02em; }
.feature-copy { grid-column: 2; margin: 0; padding-right: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.fv-pill {
  position: absolute; top: 12px; right: 12px;
  padding: 7px 14px; border: 1px solid rgba(247, 244, 237, .9); border-radius: 999px;
  background: rgba(3, 3, 3, .42);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}

/* 01 live filters */
.fv-filter-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter .3s var(--ease); }
.fv-filter-canvas.is-switching { filter: blur(14px); }
.fv-swipe { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(247, 244, 237, .8); animation: fv-nudge 2.4s var(--ease) infinite; }
@keyframes fv-nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-10px); } 60% { transform: translateX(8px); } }

/* 02 tick-scale console (mirrors the app's EXP / CONTRAST dock) */
.fv-console { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 56px); background: #0a0a0a; }
.fv-readouts { display: grid; font-family: var(--mono); }
.fv-readout-label { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fv-readout-label.is-active { color: var(--accent); }
.fv-readout-label i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.fv-readout-value { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.fv-readout-value.is-muted { color: var(--muted); }
.fv-readout-rule { height: 1px; margin: 12px 0; background: rgba(247, 244, 237, .14); }
.fv-scale { position: relative; width: 26px; height: 78%; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.fv-scale-track {
  position: absolute; left: 0; right: 0; top: -50%; height: 200%;
  background:
    repeating-linear-gradient(180deg, rgba(247, 244, 237, .9) 0 2px, transparent 2px 40px) left / 22px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(247, 244, 237, .5) 0 1px, transparent 1px 8px) left / 13px 100% no-repeat;
  will-change: transform;
}
.fv-scale-needle { position: absolute; left: 0; top: 50%; width: 26px; height: 3px; margin-top: -1.5px; background: var(--accent); border-radius: 2px; }

/* 03 capture */
.fv-capture { display: grid; place-items: center; align-content: center; gap: 16px; background: #0a0a0a; }
.fv-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.fv-flash.is-on { animation: fv-flash .5s ease-out; }
@keyframes fv-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.fv-rec { position: absolute; top: 14px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 59, 48, .14); font-family: var(--mono); font-size: 12px; color: #ff3b30; opacity: 0; transition: opacity .3s; }
.fv-rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: fv-blink 1s steps(2) infinite; }
@keyframes fv-blink { 50% { opacity: 0; } }
.fv-capture.is-recording .fv-rec { opacity: 1; }
.fv-shutter { width: clamp(72px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(247, 244, 237, .85); display: grid; place-items: center; }
.fv-shutter > span { width: 82%; height: 82%; border-radius: 50%; background: var(--ink); transition: width .35s var(--ease), height .35s var(--ease), border-radius .35s var(--ease), background-color .35s var(--ease), scale .15s; }
.fv-shutter.is-pressed > span { scale: .9; }
.fv-capture.is-video .fv-shutter > span { background: #ff3b30; }
.fv-capture.is-recording .fv-shutter > span { width: 40%; height: 40%; border-radius: 8px; }
.fv-modes { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #161616; }
.fv-mode { width: 44px; height: 30px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); transition: background-color .3s var(--ease), color .3s var(--ease); }
.fv-mode svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fv-mode.is-on { background: var(--ink); color: var(--bg); }

/* 04 time cube */
.fv-cube { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* 05 shake palettes */
.fv-shake { display: grid; place-items: center; background: #0a0a0a; --ui: #030303; --ui-ink: #f7f4ed; }
.fv-phone {
  position: relative; width: 27%; aspect-ratio: 9 / 19; margin-bottom: 14px; border-radius: 18px; padding: 8px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 7px; justify-items: center;
  background: var(--ui); border: 1px solid rgba(247, 244, 237, .18);
  transition: background-color .35s var(--ease);
}
.fv-phone.is-shaking { animation: fv-shake .55s ease-in-out; }
@keyframes fv-shake { 0%, 100% { rotate: 0deg; } 20% { rotate: -9deg; } 40% { rotate: 8deg; } 60% { rotate: -7deg; } 80% { rotate: 5deg; } }
.fv-phone-pill { padding: 3px 7px; border-radius: 999px; background: var(--ui-ink); color: var(--ui); font-family: var(--mono); font-size: 7px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: background-color .35s, color .35s; }
.fv-phone-feed { width: 100%; border-radius: 10px; background: url("../media/offset-forest.jpg") center / cover; }
.fv-phone-shutter { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ui-ink); box-shadow: inset 0 0 0 3px var(--ui), inset 0 0 0 13px var(--ui-ink); transition: border-color .35s; }
.fv-swatches { position: absolute; bottom: 12px; display: flex; gap: 6px; }
.fv-swatches i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(247, 244, 237, .35); opacity: .45; transition: opacity .3s, scale .3s; }
.fv-swatches i:nth-child(1) { background: #001ae0; }
.fv-swatches i:nth-child(2) { background: #f65b18; }
.fv-swatches i:nth-child(3) { background: #d518f6; }
.fv-swatches i:nth-child(4) { background: #ffffff; }
.fv-swatches i:nth-child(5) { background: #0b0b0b; }
.fv-swatches i.is-on { opacity: 1; scale: 1.3; }

/* 06 private */
.fv-terminal { background: #07110b; padding: clamp(16px, 2vw, 26px); }
.fv-terminal-text { margin: 0; font-family: var(--mono); font-size: clamp(11px, .9vw, 13px); line-height: 1.9; color: #b4ff83; white-space: pre-wrap; }
.fv-terminal-text::after { content: "▍"; animation: fv-blink 1s steps(2) infinite; }

@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* Download footer -------------------------------------------------------- */
.site-end { position: relative; height: max(100svh, 640px); overflow: hidden; background: #000; isolation: isolate; }
.end-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -1; }
.end-bg { filter: brightness(.82); }
/* A band of OFFSET logos drifting behind the phone. */
.end-marquee { position: absolute; left: 0; right: 0; top: 42%; translate: 0 -62%; z-index: 0; overflow: hidden; }
.end-marquee-track { display: flex; gap: 3.2vw; width: max-content; animation: end-marquee 48s linear infinite; }
.end-marquee-track svg { width: 37vw; height: auto; flex: none; fill: var(--ink); opacity: .85; }
@keyframes end-marquee { to { transform: translateX(calc(-50% - 1.6vw)); } }
/* Shade between the phone and the call to action keeps the text legible. */
.end-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .72) 22%, rgba(0, 0, 0, .25) 48%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .3) 100%); }
/* Hand photo and its live screen share one box in the photo's 1024 × 1536 space. */
.end-device {
  position: absolute; z-index: 1; left: 50%; top: calc(18% - 2vw);
  width: clamp(300px, 36vw, 760px); aspect-ratio: 1024 / 1536;
  translate: -47% 0; pointer-events: none;
}
.end-phone, .end-screen { position: absolute; inset: 0; width: 100%; height: 100%; }
.end-screen { transition: filter .3s var(--ease); }
.end-screen.is-switching { filter: blur(6px); }
.end-cta { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--gutter) + clamp(56px, 8vh, 96px)); translate: -50% 0; display: grid; justify-items: center; gap: clamp(18px, 2.2vw, 34px); text-align: center; }
.end-title { margin: 0; white-space: nowrap; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 52px); line-height: .95; letter-spacing: -.035em; }
.end-badge { display: block; border-radius: 10px; transition: scale .3s var(--ease); }
.end-badge img { display: block; height: clamp(40px, 3.4vw, 62px); width: auto; }
.end-badge:hover { scale: 1.04; }
.end-bar {
  position: absolute; z-index: 3; left: calc(var(--gutter) + clamp(8px, 1.1vw, 16px)); right: calc(var(--gutter) + clamp(8px, 1.1vw, 16px)); bottom: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: clamp(10px, .7vw, 12px); letter-spacing: .08em; text-transform: uppercase;
}
.end-copy { display: flex; align-items: center; gap: 12px; }
.end-copy .footer-mark { width: 16px; }
.end-link { text-decoration: underline; text-underline-offset: 3px; }
.end-link:hover { color: var(--accent); }

/* Updates page ----------------------------------------------------------- */
body.page { overflow: visible; }
.page-header {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--gutter) calc(var(--gutter) + clamp(8px, 1.1vw, 16px));
  background: linear-gradient(180deg, rgba(3, 3, 3, .92) 60%, rgba(3, 3, 3, 0));
}
.updates { padding: clamp(48px, 9vh, 120px) clamp(8px, 1.1vw, 16px) clamp(64px, 10vh, 120px); }
.updates h1.gallery-title { font-size: clamp(56px, 7vw, 120px); }
.release-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin-bottom: 16px; border-bottom: 1px solid rgba(247, 244, 237, .12); padding-bottom: 14px; }
.release-version { margin: 0; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 36px); letter-spacing: -.02em; }
.release-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.update-card { padding-top: 16px; min-height: 210px; }
.update-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin: 0 8px 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.update-tag { padding: 5px 10px; border-radius: 999px; background: #141414; color: var(--muted); }
.update-version { color: var(--accent); }
.suggest { margin-top: clamp(10px, 1.2vw, 18px); }
.suggest-card { border: 1px dashed rgba(255, 204, 0, .55); padding: 22px 12px 18px; }
.suggest-card .feature-num { font-size: 18px; line-height: 1.2; }
.suggest-input {
  grid-column: 2; margin: 18px 8px 0 0; padding: 14px 16px; resize: vertical; min-height: 110px;
  border-radius: 16px; border: 1px solid rgba(247, 244, 237, .16); background: #0d0d0d; color: var(--ink);
  font: 13px/1.5 var(--mono);
}
.suggest-input:focus { outline: none; border-color: var(--accent); }
.suggest-row { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 8px 0 0; }
.suggest-note { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest-send { height: 40px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: scale .2s var(--ease), opacity .2s; }
.suggest-send:hover { scale: 1.04; }
.suggest-send:disabled { opacity: .35; pointer-events: none; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 calc(var(--gutter) + clamp(8px, 1.1vw, 16px)) var(--gutter); font-family: var(--mono); font-size: clamp(10px, .7vw, 12px); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .nav-left { display: none; }
  .menu-toggle { display: inline-flex; min-width: 0; justify-self: start; }
  .pill { min-width: 0; padding: 0 16px; }
  .pill-download .pill-track { display: none; }
  .pill-download { width: var(--h); padding: 0; }
  .brand-logo { width: min(78vw, 420px); }
  .navigator { left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(var(--gutter) + 96px); width: auto; }
  .tagline { font-size: clamp(30px, 9vw, 56px); bottom: calc(var(--gutter) + 22px); }
  .play-button { display: none; }
  .ruler { display: none; }
  .mobile-menu {
    position: absolute; inset: 0; z-index: 6;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: var(--gutter);
    background: rgba(3, 3, 3, .92);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { font-weight: 900; font-style: italic; font-size: clamp(36px, 11vw, 68px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
  .mobile-menu a[aria-current] { color: var(--accent); }
  .lab { height: auto; min-height: 640px; }
  .lab-filters { position: relative; inset: auto; min-height: 640px; gap: 10px; }
  .lab-settings { position: relative; right: auto; bottom: auto; width: auto; margin: 0 16px 16px; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .page-header { grid-template-columns: 1fr auto; }
  .page-header .nav { display: none; }
  .page-header .monogram { justify-self: start; }
  .release-head { flex-direction: column; gap: 6px; }
  .suggest-input, .suggest-row { grid-column: 1 / -1; margin-right: 0; }
  .suggest-row { flex-direction: column; align-items: stretch; }
  .site-end { height: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 64px 0 0; }
  .end-marquee, .end-device, .end-cta { position: relative; left: auto; right: auto; top: auto; bottom: auto; translate: none; }
  .end-marquee { align-self: stretch; }
  .end-marquee-track svg { width: 78vw; }
  .end-title { white-space: normal; font-size: clamp(28px, 9vw, 44px); }
  .end-cta { order: 1; margin-top: 28px; flex-direction: column; text-align: center; }
  .end-device { order: 2; width: min(78vw, 400px); margin: 28px 0 -16% 8vw; } /* arm runs off the bottom edge */
  .end-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .25) 70%, rgba(0, 0, 0, .7)); }
  .shot { flex-basis: 72vw; }
}
@media (max-width: 900px) and (max-height: 640px) {
  .tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .fv-swipe, .fv-rec i, .fv-terminal-text::after, .end-marquee-track { animation: none; }
}
