/* TK Retratos landing page
   Tokens follow the TK Software brand: charcoal, ivory, a single teal accent,
   Geist for text, Instrument Serif italic for one accent word per large heading. */

@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0f1012;
  --char: #131416;
  --char-2: #17181a;
  --char-3: #1d1e21;
  --line: rgba(243, 238, 229, 0.11);
  --line-2: rgba(243, 238, 229, 0.2);
  --ivory: #f3eee5;
  --ivory-2: #c8c2b8;   /* 10.4:1 on --char */
  --ivory-3: #958f86;   /* 5.8:1 on --char */
  --teal: #22d3c2;
  --teal-deep: #0e5a53;
  --on-teal: #151617;
  --safelight: #b5371f;
  --edge: #c99a5b;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-b: 1.0625rem;
  --fs-l: 1.25rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(2.125rem, 1.35rem + 3vw, 3.75rem);
  --fs-display: clamp(2.625rem, 1.5rem + 4.1vw, 5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 13vh, 168px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: var(--fs-b);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Film grain over everything, very faint. Composited once; never animated. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: url('../img/grain.png');
  opacity: 0.035;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--teal); color: var(--on-teal); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--teal); color: var(--on-teal); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.display {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 600;
  text-wrap: balance;
}
.display em, .h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  font-size: 1.12em;
  letter-spacing: -0.012em;
  line-height: 0.9;
  padding-right: 0.04em;
}

/* Buttons */
.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding-inline: 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--fs-s);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-sm { --h: 36px; padding-inline: 14px; font-size: 0.875rem; border-radius: 8px; }
.btn-lg { --h: 54px; padding-inline: 28px; font-size: 1.0625rem; border-radius: 12px; }
.btn-primary { background: var(--teal); color: var(--on-teal); box-shadow: 0 0 0 0 rgba(34, 211, 194, 0); }
.btn-primary:hover { background: #3fe0d0; box-shadow: 0 10px 40px -10px rgba(34, 211, 194, 0.55); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ivory); }
.btn-ghost:hover { border-color: rgba(243, 238, 229, 0.45); background: rgba(243, 238, 229, 0.04); }
.btn-text {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-size: var(--fs-xs); color: var(--ivory-3);
  text-decoration: underline; text-decoration-color: rgba(243, 238, 229, 0.25); text-underline-offset: 3px;
}
.btn-text:hover, .btn-text[aria-pressed='true'] { color: var(--ivory); text-decoration-color: var(--teal); }
[data-magnetic] { will-change: transform; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(15, 16, 18, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 21px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: 20px; }
.nav a, .link-login {
  font-size: var(--fs-s); color: var(--ivory-2); text-decoration: none; transition: color 0.2s;
}
.nav a:hover, .link-login:hover { color: var(--ivory); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }

/* Hero */
.hero { padding-block: clamp(28px, 6vh, 72px) clamp(72px, 10vh, 128px); position: relative; }
.hero::before {
  content: '';
  position: absolute;
  inset: -64px 0 auto 0;
  height: 900px;
  background: radial-gradient(60% 55% at 78% 40%, rgba(14, 90, 83, 0.32), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.875rem; color: var(--ivory-2);
  margin-bottom: 28px;
}
.status-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.hero-copy h1 { margin-bottom: 26px; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ivory-2); max-width: 31em; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 18px; font-size: 0.875rem; color: var(--ivory-3); }

.studio { margin: 0; position: relative; }
.stage {
  position: relative;
  aspect-ratio: 2000 / 1116;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(243, 238, 229, 0.08);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.stage-img, .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-canvas { opacity: 0; transition: opacity 0.5s; }
.stage.is-gl .stage-canvas { opacity: 1; }
.stage.is-gl .stage-img { visibility: hidden; }
.split { position: absolute; top: 0; bottom: 0; left: 0; width: 0; will-change: transform; }
.split-line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--ivory); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 18px rgba(0, 0, 0, 0.5); }
.split-knob {
  position: absolute; top: 50%; left: 0;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ivory); color: var(--on-teal);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  touch-action: none;
  cursor: grab;
  transition: transform 0.2s var(--ease);
}
.stage.is-dragging .split-knob { transform: scale(1.08); cursor: grabbing; }
.stage:has(.split-range:focus-visible) .split-knob { outline: 2px solid var(--teal); outline-offset: 3px; }
.split-range { position: absolute; opacity: 0; width: 1px; height: 1px; left: 50%; bottom: 0; pointer-events: none; }
.chip {
  position: absolute; top: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; line-height: 1.2;
  background: rgba(15, 16, 18, 0.66);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ivory);
  pointer-events: none;
  transition: opacity 0.25s;
}
.chip-original { left: 14px; }
.chip-original svg { color: var(--teal); }
.chip-edit { right: 14px; }
.chip.is-hidden { opacity: 0; }

