/* StockLens site.
   Art direction: apple.com as the owner's reference. White and #f5f5f7 grounds,
   near-black type, centred headlines at weight 600 with tight tracking, short
   grey subheads, pill buttons, blue text links with a chevron, big image-led
   sections, small grey footnotes. Nothing of Apple's is used: no Apple marks,
   wording or assets, and the accent is the StockLens blue.

   The home page opens on a film of a meadow, from the owner's reference frame,
   and hands off into the white page below it. */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --white: #ffffff;
  --grey: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0544dd;
  --blue-lift: #2f6bff;
  --radius-xl: 28px;
  --shell: 1120px;
  --shell-wide: 1320px;
  --gutter: clamp(22px, 5vw, 48px);
  --nav-h: 48px;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* numbers use Geist too, with tabular figures (type.css), not a monospace face */
  --mono: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.t-hero { font-size: clamp(44px, 7.4vw, 92px); line-height: 1.04; letter-spacing: -0.022em; }
.t-1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.07; letter-spacing: -0.019em; }
.t-2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.017em; }
.sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--ink-2); font-weight: 400; letter-spacing: -0.008em; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blue); }
.note { font-size: 12px; line-height: 1.55; color: var(--ink-3); letter-spacing: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.center { text-align: center; }
.measure { max-width: 46ch; margin-inline: auto; }

/* ---------- layout ---------- */
.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.shell-wide { width: min(100% - var(--gutter) * 2, var(--shell-wide)); margin-inline: auto; }
section { position: relative; }
.band { padding-block: clamp(72px, 8.5vw, 128px); }
.band-grey { background: var(--grey); }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav { width: min(100% - var(--gutter) * 2, var(--shell-wide)); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.brand img { width: 20px; height: 20px; border-radius: 5px; }
.nav-links { display: flex; gap: 28px; font-size: 12.5px; opacity: .85; }
.nav-links a:hover { opacity: .55; }
.nav-right { margin-left: auto; }

/* ---------- links and buttons ---------- */
.link-blue { color: var(--blue); font-size: clamp(16px, 1.3vw, 19px); display: inline-flex; align-items: center; gap: 5px; }
.link-blue:hover { text-decoration: underline; }
.link-blue .chev { transition: transform .18s ease; }
.link-blue:hover .chev { transform: translateX(2px); }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 980px; padding: 12px 23px; font-size: 17px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-lift); }
.btn-outline { border: 1px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: rgba(5,68,221,.06); }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- hero: the meadow, home page only ---------- */
.hero { position: relative; height: min(100svh, 880px); min-height: 520px; overflow: hidden; background: #0544dd; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { z-index: 1; transition: opacity 1s ease; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(4,26,92,.38) 0%, rgba(4,26,92,.06) 32%, rgba(4,26,92,0) 60%, rgba(4,26,92,.18) 100%); }
.hero-copy { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: clamp(40px, 6.5vh, 84px); text-align: center; color: #fff; }
.hero-copy .t-hero { text-shadow: 0 2px 34px rgba(3,18,64,.4); }
.hero-copy .sub { color: #fff; font-weight: 500; text-shadow: 0 1px 20px rgba(3,18,64,.38); max-width: 24ch; }
.hero-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.hero-links .link-blue { color: #fff; }
.hero-scroll { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; z-index: 3; color: rgba(255,255,255,.9); font-size: 12px; animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(34px, 4vw, 56px); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; opacity: 0; transform: translateY(22px); }
.tile.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.tile-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ebebef; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-body { padding: clamp(18px, 2vw, 26px); display: grid; gap: 4px; }
.tile-obj { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.015em; }
.tile-co { font-size: 15px; color: var(--ink-2); }
.tile-tick { margin-top: 8px; font-family: var(--mono); font-size: 17px; color: var(--blue); }
.tile-tick.off { color: var(--ink-3); font-size: 13px; }

/* the frame the camera draws on a recognised object */
.frame { position: absolute; inset: 16% 14%; border: 2px solid rgba(255,255,255,.92); border-radius: 6px; box-shadow: 0 0 0 1px rgba(5,68,221,.3), 0 10px 40px -12px rgba(0,0,0,.45); opacity: 0; transform: scale(1.04); }
.tile.in .frame { opacity: 1; transform: none; border-color: var(--blue-lift); transition: opacity .6s ease .3s, transform .7s cubic-bezier(.2,.7,.2,1) .3s; }

/* ---------- the camera demonstration ---------- */
.shot { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: #ebebef; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-tall { aspect-ratio: 4 / 5; }
.shot .frame { opacity: 0; }
.shot.scanning .frame { opacity: 1; transform: none; border-color: rgba(255,255,255,.92); transition: opacity .5s ease, border-color .4s ease; }
.shot.locked .frame { opacity: 1; transform: none; border-color: var(--blue-lift); transition: opacity .5s ease, border-color .4s ease; }
.scan { position: absolute; inset: 16% 14%; z-index: 2; overflow: hidden; border-radius: 6px; opacity: 0; }
.shot.scanning .scan { opacity: 1; }
.scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, rgba(47,107,255,0), rgba(47,107,255,.3)); border-bottom: 2px solid rgba(255,255,255,.9); animation: sweep 2s cubic-bezier(.45,0,.4,1) infinite; }
@keyframes sweep { 0% { transform: translateY(-30%); } 100% { transform: translateY(330%); } }
.card {
  position: absolute; z-index: 4; left: 50%; translate: -50% 0; bottom: 18px;
  width: min(86%, 360px); background: rgba(255,255,255,.84); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}
.card.show { opacity: 1; transform: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-brand { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.pill { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 980px; background: var(--blue); color: #fff; }
.pill.dark { background: var(--ink); color: #fff; }
.card-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.card-rule { height: 1px; background: rgba(0,0,0,.09); margin: 11px 0; }
.card-market { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-sym { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.card-px { font-family: var(--mono); font-size: 15px; }

/* ---------- steps ---------- */
.step-sticky { position: sticky; top: calc(var(--nav-h) + 26px); }
.step { padding: clamp(24px, 3.4vw, 46px) 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .45s ease; }
.step.active { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.step h3 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -0.02em; margin: 10px 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 40ch; }

/* ---------- two-up comparison ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(34px, 4vw, 56px); }
.pane { border-radius: var(--radius-xl); padding: clamp(26px, 3vw, 46px); background: var(--white); min-height: clamp(240px, 26vw, 360px); display: flex; flex-direction: column; justify-content: space-between; }
.pane-old { background: #ebebef; }
.pane-new { background: var(--blue); color: #fff; }
.pane h3 { font-size: 15px; font-weight: 600; }
.pane-new h3 { color: rgba(255,255,255,.75); }
.list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.list li { display: flex; gap: 13px; align-items: baseline; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); }
.list li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.pane-new .list { gap: 2px; }
.pane-new .list li { color: #fff; font-size: clamp(26px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.pane-new .list li::before { color: rgba(255,255,255,.6); }

/* ---------- facts and verdict ---------- */

/* ---------- footer ---------- */
footer { background: var(--grey); padding-block: 38px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.foot-links { display: flex; gap: 22px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }

/* ---------- reveal ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rise.in { opacity: 1; transform: none; }
/* a cascade: each child of a [data-stagger] block arrives a beat after the last */
[data-stagger] > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-stagger].in > * { opacity: 1; transform: none; }
.rise-2 { transition-delay: .09s; }
.rise-3 { transition-delay: .18s; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero { height: 92svh; }
  .hero-copy { padding-top: 38px; }
  .hero-copy .sub { max-width: 22ch; }
  .tiles, .tiles-3, .compare { grid-template-columns: minmax(0, 1fr); }
  .step-sticky { position: static; }
  .step { opacity: 1; padding: 20px 0; }
  .card { width: min(92%, 340px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rise, .tile { opacity: 1; transform: none; }
}

/* =========================================================================
   Narrative scenes, glass controls, and the radius scale.
   Every visual below is drawn in the browser: no photographs, no generated
   imagery. Added after the owner asked for animated visuals that show the
   product's story in motion.
   ========================================================================= */

:root {
  /* one radius scale, medium: controls sit under cards, cards under scenes */
  --r-chip: 10px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-scene: 18px;
}

/* ---------- frosted glass controls ---------- */
.btn {
  border-radius: var(--r-btn);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 26px -18px rgba(8,16,40,.6);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), background .22s ease, box-shadow .22s ease, backdrop-filter .22s ease, filter .22s ease;
}
.btn:hover {
  transform: scale(1.035) translateY(-1px);
  filter: brightness(1.07);
  backdrop-filter: blur(9px) saturate(185%);
  -webkit-backdrop-filter: blur(9px) saturate(185%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 16px 34px -18px rgba(8,16,40,.55);
}
.btn:active { transform: scale(.995); }
.btn-primary { background: rgba(5,68,221,.86); color: #fff; border-color: rgba(255,255,255,.34); }
.btn-primary:hover { background: rgba(5,68,221,.94); }
.btn-outline { background: rgba(255,255,255,.5); color: var(--blue); border-color: rgba(5,68,221,.35); }
.btn-outline:hover { background: rgba(255,255,255,.72); }
.btn-glass { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-glass:hover { background: rgba(255,255,255,.28); }

/* ---------- contract address slot ---------- */
.ca {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
  padding: 6px 11px; border-radius: var(--r-chip);
  background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.09);
  backdrop-filter: blur(14px) saturate(160%); color: var(--ink-2);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ca:hover { background: rgba(255,255,255,.8); color: var(--ink); }
.ca b { font-weight: 500; color: var(--ink-3); }
.ca-copy { opacity: .55; }
.ca.is-copied .ca-copy { opacity: 1; color: var(--blue); }
.foot-ca { background: rgba(255,255,255,.7); }

/* ---------- the scene ---------- */
.scene { position: relative; }
.scene-stage {
  position: relative; aspect-ratio: 6 / 5; overflow: hidden;
  border-radius: var(--r-scene);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(5,68,221,.09), rgba(5,68,221,0) 62%),
    linear-gradient(180deg, #ffffff 0%, #eef0f5 100%);
  border: 1px solid rgba(0,0,0,.07);
  color: #2b2f36;
}
.scene-lg .scene-stage { aspect-ratio: 5 / 6; }
.scene-art { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the object waits, then settles when it is recognised */
.scene-object-fit { transform: translate(60px, 44px) scale(.62) translate(-60px, -50px); }
.scene-object { transform-origin: 60px 56px; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
[data-state="0"] .scene-object { transform: translateY(6px) scale(.97); }
[data-state="1"] .scene-object { transform: translateY(3px) scale(.99); }
[data-state="2"] .scene-object, [data-state="3"] .scene-object { transform: translateY(0) scale(1); }
[data-state="3"] .scene-object { color: var(--blue); }
.scene-object { color: #3d434d; }

.scene-grid { transition: opacity .6s ease; }
[data-state="0"] .scene-grid { opacity: .1; }

.scene-reticle { opacity: 0; transform: scale(1.06); transform-origin: 60px 54px; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), color .5s ease; color: #9aa1ad; }
[data-state="1"] .scene-reticle, [data-state="2"] .scene-reticle, [data-state="3"] .scene-reticle { opacity: 1; transform: none; }
[data-state="2"] .scene-reticle, [data-state="3"] .scene-reticle { color: var(--blue); }

.scene-beam, .scene-beam-edge { opacity: 0; }
[data-state="1"] .scene-beam, [data-state="1"] .scene-beam-edge { opacity: 1; animation: beam 1.6s cubic-bezier(.45,0,.4,1) infinite; }
@keyframes beam { 0% { transform: translateY(-8px); } 100% { transform: translateY(40px); } }

/* the chips arrive in the order the product resolves them */
.scene-chips { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 7px; }
.chip {
  border-radius: var(--r-chip); padding: 9px 11px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 10px 26px -20px rgba(8,16,40,.7);
  opacity: 0; transform: translateY(10px) scale(.99);
  transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.chip-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip-name { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.chip-pill { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 980px; background: var(--blue); color: #fff; }
.chip-pill-dark { background: var(--ink); }
.chip-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chip-k { font-size: 11px; color: var(--ink-3); }
.chip-v { font-size: 13px; font-weight: 500; }
.chip-market-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chip-sym { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.chip-sym-sm { font-size: 15px; font-weight: 600; display: block; }
.chip-px { font-size: 13px; }
.chip-none { background: rgba(29,29,31,.82); border-color: rgba(255,255,255,.18); color: #fff; }
.chip-none .chip-k { color: rgba(255,255,255,.6); }

[data-state="2"] [data-chip="brand"], [data-state="3"] [data-chip="brand"],
[data-state="2"] [data-chip="company"], [data-state="3"] [data-chip="company"],
[data-state="2"] [data-chip="isin"], [data-state="3"] [data-chip="isin"],
[data-state="3"] [data-chip="market"] { opacity: 1; transform: none; }
[data-chip="company"] { transition-delay: .08s; }
[data-chip="isin"] { transition-delay: .16s; }

/* ---------- the five steps collapsing into two ---------- */
.collapse { display: grid; gap: 9px; margin-top: 22px; }
.collapse-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.collapse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); opacity: .5; flex: none; }
.pane-new .collapse-dot { background: #fff; opacity: 1; }
.pane-new .collapse-row { color: #fff; font-size: 17px; font-weight: 500; }

/* ---------- radius alignment across the older blocks ---------- */
.tile, .pane, .shot { border-radius: var(--r-card); }
.tile-media { border-radius: 0; }
.nav-wrap .btn { box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }

@media (max-width: 860px) {
  .scene-lg .scene-stage { aspect-ratio: 6 / 5; }
  .scene-chips { left: 10px; right: 10px; bottom: 10px; }
}

/* =========================================================================
   The scrubbed film, and the resolution set in type.
   Replaces the drawn scenes: line art in a grid read as clipart.
   ========================================================================= */

/* ---------- scroll-scrubbed film ---------- */
.scrub { position: relative; height: 200svh; background: #05070d; }
.scrub-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scrub-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-veil { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 45%, rgba(5,7,13,0) 0%, rgba(5,7,13,.45) 70%, rgba(5,7,13,.86) 100%); }
.scrub-copy { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; }
.scrub-line { grid-area: 1 / 1; display: grid; gap: 16px; justify-items: center; will-change: opacity, transform; }
.scrub-line .sub { color: rgba(255,255,255,.88); max-width: 26ch; }
.scrub-line .t-hero, .scrub-line .t-1 { text-shadow: 0 4px 40px rgba(0,0,0,.5); }

/* ---------- resolution in type ---------- */
.resolve { margin-top: 14px; }
.res { display: grid; gap: 12px; }
.res-rail { height: 2px; border-radius: 2px; background: rgba(0,0,0,.08); overflow: hidden; }
.res-fill { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.res-lines { display: grid; gap: 2px; }
.res-line {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), color .4s ease;
}
.res-line.on { opacity: 1; transform: none; }
.res-k { font-size: 11px; color: var(--ink-3); min-width: 88px; }
.res-v { font-size: clamp(19px, 1.9vw, 24px); font-weight: 600; letter-spacing: -0.018em; }
.res-line[data-final] .res-v { color: var(--blue); font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.res-v-none { color: var(--ink-2) !important; font-family: var(--sans) !important; font-size: clamp(16px, 1.5vw, 19px) !important; }
.res-px { margin-left: auto; font-size: 14px; color: var(--ink-2); }
.res-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--ink-3); }
.res-state { color: var(--blue); }
.resolve[data-done="1"] .res-state { color: var(--ink-3); }

.resolve-lg .res { gap: 18px; }
.resolve-lg .res-line { padding: 12px 0; border-bottom: 1px solid var(--line); }
.resolve-lg .res-k { min-width: 120px; font-size: 12px; }
.resolve-lg .res-v { font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.025em; }
.resolve-lg .res-px { font-size: 16px; }

/* the tile is now type only, so it needs its own breathing room */
.tile { background: var(--white); border: 1px solid rgba(0,0,0,.07); }
.tile-body { padding: clamp(20px, 2.2vw, 30px); }
.tile-obj { font-size: clamp(20px, 1.9vw, 25px); }

@media (max-width: 860px) {
  .res-k { min-width: 72px; }
  .resolve-lg .res-k { min-width: 92px; }
}

/* the tile already names the object in its title, so the first line is dropped */
.tile .res-line[data-i="0"] { display: none; }
.tile .resolve { margin-top: 18px; }

/* =========================================================================
   Hero layout, matched to the owner's two reference frames.
   Controls float over the film rather than sitting in a bar: a round button
   and the wordmark at top left, a glass pill group at top right. The headline
   sits bottom left in two lines, the second in a high-contrast italic serif.
   A short paragraph and a pill CTA sit bottom right. Two dark glass cards
   arrive over the film as the shot pushes forward.
   ========================================================================= */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2.4vw, 30px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  background: rgba(16,22,32,.42); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), background .22s ease, backdrop-filter .22s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { transform: scale(1.06); background: rgba(16,22,32,.56); backdrop-filter: blur(10px) saturate(190%); }
.icon-grid { background: rgba(255,255,255,.9); color: var(--ink); border-color: rgba(255,255,255,.7); }
.icon-grid:hover { background: #fff; }

.wordmark-lockup { display: flex; align-items: center; gap: 9px; color: #fff; font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.wordmark-lockup img { width: 22px; height: 22px; border-radius: 6px; }

.pill-group, .pill-solo {
  display: flex; align-items: center; height: 40px; border-radius: 980px;
  background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 30px -22px rgba(6,14,30,.7);
  color: var(--ink); font-size: 13.5px; font-weight: 500;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), background .22s ease, backdrop-filter .22s ease, filter .22s ease;
}
.pill-group { padding: 0 6px; gap: 2px; }
.pill-group a { padding: 7px 14px; border-radius: 980px; color: var(--ink-2); transition: background .2s ease, color .2s ease; }
.pill-group a:hover { background: rgba(255,255,255,.8); color: var(--ink); }
.pill-solo { padding: 0 18px; }
.pill-solo:hover, .pill-group:hover { transform: scale(1.02); filter: brightness(1.05); backdrop-filter: blur(12px) saturate(190%); }
.topbar .ca { height: 40px; border-radius: 980px; background: rgba(255,255,255,.66); border-color: rgba(255,255,255,.72); color: var(--ink-2); }

/* ---------- hero copy ---------- */
.scrub-copy { position: absolute; inset: 0; color: #fff; }
.hero-head {
  position: absolute; left: clamp(18px, 3.2vw, 46px); bottom: clamp(26px, 5vh, 58px);
  max-width: min(58vw, 760px);
}
.hero-head h1 { font-size: clamp(38px, 6.4vw, 96px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 600; text-shadow: 0 6px 44px rgba(3,12,28,.5); }
.head-serif { font: inherit; letter-spacing: inherit; }

.hero-aside {
  position: absolute; right: clamp(18px, 3.2vw, 46px); bottom: clamp(26px, 5vh, 58px);
  width: min(38vw, 330px); display: grid; gap: 14px; justify-items: start;
}
.hero-aside p { margin: 0; font-size: clamp(13px, 1.15vw, 15.5px); line-height: 1.5; color: rgba(255,255,255,.9); text-shadow: 0 2px 18px rgba(3,12,28,.55); }
.pill-cta {
  display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border-radius: 980px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); color: #fff;
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 34px -22px rgba(0,0,0,.8);
  font-size: 14.5px; font-weight: 500;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), background .22s ease, backdrop-filter .22s ease, filter .22s ease;
}
.pill-cta:hover { transform: scale(1.04); background: rgba(255,255,255,.34); backdrop-filter: blur(10px) saturate(190%); filter: brightness(1.06); }

/* ---------- cards that arrive over the film ---------- */
.float-card {
  position: absolute; width: min(34vw, 300px);
  padding: 16px 18px 18px; border-radius: 18px;
  background: rgba(10,16,26,.74); border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 28px 60px -34px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.float-card h3 { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.float-card p { margin: 0; font-size: clamp(12.5px, 1.05vw, 14px); line-height: 1.45; color: rgba(255,255,255,.82); }
.float-a { left: clamp(18px, 3.2vw, 46px); top: clamp(88px, 18vh, 170px); }
.float-b { right: clamp(18px, 3.2vw, 46px); top: clamp(210px, 46vh, 400px); }
.scrub-cards-in .float-card { opacity: 1; transform: none; }
.scrub-cards-in .float-b { transition-delay: .14s; }

.float-dot {
  position: absolute; left: 50%; top: 58%; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.9); box-shadow: 0 0 0 6px rgba(255,255,255,.18);
  opacity: 0; transition: opacity .6s ease;
}
.scrub-cards-in .float-dot { opacity: 1; animation: dot 2.6s ease-in-out infinite; }
@keyframes dot { 50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }

@media (max-width: 860px) {
  .pill-group, .topbar .ca { display: none; }
  .hero-head { left: 18px; right: 18px; bottom: clamp(140px, 30vh, 260px); max-width: none; }
  .hero-aside { left: 18px; right: 18px; width: auto; bottom: clamp(26px, 6vh, 50px); }
  .float-card { width: calc(100% - 36px); }
  .float-a { top: 84px; }
  .float-b { top: auto; bottom: clamp(230px, 46vh, 330px); right: 18px; left: 18px; }
  .float-dot { display: none; }
}

/* the reference aligns every block left inside itself, not centred */
.scrub-copy { text-align: left; }
.hero-aside p, .float-card h3, .float-card p { text-align: left; }

/* On a phone the film fills the screen and the cards would bury the headline,
   so the hero keeps only the words; the same points are made in the sections below. */
@media (max-width: 860px) {
  .float-card, .float-dot { display: none; }
  .hero-head { bottom: clamp(150px, 32vh, 280px); }
  .hero-head h1 { font-size: clamp(40px, 13vw, 64px); }
  .hero-aside { gap: 16px; }
  .hero-aside p { font-size: 14.5px; }
}

/* =========================================================================
   Measured against the two reference frames (866x642 design box).
   Percentages below are the measured ones: gutter 2.1%, right column at
   70.1% with width 27.6%, headline 6.6% of width with the italic serif set
   at 1.15em of the roman, nav tray white at 9%, cards white at 13%.
   ========================================================================= */

.topbar { padding: 0.94% 2.2% 0 0.81%; align-items: flex-start; }
.topbar-left { gap: 8px; align-items: center; height: 40px; }
.topbar-right { gap: 8px; align-items: center; height: 40px; margin-top: 0.6%; }

/* the one opaque dark element in the design */
.icon-btn { width: clamp(34px, 4.6vw, 52px); height: clamp(34px, 4.6vw, 52px); background: #303030; border: 0; color: #c4c4c4; backdrop-filter: none; box-shadow: none; }
.icon-btn:hover { background: #3c3c3c; backdrop-filter: none; }
.icon-btn svg { width: 45%; height: 45%; stroke-width: 1.7; }
.icon-grid { background: #fff; color: #1d1d1f; width: clamp(30px, 3.5vw, 40px); height: clamp(30px, 3.5vw, 40px); }
.icon-grid:hover { background: #fff; }

.wordmark-lockup { gap: 8px; letter-spacing: -0.01em; font-weight: 500; align-items: baseline; }
.wordmark-lockup img { width: clamp(18px, 2.1vw, 24px); height: clamp(18px, 2.1vw, 24px); align-self: center; }

/* the tray reads as blur, not as white: a constant lift over any backdrop */
.pill-tray {
  display: flex; align-items: center; gap: 3px; height: clamp(30px, 3.5vw, 40px);
  padding: 0 4px; border-radius: 980px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: none;
}
.pill-tray a { padding: 0 12px; height: 76%; display: inline-flex; align-items: center; border-radius: 980px; font-size: clamp(11px, 1.15vw, 14px); font-weight: 500; color: rgba(255,255,255,.88); transition: background .2s ease, color .2s ease; }
.pill-tray a:hover { color: #fff; background: rgba(255,255,255,.14); }
.pill-tray a.is-current { background: #fff; color: #1d1d1f; }

.pill-white {
  display: inline-flex; align-items: center; height: clamp(30px, 3.5vw, 40px); padding: 0 15px;
  border-radius: 980px; background: #fff; color: #1d1d1f; border: 0;
  font-size: clamp(11px, 1.15vw, 14px); font-weight: 500; backdrop-filter: none; box-shadow: none;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), filter .22s ease;
}
.pill-white:hover { transform: scale(1.035); filter: brightness(.97); }
.topbar .ca { background: #fff; color: #1d1d1f; border: 0; height: clamp(30px, 3.5vw, 40px); }
.topbar .ca b { color: #86868b; }

/* ---------- headline: roman, then the same string 1.15em in italic serif ---------- */
.hero-head { left: 2.1vw; bottom: 3.1%; max-width: 72vw; }
.hero-head h1 { font-size: clamp(30px, 6.6vw, 92px); font-weight: 500; line-height: .93; letter-spacing: -0.04em; }
.head-serif { font-size: 1.15em; letter-spacing: -0.01em; }

/* ---------- right column: paragraph and CTA share one left edge ---------- */
.hero-aside { left: 70.1%; right: 2.3%; width: auto; bottom: 3.1%; gap: 3.4%; }
.hero-aside p { font-size: clamp(11px, 1.44vw, 17px); line-height: 1.28; color: rgba(255,255,255,.92); }
.pill-cta {
  height: clamp(30px, 3.9vw, 46px); padding: 0 clamp(14px, 1.8vw, 24px);
  background: #60a5fa; border: 0; color: #fff; backdrop-filter: none;
  box-shadow: 0 10px 30px -18px rgba(11,45,110,.9); font-size: clamp(12px, 1.3vw, 16px);
}
.pill-cta:hover { background: #7ab4fb; backdrop-filter: none; }

/* ---------- cards: a dark tint, no blur (user: no gaussian blur on the pop-ups),
   no shadow, locked ratio. Without a blur behind them the fill has to be dark
   enough for white type to hold over the moving film. ---------- */
.float-card {
  width: 27.7%; aspect-ratio: 15 / 8; padding: clamp(12px, 1.7vw, 22px);
  background: rgba(6,12,22,.56); border: 1px solid rgba(255,255,255,.16);
  box-shadow: none; border-radius: clamp(12px, 1.9vw, 22px);
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.float-card h3 { font-size: clamp(13px, 1.9vw, 23px); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.float-card p { font-size: clamp(10px, 1.35vw, 16px); line-height: 1.32; color: rgba(255,255,255,.88); }
.float-a { left: 1.96%; top: 21.9%; }
.float-b { right: 2.3%; left: auto; top: 48.6%; }

@media (max-width: 860px) {
  .hero-head { left: 5vw; right: 5vw; }
  .hero-aside { left: 5vw; right: 5vw; }
}

/* ---------- the rule, stated in real figures ---------- */
.rule-head { max-width: 58ch; }
.rule-head .sub { margin-top: clamp(12px, 1.2vw, 18px); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(30px, 3.6vw, 54px); }
.tier { padding: clamp(20px, 2.2vw, 32px); border-radius: var(--r-card); background: var(--grey); display: grid; gap: 10px; align-content: start; }
.tier-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--ink-3); }
.tier:first-child { background: var(--blue); }
.tier:first-child .tier-k { color: rgba(255,255,255,.72); }
.tier:first-child p { color: #fff; }
.tier p { margin: 0; font-size: clamp(13.5px, 1.2vw, 16px); line-height: 1.5; color: var(--ink-2); }

.chain { margin-top: clamp(14px, 1.6vw, 22px); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.chain-k { padding: 13px 20px; background: var(--grey); font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.chain-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 15px 20px; border-top: 1px solid var(--line); }
.chain-row span { font-size: 13.5px; color: var(--ink-3); }
.chain-row b { font-weight: 500; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: -0.015em; }
.chain-row b.mono { font-family: var(--mono); font-weight: 400; font-size: clamp(12.5px, 1.2vw, 15px); letter-spacing: 0; }

/* ---------- the refusal, as the log records it ---------- */
.refuse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 552px); gap: clamp(28px, 4.5vw, 74px); align-items: center; }
.screen-wide img { display: block; width: 100%; max-width: 546px; height: auto; }

@media (max-width: 860px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .refuse { grid-template-columns: minmax(0, 1fr); }
}
