/* ---------------------------------------------------------------
   oorbi case study.
   The N26 case's language (Breno, 2026-10-28: "the n26 style"): after
   the hero, each chapter sits on one of N26's surfaces, an inset card
   (red results, the black "fast" card, a dark card in oorbi's
   colour) or the white page itself, with N26's components: the
   title pair, engraved numbers, the red track with rolling numbers,
   step boxes with a bar index, the live line chart, the ending. oorbi
   itself shows only in its screens and its two dark cards.

   Each chapter is a "scene": a tall section with a sticky, viewport-
   high "pin". oorbi.js turns the scroll through a scene into a
   progress p (0 → 1) and moves the scene's pieces with it, so the
   scroll always moves something; at the end the pin scrolls away.
   Desktop sizes are in frame px (1280 × 832) × --u, as on the N26 case.
   Under 900px wide (or a short window) the scenes simply stack.
   --------------------------------------------------------------- */

/* Fonts: the "GT America" folder (N26-licensed files) for now; swap
   in the files from Breno's own licence before going live */
@font-face { font-family: "GT America"; font-weight: 300; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Standard-Light.otf") format("opentype"); }
@font-face { font-family: "GT America"; font-weight: 400; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Standard-Regular.otf") format("opentype"); }
@font-face { font-family: "GT America"; font-weight: 500; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Standard-Medium.otf") format("opentype"); }
@font-face { font-family: "GT America Condensed"; font-weight: 300; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Condensed-Light.otf") format("opentype"); }
@font-face { font-family: "GT America Condensed"; font-weight: 400; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Condensed-Regular.otf") format("opentype"); }
@font-face { font-family: "GT America Compressed"; font-weight: 100; font-style: italic; font-display: block;
  src: url("../../GT%20America/GT-America-Compressed-Thin-Italic.otf") format("opentype"); }
@font-face { font-family: "GT America Compressed"; font-weight: 100; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Compressed-Thin.otf") format("opentype"); }
@font-face { font-family: "GT America Compressed"; font-weight: 500; font-style: italic; font-display: block;
  src: url("../../GT%20America/GT-America-Compressed-Medium-Italic.otf") format("opentype"); }
@font-face { font-family: "GT America Extended"; font-weight: 100; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Extended-Thin.otf") format("opentype"); }
@font-face { font-family: "GT America Extended"; font-weight: 400; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Extended-Regular.otf") format("opentype"); }
@font-face { font-family: "GT America Extended"; font-weight: 500; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Extended-Medium.otf") format("opentype"); }
@font-face { font-family: "GT America Expanded"; font-weight: 200; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Expanded-Ultra-Light.otf") format("opentype"); }
@font-face { font-family: "GT America Expanded"; font-weight: 900; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Expanded-Black.otf") format("opentype"); }
@font-face { font-family: "GT America Expanded"; font-weight: 900; font-style: italic; font-display: block;
  src: url("../../GT%20America/GT-America-Expanded-Black-Italic.otf") format("opentype"); }
@font-face { font-family: "GT America Mono"; font-weight: 400; font-style: normal; font-display: block;
  src: url("../../GT%20America/GT-America-Mono-Regular.otf") format("opentype"); }

/* Tokens (names follow the site's Figma variables, as in case.css) */
:root {
  --red: #dd4f52;
  --black: #1c0303;
  --black-80: rgba(28, 3, 3, 0.8);
  --black-60: rgba(28, 3, 3, 0.6);
  --black-50: rgba(28, 3, 3, 0.5);
  --black-15: rgba(28, 3, 3, 0.15);
  --grey: #d0d0d0;
  --light-grey: #c1c1c1;
  --white: #fff;
  /* the hero's recording card, and the home page's oorbi card */
  --oorbi-dark: #1e1e1e;
  --oorbi-card: linear-gradient(-65.56deg, #350234 0.91%, #201a20 17.19%, #1f1d1d 55.28%);
  /* the home page's N26 card */
  --n26-card: #003b39;

  --shadow-small: 0 3px 2px -3px rgba(0, 0, 0, 0.35);

  --u: 1;
  --fx: 0px;   /* left edge of the centred 1280 frame, set by oorbi.js */
  --vh: 100vh;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); }
body { overflow-x: clip; }
body {
  color: var(--black);
  font-family: "GT America", system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
a { color: inherit; }
img, video { display: block; }
b { font-weight: inherit; }

/* The nav and the hero title live in case-shared.css */
.story a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------
   N26's components (case.css), at their stacked sizes; the scenes
   block further down sizes them in frame units
   --------------------------------------------------------------- */
/* the title pair: a thin compressed italic, then one Expanded Black word */
.ctitle {
  font-family: "GT America Compressed";
  font-weight: 100;
  font-style: italic;
  font-size: 48px;
  line-height: normal;
  letter-spacing: 0.02em;
  color: var(--black);
}
.ctitle b { font-family: "GT America Expanded"; font-weight: 900; font-style: normal; }
/* on the black and dark cards, grey like "How we moved fast" */
.ctitle--card { color: var(--grey); }

/* body copy, like "Bleeding deposits" */
.body, .body p { font-weight: 300; font-size: 18px; line-height: 24px; letter-spacing: -0.01em; color: var(--black-60); }
/* small source line */
.source {
  font-family: "GT America Condensed";
  font-weight: 300;
  font-size: 12px;
  line-height: 24px;
  color: var(--black-50);
}
/* the home page's engraved pill */
.pill {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--grey);
  box-shadow: inset 0 1px 0.5px rgba(0, 0, 0, 0.08);
  filter: drop-shadow(0 1px 0.25px rgba(255, 255, 255, 0.43));
  font-family: "GT America Condensed";
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #000;
}

/* engraved numbers on a coloured card (N26's .xmetric) */
.xmetric__num {
  font-family: "GT America Expanded";
  font-weight: 900;
  font-size: 48px;
  line-height: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(to bottom, #464646, var(--black));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5));
}
.xmetric__label {
  font-family: "GT America Extended";
  font-weight: 100;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.02em;
  color: var(--black-80);
}

/* moves: N26's numbered columns with the red odometer number */
.moves { display: grid; gap: 32px; }
.moves__track { display: none; }
.move { display: flex; flex-direction: column; gap: 4px; }
.move__num {
  font-family: "GT America Expanded";
  font-weight: 900;
  font-size: 48px;
  line-height: normal;
  letter-spacing: 0.02em;
  color: var(--red);
}
.move__num i { font-style: normal; font-weight: 200; }
.move__digit { display: inline-block; vertical-align: top; clip-path: inset(-10% -20% 0 -20%); }
.move__digit span { display: inline-block; }
.move__title {
  font-family: "GT America Extended";
  font-weight: 500;
  font-size: 19px;
  line-height: 26px;
  letter-spacing: 0.02em;
}
.move__text, .move__tools li {
  font-family: "GT America Extended";
  font-weight: 100;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: 0.02em;
}
.move__tools { display: grid; gap: 10px; margin-top: 4px; }
.move__tools b { display: block; font-weight: 500; }

/* index: N26's thin bars that fill as you go */
.index {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 12px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-2);
}
.index li { transition: color var(--dur-s); }
.index li.is-on { color: var(--ink); }
.index__bar { display: block; height: 1px; margin-bottom: 12px; background: var(--ink-3); overflow: hidden; }
.index__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* step boxes: N26's ship-step boxes */
.steps { display: grid; gap: 24px; }
.step { display: grid; gap: 8px; }
.box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--box-line);
  border-radius: 8px;
  background: var(--box);
  font-family: "GT America Extended";
  font-weight: 100;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.box__title { font-weight: 500; font-size: 16px; line-height: 22px; }
/* a big number in a box, like N26's barrier percentages */
.box__num {
  font-family: "GT America Expanded";
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* The AI inside, after oorbi-v2 (Breno, 2026-10-29): the dark card lit
   in red and oorbi purple, red index bars, and each step's box built
   from the app's own pieces (tags, chips, the 82% match pill) */
.ai .card--dark {
  background:
    radial-gradient(55% 65% at 28% 55%, rgba(221, 79, 82, 0.22), rgba(53, 2, 52, 0) 70%),
    radial-gradient(50% 60% at 80% 85%, rgba(92, 16, 89, 0.32), rgba(30, 30, 30, 0) 70%),
    #191618;
}
.ai .index__bar i { background: var(--red); }
.ai .box { gap: 10px; padding: 24px; }
.ai .box__title { font-size: 17px; line-height: 23px; }
.ai .box__text { color: var(--ink-2); }
.box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: stretch; }
.box__tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tag, .chip {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--box);
  box-shadow: inset 0 0 0 1px var(--box-line);
  font-family: "GT America Condensed";
  font-weight: 300;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--light-grey);
}
.funnel { display: flex; align-items: center; gap: 12px; align-self: stretch; font-family: "GT America Condensed"; font-weight: 300; font-size: 14px; letter-spacing: 0.03em; color: var(--ink-2); }
.funnel__line { flex: 1; height: 1px; background: var(--ink-3); }
/* white, not the accent: the oorbi accent (--red here is aubergine) cannot be seen on this dark card (Breno, 2026-11-11) */
.funnel__line i { display: block; height: 100%; background: var(--ink); transform-origin: left; }
.is-scenes .funnel__line i { transform: scaleX(0); transition: transform var(--dur-l) var(--ease-out) 0.2s; }
.is-scenes .step.is-on .funnel__line i { transform: none; }
.funnel__to { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { padding: 3px 9px; border-radius: 99px; font-size: 13px; color: var(--ink); }
.is-scenes .chip { opacity: 0; translate: 0 6px; transition: opacity var(--dur-m) var(--ease-out), translate var(--dur-m) var(--ease-out); transition-delay: calc(0.5s + var(--i, 0) * 90ms); }
.chip:nth-child(2) { --i: 1; }
.chip:nth-child(3) { --i: 2; }
.chip:nth-child(4) { --i: 3; }
.is-scenes .step.is-on .chip { opacity: 1; translate: none; }
.chip--neg { background: rgba(221, 79, 82, 0.14); box-shadow: inset 0 0 0 1px rgba(221, 79, 82, 0.35); color: var(--red); }
.match { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); font-weight: 500; font-size: 13px; line-height: 1; letter-spacing: 0; color: var(--white); }
.match svg { width: 11px; height: 10px; color: var(--grey); }
.reason { position: relative; margin: 0; padding: 10px 14px 10px 20px; border-left: 2px solid var(--red); border-radius: 0 6px 6px 0; background: rgba(0, 0, 0, 0.22); font-family: "GT America"; font-weight: 300; font-size: 16px; line-height: 22px; letter-spacing: 0; color: var(--ink); }
.reason .quote__open { position: absolute; transform: translateX(-100%); }
.ai .vibe { font-size: 20px; line-height: 28px; }
.vibe__text::before { color: var(--red); }

/* the phone: same build as N26's "What we shipped" phone */
.ai__phone {
  position: relative;
  width: 236px;
  aspect-ratio: 236 / 484;
  border: 7px solid #050505;
  border-radius: 38px;
  box-shadow:
    0 0 0 1px #6e6e72,
    0 0 0 2.2px #2c2c2e,
    0 30px 60px -24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  background: #000;
}
.ai__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------------------------------------------------------------
   Stacked layout (phones and short windows)
   --------------------------------------------------------------- */
/* clip, not hidden: it keeps the pins sticky */
.story { padding: 120px 16px 40px; overflow-x: clip; }
.scene { padding: 0 0 16px; }
.pin { position: relative; display: flex; flex-direction: column; gap: 24px; }

.hero { padding-bottom: 48px; }
.hero__card { border-radius: 8px; overflow: hidden; background: var(--oorbi-dark); }
/* the recording carries its own grey surround, a shade off the card's on
   screen; clip it to the rounded black panel inside (1880 × 1248 source:
   panel inset 26/29/34/42, radius 78, plus 1px) so no edge shows */
.hero__rec {
  width: 100%;
  height: auto;
  clip-path: inset(2.164% 1.596% 2.804% 2.287% round 4.15% / 6.25%);
}
/* stacked: the shared title in the page's flow */
html:not(.is-scenes) .case-title { position: static; display: flex; flex-direction: column; font-size: 22vw; line-height: 0.94; }
html:not(.is-scenes) .case-title__red, html:not(.is-scenes) .case-title__sub { position: static; line-height: 0.94; }
.meta-rule { display: none; }
.meta { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--light-grey); }
.meta__intro { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: var(--black-80); }
.meta__head { font-family: "GT America Extended"; font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: 0.02em; }
.meta__sub { font-family: "GT America Extended"; font-weight: 100; font-size: 16px; line-height: 22px; letter-spacing: 0.02em; color: var(--black-80); }
.meta__divider { display: none; }
.meta__facts { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--grey); color: var(--black-60); }
.meta__fact { display: flex; gap: 8px; align-items: flex-start; }
.meta__fact dt { flex: none; width: 49px; padding-top: 3px; text-align: right; font-weight: 300; font-size: 12px; letter-spacing: 0.02em; }
.meta__fact dd { font-weight: 400; font-size: 14px; line-height: 19px; letter-spacing: 0.02em; }


/* cards: inset, rounded, N26's colours; the white page itself when no colour */
.card { border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.card--red { background: var(--red); }
.card--black { background: var(--black); }
.card--dark { background: var(--oorbi-dark); }
.card--oorbi { background: var(--oorbi-card); }
/* Breno, 2026-10-29: the middle chapters sit on grey, some framed by
   N26's challenge stroke */
.on-grey { margin: 0 -16px; padding: 0 16px 16px; background: var(--grey); }
.card--line { border: 1px solid var(--light-grey); }
.frame { display: flex; flex-direction: column; gap: 24px; }
.card:not([class*="card--"]), .card--line { padding: 24px 8px; }

/* dark surfaces: N26's ink in three strengths */
.card--black, .card--dark, .card--oorbi { --ink: var(--white); --ink-2: rgba(255, 255, 255, 0.62); --ink-3: rgba(255, 255, 255, 0.16); --box: rgba(255, 255, 255, 0.06); --box-line: rgba(255, 255, 255, 0.1); color: var(--light-grey); }
.card:not([class*="card--"]), .card--line { --ink: var(--black); --ink-2: var(--black-60); --ink-3: var(--black-15); --box: rgba(28, 3, 3, 0.06); --box-line: var(--black-15); }

/* 2. numbers: the red results card */
.facts__top { text-align: center; color: var(--grey); }
.facts__title { font-family: "GT America Extended"; font-weight: 500; font-size: 22px; line-height: normal; letter-spacing: 0.02em; }
.facts__head { margin-top: 6px; font-family: "GT America Extended"; font-weight: 100; font-size: 14px; line-height: 19px; letter-spacing: 0.02em; }
.facts__list { display: grid; gap: 24px; text-align: center; }
.facts__list li { display: flex; flex-direction: column; align-items: center; }

/* 3. an audience of one */
/* on grey (Breno's Figma 92:1192): the title like N26's "Bleeding
   deposits", the body in Light 18/24 */
.one { margin: 0 -16px; padding: 32px 16px; background: var(--grey); }
.one__copy { display: flex; flex-direction: column; gap: 8px; }
.one__title { font-family: "GT America Extended"; font-weight: 500; font-size: 22px; line-height: normal; letter-spacing: 0.02em; color: var(--black); }
.one__text { font-weight: 300; font-size: 18px; line-height: 24px; letter-spacing: -0.01em; color: var(--black-60); }
.one__strip { order: 2; overflow-x: auto; }
.one__strip img { height: 300px; width: auto; max-width: none; }
.one__veil { display: none; }

/* 4. the stack */
.stack__sub { font-family: "GT America Extended"; font-weight: 100; font-size: 14px; line-height: 19px; letter-spacing: 0.02em; color: var(--light-grey); }
.stack .moves { grid-template-columns: 1fr 1fr; }
.stack .move__title, .stack .move__tools { color: var(--light-grey); }
.stack .move__text { margin-top: 4px; color: var(--ink-2); }
/* Breno, 2026-10-29: each service in its own small box */
.stack .move__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stack .move__tools li {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-family: "GT America Condensed";
  font-weight: 300;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.02em;
}

/* 5. working with AI: the brief, the backlog and the terminal, each a
   black panel (the site's black, no window chrome) with the engraved
   pill as its label */
.claude__copy { display: grid; gap: 16px; }
.work { display: grid; gap: 20px; }
.work .index { --ink: var(--black); --ink-2: var(--black-60); --ink-3: var(--black-15); }
.work .index { display: none; }
.doc__title { font-family: "GT America Extended"; font-weight: 500; font-size: 20px; line-height: normal; letter-spacing: 0.02em; color: var(--black); }
.doc__desc { font-weight: 300; font-size: 16px; line-height: 22px; letter-spacing: -0.01em; color: var(--black-60); }
.doc { display: grid; gap: 12px; margin-top: 4px; padding: 20px; border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--light-grey), 0 1px 2px rgba(28, 3, 3, 0.03), 0 6px 16px rgba(28, 3, 3, 0.04); }
/* code in the light editor style Breno picked (2026-10-28): near-black
   text, red keywords, blue names and flags, navy strings */
.doc__lines, .term__lines {
  display: grid;
  gap: 6px;
  font-family: "GT America Mono";
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--black);
  overflow-wrap: anywhere;
}
.doc__lines b { font-weight: 400; }
.tok-key, .term__ps { color: #d93a3f; }
.tok-name, .tok-flag { color: #2f5bd3; }
.tok-str { color: #1d3a8a; }
/* the line being typed carries a thin caret, as in an editor */
.term__lines li.is-typing .term__cmd::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--black);
  animation: caret 1s steps(1) infinite;
}


/* 6. the AI inside */
.ai .frame { align-items: flex-start; }
.ai__phone { align-self: center; }
.ai__copy { display: grid; gap: 20px; width: 100%; }
.ai__title { font-family: "GT America Extended"; font-weight: 500; font-size: 22px; line-height: normal; letter-spacing: 0.02em; color: var(--ink); }
.ai__intro { font-weight: 300; font-size: 18px; line-height: 24px; letter-spacing: -0.01em; color: var(--ink-2); }
.vibe { position: relative; font-family: "GT America Condensed"; font-weight: 300; font-size: 19px; line-height: 26px; color: var(--ink); }
.vibe__text::before { content: "“"; position: absolute; right: 100%; }
.vibe__text::after { content: attr(data-shown); }
.vibe__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--red); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* 7. opening it up: N26's live line chart */
.commits { display: grid; gap: 12px; }
.commits__cap { text-align: right; }
.open__copy { display: grid; gap: 16px; }
/* one column per day on a hairline baseline; milestone days in red */
.commits__plot { position: relative; height: 180px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--black-15); }
.commits__bar { flex: 1; min-width: 0; border-radius: 2px 2px 0 0; background: var(--white); transform-origin: bottom; }
.commits__bar.is-mark { background: var(--red); }
.commits__marks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
/* N26's chart legend: a red dot, the day, the milestone */
.commits__marks li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  position: relative;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--black-80);
}
.commits__marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.commits__day { font-family: "GT America Condensed"; font-weight: 300; font-size: 12px; line-height: 16px; letter-spacing: 0.04em; color: var(--black-50); }


/* 9. the storefront */
.store__sub { font-weight: 300; font-size: 18px; line-height: 24px; letter-spacing: -0.01em; color: rgba(208, 208, 208, 0.8); }
.store__sub a { color: var(--grey); }
/* the page colour of the site image, so no white shows at its edges */
.site { height: 420px; overflow: hidden; border-radius: 13px; background: #312c2b; box-shadow: var(--shadow-phone); }
.site img { display: block; width: 100%; height: auto; }

/* 10. the end, as on the N26 case */
.outro .pin { padding: 32px 0 16px; }
.outro__next {
  margin-top: 24px;
  font-family: "GT America Compressed";
  font-weight: 100;
  font-style: italic;
  font-size: 40px;
  line-height: normal;
  letter-spacing: 0.02em;
  color: var(--black);
}
.outro__next b { font-family: "GT America Expanded"; font-weight: 900; font-style: normal; }
.next-case { position: relative; border-radius: 8px; overflow: hidden; }
.next-case:has(> .next-case__panel) { background: var(--n26-card); } /* the old single panel (library); the card pair shows no green between its cards */
.next-case__base, .next-case__phone-clip, .next-case__icon { display: none; }
.next-case__panel { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 2px; padding: 24px; border-radius: 7px; background: var(--grey); }
.next-case__pill {
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--grey);
  box-shadow: inset 0 1px 0.5px rgba(0, 0, 0, 0.08);
  filter: drop-shadow(0 1px 0.25px rgba(255, 255, 255, 0.43));
  font-family: "GT America Condensed";
  font-weight: 300;
  font-size: 12px;
  line-height: normal;
  letter-spacing: 0.04em;
  color: #000;
}
.next-case__title { font-family: "GT America Extended"; font-weight: 500; font-size: 30px; line-height: normal; letter-spacing: 0.02em; color: var(--black); }
.next-case__desc { font-family: "GT America Extended"; font-weight: 100; font-size: 18px; line-height: 1.3; letter-spacing: 0.02em; color: var(--black-80); }
.next-case__btn {
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--black-15), var(--shadow-small);
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--black-80);
  transition: transform var(--dur-xs) var(--ease-out), box-shadow var(--dur-xs);
}
.mat { display: none; }

