/* StanceView site. Paper, forest green, and the sticker green that means "measured". */
:root {
  --paper: oklch(97.6% 0.008 120);
  --paper-2: oklch(94.8% 0.012 140);
  --ink: oklch(24% 0.025 165);
  --ink-2: oklch(42% 0.02 165);
  --line: oklch(86% 0.015 150);
  --forest: #245c48;
  --forest-700: #1c4a3a;
  --forest-900: #0f2a21;
  --forest-50: #f1f6f4;
  --dot: #3fd15a;
  --warn: #9a4a14;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(3.2rem, 8.4vw, 7rem); line-height: .92; }
h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1; }
h3 { font-size: 1.7rem; line-height: 1.1; }
h1 em, h2 em { font-style: italic; color: var(--forest); }
.eyebrow {
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px color-mix(in oklch, var(--dot) 25%, transparent); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.35em; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; transition: transform .25s var(--ease), background .25s;
}
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-700); transform: translateY(-1px); }
.btn-ghost { color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-ghost:hover { background: var(--forest-50); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1 var(--sans); letter-spacing: -.01em; color: var(--forest-700); }
.logo b { font-weight: 600; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.logo span { color: var(--forest); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--forest); }
.nav .btn { padding: .7em 1.1em; font-size: .92rem; }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .proof { margin-top: 30px; font-size: .92rem; color: var(--ink-2); display: flex; gap: 22px; flex-wrap: wrap; }
.hero .proof b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The measured photo */
.measure { position: relative; border-radius: 22px; overflow: hidden; background: var(--paper-2); box-shadow: 0 40px 80px -40px oklch(30% .05 165 / .45); aspect-ratio: 2 / 3; }
.measure img, .measure svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.measure .tag { font: 600 13px/1 var(--sans); }
.measure .plumb { stroke: var(--paper); stroke-width: 2.5; stroke-dasharray: 9 8; opacity: .9; }
.measure .seg { stroke: var(--dot); stroke-width: 3.5; stroke-linecap: round; }
.measure .ring { fill: none; stroke: var(--paper); stroke-width: 2.5; }
.sample { position: absolute; left: 14px; top: 14px; z-index: 2; background: oklch(20% .02 165 / .55); color: var(--paper); font: 500 .74rem/1 var(--sans); padding: 7px 10px; border-radius: 999px; backdrop-filter: blur(6px); }

.readouts { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; }
.ro {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: color-mix(in oklch, var(--paper) 92%, transparent); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 10px 14px; font-size: .9rem;
}
.js .ro { opacity: 0; transform: translateY(10px); }
.ro b { font-weight: 600; }
.ro .v { color: var(--forest); font-weight: 600; white-space: nowrap; }
.ro.small .v { color: var(--warn); }
.in .ro { animation: rise .7s var(--ease) forwards; }
.in .ro:nth-child(2) { animation-delay: .25s; }
.in .ro:nth-child(3) { animation-delay: .5s; }

/* drawing in */
.js .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.in .draw { animation: draw 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.in .pop { animation: pop .5s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Sections */
section { padding: clamp(72px, 10vw, 140px) 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head p { margin: 0; color: var(--ink-2); max-width: 32em; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); counter-reset: s; }
.step { counter-increment: s; }
.step figure { margin: 0 0 18px; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); position: relative; }
.step figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.step:hover figure img { transform: scale(1.03); }
.step h3::before { content: "0" counter(s); display: block; font: 600 .8rem/1 var(--sans); letter-spacing: .14em; color: var(--forest); margin-bottom: 12px; }
.step p { color: var(--ink-2); margin: 10px 0 0; max-width: 26em; }
.step:nth-child(2) { margin-top: clamp(0px, 6vw, 72px); }
.step:nth-child(3) { margin-top: clamp(0px, 12vw, 144px); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step:nth-child(n) { margin-top: 0; } .step figure { aspect-ratio: 4 / 3; } }

/* Honest band */
.honest { background: var(--forest-900); color: var(--paper); }
.honest h2 em { color: var(--dot); }
.honest .head p { color: oklch(84% .02 160); }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid oklch(40% .03 165); }
.rule { padding: 34px 34px 38px 0; border-bottom: 1px solid oklch(40% .03 165); display: grid; grid-template-columns: 1fr; gap: 14px; }
.rule:nth-child(odd) { border-right: 1px solid oklch(40% .03 165); }
.rule:nth-child(even) { padding-left: 34px; }
.rule h3 { color: var(--paper); }
.rule p { margin: 0; color: oklch(84% .02 160); max-width: 30em; }
.chip { justify-self: start; font: 600 .95rem/1 var(--sans); padding: 11px 14px; border-radius: 10px; background: oklch(30% .035 165); display: inline-flex; gap: 10px; align-items: baseline; }
.chip s { color: oklch(66% .02 160); text-decoration-thickness: 2px; font-weight: 500; }
.chip .ok { color: var(--dot); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } .rule:nth-child(n) { padding: 28px 0; border-right: 0; } }

