/* Syntax Trader — site styles. Dark theme, Inter, accent #2E81E8 (the logo's blue).
   Motion follows the references (Linear, Stripe, Raycast, Warp, Railway, Vercel):
   expo-out easing, short travel, slow marquees, reduced-motion fallbacks for everything. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #08090b;
  --surface: #0f1215;
  --surface-2: #14181d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #eceef1;
  --fg-2: #a9aeb6;
  --fg-3: #6f757e;
  --accent: #2e81e8;
  --accent-2: #7fb2f5;
  --accent-glow: rgba(46, 129, 232, 0.22);
  --up: #2bc48a;
  --down: #f0576b;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --radius: 14px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--font); /* Inter everywhere, including code and numbers */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  animation: page-in 0.5s var(--ease-out);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
/* page transitions: fade in on arrival, fade out before leaving */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
html.leaving body { animation: none; opacity: 0; transition: opacity 0.28s ease; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
/* images can't be dragged out, selected or long-pressed to save */
img, svg, canvas { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
::selection { background: rgba(46, 129, 232, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.2vw, 88px); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0; color: var(--fg-2); text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--fg-2); max-width: 640px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.grad-text {
  background: linear-gradient(180deg, #fff 30%, #9fb6d4 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.14em; margin-bottom: -0.14em; /* room for g, y, p descenders (background-clip:text clips to the box) */
}
.accent { color: var(--accent); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.mark { height: 28px; width: auto; }
.brand img.word { height: 18px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 14px; color: var(--fg-2); transition: color 0.16s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1 "Inter", sans-serif; letter-spacing: -0.005em;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s, color 0.2s, box-shadow 0.3s var(--ease-out);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { color: var(--fg); border-color: var(--line-2); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); }
.nav .btn { padding: 10px 16px; font-size: 13.5px; }
/* Stripe-style arrow: the shaft slides in on hover */
.arrow { width: 10px; height: 10px; overflow: visible; }
.arrow .shaft { transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-quart); }
.arrow .head { transition: transform 0.3s var(--ease-quart); }
.btn:hover .arrow .shaft { transform: scaleX(1); }
.btn:hover .arrow .head { transform: translateX(3px); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 120px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .glow {
  position: absolute; inset: -20% -10% auto; height: 110%;
  background:
    radial-gradient(48% 38% at 50% 22%, rgba(46,129,232,0.24), transparent 70%),
    radial-gradient(30% 26% at 22% 40%, rgba(46,129,232,0.10), transparent 70%),
    radial-gradient(30% 26% at 80% 36%, rgba(127,178,245,0.08), transparent 70%);
  filter: blur(10px);
  animation: glow-breathe 9s ease-in-out infinite alternate;
}
@keyframes glow-breathe { from { opacity: 0.85; transform: translateY(0) scale(1); } to { opacity: 1; transform: translateY(-12px) scale(1.04); } }
/* live candles behind the description and buttons */
.hero-chart {
  position: absolute; left: 0; right: 0; top: 34%; bottom: 0; opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent);
}
.hero-chart canvas { width: 100%; height: 100%; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero h1 .line { display: block; padding: 0 30px; margin: 0 -30px; }
.hero .lede { max-width: 560px; color: #c3c8cf; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------------ sections */
section.block { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

/* night-rider line (Raycast): a live-feed accent */
.rider { position: relative; height: 1px; background: var(--line); overflow: hidden; }
.rider::after {
  content: ""; position: absolute; top: 0; width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: rider 2.4s ease-in-out infinite alternate;
}
@keyframes rider { from { left: -220px; } to { left: 100%; } }

/* ------------------------------------------------------------------ connections */
.conn-top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.bigstat { display: flex; align-items: baseline; gap: 14px; justify-content: flex-end; }
.bigstat .n { font-size: clamp(64px, 9vw, 120px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.bigstat .n sup { font-size: 0.42em; color: var(--accent); vertical-align: top; margin-left: 4px; position: relative; top: 0.2em; }
.bigstat .l { color: var(--fg-2); font-size: 15px; max-width: 170px; line-height: 1.4; }
.marquee {
  position: relative; overflow: hidden; padding: 30px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* the script repeats the group until it overfills the screen, then moves exactly one group width */
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 88px; padding-right: 88px; flex: none; }
.marquee img {
  height: var(--h, 30px); width: auto; flex: none;
  filter: brightness(0) invert(1); opacity: 0.55;
  transition: opacity 0.25s var(--ease-out);
}
.marquee img:hover { opacity: 1; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--shift, 50%)), 0, 0); } }
.conn-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.chip { font-size: 13px; color: var(--fg-2); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.chip b { color: var(--fg); font-weight: 500; }

/* ------------------------------------------------------------------ showcase (pinned; content fades over on scroll) */
.showcase { position: relative; height: calc(var(--n, 5) * 75vh + 100vh); }
.show-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 68px; }
.show-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.show-left { display: grid; gap: 26px; align-content: center; }
.show-left h2 { font-size: clamp(30px, 3.6vw, 46px); }
.show-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.show-item { position: relative; border-radius: 12px; transition: background 0.4s var(--ease-out); }
.show-item button {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 500; color: var(--fg-3); transition: color 0.3s var(--ease-out);
}
.show-item button:hover { color: var(--fg-2); }
.show-item .ct { font-family: var(--mono); font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.show-item .desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
.show-item .desc > div { overflow: hidden; }
.show-item .desc p { padding: 0 16px 14px; font-size: 14.5px; line-height: 1.55; opacity: 0; transform: translateY(4px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.show-item.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.show-item.on button { color: var(--fg); padding-bottom: 8px; }
.show-item.on .ct { color: var(--accent-2); }
.show-item.on .desc { grid-template-rows: 1fr; }
.show-item.on .desc p { opacity: 1; transform: none; transition-delay: 0.12s; }

.stage {
  position: relative; aspect-ratio: 1 / 0.9; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 90px -30px var(--accent-glow);
}
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity 0.55s var(--ease-out), filter 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.panel.off { opacity: 0; filter: blur(10px); transform: scale(0.985); pointer-events: none; }
.p-chart canvas { transition: opacity 0.28s var(--ease-out), filter 0.28s var(--ease-out); }
.stage.swap .p-chart canvas { opacity: 0; filter: blur(8px); }
.p-chart canvas { flex: 1; width: 100%; min-height: 0; }

/* transpiler panel */
.p-code { padding: 14px; gap: 10px; }
.code { border-radius: 12px; background: #0b0d10; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fg-2); flex: none; }
.code pre { margin: 0; padding: 8px 0; font: 12px/1.55 var(--mono); color: #c9d1d9; overflow: hidden; flex: 1; }
.code pre .ln { display: block; padding: 0 14px; white-space: pre; transition: background 0.35s var(--ease-out), opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.code pre .ln.hot { background: rgba(46,129,232,0.10); box-shadow: inset 2px 0 0 var(--accent); }
.code.out pre .ln { opacity: 0; transform: translateY(4px); }
.code.out pre .ln.in { opacity: 1; transform: none; }
.tk-k { color: #ff7b72; } .tk-f { color: #d2a8ff; } .tk-s { color: #a5d6ff; } .tk-n { color: #79c0ff; } .tk-v { color: #ffa657; }
.convert-row { display: flex; justify-content: center; flex: none; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.convert {
  position: relative; isolation: isolate; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #fff; background: none; white-space: nowrap;
}
.convert::before, .convert::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -2;
  background: conic-gradient(from var(--angle), #2e81e8, #7fb2f5, #0e1a2b 40%, #2e81e8);
  animation: spin 3s linear infinite;
}
.convert::after { filter: blur(10px); opacity: 0.6; z-index: -3; }
.convert .bg { position: absolute; inset: 0; border-radius: inherit; background: #0e1a2b; z-index: -1; }
@keyframes spin { to { --angle: 360deg; } }

/* ------------------------------------------------------------------ bento + spotlight */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative; border-radius: var(--radius); background: var(--surface); padding: 26px;
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 190px;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(46,129,232,0.14), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), rgba(127,178,245,0.55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover .card::before, .spot:hover .card::after { opacity: 1; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 600 14px var(--font); color: var(--accent); background: rgba(46,129,232,0.10); box-shadow: inset 0 0 0 1px rgba(46,129,232,0.28); font-variant-numeric: tabular-nums; }
.card .logos { display: flex; gap: 10px; align-items: center; }
.card .logos img, .card .logos svg { width: 38px; height: 38px; }
.card h3 { margin-top: 6px; }
.card p { font-size: 14.5px; line-height: 1.55; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }

/* ------------------------------------------------------------------ CTA + footer */
.cta { position: relative; text-align: center; padding: clamp(100px, 14vw, 170px) 0; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 60% at 50% 100%, rgba(46,129,232,0.26), transparent 70%); }
.cta .gb { height: 22px; width: auto; margin: 0 auto 30px; filter: brightness(0) invert(1); opacity: 0.9; }
.cta h2 { margin-bottom: 18px; }
.cta p { margin: 0 auto 32px; max-width: 560px; }
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--fg-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { font-size: 14px; color: var(--fg-2); transition: color 0.16s; }
.foot a:hover { color: var(--fg); }
.foot .legal { font-size: 13px; color: var(--fg-3); line-height: 1.6; max-width: 340px; margin-top: 16px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }

/* ------------------------------------------------------------------ inner pages */
.page-hero { padding: 170px 0 70px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; left: -10%; right: -10%; top: -30%; height: 110%; z-index: -1; background: radial-gradient(40% 45% at 50% 30%, rgba(46,129,232,0.28), transparent 70%); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 900px; }
.page-hero .lede { margin-top: 24px; }

.timeline { position: relative; display: grid; gap: 22px; padding-left: 42px; }
/* the rail runs from the first dot to the last; the script sets --t0 and --len */
.timeline::before, .timeline .fill { content: ""; position: absolute; left: 11px; top: var(--t0, 0); height: var(--len, 0); width: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline .fill { background: linear-gradient(180deg, var(--accent), var(--accent-2)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.milestone { position: relative; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.milestone::before {
  content: ""; position: absolute; left: -38px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--bg); box-shadow: 0 0 0 2px var(--line-2); transform: scale(0.6);
  transition: background 0.4s, box-shadow 0.4s, transform 0.42s var(--ease-out);
}
.milestone.in::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(46,129,232,0.2), 0 0 18px var(--accent); transform: scale(1); }
.milestone .when { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--accent-2); letter-spacing: 0.01em; }
.milestone h3 { font-size: 21px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.facts div { background: var(--bg); padding: 24px; display: grid; gap: 4px; }
.facts .v { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts .k { font-size: 13.5px; color: var(--fg-2); }

/* ------------------------------------------------------------------ reveals */
.reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.load-in { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: load-in 1.1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes load-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .show-grid { grid-template-columns: 1fr; gap: 18px; }
  .show-pin { align-items: flex-start; padding-top: 84px; }
  .show-left { gap: 14px; }
  .show-left h2 { display: none; }
  .stage { order: -1; aspect-ratio: auto; height: 42svh; }
  .show-left .kicker { display: none; }
  .show-item button { padding: 7px 14px; font-size: 15px; }
  .show-list { gap: 2px; }
  .show-item .desc p { padding: 0 14px 12px; font-size: 14px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c2, .c3, .c4, .c6 { grid-column: span 2; }
  .conn-top { grid-template-columns: 1fr; }
  .bigstat { justify-content: flex-start; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-inner { position: relative; z-index: 1; }
  .nav.open { background: #08090b; border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.open .nav-inner { background: #08090b; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 22px; background: #08090b; border-bottom: 1px solid var(--line); transform: translateY(calc(-100% - 68px)); visibility: hidden; transition: transform 0.38s var(--ease-out), visibility 0s linear 0.38s; }
  .nav-links.open { transform: none; visibility: visible; transition: transform 0.38s var(--ease-out), visibility 0s; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
  .menu-toggle { display: grid; place-items: center; }
  .brand img.mark { height: 24px; }
  .brand img.word { height: 15px; }
  .hero-chart { top: 40%; }
  .bento { grid-template-columns: 1fr; }
  .c2, .c3, .c4, .c6 { grid-column: span 1; }
  .foot { grid-template-columns: 1fr; }
  .marquee-group { gap: 56px; padding-right: 56px; }
  .facts { grid-template-columns: 1fr; }
  .stage { height: 52svh; }
  .p-code { padding: 10px; gap: 8px; }
  .code-head { padding: 6px 10px; font-size: 11px; }
  .code pre { font-size: 9.5px; line-height: 1.5; padding: 6px 0; }
  .code pre .ln { padding: 0 10px; }
}

@media (max-width: 960px) and (max-height: 760px) {
  .show-pin { padding-top: 78px; }
  .stage { height: 46svh; }
  .show-grid { gap: 12px; }
  .show-item button { padding: 6px 14px; font-size: 14.5px; }
  .show-item .desc p { font-size: 13px; line-height: 1.45; padding-bottom: 10px; }
  .p-code .code-head { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .load-in { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
  .code.out pre .ln { opacity: 1; transform: none; }
}
