/* RevolucionaT · para Jonathan · the story.
   His world: the supermarket aisle at night, his RevolucionaT plum. Night ground, cream type, one accent: the magenta
   of his burned-in keywords (#E23A76, with their black stroke). Montserrat 800/900 (titles, stats, chips, cards: the
   face of his keywords) and Inter 400/600 (text and UI). Self-hosted, swap.
   html.st-on   = the experience (story.js running).
   html.st-flat = ?rm=1, the flat mode: the readable document with end states and the one live phone.
   Without either, the page is a readable static document (no JS, or a script failed to load). */

@font-face { font-family: "Montserrat"; src: url("media/fonts/montserrat-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("media/fonts/montserrat-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("media/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("media/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --night: #160C19;
  --plum: #24132A;
  --line: #3A2442;
  --cream: #F6EFE6;
  --mute: #B3A6B5;
  --veil: rgba(22, 12, 25, .72);
  --magenta: #E23A76;
  --stroke: #0B0710;
  --night-rgb: 22, 12, 25;
  --hair: rgba(246, 239, 230, .1);
  --f-d: "Montserrat", "Arial Black", Arial, sans-serif;
  --f-t: "Inter", Arial, Helvetica, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-ios: cubic-bezier(.32, .72, 0, 1);
  --gut: 16px;
  --S: 100vh;
  --LH: 100vh;
  color-scheme: dark;
}
@supports (height: 100svh) { :root { --S: 100svh; --LH: 100lvh; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color: var(--cream); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font: 400 17px/1.4 var(--f-t);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
p, h1, h2, h3, ol, ul, li, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; }
ol, ul { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b { font-weight: 600; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.probe { position: fixed; top: 0; left: 0; width: 0; visibility: hidden; pointer-events: none; }
#vh-s { height: 100vh; height: 100svh; }
#vh-l { height: 100vh; height: 100lvh; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 1000; padding: 10px 14px; border-radius: 12px;
  background: var(--cream); color: var(--night); font: 600 15px/1.2 var(--f-t); text-decoration: none;
  transform: translateY(calc(-100% - 90px));
}
.skip:focus-visible { transform: none; }
.sr-story { display: none; }
html.st-on .sr-story { display: block; }
#end { height: 1px; }
.mg { color: var(--magenta); }
.nw { white-space: nowrap; }

/* ---------------------------------------------------------------------------------------------- type roles (SPEC 3) */
.t-over { font: 800 12px/1.2 var(--f-d); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.t-h1 { font: 900 34px/1.02 var(--f-d); letter-spacing: -.02em; }
html.st-desk .t-h1 { text-wrap: balance; }
.t-h2 { font: 900 28px/1.05 var(--f-d); letter-spacing: -.015em; }
.t-key { font: 900 32px/1.02 var(--f-d); letter-spacing: -.02em; text-wrap: balance; }
.t-lead { font: 800 21px/1.15 var(--f-d); letter-spacing: -.01em; text-wrap: balance; }
.t-stat { font: 900 48px/1 var(--f-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-num { font: 900 24px/1 var(--f-d); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-label { font: 400 15px/1.3 var(--f-t); color: var(--mute); }
.t-card { font: 800 20px/1.18 var(--f-d); letter-spacing: -.01em; }
.t-row { font: 400 16px/1.35 var(--f-t); }
.t-body { font: 400 17px/1.4 var(--f-t); }
.t-quote { font: 800 22px/1.18 var(--f-d); letter-spacing: -.01em; }
.t-small { font: 400 12px/1.3 var(--f-t); letter-spacing: .02em; color: var(--mute); }
html.st-desk .t-over { font-size: 14px; }
html.st-desk .t-h1 { font-size: 72px; }
html.st-desk .t-h2 { font-size: 54px; }
html.st-desk .t-key { font-size: 68px; }
html.st-desk .t-lead { font-size: 32px; }
html.st-desk .t-stat { font-size: 84px; }
html.st-desk .t-num { font-size: 36px; }
html.st-desk .t-label { font-size: 17px; }
html.st-desk .t-card { font-size: 28px; }
html.st-desk .t-row { font-size: 19px; }
html.st-desk .t-body { font-size: 20px; }
html.st-desk .t-quote { font-size: 32px; }
html.st-desk .t-small { font-size: 13px; }

/* the keyword chip: his own type (Montserrat 900 caps, magenta over a 3 px black stroke) on a plum tag */
.kc {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 10px 6px; border-radius: 10px;
  background: var(--plum); box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px -14px rgba(0, 0, 0, .9);
  white-space: nowrap; line-height: 1;
}
.kc__w {
  font: 900 15px/1 var(--f-d); letter-spacing: .01em; text-transform: uppercase; color: var(--magenta);
  -webkit-text-stroke: 3px var(--stroke); paint-order: stroke fill;
}
.kc__n { font: 600 12px/1 var(--f-t); color: var(--cream); font-variant-numeric: tabular-nums; }
html.st-desk .kc { gap: 9px; padding: 9px 13px 8px; border-radius: 11px; }
html.st-desk .kc__w { font-size: 18px; }
html.st-desk .kc__n { font-size: 14px; }

/* ---------------------------------------------------------------------------------------------- light and grain */
/* static grain (.035), never animated, no blend mode */
.grain {
  position: fixed; inset: 0; z-index: 800; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n' x='0' y='0'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='11' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 .96  0 0 0 0 .93  0 0 0 0 .9  0 0 0 1.4 -.4'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
/* the cool top light of the aisle */
.light { display: none; }
html.st-on .light {
  display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 50% -12%, rgba(214, 226, 240, .11) 0, rgba(214, 226, 240, .04) 45%, rgba(214, 226, 240, 0) 72%);
}

/* ============================================================================================== experience */
html.js:not(.st-on):not(.st-fail):not(.st-flat) #story,
html.js:not(.st-on):not(.st-fail):not(.st-flat) #dock { visibility: hidden; }
html.st-boot *, html.st-boot *::before, html.st-boot *::after { transition: none !important; }
html.st-on #run { position: relative; height: calc(var(--runL, 4040vh) + var(--LH)); }
html.st-on #end { position: absolute; left: 0; bottom: 0; width: 1px; }
html.st-on #stage {
  position: -webkit-sticky; position: sticky; top: 0;
  height: 100vh; height: var(--LH);
  overflow: hidden; overflow: clip;
  background: var(--night);
}
/* a chapter is a scene of the stage: no stacking context of its own; every block is placed by story.js (left, top,
   width at layout time; transform, opacity, clip-path per frame) */
html.st-on .sc { position: absolute; left: 0; top: 0; width: 100%; height: var(--LH); visibility: hidden; pointer-events: none; }
html.st-on .sc > * { position: absolute; left: 0; top: 0; z-index: 20; }
html.st-on .s1hero { display: none; }
html.st-on .sc.is-on [data-id] { will-change: transform, opacity; }

/* ---------------------------------------------------------------------------------------------- media frames */
.mb__i, .mb__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.mb__i { color: transparent; font-size: 0; }
.mb__v { z-index: 1; opacity: 0; transition: opacity .3s linear; }
.mb__v.on { opacity: 1; }

/* the backdrops (his wide loops, veiled 72%): never upscaled past 1.3x, the edges fall into the night */
.bg { display: none; }
html.st-on .bg {
  display: block; position: absolute; left: 0; top: 0; z-index: 1; overflow: hidden; pointer-events: none; visibility: hidden; opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, .5) 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, .5) 80%, transparent 100%);
}
.bg__veil { position: absolute; inset: 0; z-index: 2; background: var(--veil); }

/* ---------------------------------------------------------------------------------------------- 1 · Escribe PLAN */
.hero { display: none; }
html.st-on .hero { display: block; position: absolute; left: 0; top: 0; z-index: 2; overflow: hidden; transform-origin: 0 0; visibility: hidden; pointer-events: none; background: var(--plum); }
html.st-on .sc-1.is-on ~ .hero, html.st-on .hero.is-on { will-change: transform, opacity; }
/* phones: a top veil for the overline and the H1, a bottom veil under his title for the field and the counters */
.hero__vt, .hero__vb { position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none; }
.hero__vt { background: linear-gradient(180deg, rgba(var(--night-rgb), .9) 0, rgba(var(--night-rgb), .74) 58%, rgba(var(--night-rgb), 0) 100%); }
.hero__vb { background: linear-gradient(180deg, rgba(var(--night-rgb), 0) 0, rgba(var(--night-rgb), .78) 44px, rgba(var(--night-rgb), .93) 120px, rgba(var(--night-rgb), .96) 100%); }
html.st-desk .hero__vt, html.st-desk .hero__vb { display: none; }
html.st-on.st-desk .hero { border-radius: 18px; box-shadow: 0 0 0 1px rgba(246, 239, 230, .06), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.cnt { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 26px; row-gap: 20px; align-items: center; }
.cnt__r { display: contents; }
.cnt__r .t-stat, .cnt__r .t-body { display: block; }
.cnt__r .t-body { text-wrap: balance; }
html.st-on .cnt { position: static; display: block; }
html.st-on .cnt__r { display: block; }
html.st-on .cnt__r > [data-id] { position: absolute; left: 0; top: 0; z-index: 20; }
.c1cue { color: var(--cream); opacity: .85; }
.c1tot { text-wrap: balance; }

/* the comment field (chapters 1 and 9): ours, a plum pill; never a platform's */
.field {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 7px 0 8px; border-radius: 24px;
  background: rgba(36, 19, 42, .95); color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0, 0, 0, .9);
}
.field__av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #2F1C36; display: flex; align-items: center; justify-content: center; }
.field__av svg { width: 22px; height: 22px; fill: none; stroke: rgba(179, 166, 181, .7); stroke-width: 2.2; stroke-linecap: round; }
.field__tx { position: relative; flex: 1; min-width: 0; height: 24px; font: 600 17px/24px var(--f-t); white-space: nowrap; letter-spacing: .01em; }
.field__ty { position: absolute; left: 0; top: 0; }
html.st-on .field__ty .ch { visibility: hidden; }
html.st-on .field__ty .ch.on { visibility: inherit; }
.field__caret { position: absolute; left: 0; top: 2px; width: 2px; height: 20px; border-radius: 1px; background: var(--magenta); display: none; }
html.st-on .field__caret { display: block; }
html.st-on:not(.rmos) .field__caret.blink { animation: st-blink 1s steps(1, end) infinite; }
@keyframes st-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.field__send {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--mute); transition: background-color .16s linear, color .16s linear;
}
.field__send.on { background: var(--magenta); color: var(--cream); }
.field__arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
html.st-desk .field { height: 58px; border-radius: 29px; padding: 0 9px 0 10px; gap: 12px; }
html.st-desk .field__av { width: 38px; height: 38px; }
html.st-desk .field__tx { font-size: 20px; line-height: 26px; height: 26px; }
html.st-desk .field__caret { height: 22px; }
html.st-desk .field__send { width: 40px; height: 40px; }
html.st-on .field { opacity: 0; }

/* T1 · the shelf: three edges, his chips standing on them (placed by story.js in stage px) */
.shelf { position: relative; }
.shelf__e { display: none; }
html.st-on .shelf { position: static; }
html.st-on .shelf__c { position: static; }
html.st-on .shelf__e {
  display: block; position: absolute; left: 0; top: 0; z-index: 15; height: 5px; border-radius: 2px; transform-origin: 50% 50%;
  background: linear-gradient(180deg, rgba(246, 239, 230, .2) 0, rgba(246, 239, 230, .2) 1px, #3A2442 1px, #2A1830 100%);
  box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .8); opacity: 0;
}
html.st-on .shelf__c .kc { position: absolute; left: 0; top: 0; z-index: 16; opacity: 0; transform-origin: 50% 100%; }
html.st-on .shelf__c .kc--slot { visibility: hidden; }
/* a soft night band behind the shelf on phones (his face and shirt stay visible around it) */
.shelf__v { display: none; }
html.st-on .shelf__v {
  display: block; position: absolute; left: 0; top: 0; z-index: 14; pointer-events: none; opacity: 0; border-radius: 22px;
  background: radial-gradient(closest-side, rgba(var(--night-rgb), .62), rgba(var(--night-rgb), .46) 70%, rgba(var(--night-rgb), 0));
}
.kc--sent, .kc--go { display: none; }
html.st-on .kc--sent, html.st-on .kc--go { display: inline-flex; position: absolute; left: 0; top: 0; z-index: 24; transform-origin: 50% 50%; opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------------------------------------- 2 · Lo que ya tienes */
.c2h span { display: block; }
.list {
  background: var(--plum); border-radius: 18px; padding: 4px 12px;
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -28px rgba(0, 0, 0, .9);
}
html.st-on .list { opacity: 0; transform-origin: 50% 0; }
.list__r { position: relative; display: grid; grid-template-columns: 24px 116px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 13px 0; }
.list__r + .list__r { border-top: 1px dashed var(--line); }
.list__r .t-num { display: block; color: var(--cream); }
.list__r .t-label { display: block; }
.list__ck { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #5A3E63; transform: scale(var(--p, 1)); }
.list__ck::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--magenta); transform: scale(var(--f, 1)); }
.list__ck svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--cream); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: var(--k, 1); }
html.st-on .list__ck { --f: 0; --k: 0; }
html.st-desk .list { padding: 10px 34px; border-radius: 22px; }
html.st-desk .list__r { grid-template-columns: 34px 200px minmax(0, 1fr); column-gap: 18px; padding: 24px 0; }
html.st-desk .list__ck { width: 34px; height: 34px; }

/* ---------------------------------------------------------------------------------------------- 3 · Tu método */
.rls { display: block; }
html.st-on .rls { position: static; }
.rl { position: relative; overflow: hidden; border-radius: 16px; background: var(--plum); aspect-ratio: 4 / 5; }
html.st-on .rl { position: absolute; left: 0; top: 0; z-index: 12; visibility: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
/* the turning card: front what she believes, back his rule (a magenta edge); it turns like his can */
.tc { perspective: 1100px; }
.tc__in { position: relative; transform-style: preserve-3d; }
.tc__f, .tc__b {
  display: flex; align-items: center; min-height: var(--th, 0); padding: 14px 16px 15px; border-radius: 18px;
  background: var(--plum); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -28px rgba(0, 0, 0, .9);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.tc__f .t-card { color: rgba(246, 239, 230, .78); }
.tc__b { background: #2C1733; box-shadow: inset 4px 0 0 var(--magenta), inset 0 0 0 1px #4A2D52, 0 24px 48px -28px rgba(0, 0, 0, .9); }
html.st-on .tc__b { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: rotateY(180deg); }
html.st-on.rmos .tc__b { transform: none; }
html.st-on .tc { visibility: hidden; }
html.st-desk .tc__f, html.st-desk .tc__b { padding: 18px 20px 19px; }
html.st-on .tc [data-id] { will-change: auto; }

/* ---------------------------------------------------------------------------------------------- 4 · ¿Y después? */
.bus { display: flex; flex-wrap: wrap; gap: 10px; }
html.st-on .bus { position: static; display: block; }
.bu { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px 11px 12px; isolation: isolate; }
html.st-on .bu { position: absolute; left: 0; top: 0; z-index: 14; opacity: 0; transform-origin: 50% 50%; }
.bu__bg { position: absolute; inset: 0; z-index: -1; border-radius: 18px 18px 6px 18px; background: var(--plum); box-shadow: inset 0 0 0 1px var(--line), 0 16px 34px -18px rgba(0, 0, 0, .95); }
.bu:nth-child(2n) .bu__bg { border-radius: 18px 18px 18px 6px; }
.bu__g { flex: none; width: 20px; height: 20px; fill: none; stroke: rgba(246, 239, 230, .72); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bu__w { font: 900 15px/1 var(--f-d); letter-spacing: .01em; color: var(--magenta); -webkit-text-stroke: 3px var(--stroke); paint-order: stroke fill; }
html.st-desk .bu { padding: 14px 20px 14px 15px; gap: 11px; }
html.st-desk .bu__g { width: 24px; height: 24px; }
html.st-desk .bu__w { font-size: 18px; }
.bveil { display: none; }
html.st-on .bveil {
  display: block; width: 100%; height: 100%; z-index: 15; pointer-events: none; opacity: 0;
  background: linear-gradient(0deg, rgba(var(--night-rgb), .97) 0, rgba(var(--night-rgb), .92) var(--gb, 200px), rgba(var(--night-rgb), 0) calc(var(--gb, 200px) + 56px));
}
html.st-on.st-desk .bveil { background: linear-gradient(90deg, rgba(var(--night-rgb), 0) 0, rgba(var(--night-rgb), 0) 58%, rgba(var(--night-rgb), .9) 63%, var(--night) 100%); }
.key span { display: block; }
.key .mg { margin-top: 6px; }
html.st-desk .key .mg { margin-top: 10px; }
/* T4: the icon the seven messages fly into (it lands as the app icon) */
.ic { display: none; }
html.st-on .ic { display: block; position: absolute; left: 0; top: 0; z-index: 23; width: 96px; height: 96px; visibility: hidden; pointer-events: none; transform-origin: 0 0; }
.ic__sq { position: absolute; inset: 0; border-radius: 23%; background: radial-gradient(120% 100% at 50% 0%, #3A2442 0%, #24132A 40%, #160C19 80%); box-shadow: inset 0 0 0 1px rgba(246, 239, 230, .12), 0 18px 40px -16px rgba(226, 58, 118, .4); transform-origin: 50% 50%; }
.ic .ic__c { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ---------------------------------------------------------------------------------------------- 5 · Tu app */
html.st-on .lbs { position: static; }
.lb {
  background: var(--cream); color: var(--night); border-radius: 4px; padding: 10px 16px 11px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 14px 28px -16px rgba(0, 0, 0, .9); text-wrap: balance;
}
.lb__n { font-weight: 900; color: var(--magenta); }
html.st-on .lbs > li { position: absolute; left: 0; top: 0; z-index: 20; }
html.st-desk .lb { padding: 14px 20px 15px; transition: background-color .25s linear, color .25s linear, box-shadow .25s linear; }
html.st-desk .lb.dim { background: var(--plum); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
html.st-desk .lb.dim .lb__n { color: var(--mute); }
.lbm { display: none; }
html.st-on.st-desk .lbm { display: block; width: 6px; border-radius: 3px; background: var(--magenta); z-index: 21; box-shadow: 0 0 18px 2px rgba(226, 58, 118, .45); opacity: 0; }

/* ---------------------------------------------------------------------------------------------- 6 · Tu turno */
.tres { display: none; }
html.st-on.st-desk .tres { display: block; overflow: hidden; border-radius: 16px; background: var(--plum); z-index: 12; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.cnt6 { display: none; }
html.st-on.st-desk .cnt6 { display: block; font: 900 64px/1 var(--f-d); letter-spacing: -.02em; color: var(--cream); white-space: nowrap; }
.cnt6__n { font-weight: 900; color: var(--magenta); }

/* ---------------------------------------------------------------------------------------------- 4 · 5 · 6 · the phone (plum titanium) */
html.st-on .phone {
  display: block; position: absolute; left: 0; top: 0; z-index: 13;
  width: var(--cw, 393px); height: var(--chh, 852px); transform-origin: 0 0; pointer-events: none;
}
.phone { --R: 55px; --bz: 11px; --band: 6px; }
html.st-on .phone.ph-off { opacity: 0; visibility: hidden; }
html.st-on .phone.is-anim { will-change: transform, opacity, clip-path; }
html.st-on .phone__screen { pointer-events: auto; }
.phone__frame {
  position: absolute; inset: calc((var(--bz) + var(--band)) * -1);
  border-radius: calc(var(--R) + var(--bz) + var(--band));
  border: var(--band) solid transparent;
  background:
    linear-gradient(#08050A, #08050A) padding-box,
    linear-gradient(158deg, #4A3A50 0%, #3A2C40 12%, #2A1D2E 30%, #3E3044 50%, #2A1D2E 68%, #433548 86%, #4A3A50 100%) border-box;
  box-shadow: 0 0 0 .6px rgba(0, 0, 0, .8), inset 0 0 0 .6px rgba(255, 255, 255, .06);
  pointer-events: none;
}
.phone__frame::before {
  content: ""; position: absolute; inset: 0; border-radius: calc(var(--R) + var(--bz));
  border: var(--bz) solid #050307; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 .75px rgba(255, 255, 255, .05);
}
.phone__frame::after {
  content: ""; position: absolute; inset: calc(var(--band) * -1); border-radius: inherit; pointer-events: none;
  border-top: 1px solid rgba(232, 214, 240, .3);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 30%, #000 70%, transparent 92%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 30%, #000 70%, transparent 92%);
}
html.st-on .phone::before {
  content: ""; position: absolute; inset: calc((var(--bz) + var(--band)) * -1); border-radius: calc(var(--R) + var(--bz) + var(--band));
  box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .95); pointer-events: none;
}
.pb { position: absolute; width: 5px; border-radius: 2px; background: linear-gradient(90deg, #22172A 0%, #4A3A50 45%, #5C4A62 55%, #2A1D2E 100%); }
.pb--act { left: calc(0px - var(--bz) - var(--band) - 3.5px); top: 122px; height: 32px; }
.pb--vu { left: calc(0px - var(--bz) - var(--band) - 3.5px); top: 182px; height: 60px; }
.pb--vd { left: calc(0px - var(--bz) - var(--band) - 3.5px); top: 254px; height: 60px; }
.pb--pw { right: calc(0px - var(--bz) - var(--band) - 3.5px); top: 214px; height: 94px; }
.phone__screen { position: absolute; inset: 0; border-radius: var(--R); overflow: hidden; overflow: clip; background: var(--night); transform: translateZ(0); }
#jonathan-app { position: absolute; left: 0; top: 0; width: 100%; height: 100%; contain: strict; touch-action: pan-y; }
.phone__glare {
  position: absolute; inset: 0; z-index: 40; pointer-events: none; border-radius: var(--R);
  background: linear-gradient(118deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 20%, rgba(255, 255, 255, 0) 38%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone__island { position: absolute; top: 11px; left: 50%; z-index: 41; width: 126px; height: 37px; margin-left: -63px; border-radius: 18.5px; background: #000; pointer-events: none; }
.phone__island::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #4A3A56 0, #151021 38%, #06040A 62%, #000 72%);
}
/* a magenta bounce under the phone */
.bounce { display: none; }
html.st-on .bounce {
  display: block; position: absolute; left: 0; top: 0; z-index: 3; width: 640px; height: 280px; margin: -140px 0 0 -320px; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(226, 58, 118, .2), rgba(226, 58, 118, .07) 55%, rgba(226, 58, 118, 0));
}
/* the static splash: only when the app is missing */
.phone__fb { display: none; position: absolute; inset: 0; background: var(--night); color: var(--cream); text-align: center; }
html.st-noapp .phone__fb, html[data-noapp] .phone__fb, html:not(.st-on):not(.st-flat) .phone__fb { display: block; }
html.st-noapp #jonathan-app, html[data-noapp] #jonathan-app, html:not(.st-on):not(.st-flat) #jonathan-app { display: none; }
.fb__ic { position: relative; display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin: 300px auto 0; border-radius: 23%; background: var(--night); box-shadow: inset 0 0 0 1.5px var(--line); }
.fb__ic .kc { padding: 5px 7px 4px; border-radius: 7px; }
.fb__ic .kc__w { font-size: 17px; -webkit-text-stroke-width: 2.5px; }
.fb__w { margin-top: 26px; font: 900 30px/1 var(--f-d); letter-spacing: -.01em; }
.fb__s { margin-top: 10px; font: 400 15px/1 var(--f-t); color: var(--mute); }

/* the scroll reminder (chapter 6): story.js places it under the live phone (phones) or beside it (desktop), never on the glass */
.nudge { display: none; }
html.st-on .nudge {
  display: flex; position: absolute; z-index: 27; left: 0; top: 0; align-items: center; gap: 10px;
  padding: 7px 16px 7px 7px; border-radius: 24px; background: var(--plum); color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0, 0, 0, .9); white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; translate: 0 10px;
  transition: opacity .32s linear, translate .42s var(--ease-out), visibility 0s linear .42s;
}
html.st-on .nudge.on { opacity: 1; visibility: inherit; translate: 0 0; transition: opacity .32s linear, translate .42s var(--ease-out), visibility 0s; }
.nudge__c { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--magenta); }
.nudge__c svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nudge__t { display: flex; flex-direction: column; gap: 2px; }
.nudge__t b { font: 800 15px/1.15 var(--f-d); letter-spacing: -.005em; }
.nudge__t span { font: 400 13px/1.25 var(--f-t); color: var(--mute); }
html.st-on:not(.rmos) .nudge.on .nudge__c svg { animation: st-nudge 1.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes st-nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ---------------------------------------------------------------------------------------------- 7 · Por qué funciona: el ticket */
.slot, .rc { display: none; }
html.st-on .slot {
  display: block; z-index: 19; height: 14px; border-radius: 7px; opacity: 0;
  background: linear-gradient(180deg, #050307 0, #0B0710 55%, #1E1124 100%);
  box-shadow: inset 0 1px 0 rgba(246, 239, 230, .08), 0 0 0 1px #3A2442, 0 10px 18px -8px rgba(0, 0, 0, .9);
}
.slot__m { position: absolute; left: 14px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px 1px rgba(226, 58, 118, .6); }
/* the paper: story.js clips it to the height it has fed out, with a torn zigzag edge */
html.st-on .rc {
  display: block; z-index: 18; visibility: hidden;
  background: linear-gradient(180deg, #E9E0D4 0, var(--cream) 10px, var(--cream) 100%);
}
html.st-on .rcr { position: static; }
html.st-on .rcr > li { position: absolute; left: 0; top: 0; z-index: 20; color: var(--night); }
.rr__k { font: 600 .86em/1 var(--f-t); letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); }
.rr--tot .rr__v { font: 900 1.25em/1 var(--f-d); letter-spacing: -.01em; }
html.st-on .rr::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--sep, 12px) * -1); border-top: 1px dashed rgba(22, 12, 25, .3); }
html.st-on .rr.rr--top::before { display: none; }
html.st-on .rr--tot::before { border-top: 2px solid rgba(22, 12, 25, .75); }
/* desktop: the total stands right of the ticket, on the night */
html.st-on.st-desk .rr--tot { color: var(--cream); }
html.st-on.st-desk .rr--tot::before { display: none; }
html.st-on.st-desk .rr--tot .rr__k { display: block; margin-bottom: 14px; }
html.st-on.st-desk .rr--tot .rr__v { display: block; font-size: 4.2em; line-height: .95; }

/* ---------------------------------------------------------------------------------------------- 8 · Los números (quiet) */
.nr b { font-weight: 600; color: var(--cream); }
.sc-8 .nr { color: rgba(246, 239, 230, .84); }
html.st-on .nr::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 1px; background: var(--line); }
html.st-on.st-desk .nr::before { top: -20px; }

/* ---------------------------------------------------------------------------------------------- 9 · Escribe GO */
.t-quote { color: var(--cream); }
html.st-on .sh9 { position: static; }
html.st-on .sh9__c { position: static; }
.sh9__e { display: none; }
html.st-on .sh9__e {
  display: block; position: absolute; left: 0; top: 0; z-index: 15; height: 5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(180deg, rgba(246, 239, 230, .2) 0, rgba(246, 239, 230, .2) 1px, #3A2442 1px, #2A1830 100%);
  box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .8);
}
.sh9__c { display: flex; flex-wrap: wrap; gap: 8px; }
html.st-on .sh9__c .kc { position: absolute; left: 0; top: 0; z-index: 16; opacity: 0; }
html.st-on .sh9__c .kc--slot { visibility: hidden; }
html.st-on .sh9 .kc { box-shadow: inset 0 0 0 1px var(--line); }
/* the card: Jeremy and Maxime side by side, Instagram first, WhatsApp second */
.ct {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; padding: 14px;
  border-radius: 22px; background: var(--plum); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .95);
}
.ct:focus { outline: none; }
.ct__p { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct__who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ct__who img { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--plum), 0 0 0 2.5px var(--hair); }
.ct__who > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct__who b { font: 800 16px/1.05 var(--f-d); letter-spacing: -.005em; }
.ct__who > span > span { font: 400 12px/1.1 var(--f-t); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 46px; padding: 0 12px;
  border-radius: 14px; background: var(--magenta); color: var(--cream); text-decoration: none; font: 800 16px/1 var(--f-d); letter-spacing: -.005em;
  transition: transform .14s var(--ease-out); touch-action: manipulation;
}
.btn--2 { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246, 239, 230, .32); }
.btn:active { transform: scale(.97); }
.btn span { white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.st-on .ct { pointer-events: none; }
html.st-on .ct.live { pointer-events: auto; }
html.st-desk .ct { padding: 26px; column-gap: 20px; border-radius: 26px; }
html.st-desk .ct__p { gap: 14px; }
html.st-desk .ct__who { gap: 14px; margin-bottom: 4px; }
html.st-desk .ct__who img { width: 52px; height: 52px; }
html.st-desk .ct__who b { font-size: 22px; }
html.st-desk .ct__who > span > span { font-size: 14px; }
html.st-desk .btn { height: 58px; font-size: 19px; border-radius: 16px; }
html.c9-tight:not(.st-desk) .ct { padding: 12px; }
html.c9-tight:not(.st-desk) .ct__p { gap: 8px; }
html.c9-tight:not(.st-desk) .ct .btn { height: 42px; }

/* ---------------------------------------------------------------------------------------------- the contact pill + sheet */
#dock {
  position: fixed; z-index: 900; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transition: transform .28s var(--ease-ios), opacity .28s linear, visibility 0s;
}
#dock.aside { transform: translate3d(0, calc(100% + 16px), 0); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .28s var(--ease-ios), opacity .28s linear, visibility 0s linear .28s; }
.pill {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 9px;
  border-radius: 24px; background: rgba(36, 19, 42, .96); color: var(--cream); border: 0;
  box-shadow: inset 0 0 0 1px rgba(246, 239, 230, .14), 0 18px 40px -18px rgba(0, 0, 0, .9);
  font: 800 16px/1 var(--f-d); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: transform .14s var(--ease-out), opacity .2s linear;
}
.pill:active { transform: scale(.96); }
.pill__faces { display: flex; }
.pill__faces img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--plum); }
.pill__faces img + img { margin-left: -8px; }
#dock.open .pill { opacity: 0; }
/* the autoplay control: bottom left, the contact pill keeps bottom right (as alan) */
#autoplay {
  position: fixed; z-index: 900; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transition: transform .28s var(--ease-ios), opacity .28s linear, visibility 0s;
}
html.js:not(.st-on) #autoplay, html.st-flat #autoplay, html.st-fail #autoplay { display: none; }
#autoplay.aside { transform: translate3d(0, calc(100% + 16px), 0); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .28s var(--ease-ios), opacity .28s linear, visibility 0s linear .28s; }
.auto {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px 0 11px;
  border-radius: 24px; background: rgba(36, 19, 42, .96); color: var(--cream); border: 0;
  box-shadow: inset 0 0 0 1px rgba(246, 239, 230, .14), 0 18px 40px -18px rgba(0, 0, 0, .9);
  font: 800 16px/1 var(--f-d); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: transform .14s var(--ease-out);
}
.auto:active { transform: scale(.96); }
.auto__i { width: 26px; height: 26px; border-radius: 50%; background: var(--magenta); color: var(--cream); display: grid; place-items: center; flex: none; }
.auto__i svg { width: 10px; height: 10px; fill: currentColor; display: block; }
.auto__i svg[fill="none"] { fill: none; width: 12px; height: 12px; }
.auto__bar { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 1px; background: rgba(246, 239, 230, .14); overflow: hidden; }
.auto__bar i { display: block; width: 100%; height: 100%; background: var(--magenta); transform-origin: 0 50%; transform: scaleX(0); }
#autoplay:not(.is-on) .auto__bar { opacity: .55; }
.auto-off { opacity: 0 !important; visibility: hidden !important; }
#sheet-scrim { position: fixed; inset: 0; z-index: 950; background: rgba(0, 0, 0, .62); opacity: 0; transition: opacity .22s linear; }
#sheet-scrim.on { opacity: 1; }
#sheet {
  position: fixed; z-index: 960; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  max-width: 480px; margin: 0 auto; max-height: calc(100% - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 22px 20px 20px; border-radius: 28px; background: var(--plum); color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--hair), 0 30px 80px -24px rgba(0, 0, 0, .9);
  transform: translate3d(0, 112%, 0); transition: transform .4s var(--ease-ios);
}
#sheet.on { transform: none; }
.sheet__grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(246, 239, 230, .18); margin: -8px auto 14px; }
.sheet__x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--cream); }
.sheet__h { font: 900 28px/1.05 var(--f-d); letter-spacing: -.015em; padding-right: 44px; }
.sheet__s { margin-top: 8px; font: 400 15px/1.3 var(--f-t); color: var(--mute); }
.who { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 12px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--plum), 0 0 0 2.5px var(--hair); }
.who__n { display: flex; flex-direction: column; gap: 3px; }
.who__n b { font: 800 18px/1.1 var(--f-d); letter-spacing: -.005em; }
.who__n span { font: 400 13px/1.2 var(--f-t); color: var(--mute); }
.who__b { grid-column: 1 / -1; display: flex; gap: 10px; }
.who__b .btn { flex: 1; height: 48px; font-size: 17px; }

