/* ============ TOKENS ============ */
:root {
	--paper: #F7F7F3;
	--paper-raised: #FFFFFF;
	--ink: #14161C;
	--ink-soft: #53565F;
	--ink-faint: #6B6E76;
	--amber: #FFAE1F;
	--amber-deep: #E89400;
	--amber-ink: #2B1B00;
	--amber-text: #8F5300;
	--bass: #101226;
	--bass-raised: #171A34;
	--bass-line: #33375A;
	--bass-text: #EDEDF4;
	--bass-text-soft: #A8ABC4;
	--line: #E3E2DA;
	--radius: 14px;
	--font-display: "Bricolage Grotesque", sans-serif;
	--font-body: "IBM Plex Sans", sans-serif;
	--font-mono: "IBM Plex Mono", monospace;
	--wide: 1200px;
	--content: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.narrow { max-width: var(--content); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.eyebrow {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink-soft);
}
.eyebrow .dot { width: .5em; height: .5em; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255,174,31,.25); }
.section-dark .eyebrow { color: var(--bass-text-soft); }
.section-dark .eyebrow .dot { box-shadow: 0 0 0 3px rgba(255,174,31,.35); }

section { padding-block: clamp(3.5rem, 7vw, 6.5rem); scroll-margin-top: 60px; }
.section-dark { background: var(--bass); color: var(--bass-text); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--bass-text); }
.section-raised { background: var(--paper-raised); border-block: 1px solid var(--line); }

.btn {
	font-family: var(--font-mono); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
	display: inline-flex; align-items: center; gap: .6em;
	padding: .95em 1.6em; border-radius: 10px; border: 1.5px solid transparent;
	text-decoration: none; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--amber-deep); color: var(--amber-ink); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.section-dark .btn-solid { background: var(--amber); color: var(--amber-ink); }
