:root {
  --ink: #17130f;
  --ink-soft: #2d261e;
  --cream: #f1eadf;
  --cream-deep: #dfd2bf;
  --gold: #c9a45d;
  --gold-bright: #e2bd69;
  --rust: #a76045;
  --line: rgba(202, 170, 108, .35);
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--cream); background: var(--ink); font: 400 1rem/1.55 Arial, Helvetica, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { color: var(--ink); background: var(--gold-bright); }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; padding: .75rem 1rem; color: var(--ink); background: var(--cream); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.opening { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--ink); pointer-events: none; animation: openingOut 1.7s cubic-bezier(.65,0,.35,1) both; }
.opening::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0 47%, rgba(201,164,93,.16) 47% 49%, transparent 49%); }
.opening img { width: min(32rem, 76vw); clip-path: inset(0 100% 0 0); animation: logoReveal .9s .12s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes logoReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes openingOut { 0%, 68% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 1.4rem var(--gutter); }
.brand { width: clamp(9rem, 18vw, 15rem); overflow: hidden; }
.brand img { width: 100%; }
.creator-credit { display: flex; flex-wrap: wrap; align-items: center; column-gap: .3em; color: rgba(255,255,255,.8); font-size: .75rem; line-height: 1.4; text-decoration: none; text-transform: none; letter-spacing: normal; }
.creator-credit > span { white-space: nowrap; }
.credit-heart { color: var(--gold-bright); }
.credit-name { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: .2em; }
.creator-credit:hover, .creator-credit:focus-visible { color: #fff; }
.creator-credit:hover .credit-name, .creator-credit:focus-visible .credit-name { text-decoration-color: var(--gold-bright); }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); padding-top: .35rem; }
.site-header nav a { position: relative; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.site-header nav a::after { content: ""; position: absolute; left: 0; bottom: -.45rem; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 46%; transform: scale(1.035); will-change: transform; }
.hero-shade { background: linear-gradient(180deg, rgba(10,8,6,.25) 0%, rgba(10,8,6,.08) 35%, rgba(10,8,6,.92) 100%), linear-gradient(90deg, rgba(10,8,6,.74) 0%, transparent 58%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: clamp(5rem, 12svh, 7rem) var(--gutter) clamp(1.25rem, 4svh, 3rem); }
.eyebrow, .section-number { margin: 0 0 1.5rem; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; }
.display { margin: 0; max-width: 12ch; font: 800 clamp(3rem, min(9vw, 11svh), 9rem)/.9 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.display span { display: block; }
.display span:last-child { color: var(--gold-bright); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: end; gap: clamp(1rem, 3vw, 3rem); margin-top: clamp(1.25rem, 4svh, 3rem); padding-top: 1rem; border-top: 1px solid var(--line); }
.hero-copy { max-width: 42rem; margin: 0; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.event-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.event-meta div { display: grid; gap: .15rem; }
.event-meta dt { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .65rem; }
.event-meta dd { margin: 0; text-transform: uppercase; font-size: .82rem; }
.text-link { display: inline-flex; gap: .8rem; align-items: center; justify-content: flex-end; text-decoration: none; text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; white-space: nowrap; }
.text-link span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--gold); border-radius: 50%; transition: transform .3s ease, background .3s ease; }
.text-link:hover span { color: var(--ink); background: var(--gold); transform: translateY(.25rem); }

.section { padding: clamp(4.25rem, 7vw, 7.5rem) var(--gutter); }
.section-title { margin: 0; font: 800 clamp(3.5rem, 8vw, 8rem)/.84 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.body-copy { max-width: 38rem; margin: 2.2rem 0 0 auto; font-size: clamp(1rem, 1.45vw, 1.3rem); }
.body-copy p:first-child { color: var(--gold-bright); font-family: var(--serif); font-size: 1.35em; }

.editorial.section { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 34rem; gap: 0; padding: 0; background: var(--cream); color: var(--ink); }
.editorial-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 4; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(3.5rem, 7vw, 7rem) var(--gutter); }
.editorial .section-number { color: var(--rust); }
.editorial-photo { margin: 0; overflow: hidden; }
.editorial-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.editorial-photo:hover img { transform: scale(1.025); }
.editorial-photo-a { grid-column: 1; grid-row: 2; }
.editorial-photo-b { grid-column: 2; grid-row: 1; }
.editorial-photo-c { grid-column: 2; grid-row: 2; }

.manifesto { overflow: hidden; padding: 3.5rem 0; color: var(--ink); background: var(--gold-bright); }
.manifesto-track { display: flex; gap: 2.3rem; width: max-content; font: 800 clamp(2.8rem, 7vw, 7rem)/1 var(--display); letter-spacing: -.045em; text-transform: uppercase; animation: ticker 28s linear infinite; }
.manifesto-track i { color: var(--rust); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.story { background: var(--ink); }
.brand-carousel { --brand-gap: clamp(2rem, 5vw, 5rem); --brand-width: clamp(7rem, 10vw, 9rem); width: 100%; min-width: 0; margin: 0; padding: .75rem 0; overflow: hidden; color: #fff; background: #000; }
.brand-rail { display: flex; width: max-content; animation: brandLoop 32s linear infinite; }
/* Explicit logo widths keep intrinsic sizing of the moving flex groups stable,
   including before image decoding on mobile browsers. */
.brand-group { display: flex; flex: none; width: max-content; align-items: center; justify-content: space-around; gap: var(--brand-gap); min-width: 100vw; margin: 0; padding: 0 calc(var(--brand-gap) / 2); list-style: none; }
.brand-group li { flex: 0 0 clamp(7rem, 10vw, 9rem); width: var(--brand-width); }
.brand-rail img { display: block; width: var(--brand-width); height: auto; aspect-ratio: 286 / 161; object-fit: contain; }
.brand-carousel:focus-within .brand-rail { animation-play-state: paused; }
.brand-carousel:focus-visible { outline-offset: -3px; }
@keyframes brandLoop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brand-rail { width: 100%; animation: none !important; transform: none; }
  .brand-group { flex-wrap: wrap; justify-content: center; width: 100%; min-width: 0; row-gap: .75rem; }
  .brand-group[aria-hidden="true"] { display: none; }
}
.story-intro { position: sticky; top: 2rem; width: 46%; padding-bottom: 4rem; }
.story-list { display: grid; gap: clamp(4rem, 7vw, 7rem); width: 57%; margin: -3rem 0 0 auto; padding: 0; list-style: none; }
.story-item { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(14rem, .8fr); align-items: end; gap: clamp(1.25rem, 3vw, 3.5rem); }
.story-item:nth-child(even) { transform: translateX(-12%); }
.story-item figure { aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: var(--ink-soft); }
.story-item figure img { width: 100%; height: 100%; object-fit: cover; }
.story-item figure.story-photo-natural { aspect-ratio: auto; }
.story-item figure.story-photo-natural img { height: auto; object-fit: contain; }
.story-item time { display: block; color: var(--gold-bright); font: 800 clamp(3.2rem, 6.5vw, 6rem)/.8 var(--display); letter-spacing: -.05em; }
.story-item h3 { margin: 1rem 0 .75rem; font: 700 clamp(1.45rem, 2.5vw, 2.5rem)/1 var(--display); text-transform: uppercase; }
.story-item p { margin: 0; color: var(--cream-deep); }
.story-item p span { color: var(--gold); font-size: .9rem; }

.highlights { padding: 0; color: var(--ink); background: var(--cream); }
.highlights-heading { padding: clamp(3.5rem, 7vw, 7rem) var(--gutter) clamp(2.5rem, 4vw, 4rem); }
.highlights .section-number { color: var(--rust); }
.highlights figure { margin: 0; overflow: hidden; }
.highlights figure img { width: 100%; height: 100%; object-fit: cover; }
.highlight-wide { width: 100%; aspect-ratio: auto; margin: 0 !important; background: var(--ink); }
.highlights .highlight-wide img { width: 100%; height: auto; object-fit: contain; }
.highlight-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.highlight-pair figure:first-child, .highlight-pair figure:last-child { aspect-ratio: 4 / 3; margin: 0; }
.highlight-pair.reverse { grid-template-columns: 1fr 1fr; }
.highlight-full { width: 100%; aspect-ratio: 16 / 7; margin: 0 !important; }

.aftermovie { position: relative; min-height: 100svh; display: grid; place-items: center; padding-block: clamp(4rem, 12svh, 8rem); overflow: hidden; isolation: isolate; }
.aftermovie > img { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(10px); }
.aftermovie-shade { position: absolute; inset: 0; background: rgba(14,11,8,.58); }
.aftermovie-copy { position: relative; z-index: 2; width: min(58rem, calc(100% - 2 * var(--gutter))); text-align: center; }
.aftermovie-copy p { margin: 0; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .25em; }
.aftermovie-copy h2 { margin: .75rem 0 1.8rem; font: 800 clamp(2.75rem, 7vw, 6rem)/1 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.aftermovie-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; box-shadow: 0 1rem 3rem rgba(0,0,0,.35); }
.aftermovie-frame { position: relative; }
.aftermovie-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(3.5rem, 8vw, 5rem); height: clamp(3.5rem, 8vw, 5rem); padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(23,19,15,.8); color: var(--cream); cursor: pointer; box-shadow: 0 .25rem 1rem rgba(0,0,0,.3); }
.aftermovie-play[hidden] { display: none; }
.aftermovie-play:hover, .aftermovie-play:focus-visible { color: var(--ink); background: var(--gold-bright); }
.aftermovie-play svg { width: 45%; height: 45%; fill: currentColor; pointer-events: none; }

.gallery-section { color: var(--ink); background: var(--cream); }
.aftermovie + .gallery-section { padding-top: clamp(4.5rem, 10svh, 8rem); }
.gallery-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 2rem; margin-bottom: clamp(2.75rem, 5vw, 5rem); }
.gallery-heading .section-number { color: var(--rust); }
.gallery-heading p:last-child { margin: 0 0 .5rem; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: clamp(.65rem, 1.2vw, 1.25rem); }
.gallery-item { grid-column: span 3; position: relative; min-height: 18rem; padding: 0; border: 0; background: #d4c7b4; overflow: hidden; cursor: zoom-in; }
.gallery-item:nth-child(8n + 1), .gallery-item:nth-child(8n + 6) { grid-column: span 6; }
.gallery-item:nth-child(8n + 3) { grid-column: span 3; }
.gallery-item img { width: 100%; height: 100%; min-height: 18rem; max-height: 34rem; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.gallery-item::after { content: "Ver foto"; position: absolute; right: .8rem; bottom: .8rem; padding: .55rem .8rem; color: var(--cream); background: rgba(15,12,9,.76); text-transform: uppercase; letter-spacing: .13em; font-size: .64rem; opacity: 0; transform: translateY(.5rem); transition: .3s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); filter: brightness(.86); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.gallery-actions { display: grid; justify-items: center; gap: 1rem; padding-top: 2.75rem; }
.load-more, .download-button { padding: 1rem 1.35rem; border: 1px solid currentColor; color: var(--ink); background: transparent; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; cursor: pointer; transition: color .25s ease, background .25s ease; }
.load-more:hover, .load-more:focus-visible { color: var(--cream); background: var(--ink); }
.load-more[hidden] { display: none; }
#gallery-status { margin: 0; color: #6d5b46; font-size: .82rem; }

.share { display: grid; grid-template-columns: 1fr 3fr 1.25fr; align-items: end; gap: 2rem; background: var(--gold); color: var(--ink); }
.share .section-number { color: var(--ink); }
.share > p:last-child { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.15rem; }

.closing { position: relative; min-height: 78svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.closing-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,9,7,.28) 0%, rgba(12,9,7,.16) 45%, rgba(12,9,7,.72) 100%); }
.closing-copy { position: relative; z-index: 2; width: min(72rem, calc(100% - 2 * var(--gutter))); text-align: center; }
.closing-copy img { width: min(13rem, 42vw); height: auto; margin: 0 auto 1.5rem; }
.closing-copy h2 { margin: 0; font: 800 clamp(4rem, 10vw, 9rem)/.84 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
/* Transparent letter interiors reveal the group; highlights define the glass
   edges without placing a frosted panel or blur over the people. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .closing-copy h2 {
    color: transparent;
    background: linear-gradient(165deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.16) 30%, rgba(255,255,255,.36) 48%, rgba(255,255,255,.08) 66%, rgba(241,234,223,.42) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(255,255,255,.82);
    paint-order: stroke fill;
  }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .closing-copy h2 { color: var(--cream); background: none; -webkit-text-stroke: 0; text-shadow: 0 2px 5px #000; }
}
.closing-copy p { color: var(--gold-bright); text-transform: uppercase; letter-spacing: .18em; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 2rem var(--gutter); color: var(--gold); background: #0e0b09; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }

.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; color: var(--cream); background: rgba(8,7,6,.96); }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(8,7,6,.9); }
.lightbox-shell { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr) 4rem; grid-template-rows: minmax(0, 1fr) auto; align-items: center; width: 100%; height: 100%; padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 3vw, 3rem) 1.5rem; }
.lightbox-stage { grid-column: 2; grid-row: 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; height: 100%; margin: 0; min-width: 0; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; right: clamp(1rem, 3vw, 3rem); top: 1.25rem; border: 0; color: var(--cream); background: transparent; text-transform: uppercase; letter-spacing: .14em; cursor: pointer; }
.lightbox-nav { display: grid; place-items: center; place-self: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--cream); background: transparent; line-height: 1; appearance: none; cursor: pointer; }
.lightbox-nav svg { display: block; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }
.lightbox-footer { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.download-button { color: var(--cream); text-decoration: none; }
.download-button:hover, .download-button:focus-visible { color: var(--ink); background: var(--gold-bright); }

/* Keep content visible even with unavailable or delayed JavaScript.
   Full clipping prevented the former scroll observer from revealing photos. */
.reveal, .reveal-image { opacity: 1; transform: none; clip-path: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header nav a:first-child { display: none; }
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .text-link { grid-column: 1 / -1; justify-content: flex-start; }
  .editorial.section { min-height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .editorial-copy { grid-column: 1 / -1; grid-row: 1; }
  .editorial-photo-a { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 16 / 9; margin: 0; }
  .editorial-photo-b { grid-column: 1; grid-row: 3; aspect-ratio: 4 / 5; margin: 0; }
  .editorial-photo-c { grid-column: 2; grid-row: 3; aspect-ratio: 4 / 5; margin: 0; }
  .story-intro { position: static; width: 100%; }
  .story-list { width: 100%; margin: 0; }
  .story-item:nth-child(even) { transform: none; }
  .gallery-heading { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-child(8n + 1), .gallery-item:nth-child(8n + 3), .gallery-item:nth-child(8n + 6) { grid-column: span 4; }
  .share { grid-template-columns: 1fr 3fr; }
  .share > p:last-child { grid-column: 2; }
}

@media (max-width: 640px) {
  .site-header { padding-top: 1rem; gap: 1rem; }
  .brand { width: 8.4rem; flex-shrink: 0; }
  .site-header nav { padding-top: .15rem; }
  .display { max-width: 100%; font-size: clamp(2rem, 10vw, 4rem); line-height: 1.02; }
  .display, .section-title, .closing-copy h2, .aftermovie-copy h2 { min-width: 0; max-width: 100%; letter-spacing: -.04em; word-break: normal; overflow-wrap: break-word; hyphens: none; text-wrap: balance; }
  .section-title br, .closing-copy h2 br { display: none; }
  .hero-content { padding-top: 5.5rem; padding-bottom: clamp(1rem, 3svh, 2rem); }
  .hero-media img { height: 100%; object-position: 48% 45%; }
  .hero-bottom { grid-template-columns: 1fr; gap: .9rem; margin-top: 1.25rem; }
  .event-meta { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .event-meta dd { font-size: .7rem; }
  .section { padding-block: 4.5rem; }
  .section-title { font-size: clamp(2rem, 10vw, 4rem); line-height: 1.04; }
  .aftermovie-copy h2 { font-size: clamp(2.75rem, 13vw, 5rem); line-height: 1.04; }
  .closing-copy h2 { font-size: clamp(2rem, 10vw, 4rem); line-height: 1.04; }
  .story-item h3 { line-height: 1.15; text-wrap: balance; }
  .editorial.section { display: flex; flex-direction: column; }
  .editorial-copy { padding-block: 3.5rem; }
  .editorial-photo-a { order: 2; aspect-ratio: 4 / 5; }
  .editorial-photo-b { order: 3; width: 100%; margin: 0; aspect-ratio: 4 / 5; position: relative; z-index: 2; }
  .editorial-photo-c { order: 4; margin: 0; aspect-ratio: 4 / 5; }
  .manifesto { padding-block: 2rem; }
  .story-intro { padding-bottom: 4rem; }
  .story-list { gap: 4rem; }
  .story-item { grid-template-columns: 1fr; }
  .story-item figure { aspect-ratio: 4 / 5; }
  .story-item time { font-size: 4.5rem; }
  .highlight-pair, .highlight-pair.reverse { grid-template-columns: 1fr; padding-block: 1rem; }
  .highlight-pair figure:first-child, .highlight-pair figure:last-child, .highlight-pair.reverse figure:first-child, .highlight-pair.reverse figure:last-child { margin: 0; aspect-ratio: 4 / 5; }
  .highlight-pair figure:last-child { width: 100%; margin: 0; position: relative; z-index: 2; }
  .highlight-full { aspect-ratio: 4 / 5; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .gallery-item, .gallery-item:nth-child(8n + 1), .gallery-item:nth-child(8n + 6), .gallery-item:nth-child(8n + 3) { grid-column: span 1; min-height: 0; aspect-ratio: 3 / 4; }
  .gallery-item:nth-child(5n + 1) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .gallery-item img { min-height: 0; max-height: none; }
  .gallery-item::after { opacity: 1; transform: none; }
  .share { display: block; min-height: auto; }
  .share .section-title { margin-bottom: 2rem; }
  /* Let the closing content set its mobile height instead of reserving
     most of another screen before the footer. */
  .closing { min-height: 0; padding-block: 3rem; isolation: isolate; }
  .closing > img { z-index: 0; }
  .closing-shade { z-index: 1; background: linear-gradient(180deg, rgba(12,9,7,.72) 0%, rgba(12,9,7,.68) 45%, rgba(12,9,7,.88) 100%); }
  .closing-copy img { width: min(11rem, 48vw); filter: drop-shadow(0 2px 4px rgba(0,0,0,.9)); }
  .closing-copy h2 { color: var(--cream); background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; -webkit-text-stroke: 0; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
  .closing-copy p { margin-bottom: 0; color: var(--gold-bright); text-shadow: 0 1px 4px #000; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .site-footer .creator-credit { margin-top: .5rem; }
  .site-footer p { margin: 0; }
  .lightbox { height: 100dvh; max-height: 100dvh; }
  .lightbox-shell { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; padding: max(4rem, calc(env(safe-area-inset-top) + 2.75rem)) .5rem max(1rem, env(safe-area-inset-bottom)); }
  .lightbox-close { top: max(1rem, env(safe-area-inset-top)); }
  .lightbox-nav { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 0; background: transparent; }
  .lightbox-nav svg { filter: drop-shadow(0 1px 2px #000); }
  .lightbox-footer { grid-column: 1 / -1; padding-inline: .75rem; }
  .download-button { padding: .85rem 1rem; }
}

/* Short viewports: keep the introduction within the first screen without
   hiding copy. At large accessibility text sizes the section may grow. */
@media (max-height: 700px) {
  .hero-content { padding-top: 4.75rem; padding-bottom: 1rem; }
  .hero .eyebrow { margin-bottom: .75rem; }
  .hero .display { max-width: none; font-size: clamp(2rem, min(7vw, 9svh), 5rem); }
  .hero-bottom { gap: .75rem; margin-top: 1rem; padding-top: .75rem; }
}

@media (max-width: 640px) and (max-height: 700px) {
  .hero .display { max-width: 100%; font-size: clamp(2rem, min(10vw, 7svh), 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .opening { display: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-image { clip-path: none; }
  .hero-media img { transform: none !important; }
}