/* ============================================================================================== static document
   (no JS, a script failed to load, or ?rm=1): the same words, the same order, readable, end states. */
html:not(.st-on) #stage { position: static; height: auto; overflow: visible; }
html:not(.st-on) .bg, html:not(.st-on) .hero, html:not(.st-on) .kc--sent, html:not(.st-on) .kc--go, html:not(.st-on) .bveil,
html:not(.st-on) .ic, html:not(.st-on) .lbm, html:not(.st-on) .tres, html:not(.st-on) .cnt6, html:not(.st-on) .bounce,
html:not(.st-on) .nudge, html:not(.st-on) .slot, html:not(.st-on) .rc, html:not(.st-on) .light, html:not(.st-on) .mb__v,
html:not(.st-on) .c1cue, html:not(.st-on) .field__caret { display: none; }
html.no-js img[data-src] { display: none; }
html:not(.st-on) .sc { position: relative; padding: 64px var(--gut) 0; max-width: 760px; margin: 0 auto; }
html:not(.st-on) .sc-1 { padding-top: 0; }
html:not(.st-on) .s1hero { position: relative; margin: 0 calc(var(--gut) * -1) 20px; height: min(72vh, 680px); overflow: hidden; }
html:not(.st-on) .s1hero img { width: 100%; height: 100%; object-fit: cover; }
html:not(.st-on) .s1hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--night-rgb), 0) 70%, var(--night) 100%); }
html:not(.st-on) .t-over { margin-bottom: 10px; }
html:not(.st-on) .t-h1, html:not(.st-on) .t-h2 { display: block; font-size: clamp(30px, 7vw, 56px); }
html:not(.st-on) .t-h1 { margin-bottom: 18px; }
html:not(.st-on) .c2h, html:not(.st-on) .key { display: block; margin-bottom: 18px; }
html:not(.st-on) .key { margin-top: 28px; }
html:not(.st-on) .field { margin: 18px 0; max-width: 420px; }
html:not(.st-on) .field__send { background: var(--magenta); color: var(--cream); }
html:not(.st-on) .cnt { margin: 18px 0; }
html:not(.st-on) .t-small { display: block; margin-top: 8px; }
html:not(.st-on) .shelf { margin: 22px 0 12px; }
html:not(.st-on) .shelf__c, html:not(.st-on) .sh9__c { display: flex; flex-wrap: wrap; gap: 10px; }
html:not(.st-on) .shelf__c .kc--slot, html:not(.st-on) .sh9__c .kc--slot { box-shadow: inset 0 0 0 2px var(--magenta); }
html:not(.st-on) .sh9 { margin: 18px 0; }
html:not(.st-on) .list { margin: 18px 0; }
html:not(.st-on) .t-lead { margin-top: 14px; }
html:not(.st-on) .rls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 12px; }
html:not(.st-on) .tc { margin-top: 14px; }
html:not(.st-on) .tc__b { margin-top: 8px; }
html:not(.st-on) .bus { margin: 22px 0; }
html:not(.st-on) .bu__bg { position: absolute; }
html:not(.st-on) .sc-4 .t-body, html:not(.st-on) .sc-6 .t-body, html:not(.st-on) .sc-7 .t-body { margin-top: 10px; }
html:not(.st-on) .t-key { display: block; }
html:not(.st-on) .lbs { display: grid; gap: 12px; margin-top: 18px; }
html:not(.st-on) .sc-6 .t-key { margin-top: 18px; }
html:not(.st-on) .phone { position: relative; width: 393px; height: 852px; margin: 34px 0 calc(852px * -.28 + 10px) calc(50% - 196.5px); transform: scale(.72); transform-origin: 50% 0; }
html:not(.st-on) .phone__screen { border-radius: 55px; }
html:not(.st-on) .rcr { display: grid; gap: 12px; margin-top: 18px; padding: 20px 18px; border-radius: 4px; background: var(--cream); color: var(--night); }
html:not(.st-on) .nr { margin-top: 12px; }
html:not(.st-on) .t-quote { margin-bottom: 8px; }
html:not(.st-on) .sc-9 .t-h1 { margin-top: 26px; }
html:not(.st-on) .ct { margin: 22px 0 16px; max-width: 520px; }
html:not(.st-on) .sc-9 { padding-bottom: 110px; }
@media (min-width: 760px) {
  html:not(.st-on) .s1hero { max-width: 420px; margin: 40px auto 24px; border-radius: 18px; aspect-ratio: 9 / 16; height: auto; }
}