.section-dark .btn-solid:hover { background: #fff; color: var(--amber-ink); }
.section-dark .btn-outline { border-color: var(--bass-text-soft); color: var(--bass-text); }
.section-dark .btn-outline:hover { background: var(--bass-text); color: var(--bass); border-color: var(--bass-text); }

/* ============ HEADER ============ */
header.site {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid var(--line);
}
/* backdrop-filter lives on a ::before, not on header.site itself, because
   filter/backdrop-filter on an element creates a new containing block for
   its fixed-position descendants — which would break the mobile nav overlay
   below (it needs to size against the viewport, not the ~64px header). */
header.site::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(247,247,243,.88); backdrop-filter: blur(10px);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.logo .bars { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
/* Same geometry as the live equalizer in js/eq.js (full height, scaled from the baseline),
   so the logo looks identical before and after the script takes over. */
.logo .bars span { width: 3px; height: 100%; background: var(--amber); border-radius: 1px; transform-origin: 50% 100%; animation: bar 1.4s ease-in-out infinite; }
.logo .bars span:nth-child(1) { animation-delay: -1.1s; }
.logo .bars span:nth-child(2) { animation-delay: -0.7s; }
.logo .bars span:nth-child(3) { animation-delay: -0.3s; }
.logo .bars span:nth-child(4) { animation-delay: -0.9s; }
@keyframes bar { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
	.logo .bars span { animation: none; }
	.logo .bars span:nth-child(1) { transform: scaleY(.4); }
	.logo .bars span:nth-child(2) { transform: scaleY(1); }
	.logo .bars span:nth-child(3) { transform: scaleY(.65); }
	.logo .bars span:nth-child(4) { transform: scaleY(.85); }
}

nav.primary ul { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 1.75rem); margin: 0; padding: 0; }
nav.primary a { white-space: nowrap; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
nav.primary a:hover { color: var(--ink); }
nav.primary a.nav-cta { color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; padding: .35em .9em; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
nav.primary a.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 920px) {
	nav.primary { position: fixed; inset: 60px 0 0 0; background: var(--paper); padding: 2rem clamp(1.25rem,5vw,3rem); transform: translateY(-110%); transition: transform .25s ease; }
	nav.primary.open { transform: translateY(0); }
	nav.primary ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
	nav.primary a { font-size: 1.3rem; }
	nav.primary a.nav-cta { font-size: 1rem; }
	.nav-toggle { display: block; }
}

/* ============ HERO ============ */
.hero { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-grid > div:first-child { container-type: inline-size; }
/* The big flaps scale with the width of their own column (not the viewport), so the row never wraps.
   7 flaps + 6 gaps come to ~6.9 × the flap size; 14cqw leaves a little air. */
.hero h1 { --big: clamp(3rem, 7vw, 5.6rem); font-size: var(--big); }
@supports (width: 1cqw) { .hero h1 { --big: min(6rem, 14cqw); } }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36ch; margin-block: 1.4rem 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: #cdc4b4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,174,31,.18), rgba(16,18,38,.18) 70%); mix-blend-mode: multiply; pointer-events: none; }
.waveline { display: flex; align-items: center; gap: 3px; height: 40px; margin-top: 1.5rem; }
.waveline span { flex: 1; background: var(--ink); opacity: .12; border-radius: 2px; }
.waveline span:nth-child(3n) { opacity: .3; }
.waveline span:nth-child(5n) { opacity: .55; background: var(--amber-deep); }

/* ============ SPLIT-FLAP (signature accent) ============ */
.flap-row { display: flex; flex-wrap: wrap; gap: .22em; }
.flap {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 1ch; min-width: .8em; aspect-ratio: 3 / 4;
	background: var(--ink); color: var(--paper);
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -6px 10px -6px rgba(0,0,0,.55), 0 3px 8px rgba(20,22,28,.18);
	overflow: hidden;
	font-variant-numeric: tabular-nums;
}
.flap.space { background: transparent; box-shadow: none; }
.flap.space::after { display: none; }
.flap::after {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
	background: rgba(0,0,0,.5); transform: translateY(-1px); z-index: 2;
}
.flap .char { position: relative; z-index: 1; }
.flap.big { font-family: var(--font-display); font-weight: 800; font-size: var(--big, clamp(3.2rem, 10vw, 6rem)); letter-spacing: -0.01em; }
.flap.mid { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.3rem, 3vw, 2.1rem); }
.flap.board { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.15rem, 4.2vw, 3rem); }
@keyframes flapFlip {
	0% { transform: rotateX(0deg); filter: brightness(1); }
	50% { transform: rotateX(-92deg); filter: brightness(.6); }
	51% { transform: rotateX(-92deg); filter: brightness(.6); }
	100% { transform: rotateX(0deg); filter: brightness(1); }
}
.flap.flipping { animation: flapFlip .16s linear; }
@media (prefers-reduced-motion: reduce) { .flap.flipping { animation: none; } }

/* Ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; margin-top: clamp(2.5rem,6vw,4rem); }
.ticker-track { display: flex; white-space: nowrap; padding-block: .85rem; animation: scroll 26s linear infinite; width: max-content; }
/* spacing as padding after each item (not flex gap), so two identical halves tile seamlessly */
.ticker-track > span { padding-right: 3rem; }
.ticker-track span { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ticker-track span em { color: var(--amber-text); font-style: normal; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============ SECTION HEADINGS ============ */
.section-head { max-width: var(--content); margin: 0 auto clamp(2.5rem,5vw,3.5rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-head .sub { color: var(--ink-soft); margin-top: 1rem; }
.section-dark .section-head .sub { color: var(--bass-text-soft); }

/* ============ SLOGAN BOARD (dark) ============ */
.board-section { padding-block: clamp(3rem, 6vw, 5rem); }
.board { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.board .flap-row { gap: .14em; justify-content: center; }
.board .flap { background: #1E2140; color: var(--bass-text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 -6px 10px -6px rgba(0,0,0,.6), 0 3px 8px rgba(0,0,0,.35); }
.board .flap.space { background: transparent; box-shadow: none; }
.board .flap-row:last-child .flap:not(.space) { color: var(--amber); }

/* ============ O MNE ============ */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: #cdc4b4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about-copy h2 { font-size: clamp(2rem,4vw,2.75rem); margin-bottom: 1rem; }
.about-copy p { color: var(--ink-soft); }
.about-copy .goal { color: var(--ink); font-weight: 600; }

/* ============ CO ZAJISTIM (dark) ============ */
.rider-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--bass-line); border-radius: var(--radius); overflow: hidden; }
.rider-item { padding: 1.75rem; border-right: 1px solid var(--bass-line); border-bottom: 1px solid var(--bass-line); margin-right: -1px; margin-bottom: -1px; }
.rider-item .tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--amber); text-transform: uppercase; margin-bottom: .6rem; }
.rider-item h3 { font-size: 1.3rem; line-height: 1.15; }
@media (max-width: 860px) { .rider-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rider-grid { grid-template-columns: 1fr; } }
.rider-cta { text-align: center; margin-top: 2.5rem; }

/* ============ CENIK ============ */
.price-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; max-width: 960px; margin-inline: auto; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; position: relative; display: flex; flex-direction: column; gap: 1rem; }
.price-card.featured { border: 2px solid var(--ink); }
.price-card .from { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.price-card h3 { font-size: 1.5rem; }
.price-card .price { display: flex; align-items: baseline; gap: .4em; flex-wrap: wrap; }
.price-card .price small { font-size: 1rem; color: var(--ink-soft); font-weight: 400; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; color: var(--ink-soft); }
.price-card li::before { content: "—"; color: var(--amber-text); margin-right: .5em; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card p.muted { color: var(--ink-soft); font-size: .95rem; }
.requirements { max-width: 960px; margin: 1.5rem auto 0; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 2rem; }
.requirements h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.requirements ul { columns: 2; column-gap: 2rem; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-soft); }
.requirements li { break-inside: avoid; margin-bottom: .6rem; }
.requirements li::before { content: "✓"; color: var(--amber-text); margin-right: .6em; font-weight: 600; }
@media (max-width: 600px) { .requirements ul { columns: 1; } }

/* ============ ZABAVA NAVIC ============ */
.extra { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.extra + .extra { margin-top: clamp(3.5rem, 7vw, 6rem); }
.extra .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-text); }
.extra h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-block: .5rem .4rem; }
.extra .claim { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.extra-body { margin-top: 1.2rem; }
.extra-body p + p { margin-top: 1em; }
.extra .incl-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-text); margin: 1.2rem 0 .4rem; }
.incl { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .95rem; color: var(--ink-soft); }
.incl li::before { content: "—"; color: var(--amber-text); margin-right: .5em; }
.extra p { color: var(--ink-soft); }
.extra.flip .extra-media { order: 2; }
.extra-media { position: relative; }
.extra-media img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.stiga-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.stiga-pair img { aspect-ratio: 4/5; height: 100%; }
.stiga-pair img:first-child { object-position: 45% 50%; }
.instax-media img { aspect-ratio: 3/2; }