/* ---------------------------------------------------------------
   Scenes (desktop). Pieces are absolutely placed in frame units: the
   hero from the 1280 frame (--fx + x·u), every chapter inside its
   card's 1248-wide frame, as N26's acts. oorbi.js moves them with the
   scene's progress.
   --------------------------------------------------------------- */
.is-scenes .story { padding: 0; }
.is-scenes .scene { position: relative; margin: 0; padding: 0; height: calc(var(--len) * var(--vh)); }
.is-scenes .pin {
  position: sticky;
  top: 0;
  display: block;
  height: var(--vh);
  padding: 0;
  overflow: hidden;
}
.is-scenes .pin > * { position: absolute; will-change: transform; }

/* N26's act card: inset 16, under the nav (top 92), radius 8 */
.is-scenes .card {
  top: calc(var(--u) * var(--stage-card-top));
  left: calc(var(--u) * var(--stage-inset));
  right: calc(var(--u) * var(--stage-inset));
  bottom: calc(var(--u) * var(--stage-inset));
  display: block;
  padding: 0;
  border-radius: calc(var(--u) * 8px);
  overflow: hidden;
}
/* the 1248 frame, centred in the card; every piece sits at its top left */
.is-scenes .frame {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  display: block;
  width: calc(var(--u) * 1248px);
  margin-left: calc(var(--u) * -624px);
}
.is-scenes .frame > * { position: absolute; margin: 0; }

