/* redcast.io — night-drive black, vermilion, glass, a tape deck's OSD. The UI is live HTML, not screenshots. */
@font-face { font-family: "Inter Tight"; src: url(/assets/fonts/inter-tight-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "VT323"; src: url(/assets/fonts/vt323-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #050505; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #6e6e73;
  --red: #F23D32; --red-hot: #ff6a4d; --line: rgba(255,255,255,.10); --glass: rgba(255,255,255,.06);
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter Tight", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --osd: "VT323", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
.accent { color: var(--red); }
.dim { color: var(--ink-3); }
.ico { width: 1em; height: 1em; flex: none; }
.grain { position: fixed; inset: 0; width: 100%; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------------- nav ---------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 12px var(--gutter);
  background: rgba(5,5,5,.6); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.02em; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a, .lang { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav nav a:hover, .lang:hover { color: var(--ink); }
.lang { font: 400 19px/1 var(--osd); letter-spacing: .08em; padding: 5px 8px 3px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line) inset; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--text);
  text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 40px rgba(242,61,50,.45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 14px 60px rgba(242,61,50,.65); }
.btn-ghost { background: var(--glass); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.osd { font: 400 26px/1 var(--osd); letter-spacing: .06em; color: #e9e9e9; text-shadow: 0 0 8px rgba(255,255,255,.35); }
.tape { display: inline-block; font: 400 24px/1 var(--osd); letter-spacing: .08em; padding: 6px 10px 4px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: rgba(255,255,255,.03); }
.tag { display: block; font: 400 21px/1 var(--osd); letter-spacing: .08em; color: var(--red-hot); margin-bottom: 14px; }
h1 { font: 900 clamp(46px, 7vw, 104px)/.95 var(--display); letter-spacing: -.045em; margin: 0 0 24px; }
h2 { font: 900 clamp(40px, 6vw, 84px)/.95 var(--display); letter-spacing: -.045em; margin: 18px 0 0; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
code { font: 500 .9em/1 var(--mono); background: rgba(255,255,255,.08); padding: .15em .4em; border-radius: 6px; }

/* ---------------- fit: a fixed-size UI box scaled to its column ---------------- */
.fit { position: relative; width: 100%; }
.stage .fit, .tile-card .fit { overflow: clip; overflow-clip-margin: 60px; }
.fit > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 32px;
  padding: 110px var(--gutter) 70px; max-width: 1440px; margin: 0 auto; }
.hero::before { content: ""; position: absolute; inset: -10% -20% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 45% at 72% 55%, rgba(242,61,50,.28), transparent 70%), radial-gradient(30% 35% at 18% 30%, rgba(160,20,12,.18), transparent 70%); }
.osd-tl { position: absolute; left: var(--gutter); top: 80px; }
.hero-copy { position: relative; z-index: 4; }
.eyebrow { font: 600 15px/1 var(--text); color: var(--red-hot); margin: 0 0 18px; }
.meta { margin: 22px 0 0; font: 400 20px/1.3 var(--osd); letter-spacing: .06em; color: var(--ink-3); }
.hero-stage { position: relative; perspective: 2000px; perspective-origin: 50% 20%; padding-bottom: 70px; }
.stack3d { width: 760px; height: 500px; transform-style: preserve-3d; }
.hero-stage > .fit { width: 86%; margin: 0 auto; }
.hero-stage .fit > .stack3d { transform-origin: 50% 50%; transform-style: preserve-3d;
  transform: translate(calc((var(--k,1) - 1) * 380px), calc((var(--k,1) - 1) * 250px)) scale(var(--k,1)) rotateX(calc(52deg - var(--sp,0) * 22deg + var(--my,0) * 6deg)) rotateZ(calc(-22deg + var(--sp,0) * 12deg + var(--mx,0) * 8deg)); }
.sheet { position: absolute; inset: 0; border-radius: 26px; transform-style: preserve-3d;
  transform: translateZ(calc((2 - var(--i)) * (80px + var(--sp,0) * 70px))) translate(calc(var(--i) * -18px), calc(var(--i) * 14px)); }
.sheet > .ui { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; }
.sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; transform: translateZ(-16px);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 60%, rgba(242,61,50,.12));
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.28) inset, 0 0 0 3px rgba(242,61,50,.22) inset, 0 40px 90px rgba(0,0,0,.7); }
.sheet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: translateZ(1px);
  background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 30%, transparent 72%, rgba(255,255,255,.06)); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(255,255,255,.12), 0 0 0 2.5px rgba(242,61,50,.35); }
.sheet.top::after { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), 0 0 0 1px rgba(255,255,255,.18), 0 0 0 3px var(--red), 0 0 60px rgba(242,61,50,.5); }
.sheet .scene { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.sheet .pal, .sheet .desk, .sheet .chatwin { box-shadow: none; }
.streaks { position: absolute; inset: -10% -20%; overflow: hidden; pointer-events: none; z-index: 3; }
.streaks i { position: absolute; left: -40%; height: 2px; width: 34%; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,70,50,.9) 85%, #fff);
  box-shadow: 0 0 12px rgba(255,60,40,.9); animation: streak 3.8s cubic-bezier(.6,0,.2,1) infinite; }
