/* ==========================================================================
   Viv prelaunch landing  ·  Cognitive Allied Media
   --------------------------------------------------------------------------
   Visual world: a jeweler's ultramarine velvet tray. Viv's research arrives
   on it as chalk paper (cards, tags, forms), ink-blue type and stamps, and
   the seller's own red pen (handwritten notes). One object, the YSL pendant
   from the prototype, travels the whole page. Flat colour fields only: no
   gradients, no glows. The blue is a nod to the sample object's house.

   Theme: single, brand-locked (deep ultramarine ground). Not auto-switched.
   Radius system: panels 14px · controls 8px · chips/stamps pill or 4px.
   Shadows: always tinted ultramarine, with offset + blur.
   Fonts: Bricolage Grotesque (display + body, optical sizes),
          Source Code Pro (UI labels / data only), Caveat (seller's pen only).
   ========================================================================== */

@import url("../fonts/fonts.css?v=2");
@import url("../icons/phosphor-regular.css");

:root {
  /* Ground: ultramarine velvet (flat, matte; never a gradient, never a glow) */
  --u-950: #0b1038;
  --u-900: #121a4f;
  --u-850: #161f5c;
  --u-800: #1b2569;
  --u-700: #243085;
  --u-600: #2d3ca3;
  --u-500: #3a4bc0;
  --u-400: #6b7ad6;

  /* Paper: chalk, cool and uncoated */
  --chalk: #f3f1ea;
  --chalk-2: #e9e6dc;
  --chalk-3: #dcd8cb;
  --line: #c9c5b6;
  --line-soft: #dedacd;

  /* Ink */
  --ink: #171c3a;
  --ink-2: #474c66;
  --ink-3: #5a5f78;
  --ink-blue: #243085;
  --ink-blue-2: #3240a6;

  /* Text on velvet */
  --on-u: #f1efe8;
  --on-u-2: #c9cce0;
  --on-u-3: #9499bb;

  /* The seller's pen, caution, highlight */
  --red: #b4372b;
  --red-soft: #e2695a;
  --ochre: #9a6a1f;
  --amber: #f1cf84;

  --font-sans: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, "SF Mono", Menlo, monospace;
  --font-pen: "Caveat", "Bradley Hand", cursive;
  --font-form: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --r-panel: 14px;
  --r-ctl: 8px;

  --shadow-paper: 0 1px 0 rgb(255 255 255 / .6) inset, 0 22px 48px -18px rgb(5 8 30 / .6), 0 6px 14px -8px rgb(5 8 30 / .45);
  --shadow-lift: 0 30px 60px -24px rgb(5 8 30 / .75);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-stamp: cubic-bezier(.2, 1.3, .3, 1); /* a stamp lands with a slight overshoot; deliberate */

  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 68px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--on-u);
  background-color: var(--u-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* One velvet field behind the whole page, fixed so it never tiles or seams.
   Mobile browsers ignore fixed attachment, so they get the flat colour. */
@media (min-width: 900px) {
  body { background-image: url("../img/velvet.jpg"); background-size: cover; background-position: center; background-attachment: fixed; background-blend-mode: soft-light; }
}
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
/* Form voice: Schibsted Grotesk, a face with character and a conventional @ glyph */
input, textarea { font: inherit; color: inherit; font-family: var(--font-form); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.visually-hidden {
  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-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--chalk); color: var(--ink);
  padding: 10px 14px; border-radius: var(--r-ctl); z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* Type helpers -------------------------------------------------------- */

.display {
  font-variation-settings: "opsz" 96;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.h-section {
  font-variation-settings: "opsz" 72;
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  line-height: 1.5;
  color: var(--on-u-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}

.pen {
  font-family: var(--font-pen);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--red);
  letter-spacing: 0;
}
.pen--light { color: #f3b3a9; }

/* Buttons --------------------------------------------------------------- */

.btn {
  --bg: var(--chalk);
  --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: 0 1.35rem;
  border-radius: 10px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 10px 24px -14px rgb(5 8 30 / .8);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -16px rgb(5 8 30 / .85); background: #fbfaf6; }
.btn:active { transform: translateY(0) scale(.985); transition-duration: .08s; }
.btn .ph { font-size: 1.15em; }

.btn--blue { --bg: var(--u-600); --fg: var(--on-u); border-color: rgb(255 255 255 / .08); }
.btn--blue:hover { background: var(--u-500); }

.btn--ghost {
  --bg: transparent; --fg: var(--on-u);
  border-color: rgb(241 239 232 / .32); box-shadow: none;
}
.btn--ghost:hover { background: rgb(241 239 232 / .08); box-shadow: none; }

.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"] .btn__label { opacity: .6; }

/* Navigation ------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--u-900) 82%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid rgb(241 239 232 / .08);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--u-900); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav__in {
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .15rem;
  text-decoration: none; color: var(--on-u); margin-right: auto;
}
/* Official Viv wordmark (single-path SVG), filled with the current text colour */
.brand__mark {
  display: block; width: 96px; aspect-ratio: 384.5 / 183.5;
  background: currentColor;
  -webkit-mask: url("../img/viv-mark.svg") center / contain no-repeat;
  mask: url("../img/viv-mark.svg") center / contain no-repeat;
}
.brand__by {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-u-3); margin-left: .9rem; align-self: center; transform: translateY(1px);
}
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links a {
  text-decoration: none; color: var(--on-u-2); font-weight: 500; font-size: .97rem;
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav__links a:hover { color: var(--on-u); border-bottom-color: rgb(241 239 232 / .5); }
.nav .btn { min-height: 42px; padding-inline: 1.05rem; font-size: .95rem; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-ctl);
  border: 1px solid rgb(241 239 232 / .25); background: transparent; color: var(--on-u);
  align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer;
}
@media (max-width: 900px) {
  .brand__by { display: none; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; gap: 0; background: var(--u-900);
    border-bottom: 1px solid rgb(241 239 232 / .1); padding: .5rem var(--gutter) 1rem;
  }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid rgb(241 239 232 / .08); font-size: 1.1rem; }
  .nav.is-open .nav__links { display: flex; }
  .nav__toggle { display: inline-flex; }
  .nav .btn--cta { display: none; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vh, 4rem) clamp(2rem, 5vh, 4rem);
}
.hero__copy { max-width: 40rem; }
.hero__title {
  font-size: clamp(3.2rem, 1.4rem + 5.2vw, 6.2rem);
  color: var(--on-u);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.hero__title em {
  font-style: italic; font-weight: 700; color: var(--amber);
  padding-bottom: .06em; line-height: 1.1;
}
.hero__lede { margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }

.capture { max-width: 36rem; }
.capture__live {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center;
}
.capture__label { grid-column: 1 / -1; color: var(--on-u-2); margin-bottom: -.1rem; }
.capture__done { display: none; gap: .9rem; align-items: start; grid-template-columns: auto 1fr; }
.capture__done p { color: var(--on-u-2); max-width: 40ch; }
.capture__done a { color: var(--on-u); font-weight: 600; }
.capture.is-done .capture__live { display: none; }
.capture.is-done .capture__done { display: grid; }
.field {
  width: 100%; min-height: 50px; padding: 0 1rem;
  border-radius: 10px;
  border: 1px solid rgb(241 239 232 / .28);
  background: rgb(241 239 232 / .07);
  color: var(--on-u);
  transition: border-color .2s, background-color .2s;
}
.field::placeholder { color: #aab0cf; }
.field:hover { border-color: rgb(241 239 232 / .45); }
.field:focus-visible { outline-offset: 0; border-color: transparent; background: rgb(241 239 232 / .1); }
.field[aria-invalid="true"] { border-color: var(--red-soft); }
.capture__error, .form__error {
  grid-column: 1 / -1; color: #f3b3a9; font-size: .92rem; display: none; align-items: center; gap: .4rem;
}
.capture__error.is-on, .form__error.is-on { display: flex; }

/* Hero image + findings */
.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: min(70vh, 720px);
}
.hero__photo {
  position: absolute; inset: 0;
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--u-850);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
  border-radius: inherit; pointer-events: none;
}

/* Findings: chalk cards pinned on the photo, arriving in sequence */
.finding {
  position: absolute;
  background: var(--chalk) url("../img/chalk.jpg") center / 420px;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-paper);
  padding: .85rem 1rem .9rem;
  width: max-content; max-width: min(78%, 300px);
}
.finding .mono { color: var(--ink-blue-2); display: block; margin-bottom: .3rem; }
.finding__big { font-weight: 700; font-size: 1.1rem; line-height: 1.15; letter-spacing: -0.015em; }
.finding__small { color: var(--ink-2); font-size: .9rem; margin-top: .2rem; }
.finding { max-width: min(74%, 300px); }
/* the pendant fills the middle of the photograph; findings sit on the cord above and the velvet below */
.finding--1 { left: -8%; top: 3%; transform: rotate(-2deg); }
.finding--2 { right: -6%; top: 11%; transform: rotate(2.5deg); padding: .9rem 1rem; }
.finding--3 { left: -6%; bottom: 3%; transform: rotate(-1deg); }
.finding__price { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--ink-blue); font-variation-settings: "opsz" 72; }

.hero__caption {
  grid-column: 1 / -1;
  color: var(--on-u-3); font-size: .85rem; max-width: 60ch;
  margin-top: -0.5rem;
}

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero__visual { min-height: 0; aspect-ratio: 4 / 5; max-width: 560px; }
  .finding--3 { left: auto; right: -4%; bottom: 3%; }
  .finding--1 { left: -2%; }
  .finding--2 { right: -2%; }
  .finding--3 { left: 4%; }
}
@media (max-width: 560px) {
  .hero__visual { aspect-ratio: 4 / 5; }
  .finding { max-width: 70%; padding: .7rem .8rem; }
  .finding__big { font-size: .98rem; }
  .finding__price { font-size: 1.35rem; }
  .capture__live { grid-template-columns: 1fr; }
  .capture__done { grid-template-columns: 1fr; }
}

