/* page U2: A's base (style.css) with B and C folded in. black, white and greys; frames resolve into colour; C's pale yellow only on the last panel. */
:root { --grey: #cdcdcb; --mono: grayscale(1) contrast(1.08); --col: saturate(.92) contrast(1.06); }
html { transition: background-color .01s; }
body { background: transparent; }
img, video { filter: var(--mono); }

/* layers: ground (html) < wash < photographs + content < the mark < grain < nav < player */
.cover { position: fixed; inset: 0; z-index: 99; background: #111110; pointer-events: none; }
.wash { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: var(--wash, #111110); clip-path: circle(0% at 50% 50%); visibility: hidden; }
#ink { z-index: 89; }
main { z-index: 2; }

/* ---------- hero: the reel runs under the mark, read through a dot screen ---------- */
.intro { padding-bottom: 0; }
.hero { overflow: hidden; }
.backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop img, .backdrop video { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(.42); will-change: transform; }
.backdrop::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(17, 17, 16, .55) 0 32%, transparent 36%) 0 0 / 5px 5px, radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(17, 17, 16, .85)); }
.hero .backdrop { opacity: 0; }
.hero .backdrop video { filter: none; }            /* reel-m.mp4 already carries contrast 1.04, brightness .7 */
.backdrop video[data-bg] { filter: none; }          /* huracan-bg.mp4 already carries grayscale, contrast 1.25, brightness .42 */
.hero .backdrop::after { background: radial-gradient(120% 90% at 50% 50%, transparent 45%, rgba(17, 17, 16, .7)); }
.hero .tag { position: absolute; left: 50%; top: calc(50% + var(--drop, 12vw) + 1.6rem); transform: translateX(-50%); white-space: nowrap; z-index: 4; will-change: opacity, filter; }
.hero .count { z-index: 2; }
.rule { z-index: 1; }

/* option lens: a stain under the pointer lets the reel through, clean and in colour */
.lens { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
html[data-hero="lens"] .lens { display: block; }
/* option orbit: small frames turn around the mark */
.orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
html[data-hero="orbit"] .orbit { display: block; }
.orbit i { position: absolute; left: 0; top: 0; width: 13rem; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; image-rendering: pixelated; will-change: transform, opacity; }
/* option data: a quiet row of facts at the bottom */
.datarow { position: absolute; left: var(--pad); right: var(--pad); bottom: 1.4rem; z-index: 2; display: none; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
html[data-hero="data"] .datarow { display: grid; }
.datarow .p1:nth-child(2) { text-align: center; } .datarow .p1:nth-child(3) { text-align: right; }
.datarow .dim { margin-right: .5rem; }
html[data-hero="data"] .hero .count { bottom: 3.4rem; }

/* options for the line under the mark (?tag=1..5) */
.tagwide, .tagcv { display: none; }
html[data-tag="1"] .hero .tag { font-size: var(--h2); line-height: .9; letter-spacing: -.036em; top: calc(50% + var(--drop, 12vw) + 1.1rem); }
html[data-tag="2"] .hero .tag, html[data-tag="3"] .hero .tag, html[data-tag="5"] .hero .tag { display: none; }
html[data-tag="2"] .tagwide { display: flex; position: absolute; left: var(--pad); right: var(--pad); bottom: 1.4rem; z-index: 4; margin: 0; justify-content: space-between; align-items: flex-end; font-size: var(--h1); line-height: .88; letter-spacing: -.05em; font-weight: 520; white-space: nowrap; }
html[data-tag="3"] .tagcv, html[data-tag="5"] .tagcv { display: block; position: absolute; left: 0; width: 100%; z-index: 4; pointer-events: none; }
html[data-tag="3"] .tagcv { top: calc(50% + var(--drop, 12vw) + .4rem); height: 4.6rem; }
html[data-tag="5"] .tagcv { bottom: 0; height: 15.5vw; }
html[data-tag="5"] .hero .backdrop video { filter: grayscale(1) contrast(1.2) brightness(.42); }
html[data-tag="4"] .hero .tag { font-size: 1.7rem; letter-spacing: -.01em; top: calc(50% + var(--drop, 12vw) + 1.2rem); }


/* phones: no live filters on moving pictures, still grain (the frames keep their grade in the files) */
html.touch video, html.touch .pix > canvas, html.touch .pix > img, html.touch .card > img { filter: none !important; }
html.touch .grain { animation: none; }
html.touch .hero .tag, html.touch .tagwide { will-change: opacity; }

/* nav: nothing at the top; it arrives once you scroll */
.nav-btn { visibility: hidden; }
.scrollbar { display: none !important; }

/* B: line screen */
.screen { --pitch: .45rem;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0, #000 calc(var(--p) * var(--pitch)), transparent calc(var(--p) * var(--pitch)), transparent var(--pitch));
  mask-image: repeating-linear-gradient(90deg, #000 0, #000 calc(var(--p) * var(--pitch)), transparent calc(var(--p) * var(--pitch)), transparent var(--pitch)); }

/* ---------- frames: they arrive as pixels and resolve into colour, with a fine screen left on top ---------- */
figure { margin: 0; }
.pix { position: relative; overflow: hidden; background: rgba(var(--fg-rgb), .06); }
.pix > canvas, .pix > video, .pix > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pix > video, .pix > img { filter: var(--col); opacity: 0; }
.pix > canvas { image-rendering: pixelated; filter: var(--col); }
.pix::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, transparent 0 42%, rgba(0, 0, 0, .34) 48%) 0 0 / 3px 3px; }
.t:focus-visible, .slot:focus-visible { outline: var(--stroke) solid var(--fg); outline-offset: .3rem; }

/* ---------- one block: A's words down the line, B's sentence, frames floating on both sides ---------- */
.flow { position: relative; padding: 8rem 0 3rem; }
.flow > .grid { position: relative; z-index: 2; }
.flow .g-name { margin-top: 0; }
.flow .lede { margin-top: 3.2rem; }
.flow .say { margin-top: 12rem; row-gap: 0; }
.gal { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gal .t { position: absolute; pointer-events: auto; cursor: crosshair; will-change: transform; }
.gal .t .pix { aspect-ratio: var(--ar, 16 / 9); }
.gal .g1 { left: var(--pad); top: 2%; width: 12rem; }
.gal .g2 { right: var(--pad); top: 9%; width: 19rem; }
.gal .g3 { left: 7rem; top: 27%; width: 20rem; }
.gal .g4 { right: 9rem; top: 34%; width: 10rem; }
.gal .g5 { left: var(--pad); top: 50%; width: 24rem; }
.gal .g6 { right: var(--pad); top: 59%; width: 16rem; }
.gal .g7 { left: 15rem; top: 70%; width: 11rem; }
.gal .g8 { right: 6rem; top: 84%; width: 22rem; }

/* ---------- work: pinned. the globe opens into a wall that fits the screen and stays ---------- */
.work { position: relative; height: 230vh; }
.wpin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.work-head { position: absolute; left: 0; right: 0; top: 4.2rem; z-index: 3; height: auto; }
.cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.card { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 50% 50%; background: #000; will-change: transform, opacity; overflow: hidden; }
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--mono); }
.card.real { background: transparent; }
.card.real .pix { position: absolute; inset: 0; }
.wall { position: absolute; left: 0; right: 0; top: var(--wt, 12rem); z-index: 2; display: grid; grid-template-columns: repeat(var(--nc, 4), var(--tw, 20rem)); justify-content: center; column-gap: var(--gap); row-gap: var(--rg, 1rem); }
.slot { position: relative; display: block; text-align: left; cursor: pointer; width: var(--tw, 20rem); }
.slot:nth-child(even) { top: var(--st, 0px); }
.slot::before { content: ""; display: block; aspect-ratio: 16 / 9; }
.slot .name { display: block; padding-top: .45rem; opacity: 0; transition: opacity .6s var(--out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall.on .slot .name { opacity: 1; }
.wall:not(.on) .slot { pointer-events: none; }

/* C: graph paper, neutral */
.paper { background-image: linear-gradient(rgba(var(--fg-rgb), .08) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fg-rgb), .08) 1px, transparent 1px); background-size: 1.4062rem 1.4062rem; }

/* the studio: full screen textured film behind, a line, a strip of frames */
.studio { position: relative; min-height: 100vh; padding: 9rem 0 9rem; overflow: hidden; }
.studio > .grid, .studio .strip { position: relative; z-index: 1; }
.st-line { font-size: var(--h1); }
.strip { display: grid; grid-template-columns: repeat(8, var(--cell)); column-gap: var(--gap); padding: 0 var(--pad); margin-top: 5rem; align-items: start; }
.strip .t { cursor: crosshair; }
.strip .t .pix { aspect-ratio: var(--ar, 16 / 9); }
.strip .t:nth-child(1) { grid-column: 1 / span 3; margin-top: 4rem; }
.strip .t:nth-child(2) { grid-column: 4 / span 1; }
.strip .t:nth-child(3) { grid-column: 5 / span 3; margin-top: 9rem; }
.strip .t:nth-child(4) { grid-column: 8 / span 1; margin-top: 2rem; }

/* we make + the ai cloud */
.make { position: relative; height: 100vh; height: 100svh; min-height: 40rem; overflow: hidden; }
#ai { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; cursor: crosshair; }
.make .xl { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 2; pointer-events: none; }
.xl { margin: 0; font-size: 17rem; line-height: .82; letter-spacing: -.062em; font-weight: 520; text-align: center; white-space: nowrap; }

.make .backdrop img { filter: grayscale(1) contrast(1.2) brightness(.32); }

/* the end on pale yellow: only the address */
.contact { position: relative; padding: 0; }
.cpin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.big { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: block; padding: 0 var(--pad); font-size: 13.9rem; line-height: .86; letter-spacing: -.06em; font-weight: 520; white-space: nowrap; text-align: center; }
.big .ch { display: inline-block; font-variation-settings: "wght" var(--w, 520), "ROND" 60; font-weight: normal; transition: none; }

/* ---------- the player: a stain opens from the frame, the picture comes out of pixels, the pointer is the control ---------- */
.pl { position: fixed; inset: 0; z-index: 97; visibility: hidden; background: #0c0c0b; color: #dddcd6; clip-path: circle(0 at 50% 50%); --fg-rgb: 221, 220, 214; }
.pl-stage { position: absolute; inset: 4.4rem var(--pad) 4.6rem; cursor: none; }
.pl-stage video, .pl-stage img, .pl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pl-stage video, .pl-stage img { filter: var(--col); opacity: 0; }
.pl-pix { image-rendering: pixelated; }
.pl-cursor { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; display: flex; align-items: center; gap: .45rem; padding: .3rem .6rem; border-radius: 1.1rem; background: #dddcd6; color: #111110; opacity: 0; transform: translate(-50%, -50%); white-space: nowrap; }
.pl-cursor i { width: .45rem; height: .45rem; border-radius: 50%; background: #111110; }
.pl-cursor.paused i { border-radius: 0; width: 0; height: 0; background: none; border-left: .45rem solid #111110; border-top: .28rem solid transparent; border-bottom: .28rem solid transparent; }
.pl-name { position: absolute; left: var(--pad); bottom: 1.6rem; opacity: 0; }
.pl-bar { position: absolute; left: calc(var(--pad) + 2 * var(--cell) + 2 * var(--gap)); right: calc(var(--pad) + 2 * var(--cell) + 2 * var(--gap)); bottom: 1.75rem; height: 9px; width: auto; opacity: 0; cursor: pointer; }
.pl-sound { position: absolute; right: var(--pad); bottom: 1.6rem; opacity: 0; }
.pl-x { position: absolute; right: var(--pad); top: var(--pad); padding: .2778rem .5556rem; border-radius: 1.1111rem; background: #dddcd6; color: #111110; opacity: 0; }
.pl.still .pl-bar, .pl.still .pl-sound, .pl.still .pl-cursor { display: none; }
.pl.still .pl-stage { cursor: default; }

@media (max-width: 991px) {
  .hero .tag { font-size: 1.35rem; }
  html[data-tag="1"] .hero .tag { font-size: 3.4rem; }
  html[data-tag="2"] .tagwide { font-size: 4.6rem; }
  html[data-tag="3"] .tagcv { height: 5.2rem; }
  html[data-tag="4"] .hero .tag { font-size: 2rem; }
  .datarow { grid-template-columns: 1fr; row-gap: .35rem; } .datarow .p1:nth-child(n) { text-align: left; }
  html[data-hero="data"] .hero .count { bottom: 6.6rem; }
  .orbit i { width: 16rem; }
  .flow { padding-top: 6rem; }
  .gal .g1 { width: 9rem; top: 1%; left: auto; right: var(--pad); }
  .gal .g2 { width: 15rem; top: 13%; }
  .gal .g3 { width: 15rem; top: 28%; left: var(--pad); }
  .gal .g4 { width: 8rem; right: var(--pad); top: 41%; }
  .gal .g5 { width: 18rem; top: 54%; }
  .gal .g6 { width: 13rem; top: 64%; }
  .gal .g7 { width: 9rem; left: var(--pad); top: 75%; }
  .gal .g8 { width: 16rem; right: var(--pad); top: 90%; }
  .work-head { top: 4.4rem; }
  .st-line { font-size: 4.2rem; }
  .strip { grid-template-columns: repeat(4, var(--cell)); row-gap: 1.4rem; }
  .strip .t:nth-child(1) { grid-column: 1 / span 3; margin-top: 0; } .strip .t:nth-child(2) { grid-column: 4 / span 1; }
  .strip .t:nth-child(3) { grid-column: 2 / span 3; margin-top: 0; } .strip .t:nth-child(4) { grid-column: 1 / span 1; margin-top: -3rem; }
  .xl { font-size: 9.6rem; }

  .big { font-size: 7.1rem; }
  .pl-stage { inset: 5rem var(--pad) 7rem; cursor: default; }
  .pl-cursor { display: none; }
  .pl-bar { left: var(--pad); right: var(--pad); bottom: 4.4rem; }
  .pl-x { padding: .45rem .9rem; border-radius: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .work { height: auto; }
  .wpin { position: relative; height: auto; overflow: visible; padding: 8rem 0 6rem; }
  .work-head { position: relative; top: 0; margin-bottom: 3rem; }
  .wall { position: relative; top: 0; }
  .cards { display: none; }
  .slot::before { background: var(--thumb) center / cover no-repeat; filter: var(--col); }
  .wall .slot .name { opacity: 1; }
  .wall:not(.on) .slot { pointer-events: auto; }
}
