/* ═══════════════════════════════════════════════════════════════════
   MONO — black-and-grey redesign after jobs.devicommerce.in
   Loaded last on every page. It re-points the tokens in styles.css and
   assistant.css, flattens the sky hero, and adds the hero "window".
   Inter + DM Mono · neutral zinc greys · 8px radii · hairline borders.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --sky-top: #ffffff; --sky-bottom: #ffffff;
  --cloud-far: #ffffff; --cloud-mid: #ffffff; --cloud-near: #ffffff;
  --page: #ffffff; --page-alt: #f5f5f5;
  --text: #0a0a0a; --text-body: #404040; --text-muted: #737373;
  --pink: #737373; --violet: #0a0a0a; --violet-soft: #525252; --blue-deep: #262626;
  --card: #f5f5f5; --card-border: #e5e5e5;
  --pill: #f5f5f5; --pill-text: #262626;
  --rule: #e5e5e5; --up: #15803d;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px; --radius: 12px;
  --shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 18px 44px -24px rgb(0 0 0 / .35);
  --on-ink: #ffffff;
  --ai-bubble: #f5f5f5; --ai-bubble-text: #262626; --ai-surface: #ffffff;
  --ai-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 24px 48px -20px rgb(0 0 0 / .35);
  --ai-good: #15803d; --ai-warn: #a16207; --ai-bad: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-top: #0a0a0a; --sky-bottom: #0a0a0a;
    --cloud-far: #0a0a0a; --cloud-mid: #0a0a0a; --cloud-near: #0a0a0a;
    --page: #0a0a0a; --page-alt: #111111;
    --text: #fafafa; --text-body: #d4d4d4; --text-muted: #a1a1a1;
    --pink: #a1a1a1; --violet: #fafafa; --violet-soft: #d4d4d4; --blue-deep: #e5e5e5;
    --card: #171717; --card-border: #262626; --pill: #171717; --pill-text: #e5e5e5;
    --rule: #262626; --up: #4ade80; --on-ink: #0a0a0a;
    --shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 18px 44px -24px rgb(0 0 0 / .9);
    --ai-bubble: #171717; --ai-bubble-text: #e5e5e5; --ai-surface: #111111;
    --ai-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 48px -20px rgb(0 0 0 / .9);
    --ai-good: #4ade80; --ai-warn: #fbbf24; --ai-bad: #f87171;
  }
}
:root[data-theme="dark"] {
  --sky-top: #0a0a0a; --sky-bottom: #0a0a0a;
  --cloud-far: #0a0a0a; --cloud-mid: #0a0a0a; --cloud-near: #0a0a0a;
  --page: #0a0a0a; --page-alt: #111111;
  --text: #fafafa; --text-body: #d4d4d4; --text-muted: #a1a1a1;
  --pink: #a1a1a1; --violet: #fafafa; --violet-soft: #d4d4d4; --blue-deep: #e5e5e5;
  --card: #171717; --card-border: #262626; --pill: #171717; --pill-text: #e5e5e5;
  --rule: #262626; --up: #4ade80; --on-ink: #0a0a0a;
  --shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 18px 44px -24px rgb(0 0 0 / .9);
  --ai-bubble: #171717; --ai-bubble-text: #e5e5e5; --ai-surface: #111111;
  --ai-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 48px -20px rgb(0 0 0 / .9);
  --ai-good: #4ade80; --ai-warn: #fbbf24; --ai-bad: #f87171;
}

/* ── type ─────────────────────────────────────────────────────────── */
body { font-size: 16px; line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(36px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.eyebrow, .side h4 {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; color: var(--text-muted);
}
.wrap { padding: 0 clamp(16px, 4vw, 28px); }

/* ── flat hero (clouds and sky gone) ──────────────────────────────── */
.sky { background: var(--page); border-bottom: 1px solid var(--rule); }
.clouds, .confetti { display: none; }
.nav { border-bottom: 1px solid var(--rule); background: color-mix(in oklab, var(--page) 88%, transparent); }
.nav-in { height: 60px; }
.brand { color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; align-items: center; gap: 10px; }
.brand-mark { width: 24px; height: 24px; }
.brand-mark rect:first-child { fill: var(--text); }
.brand-mark path { stroke: var(--page); }
.brand-mark rect:last-child { fill: var(--page); }
.nav-links { gap: 4px; margin-left: 20px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 14px; padding: 6px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.iconbtn { border-radius: 8px; width: 36px; height: 36px; border: 1px solid var(--card-border); }
.iconbtn:hover, :root[data-theme="dark"] .iconbtn:hover { background: var(--card); color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .iconbtn:hover { background: var(--card); } }
.iconbtn svg { width: 17px; height: 17px; }

.hero-in { padding-top: clamp(36px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); gap: clamp(28px, 5vw, 64px);
           grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero .tagline { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-muted); }
.hero-cta { margin-top: 28px; }
.page-hero { padding-top: 40px; padding-bottom: 56px; padding-left: clamp(16px, 4vw, 28px); padding-right: clamp(16px, 4vw, 28px); }
@media (max-width: 760px) { .page-hero { padding-bottom: 44px; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 5px 12px;
          font: 500 12px/1 var(--mono); color: var(--text-body); border: 1px solid var(--card-border);
          border-radius: 99px; background: var(--card); }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }

/* about page: drop the illustrated placeholder avatar */
.hero-art:not(.hero-win) { display: none; }
.hero-in:has(.hero-art:not(.hero-win)) { grid-template-columns: minmax(0, 760px); }

/* ── buttons, chips, pills ────────────────────────────────────────── */
.btn { border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 500;
       background: var(--text); color: var(--on-ink); border: 1px solid var(--text); }
.btn:hover { transform: none; box-shadow: none; opacity: .88; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--card-border); }
:root[data-theme="dark"] .btn.ghost { background: transparent; color: var(--text); border-color: var(--card-border); }
.btn.ghost:hover { background: var(--card); opacity: 1; }
.chip.solid, .filters button[aria-pressed="true"] { background: var(--text); color: var(--on-ink); border-color: var(--text); }
.filters button { border-radius: 8px; font-size: 13px; font-weight: 500; }
.pills li a, .pills li span { border-radius: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 400; padding: 4px 10px; }
.wtags li { background: var(--page); border: 1px solid var(--card-border); color: var(--text-body); border-radius: 6px; }
.linkish { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ── content ──────────────────────────────────────────────────────── */
.entry .sub { color: var(--text-muted); font-weight: 400; }
.entry h3 a:hover, .entry .more:hover, .arrowlist a:hover, .nav-links a:hover { color: var(--text); }
.entry .more { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--card-border); }
.body-grid { padding-top: clamp(40px, 6vw, 72px); }
.section { padding: clamp(44px, 7vw, 80px) 0; }
.livecard, .wcard { border-radius: var(--radius); }
.wcard { background: var(--page); }
.wcard:hover { transform: none; box-shadow: var(--shadow); }
.wbody h3 a { color: var(--text); }
.wbody p, .wmeta { color: var(--text-body); opacity: 1; }
.wmeta { color: var(--text-muted); }
.wshot { background: var(--card); }
.livecard td, .livecard .foot { color: var(--text-body); }
.role li::before { background: var(--text-muted); border: 0; width: 5px; height: 5px; top: 12px; }
.diagram .box, .diagram .flow { stroke: var(--text-muted); }
.foot { border-top: 1px solid var(--rule); }
.onsky { background: var(--card) !important; }
.onsky .cap { color: var(--text-muted) !important; }
.arrowlist li svg { color: var(--text-muted); }

/* ── hero window (the reference's d-win, filled with real content) ── */
.hero-win { display: block; min-width: 0; }
.win { background: var(--page); color: var(--text); border-radius: var(--radius); overflow: hidden;
       font-size: 14px; line-height: 1.4; text-align: left; box-shadow: var(--shadow);
       border: 1px solid var(--card-border); }
.win-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
           border-bottom: 1px solid var(--rule); font: 400 12px/1 var(--mono); color: var(--text-muted); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--card-border); }