/* Dataprojektor — no photo yet, so a drawn screen */
.screen { aspect-ratio: 16/10; background: var(--bass); border-radius: var(--radius); padding: 7%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; position: relative; overflow: hidden; }
.screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% -20%, rgba(255,174,31,.35), transparent 60%); }
.screen .flap-row { position: relative; justify-content: center; gap: .12em; }
.screen .flap { background: #1E2140; color: var(--amber); }
.screen .flap.space { background: transparent; }
.screen .modes { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.screen .modes span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bass-text-soft); border: 1px solid var(--bass-line); border-radius: 999px; padding: .3em .8em; }

@media (max-width: 860px) {
	.extra { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
	.extra.flip .extra-media { order: 0; }
	/* title first, then picture, then copy: a picture on top would read as belonging to the previous block */
	.extra-text { display: contents; }
	.extra-head { order: 0; }
	.extra-media, .extra.flip .extra-media { order: 1; }
	.extra-body { order: 2; margin-top: 0; }
	.stiga-pair { margin-top: 2.5rem; } /* room for the figure standing on the photos */
}

/* ============ REFERENCE ============ */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem,1fr)); gap: 1.5rem; max-width: 760px; margin-inline: auto; }
.quote-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.quote-mark { font-family: var(--font-display); font-size: 2.5rem; color: var(--amber-text); line-height: 1; margin-bottom: .3rem; }
.quote-card p.quote { font-size: 1.05rem; font-style: italic; margin-bottom: 1rem; }
.quote-card .who { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft); }