.desk { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.controls {
  display: grid; grid-template-columns: 1fr; gap: 4px 24px; align-content: space-between;
  padding: 14px 18px 10px;
  background: var(--char-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ctl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ctl-head label { font-size: 0.875rem; color: var(--ivory-2); }
.ctl-note { font-size: 0.75rem; color: var(--ivory-3); margin-left: 4px; }
.ctl output { font-family: var(--mono); font-size: 0.8125rem; color: var(--ivory-3); font-variant-numeric: tabular-nums; }
.ctl.is-set output { color: var(--teal); }
.ctl-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }

/* Centre-zero sliders with a teal fill between zero and the value (the app's slider) */
.controls input[type='range'] {
  --a: 50%; --b: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 0;
  background: transparent; cursor: pointer;
}
.controls input[type='range']::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background:
    linear-gradient(90deg, transparent var(--a), var(--teal) var(--a), var(--teal) var(--b), transparent var(--b)),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(243, 238, 229, 0.5) calc(50% - 1px), rgba(243, 238, 229, 0.5) calc(50% + 1px), transparent calc(50% + 1px)),
    rgba(243, 238, 229, 0.16);
}
.controls input[type='range']::-moz-range-track {
  height: 3px; border-radius: 3px;
  background:
    linear-gradient(90deg, transparent var(--a), var(--teal) var(--a), var(--teal) var(--b), transparent var(--b)),
    rgba(243, 238, 229, 0.16);
}
.controls input.range-temp::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #5b8fd6, rgba(243, 238, 229, 0.25) 50%, #d9a24a);
}
.controls input.range-temp::-moz-range-track { background: linear-gradient(90deg, #5b8fd6, rgba(243, 238, 229, 0.25) 50%, #d9a24a); }
.controls input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%;
  background: var(--ivory); border: 3px solid var(--char-2);
  box-shadow: 0 0 0 1px rgba(243, 238, 229, 0.3);
  transition: transform 0.15s;
}
.controls input[type='range']::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ivory); border: 3px solid var(--char-2);
}
.controls input[type='range']:active::-webkit-slider-thumb { transform: scale(1.2); }
.controls input[type='range']:focus-visible { outline: none; }
.controls input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--teal); }
.controls input[type='range']:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--teal); }