/* N26's act title: centred, 72, 36 from the card top; 48 on the dark cards */
.is-scenes .ctitle {
  top: calc(var(--u) * 36px);
  left: 50%;
  translate: -50% 0;
  font-size: calc(var(--u) * 72px);
  white-space: nowrap;
}
.is-scenes .ctitle--card { top: calc(var(--u) * 40px); font-size: calc(var(--u) * 48px); }
.is-scenes .body, .is-scenes .body p { font-size: calc(var(--u) * 18px); line-height: calc(var(--u) * 24px); }
.is-scenes .source { font-size: calc(var(--u) * 12px); line-height: calc(var(--u) * 24px); }
.is-scenes .pill { padding: calc(var(--u) * 2px) calc(var(--u) * 6px); border-radius: calc(var(--u) * 8px); font-size: calc(var(--u) * 14px); }

/* entrances: N26's [data-in], played once the chapter arrives */
.is-scenes [data-in] {
  opacity: 0;
  translate: 0 calc(var(--u) * var(--rise-s));
  transition: opacity var(--dur-l) var(--ease-out), translate var(--dur-l) var(--ease-out-expo);
  transition-delay: calc(0.15s + var(--d, 0) * 90ms);
}
.is-scenes .ctitle[data-in] { translate: -50% calc(var(--u) * var(--rise-s)); }
.is-scenes .is-in [data-in] { opacity: 1; translate: 0 0; }

