/* One shared section list moves between the desktop rail and mobile disclosure. */
.contents-panel{display:contents}
@media(max-width:767px){
 :root{--opening-height:100vh;--opening-top:clamp(72px,13svh,128px);--opening-title:clamp(22px,calc(8.1vw - 3.24px),44px);--mobile-nav-height:calc(112px + env(safe-area-inset-bottom,0px))}
 @supports(height:100svh){:root{--opening-height:100svh}}
 /* Quiet type, a single active-page rule, and one continuous navigation surface. */
 .navigation::before{inset:-32px 0 0;background:linear-gradient(to bottom,transparent,#191a1d 32px);mask-image:none;-webkit-mask-image:none;backdrop-filter:none;-webkit-backdrop-filter:none}
 .navigation:has(.is-mobile-open){background:#191a1d}
 .navigation:has(.is-mobile-open)::before{display:none}
 .nav-inner{height:var(--mobile-nav-height);grid-template-columns:1fr auto 1fr;grid-template-rows:48px 44px;padding:8px 24px calc(12px + env(safe-area-inset-bottom,0px));gap:0 12px}
 .nav-brand{grid-column:2;grid-row:1;justify-self:center;min-width:0;min-height:44px;gap:6px}
 .nav-brand .nav-wordmark{font-size:24px;opacity:1;transform:none}
 .nav-brand img{width:26px;height:20px}
 .nav-contact{grid-column:1;grid-row:1;justify-self:start}
 .nav-links{display:flex;grid-column:1/-1;grid-row:2;width:100%;padding:0;justify-content:space-between;gap:12px;font-size:13px;letter-spacing:-.02em}
 .nav-links a{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;color:#96979e;transition:color .2s}
 .nav-links a::after{content:'';position:absolute;bottom:3px;left:50%;width:18px;height:1px;background:currentColor;transform:translateX(-50%);opacity:0;transition:opacity .2s}
 .nav-links a[aria-current=page]{color:#eeece8}
 .nav-links a[aria-current=page]::after{opacity:1}
 .nav-inner>.page-contents{position:static;grid-column:3;grid-row:1;justify-self:end;transform:none;width:auto!important;padding:0;--contents-accent:#eeece8}
 .nav-inner .nav-contact,.nav-inner .mobile-contents-toggle{width:92px;height:44px;min-height:44px;border-radius:0;font:400 12px/1 Inter,sans-serif;letter-spacing:-.01em;padding:0;display:flex;align-items:center;background:none;border:0;box-shadow:none;color:#b9b9be;transform:none;transition:color .2s;-webkit-tap-highlight-color:transparent}
 .nav-inner .nav-contact{justify-content:flex-start}
 .nav-inner .mobile-contents-toggle{justify-content:flex-end;cursor:pointer}
 .nav-contact::before,.mobile-contents-toggle::before,.page-contents::before{display:none}
 .nav-inner :is(.nav-contact,.mobile-contents-toggle):is(:hover,:active){background:none;box-shadow:none;color:#f2f1ee;transform:none}
 .nav-inner :is(.nav-contact,.mobile-contents-toggle):focus-visible{outline:1px solid #b9b9be;outline-offset:2px;border-radius:3px}
 .contents-panel{display:none;position:absolute;right:0;left:0;bottom:100%;max-height:min(62svh,calc(100svh - var(--mobile-nav-height) - 28px));overflow:hidden;padding:20px 24px 16px;border:0;border-radius:0;background:linear-gradient(180deg,#202124f5,#191a1dfc);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);box-shadow:0 -24px 64px #0002}
 .contents-panel::before{content:'';position:absolute;top:0;left:24px;right:24px;height:1px;background:#ffffff12}
 .page-contents.is-mobile-open .contents-panel{display:flex;flex-direction:column;animation:navigation-appear .2s ease-out}
 .page-contents.is-mobile-open ol{position:static;display:flex;width:100%;max-height:none;min-height:0;flex:0 1 auto;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#62676e transparent;background:none;border:0;padding:4px 0;margin:0;gap:0;mask-image:linear-gradient(transparent,#000 8px,#000 calc(100% - 8px),transparent)}
 .page-contents.is-mobile-open li{width:100%}
 .page-contents.is-mobile-open a{height:auto;min-height:48px;width:100%;padding:10px 0;justify-content:space-between;gap:16px;font:400 16px/1.4 Inter,sans-serif;letter-spacing:-.025em;color:#9d9ea5}
 .page-contents a::before{display:none}
 .nav-inner .page-contents.is-mobile-open .contents-label{max-width:none;opacity:1;transform:none;visibility:visible;font:inherit;white-space:normal;text-align:left;flex:1}
 .page-contents.is-mobile-open a:is([aria-current],:hover,:focus-visible){color:#eeece8}
 .page-contents.is-mobile-open .contents-line{visibility:hidden}
 .page-contents.is-mobile-open a[aria-current] .contents-line{visibility:visible}
 .page-contents.is-mobile-open a[aria-current] .contents-line::after{height:1px;width:18px;border-radius:0;background:currentColor}
 /* Shared top spacing; each composition determines its own content height. */
 body h1:is(#hero-title,#studio-title,#tcg-title,#manifesto-heading,#contact-title){font-family:var(--serif);font-size:var(--opening-title)!important;font-weight:400;line-height:1.12;letter-spacing:-.045em;margin:0;text-wrap:balance}
 body.overview-page .hero,body.studio-page .studio-hero{height:var(--opening-height);min-height:0;display:flex;flex-direction:column;gap:24px;padding:var(--opening-top) 0 calc(var(--mobile-nav-height) + 20px);overflow:visible}
 body.overview-page .hero{height:auto;padding-bottom:24px;gap:32px}
 body.overview-page .hero-visual{flex:none}
 body.overview-page .problem.chapter{padding-top:48px}
 body .hero-copy{flex:none;padding:0 20px;text-align:center}
 body .hero-brand{margin-bottom:20px}
 body .hero-brand span{font-size:32px}
 body .hero-brand img{width:34px;height:26px}
 body .hero h1{white-space:normal}
 body .hero-subtitle{font-size:17px;line-height:1.5;margin-top:20px}
 body .hero-subtitle span{display:block}
 body .hero-visual{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
 body .product-reveal{height:auto;width:calc(100% - 24px);max-width:none;max-height:100%;aspect-ratio:16/9;margin:0;padding:4px;border-radius:12px}
 body .product-reveal img{width:100%;height:100%;object-fit:contain;border-radius:8px}
 body.studio-page .studio-hero{height:auto;min-height:0;padding-bottom:0;background:radial-gradient(ellipse 100% 50% at 50% 100%,#303740 0%,#262b33 44%,#191a1d 100%)}
 body.studio-page .studio-hero-heading{flex:none}
 body.studio-page .studio-hero-heading h1>span{white-space:normal}
 body.studio-page .studio-hero-heading .hero-lead{font-size:14px;line-height:1.55;max-width:720px;margin:16px auto 0!important}
 body.studio-page .studio-hero-frame{flex:1;min-height:300px;width:calc(100% - 24px);padding:0;margin:0 auto;display:flex;align-items:center;justify-content:center}
 body.studio-page .studio-hero-frame .studio-screen{height:auto;width:100%;max-height:100%;aspect-ratio:16/9;margin:0}
 body.studio-page .studio-hero-frame .studio-screen>img{width:100%;height:100%;object-fit:contain}
 body.studio-page .studio-hero-frame.studio-duo{position:relative;flex:none;width:100%;height:calc(clamp(400px,112vw,540px) + 64px);min-height:0;margin-top:-18px}
 body.studio-page .studio-duo .duo-stage{position:absolute;inset:0;height:100%;width:100%;margin:0;overflow:visible}
 body.studio-page .duo-stage canvas{transform:none}
 body.studio-page .duo-controls{bottom:13%;width:65%;max-width:420px;gap:12px}
 body.studio-page .duo-controls button{padding-inline:0}
 body.studio-page .duo-opening{gap:8px}
 body.studio-page .studio-hero-frame:not(.studio-duo){flex-direction:column}
 body.studio-page .studio-hero-frame:not(.studio-duo) .studio-screen{height:calc(100% - 26px);max-width:100%;flex:none}
 body.studio-page .studio-hero-frame:not(.studio-duo) .hero-frame-caption{font-size:10px!important;line-height:18px;margin:8px 0 0!important}
 body.tcg-page .pack-story-stage,body.tcg-page .pack-story.is-enhanced .pack-story-stage{height:var(--opening-height);min-height:0;padding:var(--opening-top) 0 calc(var(--mobile-nav-height) + 28px)}
 body.tcg-page .pack-story-grid{height:100%;min-height:0;grid-template-rows:auto minmax(0,1fr);gap:20px}
 body.tcg-page .pack-story-copy{grid-row:1;padding:0;height:auto!important;display:grid;align-items:start;text-align:center}
 body.tcg-page .pack-story-art{grid-row:2;height:100%;min-height:0}
 body.tcg-page .pack-story-actions{justify-content:center;flex-wrap:nowrap;gap:12px}
 body.tcg-page .pack-story-actions .pill-button{padding:12px 14px;gap:10px}
 body.tcg-page .pack-story-actions .quiet-link{margin-top:0;padding-block:0;gap:6px;white-space:nowrap}
 body.tcg-page .pack-why-full{display:none}
 body.tcg-page .pack-why-short{display:inline}
 body.tcg-page :is(.pack-story-thesis .hero-lead,.pack-story-reveal>p){margin-inline:auto}
 body.tcg-page .pack-story.is-enhanced :is(.pack-story-thesis,.pack-story-reveal){position:relative;grid-area:1/1;top:auto;left:auto;transform:none;width:100%;margin:0}
 body.tcg-page .pack-story-thesis .hero-lead,body.tcg-page .pack-story-reveal>p:not(.eyebrow){font-size:14px;line-height:1.5;margin-top:16px!important}
 body.tcg-page .pack-story-card-scene{width:auto;height:min(88%,310px);max-width:52vw;aspect-ratio:300/419}
 body.tcg-page .pack-story-fallback{max-height:none;width:auto;height:min(calc(84% + 80.64px),calc((100vw - 40px) * 1.066667),500px);top:calc(50% - 24px)}
 body.tcg-page .pack-story-reveal h2{font-size:var(--opening-title);line-height:1.12}
 body.tcg-page .pack-story-bottom{bottom:calc(var(--mobile-nav-height) + 60px);justify-content:center;z-index:6;pointer-events:none}
 body.tcg-page .pack-story-cue{position:relative;isolation:isolate;justify-content:center;font-size:10px;text-shadow:0 2px 8px #000;color:#eeeaf2}
 body.tcg-page .pack-story-cue::before{content:'';position:absolute;inset:-12px -22px;z-index:-1;background:radial-gradient(ellipse,#191a1df0 12%,#191a1d99 44%,transparent 74%)}
 /* The manifesto's complete opening thought remains readable on a narrow screen. */
 body .manuscript-opening{padding:var(--opening-top) 0 48px}
 body .manuscript-preface{font-size:clamp(15px,4.4vw,20px);line-height:1.65}
 body .manuscript-subtitle{font-size:16px;line-height:1.6;margin-top:22px}
 body .manuscript-preface-note{font-size:14px;line-height:1.65;margin-top:20px}
 body .manuscript-seal{margin:28px auto;gap:28px}
}
@media(max-width:359px){
 .nav-inner{padding-inline:12px;column-gap:6px}
 .nav-contact,.mobile-contents-toggle{width:90px}
 .nav-brand .nav-wordmark{font-size:23px}.nav-brand img{width:25px;height:20px}
}
@media(max-width:767px) and (max-height:700px){
 body.overview-page .hero,body.studio-page .studio-hero{gap:16px;padding-top:var(--opening-top);padding-bottom:calc(var(--mobile-nav-height) + 12px)}
 body.overview-page .hero{gap:24px;padding-bottom:24px}
 body.studio-page .studio-hero{padding-bottom:0}
 body .hero-brand{margin-bottom:12px}
 body .hero-subtitle{margin-top:12px}
 body.studio-page .studio-hero-heading .hero-lead{font-size:13px}
 body.tcg-page .pack-story-stage,body.tcg-page .pack-story.is-enhanced .pack-story-stage{padding-top:var(--opening-top)}
 body.tcg-page .pack-story-thesis .hero-lead,body.tcg-page .pack-story-reveal>p:not(.eyebrow){font-size:12px;line-height:1.45;margin-top:10px!important}
 body.tcg-page .pack-story-actions{gap:8px;margin-top:12px}
 body.tcg-page .pack-story-actions a{font-size:11px;min-height:36px}
}
@keyframes navigation-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.page-contents.is-mobile-open .contents-panel{animation:none}.mobile-contents-toggle{transition:none}}

/* Short phones use a flowing reveal so the card never shrinks to a thumbnail. */
@media(max-width:767px) and (max-height:650px){
 body.tcg-page .pack-story.is-enhanced{height:auto}
 body.tcg-page .pack-story-stage,body.tcg-page .pack-story.is-enhanced .pack-story-stage{position:relative;top:0;height:auto;padding-bottom:36px}
 body.tcg-page .pack-story-grid{height:auto;grid-template-rows:auto 240px}
 body.tcg-page .pack-story-bottom{bottom:60px}
}