.recipe {
  display: flex; flex-direction: column;
  padding: 12px 16px 12px;
  background: #0b0c0d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.recipe-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.75rem; color: var(--ivory-3);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.recipe-head [data-bytes] { color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.recipe-code {
  margin: 0; flex: 1;
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.6;
  color: var(--ivory-3);
  white-space: pre; overflow: hidden;
}
.recipe-code .k { color: var(--ivory-3); }
.recipe-code .s { color: #d6c3a0; }
.recipe-code .n { color: var(--ivory); transition: color 0.6s; }
.recipe-code .n.is-hot { color: var(--teal); transition: none; }
.recipe-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.75rem; color: var(--ivory-3); }
.tick {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(34, 211, 194, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.2' fill='none' stroke='%2322d3c2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.studio-caption {
  margin-top: 16px;
  font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.4;
  color: var(--ivory-3);
}

/* The negative: a print develops in the tray */
.negative { position: relative; background: var(--ink); }
.negative.is-pinned { height: 320vh; }
.negative-pin { position: relative; padding-block: var(--section); }
.negative.is-pinned .negative-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; padding-block: 0; overflow: hidden;
}
.negative-pin::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(55% 60% at 68% 52%, rgba(181, 55, 31, 0.3), rgba(181, 55, 31, 0.06) 55%, transparent 75%);
  opacity: var(--glow, 1);
  pointer-events: none;
}
.negative-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px); align-items: center;
}
.negative-copy h2 { margin-bottom: 26px; }
.negative-copy > p { color: var(--ivory-2); max-width: 34em; }
.facts { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.facts li {
  position: relative; padding-left: 26px; font-size: var(--fs-s); color: var(--ivory-2); max-width: 34em;
}
.facts li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 3px;
  border: 1.5px solid var(--teal);
}
.tray {
  position: relative;
  padding: clamp(14px, 3.2%, 34px);
  border-radius: 22px;
  background: linear-gradient(180deg, #121212, #0a0a0a);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.04), inset 0 -30px 60px rgba(0, 0, 0, 0.6), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.print {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  transform: rotate(-0.8deg);
}
.print-paper { position: absolute; inset: 0; background: #f3eee5; }
.dev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.safelight { position: absolute; inset: 0; background: #a5321b; mix-blend-mode: multiply; opacity: var(--safe, 0.9); }
.timer {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 18px; font-size: var(--fs-xs); color: var(--ivory-3);
}
.timer li { padding-top: 10px; border-top: 2px solid rgba(243, 238, 229, 0.12); transition: color 0.3s, border-color 0.3s; }
.timer li.is-done { color: var(--ivory-2); border-top-color: rgba(243, 238, 229, 0.4); }
.timer li.is-now { color: var(--ivory); border-top-color: var(--teal); }
.files {
  position: absolute; left: clamp(14px, 3.2%, 34px); right: clamp(14px, 3.2%, 34px); top: clamp(14px, 3.2%, 34px);
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px;
  opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.files.is-on { opacity: 1; transform: none; }
.file {
  font-size: var(--fs-xs); padding: 6px 11px; border-radius: 999px;
  background: rgba(15, 16, 18, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ivory-2);
}
.file b { color: var(--ivory); font-weight: 600; margin-right: 4px; }
.file-recipe b { color: var(--teal); }

/* Journey */
.journey { padding-block: var(--section); position: relative; }
.journey-title { max-width: 14em; margin-bottom: clamp(32px, 6vh, 72px); }
.journey-grid { display: grid; grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); gap: clamp(32px, 5vw, 96px); }
.journey-stage {
  position: sticky; top: calc(var(--header-h) + (100vh - var(--header-h)) / 2 - 33vh);
  height: 66vh; max-height: 640px;
  align-self: start;
}
.jl {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(28px) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.journey-stage[data-step='1'] .jl-window,
.journey-stage[data-step='2'] .jl-window,
.journey-stage[data-step='3'] .jl-window,
.journey-stage[data-step='4'] .jl-book,
.journey-stage[data-step='5'] .jl-ipad { opacity: 1; transform: none; }
.window {
  width: 100%;
  border-radius: 12px; overflow: hidden;
  background: #17181a;
  box-shadow: 0 0 0 1px rgba(243, 238, 229, 0.1), 0 60px 120px -50px rgba(0, 0, 0, 0.95);
}
.window-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding-inline: 12px; background: #1b1c1f; border-bottom: 1px solid rgba(0, 0, 0, 0.5); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34363a; }
.window-bar span { margin-left: auto; margin-right: auto; padding-right: 50px; font-size: 0.75rem; color: var(--ivory-3); }
.window-screen { position: relative; aspect-ratio: 1440 / 900; background: #131416; }
.ws { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity 0.6s var(--ease); }
.journey-stage[data-step='1'] .ws-1,
.journey-stage[data-step='2'] .ws-2,
.journey-stage[data-step='3'] .ws-2,
.journey-stage[data-step='3'] .ws-3,
.journey-stage[data-step='4'] .ws-3,
.journey-stage[data-step='5'] .ws-3 { opacity: 1; }

.book { position: relative; width: 92%; padding: 22px; transform: perspective(1800px) rotateX(16deg); transform-origin: 50% 100%; }
.book-spread {
  position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 2px 2px 3px 3px;
  background: var(--ivory);
  box-shadow: 0 50px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.book-spread img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gutter { position: absolute; top: 0; bottom: 0; left: 50%; width: 12%; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.32) 46%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.32) 54%, transparent); }
.bleed { position: absolute; inset: 3.2%; border: 1px dashed rgba(243, 238, 229, 0.7); }
.crop { position: absolute; width: 16px; height: 16px; border-color: rgba(243, 238, 229, 0.55); border-style: solid; border-width: 0; }
.crop.tl { top: 4px; left: 4px; border-top-width: 1px; border-left-width: 1px; }
.crop.tr { top: 4px; right: 4px; border-top-width: 1px; border-right-width: 1px; }
.crop.bl { bottom: 4px; left: 4px; border-bottom-width: 1px; border-left-width: 1px; }
.crop.br { bottom: 4px; right: 4px; border-bottom-width: 1px; border-right-width: 1px; }
.book-notes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.note {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--ivory-2);
}

.ipad {
  width: min(100%, calc(66vh * 1.36)); aspect-ratio: 4 / 3;
  padding: 2.4%; border-radius: 30px;
  background: linear-gradient(145deg, #2a2c30, #121315);
  box-shadow: 0 0 0 1px rgba(243, 238, 229, 0.12), 0 60px 120px -50px rgba(0, 0, 0, 0.95);
}
.ipad-screen {
  height: 100%; border-radius: 16px; overflow: hidden;
  background: #f3eee5; color: #151617;
  display: flex; flex-direction: column; padding: 4% 4% 3%;
}
.gal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 3%; }
.gal-head b { display: block; font-size: clamp(0.8rem, 1.4vw, 1.125rem); letter-spacing: -0.01em; }
.gal-head span { font-size: clamp(0.625rem, 0.9vw, 0.75rem); color: #5d5a55; }
.gal-lock { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(21, 22, 23, 0.07); }
.gal-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2%; }
.gal-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: #ddd6ca; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; }
.gal-hero { grid-row: span 2; }
.heart {
  position: absolute; right: 6%; top: 6%; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15, 16, 18, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 017-2.6A4 4 0 0119 10c0 5.6-7 10-7 10z' fill='none' stroke='%23f3eee5' stroke-width='2'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.heart.on {
  background: rgba(15, 16, 18, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 017-2.6A4 4 0 0119 10c0 5.6-7 10-7 10z' fill='%2322d3c2' stroke='%2322d3c2' stroke-width='2'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.bubble {
  position: absolute; left: 6%; bottom: 6%;
  padding: 6px 10px; border-radius: 10px 10px 10px 2px;
  background: #f3eee5; color: #151617; font-size: clamp(0.625rem, 0.95vw, 0.8125rem); font-weight: 500;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.gal-foot { margin-top: 3%; font-size: clamp(0.625rem, 0.9vw, 0.75rem); color: #5d5a55; }

.journey-steps { list-style: none; }
.step {
  min-height: 74vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0.28; transition: opacity 0.5s var(--ease);
}
.step.is-active { opacity: 1; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 3.25rem; line-height: 1; color: var(--teal); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.step p { color: var(--ivory-2); max-width: 30em; }

/* Culling: contact strip on a lightbox */
.cull { position: relative; padding-block: var(--section) 0; }
.cull.is-pinned { padding-block: 0; }
.cull-pin { padding-bottom: var(--section); }
.cull.is-pinned .cull-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 0;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 6vh, 64px);
}
.cull-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.cull.is-pinned .cull-head { margin-bottom: 0; }
.cull.is-pinned .cull-note { margin-top: -12px; }
.cull-head p { color: var(--ivory-2); max-width: 30em; }
.lightbox {
  position: relative;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: rgba(243, 238, 229, 0.25) transparent;
  padding-block: 28px;
}
.lightbox:focus-visible { outline-offset: -2px; }
.cull.is-pinned .lightbox { overflow: visible; scroll-snap-type: none; }
.cull-note {
  margin-top: 4px;
  font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.4; color: var(--ivory-3);
}
.strip {
  list-style: none;
  display: flex; width: max-content;
  padding: 46px 0 46px var(--gutter);
  margin-right: var(--gutter);
  background: #0a0a0a;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(243, 238, 229, 0.06), 0 0 120px rgba(243, 238, 229, 0.07);
  position: relative;
  will-change: transform;
}
.cull.is-pinned .strip { margin-left: max(0px, calc((100vw - 1360px) / 2)); }
.strip::before, .strip::after {
  content: ''; position: absolute; left: 10px; right: 10px; height: 8px;
  background: repeating-linear-gradient(90deg, rgba(243, 238, 229, 0.62) 0 11px, transparent 11px 26px);
}
.strip::before { top: 13px; }
.strip::after { bottom: 13px; }
.frame { position: relative; flex: none; width: clamp(230px, 26vw, 360px); margin-right: 16px; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1px; transition: opacity 0.4s; }
.frame.flagged img { opacity: 0.4; }
.edge {
  position: absolute; left: 4px; bottom: -19px;
  font-family: var(--mono); font-size: 0.6875rem; line-height: 1; color: var(--edge); letter-spacing: 0.04em;
}
.tag {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(15, 16, 18, 0.82); color: var(--ivory);
  font-size: var(--fs-xs); font-weight: 500;
}
.tag-pick { color: var(--teal); }
.grease { position: absolute; left: -9%; top: -14%; width: 118%; max-width: none; height: 128%; overflow: visible; pointer-events: none; }
.grease path {
  fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset 1.1s var(--ease);
}
.strip.is-drawn .grease path { stroke-dashoffset: 0; }
.strip.is-drawn .frame:nth-child(3) .grease path { transition-delay: 0.25s; }
.strip.is-drawn .frame:nth-child(8) .grease path { transition-delay: 0.5s; }

/* Tools */
.tools { padding-block: var(--section); }
.tools-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 7vh, 72px); }
.tools-head p { color: var(--ivory-2); max-width: 26em; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.spec, .open-work { padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line); }
.spec + .spec, .open-work { padding-left: 28px; border-left: 1px solid var(--line); }
.specs > :nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.spec h3, .open-work h3 { font-size: var(--fs-b); letter-spacing: -0.01em; margin-bottom: 14px; }
.spec h3.spec-sub { margin-top: 24px; }
.spec ul { list-style: none; display: grid; gap: 8px; }
.spec li { font-size: var(--fs-s); line-height: 1.45; color: var(--ivory-2); }
.open-work { background: linear-gradient(160deg, rgba(14, 90, 83, 0.28), transparent 70%); }
.open-work p { font-size: var(--fs-s); line-height: 1.5; color: var(--ivory-2); margin-bottom: 16px; }
.credits { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.credits li { font-size: var(--fs-xs); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ivory); }

/* Privacy */
.privacy { padding-block: var(--section); position: relative; overflow: hidden; }
.privacy::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 12% 100%, rgba(14, 90, 83, 0.42), transparent 70%);
}
.privacy-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.privacy-copy h2 { margin-bottom: 24px; }
.privacy-copy > p { color: var(--ivory-2); max-width: 28em; }
.flow { display: flex; align-items: center; gap: 0; margin-top: 44px; max-width: 440px; }
.node { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--ivory); }
.node svg { color: var(--teal); margin-bottom: 8px; }
.node b { font-size: var(--fs-s); font-weight: 600; }
.node span { font-size: var(--fs-xs); color: var(--ivory-3); }
.wire { position: relative; flex: 1; height: 2px; margin: 0 18px 46px; background: repeating-linear-gradient(90deg, rgba(243, 238, 229, 0.35) 0 6px, transparent 6px 12px); overflow: hidden; }
.wire span { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: wire 3.2s var(--ease) infinite; }
@keyframes wire { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(var(--wire-w, 180px)); opacity: 0; } }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.promises > div { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.promises dt { font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.promises dd { margin: 0; font-size: var(--fs-s); line-height: 1.55; color: var(--ivory-2); }

/* FAQ */
.faq { padding-block: var(--section); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); }
.faq-grid h2 { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: var(--fs-l); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ivory-2), var(--ivory-2)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ivory-2), var(--ivory-2)) center / 1.5px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: #fff; }
.faq-list details p { padding: 0 48px 26px 0; color: var(--ivory-2); max-width: 40em; }