/* Stamp ------------------------------------------------------------------ */
.stamp {
  --stamp: var(--ink-blue);
  display: inline-block;
  font-family: var(--font-mono); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stamp);
  border: 2.5px solid var(--stamp);
  border-radius: 4px;
  padding: .42rem .75rem .4rem;
  line-height: 1;
  transform: rotate(-3deg);
  position: relative;
  isolation: isolate;
  mask-image: radial-gradient(120% 90% at 30% 40%, #000 60%, rgb(0 0 0 / .78) 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 30% 40%, #000 60%, rgb(0 0 0 / .78) 100%);
}
.stamp::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid var(--stamp); border-radius: 2px; opacity: .55;
}
.stamp--ochre { --stamp: var(--ochre); }
.stamp--red { --stamp: var(--red); }
.stamp--lg { font-size: 1.05rem; padding: .7rem 1.1rem .65rem; border-width: 3px; }
.stamp--xl { font-size: clamp(.78rem, .45rem + 1vw, 1.35rem); padding: .8rem 1.1rem .7rem; border-width: 3.5px; max-width: 100%; }
.stamp--on-velvet { --stamp: #dfe2f6; }
.stamp--on-velvet.stamp--ochre { --stamp: var(--amber); }
.stamp--on-velvet.stamp--red { --stamp: #f3b3a9; }

/* Entrance choreography (one authored moment per region) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; }
  .hero__copy > :nth-child(2) { animation-delay: .1s; }
  .hero__copy > :nth-child(3) { animation-delay: .2s; }
  .hero__photo { clip-path: inset(0 0 100% 0 round var(--r-panel)); animation: unveil 1.2s var(--ease-out) .15s forwards; }

  .finding { opacity: 0; animation: stampIn .7s var(--ease-stamp) forwards; }
  .finding--1 { animation-delay: 1.15s; --rot: -2deg; }
  .finding--2 { animation-delay: 1.75s; --rot: 2.5deg; }
  .finding--3 { animation-delay: 2.35s; --rot: -1deg; }

  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .12s; }
  .reveal[data-delay="2"] { transition-delay: .24s; }
  .reveal[data-delay="3"] { transition-delay: .36s; }

  .thump { opacity: 0; transform: rotate(var(--rot, -3deg)) scale(1.5); filter: blur(2px); }
  .thump.is-in { animation: stampIn .65s var(--ease-stamp) forwards; }
  .thump[data-delay="1"].is-in { animation-delay: .35s; }
  .thump[data-delay="2"].is-in { animation-delay: .7s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round var(--r-panel)); } }
@keyframes stampIn {
  0% { opacity: 0; transform: rotate(var(--rot, -3deg)) scale(1.5); filter: blur(2px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: rotate(var(--rot, -3deg)) scale(1); filter: blur(0); }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: clamp(5rem, 11vw, 10rem); }
.section--tight { padding-block: clamp(3.5rem, 8vw, 7rem); }

/* The burden -------------------------------------------------------------- */
.burden {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(6rem, 12vw, 11rem);
}
.burden__photo::after { /* photo scrim: the one gradient family allowed, see contract */ }
.burden__photo {
  position: absolute; inset: 0; z-index: -1;
}
.burden__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .5; }
.burden__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--u-900) 0%, color-mix(in srgb, var(--u-900) 88%, transparent) 42%, color-mix(in srgb, var(--u-900) 35%, transparent) 100%),
    linear-gradient(180deg, var(--u-900) 0%, transparent 25%, transparent 70%, var(--u-900) 100%);
}
.burden__title {
  max-width: 20ch;
  font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem);
}
.burden__title em { font-style: italic; font-weight: 700; color: var(--amber); }
.burden__lede { margin-top: 1.75rem; }
.burden__annot { margin-top: 1.25rem; max-width: 24ch; transform: rotate(-2deg); transform-origin: left; }