/* 1. Hero */
/* the card: inset 16 like the N26 hero photo; oorbi.js closes it from
   800 to 496 (Figma States 43 → 44) */
.is-scenes .hero { padding: 0; }
.is-scenes .hero__card {
  top: calc(var(--u) * 98px); /* framed under the nav, as the home header; CaseShared.heroCard raises it on scroll */
  left: calc(var(--u) * 16px);
  right: calc(var(--u) * 16px);
  height: calc(var(--vh) - var(--u) * 32px);
  border-radius: calc(var(--u) * 8px);
}
/* the recording keeps its Figma slot (997 × 662 at 251, 69 in the card) */
.is-scenes .hero__rec {
  /* the recording sits right, with the same gap on the right as above and below it:
     the framed card is (window - 114) tall, the recording 662 (Breno, 2026-11-12) */
  --gap: max(calc((var(--vh) - var(--u) * 776px) / 2), var(--u) * 16px);
  position: absolute;
  top: var(--gap);
  right: var(--gap);
  width: calc(var(--u) * 997px);
  height: calc(var(--u) * 662px);
  will-change: transform;
}
.is-scenes .meta-rule {
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--u) * 102px);
}
.meta-rule::before, .meta-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--light-grey);
}
.meta-rule::before { top: 0; }
.meta-rule::after { bottom: 0; }
.is-scenes .meta {
  top: 0;
  left: calc(var(--fx) + var(--u) * 1px);
  width: calc(var(--u) * 1263px);
  height: calc(var(--u) * 100px);
  flex-direction: row;
  border-radius: calc(var(--u) * 8px);
  box-shadow: none;
  background: var(--white);
}
.is-scenes .meta__intro { flex: 1 1 auto; justify-content: center; gap: calc(var(--u) * 2px); padding: 0 calc(var(--u) * 32px) 0 calc(var(--u) * 31px); }
.is-scenes .meta__head { font-size: calc(var(--u) * 22px); line-height: normal; }
.is-scenes .meta__sub { font-size: calc(var(--u) * 18px); line-height: calc(var(--u) * 25px); }
.is-scenes .meta__divider { display: block; flex: none; width: calc(var(--u) * 8.023px); height: 100%; }
.is-scenes .meta__facts { flex: none; width: calc(var(--u) * 298px); justify-content: center; gap: calc(var(--u) * 4px); padding: calc(var(--u) * 8px); }
.is-scenes .meta__fact { gap: calc(var(--u) * 8px); }
.is-scenes .meta__fact dt { width: calc(var(--u) * 49px); padding-top: calc(var(--u) * 3px); font-size: calc(var(--u) * 12px); }
.is-scenes .meta__fact dd { font-size: calc(var(--u) * 14px); line-height: calc(var(--u) * 19px); }