.streaks i:nth-child(1) { top: 22%; } .streaks i:nth-child(2) { top: 44%; animation-delay: 1.3s; width: 24%; }
.streaks i:nth-child(3) { top: 66%; animation-delay: 2.2s; } .streaks i:nth-child(4) { top: 80%; animation-delay: .7s; width: 18%; opacity: .7; }
@keyframes streak { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 60%, 100% { transform: translateX(420%); opacity: 0; } }
.keys { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 10px; z-index: 4; }
.key { position: relative; display: grid; place-items: center; min-width: 64px; height: 56px; padding: 0 16px; border-radius: 12px; font: 600 22px/1 var(--text); color: #ddd;
  background: linear-gradient(#1c1c1f, #0d0d0f); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 -2px 0 rgba(0,0,0,.6) inset, 0 8px 24px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); animation: press 4.5s ease-in-out infinite; }
.key small { position: absolute; left: 8px; bottom: 6px; font: 500 10px/1 var(--text); color: #888; }
.key-space { min-width: 200px; font-size: 14px; color: #888; animation-delay: .25s; }
@keyframes press { 0%, 72%, 100% { transform: translateY(0); } 76%, 80% { transform: translateY(3px); box-shadow: 0 0 0 1px rgba(242,61,50,.6), 0 0 28px rgba(242,61,50,.55); } }

.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 30px var(--gutter) 80px; }
.slab { font: 900 clamp(24px, 4vw, 52px)/1 var(--display); letter-spacing: -.04em; padding: 16px 26px; border-radius: 14px; background: linear-gradient(180deg, #1a1a1d, #0c0c0e);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 20px 50px rgba(0,0,0,.6); }
.slab:first-child { color: var(--red); }

/* ---------------- pinned, scroll-driven sections ---------------- */
.pin { position: relative; height: calc(var(--steps) * 110vh + 100vh); }
.sticky { position: sticky; top: 0; height: 100svh; max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 64px); align-items: center; padding: 84px var(--gutter) 28px; }
.pin-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; }
.rail { position: relative; display: flex; gap: 6px; }
.rail b { font: 400 18px/1 var(--osd); letter-spacing: .06em; color: var(--ink-3); padding: 5px 9px 3px; border-radius: 5px; transition: color .3s, background .3s; }
.rail b.on { color: #fff; background: var(--red); }
.rail-bar { position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: rgba(255,255,255,.08); }
.rail-bar::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--red); box-shadow: 0 0 10px rgba(242,61,50,.8); }
.caps { position: relative; align-self: center; height: 340px; }
.cap { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(26px); transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.1,1); pointer-events: none; }
.cap.on { opacity: 1; transform: none; pointer-events: auto; }
.cap h3 { font: 900 clamp(34px, 4.2vw, 60px)/.98 var(--display); letter-spacing: -.04em; margin: 0 0 18px; }
.cap p { color: var(--ink-2); margin: 0; max-width: 30em; }
.stage { position: relative; align-self: center; }
.stage::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(242,61,50,.20), transparent 70%); }
.screen { width: 760px; height: 500px; perspective: 1600px; }
.scene { position: absolute; inset: 0; opacity: 0; transform: translateY(26px) scale(.95) rotateX(8deg); filter: blur(6px); transition: opacity .55s, transform .8s cubic-bezier(.2,.9,.1,1), filter .55s; pointer-events: none; }
.scene.on { opacity: 1; transform: none; filter: none; }
.scene.past { transform: translateY(-26px) scale(.95) rotateX(-8deg); }

/* ---------------- side A / side B: text + a live scene that plays itself ---------------- */
.side { max-width: var(--maxw); margin: 0 auto; padding: 70px var(--gutter) 40px; }
.side-head { margin-bottom: 70px; }
.feat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin: 0 0 130px; }
.feat.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feat.flip .copy { order: 2; }
.feat h3 { font: 900 clamp(32px, 4vw, 56px)/.98 var(--display); letter-spacing: -.04em; margin: 0 0 18px; }
.feat .copy p { color: var(--ink-2); margin: 0; max-width: 30em; }
.feat .scene { opacity: 1; transform: none; filter: none; transition: opacity .35s; pointer-events: auto; }
.feat .scene.fade { opacity: 0; }
.feat .stage { transform: perspective(1600px) rotateX(10deg) translateY(40px) scale(.96); opacity: .4; transition: transform 1.1s cubic-bezier(.2,.9,.1,1), opacity 1s; }
.feat .stage.in { transform: none; opacity: 1; }
.hero-wrap { position: relative; height: 175vh; }
.hero-wrap > .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }
.hero-wrap .hero-copy { opacity: calc(1 - var(--sp, 0) * 1.6); transform: translateY(calc(var(--sp, 0) * -70px)); }
.hero-wrap .hero-stage { transform: translateX(calc(var(--sp, 0) * -40%)) scale(calc(1 + var(--sp, 0) * .18)); }
.hero-wrap .sheet { transform: translateZ(calc((2 - var(--i)) * (80px + var(--sp,0) * 120px))) translate(calc(var(--i) * (-18px - var(--sp,0) * 30px)), calc(var(--i) * (14px + var(--sp,0) * 20px))); }

