.site-shell { grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr); gap: 12px; background: #080807; color: #fffefa; }
.site-shell::before { display: none; }
.site-shell.is-scrolled, .site-shell.is-menu-open { color: #fffefa; }
.brand-link { grid-column: 1; grid-row: 1; justify-self: start; font: 600 25px var(--font-ui); letter-spacing: 0; }
.brand-link span { display: inline; }
.logo-dock { grid-column: 2; grid-row: 1; width: 56px; height: 48px; }
.menu-toggle { grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 0; }
.primary-nav { position: fixed; top: var(--header); left: var(--gutter); right: var(--gutter); display: grid; gap: 0; padding: 18px; background: #fffefa; color: #080807; border: 1px solid #08080720; border-radius: 4px; box-shadow: 0 24px 70px #08080725; max-height: calc(100svh - var(--header) - 16px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease; }
.primary-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid #08080720; font-size: 16px; }
.primary-nav { justify-content: stretch; }
.site-shell.is-menu-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
.primary-nav .nav-cta { background: #f07812; color: #080807; border-bottom: 0; justify-content: center; margin-top: 8px; }
.site-shell.is-scrolled .primary-nav .nav-cta, .site-shell.is-menu-open .primary-nav .nav-cta { background: #f07812; }
@media (min-width: 1200px) {
  .menu-toggle { display: none; }
  .primary-nav { grid-column: 3; grid-row: 1; position: static; display: flex; gap: 16px; justify-content: flex-end; padding: 0; background: none; color: #fffefa; border: 0; border-radius: 0; box-shadow: none; max-height: none; overflow: visible; opacity: 1; visibility: visible; transform: none; }
  .primary-nav a { font-size: 13px; min-height: 40px; border: 0; white-space: nowrap; }
  .primary-nav .nav-cta { padding: 0 12px; margin: 0; }
}
.home-logo-stage { position: fixed; top: 0; left: 0; z-index: 60; width: 320px; height: 320px; transform-origin: 0 0; pointer-events: none; }
.home-logo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.home-logo-stage[data-renderer="webgl"] .home-logo-canvas { pointer-events: auto; cursor: grab; }
.home-logo-canvas[data-dragging] { cursor: grabbing; }
.home-logo-canvas:focus-visible { outline: 2px solid #f07812; outline-offset: -3px; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-fallback img { width: 80%; height: 80%; object-fit: contain; }
.home-logo-stage[data-renderer="webgl"] .hero-fallback { display: none; }
.hero-universe { height: 96svh; min-height: 620px; padding: calc(var(--header) + 24px) var(--gutter) 150px; overflow: hidden; isolation: isolate; background: #78300d; align-items: center; }
.hero-universe::before { content: ""; position: absolute; inset: -24%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 65% 82% at 18% 14%, #2b1a0d 0%, #4a230deb 20%, #8b370b80 45%, transparent 72%), radial-gradient(ellipse 120% 75% at 8% 95%, #ffc16b 0%, #ff9c3b 28%, #f0781299 48%, transparent 72%), linear-gradient(128deg, #9a3d13 0%, #d55917 30%, #ff6100 54%, #ea5c15 78%, #e55d1b 100%); animation: home-gradient 18s ease-in-out infinite alternate; animation-play-state: paused; }
.hero-universe::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url('../hero-grain.png') repeat; background-size: 192px 192px; mix-blend-mode: soft-light; opacity: .34; }
.hero-universe[data-active="true"]::before { animation-play-state: running; }
@keyframes home-gradient { from { transform: translate(-6%, -3%) rotate(-8deg) scale(1); } to { transform: translate(6%, 4%) rotate(8deg) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.home-logo-anchor { width: 100%; height: min(68svh,760px); max-height: calc(96svh - var(--header) - 174px); min-height: 280px; }
.hero-accessible-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-hero-bottom { position: absolute; z-index: 3; bottom: 42px; left: var(--gutter); right: var(--gutter); display: flex; align-items: end; justify-content: space-between; gap: 32px; color: var(--ink); }
.home-hero-bottom p { margin: 0; font-size: 36px; font-weight: 700; line-height: 1.25; color: #ffffff; text-shadow: 0 1px 2px #59200080, 0 3px 20px #59200066; }
.home-hero-bottom p .text-word { display: inline-block; transform-origin: 50% 100%; }
.home-hero-bottom p[data-caption-visible="true"] .text-word { animation: caption-word 700ms cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--caption-order,0) * 85ms); }
@keyframes caption-word { from { opacity: 0; transform: translate3d(0,22px,0) rotateX(35deg); } to { opacity: 1; transform: none; } }
.home-hero-bottom a { display: flex; align-items: center; gap: 22px; min-height: 48px; font: 400 20px var(--font-mono); white-space: nowrap; }
.home-hero-bottom a span { font-size: 36px; }
#studio-overview { scroll-margin-top: calc(var(--header) + 24px); }
.hero-copy { width: 100%; max-width: 820px; margin: 0 auto; text-align: center; }
.hero-copy h1 { margin: 12px auto 0; max-width: 820px; font-size: 48px; line-height: 1.1; text-wrap: balance; }
.hero-copy > p:not(.kicker) { margin: 20px auto 0; font-size: 18px; line-height: 1.6; max-width: 58ch; text-wrap: pretty; }
.hero-copy .action-row { justify-content: center; margin-top: 28px; }
.scroll-cue { display: none; }
.thesis-band { min-height: 50svh; }
.studio-overview { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; padding: 64px var(--gutter); background: #080807; color: var(--paper); }
.studio-overview .section-intro { padding: 0; margin: 0; }
.studio-overview .section-intro h2 { color: var(--paper); }
body main :is(.section-intro,.brief-copy) > .kicker, body main .stage-label { font-size: 24px !important; line-height: 1.4; margin-bottom: 20px; }
.studio-description p { font-family: var(--font-body); font-size: 22px; font-weight: 400; line-height: 1.55; max-width: 55ch; margin: 0; }
.studio-description p + p { margin-top: 24px; }
#start-project { scroll-margin-top: calc(var(--header) + 24px); }
.story-system .section-intro { max-width: 800px; }
.story-system .section-intro h2 { color: var(--world-text,var(--ink)); }
@media (min-width: 1024px) {
  .studio-overview { min-height: calc(100svh - var(--header)); align-content: center; align-items: start; }
}
.story-stage, .story-stage-flip { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; min-height: 75svh; }
.story-stage .stage-visual { display: block; transform: translateY(calc((1 - var(--stage-progress,1))*24px)); }
.story-stage > div:last-child { max-width: 100%; }
.home-create-visual { min-height: 0; }
.home-create-visual img { width: 100%; height: auto; object-fit: contain; }
.home-create-visual img + img { width: 60%; margin: 20px auto 0; }
@media (max-width: 680px) {
  .brand-link { font-size: 18px; }
  .hero-universe { padding: calc(var(--header) + 24px) 20px 150px; }
  .home-logo-anchor { height: min(64svh,560px); }
  .home-hero-bottom { bottom: 42px; left: 20px; right: 20px; gap: 16px; align-items: start; flex-direction: column; }
  .home-hero-bottom p { font-size: 24px; }
  .home-hero-bottom a { font-size: 18px; }
  .home-hero-bottom a span { font-size: 32px; }
  .hero-copy h1 { font-size: 32px; max-width: none; margin-top: 8px; }
  .hero-copy > p:not(.kicker) { font-size: 16px; margin-top: 16px; }
  .hero-copy .action-row { margin-top: 24px; }
  .thesis-band { min-height: 50svh; padding: 56px 20px; align-items: center; }
  .studio-overview { grid-template-columns: 1fr; gap: 24px; padding: 40px 20px; }
  .studio-description p { font-size: 20px; }
  body main :is(.section-intro,.brief-copy) > .kicker, body main .stage-label { font-size: 18px !important; margin-bottom: 16px; }
  .story-system .section-intro { padding-top: 0; }
  .story-stage, .story-stage-flip { grid-template-columns: 1fr; gap: 24px; padding: 56px 0 36px; min-height: 0; }
  .story-stage .stage-visual { min-height: 240px; }
  .story-stage .home-create-visual { min-height: 0; }
}
@media (max-width: 370px) { .brand-link { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .hero-universe::before { animation: none; } .story-stage .stage-visual { transform: none; } }
@media (prefers-reduced-motion: reduce) { .home-hero-bottom p[data-caption-visible="true"] .text-word { animation: none; transform: none; } }
@media print { .home-hero-bottom p[data-caption-visible="true"] .text-word { animation: none; transform: none; opacity: 1; } }