/* Screens */
.screens { background: var(--paper-2); overflow: hidden; padding-bottom: clamp(110px, 12vw, 180px); }
.stage { position: relative; display: grid; grid-template-columns: 1fr; }
.tablet { background: oklch(22% .015 165); border-radius: 30px; padding: 16px; box-shadow: 0 50px 90px -40px oklch(25% .05 165 / .55); width: calc(100% - clamp(120px, 14vw, 180px)); }
.tablet .scr { background: #f0f4f2; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; grid-template-rows: auto 1fr; }
.phone { position: absolute; right: 0; bottom: -110px; width: clamp(190px, 19vw, 240px); background: oklch(22% .015 165); border-radius: 38px; padding: 10px; box-shadow: 0 40px 80px -30px oklch(25% .05 165 / .55); }
.phone .scr { background: #fff; border-radius: 30px; overflow: hidden; aspect-ratio: 9 / 19.5; }
@media (max-width: 860px) {
  .tablet { width: 100%; }
  .phone { position: relative; left: auto; bottom: auto; margin: -60px 0 0 auto; width: 62%; }
}

/* App chrome inside the tablet: copied from the app's look */
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e7e5e4; font-size: 12px; }
.app-top b { color: #1c4a3a; font-size: 13px; }
.app-body { display: grid; grid-template-columns: repeat(3, 1fr) 1.45fr; gap: 10px; padding: 12px; min-height: 0; }
.shot { position: relative; border-radius: 10px; overflow: hidden; background: #ddd; }
.shot img, .shot svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .lbl { position: absolute; left: 6px; top: 6px; background: #fff; font: 600 10px/1 var(--sans); padding: 4px 6px; border-radius: 5px; color: #245c48; }
.panel { background: #fff; border-radius: 10px; border: 1px solid #e7e5e4; padding: 12px; font-size: 11.5px; line-height: 1.35; overflow: hidden; }
.panel h4 { margin: 0 0 8px; font: 700 12px/1 var(--sans); }
.panel .row { display: grid; gap: 2px; padding: 6px 0; border-bottom: 1px solid #f0efee; }
.panel .row span:first-child { color: #57534e; }
.panel .row span:last-child { font-weight: 600; color: #245c48; }
.panel .row.small span:last-child { color: #a16207; }


/* phone questionnaire */
.q { padding: 34px 16px 16px; font-size: 11px; }
.q .studio { color: #245c48; font-weight: 700; font-size: 12px; }
.q h5 { font: 600 15px/1.2 var(--sans); margin: 8px 0 12px; }
.q .bar { height: 4px; background: #e7e5e4; border-radius: 4px; margin-bottom: 14px; }
.q .bar i { display: block; height: 100%; width: 40%; background: #245c48; border-radius: 4px; }
.q label { display: block; font-weight: 600; margin: 10px 0 5px; }
.q .opt { border: 1px solid #d6d3d1; border-radius: 9px; padding: 8px 10px; margin-bottom: 6px; }
.q .opt.on { border-color: #245c48; background: #f1f6f4; color: #1c4a3a; font-weight: 600; }
.q .saved { color: #78716c; margin-top: 10px; }

/* Compare + report */
.duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.pair figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; }
.pair figure img, .pair figure svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair figcaption { position: absolute; left: 10px; top: 10px; background: var(--paper); font: 600 .78rem/1 var(--sans); padding: 6px 9px; border-radius: 999px; }
.verdicts { margin-top: 18px; display: grid; gap: 8px; }
.verdict { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.verdict .v { font-weight: 600; color: var(--forest); text-align: right; }
.verdict .v.no { color: var(--ink-2); font-weight: 500; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

.paper {
  background: #fff; border-radius: 6px; padding: 26px 24px; box-shadow: 0 30px 60px -30px oklch(25% .05 165 / .4), 0 1px 0 var(--line);
  transform: rotate(-1.6deg); font-size: 12.5px; max-width: 420px; justify-self: center;
}
.paper { margin: 0; }
.paper figcaption { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e7e5e4; font-size: 11px; color: #78716c; }
.paper .ph { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #245c48; padding-bottom: 10px; margin-bottom: 14px; }
.paper .ph b { font: 400 22px/1 var(--serif); }
.paper .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.paper .mini div { aspect-ratio: 2 / 3; border-radius: 4px; background-size: cover; background-position: center top; position: relative; overflow: hidden; }
.paper .mask { position: absolute; left: 30%; right: 30%; top: 4%; height: 14%; background: oklch(80% .01 160); border-radius: 40%; }
.paper h6 { font: 700 12px/1 var(--sans); margin: 12px 0 6px; color: #1c4a3a; }
.paper p { margin: 0 0 6px; color: #44403c; }

/* Features list */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.fact h3 { font-size: 1.45rem; margin-bottom: 10px; }
.fact p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } .fact:nth-child(n) { padding: 24px 0; border-left: 0; } }

/* Big photo band */
.band { background: var(--forest-900); position: relative; min-height: clamp(420px, 60vw, 680px); display: flex; align-items: flex-end; color: var(--paper); padding: 0; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(18% .03 165 / .78) 0%, oklch(18% .03 165 / .35) 45%, transparent 70%); }
.band { align-items: center; }
.band .wrap { position: relative; z-index: 1; width: 100%; }
.band h2, .band p { max-width: 11em; }
.band p { max-width: 24em; }
@media (max-width: 700px) { .band::after { background: linear-gradient(180deg, transparent 30%, oklch(18% .03 165 / .85)); } .band { align-items: flex-end; } .band .wrap { padding-bottom: 40px; } }
.band h2 { max-width: 9.5em; }
.band h2 em { color: var(--dot); }
.band p { max-width: 34em; color: oklch(92% .01 150); margin: 16px 0 0; }

/* CTA */
.cta { text-align: left; }
.cta .box { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px 64px; align-items: end; }
.cta p { color: var(--ink-2); margin: 18px 0 0; max-width: 32em; }
.cta .ctas { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta small { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 860px) { .cta .box { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .88rem; color: var(--ink-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; margin-left: 20px; }
footer a:hover { color: var(--forest); }

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

@media (prefers-reduced-motion: reduce) {
  .reveal, .ro, .draw, .pop { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; animation: none !important; transition: none !important; }
}
.note { margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); max-width: 34em; }
@media (max-width: 560px) {
  .ro { flex-direction: column; gap: 3px; padding: 9px 12px; font-size: .86rem; }
  .readouts { gap: 6px; left: 10px; right: 10px; bottom: 10px; }
  .chip { flex-wrap: wrap; }
  .phone { width: 56%; margin-top: -30px; }
  .verdict { flex-direction: column; gap: 4px; }
  .verdict .v { text-align: left; }
  footer a:first-child { margin-left: 0; }
}

a:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; border-radius: 6px; }
.honest a:focus-visible { outline-color: var(--dot); }
section[id], main[id] { scroll-margin-top: 80px; }
@media (max-width: 860px) { section { padding: 64px 0; } .head { margin-bottom: 28px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hero sequence: four scenes that play like stories */
.seq { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--forest-900); box-shadow: 0 40px 80px -40px oklch(30% .05 165 / .5); isolation: isolate; }
.seq-bar { position: absolute; z-index: 5; top: 14px; left: 14px; right: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.seq-bar button { all: unset; cursor: pointer; display: block; width: 100%; padding-bottom: 6px; }
.seq-bar button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
.seq-bar i { display: block; height: 3px; border-radius: 3px; background: oklch(100% 0 0 / .35); overflow: hidden; position: relative; }
.seq-bar i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.seq-bar .done i::after { transform: scaleX(1); }
.seq-bar .now i::after { animation: fill var(--dur, 4.2s) linear forwards; }
.seq.paused .seq-bar .now i::after { animation-play-state: paused; }
.seq-bar span { display: block; margin-top: 7px; font: 600 .72rem/1 var(--sans); letter-spacing: .04em; color: oklch(100% 0 0 / .7); text-shadow: 0 1px 6px oklch(0% 0 0 / .35); }
.seq-bar .now span { color: var(--paper); }
@keyframes fill { to { transform: scaleX(1); } }

.scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.scene.on { opacity: 1; z-index: 1; }
.scene > img, .scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(15% .02 165 / .35) 0%, transparent 22%, transparent 55%, oklch(15% .03 165 / .75) 100%); pointer-events: none; }
.scene.on > img { animation: drift 6s var(--ease) both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.scene figcaption { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 20px; color: var(--paper); }
.scene figcaption b { display: block; font: 400 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); }
.scene figcaption span { display: block; margin-top: 6px; font-size: 1rem; color: oklch(94% .01 150); }
.scene.on figcaption { animation: rise .7s var(--ease) both .15s; }

/* scene 2: viewfinder, 1 2 3 count, shutter flash */
.finder { position: absolute; z-index: 2; left: 62%; top: 22%; width: 33%; height: 66%; }
.finder i { position: absolute; width: 22px; height: 22px; border: 3px solid var(--paper); }
.finder i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.finder i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.finder i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.finder i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.finder .count { position: absolute; right: 0; bottom: -34px; display: flex; gap: 6px; }
.finder .count em { font: 700 .8rem/1 var(--sans); font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: oklch(100% 0 0 / .25); color: var(--paper); }
.snap.on .finder { animation: focus 1s var(--ease) both .2s; }
.snap.on .count em:nth-child(1) { animation: tick .3s both .9s; }
.snap.on .count em:nth-child(2) { animation: tick .3s both 1.25s; }
.snap.on .count em:nth-child(3) { animation: tick .3s both 1.6s; }
.flash { position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; pointer-events: none; }
.snap.on .flash { animation: flash .25s both .9s, flash .25s both 1.25s, flash .25s both 1.6s; }
@keyframes focus { from { transform: scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tick { to { background: var(--dot); color: var(--forest-900); } }
@keyframes flash { 0% { opacity: 0; } 30% { opacity: .55; } 100% { opacity: 0; } }

/* scene 3: dots and lines draw themselves */
.meas .plumb { stroke: #0d8fa8; stroke-width: 4; stroke-dasharray: 14 12; }
.meas .seg { stroke: var(--dot); stroke-width: 5; stroke-linecap: round; }
.meas .ring { fill: none; stroke: var(--paper); stroke-width: 3; }
.meas .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.meas.on .draw { animation: draw 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
.meas .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.meas.on .pop { animation: pop .45s var(--ease) forwards; animation-delay: var(--d, 0s); }
.tagline { position: absolute; z-index: 3; left: 14px; right: 14px; top: 64px; display: grid; gap: 6px; }
.tagline .ro { opacity: 0; transform: translateY(8px); }
.meas.on .tagline .ro { animation: rise .6s var(--ease) forwards; }
.meas.on .tagline .ro:nth-child(1) { animation-delay: 1.3s; }
.meas.on .tagline .ro:nth-child(2) { animation-delay: 1.7s; }

/* scene 4: the report card pops up */
.card-pop { position: absolute; z-index: 3; left: 18px; top: 60px; width: min(44%, 220px); background: var(--paper); border-radius: 14px; padding: 14px 16px; box-shadow: 0 20px 40px -16px oklch(15% .03 165 / .6); display: grid; gap: 4px; font-size: .88rem; opacity: 0; transform: translateY(14px) scale(.96); }
.scene.on .card-pop { animation: rise .7s var(--ease) forwards .5s; }
.card-pop small { color: var(--ink-2); font-size: .72rem; }
.card-pop b { font-weight: 700; margin-top: 4px; }
.card-pop .was { color: var(--ink-2); }
.card-pop .now { color: var(--forest); font-weight: 700; font-size: 1.05rem; }

@media (max-width: 900px) { .seq { aspect-ratio: 4 / 5; max-width: 560px; } }
@media (prefers-reduced-motion: reduce) { .scene .draw { stroke-dashoffset: 0 !important; } .scene .pop { transform: none !important; } .tagline .ro, .card-pop { opacity: 1 !important; transform: none !important; } }

/* Lines on a measured photo, shared by the story and the comparison */
.meas .ref, .still .ref { stroke: var(--paper); stroke-width: 3; stroke-dasharray: 10 9; opacity: .9; }
.still .plumb { stroke: #0d8fa8; stroke-width: 5; stroke-dasharray: 16 13; }
.still .seg { stroke: var(--dot); stroke-width: 6; stroke-linecap: round; }
.still .ring { fill: none; stroke: var(--paper); stroke-width: 3.5; }
.meas .tagline { top: auto; bottom: 120px; }

/* The real assessment screen, redrawn */
.app .app-body { grid-template-columns: 1.05fr 1fr; gap: 12px; padding: 12px; }
.vcard { background: #fff; border: 1px solid #e7e5e4; border-radius: 10px; padding: 10px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; min-height: 0; }
.vhead { display: flex; justify-content: space-between; font-size: 12px; }
.vhead span { color: #a8a29e; font-size: 11px; }
.pills { display: flex; gap: 6px; }
.pills span { font: 600 10.5px/1 var(--sans); padding: 6px 9px; border-radius: 999px; color: #57534e; background: #f5f5f4; }
.pills .on { background: #245c48; color: #fff; }
.vphoto { position: relative; border-radius: 8px; overflow: hidden; background: #ece7e2; min-height: 0; }
.vphoto img, .vphoto svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vphoto .bandline { stroke: #7f9aa3; stroke-width: 2; stroke-dasharray: 8 8; opacity: .6; }
.vphoto .bandtag { fill: #fff; opacity: .85; }
.vphoto .bandtxt { font: 600 28px var(--sans); fill: #4a423c; text-anchor: middle; }
.vphoto .plumbtxt { font: 700 26px var(--sans); fill: #0d8fa8; }
.vphoto .dots circle { fill: none; stroke: #fff; stroke-width: 3; }
.vphoto .side { position: absolute; top: 8px; font: 700 10px/1 var(--sans); background: #3f3a36; color: #fff; padding: 4px 6px; border-radius: 4px; }
.vphoto .side.l { left: 8px; } .vphoto .side.r { right: 8px; }
.vbtns { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
.vbtns span { font: 600 11px/1 var(--sans); padding: 8px 10px; border-radius: 999px; border: 1px solid #d6d3d1; text-align: center; }
.vbtns .primary { background: #245c48; color: #fff; border-color: #245c48; }
.panel .row.quiet span:last-child { color: #a8a29e; font-weight: 500; }
.panel .ta { border: 1px solid #d6d3d1; border-radius: 8px; padding: 8px; color: #44403c; margin-bottom: 8px; }
.btn-mini { display: inline-block; font: 600 10.5px/1 var(--sans); padding: 7px 10px; border-radius: 999px; border: 1px solid #d6d3d1; }

/* The comparison card, as the app shows it */
.ccard { background: #fff; border: 1px solid #e7e5e4; border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 30px 60px -36px oklch(25% .05 165 / .35); font-size: .92rem; }
.ccard h3 { font: 700 1rem/1.2 var(--sans); }
.ccard h3 span { font-weight: 400; color: #78716c; }
.cnote { margin: 6px 0 8px; font-size: .8rem; color: #78716c; }
.crow { padding: 12px 0; border-top: 1px solid #f0efee; }
.crow b { display: block; font-weight: 600; }
.crow b i { font-style: normal; font-weight: 400; color: #a8a29e; margin-left: 6px; font-size: .82rem; }
.crow p { margin: 4px 0 0; color: #57534e; }
.crow strong { color: #1c1917; }
.crow .moved { color: #1c4a3a; font-weight: 700; }
.crow .same { color: #a8a29e; }
.ccard .note { border-top: 1px solid #f0efee; padding-top: 12px; margin-top: 4px; font-size: .8rem; }
@media (max-width: 640px) { .app .app-body { grid-template-columns: 1fr; } .app .panel { display: block; } .tablet .scr.app { aspect-ratio: auto; } .vphoto { aspect-ratio: 3 / 4; } }

.pair figure { aspect-ratio: 25 / 26; }
.zoom .ref { stroke-width: 2.5; }
.zoom .seg { stroke-width: 4.5; }
.zoom .ring { stroke-width: 2.5; }
.zoom circle { r: 13px; }
@media (max-width: 560px) { .meas .tagline { bottom: 132px; } .scene figcaption b { font-size: 2.2rem; } }

/* Legal pages */
.doc { padding: clamp(40px, 7vw, 90px) 0 clamp(64px, 9vw, 120px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 12px; }
.doc .updated { color: var(--ink-2); font-size: .92rem; margin: 0 0 36px; }
.doc .short { background: var(--forest-50); border-radius: 16px; padding: 22px 24px; margin-bottom: 44px; }
.doc .short h2 { font: 700 1rem/1.3 var(--sans); margin: 0 0 10px; }
.doc .short ul { margin: 0; padding-left: 1.1em; }
.doc .short li { margin: 6px 0; }
.doc h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 44px 0 12px; }
.doc h3 { font: 700 1.02rem/1.3 var(--sans); margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 10px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--ink-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 560px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { border: 0; padding: 2px 0; } .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); } .doc td:first-child { font-weight: 600; } }