.win-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 0; }
.win-side { padding: 14px 10px; border-right: 1px solid var(--rule); display: grid; align-content: start;
            gap: 2px; font-size: 13px; color: var(--text-muted); }
.win-side span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; }
.win-side span.on { background: var(--card); color: var(--text); font-weight: 500; }
.win-side span i { width: 13px; height: 13px; border-radius: 4px; background: currentColor; opacity: .3; flex: none; }
.win-side .lbl { font: 400 11px/1 var(--mono); height: 26px; margin-top: 8px; letter-spacing: .06em; }
.win-main { padding: 16px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.win-head b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.win-head span { font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 7px; background: var(--text); color: var(--on-ink); white-space: nowrap; }
.win-rows { border-top: 1px solid var(--rule); }
.win-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
           padding: 10px 2px; border-bottom: 1px solid var(--rule); color: inherit; }
.win-row:hover { text-decoration: none; }
.win-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
.win-row .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--card); display: grid; place-items: center;
               font: 500 11px/1 var(--mono); color: var(--text-body); }
.win-row b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-row small { display: block; color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-row .st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px;
               font: 500 11px/1 var(--mono); background: var(--card); color: var(--text-body); white-space: nowrap; }
.win-row .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.win-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px;
            border: 1px solid var(--card-border); border-radius: 9px; background: var(--card);
            font: 400 12px/1.3 var(--mono); color: var(--text-body); }