/* 2. In numbers: a short red band like N26's Key results, in the page's
   flow (no pinned screen of its own); as it scrolls in, the four engraved
   numbers rise in one row and count in */
/* One rhythm between sections (Breno, 2026-10-29): 108 between one
   block and the next, the gap two pinned cards leave (16 under one, 92
   over the next). The band moves up to sit 108 under the hero's rule
   (at 749 once the hero settles), with 108 of white before the grey */
.is-scenes .scene.facts {
  height: auto;
  margin-top: min(0px, calc(var(--u) * 749px - var(--vh)));
  padding: calc(var(--u) * var(--stage-gap)) 0;
}
.is-scenes .facts .pin { position: relative; height: auto; overflow: visible; }
.is-scenes .facts .card { position: relative; inset: auto; margin: 0 calc(var(--u) * 16px); height: calc(var(--u) * 300px); }
.is-scenes .facts__top { top: calc(var(--u) * 40px); left: 0; right: 0; }
.is-scenes .facts__title { font-size: calc(var(--u) * 25px); }
.is-scenes .facts__head { margin-top: calc(var(--u) * 8px); font-size: calc(var(--u) * 14px); line-height: calc(var(--u) * 19px); }
.is-scenes .facts__list {
  top: calc(var(--u) * 136px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0;
}
.is-scenes .facts__list li { width: 25%; }
.is-scenes .xmetric__num { font-size: calc(var(--u) * 48px); }
.is-scenes .xmetric__label { width: calc(var(--u) * 232px); font-size: calc(var(--u) * 18px); line-height: calc(var(--u) * 25px); }
/* each number rises out of its own slot, the label follows (N26's Key results) */
.is-scenes .facts__list li { clip-path: inset(-20% -20% -40% -20%); }
.is-scenes .facts__list .xmetric__num, .is-scenes .facts__list .xmetric__label {
  translate: 0 calc(var(--u) * 28px);
  opacity: 0;
  transition: translate var(--dur-xl) var(--ease-out-expo), opacity var(--dur-l) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.is-scenes .facts__list .xmetric__label { transition-delay: calc(var(--d, 0) * 90ms + 120ms); }
.is-scenes .facts.is-in .xmetric__num, .is-scenes .facts.is-in .xmetric__label { translate: none; opacity: 1; }
.facts__list li:nth-child(2) { --d: 1; }
.facts__list li:nth-child(3) { --d: 2; }
.facts__list li:nth-child(4) { --d: 3; }

/* 3. An audience of one (Breno's Figma, States 45 → 46): the screens
   (395 tall at y 315) slide from x 580 to −744 under a frosted grey
   panel (Figma: 418 × 541 at 58, 228; here widened for air; 89% grey,
   a backdrop blur, its edges softened like Figma's 5px blur) that holds
   the text */
.is-scenes .one { margin: 0; padding: 0; }
.is-scenes .one .pin {
  background: var(--grey);
  /* Breno, 2026-10-28: the phones centred in the window, under the nav
     (the group keeps Figma's spacing; --oy moves it from Figma's y) */
  --oy: calc(var(--vh) / 2 + var(--u) * 41px - var(--u) * 512.65px);
}
.is-scenes .one__strip { top: calc(var(--oy) + var(--u) * 315px); left: 0; overflow: visible; }
.is-scenes .one__strip img { height: calc(var(--u) * 395.3px); }
.is-scenes .one__veil {
  display: block;
  top: calc(var(--oy) + var(--u) * 228px);
  /* Breno, 2026-10-29: the panel runs to the window's left edge, so the
     screens slide under it and never come back out on its left */
  left: 0;
  width: calc(var(--fx) + var(--u) * 496px);
  height: calc(var(--u) * 541px);
  background: rgba(208, 208, 208, 0.89);
  /* Breno, 2026-10-28: a real blur, so the screens passing under the text
     go soft and the text reads cleanly (Figma's 2 renders much stronger
     than CSS's 2) */
  -webkit-backdrop-filter: blur(calc(var(--u) * 12px));
  backdrop-filter: blur(calc(var(--u) * 12px));
  /* Figma's 5px layer blur: the panel's right, top and bottom edges fade */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--u) * 10px), transparent), linear-gradient(transparent, #000 calc(var(--u) * 10px), #000 calc(100% - var(--u) * 10px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 calc(100% - var(--u) * 10px), transparent), linear-gradient(transparent, #000 calc(var(--u) * 10px), #000 calc(100% - var(--u) * 10px), transparent);
  mask-composite: intersect;
}
/* the text on the case's 32 edge, a 400-wide column with 64 of panel
   to its right, centred on the panel's height */