/* Final call: under the enlarger light */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(120px, 20vh, 220px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.enlarger-light {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 1100px; height: 1100px; margin: -550px 0 0 -550px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(243, 238, 229, 0.11), rgba(14, 90, 83, 0.18) 45%, transparent 100%);
  transform: translate3d(50vw, 50%, 0);
  will-change: transform;
  pointer-events: none;
}
.enlarger-light::after {
  content: ''; position: absolute; inset: 15%; border-radius: 50%;
  background: url('../img/grain.png');
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 64px; height: 64px; margin-bottom: 36px; border-radius: 15px; box-shadow: 0 20px 50px -10px rgba(14, 90, 83, 0.8); }
.final-title { max-width: 12em; margin-bottom: 26px; }
.final p { color: var(--ivory-2); font-size: var(--fs-l); max-width: 28em; margin-bottom: 36px; }
.cta-center { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; align-items: start; }
.footer-brand img { height: 20px; width: auto; margin-bottom: 14px; }
.footer-brand p, .footer-credit p { font-size: var(--fs-xs); color: var(--ivory-3); line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { font-size: var(--fs-s); color: var(--ivory-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ivory); }
.footer-credit { justify-self: end; text-align: right; }
.credit { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 10px; text-decoration: none; margin-bottom: 14px; }
.credit span { font-size: var(--fs-xs); color: var(--ivory-2); }
.credit img { height: 18px; width: auto; }
.credit:hover span { color: var(--ivory); }
.footer-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-note p { font-size: 0.75rem; color: var(--ivory-3); }

/* Responsive */
@media (max-width: 1180px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > .spec, .specs > .open-work { padding-left: 28px; border-left: 1px solid var(--line); }
  .specs > :nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .negative-grid, .journey-grid, .privacy-grid, .faq-grid, .cull-head, .tools-head { grid-template-columns: 1fr; }
  .faq-grid h2 { position: static; }
  .negative-copy { order: 0; }
  .journey-stage {
    position: sticky; top: var(--header-h); z-index: 2;
    max-height: none;
    height: calc((100vw - 2 * var(--gutter)) * 0.625 + 30px + 32px);
    margin-inline: calc(var(--gutter) * -1);
    background: linear-gradient(var(--ink) 88%, rgba(15, 16, 18, 0));
  }
  .jl { inset: 12px var(--gutter) 20px; }
  .book-notes { display: none; }
  .ipad { width: auto; height: 100%; border-radius: 20px; }
  .ipad-screen { border-radius: 10px; }
  .step { min-height: 52vh; justify-content: flex-start; padding-top: 0; opacity: 1; }
  .journey-steps { padding-top: 24px; }
  .cull-pin { padding-bottom: 72px; }
  .negative-pin { padding-block: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-credit { justify-self: start; text-align: left; }
  .credit { align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .link-login { font-size: 0.875rem; }
  .header-actions { gap: 14px; }
  .brand img { height: 18px; }
  .desk { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 12px 14px 8px; }
  .ctl-note { display: none; }
  .stage { border-radius: 10px; }
  .chip { top: 10px; font-size: 0.75rem; padding: 5px 9px; }
  .chip-original { left: 10px; }
  .chip-edit { right: 10px; }
  .cta-row .btn { flex: 1 1 auto; }
  .specs { grid-template-columns: 1fr; }
  .specs > .spec, .specs > .open-work { padding-left: 0; border-left: 0; padding-right: 0; }
  .promises { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 1.0625rem; }
  .faq-list details p { padding-right: 0; }
  .timer { font-size: 0.75rem; }
  .book { padding: 14px; }
  .gal-head span:not(.gal-lock) { display: none; }
}
@media (max-width: 380px) {
  .btn-sm { padding-inline: 11px; }
  .brand img { height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .wire span { display: none; }
  .step { opacity: 1; }
}