/* The pile: a static scatter of paper slips, no motion */
.pile {
  margin-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(4rem, 8vw, 7rem);
  display: flex; flex-wrap: wrap; gap: .9rem 1rem; max-width: 60rem;
  padding-left: 0;
}
.slip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .95rem; border-radius: 6px;
  background: var(--chalk) url("../img/chalk.jpg") center / 400px; color: var(--ink);
  box-shadow: 0 8px 18px -10px rgb(5 8 30 / .8);
  font-weight: 500; white-space: nowrap;
}
.slip:nth-child(4n+1) { transform: rotate(-1.6deg) translateY(2px); }
.slip:nth-child(4n+2) { transform: rotate(1.1deg) translateY(-3px); }
.slip:nth-child(4n+3) { transform: rotate(-.6deg); }
.slip:nth-child(4n) { transform: rotate(2deg) translateY(3px); }
.slip .ph { color: var(--ink-blue); }
.slip--pen { font-family: var(--font-pen); font-size: 1.45rem; font-weight: 600; color: var(--red); padding-block: .3rem; }

/* Workflow ------------------------------------------------------------------ */
.flow__head { max-width: 56rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.flow__head .lede { margin-top: 1.5rem; }
.flow__note { margin-top: 1.25rem; color: var(--on-u-3); font-size: .9rem; max-width: 60ch; }

.flow {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.flow__object {
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.object {
  position: relative; border-radius: var(--r-panel); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--u-850); box-shadow: var(--shadow-lift);
}
.object img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out);
}
.object__front { object-position: 50% 50%; }
.object__back { opacity: 0; transform: scale(1.08); object-position: 50% 45%; }
.flow.is-step-2 .object__back { opacity: 1; transform: none; }
.flow.is-step-2 .object__front { transform: scale(1.06); }
.flow.is-step-3 .object__front, .flow.is-step-4 .object__front { transform: scale(1.0); }

