/* ───────────────────────────────────────────────────────────
   Copti Totem — 1080 × 1920 design canvas (scaled to display)
   Palette: pigments & dyes of Late Antique Egyptian textiles
   ─────────────────────────────────────────────────────────── */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 700; font-style: normal; src: url(fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: italic; src: url(fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2'); }

:root {
  --gypsum: #F5EFE2;
  --papyrus: #ECE3CF;
  --sand: #DDD0B2;
  --ink: #1D1A17;
  --ink-soft: #4B443B;
  --madder: #8A2420;
  --madder-deep: #651914;
  --red-ochre: #C4492F;
  --yellow-ochre: #D9A33C;
  --blue: #2C5B8F;
  --blue-deep: #1B3A5E;
  --malachite: #3E7C6A;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
h1, h2, h3, b, .credits-btn, .catch, .text p:first-child, dd { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #0d0c0b; overflow: hidden; overscroll-behavior: none; }
body { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
body.kiosk, body.kiosk * { cursor: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; text-align: inherit; touch-action: manipulation; }
img, svg { -webkit-user-drag: none; }

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1080px; height: 1920px;
  transform-origin: center center;
  background: var(--gypsum);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}
#view { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ── Shared atoms ─────────────────────────────────────────── */

.ph {                                   /* placeholder artwork */
  position: relative; overflow: hidden;
  background-color: var(--blue-deep);
  background-image: var(--bg);
  background-size: cover; background-position: center;
}
.ph::after {                            /* woven-linen texture over everything */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  rgba(0,0,0,.10) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 5px);
}

.eyebrow {
  font: 600 26px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--madder);
}
.ornament { display: flex; gap: 14px; justify-content: center; align-items: center; }
.ornament i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.ornament i:nth-child(1) { background: var(--red-ochre); }
.ornament i:nth-child(2) { background: var(--yellow-ochre); }
.ornament i:nth-child(3) { background: var(--blue); }
.ornament i:nth-child(4) { background: var(--malachite); }

.chips { display: flex; gap: 16px; }
.chip {
  min-width: 112px; padding: 20px 30px; border-radius: 8px;
  font: 700 30px/1 var(--sans); letter-spacing: .04em; text-align: center;
  color: var(--ink); border: 3px solid rgba(29, 26, 23, .28);
  transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.chip[aria-pressed="true"] { background: var(--yellow-ochre); border-color: var(--yellow-ochre); }
.chip:active { transform: scale(.94); }

/* tap hint: pulsing ripple */
.ripple { position: relative; width: 72px; height: 72px; flex: none; }
.ripple::before, .ripple::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid currentColor; opacity: 0;
  animation: ripple 2.8s var(--ease) infinite;
}
.ripple::after { animation-delay: 1.4s; }
.ripple i { position: absolute; inset: 27px; border-radius: 50%; background: currentColor; }
@keyframes ripple { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ── Home ─────────────────────────────────────────────────── */

.home-top {
  height: 150px; flex: none; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.credits-btn {
  grid-column: 2; padding: 20px 36px;
  font: 600 52px/1 var(--serif); letter-spacing: .04em;
  border-bottom: 3px solid var(--yellow-ochre);
}
.home-top .chips { grid-column: 3; justify-self: end; }

.hero { position: relative; height: 640px; flex: none; color: var(--gypsum); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-bg { position: absolute; inset: -4%; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.hero-clip { position: absolute; inset: 0; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 46%, rgba(12, 24, 42, .78) 0%, rgba(12, 24, 42, .50) 55%, rgba(12, 24, 42, .72) 100%); }
.hero-inner { position: relative; padding: 0 70px; }
.hero .eyebrow { color: var(--yellow-ochre); margin-bottom: 36px; font-size: 28px; }
.hero h1 {
  font: 600 176px/.92 var(--serif); letter-spacing: -.01em; text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .35);
}
.hero-cap {
  position: absolute; left: 0; right: 0; bottom: 34px; text-align: center;
  font: 500 24px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 239, 226, .8);
}
.hero-band { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; display: flex; }
.hero-band i { flex: 1; }

.welcome { text-align: center; padding: 56px var(--pad) 0; }
.welcome h2 { font: 600 128px/1 var(--serif); letter-spacing: -.01em; margin: 26px 0 10px; }
.welcome .sub { font: italic 500 54px/1.1 var(--serif); color: var(--madder); }
.welcome .intro { font: 400 32px/1.5 var(--sans); color: var(--ink-soft); max-width: 800px; margin: 28px auto 0; text-wrap: balance; }

.actions { padding: 48px var(--pad) 0; display: flex; flex-direction: column; gap: 28px; }
.primary {
  position: relative; overflow: hidden; border-radius: 12px; background: var(--madder); color: var(--gypsum);
  height: 270px; padding: 0 56px; display: flex; align-items: center; gap: 44px;
  box-shadow: 0 26px 50px -26px rgba(138, 36, 32, .7); transition: transform .2s var(--ease);
}
.primary:active { transform: scale(.98); }
.primary .art { position: absolute; inset: 0; opacity: .16; background-image: var(--bg); background-size: 90% auto; background-position: 100% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
.primary svg.ico { position: relative; width: 112px; height: 112px; flex: none; fill: none; stroke: var(--yellow-ochre); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.primary .txt { position: relative; flex: 1; }
.primary small { display: block; font: 600 26px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow-ochre); margin-bottom: 18px; }
.primary b { font: 600 70px/1.02 var(--serif); text-wrap: balance; display: block; }
.primary .ripple { position: relative; color: var(--yellow-ochre); width: 96px; height: 96px; flex: none; }
.primary .ripple i { inset: 36px; }

.secondary {
  border-radius: 12px; height: 118px; padding: 0 48px; display: flex; align-items: center; gap: 28px;
  border: 3px solid var(--blue-deep); color: var(--blue-deep); transition: background .2s, transform .2s var(--ease);
}
.secondary:active { background: rgba(27, 58, 94, .1); transform: scale(.98); }
.secondary svg { flex: none; fill: none; stroke: var(--blue-deep); stroke-linecap: round; stroke-linejoin: round; }
.secondary svg.ico { width: 56px; height: 56px; stroke-width: 2.6; }
.secondary svg:last-child { width: 44px; height: 44px; stroke-width: 2.4; }
.secondary b { flex: 1; font: 600 46px/1 var(--serif); }

.home-foot { margin-top: auto; padding: 0 var(--pad) 44px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.logos { flex: 1; display: flex; gap: 14px; opacity: .8; }
.logo-ph { flex: 1; height: 76px; border: 2px dashed rgba(29, 26, 23, .3); border-radius: 6px; display: grid; place-items: center;
  font: 500 20px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }

/* ── Docked bottom bar ────────────────────────────────────── */

.dock { height: 128px; flex: none; background: var(--ink); color: var(--gypsum); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); position: relative; z-index: 5; }
.dock::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: linear-gradient(90deg, var(--red-ochre) 0 25%, var(--yellow-ochre) 25% 50%, var(--blue) 50% 75%, var(--malachite) 75%); }
.dock .nav { display: flex; gap: 20px; }
.dock .btn { display: flex; align-items: center; gap: 16px; padding: 0 34px; height: 76px; border-radius: 8px; border: 2px solid rgba(245, 239, 226, .3);
  font: 600 30px/1 var(--sans); letter-spacing: .02em; transition: background .2s, transform .15s; }
.dock .btn:active { background: rgba(245, 239, 226, .16); transform: scale(.96); }
.dock .btn svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dock .chip { color: var(--gypsum); border-color: rgba(245, 239, 226, .3); }
.dock .chip[aria-pressed="true"] { color: var(--ink); border-color: var(--yellow-ochre); }

/* ── Path selection ───────────────────────────────────────── */

.page-head { padding: 84px var(--pad) 0; flex: none; }
.page-head h1 { font: 600 104px/1 var(--serif); margin: 26px 0 22px; letter-spacing: -.005em; }
.page-head p { font: 400 34px/1.45 var(--sans); color: var(--ink-soft); max-width: 820px; }

.groups { flex: 1; display: flex; flex-direction: column; gap: 34px; padding: 50px var(--pad) 56px; min-height: 0; }
.grp { flex: 1; border-radius: 10px; padding: 40px 40px 40px; color: var(--gypsum); display: flex; flex-direction: column; gap: 28px; min-height: 0; }
.grp.madder { background: var(--madder); }
.grp.blue { background: var(--blue-deep); }
.grp h2 { font: 600 66px/1 var(--serif); display: flex; align-items: center; gap: 22px; }
.grp h2::after { content: ''; flex: 1; height: 2px; background: rgba(245, 239, 226, .35); }
.grp-cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; min-height: 0; }
.mcard { background: var(--gypsum); color: var(--ink); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; transition: transform .2s var(--ease); }
.mcard:active { transform: scale(.97); }
.mcard .ph { flex: 1; min-height: 0; }
.mcard-body { position: relative; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; height: 224px; flex: none; }
.mcard .code { font: 700 24px/1 var(--sans); letter-spacing: .2em; color: var(--madder); }
.grp.blue .mcard .code { color: var(--blue); }
.mcard h3 { font: 600 38px/1.08 var(--serif); text-wrap: balance; padding-right: 8px; }
.mcard .go { position: absolute; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.mcard .go svg { width: 28px; fill: none; stroke: var(--gypsum); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Scrolling pages (module / catalogue) ─────────────────── */

.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; position: relative; }
.scroll::-webkit-scrollbar { display: none; }
.rail { position: absolute; right: 12px; top: 30px; bottom: 30px; width: 6px; border-radius: 3px; background: rgba(29, 26, 23, .1); z-index: 4; pointer-events: none; }
.screen[data-screen=module] .rail { top: 226px; bottom: 354px; }
.screen[data-screen=catalogue] .rail { top: 30px; bottom: 158px; }
.rail i { position: absolute; left: 0; right: 0; top: 0; height: 80px; border-radius: 3px; background: var(--madder); }

/* timeline */
.tl { position: relative; flex: none; height: 196px; background: var(--gypsum); z-index: 6; box-shadow: 0 10px 24px -18px rgba(29, 26, 23, .4); }
.tl.bottom { box-shadow: 0 -10px 24px -18px rgba(29, 26, 23, .4); }
.tl-line { position: absolute; left: 0; top: 130px; width: 100%; height: 40px; overflow: visible; filter: url(#rough); }
.tl-line path { fill: none; stroke: var(--blue-deep); stroke-width: 5; stroke-linecap: round; }
.tl ol { position: relative; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); padding: 0 12px; height: 100%; }
.stop { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 18px; position: relative; }
.stop .lbl { height: 68px; display: flex; align-items: flex-end; text-align: center; font: 700 24px/1.12 var(--sans); color: var(--ink-soft); padding: 0 6px; text-wrap: balance; transition: color .3s; }
.stop .stem { width: 6px; height: 26px; border-radius: 3px; margin-top: 8px; background: var(--c); filter: url(#rough); }
.stop .dot { width: 52px; height: 52px; border-radius: 50%; margin-top: 4px; background-color: var(--c); filter: url(#rough);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .28) 0 2px, transparent 2px 7px);
  transition: transform .45s var(--ease); }
.stop.c0 { --c: var(--red-ochre); } .stop.c1 { --c: var(--yellow-ochre); } .stop.c2 { --c: var(--blue); }
.stop.active .lbl { color: var(--ink); }
.stop.active .dot { transform: scale(1.4); }
.stop.active::after { content: ''; position: absolute; left: 50%; top: 150px; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 3px solid var(--c); opacity: .6; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.15); opacity: 0; } }
.stop.done .dot { opacity: .55; }

/* chapter */
.chapter { padding: 0 var(--pad) 70px; }
.ch-meta { text-align: center; padding-top: 44px; }
.ch-meta .eyebrow { line-height: 1.5; text-wrap: balance; }
.catch { font: italic 500 62px/1.1 var(--serif); color: var(--madder); text-align: center; margin: 22px 0 6px; min-height: 70px; }
.w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 120ms + 250ms); white-space: pre; }
.go .w { opacity: 1; transform: none; filter: none; }
.ch-title { font: 600 122px/.98 var(--serif); letter-spacing: -.012em; text-align: center; margin: 30px 0 56px; text-wrap: balance; }

.grid-hero { display: grid; grid-template-columns: 1.22fr 1fr; gap: 44px; align-items: stretch; }
.text p { font: 400 33px/1.55 var(--sans); color: var(--ink); margin-bottom: 1.05em; }
.text p:first-child { font: 500 41px/1.24 var(--serif); color: var(--blue-deep); margin-bottom: .8em; }
.text.sm p { font-size: 32px; }
.text.sm p:first-child { font: 400 32px/1.55 var(--sans); color: var(--ink); margin-bottom: 1.05em; }

.fig { position: relative; display: block; overflow: hidden; border-radius: 4px; width: 100%; box-shadow: 0 18px 36px -24px rgba(29, 26, 23, .5); transition: transform .2s var(--ease); }
.fig:active { transform: scale(.985); }
.fig.fill { height: 100%; }
.fig .ph { position: absolute; inset: 0; }
.fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 18px; font: 500 24px/1.2 var(--sans); color: var(--gypsum);
  background: linear-gradient(180deg, transparent, rgba(12, 14, 20, .78)); pointer-events: none; }
.fig .zoom { position: absolute; top: 16px; right: 16px; width: 64px; height: 64px; border-radius: 50%; background: rgba(245, 239, 226, .92); display: grid; place-items: center; pointer-events: none; z-index: 2; }
.fig .zoom svg { width: 32px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.fig .tag { position: absolute; left: 16px; top: 16px; padding: 9px 14px; border-radius: 4px; background: rgba(29, 26, 23, .55); color: var(--gypsum);
  font: 600 20px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; z-index: 2; pointer-events: none; }
.fig .hint { position: absolute; right: 18px; bottom: 74px; z-index: 3; display: flex; align-items: center; gap: 4px; color: var(--gypsum);
  background: rgba(138, 36, 32, .92); border-radius: 40px; padding: 8px 28px 8px 12px; font: 600 26px/1 var(--sans); pointer-events: none; }
.fig .hint .ripple { width: 56px; height: 56px; } .fig .hint .ripple i { inset: 21px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.row2 .fig { aspect-ratio: 1 / .92; }
.banner .fig { aspect-ratio: 968 / 340; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 30px; align-items: stretch; }
.split .fig { height: 100%; min-height: 560px; }
.split .text { align-self: center; }
.triptych { display: grid; grid-template-columns: 1.55fr 1fr 1.55fr; gap: 22px; }
.triptych .fig { height: 420px; }

.divider { margin: 56px 0 50px; display: flex; align-items: center; gap: 28px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 2px; background: var(--sand); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.pager { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; }
.pager.top { padding-top: 34px; }
.pager.bottom { margin-top: 70px; }
.pager button { border-radius: 10px; min-height: 176px; transition: transform .2s var(--ease), opacity .2s; }
.pager button:active { transform: scale(.97); }
.prev { border: 3px solid var(--blue-deep); color: var(--blue-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.prev svg { width: 56px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.prev span { font: 600 24px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.prev:disabled { opacity: .3; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--madder); color: var(--gypsum); padding: 36px 44px; }
.next small { display: block; font: 600 24px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow-ochre); margin-bottom: 14px; }
.next b { font: 600 56px/1.02 var(--serif); }
.next svg { width: 70px; flex: none; fill: none; stroke: var(--yellow-ochre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Catalogue ────────────────────────────────────────────── */

.cat-head { padding: 70px var(--pad) 0; }
.cat-head h1 { font: 600 92px/1 var(--serif); margin: 22px 0 18px; }
.cat-head p { font: 400 32px/1.45 var(--sans); color: var(--ink-soft); max-width: 760px; }
.filters { display: flex; gap: 16px; padding: 34px var(--pad) 28px; }
.filters .chip { background: transparent; }
.filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--gypsum); border-color: var(--ink); }
.cat-grid { columns: 3; column-gap: 24px; padding: 0 var(--pad) 70px; }
.cat-item { break-inside: avoid; margin-bottom: 30px; display: block; width: 100%; }
.cat-item .fig { margin-bottom: 14px; }
.cat-item b { display: block; font: 600 36px/1.1 var(--serif); }
.cat-item span { font: 500 22px/1.4 var(--sans); letter-spacing: .06em; color: var(--ink-soft); }

/* ── Credits sheet ────────────────────────────────────────── */

.sheet { position: absolute; inset: 0; z-index: 30; background: rgba(21, 18, 15, .6); display: flex; align-items: flex-end; opacity: 0; transition: opacity .35s; }
.sheet.show { opacity: 1; }
.sheet-card { width: 100%; background: var(--gypsum); border-radius: 22px 22px 0 0; padding: 70px var(--pad) 80px; transform: translateY(60px); transition: transform .5s var(--ease); position: relative; }
.sheet.show .sheet-card { transform: none; }
.sheet h2 { font: 600 100px/1 var(--serif); margin: 26px 0 20px; }
.sheet dl { margin-top: 50px; }
.sheet dl div { display: grid; grid-template-columns: 420px 1fr; gap: 30px; padding: 30px 0; border-top: 2px solid var(--sand); }
.sheet dt { font: 600 24px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--madder); }
.sheet dd { font: 500 42px/1.2 var(--serif); }
.sheet .x { position: absolute; top: 44px; right: var(--pad); width: 88px; height: 88px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.sheet .x svg, .lb-close svg, .lb-tools svg { width: 40px; height: 40px; fill: none; stroke: var(--gypsum); stroke-width: 2.4; stroke-linecap: round; }

/* ── Lightbox / zoom ──────────────────────────────────────── */

.lb { position: absolute; inset: 0; z-index: 40; background: rgba(14, 12, 10, .985); opacity: 0; transition: opacity .3s; touch-action: none; }
.lb.show { opacity: 1; }
.lb-stage { position: absolute; left: 56px; right: 56px; top: 150px; bottom: 260px; overflow: hidden; display: grid; place-items: center; border-radius: 6px; }
.lb-img { background-color: var(--blue-deep); background-size: cover; background-position: center; will-change: transform; transform-origin: center; position: relative; }
.lb-img::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.10) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 5px); }
.lb-cap { position: absolute; left: 64px; right: 300px; bottom: 120px; font: 500 30px/1.3 var(--sans); color: var(--gypsum); }
.lb-close, .lb-tools button { width: 100px; height: 100px; border-radius: 50%; background: rgba(245, 239, 226, .14); border: 2px solid rgba(245, 239, 226, .35); display: grid; place-items: center; }
.lb-close { position: absolute; top: 28px; right: 40px; }
.lb-tools { position: absolute; right: 56px; bottom: 80px; display: flex; gap: 20px; }
.lb-close:active, .lb-tools button:active { background: rgba(245, 239, 226, .3); }

/* ── Idle / scale helpers ─────────────────────────────────── */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .hero-bg, .ripple::before, .ripple::after, .stop.active::after { animation: none; } }
