/* Local homepage experiment. Shared documentation styles stay unchanged. */
:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --ink: #f3f5f8;
  --muted: #b0b8c6;
  --accent: #87aaff;
  --mint: #5fdfa0;
  --red: #ff797f;
  --line: #282f3b;
}
html { scroll-snap-type: y proximity; }
body { color: var(--muted); }
#sidebar { background: #090b10; border-color: var(--line); }
.studio-brand { gap: 14px; letter-spacing: .08em; }
.studio-brand .logo-badge {
  width: 64px; height: 64px; padding: 0; flex: none;
  background: transparent; border-radius: 0;
  display: grid; place-items: center;
}
.studio-brand .logo-badge img { display: block; width: 100%; height: auto; }
.brand-caption, .sidebar-foot { color: #aab3c2; }
#sidebar nav a { color: #aab3c2; }
#sidebar nav a.active { color: var(--ink); }
#sidebar nav a:after { background: var(--accent); }
#sidebar nav a[href="#assets"]:after { background: var(--mint); }
#sidebar nav a[href="#studio"]:after { background: var(--red); }
.signal { background: var(--mint); box-shadow: none; }
#intro {
  background: radial-gradient(ellipse at 95% 15%, #19253d 0, transparent 58%), #0b0d12;
}
#intro::before, #studio::before {
  background-image: linear-gradient(#92acde08 1px, transparent 1px), linear-gradient(90deg, #92acde08 1px, transparent 1px);
  background-size: 64px 64px;
}
#intro > .inner {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr);
  align-items: center; gap: 36px;
  padding: 5rem 4rem 2.5rem;
}
#intro h1 { font-size: clamp(3rem, 4.4vw, 4.8rem); line-height: 1.08; letter-spacing: -.06em; }
#intro h1 span { color: var(--ink); }
#intro h1 span:after {
  content: ""; display: block; width: 96px; height: 4px; margin-top: 25px;
  background: linear-gradient(90deg, var(--red) 0 30%, transparent 30% 35%, var(--mint) 35% 65%, transparent 65% 70%, var(--accent) 70%);
}
.eyebrow { color: #9eb7ec; letter-spacing: .12em; }
#intro .hero-description { color: #bbc4d3; font-size: 1.05rem; line-height: 1.85; }
.hero-copy { min-width: 0; }
.hero-logo { margin: 0; justify-self: center; width: min(100%, 340px); }
.hero-logo .logo-disc {
  display: block; padding: 0; background: transparent;
}
.hero-logo img { display: block; width: 100%; height: auto; }
.hero-logo figcaption {
  margin-top: 42px; color: #b3bdcf; text-align: center;
  font: 10px/1.8 Consolas, monospace; letter-spacing: .24em;
}
.hero-bottom { grid-column: 1 / -1; width: 100%; margin-top: 3rem; color: #a2adbd; }
.button, button, input[type=submit] {
  border-radius: 5px; letter-spacing: .1em; font-size: 10px;
  border-color: #4d5b72 !important; color: var(--ink) !important;
}
.button.primary { background: #9ebaff !important; border-color: #9ebaff !important; color: #0b1631 !important; }
.button.primary:hover { background: #bfd0ff !important; border-color: #bfd0ff !important; }
.button:hover { background: #87aaff16 !important; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid #f2d38c !important; outline-offset: 5px;
}
.skip-link { background: #f2d38c; color: #111725; }
.spotlights > section { background: #10141c !important; }
.spotlights > section:nth-child(2) { background: #0d1118 !important; }
.spotlights > section > .image:before { background: #0c1320; }
.spotlights > section > .tools-art { background-size: 128px 128px; background-repeat: no-repeat; background-color: #0d131b; }
#assets { position: relative; overflow: hidden; }
.bas-cover {
  --bas-cover-vertical-fade: linear-gradient(180deg,
    transparent, #0002 1.5%, #0008 4%, #000e 6.5%, #000 8%,
    #000 94%, #000e 95%, #0008 97%, #0002 99%, transparent);
  display: block;
  position: absolute; top: 50%; left: 4rem;
  width: min(100%, 145svh); height: auto;
  transform: translate(-33.5%, -50%);
  pointer-events: none;
  mask-image:
    linear-gradient(90deg, #000 79.5%, #000e 81%, #0008 83.5%, #0002 86%, transparent 87%),
    var(--bas-cover-vertical-fade);
  mask-composite: intersect;
  clip-path: inset(0 12% 0 0);
}
#assets > .content { position: relative; z-index: 1; width: 100%; }
#assets > .content > .inner { width: 100%; }
.bas-assets-copy { width: min(38%, 34rem); margin-left: auto; }
.bas-assets-copy h2 { font-size: clamp(2rem, 3.25vw, 3.75rem); }
.bas-sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.bas-sample-grid figure { margin: 0; }
.bas-sample-grid a { display: block; border: 0; }
.bas-sample-grid img { display: block; width: 100%; height: auto; border-radius: .4rem; }
.bas-sample-grid figcaption { margin-top: .75rem; color: #b6c0cf; }
.spotlights > section > .content { padding: 4rem; }
.spotlights p, .studio-intro, .features p { color: #b6c0cf; }
#assets .eyebrow { color: var(--mint); }
.release-note { border-color: #ff797f40; background: #ff797f06; }
.release-note .signal { background: var(--red); }
.art-label { color: #d5dfd1; }
#studio { position: relative; overflow: hidden; background: #111621; }
#studio > .inner { position: relative; z-index: 1; }
.features { background: #0b0f17; }
.features .focus-number { color: var(--mint); }
.features section:nth-child(2) .focus-number { color: var(--red); }
.development-note { color: #a2adbd; }
#footer { background: #090b10; }
#footer .menu, #footer .menu a { color: #aab5c6; }
@media (min-width: 1281px) {
  #sidebar { padding: 2.6em 1.8em; }
  .studio-brand { font-size: 1em; }
}
@media (max-width: 1280px) {
  #sidebar { padding: 0 1.5rem; }
  .studio-brand .logo-badge { width: 42px; height: 42px; padding: 0; }
  #sidebar nav a { font-size: 10px; letter-spacing: .06em; }
  #intro > .inner { padding: 4rem 3rem 2.5rem; }
}
@media (max-width: 980px) {
  #intro > .inner { gap: 32px; grid-template-columns: minmax(0, 1.4fr) minmax(190px, 1fr); }
  #intro h1 { font-size: clamp(3rem, 5.4vw, 4rem); }
  .spotlights > section > .content { padding: 2.5rem; }
  .bas-cover { left: 2.5rem; }
}
@media (max-width: 736px) {
  :root { --nav-height: 112px; }
  #sidebar { height: var(--nav-height); padding: 10px 20px 0; }
  #sidebar > .inner { flex-direction: column; align-items: stretch; justify-content: space-between; }
  #sidebar .studio-brand { align-self: flex-start; font-size: 11px; gap: 10px; }
  #sidebar nav { height: 44px; width: 100%; }
  #sidebar nav ul { display: flex; justify-content: space-between; gap: 10px; }
  #sidebar nav ul li { margin: 0; padding: 0; }
  #sidebar nav a { height: 44px; line-height: 44px; font-size: 10px; letter-spacing: 0; }
  #intro > .inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 2.5rem 1.5rem 1.5rem; }
  #intro h1 { font-size: clamp(2.7rem, 10.4vw, 4rem); }
  #intro .eyebrow { font-size: 8px; letter-spacing: .06em; }
  #intro .hero-description { font-size: .95rem; }
  #intro .hero-description br { display: block; }
  #intro .actions { gap: 10px; }
  #intro ul.actions li { padding: 0; }
  .button { padding: 0 1.4em; font-size: 9px; }
  .button span { margin-left: 12px; }
  .hero-logo { width: 176px; align-self: center; margin-top: 3rem; }
  .hero-logo .logo-disc { padding: 0; box-shadow: none; }
  .hero-logo figcaption { font-size: 8px; margin-top: 24px; }
  #intro .hero-bottom { margin-top: 2rem; padding-top: 1.25rem; }
  .spotlights > section > .content { padding: 2rem 1.5rem; }
  #assets { --bas-art-height: max(56.25vw, min(70vw, 24rem)); }
  .bas-cover {
    top: .5rem; left: 50%; width: auto; height: var(--bas-art-height);
    transform: translateX(-56%);
    mask-image: var(--bas-cover-vertical-fade);
    clip-path: none;
  }
  #assets > .content { padding-top: calc(var(--bas-art-height) + 1.5rem); }
  .bas-assets-copy { width: 100%; }
  .bas-sample-grid { grid-template-columns: minmax(0, 1fr); }
  #studio > .inner { padding: 3rem 1.5rem; }
}
@media (max-width: 360px) {
  #sidebar { padding-left: 14px; padding-right: 14px; }
  #sidebar nav ul { gap: 7px; }
  #sidebar nav a { font-size: 9px; }
  #intro .actions { flex-direction: column; align-items: stretch; }
  #intro .actions li, #intro .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spotlights > section > .image:before { opacity: 0 !important; }
}
