/* LinkedIn growth deck: shared scene styles. Tokens come from /assets/tokens.css, runtime from /deck/deck.css.
 * Chapter styles live in ch-*.css and prefix every selector with their own class prefix (ga-, gb-, gc-).
 * Layout classes (FORMAT section 7): desktop (>= 960 x 600), compact (landscape below that, down to 640 x 360),
 * phone (portrait, < 760 wide). CSS: compact = (max-height: 619px), (max-width: 959px) and not phone;
 * phone = (max-width: 759px) and (orientation: portrait). Satoshi everywhere, digits with tabular-nums. */

/* ---------- extra worlds ---------- */
.theme-li { --s-bg: #F4F2EE; --s-fg: rgba(0,0,0,.9); --s-muted: rgba(0,0,0,.6); --s-line: rgba(140,140,140,.28); --s-accent: #0A66C2; background: var(--s-bg); color: var(--s-fg); }
.theme-claude { --s-bg: #F5F4EE; --s-fg: #1f1e1d; --s-muted: #6b6a66; --s-line: #E3E0D6; --s-accent: #D97757; background: var(--s-bg); color: var(--s-fg); }
.deck[data-theme="li"], .deck[data-theme="claude"] { --hud-fg: #111; }
.theme-paper { --s-muted: var(--ink-2, #555); }
.lg-scene { font-variant-numeric: tabular-nums; }

/* ---------- layout: every scene is built with shell() ---------- */
.scene .lg { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; row-gap: clamp(14px, 2.6vh, 34px); align-items: start;
  padding: calc(var(--hud-top, 64px) + clamp(8px, 2.4vh, 34px)) clamp(20px, 5.5vw, 104px) calc(var(--hud-bottom, 100px) + clamp(4px, 1.6vh, 24px)); }
.lg-t { grid-column: 1 / -1; grid-row: 1; max-width: min(100%, 23em); font-size: clamp(28px, 3.05vw, 50px); line-height: 1.08; letter-spacing: -.028em; font-weight: 500; color: var(--s-fg); text-wrap: balance; position: relative; z-index: 3; margin: 0; }
.lg-vis { position: relative; min-width: 0; min-height: 0; }
.lg-side { position: relative; z-index: 3; display: grid; gap: 16px; align-content: start; min-width: 0; }

/* split: side text left, visual right */
.scene .lg--split { grid-template-columns: minmax(0, .37fr) minmax(0, .63fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(24px, 4vw, 72px); }
.lg--split .lg-side { grid-column: 1; grid-row: 2; align-self: start; max-width: 26em; }   /* round 5: supporting text starts right under the title */
.lg--split .lg-vis { grid-column: 2; grid-row: 2; align-self: stretch; height: 100%; }

/* stage: visual full width under the title, side text in one row under it (ends before the nav cluster) */
.scene .lg--stage { grid-template-rows: auto auto minmax(0, 1fr); }
.lg--stage .lg-vis { grid-row: 3; align-self: stretch; height: 100%; }
.lg--stage .lg-side { grid-row: 2; grid-auto-flow: column; grid-auto-columns: minmax(0, max-content); gap: clamp(18px, 3vw, 44px); align-items: start; max-width: calc(100% - 200px); }

/* full and right: the visual is a full-bleed layer behind the text (3D worlds) */
.scene > .lg-vis { position: absolute; inset: 0; z-index: 0; }
.scene .lg--full, .scene .lg--right { pointer-events: none; z-index: 2; }
.lg--full > *, .lg--right > * { pointer-events: auto; }
.lg--full .lg-t, .lg--right .lg-t { max-width: min(100%, 19em); }
.lg--full .lg-side { grid-row: 2; align-self: start; max-width: min(27em, 100%); }   /* round 5: under the title; 3D fits around it (freeBox) */
.scene .lg--right { grid-template-columns: minmax(0, 1fr) minmax(0, 24em); }
.lg--right .lg-t { grid-column: 1 / -1; }
.lg--right .lg-side { grid-column: 1; grid-row: 2; align-self: start; max-width: min(27em, 100%); }

/* soft scrims so text stays readable over 3D (add .lg-scrim to the scene layer) */
.lg-scrim > .lg-vis::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--s-bg) 84%, transparent) 0, color-mix(in srgb, var(--s-bg) 40%, transparent) calc(var(--hud-top, 64px) + 90px), transparent 40%),
              linear-gradient(0deg, color-mix(in srgb, var(--s-bg) 80%, transparent) 0, transparent 34%); }
/* a soft panel behind side text over 3D */
.lg-glass { position: relative; padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--s-bg) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-fg) 10%, transparent); }

