/* media|RED — editorial revamp. Zalando Sans + JetBrains Mono, one red (#C00000).
   Opens on paper like a feature story; a lit fuse runs beside the read and ends in the burst. */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --red: #C00000;
  --paper: #EFEEE9;
  --ink-l: #141414;
  --gutter: clamp(20px, 5vw, 96px);
  --max: 1600px;
  --col: 680px;
  --pad: clamp(96px, 11vw, 190px);
  --nav-h: 76px;
  --sans: 'Zalando Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

[data-theme="light"] { --bg: var(--paper); --ink: var(--ink-l); --acc: var(--red); --line: #CFCDC5; --block: var(--ink-l); --block-ink: var(--paper); }
[data-theme="dark"]  { --bg: var(--black); --ink: var(--white); --acc: var(--red); --line: rgba(255,255,255,.28); --block: var(--white); --block-ink: var(--black); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-l); font-family: var(--sans); font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, dt, ol, figure, blockquote { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
em { font-style: normal; }
section, article { position: relative; background: var(--bg); color: var(--ink); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.acc { color: var(--acc); }

.body { font-size: clamp(18px, 1.3vw, 22px); line-height: 1.5; max-width: 34em; }
.h-statement { font-weight: 500; font-size: clamp(26px, 2.6vw, 46px); line-height: 1.2; letter-spacing: -.025em; max-width: 24em; }
.h-giant { font-weight: 800; font-stretch: 95%; font-size: clamp(52px, 8.6vw, 172px); line-height: .92; letter-spacing: -.04em; }
.block-label { display: inline-block; background: var(--block); color: var(--block-ink); font-family: var(--mono); font-weight: 500; font-size: clamp(14px, 1vw, 17px); letter-spacing: .1em; text-transform: uppercase; padding: .3em .55em .26em; white-space: nowrap; line-height: 1.2; }

/* reveals */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; padding-right: .06em; margin-right: -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.split.in .w > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@keyframes march { to { background-position: 31.11px 0; } }

/* ── nav ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 40px; padding-inline: var(--gutter); color: var(--ink-l); background: var(--paper); transition: color .35s, background-color .35s, transform .5s var(--ease); }
.nav::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: currentColor; opacity: 0; transition: opacity .35s; }
body.scrolled .nav::after { opacity: .18; }
body.nav-hide .nav { transform: translateY(-100%); }
body[data-nav="dark"] .nav { color: var(--white); background: var(--black); }
.nav-logo { display: block; width: clamp(128px, 10vw, 160px); flex: none; }
/* one-colour wordmark: it takes the nav colour, black on paper and white over the dark sections */
.nav-mark { display: block; width: 100%; aspect-ratio: 361.61 / 79.24; background: currentColor; -webkit-mask: url(brand/mr-logo-c00.svg) no-repeat 0 0 / contain; mask: url(brand/mr-logo-c00.svg) no-repeat 0 0 / contain; }
.nav-links { display: flex; gap: clamp(20px, 2.4vw, 40px); margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 17px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 16px; padding: 11px 18px; background: var(--ink-l); color: var(--paper); transition: background .2s, color .2s; }
body[data-nav="dark"] .nav-cta { background: var(--white); color: var(--black); }
.nav-cta:hover { background: var(--red) !important; color: var(--white) !important; }
.nav-cta span { transition: transform .3s var(--ease); }
.nav-cta:hover span { transform: translateX(4px); }

/* ═══ OPENING ═══ */
main { position: relative; }
.open { padding-top: var(--nav-h); padding-bottom: 0; }
.open-hero { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding-bottom: var(--nav-h); }
.open-statement, .big-statement { font-weight: 500; font-stretch: 100%; font-size: clamp(30px, 3.5vw, 64px); line-height: 1.16; letter-spacing: -.028em; max-width: 21em; }
.open-statement .acc, .big-statement .acc { font-weight: 700; }
.big-statement { padding-block: clamp(48px, 6vw, 96px); }
.open-statement i { font-style: italic; }
.caret { display: inline-block; width: .5em; height: .82em; margin-left: .18em; vertical-align: -.06em; visibility: hidden; }
.photo { position: relative; background: var(--black); margin: 0; overflow: hidden; }
/* photos sit a little oversized and drift against the scroll */
.photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.photo-wide { margin-top: clamp(56px, 7vw, 112px); aspect-ratio: 21 / 9; }
.photo-side { aspect-ratio: 4 / 3; }

/* line-by-line reveal */
.lines .wd { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.lines .wd.in { opacity: 1; transform: none; }

/* ═══ STORY ═══ */
.story { padding-top: clamp(96px, 12vw, 200px); }
.fuse { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; pointer-events: none; z-index: 6; }
.story > *:not(.fuse) { position: relative; z-index: 2; }
.story-kicker { font-family: var(--mono); font-size: clamp(14px, 1vw, 16px); letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.story-title { font-weight: 700; font-size: clamp(38px, 4.3vw, 74px); letter-spacing: -.035em; line-height: 1.02; margin-bottom: .7em; }
.col { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.col p { font-size: clamp(20px, 1.45vw, 25px); line-height: 1.6; letter-spacing: -.005em; }
.col p { margin-top: 0; }

/* charts — Economist-style figure furniture */
.chart { max-width: calc(860px + 2 * var(--gutter)); margin: clamp(80px, 9vw, 140px) auto; padding-inline: var(--gutter); }
.chart-head { display: grid; gap: 6px; padding-top: 24px; position: relative; }
.chart-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease) .15s; }
.chart.in .chart-head::before { transform: scaleX(1); }
.chart-title { font-weight: 700; font-size: clamp(21px, 1.6vw, 26px); letter-spacing: -.01em; }
.chart-sub { font-size: clamp(16px, 1.1vw, 18px); max-width: 44em; line-height: 1.45; }
.chart-key { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 14px; }
.chart-key i { display: inline-block; width: 22px; height: 12px; }
.chart-key .key-hatch { margin-left: 14px; }
.key-solid { background: var(--ink); }
.key-hatch { background: repeating-linear-gradient(-45deg, var(--red) 0 2px, transparent 2px 6px); box-shadow: inset 0 0 0 1.5px var(--red); }
.chart-source { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }

.cg-plot { position: relative; margin-top: 30px; display: grid; gap: 18px; padding-top: 40px; }
.cg-axis { position: absolute; left: 140px; right: 64px; top: 0; bottom: 0; }
.cg-axis span { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 100%); font-family: var(--mono); font-size: 14px; border-left: 1px dotted var(--line); padding-left: 0; }
.cg-axis span { transform: none; text-indent: -.3em; }
.cg-row { position: relative; display: grid; grid-template-columns: 140px 1fr 64px; align-items: center; }
.cg-name { font-weight: 600; font-size: 17px; }
.cg-track { position: relative; height: clamp(36px, 3vw, 46px); }
.cg-bar { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * var(--p, 0) * 100%); background: var(--ink); }
.cg-gap { position: absolute; left: 10%; top: 0; bottom: 0; width: calc(90% * var(--g, 0)); background: repeating-linear-gradient(-45deg, var(--red) 0 3px, transparent 3px 10px); animation: march 1.4s linear infinite; box-shadow: inset 0 0 0 1.5px var(--red); }
.cg-val { text-align: right; font-weight: 800; font-stretch: 78%; font-size: clamp(22px, 1.8vw, 30px); }
.cg-row:nth-of-type(2) .cg-val { color: var(--red); }
.cg-note { position: relative; margin-left: calc(140px + (100% - 204px) * .1); font-weight: 700; font-size: clamp(18px, 1.4vw, 22px); color: var(--red); opacity: var(--n, 0); padding-left: 14px; border-left: 2px solid var(--red); background: var(--paper); justify-self: start; padding-right: 10px; }

/* waterfall: the advisers' pieces step up; the narrative is the whole priced story */
.chart-key.kv { flex-wrap: wrap; gap: 8px 22px; }
.kv > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* the narrative is drawn as running film stock: red with sprocket holes down both edges */
.film { background-color: var(--red); background-image: linear-gradient(var(--paper) 0 7px, transparent 7px), linear-gradient(var(--paper) 0 7px, transparent 7px); background-size: 7px 16px; background-repeat: repeat-y; background-position: 6px 0, calc(100% - 13px) 0; animation: reel 1.8s linear infinite; color: var(--white); }
@keyframes reel { to { background-position: 6px -16px, calc(100% - 13px) -16px; } }
@media (prefers-reduced-motion: reduce) { .film { animation: none; } }
.key-film { background-color: var(--red); background-image: linear-gradient(var(--paper) 0 3px, transparent 3px), linear-gradient(var(--paper) 0 3px, transparent 3px); background-size: 3px 6px; background-repeat: repeat-y; background-position: 2px 1px, calc(100% - 2px) 1px; }
.film-lab { display: grid; gap: 4px; justify-items: center; padding: 0 26px; font-style: normal; text-align: center; }
.film-lab b { font-weight: 800; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.1; }
.film-lab em { font-family: var(--mono); font-size: 14px; }

.vx { display: grid; margin-top: 12px; text-align: center; }
.vx span { display: grid; gap: 2px; align-content: start; font-weight: 600; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.1; }
.vx em { font-family: var(--mono); font-weight: 400; font-size: 14px; }
.vx .whole { font-weight: 800; }

.wf { position: relative; margin-top: 56px; height: clamp(300px, 40vw, 440px); display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.8fr; border-bottom: 1.5px solid var(--ink); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 25%; }
.wf-x { grid-template-columns: 1fr 1fr 1fr 1fr 1.8fr; }
.wf-col { position: relative; }
.wf-bar { position: absolute; left: 14%; right: 14%; bottom: calc(var(--lo) * 1%); height: calc((var(--hi) - var(--lo)) * 1%); display: flex; align-items: center; justify-content: center; background-color: var(--ink); clip-path: inset(calc((1 - var(--g, 0)) * 100%) 0 0 0); }
.wf-us .wf-bar { left: 8%; right: 8%; background-color: var(--red); }
/* the advisers' pieces drop into the base of the whole story, stacked */
.wf-us .wf-pc { background-color: var(--line); border-top: 2px solid var(--paper); clip-path: none; opacity: var(--g, 0); transform: translateY(calc((1 - var(--g, 0)) * -48px)); }.wf-col::after { content: ""; position: absolute; left: 86%; bottom: calc(var(--hi) * 1%); width: calc(14% + 8% * var(--nw, 1)); border-top: 1.5px dotted var(--ink); opacity: var(--g, 0); }
.wf-us::after { display: none; }
.wf-v { position: absolute; left: 0; right: 0; bottom: calc(var(--hi) * 1% + 8px); text-align: center; color: var(--red); font-weight: 800; font-stretch: 78%; font-size: clamp(24px, 2vw, 34px); line-height: 1; opacity: var(--g, 0); }

@media (max-width: 640px) {
  .vx em { display: none; }
  .vx span:not(.whole) { writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; }
  .wf-bar { left: 8%; right: 8%; }
  .wf-col::after { left: 92%; width: calc(8% + 8% * var(--nw, 1)); }
  .wf-bar .film-lab em { display: none; }
  .wf-bar .film-lab { padding: 0 18px; }
  .wf-bar .film-lab b { writing-mode: vertical-rl; transform: rotate(180deg); }
}

.crossing { height: clamp(260px, 40vh, 420px); }
.dither { height: 96px; position: relative; overflow: hidden; margin-top: clamp(64px, 8vw, 120px); }
.dither svg { display: block; position: absolute; top: 0; left: 50%; width: 2880px; height: 100%; transform: translateX(-50%); }
.dither.up { margin-top: 0; }
.dark-run { background: var(--black); color: var(--white); padding-bottom: clamp(56px, 8vw, 120px); }
.dark-run .col p { color: var(--white); }
.dark-run > .col:first-child { padding-top: clamp(48px, 6vw, 96px); }
.dark-run .col + .col { margin-top: 1.3em; }
.dark-run .trigger { margin-top: .6em; font-weight: 700; font-size: clamp(34px, 3.4vw, 60px); letter-spacing: -.03em; line-height: 1; }
.boom { position: relative; height: clamp(600px, 96svh, 1040px); overflow: hidden; }
.boom-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.boom-line-unused { position: absolute; z-index: 2; left: 0; right: 0; top: 3%; text-align: center; font-weight: 800; font-stretch: 95%; font-size: clamp(40px, 6vw, 112px); letter-spacing: -.04em; line-height: 1; opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.boom.lit .boom-line { opacity: 1; transform: none; transition-delay: .55s; }


.growth { position: relative; margin: 0 var(--gutter); height: clamp(360px, 62vh, 640px); }
.growth svg { position: absolute; inset: 0; }
.growth .g-grid { stroke: rgba(255,255,255,.2); stroke-width: 1; }
.growth .g-base { stroke: rgba(255,255,255,.6); stroke-width: 1; }
.growth .g-area { fill: url(#g-hatch); opacity: .9; }
.growth .g-line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; }
.growth .g-lead { stroke: var(--white); stroke-width: 1.2; stroke-dasharray: 2 4; opacity: 0; transition: opacity .4s; }
.growth.past .g-lead { opacity: 1; }
.growth-head { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; background: var(--red); z-index: 2; }
.growth-a { position: absolute; top: 0; left: var(--mx, 60%); transform: translateX(-50%); font-family: var(--mono); font-size: clamp(14px, 1vw, 16px); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .5s; }
.growth.past .growth-a { opacity: 1; }

/* ═══ after the boom: buttoned up ═══ */
.sec-head { position: relative; display: flex; align-items: center; gap: 18px; padding-top: 18px; margin-bottom: clamp(36px, 4.5vw, 72px); }
.sec-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.sec-head.in::before { transform: scaleX(1); }
.dark-run .sec-head::before { background: var(--white); }
.sec-title { font-weight: 700; font-size: clamp(20px, 1.6vw, 26px); letter-spacing: -.01em; }
.pg { display: grid; grid-template-columns: repeat(9, 1fr); width: 40px; height: 40px; flex: none; }
.pg i.on { background: var(--red); }

.work { background: transparent; padding-block: clamp(96px, 10vw, 180px) clamp(96px, 9vw, 160px); }
.cam { display: grid; grid-template-columns: repeat(12, 1fr); width: 48px; height: 32px; flex: none; }
.cam i.on { background: var(--red); }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.work-lede { font-size: clamp(22px, 1.8vw, 30px); line-height: 1.4; letter-spacing: -.012em; }
.work-list { margin-top: clamp(32px, 3.5vw, 56px); border-top: 1px solid var(--line); }
.work-list li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(20px, 1.6vw, 27px); font-weight: 500; letter-spacing: -.015em; opacity: 0; transform: translateX(-24px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.work-list.in li { opacity: 1; transform: none; }
.work-list li span { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--red); }
.steps-k { padding: 0 0 16px; font-weight: 700; font-size: clamp(18px, 1.3vw, 22px); }
.step { position: relative; display: grid; grid-template-columns: 3.4em 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease) .2s; }
.step.in::before { transform: scaleX(1); }
.step-num { font-weight: 900; font-stretch: 75%; font-size: clamp(30px, 2.4vw, 42px); line-height: .9; color: var(--red); }
.step h3 { font-weight: 700; font-size: clamp(19px, 1.4vw, 24px); letter-spacing: -.015em; }
.step p { margin-top: 6px; font-size: clamp(16px, 1.1vw, 18px); line-height: 1.5; }

/* who we serve — pricing table */
.serve { padding-block: var(--pad); }
.plans { margin-top: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); border: 1.5px solid var(--ink); }
.plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: clamp(24px, 2.4vw, 40px); position: relative; }
.plan + .plan { border-left: 1.5px solid var(--ink); }
.plan::before { content: ""; position: absolute; inset: -1.5px -1.5px auto -1.5px; height: 6px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.plan:hover::before { transform: scaleX(1); }
.plan-head { display: grid; gap: 12px; align-content: start; padding-bottom: 28px; }
.plan-num { justify-self: start; font-family: var(--mono); font-weight: 700; font-size: 16px; background: var(--ink); color: var(--bg); padding: 3px 9px; transition: background .3s, color .3s; }
.plan:hover .plan-num { background: var(--red); color: var(--white); }
.plan-name { font-weight: 700; font-stretch: 95%; font-size: clamp(28px, 2.4vw, 44px); line-height: 1; letter-spacing: -.025em; }
.plan-lede { font-size: clamp(17px, 1.2vw, 20px); line-height: 1.4; }
.plan-term { display: flex; align-items: baseline; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-big { font-weight: 850; font-stretch: 78%; font-size: clamp(64px, 6vw, 112px); line-height: .85; letter-spacing: -.02em; }
.plan-unit { font-weight: 600; font-size: clamp(18px, 1.4vw, 24px); }
.plan-type { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--red); }
.range { display: block; position: relative; height: 22px; margin-top: 22px; border: 1.5px solid var(--ink); margin-right: 8px; }
.range::after { content: ""; position: absolute; right: -6px; top: 5px; bottom: 5px; width: 4px; background: var(--ink); }
.range i { position: absolute; top: 3px; bottom: 3px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.range .r-solid { left: 3px; width: calc((100% - 6px) * var(--min)); background: var(--red); transition-delay: calc(var(--c, 0) * 150ms + 200ms); }
.range .r-hatch { left: calc(3px + (100% - 6px) * var(--min)); width: calc((100% - 6px) * (var(--max) - var(--min))); background: repeating-linear-gradient(-45deg, var(--red) 0 3px, transparent 3px 9px); animation: march 1.4s linear infinite; transition-delay: calc(var(--c, 0) * 150ms + 900ms); }
.plans.in .range i { transform: scaleX(1); }
.range-scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 14px; }
.plan-rows { margin-top: 28px; }
.plan-rows > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 16px 0; border-top: 1px dotted var(--ink); }
.plan-rows dt { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.plan-rows dd { font-size: clamp(16px, 1.1vw, 18px); line-height: 1.42; }
.plan-rows dd.out { font-weight: 700; }
.plan-cta { align-self: end; margin-top: 28px; display: flex; justify-content: space-between; align-items: center; text-decoration: none; font-weight: 700; font-size: 17px; padding: 15px 18px; border: 1.5px solid var(--ink); transition: background .2s, border-color .2s; }
.plan-cta:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* partners */
.partners { padding-top: var(--pad); padding-bottom: clamp(48px, 5vw, 80px); overflow: hidden; }
.board { margin-top: clamp(48px, 5vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); }
.cell { position: relative; aspect-ratio: 16 / 10; perspective: 1000px; background: var(--paper); }
.card { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--ease); transform: rotateX(var(--rot, 0deg)); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); transition: background .25s; }
.face.back { transform: rotateX(180deg); }
.face img { position: absolute; left: 50%; top: 50%; width: 64%; height: 48%; translate: -50% -50%; object-fit: contain; transition: opacity .2s; }
.face img.wht { opacity: 0; }
.face img[src*="hubble"].blk { filter: brightness(0); }
.face img[src*="hubble"].wht, .peek img[src*="hubble"] { filter: brightness(0) invert(1); }
.face .nm { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity .25s; }
.cell:hover .face { background: var(--ink-l); }
.cell:hover .face img.blk { opacity: 0; }
.cell:hover .face img.wht { opacity: 1; }
.cell:hover .face .nm { opacity: 1; }
.board .cell { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--n) * 50ms); }
.board.in .cell { opacity: 1; transform: none; }
.roll { margin-top: clamp(48px, 5vw, 88px); border-block: 1.5px solid var(--ink); padding: clamp(12px, 1.4vw, 22px) 0; display: grid; gap: 6px; }
.roll-row { overflow: hidden; white-space: nowrap; }
.roll-track { display: inline-flex; width: max-content; animation: roll var(--dur, 80s) linear infinite; }
.roll-row.rev .roll-track { animation-direction: reverse; }
.roll:hover .roll-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.roll-name { display: inline-flex; align-items: baseline; gap: .45em; padding-right: .45em; font-weight: 700; font-stretch: 95%; font-size: clamp(36px, 4.6vw, 88px); line-height: 1.1; letter-spacing: -.03em; cursor: default; transition: color .15s; }
.roll-name::after { content: "/"; color: var(--red); font-weight: 400; }
.roll-name:hover { color: var(--red); }
.peek { position: fixed; left: 0; top: 0; z-index: 70; width: clamp(240px, 22vw, 340px); aspect-ratio: 16 / 10; background: var(--red); pointer-events: none; opacity: 0; transform: translate(20px, 20px) scale(.85); transition: opacity .15s, transform .3s var(--ease); }
.peek.on { opacity: 1; transform: translate(20px, 20px) scale(1); }
.peek img { position: absolute; left: 50%; top: 46%; width: 68%; height: 50%; translate: -50% -50%; object-fit: contain; }
.peek span { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }

/* close: the call to action */
.close { padding-block: clamp(96px, 10vw, 180px) clamp(40px, 4vw, 72px); }
.ft-cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.ft-lede { font-weight: 500; font-size: clamp(26px, 2.6vw, 46px); line-height: 1.2; letter-spacing: -.025em; }
.ft-act { display: grid; gap: 22px; justify-items: start; }
.btn { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; background: var(--white); color: var(--black); font-weight: 700; font-size: clamp(18px, 1.3vw, 21px); padding: 18px 26px; transition: background .2s, color .2s; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover { background: var(--red); color: var(--white); }
.btn:hover span { transform: translateX(6px); }
.status-line { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: clamp(14px, 1vw, 16px); letter-spacing: .1em; text-transform: uppercase; }
.status-line strong { font-weight: 700; }
.close-glyph { display: grid; grid-template-columns: repeat(11, 1fr); width: 33px; height: 33px; }
.close-glyph i.on { background: var(--red); }

/* footer: links over a dark gray valuation line that climbs as you arrive */
.footer { --dk: #333333; --edge: var(--gutter); position: relative; overflow: hidden; background: var(--black); color: var(--white); }
/* no container down here: the footer runs nearly edge to edge */
.ft-in { padding: clamp(24px, 3vw, 56px) var(--edge) 0; }
.ft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.ft-col { display: grid; gap: 12px; align-content: start; }
.ft-col a { position: relative; justify-self: start; display: inline-flex; gap: 12px; align-items: baseline; text-decoration: none; font-family: var(--mono); font-size: clamp(14px, 1.1vw, 17px); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.ft-col a span { font-weight: 700; color: var(--red); }
.ft-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.ft-col a:hover::after { transform: scaleX(1); }
.ft-h { margin-bottom: 14px; font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
/* the footer's fuse: a thin line between the call to action and the links. It chars from gray to red
   as it burns left to right, and the charge at the end goes off as a small pixel burst */
.ft-fuse { position: relative; height: clamp(140px, 14vw, 240px); }
.ft-fuse svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ft-fuse .f-un { stroke: var(--dk); stroke-width: 1.5; }
.ft-fuse .f-bu { stroke-width: 2; }
.ft-fuse-head { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--red); box-shadow: 0 0 0 4px rgba(192, 0, 0, .25); opacity: 0; }
.ft-boom { position: absolute; top: 50%; left: 0; display: grid; grid-template-columns: repeat(11, 1fr); width: clamp(66px, 5.4vw, 88px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.ft-boom i.on { background: var(--red); }
.ft-boom i.pre { background: var(--dk); }
.ft-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; padding: clamp(120px, 13vw, 240px) 0 clamp(32px, 3.5vw, 56px); }
.ft-logo { display: block; flex: none; width: min(23%, 340px); aspect-ratio: 361.61 / 79.24; background: var(--red); -webkit-mask: url(brand/mr-logo-c00.svg) no-repeat 0 0 / contain; mask: url(brand/mr-logo-c00.svg) no-repeat 0 0 / contain; transition: background .3s; }
.ft-logo:hover { background: var(--white); }
.ft-legal { display: grid; gap: 8px; justify-items: end; text-align: right; font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* spark overlay */
.sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* ═══ responsive ═══ */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; grid-template-rows: none; border: 0; gap: 24px; }
  .plan { grid-row: auto; grid-template-rows: none; border: 1.5px solid var(--ink) !important; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .work-grid, .ft-cta { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .ft-base { flex-wrap: wrap; }
  .ft-logo { width: 40%; }
  .ft-legal { justify-items: start; text-align: left; }
  .story .col, .story .chart { padding-inline: calc(var(--gutter) + 22px); }
  .cg-row { grid-template-columns: 92px 1fr 50px; }
  .cg-axis { left: 92px; right: 50px; }
  .cg-note { margin-left: 92px; }
  .cg-name { font-size: 15px; }
  .cd-row { grid-template-columns: 1fr; gap: 10px; }
  .cd-arrow { width: 40px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 16px; }
  .open .wrap { padding-left: calc(var(--gutter) + 18px); }
  .plan-rows > div { grid-template-columns: 1fr; gap: 6px; }
  .nav-cta { font-size: 14px; padding: 9px 12px; }
  .boom-line { font-size: clamp(28px, 8vw, 44px); padding-inline: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
}

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* on phones the wide crop loses the NYSE lettering, so the opening photo gets a taller frame */
@media (max-width: 640px) { .photo-wide { aspect-ratio: 4 / 3; } }