/* ---------------- the palette ---------------- */
.pal { position: absolute; left: 0; top: 0; width: 760px; height: 500px; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; color: #ececf0;
  background: linear-gradient(180deg, rgba(38,38,42,.96), rgba(24,24,27,.97)); font: 14px/1.2 var(--text);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 0 1px rgba(0,0,0,.6), 0 0 0 3px rgba(242,61,50,.28), 0 50px 120px rgba(0,0,0,.7), 0 0 90px rgba(242,61,50,.14); }
.pal .ico { width: 16px; height: 16px; stroke-width: 2; }
.pal-search { position: relative; height: 62px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 21px; color: #f2f2f2; }
.pal-search > .ico { width: 20px; height: 20px; color: #9a9aa0; }
.pal-search .ph { position: absolute; left: 56px; color: #6f6f75; pointer-events: none; transition: opacity .15s; }
.pal-search .q:not(:empty) ~ .ph { opacity: 0; }
.pal-search .ph.on { position: static; }
.caret { width: 2px; height: 24px; background: var(--red); margin-left: -12px; animation: blink 1.05s steps(1) infinite; border-radius: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.filter { margin-left: auto; font-size: 12px; color: #aaa; display: flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.06); }
.filter .ico { width: 12px; height: 12px; }
.pal-body { flex: 1; padding: 6px 10px; overflow: hidden; }
.sec { font: 600 11.5px/1 var(--text); color: #85858b; padding: 14px 10px 7px; transition: height .3s, opacity .3s, padding .3s; }
.sec.gone { opacity: 0; height: 0; padding-top: 0; padding-bottom: 0; }
.row { position: relative; display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 10px; color: #eaeaee; overflow: hidden; transition: height .3s, opacity .3s, background .2s; white-space: nowrap; }
.row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-style: normal; color: #77777d; font-size: 13px; }
.row em { margin-left: auto; font-style: normal; color: #77777d; font-size: 12.5px; }
.row.sel { background: linear-gradient(90deg, rgba(242,61,50,.32), rgba(242,61,50,.16)); box-shadow: 0 0 0 1px rgba(242,61,50,.25) inset; }
.row.gone { height: 0; opacity: 0; }
.alias { font-size: 12px; color: #a9a9af; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.08); }
.tile { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), inset 0 1px 0 rgba(255,255,255,.25); }
.tile .ico { width: 15px; height: 15px; }
.tile.small { width: 22px; height: 22px; border-radius: 6px; } .tile.small .ico { width: 13px; height: 13px; }
.tile.mini { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; } .tile.mini .ico { width: 11px; height: 11px; }
.tile.big { width: 44px; height: 44px; border-radius: 11px; font-size: 20px; } .tile.big .ico { width: 24px; height: 24px; }
.t-red { background: linear-gradient(160deg, #ff6b5c, #e0261b); } .t-blue { background: linear-gradient(160deg, #5fb0ff, #1f6fe0); }
.t-green { background: linear-gradient(160deg, #5ee08f, #1b9e55); } .t-purple { background: linear-gradient(160deg, #b98cff, #7445e8); }
.t-orange { background: linear-gradient(160deg, #ffad5c, #f0701b); } .t-yellow { background: linear-gradient(160deg, #ffe066, #f0b400); color: #5a4300; }
.t-grey { background: linear-gradient(160deg, #a9a9b0, #67676e); } .t-dark { background: linear-gradient(160deg, #3a3a40, #17171a); }
.t-pink { background: linear-gradient(160deg, #ff7ad1, #d63a9b); } .t-teal { background: linear-gradient(160deg, #4fe0d0, #13a596); } .t-amber { background: linear-gradient(160deg, #ffd166, #e8a10c); }
.pal-foot { height: 48px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.18); }
.pal-foot .logo { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #bbb; font-size: 14px; }
.pal-foot .go { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 600; font-size: 13px; box-shadow: 0 0 22px rgba(242,61,50,.45); transition: background .3s, box-shadow .3s; }
.pal-foot .act { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #d5d5da; }
kbd { font: 600 11px/1 var(--text); min-width: 18px; height: 18px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 5px; background: rgba(255,255,255,.12); color: inherit; }
.go kbd { background: rgba(255,255,255,.22); }
.menu { position: absolute; right: 14px; bottom: 60px; width: 290px; padding: 6px; border-radius: 14px; background: rgba(36,36,40,.98); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 24px 60px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.1,1); }
.menu.on { opacity: 1; transform: none; }
.mi { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; }
.mi .ico { color: #a7a7ad; width: 15px; height: 15px; }
.mi kbd:first-of-type { margin-left: auto; }
.mi.on { background: rgba(255,255,255,.10); }
.mi-search { margin-top: 6px; padding: 9px 10px 4px; border-top: 1px solid rgba(255,255,255,.07); color: #77777d; font-size: 13px; }

.pal-split { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; }
.pal-split .pal-body { border-right: 1px solid rgba(255,255,255,.07); }
.detail { padding: 18px 20px; font-size: 13px; color: #cfcfd4; overflow: hidden; position: relative; }
.d-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.d-head b { display: block; font-size: 16px; color: #fff; } .d-head i { font-style: normal; color: #85858b; font-size: 12.5px; }
.detail p { margin: 0 0 14px; line-height: 1.45; color: #b5b5bb; }
.d-sec { font: 600 11.5px/1 var(--text); color: #85858b; margin: 14px 0 8px; }
.d-row { display: flex; align-items: center; gap: 8px; height: 26px; } .d-row .ico { color: #9a9aa0; width: 14px; height: 14px; } .d-row b { font-weight: 500; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px; }
.kv span { color: #85858b; } .kv b { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 10px; } .chips span { font-size: 12px; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.07); color: #c9c9ce; }
.progress { position: absolute; left: 20px; right: 20px; bottom: 16px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; opacity: 0; transition: opacity .3s; }
.progress.on { opacity: 1; }
.progress i { display: block; height: 100%; width: calc(var(--v, 0) * 100%); background: linear-gradient(90deg, #ff6b5c, var(--red)); box-shadow: 0 0 12px rgba(242,61,50,.8); }
.go.done { background: #1fa35a; box-shadow: 0 0 22px rgba(31,163,90,.45); }

/* light palette (clipboard) */
.pal.light { color: #1d1d1f; background: linear-gradient(180deg, rgba(250,249,247,.98), rgba(240,238,235,.98)); box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset, 0 0 0 3px rgba(242,61,50,.28), 0 50px 120px rgba(0,0,0,.6), 0 0 90px rgba(255,220,200,.12); }
.pal.light .pal-search { color: #222; border-color: rgba(0,0,0,.08); } .pal.light .pal-search .ph { color: #a0a0a6; }
.pal.light .row { color: #222; } .pal.light .sec { color: #8a8a90; }
.pal.light .row.sel { background: linear-gradient(90deg, rgba(242,61,50,.22), rgba(242,61,50,.10)); }
.pal.light .pal-split .pal-body { border-color: rgba(0,0,0,.07); }
.pal.light .detail { color: #333; } .pal.light .kv { border-color: rgba(0,0,0,.06); } .pal.light .kv span { color: #8a8a90; }
.pal.light .pal-foot { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.07); } .pal.light .pal-foot .act { color: #444; } .pal.light .pal-foot .logo { background: rgba(0,0,0,.06); color: #666; }
.pal.light kbd { background: rgba(0,0,0,.08); } .pal.light .go kbd { background: rgba(255,255,255,.25); }
.pal.light .filter { background: rgba(0,0,0,.05); color: #666; }
.swatch { width: 22px; height: 22px; border-radius: 6px; background: var(--red); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); flex: none; }
.pv { display: none; height: 196px; margin-bottom: 14px; }
.pv.on { display: block; animation: pvin .35s cubic-bezier(.2,.9,.1,1); }
@keyframes pvin { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.pv-img { height: 100%; border-radius: 12px; background: radial-gradient(60% 70% at 40% 40%, #ff8a6b, #c81e14 60%, #3a0b08); display: grid; place-items: center; color: #fff; font-size: 64px; }
.bigswatch { height: 120px; border-radius: 12px; background: var(--red); margin-bottom: 12px; box-shadow: 0 10px 30px rgba(242,61,50,.35); }
.pv-color code { display: block; background: none; padding: 0; color: #555; font-size: 12.5px; line-height: 1.55; }
.linkcard { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); margin-top: 40px; }
.linkcard b { display: block; } .linkcard i { font-style: normal; color: #777; font-size: 12px; }
.note { font: 500 20px/1.4 var(--text); margin: 50px 0 0; }
.doc { display: grid; justify-items: center; gap: 6px; padding-top: 40px; } .doc .ico { width: 44px; height: 44px; color: #7445e8; } .doc i { font-style: normal; color: #888; font-size: 12px; }
.pv-cmd pre { margin: 60px 0 0; padding: 14px; border-radius: 10px; background: #18181b; color: #e6e6e6; font: 500 13px/1.4 var(--mono); }

/* desktop, menu bar, windows */
.desk { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 90% at 70% 100%, #3a0d0a, #120606 55%, #0a0a0b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 0 0 3px rgba(242,61,50,.25), 0 50px 120px rgba(0,0,0,.7); font: 13px/1.3 var(--text); }
.mbar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 16px; padding: 0 14px; background: rgba(20,20,22,.7); backdrop-filter: blur(10px); font-size: 12.5px; color: #ddd; z-index: 5; }
.mbar .apple { width: 12px; height: 12px; border-radius: 3px; background: #ddd; } .mbar .r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.botico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--red); color: #fff; transition: box-shadow .3s; }
.botico .ico { width: 14px; height: 14px; } .botico.hot { box-shadow: 0 0 0 3px rgba(242,61,50,.35), 0 0 18px rgba(242,61,50,.9); }
.win { position: absolute; border-radius: 12px; overflow: hidden; background: #fbfbfa; color: #222; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 24px 60px rgba(0,0,0,.6); }
.win.dark { background: #1d1d20; color: #e5e5e5; }
.tb { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: rgba(0,0,0,.04); border-bottom: 1px solid rgba(0,0,0,.06); font-size: 11.5px; color: #777; }
.win.dark .tb { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); color: #999; }
.tb i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .tb i:nth-child(2) { background: #febc2e; } .tb i:nth-child(3) { background: #28c840; } .tb span { margin-left: 6px; }
.wb { padding: 12px 14px; font-size: 12.5px; line-height: 1.6; }
.wb.mono { font: 12px/1.6 var(--mono); } .ok { color: #43d17a; } .blk { display: inline-block; width: 7px; height: 13px; background: #ddd; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.wb.cal { display: grid; grid-template-columns: repeat(5, 1fr); height: calc(100% - 28px); padding: 0; } .wb.cal span { border-right: 1px solid rgba(0,0,0,.06); padding: 8px 6px; font-size: 10.5px; font-weight: 600; color: #777; }
.ev { display: block; margin-top: 18px; font-style: normal; font-size: 10px; padding: 4px 6px; border-radius: 5px; font-weight: 500; } .ev.r { background: #ffe0dc; color: #c82a1e; } .ev.b { background: #dce9ff; color: #1f5fcf; }
.snaphud { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 8px 14px; border-radius: 10px; background: rgba(28,28,30,.92); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 30px rgba(0,0,0,.5), 0 0 0 2px rgba(242,61,50,.4); z-index: 6; }

/* agents */
.pal.mini { left: 110px; top: 70px; width: 540px; height: 330px; transform-origin: 100% 0; transition: transform .6s cubic-bezier(.6,0,.2,1), opacity .5s; z-index: 4; }
.pal.mini .pal-search { font-size: 18px; height: 54px; }
.pal.mini .sec { padding-bottom: 10px; }
.pal.mini.fly { transform: translate(250px, -86px) scale(.04); opacity: 0; }
.runs { position: absolute; left: 140px; top: 120px; width: 480px; display: grid; gap: 12px; z-index: 3; }
.run { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(30,30,33,.94); color: #eee; font-size: 13.5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 0 0 2px rgba(242,61,50,.3), 0 16px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s cubic-bezier(.2,.9,.1,1); }
.run.on { opacity: 1; transform: none; }
.run code { background: none; padding: 0; color: #8d8d93; font-size: 12px; } .run b { font-weight: 600; }
.ic { display: grid; place-items: center; } .ic .ico { width: 16px; height: 16px; } .c-purple { color: #a485ff; } .c-blue { color: #56c2ff; } .c-green { color: #59d499; }
.st { margin-left: auto; position: relative; width: 18px; height: 18px; } .st i { position: absolute; inset: 0; display: grid; place-items: center; }
.st .spin { color: #999; animation: spin 1s linear infinite; } .st .ok { color: #43d17a; opacity: 0; } .run.done .spin { opacity: 0; } .run.done .ok { opacity: 1; }
.st .ico { width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hud { position: absolute; left: 50%; bottom: 46px; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-size: 16px; font-weight: 600;
  background: rgba(30,30,33,.94); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 20px 50px rgba(0,0,0,.6); opacity: 0; transition: opacity .35s, transform .5s cubic-bezier(.2,.9,.1,1); z-index: 6; }
.hud.on { opacity: 1; transform: translate(-50%, 0); } .hud em { font-style: normal; color: #9a9aa0; font-weight: 500; }
.okc { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1fa35a; color: #fff; } .okc .ico { width: 14px; height: 14px; }

/* chat */
.chatwin { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; background: #fbfaf8; color: #1d1d1f; font: 13px/1.45 var(--text);
  box-shadow: 0 0 0 1px rgba(0,0,0,.1) inset, 0 0 0 3px rgba(242,61,50,.28), 0 50px 120px rgba(0,0,0,.6); }
.chatwin aside { background: #f1efec; border-right: 1px solid rgba(0,0,0,.06); padding: 40px 10px 10px; font-size: 12.5px; }
.side-search { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: rgba(0,0,0,.05); color: #999; margin-bottom: 8px; } .side-search .ico { width: 12px; height: 12px; }
.side-sec { font: 700 11px/1 var(--text); padding: 12px 6px 6px; } .side-sec.y { color: #c08a00; } .side-sec.p { color: #7445e8; } .side-sec.r { color: #d0281c; }
.side-row { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; } .side-row em { margin-left: auto; font-style: normal; color: #aaa; font-size: 11px; }
.side-row.in { margin-left: 12px; border-left: 2px solid #ef4b3f; border-radius: 0 7px 7px 0; } .side-row.sel { background: linear-gradient(90deg, rgba(242,61,50,.18), rgba(242,61,50,.06)); }
.chat-main { position: relative; padding: 14px 26px; display: flex; flex-direction: column; gap: 12px; }
.chat-title { text-align: center; } .chat-title b { display: block; font-size: 13px; } .chat-title i { font-style: normal; color: #999; font-size: 11px; }
.bubble { align-self: flex-end; max-width: 70%; padding: 9px 14px; border-radius: 14px; background: #fde6e2; box-shadow: inset 0 0 0 1px rgba(242,61,50,.2); }
.toolline { display: flex; align-items: center; gap: 6px; color: #888; font-size: 12px; } .toolline .ico { width: 13px; height: 13px; } .toolline code { color: #666; background: rgba(0,0,0,.05); }
.reply { font-size: 14px; line-height: 1.6; } .reply .w { opacity: 0; transition: opacity .2s; } .reply .w.on { opacity: 1; }
.flink { display: inline-flex; align-items: center; gap: 3px; padding: 0 5px; border-radius: 5px; background: rgba(242,61,50,.1); color: #d0281c; text-decoration: none; font: 500 12.5px/1.6 var(--mono); }
.flink .ico { width: 12px; height: 12px; }
.files { display: flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s; } .files.on { opacity: 1; transform: none; }
.fsec { font-size: 11px; font-weight: 600; color: #999; margin-right: 4px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05); font-size: 12px; } .fchip .ico { width: 12px; height: 12px; color: #d0281c; }
.actrow { display: flex; align-items: center; gap: 14px; color: #888; font-size: 12px; opacity: 0; transition: opacity .3s; } .actrow.on { opacity: 1; }
.actrow span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 6px; transition: background .25s, color .25s; } .actrow .ico { width: 13px; height: 13px; }
.actrow .br.hot { background: rgba(242,61,50,.12); color: #d0281c; } .actrow .time { color: #bbb; }
.composer { position: absolute; left: 22px; right: 22px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 20px rgba(0,0,0,.06); color: #aaa; }
.composer .chip { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.05); color: #444; font-size: 12px; }
.composer .send { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; } .composer .send .ico { width: 14px; height: 14px; }

/* sessions */
.sess { position: absolute; inset: 0; display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.agentcol { display: grid; gap: 16px; } .ag { display: flex; align-items: center; gap: 12px; font: 700 16px/1 var(--display); letter-spacing: -.01em; opacity: 0; transform: translateX(-16px); transition: opacity .35s, transform .5s cubic-bezier(.2,.9,.1,1); } .ag.on { opacity: 1; transform: none; }
.sess .pal { position: relative; width: 562px; height: 420px; }
.badge { font-style: normal; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; } .badge.amber { color: #ffcf5c; background: rgba(255,190,40,.12); } .badge.blue { color: #7cc2ff; background: rgba(80,160,255,.12); }
.d-title { display: block; font-size: 15px; color: #fff; } .d-meta { font-style: normal; color: #85858b; font-size: 12px; }
.msg { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); line-height: 1.45; } .msg span { display: block; font-size: 11px; color: #85858b; margin-bottom: 3px; } .msg.you { background: rgba(242,61,50,.1); }

/* voice */
.w-voice { left: 120px; top: 70px; width: 520px; height: 260px; } .w-voice .wb { font-size: 15px; line-height: 1.7; } .w-voice .h { font-size: 19px; }
.said { position: relative; display: inline-block; min-width: 10px; } .said .raw, .said .pol { transition: opacity .3s; } .said .pol { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; font-weight: 500; }
.said.polished .raw { opacity: 0; } .said.polished .pol { opacity: 1; } .w-voice .caret { display: inline-block; height: 18px; vertical-align: -3px; margin-left: 2px; }
.capsule { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px; border-radius: 999px;
  background: rgba(28,28,30,.95); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 20px 50px rgba(0,0,0,.6), 0 0 0 2px rgba(242,61,50,.35); overflow: hidden; }
.micic { color: var(--red); } .micic .ico { width: 20px; height: 20px; }
.wave { display: flex; align-items: center; gap: 4px; height: 34px; width: 210px; overflow: hidden; }
.wave i { width: 3px; height: 30px; border-radius: 2px; background: #fff; opacity: .9; animation: bar 1s ease-in-out infinite; animation-delay: calc(var(--k) * -73ms); }
@keyframes bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.capsule.quiet .wave i { animation-play-state: paused; }
.mode { position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(28,28,30,.95); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; opacity: 0; transition: opacity .3s; } .mode.on { opacity: 1; }

/* ---------------- duo ---------------- */
.duo { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 60px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tile-card { margin: 0; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 80% at 50% 0%, #1a0b09, #0b0b0d 70%); box-shadow: 0 0 0 1px var(--line); padding: 26px 26px 0; }
.tile-card figcaption { padding: 22px 0 26px; color: var(--ink-2); font-size: 16px; } .tile-card figcaption b { color: var(--ink); }
.modelpick, .codex { width: 520px; border-radius: 16px; background: rgba(32,32,36,.96); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 0 2px rgba(242,61,50,.25), 0 30px 70px rgba(0,0,0,.6); padding: 10px; font: 14px/1.2 var(--text); color: #eee; }
.mp-search { display: flex; align-items: center; gap: 8px; padding: 10px 10px 12px; color: #77777d; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 6px; } .mp-search .ico { width: 15px; height: 15px; }
.mp-row { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-radius: 10px; } .mp-row em { margin-left: auto; font-style: normal; color: #77777d; font-size: 12.5px; }
.mp-row.sel { background: linear-gradient(90deg, rgba(242,61,50,.32), rgba(242,61,50,.16)); }
.mk { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.mk.anth { background: #d97757; } .mk.oai { background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); } .mk.gem { background: linear-gradient(135deg, #4f8cff, #a26bff); } .mk.ds { background: #4d6bfe; } .mk.or { background: #6467f2; }
.codex { padding: 22px; } .cx-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; } .cx-head b { display: block; font-size: 17px; } .cx-head i { font-style: normal; color: #8d8d93; font-size: 13px; }
.codex .kv { font-size: 13.5px; padding: 10px 0; } .green { color: #43d17a; }
.cx-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 10px 16px; border-radius: 999px; background: #1fa35a; color: #fff; font-weight: 600; } .cx-btn .ico { width: 15px; height: 15px; }

/* ---------------- tracks, flip ---------------- */
.tracks { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 30px; }
.tracklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.tracklist li { background: #0b0b0d; padding: 22px 22px 24px; } .tracklist b { display: block; font: 800 20px/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 6px; } .tracklist span { color: var(--ink-3); font-size: 15px; }
.flipband { display: grid; place-items: center; padding: 70px var(--gutter); perspective: 1200px; }
.cassette { position: relative; width: min(520px, 88vw); aspect-ratio: 1.6; border-radius: 18px; background: linear-gradient(170deg, #f1eadf, #d9cfc0);
  box-shadow: 0 0 0 2px rgba(0,0,0,.4) inset, 0 40px 90px rgba(0,0,0,.7), 0 0 80px rgba(242,61,50,.15); transform: rotateX(calc(40deg - var(--f, 0) * 40deg)) rotate(calc(-8deg + var(--f, 0) * 4deg)) scale(calc(.85 + var(--f, 0) * .15)); }
.cs-side { position: absolute; left: 6%; top: 8%; font: 900 clamp(32px, 7vw, 58px)/1 var(--display); letter-spacing: -.04em; color: #151515; }
.cs-marks { position: absolute; right: 6%; top: 11%; font: 400 20px/1 var(--osd); color: #6a6158; letter-spacing: .06em; }
.cs-reels { position: absolute; left: 22%; right: 22%; bottom: 18%; height: 26%; border-radius: 999px; background: #1a1a1a; display: flex; justify-content: space-around; align-items: center; }
.cs-reels i { width: 22%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(#e8e0d4 0 30deg, #2a2a2a 30deg 60deg); transform: rotate(calc(var(--f, 0) * 720deg)); }

/* ---------------- light ---------------- */
.lightsec { max-width: var(--maxw); margin: 0 auto; padding: 110px var(--gutter); text-align: center; }
.claims { display: flex; flex-direction: column; gap: 4px; font: 900 clamp(38px, 7.5vw, 112px)/.98 var(--display); letter-spacing: -.05em; }
.claims span { opacity: calc(.12 + var(--c, 1) * .88); transform: translateY(calc((1 - var(--c, 1)) * 30px)); }
.claims span:nth-child(2) { color: var(--ink-3); }
.quiet { font-weight: 200; letter-spacing: -.02em; margin: 70px 0 50px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: left; }
.card { padding: 26px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); box-shadow: 0 0 0 1px var(--line) inset; }
.card h4 { font: 800 19px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 10px; } .card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.yours { font: 900 clamp(30px, 4.6vw, 64px)/1 var(--display); letter-spacing: -.045em; margin: 80px 0 0; }

/* ---------------- install, end ---------------- */
.install { max-width: 900px; margin: 0 auto; padding: 100px var(--gutter); } .install .lede { margin-top: 20px; }
.reqs { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px; } .reqs li { font-size: 14px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line) inset; }
.code { position: relative; border-radius: 18px; background: #0b0b0d; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.6); }
.code pre { margin: 0; padding: 26px 24px; overflow-x: auto; } .code code { background: none; padding: 0; font: 500 14.5px/1.75 var(--mono); color: #e6e6e6; }
.copy-btn { position: absolute; right: 12px; top: 12px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,.08); color: var(--ink); font: 600 13px/1 var(--text); }
.after { color: var(--ink-2); margin: 22px 0 30px; }
.endcard { position: relative; min-height: 80svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 80px var(--gutter); }
.endcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(35% 40% at 50% 45%, rgba(242,61,50,.28), transparent 70%); }
.end-icon { width: 132px; height: 132px; filter: drop-shadow(0 0 40px rgba(242,61,50,.6)); } .endcard h2 { margin-top: 28px; } .endcard p { color: var(--ink-2); margin: 12px 0 18px; font-size: 19px; }
.url { font: 400 22px/1 var(--osd); letter-spacing: .06em; color: var(--red-hot); text-decoration: none; padding: 8px 14px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(242,61,50,.35) inset; }
.osd-stop { position: absolute; right: var(--gutter); bottom: 28px; font-size: 22px; color: var(--ink-2); }
.foot { border-top: 1px solid rgba(255,255,255,.06); padding: 30px var(--gutter) 40px; color: var(--ink-3); font-size: 13px; text-align: center; } .foot p { margin: 4px 0; }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.1,1); } .rv.in { opacity: 1; transform: none; }

/* ---------------- phones and small windows ---------------- */
@media (max-width: 900px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 26px; margin-bottom: 90px; }
  .feat.flip .copy { order: 0; }
  .side-head { margin-bottom: 50px; }
  .hero-wrap { height: auto; } .hero-wrap > .hero { position: relative; height: auto; }
  .hero-wrap .hero-copy { opacity: 1; transform: none; } .hero-wrap .hero-stage { transform: none; }
  .nav { gap: 12px; } .nav nav { display: none; } .lang { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 104px; gap: 10px; min-height: auto; }
  .osd-tl { top: 70px; font-size: 20px; }
  .hero-stage { margin-top: 10px; padding-bottom: 76px; }
  .key { height: 48px; min-width: 54px; font-size: 18px; } .key-space { min-width: 150px; }
  .pin { height: calc(var(--steps) * 95vh + 100vh); }
  .sticky { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-items: start; row-gap: 14px; padding: 70px var(--gutter) 18px; }
  .pin-head { gap: 12px; } .tape { font-size: 19px; } .rail b { font-size: 15px; padding: 4px 6px 2px; }
  .caps { height: 186px; }
  .cap h3 { font-size: clamp(28px, 8.4vw, 40px); margin-bottom: 10px; }
  .cap p { font-size: 15px; line-height: 1.45; }
  .stage { align-self: start; }
  .tracklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo, .cards { grid-template-columns: 1fr; }
  .tile-card { padding: 18px 18px 0; }
}
@media (max-width: 520px) {
  .btn { width: 100%; } .nav .btn { display: none; }
  .tracklist { grid-template-columns: 1fr; }
  .caps { height: 210px; }
}
/* phone: the scenes in portrait, 480×600 */
.m .stage .screen { width: 480px; height: 600px; }
.m .stage .pal { width: 480px; height: 600px; }
.m .stage .pal-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.m .stage .pal-split .pal-body { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); flex: none; }
.m .stage .pal.light .pal-split .pal-body { border-color: rgba(0,0,0,.07); }
.m .stage .pal-search { font-size: 19px; }
.m [data-scene="store"] .pal-body .row:nth-of-type(n+6), .m [data-scene="store"] .chips, .m [data-scene="store"] .pal-body .sec:last-of-type { display: none; }
.m [data-scene="store"] .detail .d-sec, .m [data-scene="store"] .detail .d-row, .m [data-scene="store"] .detail .kv { display: none; }
.m .stage .pv { height: 150px; margin-bottom: 8px; } .m .stage .bigswatch { height: 84px; } .m .stage .linkcard { margin-top: 20px; } .m .stage .note { margin-top: 30px; } .m .stage .doc { padding-top: 16px; } .m .stage .pv-cmd pre { margin-top: 30px; }
.m [data-scene="clipboard"] .detail .kv { display: none; }
.m .stage .menu { right: 10px; width: 270px; }
.m .stage .desk { border-radius: 22px; }
.m .stage .mbar { gap: 10px; font-size: 11.5px; } .m .stage .mbar span:nth-of-type(n+4):not(.r):not(.apple) { display: none; }
.m .stage .pal.mini { left: 16px; top: 60px; width: 448px; height: 310px; }
.m .stage .pal.mini.fly { transform: translate(200px, -70px) scale(.04); }
.m .stage .runs { left: 16px; top: 150px; width: 448px; }
.m .stage .hud { bottom: 70px; }
.m .stage .w-voice { left: 16px; top: 60px; width: 448px; height: 300px; }
.m .stage .capsule { bottom: 70px; } .m .stage .mode { bottom: 140px; } .m .stage .wave { width: 180px; }
.m .stage .chatwin { grid-template-columns: 1fr; } .m .stage .chatwin aside { display: none; } .m .stage .chat-main { padding-top: 16px; }
.m .stage .sess { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; align-items: start; }
.m .stage .agentcol { grid-auto-flow: column; justify-content: start; gap: 8px; } .m .stage .ag { font-size: 0; gap: 0; } .m .stage .ag .tile.big { width: 52px; height: 52px; }
.m .stage .sess .pal { width: 480px; height: 520px; }
.m [data-scene="sessions"] .detail .msg:first-of-type { display: none; }
@media (prefers-reduced-motion: reduce) {
  .streaks, .key, .caret, .wave i, .spin { animation: none !important; }
}