/* ---------- copy blocks ---------- */
.scene .lg-note { font-size: clamp(16px, 1.3vw, 21px); line-height: 1.48; color: color-mix(in srgb, var(--s-fg) 86%, transparent); max-width: 30em; margin: 0; }
.lg-cite { display: grid; gap: 4px; }
.lg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lg-steps li { position: relative; padding-left: 22px; font-size: clamp(16px, 1.28vw, 20px); line-height: 1.4; color: var(--s-fg); }
.lg-steps li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 8px; height: 8px; border-radius: 50%; background: var(--cta, #FF7F32); }
.scene .lg-pit { display: flex; gap: 10px; align-items: flex-start; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; color: var(--c-rose-t, #85503F); max-width: 30em; margin: 0; }
.lg-pit__i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 4px; background: color-mix(in srgb, var(--c-rose, #E1B5A8) 45%, transparent); color: var(--c-rose-t, #85503F); }
.theme-ink .lg-pit, .theme-night .lg-pit { color: var(--c-rose, #E1B5A8); }
.theme-ink .lg-pit__i, .theme-night .lg-pit__i { background: rgb(225 181 168 / .16); color: var(--c-rose, #E1B5A8); }
.lg-src { display: inline-block; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--s-muted); }
.lg-src--line { display: block; }
.lg-stat { display: grid; gap: 4px; align-content: start; }
.lg-stat__v { font-size: clamp(38px, 4.6vw, 80px); line-height: 1; letter-spacing: -.035em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--s-fg); }
.lg-stat--sm .lg-stat__v { font-size: clamp(28px, 2.8vw, 46px); }
.lg-stat--xl .lg-stat__v { font-size: clamp(56px, 8vw, 140px); }
.lg-stat--orange .lg-stat__v { color: var(--cta, #FF7F32); }
.lg-stat--rose .lg-stat__v { color: var(--c-rose-t, #85503F); }
.theme-ink .lg-stat--rose .lg-stat__v, .theme-night .lg-stat--rose .lg-stat__v { color: var(--c-rose, #E1B5A8); }
.lg-stat__l { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.4; color: var(--s-fg); max-width: 26em; }
.lg-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.lg-tag--line { box-shadow: inset 0 0 0 1px var(--s-line); color: var(--s-fg); }
.lg-tag--orange { background: var(--cta, #FF7F32); color: #fff; }
.lg-tag--rose { background: var(--c-rose, #E1B5A8); color: var(--c-rose-t, #85503F); }
.lg-tag--aqua { background: var(--c-aqua, #9CE7DD); color: var(--c-aqua-t, #1C6A60); }
.lg-tag--ink { background: #111; color: #fff; }
.lg-tag--glass { background: rgb(255 255 255 / .08); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); backdrop-filter: blur(6px); }
/* the "Example" tag on invented mock values */
.lg-example { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font: 500 14px/1 var(--font-sans); color: var(--s-muted); background: color-mix(in srgb, var(--s-fg) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-fg) 12%, transparent); white-space: nowrap; }

/* ---------- 3D layers and labels ---------- */
.lg-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene canvas { display: block; }
/* a DOM label positioned with place()/pin() inside the 3D host */
.lg-label { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; white-space: nowrap; font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--s-fg); will-change: transform; text-shadow: 0 1px 12px color-mix(in srgb, var(--s-bg) 90%, transparent); }
.lg-label--muted { color: var(--s-muted); }
.lg-label--wrap { white-space: normal; max-width: 13em; }

/* halftone bars: --v from 0 to 1 */
.lg-ht { position: relative; height: 18px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--s-line); overflow: hidden; --dot: #A9A6A0; }
.lg-ht i { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(100% - 6px); background: radial-gradient(circle, var(--dot) 1.5px, transparent 1.9px) 0 0 / 5px 5px; clip-path: inset(0 calc((1 - var(--v, 0)) * 100%) 0 0); transition: clip-path 1.2s var(--ease, cubic-bezier(.2,.8,.2,1)); }
.lg-ht--v { width: 22px; height: auto; }
.lg-ht--v i { left: 3px; right: 3px; top: 3px; bottom: 3px; width: auto; clip-path: inset(calc((1 - var(--v, 0)) * 100%) 0 0 0); }
.lg-ht--orange { --dot: var(--cta, #FF7F32); }
.lg-ht--rose { --dot: var(--c-rose-d, #C79586); }
.lg-ht--aqua { --dot: var(--c-aqua-d, #66CDBF); }
.lg-ht--blue { --dot: #5FBFE0; }
.lg-ht--lilac { --dot: #A996D8; }
.lg-ht--grey { --dot: #A9A6A0; }
.theme-ink .lg-ht--grey, .theme-night .lg-ht--grey { --dot: rgb(255 255 255 / .42); }

/* departure board (Satoshi, tabular digits; never monospace) */
.lg-flap { display: inline-flex; gap: 2px; font: 600 clamp(16px, 1.6vw, 24px)/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.lg-flap__c { position: relative; display: inline-block; width: .74em; height: 1.32em; overflow: hidden; background: #0a0a0b; color: #fff; border-radius: 2px; text-align: center; box-shadow: inset 0 -1px 0 rgb(255 255 255 / .05); }
.lg-flap__c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(0 0 0 / .7); }
.lg-flap__s { display: flex; flex-direction: column; transition: transform 1.3s cubic-bezier(.2, .8, .2, 1); }
.lg-flap__s span { display: block; height: 1.32em; line-height: 1.32em; }

/* typing caret */
.lg-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: lg-blink 1s steps(1) infinite; }
@keyframes lg-blink { 50% { opacity: 0; } }

.scene [data-show]:not(.is-on), .scene [data-hide]:not(.is-on) { pointer-events: none; }

/* ======================================================================================
 * LinkedIn mock kit (li-). Realistic LinkedIn UI in Satoshi. Colours from LinkedIn's own palette.
 * ====================================================================================== */
.li-card { position: relative; background: #fff; color: rgba(0,0,0,.9); border-radius: 10px; box-shadow: 0 0 0 1px rgb(140 140 140 / .2), 0 1px 2px rgb(0 0 0 / .04), 0 22px 46px -30px rgb(0 0 0 / .35); font-family: var(--font-sans); font-variant-numeric: tabular-nums; text-align: left; }
.li-i { display: inline-grid; place-items: center; line-height: 0; }
.li-i svg { display: block; }
.li-av { flex: none; position: relative; width: var(--av, 48px); height: var(--av, 48px); border-radius: 50%; overflow: hidden; background: #e9e5df; box-shadow: 0 0 0 1px rgb(0 0 0 / .06); }
.li-av canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.li-blur { display: block; max-width: 100%; }
.li-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; padding: 0 16px; border-radius: 16px; font: 600 15px/1 var(--font-sans); white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.li-btn--primary { background: #0A66C2; color: #fff; }
.li-btn--outline { box-shadow: inset 0 0 0 1px #0A66C2; color: #0A66C2; background: #fff; }
.li-btn--ghost { color: #0A66C2; padding: 0 8px; }
.li-btn--grey { box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); color: rgba(0,0,0,.6); background: #fff; }

/* post */
.li-post { width: 100%; max-width: 552px; overflow: hidden; }
.li-post__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; }
.li-post__who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.li-post__name { font-size: 15px; font-weight: 600; line-height: 1.25; color: rgba(0,0,0,.9); }
.li-post__sub { font-size: 14px; line-height: 1.3; color: rgba(0,0,0,.6); }
.li-post__subbar { display: block; width: 72%; }
.li-post__menu { flex: none; color: rgba(0,0,0,.6); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.li-post__follow { flex: none; }
.li-post__ex { flex: none; }
.li-post__text { padding: 10px 16px 12px; font-size: 15px; line-height: 1.45; color: rgba(0,0,0,.9); }
.li-post__p { margin: 0; }
.li-post__p + .li-post__p { margin-top: 2px; }
.li-post__more { color: rgba(0,0,0,.6); font-weight: 500; }
.li-post__media { position: relative; background: #eef3f8; }
.li-post__counts { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; font-size: 14px; color: rgba(0,0,0,.6); }
.li-post__react { display: inline-flex; align-items: center; gap: 6px; }
.li-post__badges { display: inline-flex; }
.li-post__badges svg { width: 16px; height: 16px; margin-right: -4px; box-shadow: 0 0 0 2px #fff; border-radius: 50%; }
.li-post__badges svg:last-child { margin-right: 0; }
.li-post__actions { display: flex; justify-content: space-around; padding: 4px 8px 6px; border-top: 1px solid rgb(140 140 140 / .2); margin: 0 8px; color: rgba(0,0,0,.6); }
.li-act { display: grid; place-items: center; width: 56px; height: 40px; border-radius: 4px; }
.li-post--compact .li-post__head { padding: 10px 12px 0; }
.li-post--compact .li-post__text { padding: 8px 12px 10px; font-size: 14px; }

/* comment */
.li-cmt { display: flex; gap: 8px; padding: 6px 16px; align-items: flex-start; }
.li-cmt--reply { padding-left: 56px; }
.li-cmt__bubble { flex: 1; min-width: 0; background: #F2F2F2; border-radius: 0 8px 8px 8px; padding: 8px 12px; display: grid; gap: 2px; }
.li-cmt__name { font-size: 14px; font-weight: 600; color: rgba(0,0,0,.9); }
.li-cmt__t { margin: 0; font-size: 15px; line-height: 1.4; color: rgba(0,0,0,.9); }

/* messaging window */
.li-dm { width: min(340px, 92vw); display: grid; grid-template-rows: auto 1fr auto; border-radius: 10px 10px 0 0; overflow: hidden; }
.li-dm__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgb(140 140 140 / .2); font-size: 15px; }
.li-dm__head b { flex: 1; font-weight: 600; }
.li-dm__x { display: inline-flex; gap: 6px; color: rgba(0,0,0,.6); }
.li-dm__x svg { width: 16px; height: 16px; }
.li-dm__list { display: grid; gap: 8px; padding: 12px; align-content: start; min-height: 120px; }
.li-dm__msg { justify-self: start; max-width: 88%; display: grid; gap: 8px; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: #F2F2F2; font-size: 15px; line-height: 1.4; }
.li-dm__msg p { margin: 0; }
.li-dm__msg--me { justify-self: end; border-radius: 14px 4px 14px 14px; background: #EAF2FB; }
.li-dm__chip { display: inline-flex; align-items: center; gap: 6px; justify-self: start; height: 32px; padding: 0 12px; border-radius: 16px; background: #fff; color: #0A66C2; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px #0A66C2; }
.li-dm__chip svg { width: 16px; height: 16px; }
.li-dm__foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid rgb(140 140 140 / .2); color: rgba(0,0,0,.45); }
.li-dm__field { flex: 1; height: 34px; border-radius: 6px; background: #F4F2EE; }

/* profile */
.li-prof { width: 100%; max-width: 720px; overflow: hidden; }
.li-prof__banner { height: clamp(70px, 16vh, 150px); background:
  radial-gradient(circle at 82% 30%, rgb(255 255 255 / .55) 0 1.6px, transparent 2px) 0 0 / 9px 9px,
  linear-gradient(120deg, #1B7FB0, #34B0DE 55%, #9CE7DD); }
.li-prof__body { position: relative; padding: 0 24px 20px; display: grid; gap: 4px; }
.li-prof__av { --av: clamp(84px, 13vh, 132px) !important; margin-top: calc(var(--av) * -.55); box-shadow: 0 0 0 4px #fff; }
.li-prof__name { margin: 8px 0 0; font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: rgba(0,0,0,.9); }
.li-prof__head { margin: 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.4; color: rgba(0,0,0,.9); max-width: 34em; }
.li-prof__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* people search */
.li-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 6px; background: #EDF3F8; color: rgba(0,0,0,.9); font-size: 15px; min-width: 0; }
.li-search .li-i { color: rgba(0,0,0,.6); }
.li-search__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.li-person { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid rgb(140 140 140 / .2); }
.li-person:first-child { border-top: 0; }
.li-person__who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.li-person__who b { font-size: 15px; font-weight: 600; color: rgba(0,0,0,.9); }
.li-person__who span { font-size: 14px; color: rgba(0,0,0,.9); }
.li-person__btn.is-sent { box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); color: rgba(0,0,0,.45); }

/* phone */
.li-phone { position: relative; aspect-ratio: 9 / 19; height: 100%; max-height: 100%; max-width: 100%; padding: 9px; border-radius: 40px; background: linear-gradient(160deg, #2a2d31, #0d0e10); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(255 255 255 / .08); box-sizing: border-box; }
.li-phone__glass { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #F4F2EE; display: grid; grid-template-rows: 26px auto 1fr auto; }
.li-phone__status { position: relative; background: #fff; }
.li-phone__notch { position: absolute; left: 50%; top: 6px; width: 34%; height: 16px; transform: translateX(-50%); border-radius: 10px; background: #0d0e10; }
.li-phone__top { display: flex; align-items: center; gap: 10px; padding: 6px 12px 8px; background: #fff; color: rgba(0,0,0,.6); }
.li-phone__search { flex: 1; height: 30px; border-radius: 4px; background: #EDF3F8; display: flex; align-items: center; padding: 0 10px; }
.li-phone__screen { position: relative; overflow: hidden; min-height: 0; }
.li-phone__tabs { display: flex; justify-content: space-around; padding: 8px 6px 14px; background: #fff; color: rgba(0,0,0,.55); box-shadow: 0 -1px 0 rgb(140 140 140 / .2); }
.li-phone__tabs .is-on { color: rgba(0,0,0,.9); }
.li-phone .li-post { border-radius: 0; box-shadow: 0 1px 0 rgb(140 140 140 / .2); max-width: none; }

/* document viewer */
.li-doc { position: relative; aspect-ratio: 4 / 5; background: #1d2226; overflow: hidden; perspective: 1400px; }
.li-doc__track { position: absolute; inset: 0; }
.li-doc__page { position: absolute; inset: 0; display: grid; align-content: center; padding: 10%; background: #fff; transform-origin: left center; transition: transform .9s cubic-bezier(.6,0,.2,1), opacity .9s; backface-visibility: hidden; opacity: 0; }
.li-doc__page.is-on { opacity: 1; transform: none; }
.li-doc__page.is-past { opacity: 0; transform: rotateY(-100deg); }
.li-doc__page h4 { margin: 0; font-size: clamp(20px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; color: #111; }
.li-doc__arrow { position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .62); color: #fff; z-index: 2; }
.li-doc__arrow--l { left: 10px; } .li-doc__arrow--r { right: 10px; }
.li-doc__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; height: 26px; padding: 0 10px; border-radius: 13px; background: rgb(0 0 0 / .62); color: #fff; font: 600 14px/26px var(--font-sans); font-variant-numeric: tabular-nums; }

/* post menu */
.li-menu { width: 260px; padding: 8px 0; }
.li-menu__it { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 15px; font-weight: 600; color: rgba(0,0,0,.75); transition: background .3s, color .3s; }
.li-menu__it .li-i { color: rgba(0,0,0,.6); }
.li-menu__it.is-on { background: #FFF1E8; color: #111; box-shadow: inset 3px 0 0 var(--cta, #FF7F32); }

/* ---------- compact: landscape below 960 x 600 (an iPad shows the player at about 736 x 414) ---------- */
@media (max-height: 619px), (max-width: 959px) {
  .scene .lg { row-gap: clamp(10px, 2vh, 18px); padding-left: clamp(18px, 4vw, 44px); padding-right: clamp(18px, 4vw, 44px); }
  .lg-t { font-size: clamp(24px, 2.9vw, 30px); line-height: 1.1; letter-spacing: -.022em; }
  .lg--full .lg-t, .lg--right .lg-t { max-width: min(100%, 22em); }
  .scene .lg--split { column-gap: clamp(18px, 3vw, 32px); }
  .lg-side { gap: 10px; }
  .scene .lg-note { font-size: 15px; line-height: 1.42; }
  .lg-steps li { font-size: 15px; }
  .scene .lg-pit { font-size: 15px; }
  .lg-stat__v { font-size: clamp(30px, 4.2vw, 48px); }
  .lg-stat--xl .lg-stat__v { font-size: clamp(40px, 6vw, 72px); }
  .lg-label { font-size: 14px; }
  .lg-flap { font-size: 16px; }
  .li-post__text, .li-cmt__t, .li-dm__msg { font-size: 14px; }
  .li-post__name { font-size: 14px; }
  .li-btn { height: 28px; padding: 0 12px; font-size: 14px; }
  .li-menu__it { padding: 7px 14px; font-size: 14px; }
}
@media (max-height: 420px) {
  .lg-t { font-size: 24px; }
  .lg-steps { gap: 6px; }
}

/* ---------- phone: portrait and narrower than 760 px ---------- */
@media (max-width: 759px) and (orientation: portrait) {
  .scene .lg { padding: calc(var(--hud-top, 56px) + 12px) 16px calc(var(--hud-bottom, 96px) + 8px); row-gap: 14px; }
  .lg-t { font-size: clamp(22px, 6.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; max-width: none; }
  .lg--full .lg-t, .lg--right .lg-t { max-width: none; }
  .scene .lg--split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); row-gap: 14px; }
  .lg--split .lg-vis { grid-column: 1; grid-row: 3; }
  .lg--split .lg-side { grid-column: 1; grid-row: 2; align-self: start; max-width: none; }
  .lg--stage .lg-side { grid-auto-flow: row; gap: 10px; max-width: none; }
  .lg--full .lg-side { max-width: none; }
  .scene .lg--right { grid-template-columns: minmax(0, 1fr); }
  .lg--right .lg-side { grid-column: 1; grid-row: 2; align-self: start; }
  .lg-side { gap: 10px; }
  .scene .lg-note { font-size: 15px; }
  .lg-steps { gap: 8px; }
  .lg-steps li { font-size: 15px; padding-left: 18px; }
  .lg-steps li::before { width: 7px; height: 7px; }
  .scene .lg-pit { font-size: 14px; }
  .lg-pit__i { width: 22px; height: 22px; }
  .lg-stat__l { font-size: 14px; }
  .lg-label { font-size: 14px; }
  .lg-flap { font-size: 15px; }
  .li-post__text, .li-cmt__t, .li-dm__msg { font-size: 14px; }
  .li-post__head { padding: 10px 12px 0; }
  .li-post__text { padding: 8px 12px 10px; }
  .li-btn { height: 28px; padding: 0 12px; font-size: 14px; }
  .li-prof__body { padding: 0 16px 14px; }
}

/* Workaround for a shared-hero bug (reported to the coordinator): ryze.css gives .rz-node.is-on, .rz-hero__name.is-on and
 * .rz-hero__p.is-on an explicit visibility: visible, which shows through the hidden inactive scene after stepping back out of
 * ryze-reveal. Inactive scenes hide everything inside them. */
.scene:not(.is-active) :is(.rz-node, .rz-hero__name, .rz-hero__p) { visibility: hidden !important; }