.is-scenes .one__copy { top: calc(var(--oy) + var(--u) * 498.5px); left: calc(var(--fx) + var(--u) * 32px); width: calc(var(--u) * 400px); gap: calc(var(--u) * 12px); transform: translateY(-50%); }
.is-scenes .one__title { font-size: calc(var(--u) * 24px); }
.is-scenes .one__text { font-size: calc(var(--u) * 18px); line-height: calc(var(--u) * 24px); }

/* 4. The stack: N26's black "How we moved fast" card, kept short and
   centred in the window (Breno, 2026-10-28: the full card felt heavy) */
/* Breno, 2026-10-29: less grey between the phones and the stack. The
   stack scene slides up over the end of the first-flow pin, leaving 108
   between the phones (bottom at --vh/2 + 239) and the card (top at
   --vh/2 - 219); its top --lift stays clear, so the phones show through */
.is-scenes .stack {
  --lift: max(0px, calc(var(--vh) - var(--u) * 566px));
  margin-top: calc(var(--lift) * -1);
  background: linear-gradient(transparent var(--lift), var(--grey) 0);
}
.is-scenes .stack .card { top: calc(var(--vh) / 2 + var(--u) * 41px - var(--u) * 260px); bottom: auto; height: calc(var(--u) * 520px); }
.is-scenes .stack__sub { top: calc(var(--u) * 106px); left: 50%; translate: -50% 0; width: calc(var(--u) * 640px); text-align: center; font-size: calc(var(--u) * 14px); line-height: calc(var(--u) * 19px); }
/* One text edge on both cases (Breno, 2026-10-29): text starts 32 from
   the frame's left edge, the hero title's edge; the 1248 .frame already
   sits at 16, so 16 inside it */