.win-note b { font-weight: 500; color: var(--text); }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art.hero-win { order: 2; }
}
@media (max-width: 860px) {
  .nav-links { background: var(--page); border: 1px solid var(--card-border); border-radius: var(--radius);
               box-shadow: var(--shadow); padding: 8px; margin: 0; }
  .nav-links a { padding: 11px 12px; font-size: 15px; }
  .iconbtn { width: 40px; height: 40px; }
}
@media (max-width: 639px) {
  .win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .win-side { display: none; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .win-row .st { display: none; }
}
@media (min-width: 1500px) { :root { --wrap: 1280px; } body { font-size: 17px; } }
@media (max-width: 380px) { h1 { font-size: 32px; } .win-main { padding: 12px; } }

/* ── assistant widget, recoloured ─────────────────────────────────── */
.ai-launcher { background: var(--text); color: var(--on-ink); border-radius: 10px; font-weight: 500;
               box-shadow: var(--shadow); }
.ai-launcher:hover { box-shadow: var(--shadow); transform: none; opacity: .9; }
.ai-launcher .ai-kbd { background: color-mix(in oklab, var(--on-ink) 18%, transparent); }
.ai-msg.user, :root[data-theme="dark"] .ai-msg.user, :root:not([data-theme="light"]) .ai-msg.user,
:root:not([data-theme="dark"]) .ai-msg.user { background: var(--text); color: var(--on-ink); }
.ai-send { background: var(--text); color: var(--on-ink); }
.ai-meter .ai-fill { background: var(--text); }
.linkish:hover { color: var(--text); }
@media (max-width: 480px) { .ai-launcher { right: 14px; bottom: 14px; } }

/* ═══ MOTION (companion to motion.js) ═══════════════════════════════ */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --ease-enter: cubic-bezier(.22, 1, .36, 1); }

/* sticky bar: .sky stops being a box so the header sticks for the whole page */
.sky { display: contents; }
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--page) 94%, transparent);
       border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--rule); }
body.nav-locked { overflow: hidden; }

/* nav words: underline draws in from the left, leaves to the right */
@media (min-width: 861px) {
  .nav-links > a { position: relative; background: none !important; padding: 6px 10px; }
  .nav-links > a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px;
    background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform .28s var(--ease); }
  .nav-links > a:hover::after, .nav-links > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .nav-sheet { display: none; }
}