/* Paper tag that gets written on as the item progresses */
.object__tag {
  position: absolute; left: 6%; bottom: 6%;
  background: var(--chalk-2) url("../img/chalk.jpg") center / 400px;
  color: var(--ink); border-radius: 8px;
  padding: .8rem 1rem .75rem 1.1rem; min-width: 11rem;
  box-shadow: var(--shadow-paper);
  transform: rotate(-2.5deg);
  transition: transform .8s var(--ease-out);
}
.object__tag::before {
  content: ""; position: absolute; left: .45rem; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--u-900); transform: translateY(-50%); box-shadow: inset 0 1px 2px rgb(0 0 0 / .6);
}
.object__tag .mono { color: var(--ink-3); display: block; }
.object__tag-line { font-weight: 600; font-size: .95rem; margin-left: .6rem; }
.object__tag-price { font-family: var(--font-pen); font-size: 1.9rem; color: var(--red); margin-left: .6rem; line-height: 1; min-height: 1.1em; display: block; }
.object__tag-price span { opacity: 0; transition: opacity .6s var(--ease-out); }
.flow.is-step-3 .object__tag-price span, .flow.is-step-4 .object__tag-price span { opacity: 1; }
.object__marks { position: absolute; right: 7%; top: 7%; display: grid; gap: .6rem; justify-items: end; }
.object__stamp, .object__listed {
  opacity: 0; transform: rotate(6deg) scale(1.4);
  transition: opacity .5s var(--ease-stamp), transform .6s var(--ease-stamp);
}
.flow.is-step-2 .object__stamp, .flow.is-step-3 .object__stamp, .flow.is-step-4 .object__stamp { opacity: 1; transform: rotate(5deg) scale(1); }
.object__listed { --stamp: #dfe2f6; }
.flow.is-step-4 .object__listed { opacity: 1; transform: rotate(-3deg) scale(1); --rot: -3deg; }
.flow.is-step-1 .object__tag-line, .object__tag-line { transition: color .4s; }

/* Compact sticky strip: phones only */
.flow__strip { display: none; }
@media (max-width: 960px) {
  .flow__strip {
    display: grid; grid-template-columns: 52px 1fr auto; gap: .8rem; align-items: center;
    position: sticky; top: var(--nav-h); z-index: 20;
    background: var(--chalk) url("../img/chalk.jpg") center / 400px; color: var(--ink);
    border-radius: 10px; padding: .5rem .7rem .5rem .5rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-paper);
  }
  .flow__strip img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
  .flow__strip-text { display: grid; line-height: 1.2; min-width: 0; }
  .flow__strip-text .mono { color: var(--ink-3); font-size: .62rem; }
  .flow__strip-text b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .flow__strip-state { display: grid; justify-items: end; gap: .25rem; }
  .strip-stamp { font-size: .55rem; padding: .25rem .4rem .2rem; border-width: 2px; letter-spacing: .1em; display: none; }
  .strip-price { font-size: 1.3rem; line-height: 1; display: none; }
  .flow.is-step-2 .strip-stamp--conf, .flow.is-step-3 .strip-stamp--conf { display: inline-block; }
  .flow.is-step-3 .strip-price, .flow.is-step-4 .strip-price { display: inline-block; }
  .flow.is-step-4 .strip-stamp--listed { display: inline-block; }
  .flow__object { display: none; }
}

.steps { display: grid; gap: clamp(3rem, 6vw, 5.5rem); }
.step { scroll-margin-top: calc(var(--nav-h) + 24px); }
.step__head { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: baseline; margin-bottom: 1.4rem; }
.step__n {
  font-family: var(--font-mono); font-size: 1rem; line-height: 1; color: var(--amber); font-weight: 600;
  border: 1.5px solid var(--amber); border-radius: 4px; padding: .3rem .45rem .25rem; transform: translateY(-.35rem);
}
.step__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; }
.step__copy { color: var(--on-u-2); max-width: 48ch; font-size: 1.1rem; margin-top: .6rem; grid-column: 2; }

/* Paper panel (the product UI, rebuilt faithfully in HTML) */
.panel {
  background: var(--chalk) url("../img/chalk.jpg") center / 512px;
  color: var(--ink);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  position: relative;
}
.panel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem 1.35rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgb(255 255 255 / .35);
}
.panel__bar h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.panel__sub { color: var(--ink-2); font-size: .85rem; margin-top: .1rem; }
.sample { flex: none; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border: 1px dashed var(--ink-3); border-radius: 4px; padding: .3rem .5rem .25rem; }
.panel__bar .mono { color: var(--ink-3); }
.panel__body { padding: 1.35rem; display: grid; gap: 1.1rem; }
.panel .mono { color: var(--ink-2); }
.panel a { color: var(--ink-blue); font-weight: 600; text-decoration: none; }
.panel a:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel p { color: var(--ink); text-wrap: pretty; }
.panel p.muted { color: var(--ink-2); }
.panel h5 { margin: 0; font-size: .98rem; font-weight: 700; letter-spacing: -0.01em; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .9rem 1.5rem; }
.kv dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .2rem; }
.kv dd { margin: 0; font-weight: 600; }
.kv .pill { display: inline-block; border: 1.5px solid var(--ink); border-radius: 4px; padding: .1rem .4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; font-weight: 600; }

.assoc { display: grid; gap: 0; }
.assoc li { padding: .6rem 0; border-top: 1px dashed var(--line); font-size: .97rem; }
.assoc li:first-child { border-top: 0; padding-top: 0; }
.assoc b { font-weight: 650; }
.assoc span { color: var(--ink-2); }
.assoc .ph { color: var(--ink-3); font-size: 1rem; margin-top: .2rem; }