.is-scenes .moves {
  top: calc(var(--u) * 238px);
  left: calc(var(--u) * 16px);
  right: calc(var(--u) * 16px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.is-scenes .move { width: calc(var(--u) * 227px); gap: calc(var(--u) * 4px); }
.is-scenes .move__num { font-size: calc(var(--u) * 48px); }
.is-scenes .move__num i { letter-spacing: calc(var(--u) * 0.32px); }
.is-scenes .move__digit span, .is-scenes .move__title, .is-scenes .move__text, .is-scenes .move__tools { will-change: transform, opacity; }
.is-scenes .move__title { font-size: calc(var(--u) * 19px); line-height: calc(var(--u) * 26px); }
.is-scenes .move__text, .is-scenes .move__tools li { font-size: calc(var(--u) * 14px); line-height: calc(var(--u) * 19px); }
.is-scenes .move__tools { gap: calc(var(--u) * 10px); margin-top: calc(var(--u) * 6px); }
/* a red track draws across the moves; a dot pops as it reaches each one */
.is-scenes .moves__track {
  display: block;
  position: absolute;
  top: calc(var(--u) * -24px);
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(193, 193, 193, 0.14);
}
.moves__line { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.moves__track i {
  position: absolute;
  top: calc(var(--u) * -3px);
  left: 0;
  width: calc(var(--u) * 7px);
  height: calc(var(--u) * 7px);
  margin-left: calc(var(--u) * -3px);
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
}
/* the stack's columns: the stage, then its tools as a light list */
.is-scenes .stack .moves { top: calc(var(--u) * 210px); }
.is-scenes .stack .move__tools { gap: calc(var(--u) * 8px); margin-top: calc(var(--u) * 14px); }
.is-scenes .stack .move__tools li { padding: calc(var(--u) * 3px) calc(var(--u) * 8px); border-radius: calc(var(--u) * 6px); font-size: calc(var(--u) * 13px); line-height: calc(var(--u) * 18px); }

/* 5. Working with AI: copy left; on the right the brief, the backlog
   and the terminal, one at a time under N26's bar index */
/* the stack card is short and centred, so Working with AI slides up
   over its empty end to keep 108 between the cards */
.is-scenes .claude { margin-top: min(0px, calc(var(--u) * 317px - var(--vh) / 2)); }
.is-scenes .claude__copy { top: calc(var(--u) * 170px); left: calc(var(--u) * 16px); width: calc(var(--u) * 480px); gap: calc(var(--u) * 16px); }
.is-scenes .work { top: calc(var(--u) * 170px); left: calc(var(--u) * 624px); width: calc(var(--u) * 560px); display: block; }
.is-scenes .work > * { position: absolute; left: 0; right: 0; }
.is-scenes .index { gap: calc(var(--u) * 12px); font-size: calc(var(--u) * 14px); }
.is-scenes .index__bar { margin-bottom: calc(var(--u) * 12px); }
.is-scenes .work .index { display: grid; top: 0; }
.is-scenes .steps { display: block; }
.is-scenes .work .steps { top: calc(var(--u) * 64px); }
.is-scenes .step { position: absolute; top: 0; left: 0; right: 0; gap: calc(var(--u) * 8px); opacity: 0; will-change: transform, opacity; }
.is-scenes .doc__title { font-size: calc(var(--u) * 20px); }
.is-scenes .doc__desc { font-size: calc(var(--u) * 16px); line-height: calc(var(--u) * 22px); }
.is-scenes .doc { gap: calc(var(--u) * 14px); margin-top: calc(var(--u) * 12px); padding: calc(var(--u) * 24px); border-radius: calc(var(--u) * 8px); }
.is-scenes .doc__lines, .is-scenes .term__lines { gap: calc(var(--u) * 8px); font-size: calc(var(--u) * 15px); line-height: calc(var(--u) * 24px); }
/* the lines come in one after another when their panel arrives */
.is-scenes .doc__lines li {
  opacity: 0;
  translate: 0 calc(var(--u) * 6px);
  transition: opacity var(--dur-m) var(--ease-out), translate var(--dur-m) var(--ease-out);
  transition-delay: calc(0.25s + var(--i, 0) * 80ms);
}
.is-scenes .step.is-on .doc__lines li { opacity: 1; translate: none; }
.doc__lines li:nth-child(2) { --i: 1; }
.doc__lines li:nth-child(3) { --i: 2; }
.doc__lines li:nth-child(4) { --i: 3; }
.doc__lines li:nth-child(5) { --i: 4; }
.doc__lines li:nth-child(6) { --i: 5; }
/* the terminal types its commands as you scroll */
.is-scenes .term__lines { min-height: calc(var(--u) * 120px); }
.is-scenes .term__lines li { white-space: nowrap; visibility: hidden; }
.is-scenes .term__lines li.is-on { visibility: visible; }
.is-scenes .box { gap: calc(var(--u) * 8px); padding: calc(var(--u) * 16px); border-radius: calc(var(--u) * 8px); font-size: calc(var(--u) * 14px); line-height: calc(var(--u) * 19px); }
.is-scenes .box__title { font-size: calc(var(--u) * 16px); line-height: calc(var(--u) * 22px); }
.is-scenes .box__num { font-size: calc(var(--u) * 48px); margin: calc(var(--u) * 4px) 0; }
.is-scenes .ai .box { gap: calc(var(--u) * 10px); padding: calc(var(--u) * 24px); }
.is-scenes .ai .box__title { font-size: calc(var(--u) * 17px); line-height: calc(var(--u) * 23px); }
.is-scenes .ai .box__num { margin: 0; }
.is-scenes .box__head, .is-scenes .funnel { gap: calc(var(--u) * 12px); }
.is-scenes .box__tags { gap: calc(var(--u) * 4px); }
.is-scenes .tag { padding: calc(var(--u) * 3px) calc(var(--u) * 8px); border-radius: calc(var(--u) * 6px); font-size: calc(var(--u) * 12px); line-height: calc(var(--u) * 16px); }
.is-scenes .funnel { font-size: calc(var(--u) * 14px); }
.is-scenes .chips { gap: calc(var(--u) * 6px); margin-top: calc(var(--u) * 4px); }
.is-scenes .chip { padding: calc(var(--u) * 3px) calc(var(--u) * 9px); font-size: calc(var(--u) * 13px); line-height: calc(var(--u) * 17px); }
.is-scenes .match { gap: calc(var(--u) * 5px); padding: calc(var(--u) * 4px) calc(var(--u) * 10px); font-size: calc(var(--u) * 13px); }
.is-scenes .match svg { width: calc(var(--u) * 11px); height: calc(var(--u) * 10px); }
.is-scenes .reason { padding: calc(var(--u) * 10px) calc(var(--u) * 14px); border-radius: 0 calc(var(--u) * 6px) calc(var(--u) * 6px) 0; font-size: calc(var(--u) * 16px); line-height: calc(var(--u) * 22px); }
.is-scenes .ai .vibe { font-size: calc(var(--u) * 20px); line-height: calc(var(--u) * 28px); }

/* 6. The AI inside: N26's "What we shipped" layout */
.is-scenes .ai__phone {
  top: calc(var(--u) * 120px);
  left: calc(var(--u) * 218px);
  width: calc(var(--u) * 236px);
  border-width: calc(var(--u) * 7px);
  border-radius: calc(var(--u) * 38px);
  box-shadow:
    0 0 0 calc(var(--u) * 1px) #6e6e72,
    0 0 0 calc(var(--u) * 2.2px) #2c2c2e,
    0 calc(var(--u) * 30px) calc(var(--u) * 60px) calc(var(--u) * -24px) rgba(0, 0, 0, 0.6);
}
.is-scenes .ai__phone img { will-change: transform; }
.is-scenes .ai__copy { top: 0; left: calc(var(--u) * 624px); width: calc(var(--u) * 480px); height: 100%; display: block; }
.is-scenes .ai__copy > * { position: absolute; left: 0; right: 0; }
.is-scenes .ai__title { top: calc(var(--u) * 140px); font-size: calc(var(--u) * 24px); }
.is-scenes .ai__intro { top: calc(var(--u) * 176px); width: calc(var(--u) * 470px); font-size: calc(var(--u) * 18px); line-height: calc(var(--u) * 24px); }
.is-scenes .ai .index { top: calc(var(--u) * 268px); }
.is-scenes .ai .steps { top: calc(var(--u) * 348px); }
.is-scenes .vibe { font-size: calc(var(--u) * 19px); line-height: calc(var(--u) * 26px); }
/* the chapter's entrance: the phone rises, then the title, intro and bars */
.is-scenes .ai__phone, .is-scenes .ai__title, .is-scenes .ai__intro, .is-scenes .ai .index li {
  opacity: 0;
  translate: 0 calc(var(--u) * 14px);
  transition: opacity var(--dur-m) var(--ease-out), translate var(--dur-l) var(--ease-out), color var(--dur-s);
}
.is-scenes .ai__phone { translate: 0 calc(var(--u) * 40px); transition-duration: var(--dur-l), 0.9s; }
.is-scenes .ai.is-in :is(.ai__phone, .ai__title, .ai__intro, .index li) { opacity: 1; translate: none; }
.is-scenes .ai.is-in .ai__title { transition-delay: 0.08s; }
.is-scenes .ai.is-in .ai__intro { transition-delay: 0.16s; }
.is-scenes .ai.is-in .index li:nth-child(1) { transition-delay: 0.26s; }
.is-scenes .ai.is-in .index li:nth-child(2) { transition-delay: 0.31s; }
.is-scenes .ai.is-in .index li:nth-child(3) { transition-delay: 0.36s; }
.is-scenes .ai.is-in .index li:nth-child(4) { transition-delay: 0.41s; }

/* 7. Opening it up: copy in two columns, the chart across the page */
/* text on the left, the chart on the right (Breno, 2026-10-28) */
.is-scenes .open__copy { top: calc(var(--u) * 170px); left: calc(var(--u) * 16px); width: calc(var(--u) * 460px); gap: calc(var(--u) * 16px); }
.is-scenes .commits { top: calc(var(--u) * 170px); left: calc(var(--u) * 604px); width: calc(var(--u) * 580px); display: block; }
.is-scenes .commits > * { position: absolute; left: 0; right: 0; }
/* the caption under the chart, at its right (Breno, 2026-10-29) */
.is-scenes .commits__cap { top: calc(var(--u) * 248px); text-align: right; }
.is-scenes .commits__plot { top: 0; height: calc(var(--u) * 240px); gap: calc(var(--u) * 4px); }
.is-scenes .commits__bar { border-radius: calc(var(--u) * 2px) calc(var(--u) * 2px) 0 0; transform: scaleY(0); }
.is-scenes .commits__marks { top: calc(var(--u) * 304px); grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 20px) calc(var(--u) * 16px); }
.is-scenes .commits__marks li {
  padding-left: calc(var(--u) * 18px);
  font-size: calc(var(--u) * 14px);
  line-height: calc(var(--u) * 20px);
  opacity: 0;
  translate: 0 calc(var(--u) * 8px);
  transition: opacity var(--dur-l) var(--ease-out), translate var(--dur-l) var(--ease-out);
}
.is-scenes .commits__marks li.is-on { opacity: 1; translate: none; }
.is-scenes .commits__marks li::before { top: calc(var(--u) * 5px); width: calc(var(--u) * 10px); height: calc(var(--u) * 10px); }
.is-scenes .commits__day { font-size: calc(var(--u) * 12px); line-height: calc(var(--u) * 16px); }


/* 9. The storefront, on the home page's oorbi card colour */
.is-scenes .store__sub { top: calc(var(--u) * 110px); left: 50%; translate: -50% 0; width: calc(var(--u) * 640px); text-align: center; font-size: calc(var(--u) * 18px); line-height: calc(var(--u) * 24px); }
.is-scenes .site {
  top: calc(var(--u) * 192px);
  left: calc(var(--u) * 344px);
  width: calc(var(--u) * 560px);
  height: calc(var(--u) * 500px);
  border-radius: calc(var(--u) * 13px);
  box-shadow: 0 calc(var(--u) * 30px) calc(var(--u) * 60px) calc(var(--u) * -30px) rgba(0, 0, 0, 0.6);
}
.is-scenes .site img { will-change: transform; }

/* 10. The end (N26's States 39 → 42). Every piece sits at the pin's top
   left; oorbi.js places it in frame units and scales "Thanks" */
.is-scenes .outro__next, .is-scenes .next-case {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  will-change: transform;
}
.is-scenes .outro__next { white-space: nowrap; transform-origin: 50% 0; }
.is-scenes .outro__next { font-size: calc(var(--u) * 48px); }
/* the next case: the home page's N26 card (phone left, panel right) */
.is-scenes .next-case { width: calc(var(--u) * 1200px); height: calc(var(--u) * 610px); border-radius: 0; overflow: visible; background: none; }
.is-scenes .next-case > * { position: absolute; margin: 0; }
.is-scenes .next-case__base {
  display: block;
  left: 0;
  top: calc(var(--u) * 169px);
  width: 100%;
  height: calc(var(--u) * 369px);
  border-radius: calc(var(--u) * 8px);
  background: var(--n26-card);
  box-shadow: inset 0 0 0 1px var(--black-15), var(--shadow-small);
}
/* the phone rises out of the card: clipped at the card's bottom edge */
.is-scenes .next-case__phone-clip {
  display: block;
  left: 0;
  top: 0;
  width: calc(var(--u) * 590px);
  height: calc(var(--u) * 538px);
  overflow: hidden;
}
.next-case__phone {
  position: absolute;
  left: 50%;
  top: calc(var(--u) * 55px);
  width: calc(var(--u) * 280px);
  height: calc(var(--u) * 561px);
  margin-left: calc(var(--u) * -140px);
  border: calc(var(--u) * 7px) solid #050505;
  border-radius: calc(var(--u) * 40px);
  box-shadow:
    0 0 0 calc(var(--u) * 1px) #6e6e72,
    0 0 0 calc(var(--u) * 2.2px) #2c2c2e,
    0 0 calc(var(--u) * 43px) calc(var(--u) * -13px) rgba(0, 0, 0, 0.75);
  overflow: hidden;
  background: #000;
}
.next-case__phone video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.is-scenes .next-case__icon {
  display: block;
  left: calc(var(--u) * 400px);
  top: calc(var(--u) * 466px);
  width: calc(var(--u) * 144px);
  height: calc(var(--u) * 144px);
  border-radius: calc(var(--u) * 36px);
  box-shadow: 0 calc(var(--u) * 12px) calc(var(--u) * 19px) calc(var(--u) * -12px) rgba(0, 0, 0, 0.4);
}
.is-scenes .next-case__panel {
  left: calc(var(--u) * 590px);
  top: calc(var(--u) * 171px);
  width: calc(var(--u) * 608px);
  height: calc(var(--u) * 365px);
  justify-content: center;
  gap: calc(var(--u) * 16px);
  padding: 0 calc(var(--u) * 40px);
  border-radius: calc(var(--u) * 7px);
}
.is-scenes .next-case__pill { padding: calc(var(--u) * 2px) calc(var(--u) * 6px); border-radius: calc(var(--u) * 8px); font-size: calc(var(--u) * 12px); }
.is-scenes .next-case__title { font-size: calc(var(--u) * 41px); }
.is-scenes .next-case__desc { font-size: calc(var(--u) * 24px); line-height: normal; }
.is-scenes .next-case__btn { padding: calc(var(--u) * 12px) calc(var(--u) * 14px); border-radius: calc(var(--u) * 4px); font-size: calc(var(--u) * 14px); }
/* the white mat: a window inset by --t with rounded corners (oorbi.js
   grows --t from 0 to 16) */
.is-scenes .mat {
  display: block;
  z-index: 45;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.mat::before {
  content: "";
  position: absolute;
  inset: var(--t, 0px);
  border-radius: var(--r, 0px);
  box-shadow: 0 0 0 200vmax var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .vibe__caret { animation: none; }
  .is-scenes [data-in], .is-scenes .facts__list *, .commits__marks li,
  .is-scenes .ai__phone, .is-scenes .ai__title, .is-scenes .ai__intro, .index li { transition: none !important; }
}