/* phone: the sheet drops from the bar, fills the screen, buttons pinned at the foot */
@media (max-width: 860px) {
  .nav-in { height: 60px; }
  .nav-links { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none;
    background: var(--page); overflow-y: auto; padding: 8px clamp(16px, 4vw, 28px) 150px; }
  .nav-links.open { display: flex; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
  @starting-style { .nav-links.open { opacity: 0; transform: translateY(-10px); } }
  .nav-links > a { height: 58px; min-height: 0; padding: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.02em;
    color: var(--text); border-bottom: 1px solid var(--rule); border-radius: 0; background: none; justify-content: space-between; }
  .nav-links > a::after { content: "\2192"; color: var(--text-muted); font-size: 18px; }
  .nav-links > a:hover { background: none; }
  .nav-sheet { display: grid; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
    padding: 16px clamp(16px, 4vw, 28px) calc(16px + env(safe-area-inset-bottom)); background: var(--page);
    border-top: 1px solid var(--rule); }
  .nav-sheet .btn { height: 48px; justify-content: center; font-size: 15px; width: 100%; padding: 0 16px; }
  .nav-sheet a.btn { background: var(--text); color: var(--on-ink); }
  .nav-sheet .btn.ghost { background: transparent; color: var(--text); }
  .nav-tools .iconbtn.social { display: none; }
  .iconbtn { width: 44px; height: 44px; }
}

/* hero entrance: words out of masks, the rest 60ms apart, the window settling */
.ly-l { font-weight: var(--w, inherit); transition: font-weight .12s linear; }
.m-w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.m-w__in { display: inline-block; }
html.m-entered .m-w { overflow: visible; }
.ly-word { display: inline-grid; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.ly-word > span { grid-area: 1 / 1; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.ly-word > .is-next { transform: translateY(140%); opacity: 0; }
.ly-word > .is-out { transform: translateY(-140%); opacity: 0; }
html.m-entered .m-w:has(> .ly-word) { overflow: visible; }

@media screen and (prefers-reduced-motion: no-preference) {
  html.m-enter:not(.m-enter-go) .m-w__in, html.m-enter:not(.m-enter-go) .m-w > .ly-word { transform: translateY(108%); }
  html.m-enter .m-w__in, html.m-enter .m-w > .ly-word {
    transition: transform 850ms var(--ease-enter) calc(var(--i, 0) * 60ms); }
  html.m-enter:not(.m-enter-go) .hero-in > div:first-child > :not(h1) { opacity: 0; transform: translateY(12px); }
  html.m-enter .hero-in > div:first-child > :not(h1) {
    transition: opacity 600ms var(--ease-enter) calc(var(--i, 0) * 60ms), transform 700ms var(--ease-enter) calc(var(--i, 0) * 60ms); }
  html.m-enter:not(.m-enter-go) .m-settle .win { scale: .97; opacity: .001; }
  html.m-enter .m-settle .win { transition: scale 1000ms var(--ease-enter) 250ms, opacity 700ms var(--ease-enter) 250ms; }
  html.m-entered .hero-in > div:first-child > :not(h1), html.m-entered .m-w__in, html.m-entered .m-settle .win { transition: none; }
}

/* window rows that arrive one by one */
[data-step] { transition: opacity .35s var(--ease), transform .35s var(--ease); }
[data-step].is-off { opacity: 0; transform: translateY(6px); }

/* scroll reveals */
.rise { opacity: 0; transform: translateY(16px);
        transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } .ly-l { transition: none; } }

/* stats */
.stats { border-bottom: 1px solid var(--rule); }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(20px, 3.4vw, 40px) clamp(0px, 1.5vw, 20px); border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.4vw, 28px); display: grid; gap: 6px; align-content: start; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-size: clamp(34px, 5vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat > span { font: 400 12px/1.4 var(--mono); color: var(--text-muted); }
@media (max-width: 700px) {
  .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* phone action bar: rises once the hero's main button has scrolled away */
.actionbar { display: none; }
@media (max-width: 860px) {
  .actionbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 12px clamp(16px, 4vw, 28px) calc(12px + env(safe-area-inset-bottom)); background: var(--page);
    border-top: 1px solid var(--rule); transition: transform .32s var(--ease); }
  .actionbar[data-bar="hidden"] { transform: translateY(105%); }
  .actionbar .btn { flex: 1; justify-content: center; height: 46px; padding: 0 14px; }
  body.has-actionbar { padding-bottom: 70px; }
  body.has-actionbar .ai-launcher { display: none; }
  body.nav-locked .actionbar { display: none; }
}

/* the live-word headline must keep "I build <word>" on one line */
h1[data-enter-h1] { font-size: clamp(34px, 5.2vw, 62px); white-space: nowrap; }
@media (max-width: 380px) { h1[data-enter-h1] { font-size: 31px; } }

/* ═══ POSTER HERO — after jobs.devicommerce.in ═══════════════════════ */
:root { --blue: #3d6bff; --blue-2: #2c54d8; }
.btn.blue, .nav-sheet a.btn { background: linear-gradient(180deg, #5b82ff, var(--blue-2)); color: #fff; border-color: #6b8cff;
  box-shadow: 0 8px 24px -8px rgba(61,107,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.blue:hover { opacity: 1; filter: brightness(1.08); }
.nav-cta { padding: 7px 14px; font-size: 13.5px; }
.btn { border-radius: 8px; }
.nav-links > a { color: var(--text); font-weight: 600; font-size: 15px; }
.brand { font-size: 19px; }
@media (max-width: 860px) { .nav-cta { padding: 9px 14px; } }
@media (max-width: 380px) { .nav-cta { display: none; } }

.poster { position: relative; overflow: hidden; background: var(--page); border-bottom: 1px solid var(--rule); }
.poster-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .55;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.poster-stage { position: relative; max-width: 1280px; margin: 0 auto; height: clamp(720px, 63vw, 920px); }
.poster-h1 { display: contents; }

.pword { position: absolute; left: 0; right: 0; top: 4%; text-align: center; z-index: 1;
  font-weight: 800; font-size: min(21.5vw, 340px); line-height: .82; letter-spacing: -0.065em; color: var(--text);
  transform: translateY(calc(var(--sy, 0) * -.12px)); user-select: none; }
.pill { position: absolute; right: 6%; top: 44%; z-index: 5; padding: .02em .26em .1em; border-radius: .26em;
  font: italic 400 clamp(48px, 6.2vw, 92px)/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -0.01em; color: #fff;
  background: linear-gradient(180deg, #5f86ff, var(--blue-2)); transform: rotate(-5deg);
  box-shadow: 0 24px 70px -12px rgba(61,107,255,.65), inset 0 1px 0 rgba(255,255,255,.3); white-space: nowrap; }

.pphone { position: absolute; left: 50%; top: 19%; z-index: 3; width: clamp(236px, 21.5vw, 306px);
  transform: translateX(-50%) rotate(calc(-8deg + var(--mx, 0) * 3deg)) translate(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 6px)); }
.pphone::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 14%; width: 118%; height: 92%; transform: translateX(-50%);
  border-radius: 999px 999px 0 0; background: repeating-linear-gradient(90deg, #0d0d0d 0 7px, #232323 7px 10px, #060606 10px 17px, #2b2b2b 17px 19px);
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); opacity: .9; }
.pphone-screen { position: relative; aspect-ratio: 718 / 1599; border-radius: 34px; overflow: hidden; background: #000;
  border: 9px solid #17181b; outline: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 90px -30px #000, 0 0 0 1px #000; }
.pphone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.pphone-screen img.on { opacity: 1; }

.pstickers { display: contents; }
.stk { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 10px;
  font-weight: 650; font-size: clamp(14px, 1.45vw, 19px); letter-spacing: -0.015em; white-space: nowrap;
  transform: rotate(var(--r)) translate(calc(var(--mx, 0) * var(--k) * 1px), calc(var(--my, 0) * var(--k) * 1px));
  box-shadow: 0 18px 36px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.18); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i, 1) * -1.1s); }
.stk-w { background: #f2f2f2; color: #0a0a0a; }
.stk-b { background: linear-gradient(180deg, #5f86ff, var(--blue-2)); color: #fff; box-shadow: 0 18px 50px -12px rgba(61,107,255,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.stk .ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; background: #0a0a0a; color: #fff; }
.stk .ico.in { background: #0a66c2; font-size: 11px; font-weight: 800; }
.stk-q { background: #101010; color: #e5e5e5; white-space: normal; width: clamp(210px, 19vw, 270px); display: block; font-weight: 500; font-size: clamp(13px, 1.2vw, 15.5px);
  line-height: 1.35; border: 2px solid #e8e8e8; padding: 12px 14px; }
.q-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 12px; color: #a3a3a3; }
.q-top i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #262626; color: #e5e5e5; font-size: 10px; font-weight: 700; }
.q-top b { color: #fff; font-weight: 650; }
.s1 { left: 5%; top: 15%; } .s2 { left: 43%; top: 1.5%; } .s3 { right: 2.5%; top: 23%; } .s4 { left: 13%; top: 50%; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

.pbl { position: absolute; left: 5.5%; bottom: 14%; z-index: 4; width: min(250px, 20vw); font-size: 15px; line-height: 1.4; color: var(--text-muted); }
.pbl p { margin: 12px 0 0; } .pbl b { color: var(--text); font-weight: 600; }
.avs { display: inline-flex; padding: 4px; border-radius: 99px; background: #111; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.avs i { font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-left: -6px; background: #1a1a1a; color: #eee;
  font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px #111; } .avs i:first-child { margin-left: 0; }
.avs i.bl { background: var(--blue); color: #fff; } .avs i.wh { background: #f2f2f2; color: #0a0a0a; }
.pbr { position: absolute; right: 5.5%; bottom: 5%; z-index: 6; width: min(380px, 30vw); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: var(--text); }
.pbr p { margin: 0 0 18px; }
.pbr .hero-cta { margin: 0; gap: 10px; }
.pbr .btn { padding: 10px 16px; font-size: 14px; font-weight: 600; }
.play-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--text); position: relative; flex: none; }
.play-dot::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 7px solid var(--page); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn.ghost { background: color-mix(in oklab, var(--text) 6%, transparent); border-color: color-mix(in oklab, var(--text) 14%, transparent); }

/* ribbon: two slanted bands, scrolling */
.ribbon { position: relative; height: clamp(120px, 12vw, 170px); margin-top: -2vw; z-index: 7; overflow: hidden; }
.band { position: absolute; left: -4%; right: -4%; background: #f4f4f4; color: #0a0a0a; overflow: hidden; padding: 14px 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.4); }
.band-a { top: 26%; transform: rotate(-2.2deg); }
.band-b { top: 52%; transform: rotate(1.6deg); background: var(--blue); color: #fff; }
.band-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: marq 46s linear infinite; font-weight: 800; font-size: clamp(16px, 1.9vw, 26px); letter-spacing: .01em; white-space: nowrap; }
.band-track.rev { animation-direction: reverse; animation-duration: 54s; }
.band-track em { font: italic 400 1.35em/1 "Instrument Serif", Georgia, serif; text-transform: none; letter-spacing: 0; }
.band-track i { font-style: normal; color: var(--blue); } .band-b .band-track i { color: #fff; opacity: .8; }
@keyframes marq { to { transform: translateX(-50%); } }

/* entrance */
@media screen and (prefers-reduced-motion: no-preference) {
  html.p-pre .pword { opacity: 0; transform: translateY(70px); }
  html.p-pre .stk, html.p-pre .pill, html.p-pre .pbl, html.p-pre .pbr { opacity: 0; }
  html.p-pre .pphone { opacity: 0; translate: 0 80px; }
  html.p-pre .stk { scale: .6; } html.p-pre .pill { scale: .8; }
  .pword { transition: opacity .9s var(--ease-enter), transform 1s var(--ease-enter); }
  .pphone { transition: opacity .8s var(--ease-enter) .15s, translate 1.1s var(--ease-enter) .15s; }
  .stk, .pill, .pbl, .pbr { transition: opacity .6s var(--ease-enter) calc(var(--i, 1) * 110ms + 250ms), scale .8s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 1) * 110ms + 250ms); }
}
@media (prefers-reduced-motion: reduce) { .stk { animation: none; } .band-track { animation: none; } }

/* tablet */
@media (max-width: 1100px) { .pbr { width: 34vw; } .s4 { left: 9%; top: 56%; } .pbl { display: none; } }

/* phone / small tablet: poster stacks */
@media (max-width: 820px) {
  .poster-stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 16px 8px; }
  .pword { position: static; font-size: 27vw; transform: none; order: 1; padding-right: .04em; }
  .pill { position: static; order: 2; font-size: clamp(40px, 12vw, 70px); margin-top: -2vw; }
  .pstickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; order: 3; margin-top: 8px; }
  .stk { position: static; font-size: 15px; padding: 9px 13px; transform: rotate(var(--r)); }
  .s4 { width: min(100%, 320px); } .s4 { order: 9; }
  .pphone { position: static; order: 4; width: min(66vw, 280px); margin: 22px 0 6px; transform: rotate(-6deg); }
  .pbl { display: block; position: static; order: 6; width: 100%; max-width: 380px; text-align: left; }
  .pbr { position: static; order: 7; width: 100%; max-width: 380px; padding-bottom: 10px; }
  .pbr .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .ribbon { height: 118px; margin-top: 14px; }
}
