/* Project Reel: a studio index alongside a generous preview window. */
.gallery-page [hidden]{display:none!important}
.gallery-page .page-main{max-width:1480px;padding-top:20px}
.gallery-page .page-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:14px 56px;align-items:end;padding:14px 0 26px;margin-bottom:32px}
.gallery-page .page-hero .eyebrow{grid-column:1/-1;margin:0;font-size:11px;letter-spacing:2px}
.gallery-page .page-hero h1{font-size:clamp(40px,4.2vw,62px);line-height:1.05;margin:0;letter-spacing:-2.5px}
.gallery-page .page-hero h1 span{color:var(--pink)}
.gallery-page .page-hero .page-summary{font-size:15px;line-height:1.75;margin:0;max-width:52ch}
.gallery-page .gr{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,2.2fr);gap:42px;align-items:start;position:relative}
.gallery-page .gr-library{position:sticky;top:28px;min-width:0}
.gallery-page .gr-library-heading{display:flex;justify-content:space-between;gap:12px;padding:14px 0 18px;border-top:1px solid #8b91b944;font:10px var(--mono);letter-spacing:1.3px;color:var(--muted)}
.gallery-page .gr-library-heading span:first-child{color:var(--cyan)}
.gallery-page .gr-index{list-style:none;margin:0;padding:0;border-bottom:1px solid #8b91b944}
.gallery-page .gr-index li{margin:0;border-top:1px solid #8b91b92e}
.gallery-page .gr-pick,.gallery-page .gr-fallback-link{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:14px 10px;text-align:left;border:0;border-left:2px solid transparent;background:transparent;color:var(--text);font:14px/1.5 var(--mono);cursor:pointer}
.gallery-page .gr-index-no{flex:none;font-size:10px;letter-spacing:1px;color:#8790ae}
.gallery-page .gr-index-name{flex:1;min-width:0;font-size:14px}
.gallery-page .gr-index-name small{display:block;font-size:8px;letter-spacing:.7px;color:var(--muted);margin-top:3px}
.gallery-page .gr-index-arrow{margin-left:auto;color:#8892b1;font-size:13px}
.gallery-page .gr-pick:hover{background:#75eaf309}
.gallery-page .gr-pick[aria-pressed=true]{border-left-color:var(--cyan);background:linear-gradient(90deg,#75eaf315,transparent);color:var(--cyan)}
.gallery-page .gr-pick[aria-pressed=true] .gr-index-no,.gallery-page .gr-pick[aria-pressed=true] .gr-index-arrow{color:var(--cyan)}
.gallery-page .gr-pick:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}
.gallery-page .gr-library-note{margin:30px 0 0;padding-left:26px;font-size:16px;line-height:1.65;color:var(--muted)}
.gallery-page .gr-library-note em{color:#d6b6e6;font-family:Georgia,serif;font-size:22px}
.gallery-page .gr-viewer{min-width:0}
.gallery-page .gr-controls{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px;min-height:44px}
.gallery-page .gr-position{margin:0;font:26px/1 var(--mono);color:var(--cyan);letter-spacing:-1px}
.gallery-page .gr-position-total{font-size:12px;letter-spacing:1px;color:var(--muted)}
.gallery-page .gr-arrows{display:flex;gap:8px}
.gallery-page .gr-arrows button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #8b91b955;background:transparent;color:var(--text);font:22px var(--mono);cursor:pointer}
.gallery-page .gr-arrows button:hover{color:var(--cyan);border-color:var(--cyan);background:#75eaf30b}
.gallery-page .gr-picker{display:none}
.gallery-page .gr-stage{display:grid;min-width:0}
.gallery-page .gr-project{--gr-accent:var(--cyan);min-width:0;position:relative;margin:0 0 50px;contain:layout style}
.gallery-page .gr-project[data-color=pink]{--gr-accent:var(--pink)}
.gallery-page .gr-project[data-color=purple]{--gr-accent:#b7a4ff}
.gallery-page .gr-project[data-color=peach]{--gr-accent:#ffcf9a}
.gallery-page .gr.is-live .gr-project{grid-area:1/1;visibility:hidden;pointer-events:none;margin:0}
.gallery-page .gr.is-live .gr-project.is-active{visibility:visible;pointer-events:auto}
.gallery-page .gr-project-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 15px;min-height:28px}
.gallery-page .gr-project-heading>p{margin:0;font:10px/1.6 var(--mono);letter-spacing:1.4px;color:var(--gr-accent)}
.gallery-page .gr-project-heading .status-pill{font-size:9px;padding:4px 6px;letter-spacing:.4px}
.gallery-page .gr-media-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;padding:0 12px;background:#11162a;border:1px solid #8391cb44;border-bottom:0}
.gallery-page .gr-capture-label{font:9px/1.4 var(--mono);letter-spacing:.7px;color:#a8b2d0}
.gallery-page .gr-views{display:flex;gap:4px;flex-wrap:wrap}
.gallery-page .gr-views button{min-height:44px;padding:8px 10px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font:9px var(--mono);cursor:pointer}
.gallery-page .gr-views button[aria-pressed=true]{border-bottom-color:var(--gr-accent);color:var(--gr-accent)}
.gallery-page .gr-preview{position:relative;overflow:hidden;height:clamp(240px,31vw,460px);background:#080b20;border:1px solid #8391cb44;touch-action:pan-y pinch-zoom;isolation:isolate}
.gallery-page .gr-media{position:absolute;inset:0;overflow:hidden}
.gallery-page .gr-media>img,.gallery-page .gr-media>video{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.gallery-page .gr-media .art-topline{inset:0 0 auto;z-index:3;padding:10px 14px;background:#080b20c9;font-size:9px;pointer-events:none}
.gallery-page .gr-media--phone{display:grid;place-items:center;padding:18px 28px 32px;background:radial-gradient(ellipse at 50% 50%,color-mix(in srgb,var(--gr-accent),transparent 92%),transparent 70%),#0b1023}
.gallery-page .gr-device{height:100%;max-height:410px;aspect-ratio:390/844;max-width:100%;overflow:hidden;border:6px solid #202841;border-radius:18px;background:#0b1023;box-shadow:0 12px 40px #0008}
.gallery-page .gr-device img,.gallery-page .gr-device video{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.gallery-page .gr-phone-caption{position:absolute;bottom:12px;font:8px var(--mono);letter-spacing:1px;color:var(--muted)}
.gallery-page .gr-art--vault .gr-media>img{object-fit:contain;object-position:center;image-rendering:pixelated}
.gallery-page .gr-art--runner .runner-art{width:62.5%;height:62.5%;max-height:none;margin:0;transform:scale(1.6);transform-origin:top left}
.gallery-page .gr-art--brain .brain-art{width:100%;height:100%;min-height:0;margin:0;border:0}
.gallery-page .gr-art--brain .brain-graph{height:100%;width:100%}
.gallery-page .gr-art--brain .art-topline{font-size:9px}
.gallery-page .gr-project-copy{padding:25px 0 0;max-width:650px}
.gallery-page .gr-project-copy h2{margin:0 0 14px;font-size:clamp(25px,2.4vw,36px);letter-spacing:-1px;line-height:1.15;color:var(--text)}
.gallery-page .gr-project-copy>p{font-size:15px;line-height:1.85;color:var(--muted);margin:0;max-width:62ch}
.gallery-page .gr-tags{display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;margin:20px 0 25px;padding:0;font:10px/1.7 var(--mono);color:var(--gr-accent)}
.gallery-page .gr-tags li{position:relative;padding-left:10px}
.gallery-page .gr-tags li::before{content:"";position:absolute;left:0;top:.6em;width:3px;height:3px;background:currentColor}
.gallery-page .gr-open{display:inline-flex;min-height:48px;gap:24px;font-size:11px;padding:14px 18px}
.gallery-page .gr-browse-hint{margin:20px 0 0;font:9px/1.8 var(--mono);letter-spacing:1px;color:#8590b1}
.gallery-page .gr-hint-touch{display:none}
.gallery-page .gr.is-live .gr-fallback-link{display:none}
.gallery-page .gr.is-paused *,.gallery-page .gr.is-paused *::before,.gallery-page .gr.is-paused *::after{animation-play-state:paused!important}
.gallery-page .gr.is-reduced *{animation:none!important;transition:none!important}
@media(min-width:1100px) and (max-height:950px){.gallery-page .page-hero h1{font-size:clamp(40px,3.8vw,56px)}.gallery-page .gr-pick{min-height:56px;padding-block:12px}.gallery-page .gr-library-note{margin-top:22px}}
@media(max-width:1100px) and (min-width:761px){.gallery-page .gr{grid-template-columns:220px minmax(0,1fr);gap:25px}.gallery-page .gr-index-name{font-size:12px}.gallery-page .gr-pick{gap:10px}.gallery-page .gr-media-tools{flex-wrap:wrap;gap:0;padding:5px 10px}.gallery-page .gr-views button{font-size:8px;padding-inline:8px}}
@media(max-width:760px){
 .gallery-page:has(.site-header:not(.has-dock)){padding-top:0}.gallery-page .site-header:not(.has-dock){position:relative;height:auto;min-height:86px;flex-wrap:wrap;gap:12px;padding:18px}.gallery-page .site-header:not(.has-dock) nav{flex-basis:100%;justify-content:space-between;gap:4px}.gallery-page .site-header:not(.has-dock) nav a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
 .gallery-page .page-main{padding:16px 16px 48px}.gallery-page .page-hero{display:block;padding:18px 0 22px;margin-bottom:24px}.gallery-page .page-hero .eyebrow{font-size:10px;margin-bottom:13px;letter-spacing:1.3px}.gallery-page .page-hero h1{font-size:clamp(40px,10vw,56px);line-height:1.02}.gallery-page .page-hero .page-summary{font-size:14px;line-height:1.75;margin-top:16px}
 .gallery-page .gr{display:block}.gallery-page .gr-library{position:static}.gallery-page .gr.is-live .gr-library{display:none}.gallery-page .gr-library-note{display:none}.gallery-page .gr-index{margin-bottom:28px}.gallery-page .gr-fallback-link{font-size:13px}
 .gallery-page .gr-picker{display:block;flex:1;min-width:0}.gallery-page .gr-picker select{width:100%;min-height:48px;padding:10px 30px 10px 12px;border:1px solid #8391cb66;border-radius:0;background:#10162c;color:var(--text);font:12px var(--mono)}.gallery-page .gr-controls{gap:8px;margin-bottom:20px}.gallery-page .gr-position{font-size:18px;white-space:nowrap}.gallery-page .gr-position-total{font-size:9px;letter-spacing:0}.gallery-page .gr-arrows{gap:5px}.gallery-page .gr-arrows button{width:44px;height:48px;font-size:18px}
 .gallery-page .gr-project-heading{gap:8px;margin-bottom:14px}.gallery-page .gr-project-heading>p{font-size:9px;letter-spacing:.5px}.gallery-page .gr-project-heading .status-pill{font-size:8px}.gallery-page .gr-media-tools{padding:0 8px;gap:8px;flex-wrap:wrap}.gallery-page .gr-capture-label{font-size:8px}.gallery-page .gr-views{gap:0}.gallery-page .gr-views button{font-size:8px;padding:7px 8px}.gallery-page .gr-preview{height:240px}.gallery-page .gr-media .art-topline{font-size:8px;padding:8px;gap:4px}.gallery-page .gr-device{border-width:4px;border-radius:13px}.gallery-page .gr-media--phone{padding-block:12px 28px}
 .gallery-page .gr-art--runner .runner-art{width:100%;height:100%;min-height:240px;transform:none}.gallery-page .gr-art--brain .brain-art{height:240px}.gallery-page .gr-project-copy{padding-top:22px}.gallery-page .gr-project-copy h2{font-size:28px;letter-spacing:-.7px;overflow-wrap:anywhere}.gallery-page .gr-project-copy>p{font-size:14px;line-height:1.8}.gallery-page .gr-tags{font-size:9px;gap:8px 15px;margin-top:18px}.gallery-page .gr-open{font-size:10px;min-height:48px}.gallery-page .gr-browse-hint{font-size:8px;letter-spacing:.6px}.gallery-page .gr-hint-fine{display:none}.gallery-page .gr-hint-touch{display:inline}.gallery-page .studio-cta{margin-top:34px}
 .gallery-page .gr-media--phone{display:block;padding:0}.gallery-page .gr-device{width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none}.gallery-page .gr-phone-caption{display:none}
}
@media(max-width:360px){.gallery-page .gr-position{display:none}.gallery-page .gr-media-tools{padding-top:7px}.gallery-page .gr-preview{height:215px}.gallery-page .gr-project-copy h2{font-size:25px}}
@media(prefers-reduced-motion:no-preference){@keyframes gr-reveal{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.gallery-page .gr-project.is-incoming .gr-preview,.gallery-page .gr-project.is-incoming .gr-project-copy{animation:gr-reveal 180ms ease-out both}}