.sources { display: grid; gap: .45rem; }
.sources li { display: flex; align-items: center; gap: .45rem; font-size: .95rem; color: var(--ink-blue); font-weight: 600; }
.sources .ph { font-size: .95rem; }

.viv-note {
  display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start;
  border-left: 1px solid var(--ink-blue); padding: .2rem 0 .2rem .9rem;
  color: var(--ink-blue); font-style: italic; font-size: 1rem; line-height: 1.5;
}
.viv-note b { font-style: normal; font-weight: 700; }
.viv-note .ph { font-size: 1.1rem; margin-top: .2rem; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.photos li { display: grid; gap: .4rem; font-size: .85rem; color: var(--ink-2); }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 480px) { .photos { gap: .5rem; } .photos li { font-size: .78rem; } }

/* Authentication panel */
.verdict { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.verdict h5 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); color: var(--ink-blue); letter-spacing: -0.03em; font-weight: 700; }

.hyp { display: grid; gap: 0; border-top: 1px dashed var(--line); margin-top: .25rem; }
.hyp__rows { display: grid; }
.hyp__head { display: grid; grid-template-columns: minmax(9rem, 1.1fr) 1fr; gap: 1rem; padding: .6rem 0 .4rem; }
.hyp__scale { display: grid; grid-template-columns: repeat(4, 1fr); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hyp__scale span:last-child { text-align: right; }
.hyp__row { display: grid; grid-template-columns: minmax(9rem, 1.1fr) 1fr; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px dashed var(--line-soft); font-size: .95rem; }
.hyp__row .h { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-2); margin-right: .4rem; }
.hyp__row.is-lead { font-weight: 650; }
.hyp__track {
  position: relative; height: 26px;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x,
    linear-gradient(90deg, transparent calc(100% - 1px), var(--line) calc(100% - 1px));
}
.hyp__bar {
  position: absolute; top: 50%; height: 10px; transform: translateY(-50%);
  left: var(--from); width: calc(var(--to) - var(--from));
  background: var(--chalk-3); border-radius: 999px;
}
.hyp__row.is-lead .hyp__bar { background: var(--ink-blue); }
.hyp__dot {
  position: absolute; top: 50%; left: var(--dot); width: 14px; height: 14px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--chalk); border: 3px solid var(--ink-2);
}
.hyp__row.is-lead .hyp__dot { border-color: var(--ink-blue); }

.evidence { background: var(--chalk-3); border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: .6rem; }
.evidence__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem 1.5rem; font-size: .95rem; }
.evidence__grid span { display: block; color: var(--ink-2); margin-bottom: .15rem; }
.evidence__grid b { color: var(--ink-blue); }
.evidence__grid b.warn { color: var(--ochre); }

/* Pricing panel */
.price__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.price__big { font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem); font-weight: 800; color: var(--ink-blue); letter-spacing: -0.04em; line-height: 1; font-variation-settings: "opsz" 96; }
.price__from { text-align: right; font-family: var(--font-mono); font-size: .78rem; color: var(--ink-2); line-height: 1.5; }
.why { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; }
.why summary { cursor: pointer; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.why summary::-webkit-details-marker { display: none; }
.why summary .ph { transition: transform .3s var(--ease-out); }
.why[open] summary .ph { transform: rotate(180deg); }
.why ol { list-style: decimal; padding-left: 1.3rem; margin-top: .75rem; display: grid; gap: .45rem; font-size: .97rem; }

.setprice { border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.1rem 1rem; display: grid; gap: .9rem; }
.setprice__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-mini {
  border: 1.5px solid var(--ink-blue); color: var(--ink-blue); background: transparent;
  border-radius: var(--r-ctl); padding: .5rem .8rem; font-weight: 650; font-size: .92rem; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease-out);
}
.btn-mini:hover { background: rgb(36 48 133 / .08); }
.btn-mini:active { transform: scale(.97); }

