/* Shared studio identity and page geometry. */
:root {
  --studio-black: #171a19;
  --studio-paper: #f6f6ef;
  --paper-ink: #20261f;
  --studio-panel: #191f1b;
  --studio-line: #364039;
  --studio-white: #f3f5e9;
  --studio-muted: #acb6a7;
  --studio-lime: #c4f654;
  --studio-font: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --studio-mono: "IBM Plex Mono", Consolas, "Microsoft YaHei UI", monospace;
  --gutter: clamp(18px, 5vw, 88px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 78px; }
body { margin: 0; font-family: var(--studio-font); }
::selection { color: #15200b; background: var(--studio-lime); }
.page-width { width: min(1480px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 8; color: var(--studio-white); background: #171a19f5;
  border-bottom: 1px solid var(--studio-line);
}
.site-bar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.studio-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; line-height: 1.15; }
.axis-mark {
  display: block; flex: none; width: 32px; height: 32px; background: var(--studio-lime);
  clip-path: polygon(0 92%,43% 7%,61% 7%,100% 92%,76% 92%,52% 39%,41% 61%,56% 61%,65% 80%,32% 80%,25% 92%);
}
.studio-name { font-size: 17px; font-weight: 780; letter-spacing: .06em; }
.studio-name small { display: block; margin-top: 3px; color: #bfcab6; font: 600 8px/1.05 var(--studio-mono); letter-spacing: .24em; }
.site-nav { display: flex; gap: clamp(12px, 2vw, 26px); align-items: center; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--studio-white);
  font-size: 13px; font-weight: 620; text-decoration: none;
}
.site-nav a:is(:hover,:focus-visible) { color: var(--studio-lime); }
.nav-grid {
  width: 12px; height: 12px; --tile: linear-gradient(var(--studio-lime) 0 0);
  background: var(--tile) left top, var(--tile) right top, var(--tile) left bottom, var(--tile) right bottom;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.site-nav .nav-arrow { color: var(--studio-lime); font: 18px/1 var(--studio-font); }
.site-header :is(a,summary):focus-visible { outline: 2px solid var(--studio-lime); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 10px; background: var(--studio-lime); color: #17200e; transform: translateY(-170%); }
.skip-link:focus { transform: none; }
.engineering-surface {
  background-color: var(--studio-black);
  background-image: radial-gradient(ellipse at 85% 7%, #9de05a0e, transparent 49%), linear-gradient(#c2e4b208 1px, transparent 1px), linear-gradient(90deg, #c2e4b208 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}
@media (max-width: 680px) {
  html { scroll-padding-top: 66px; }
  .site-bar { min-height: 58px; }
  .axis-mark { width: 27px; height: 27px; }
  .studio-brand { gap: 8px; }
  .studio-name { font-size: 15px; }
  .studio-name small { font-size: 7px; }
  .site-nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .site-nav a { transition: color .18s ease; }
  @supports (animation-timeline: scroll()) {
    .site-header::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--studio-lime); pointer-events: none; transform-origin: left; transform: scaleX(0); animation: reading-progress linear both; animation-timeline: scroll(root block); }
    @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
