/* Garas – 11a „Garai → Padėklas → Vitrina“. Espreso tamsa, kreminis (latte) akcentas. */
.gr { position: relative; z-index: 2; background: #0d0b0a; color: var(--color-ink); box-shadow: 0 -40px 80px rgb(0 0 0 / .55); }
.gr-stage { position: relative; min-height: 100svh; padding: clamp(88px, 12vh, 128px) clamp(20px, 5vw, 72px) 48px; display: grid; align-content: start; gap: 28px; }
.gr-hero { max-width: 32rem; position: relative; z-index: 2; }
.gr-hero h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: .92; letter-spacing: -.03em; margin: .8rem 0 1rem; text-wrap: balance; }
.gr-hero h2 em { font-style: normal; color: var(--color-accent); }
.gr-hero p { color: var(--color-ink-2); max-width: 27rem; }
.gr a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Bazinis (be WebGL / reduced-motion): juosta su scroll-snap */
.gr-list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 10px; margin: 0; list-style: none; }
.gr-list li { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; }
.gr-list a { display: block; text-decoration: none; color: inherit; }
.gr-list img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: #1d1815; }
.gr-list b { display: block; margin-top: .7rem; font: 800 1.25rem/1.1 var(--font-display); }
.gr-list span { color: var(--color-ink-2); font-size: .9rem; font-variant-numeric: tabular-nums; }
.gr-tag, .gr-hint, .gr-cap { display: none; }

/* Kompiuteris – WebGL */
.gr-on .gr { height: 340vh; }
.gr-on .gr-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.gr-on .gr-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.gr-on .gr-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gr-on .gr-list:focus-within { left: 24px; bottom: 24px; width: auto; height: auto; max-width: calc(100% - 48px); clip-path: none; z-index: 5; background: #171310; padding: 12px; border-radius: 16px; }
.gr-on .gr-tag { display: block; position: absolute; left: 50%; top: 9vh; z-index: 2; width: min(36rem, 80vw); text-align: center; opacity: 0; visibility: hidden; translate: -50% 0; }
.gr-tag strong { display: block; font: 900 clamp(2.2rem, 4vw, 4rem)/.95 var(--font-display); letter-spacing: -.03em; margin-bottom: .7rem; }
.gr-tag strong em { font-style: normal; color: var(--color-accent); }
.gr-tag span { display: block; color: var(--color-ink-2); margin-bottom: 1.1rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.gr-on .gr-hint { display: block; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: .82rem; color: var(--color-ink-2); opacity: 0; z-index: 2; pointer-events: none; white-space: nowrap; }
.gr-on .gr-cap { display: block; position: absolute; right: clamp(20px, 5vw, 72px); bottom: 28px; font-size: .92rem; font-weight: 700; z-index: 2; pointer-events: none; min-height: 1.2em; color: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { .gr * { transition: none !important; } }