.slider { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2); }
.slider__track {
  position: relative; height: 28px; display: flex; align-items: center;
  /* data encodings from the prototype: valuation band, suggested tick, "if authenticated" hatched band */
  --v0: 0%; --v1: 29.4%; --s: 15.7%; --a0: 52.9%; --a1: 100%;
}
.slider__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 12px; transform: translateY(-50%); border-radius: 999px;
  background:
    linear-gradient(90deg, transparent var(--v0), var(--u-400) var(--v0), var(--u-400) var(--v1), transparent var(--v1)),
    linear-gradient(90deg, transparent var(--a0), rgb(23 28 58 / .18) var(--a0), rgb(23 28 58 / .18) var(--a1)),
    var(--chalk-3);
}
.slider__hatch {
  position: absolute; left: var(--a0); right: 0; top: 50%; height: 12px; transform: translateY(-50%);
  border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(135deg, rgb(23 28 58 / .35) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.slider__tick { position: absolute; left: var(--s); top: 50%; width: 3px; height: 20px; background: var(--ink-blue); transform: translate(-50%, -50%); border-radius: 2px; pointer-events: none; }
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; background: transparent; margin: 0; position: relative; z-index: 1; height: 28px; cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-runnable-track { height: 12px; background: transparent; }
.slider input[type="range"]::-moz-range-track { height: 12px; background: transparent; }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; margin-top: -6px;
  background: var(--ink-blue); border: 3px solid var(--chalk); box-shadow: 0 2px 6px rgb(0 0 0 / .3);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink-blue); border: 3px solid var(--chalk); box-shadow: 0 2px 6px rgb(0 0 0 / .3);
}
.slider input[type="range"]:focus-visible { outline-offset: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.legend i { display: inline-block; width: 1.4rem; height: .6rem; border-radius: 999px; vertical-align: middle; margin-right: .4rem; background: var(--u-400); }
.legend i.tick { width: 3px; height: .9rem; border-radius: 2px; background: var(--ink-blue); }
.legend i.hatch { background: repeating-linear-gradient(135deg, rgb(23 28 58 / .4) 0 2px, transparent 2px 5px), var(--chalk-3); }
.legend b { color: var(--ink); margin-left: .25rem; }

.asking { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.asking label { font-weight: 700; }
.asking__wrap { position: relative; }
.asking__wrap::before { content: "$"; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 600; }
.asking input {
  width: 9rem; min-height: 46px; padding: 0 .8rem 0 1.6rem; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: rgb(255 255 255 / .5); color: var(--ink); font-weight: 600; font-size: 1.05rem;
}
.asking input:focus-visible { outline-offset: 0; }

.note { display: grid; gap: .4rem; }
.note__box { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: .55rem .9rem .35rem; background: rgb(255 255 255 / .35); }
.note__box .pen { font-size: 1.6rem; }

.comps { display: grid; gap: .6rem; }
.comp { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem .8rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .95rem; font-size: .95rem; }
.comp__n { color: var(--ink-3); font-family: var(--font-mono); font-size: .8rem; }
.comp__sold { display: inline-block; border: 1px solid var(--ink-blue); color: var(--ink-blue); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; padding: .12rem .35rem; border-radius: 4px; margin-right: .5rem; font-weight: 600; }
.comp__meta { color: var(--ink-2); }
.comp__title { grid-column: 2; font-weight: 500; }
.comp__price { font-weight: 700; font-size: 1.05rem; }
.comp.is-dim { border-style: dashed; }
.comp.is-dim .comp__price, .comp.is-dim .comp__title { color: var(--ink-2); font-weight: 500; }

/* Listing panel */
.listing__title { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.listing__title b { font-size: 1.05rem; letter-spacing: -0.01em; }
.listing__title small { display: block; color: var(--ink-2); margin-top: .2rem; }
.listing__title .price { font-weight: 700; font-size: 1.1rem; }
.styling li { padding: .6rem 0; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .97rem; }
.styling li:first-child { border-top: 0; padding-top: 0; }
.styling .ph { color: var(--ink-3); }
.panel__add { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-blue); font-weight: 650; }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .flow__object { position: relative; top: auto; max-width: 480px; }
  .step__head { grid-template-columns: 1fr; gap: .4rem; }
  .step__copy { grid-column: 1; }
  .hyp__head, .hyp__row { grid-template-columns: 1fr; gap: .4rem; }
  .hyp__scale { grid-template-columns: 1fr 1fr; }
  .hyp__scale span:nth-child(2), .hyp__scale span:nth-child(3) { display: none; }
  .hyp__scale span:last-child { text-align: right; }
  .panel__bar { flex-wrap: wrap; }
}

/* Four steps (main page) */
.stepsline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid rgb(241 239 232 / .14); padding-top: 2rem;
}
.stepsline li { display: grid; gap: .6rem; align-content: start; }
.stepsline h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: .4rem; }
.stepsline p { color: var(--on-u-2); max-width: 30ch; text-wrap: pretty; }
.stepsline .step__n { justify-self: start; transform: none; }
.stepsline__foot { scroll-margin-top: calc(var(--nav-h) + 24px); margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.stepsline__foot .flow__note { margin-top: 0; max-width: 44ch; }
@media (max-width: 900px) { .stepsline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stepsline { grid-template-columns: 1fr; gap: 2rem; } }

/* Pieces strip (story section) */
.pieces { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 60rem; }
.pieces figure { border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--u-850); }
.pieces img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pieces figcaption { padding: .7rem .2rem 0; color: var(--on-u-2); font-size: .95rem; }
@media (max-width: 640px) { .pieces { grid-template-columns: repeat(3, 1fr); gap: .6rem; } .pieces figcaption { font-size: .8rem; } }

/* Walkthrough page */
.section--walk { padding-top: clamp(3rem, 6vw, 5rem); }
.walk__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Trust --------------------------------------------------------------------- */
.trust {
  background: var(--u-950);
  border-top: 1px solid rgb(241 239 232 / .08);
  border-bottom: 1px solid rgb(241 239 232 / .08);
}
.trust__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 7rem); align-items: start;
}
.trust__title { max-width: 16ch; }
.trust__title em { font-style: italic; font-weight: 700; color: var(--amber); }
.trust .lede { margin-top: 1.5rem; }
.commitments { margin-top: 2.5rem; display: grid; gap: 1.2rem; max-width: 46ch; }
.commitments li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; color: var(--on-u-2); font-size: 1.05rem; }
.commitments .ph { color: #dfe2f6; font-size: 1.35rem; margin-top: .1rem; }
.commitments b { color: var(--on-u); font-weight: 650; }

.stamps { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding-top: .5rem; }
.stamps li { display: grid; gap: 1rem; justify-items: start; }
.stamps li p { color: var(--on-u-2); font-size: 1.02rem; max-width: 40ch; }
.stamps li:nth-child(2) { padding-left: clamp(0rem, 4vw, 3.5rem); }
.stamps li:nth-child(3) { padding-left: clamp(0rem, 2vw, 1.5rem); }

.trust__photo {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-lift);
}
.trust__photo img { width: 100%; height: 100%; object-fit: cover; }
.trust__photocap { margin-top: 1rem; color: var(--on-u-3); font-size: .9rem; }