/* ============ POPTAVKA (dark) ============ */
.inquiry-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem,5vw,3.5rem); max-width: 820px; }
.inquiry-intro { text-align: center; max-width: 38rem; margin-inline: auto; }
.inquiry-intro h2 { font-size: clamp(2rem,4vw,2.75rem); margin-bottom: 1rem; }
.inquiry-intro p { color: var(--bass-text-soft); text-wrap: balance; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
.inquiry-alt { margin-top: 2rem; text-align: center; }
.inquiry-alt p { color: var(--bass-text-soft); font-size: .95rem; }
.inquiry-alt .contact-list { margin: 1rem auto 0; max-width: 34rem; grid-template-columns: 1fr 1fr; text-align: left; }
@media (max-width: 520px) { .inquiry-alt .contact-list { grid-template-columns: 1fr; } }
.contact-item { border: 1px solid var(--bass-line); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.contact-item .tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--amber); text-transform: uppercase; margin: 0; }
.contact-item a { text-decoration: none; font-size: 1.1rem; font-weight: 600; color: var(--bass-text); }
.contact-item a:hover { color: var(--amber); }

.form { background: var(--bass-raised); border: 1px solid var(--bass-line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bass-text-soft); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
	width: 100%; font: inherit; font-size: 1rem; color: var(--bass-text);
	background: var(--bass); border: 1px solid var(--bass-line); border-radius: 8px; padding: .75em .9em;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6E7294; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,174,31,.2); }
.field input[type="date"] { color-scheme: dark; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-foot small { color: var(--bass-text-soft); font-size: .82rem; }
.form-foot small a { color: var(--amber); }

/* ============ FOOTER ============ */
footer.site { background: color-mix(in srgb, var(--bass) 72%, #000); border-top: 1px solid var(--bass-line); padding-block: 2.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; font-size: .88rem; color: var(--bass-text-soft); }
.footer-grid a { text-decoration: none; color: var(--bass-text-soft); }
.footer-grid a:hover { color: var(--bass-text); }

/* ============ REVEAL ============ */
/* Progressive enhancement: content is visible by default. JS adds .pre only
   right before observing, so a blocked/broken script can never hide content. */
.reveal.pre { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.pre.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal.pre { opacity: 1; transform: none; transition: none; } }

/* Focus visibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; }

@media (max-width: 860px) {
	.hero-grid, .about-grid { grid-template-columns: 1fr; }
	.hero-photo { order: -1; max-width: 22rem; margin-inline: auto; width: 100%; }
	.about-photo { max-width: 26rem; }
}

/* ============ GALERIE ============ */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.6vw, 1.1rem); }
.gallery li { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #cdc4b4; }
.gallery li.rise { animation: galleryRise .5s ease both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes galleryRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gallery a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-more { text-align: center; margin-top: 2rem; }
@media (max-width: 700px) {
	.gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .gallery li.rise { animation: none; } .gallery img { transition: none; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--bass-text); }
.lightbox::backdrop { background: rgba(10,11,24,.94); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem; }
.lightbox figure { margin: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { display: flex; gap: 1rem; align-items: baseline; justify-content: center; text-align: center; font-size: .9rem; color: var(--bass-text-soft); max-width: 60ch; }
.lb-count { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; color: var(--amber); white-space: nowrap; }
.lb-close, .lb-nav { background: rgba(255,255,255,.08); border: 1px solid var(--bass-line); color: var(--bass-text); border-radius: 50%; width: 3rem; height: 3rem; cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; transition: background .2s ease; }
.lb-close:hover, .lb-nav:hover { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.lb-nav svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-nav[hidden] { display: none; }
@media (max-width: 600px) {
	.lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: .75rem; }
	.lb-nav { position: absolute; bottom: 1rem; z-index: 2; width: 2.75rem; height: 2.75rem; }
	.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
	.lightbox figure img { max-height: calc(100dvh - 9rem); }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