@media (max-width: 900px) {
  .trust__grid { grid-template-columns: 1fr; }
  .stamps li { grid-template-columns: 1fr; gap: .8rem; }
  .stamps li:nth-child(2), .stamps li:nth-child(3) { padding-left: 0; }
  .trust__photo { aspect-ratio: 4 / 3; }
}

/* Who it's for --------------------------------------------------------------- */
.who__head { max-width: 58rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.who__head .lede { margin-top: 1.5rem; }
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
}
.tile {
  position: relative; border-radius: var(--r-panel); overflow: hidden; background: var(--u-850);
  box-shadow: 0 20px 40px -24px rgb(5 8 30 / .8);
}
.tile { display: grid; }
.tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgb(11 16 56 / .85));
  color: var(--on-u); font-weight: 600; font-size: 1.05rem;
}
.tile figcaption small { display: block; font-weight: 400; color: var(--on-u-2); font-size: .9rem; margin-top: .15rem; }
.tile--tray { grid-column: 1 / span 7; grid-row: 1 / span 2; aspect-ratio: 4 / 3; }
.tile--coat { grid-column: 8 / span 5; grid-row: 1 / span 3; }
.tile--stall { grid-column: 1 / span 4; grid-row: 3 / span 1; min-height: 300px; }
.tile--lamp { grid-column: 5 / span 3; grid-row: 3 / span 1; min-height: 300px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .tile { display: block; align-self: start; }
  .tile img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .tile--tray, .tile--coat { grid-column: 1 / -1; grid-row: auto; aspect-ratio: auto; }
  .tile--stall, .tile--lamp { grid-column: auto; grid-row: auto; aspect-ratio: auto; min-height: 0; }
  .tile--stall img, .tile--lamp img { aspect-ratio: 1; }
  .tile figcaption { padding: .8rem .9rem; font-size: .95rem; }
  .tile--stall figcaption small, .tile--lamp figcaption small { display: none; }
}

/* Early access --------------------------------------------------------------- */
.access { position: relative; padding-top: clamp(2rem, 5vw, 4rem); }
.access__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 7rem); align-items: start;
}
.access__title em { font-style: italic; font-weight: 700; color: var(--amber); }
.access .lede { margin-top: 1.5rem; }
.access__pen { margin-top: 2.2rem; transform: rotate(-2deg); max-width: 22ch; }

.form {
  background: var(--chalk) url("../img/chalk.jpg") center / 512px;
  color: var(--ink); border-radius: var(--r-panel); box-shadow: var(--shadow-paper);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: 2rem;
  position: relative;
}
.form__live { display: grid; gap: 1.75rem; }
.form__row { display: grid; gap: .65rem; }
.form label, .form legend { font-weight: 650; }
.form .hint { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; }
.form .field {
  background: rgb(255 255 255 / .55); border-color: var(--line); color: var(--ink);
}
.form .field::placeholder { color: #5f6480; }
.form .field:hover { border-color: #aaa696; }
.form .field[aria-invalid="true"] { border-color: var(--red); }
.form__error { color: var(--red); }
/* Option lists: a visible box or dot says whether you pick one or many */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .4rem .9rem; }
.opts--row { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.opt { position: relative; display: block; padding: .55rem .6rem .55rem 2.5rem; border-radius: var(--r-ctl); cursor: pointer; transition: background-color .15s; }
.opt:hover { background: rgb(36 48 133 / .06); }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: block; font-weight: 500; line-height: 1.3; font-family: var(--font-form); }
.opt span::before {
  content: ""; position: absolute; left: .6rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; box-sizing: border-box; border: 2px solid var(--ink-3); border-radius: 5px; background: rgb(255 255 255 / .6);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opt input[type=radio] + span::before { border-radius: 50%; }
.opt input:checked + span::before { border-color: var(--ink-blue); background: var(--ink-blue); }
.opt input[type=checkbox]:checked + span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23f3f1ea' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.opt input[type=radio]:checked + span::before { box-shadow: inset 0 0 0 4px var(--chalk); }
.opt input:checked + span { color: var(--ink-blue); font-weight: 650; }
.opt input:focus-visible + span::before { outline: 3px solid var(--ink-blue); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: 0 1rem;
  border-radius: 999px; border: 1.5px solid var(--line); background: rgb(255 255 255 / .45);
  font-weight: 550; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.chip input:hover + span { border-color: #aaa696; }
.chip input:checked + span { border-color: var(--ink-blue); background: rgb(36 48 133 / .1); color: var(--ink-blue); }
.chip input:focus-visible + span { outline: 3px solid var(--ink-blue); outline-offset: 2px; }
.chip input:active + span { transform: scale(.97); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; padding-top: .25rem; }
.form__foot small { color: var(--ink-2); font-size: .9rem; max-width: 34ch; line-height: 1.55; }
.form__foot small a { color: var(--ink-blue); font-weight: 600; }
.form .btn--blue { min-height: 52px; }

.form__done {
  display: none; text-align: left; gap: 1rem; align-content: start;
}
.form.is-done .form__done { display: grid; }
.form.is-done .form__live { display: none; }
.form__done h3 { font-size: 1.7rem; letter-spacing: -0.03em; }
.form__done p { color: var(--ink-2); max-width: 44ch; }
.form__done .stamp { justify-self: start; margin-bottom: .5rem; --rot: -4deg; }

@media (max-width: 900px) {
  .access__grid { grid-template-columns: 1fr; }
}

/* Footer ---------------------------------------------------------------------- */
.footer { border-top: 1px solid rgb(241 239 232 / .1); padding-block: 3rem 2.5rem; color: var(--on-u-2); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand { margin: 0 0 .75rem; }
.footer .brand__mark { width: 84px; }
.footer p { max-width: 36ch; }
.footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-mono); color: var(--on-u-3); font-weight: 500; margin-bottom: .9rem; }
.footer li { margin-bottom: .5rem; }
.footer a { color: var(--on-u); text-decoration: none; border-bottom: 1px solid rgb(241 239 232 / .25); }
.footer a:hover { border-bottom-color: var(--on-u); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(241 239 232 / .08); color: var(--on-u-3); font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Reduced motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero__copy > *, .finding, .reveal, .thump { opacity: 1 !important; transform: none !important; filter: none !important; }
  .finding--1 { transform: rotate(-2deg) !important; }
  .finding--2 { transform: rotate(2.5deg) !important; }
  .finding--3 { transform: rotate(-1deg) !important; }
  .stamp, .thump { transform: rotate(var(--rot, -3deg)) !important; }
  .object__stamp, .object__listed, .object__tag-price span { transition: none; }
}

/* ---- Reading pages (site access, privacy, terms) ---- */
.doc { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.doc__in { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.doc__paper {
  background: var(--chalk) url("../img/chalk.jpg") center / 512px; color: var(--ink);
  border-radius: var(--r-panel); box-shadow: var(--shadow-paper);
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.doc__paper h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.03em; margin-bottom: .6rem; }
.doc__paper .meta { color: var(--ink-2); margin-bottom: 2rem; font-size: .95rem; }
.doc__paper h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; letter-spacing: -0.02em; }
.doc__paper p, .doc__paper li { color: var(--ink); max-width: 68ch; text-wrap: pretty; }
.doc__paper p + p { margin-top: .8rem; }
.doc__paper ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .4rem; margin-top: .5rem; }
.doc__paper a { color: var(--ink-blue); font-weight: 600; }
.doc__paper code { font-family: var(--font-mono); font-size: .9em; background: rgb(23 28 58 / .07); padding: .1rem .35rem; border-radius: 4px; }
.doc__paper .draft { display: inline-block; margin-bottom: 1.2rem; }
.doc__aside { position: sticky; top: calc(var(--nav-h) + 24px); color: var(--on-u-2); font-size: .95rem; display: grid; gap: 1.2rem; }
.doc__aside h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--on-u-3); margin-bottom: .6rem; }
.doc__aside a { color: var(--on-u); text-decoration: none; border-bottom: 1px solid rgb(241 239 232 / .25); }
.doc__aside li { margin-bottom: .45rem; }
@media (max-width: 860px) { .doc__in { grid-template-columns: 1fr; } .doc__aside { position: static; order: -1; } }

.doc__paper h2 { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---- Application (apply.html) ---- */
.apply { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.apply__in { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.apply__head { margin-bottom: 2rem; }
.apply__head .lede { margin-top: 1rem; }
.survey { min-height: 22rem; }
.q { display: grid; gap: 2rem; }
.q[hidden] { display: none; }
.q legend, .q label:not(.chip):not(.opt) { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: .2rem; }
.q .hint { margin-top: -.3rem; }
.field--area { min-height: 9rem; padding: .8rem 1rem; line-height: 1.5; resize: vertical; }
.tracker__segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.tracker__segs li { height: 6px; border-radius: 3px; background: var(--chalk-3); }
.tracker__segs li.is-req { background: var(--line); }
.tracker__segs li.is-done { background: var(--ink-blue); }
.tracker__segs li.is-now { background: var(--ink-blue-2); outline: 2px solid var(--ink-blue-2); outline-offset: 1px; }
.tracker__label { color: var(--ink-2); margin-top: -1.1rem; }
.survey__nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .5rem; border-top: 1px dashed var(--line); }
.survey__nav .btn--blue { margin-left: auto; min-height: 50px; }
.survey__back[hidden], .survey__skip[hidden] { display: none; }
.survey__skip { background: none; border: 0; padding: .5rem 0; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.survey__skip:hover { color: var(--ink-blue); }
.q--done { gap: 1rem; justify-items: start; }
.q--done .stamp { --rot: -4deg; margin-bottom: .5rem; }
.q--done h2 { font-size: 1.7rem; letter-spacing: -0.03em; }
.q--done p { color: var(--ink-2); max-width: 44ch; }
.q--done a { color: var(--ink-blue); font-weight: 600; }
@media (max-width: 560px) {
  .survey__nav .btn--blue { width: 100%; margin-left: 0; order: -1; }
}
