/* Shares its look with the generator (/app/): warm paper, black ink, Archivo extra-wide wordmark,
   Instrument Sans text, and an 8-column hairline grid over the page. */
:root {
  --light: #efefee; --dark: #0e0e0e; --ink: #0f0f0f; --grey: #8b8b88; --line: rgba(0,0,0,.09);
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mark: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --cols: 8;
}
* { box-sizing: border-box; }
html { background: var(--light); scroll-behavior: smooth; }
body { margin: 0; background: var(--light); color: var(--ink); font: 14px/1.45 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
h2, h3 { font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.mark { font-family: var(--mark); font-stretch: 125%; text-transform: uppercase; }
.mark b { font-weight: 820; }

/* ---------- chrome ---------- */
.gridlines { position: fixed; inset: 0; z-index: 4; pointer-events: none; display: grid; grid-template-columns: repeat(var(--cols), 1fr); mix-blend-mode: difference; }
.gridlines i:nth-child(n+2) { border-left: 1px solid #262626; }
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(var(--cols), 1fr); color: #fff; mix-blend-mode: difference; }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.28); }
.hdr a { position: relative; padding: 10px 12px 12px; font-size: 12px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.hdr a::before { content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 6px; background: #fff; }
.hdr .logo { font-size: 11px; font-weight: 400; }
.hdr .logo::before { display: none; }
.hdr .go { grid-column: var(--cols); }
.arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.1,1); }
a:hover .arrow { transform: translate(3px, -3px); }
.cursor { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: width .25s, height .25s, margin .25s; will-change: transform; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (pointer: coarse) { .cursor { display: none; } }
.ticker { position: fixed; right: 12px; bottom: 10px; z-index: 21; color: #fff; mix-blend-mode: difference; font-size: 11px; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: auto 1fr auto; overflow: hidden; }
.word { grid-column: 1 / -1; padding: 30px .8vw 0; font-size: 11.3vw; line-height: .8; letter-spacing: -.035em; white-space: nowrap; font-weight: 400; display: flex; justify-content: space-between; }
.word span { display: inline-block; transform: translateY(105%); animation: up 1s cubic-bezier(.2,.8,.1,1) forwards; animation-delay: calc(var(--i) * 45ms + 150ms); }
.word-mask { grid-column: 1 / -1; overflow: hidden; }
@keyframes up { to { transform: none; } }
.stage { position: absolute; left: 50%; top: 56%; width: min(52vw, 66vh); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.stage video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.stage video.on { opacity: 1; }
.stage-cap { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); font-size: 12px; color: var(--grey); white-space: nowrap; display: flex; gap: 14px; }
.stage-cap b { color: var(--ink); font-weight: 500; }
.hero-go { grid-column: 2 / span 2; grid-row: 2; align-self: center; position: relative; z-index: 2; display: block; background: var(--dark); color: #fff; padding: 12px 14px 16px; margin-top: -8vh; }
.hero-go small { display: flex; justify-content: space-between; font-size: 10.5px; color: #9a9a97; margin-bottom: 26px; }
.hero-go b { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--mark); font-stretch: 125%; font-weight: 820; font-size: clamp(24px, 2.7vw, 46px); line-height: .9; letter-spacing: -.02em; }
.hero-go:hover { background: #222; }
.lede { grid-column: 6 / span 3; grid-row: 2; align-self: center; position: relative; z-index: 2; padding: 0 12px; margin-top: -8vh; font-size: clamp(20px, 1.85vw, 30px); line-height: 1.1; letter-spacing: -.03em; }
.lede em { font-style: normal; color: var(--grey); }
.scroll { grid-column: 4 / span 2; grid-row: 3; text-align: center; padding: 0 0 12px; font-size: 11px; color: var(--grey); }

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: repeat(var(--cols), 1fr); padding: 18vh 0 16vh; border-top: 1px solid var(--line); }
.statement h2 { grid-column: 2 / span 6; padding: 0 12px; font-size: clamp(30px, 4.4vw, 76px); line-height: 1; }
.statement h2 .dim { color: #b3b3b0; }
.statement .chips { grid-column: 2 / span 6; padding: 34px 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.statement .chips span { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; }

/* ---------- library ---------- */
.library { border-top: 1px solid var(--line); }
.lib-head { display: grid; grid-template-columns: repeat(var(--cols), 1fr); align-items: end; padding: 40px 0 18px; position: sticky; top: 34px; z-index: 6; background: var(--light); }
.lib-head h2 { grid-column: 1 / span 3; padding: 0 12px; font-family: var(--mark); font-stretch: 125%; text-transform: uppercase; font-weight: 820; font-size: clamp(30px, 4vw, 64px); line-height: .85; letter-spacing: -.03em; }
.lib-head h2 sup { font-family: var(--font); font-stretch: 100%; font-weight: 500; font-size: 13px; letter-spacing: 0; vertical-align: top; margin-left: 6px; }
.filters { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; padding: 0 12px; }
.filters button { font-size: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; transition: background .2s, color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button i { font-style: normal; opacity: .5; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.card { position: relative; display: block; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--light); overflow: hidden; }
.card:nth-child(4n) { border-right: 0; }
.card .media { aspect-ratio: 1; position: relative; }
.card video, .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.8,.1,1); }
.card:hover video, .card:hover img { transform: scale(1.04); }
.card .meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px 12px; font-size: 13px; }
.card .meta b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta small { color: var(--grey); font-size: 11px; flex: none; }
.card .open { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 500; background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 99px; opacity: 0; transform: translateY(-4px); transition: .25s; }
.card:hover .open, .card:focus-visible .open { opacity: 1; transform: none; }
.card .num { position: absolute; top: 12px; left: 12px; font-size: 11px; color: var(--grey); font-variant-numeric: tabular-nums; }
.card.hide { display: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.1,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- how ---------- */
.how { background: var(--dark); color: #fff; display: grid; grid-template-columns: repeat(var(--cols), 1fr); padding: 16vh 0 14vh; row-gap: 72px; }
.how h2 { grid-column: 1 / span 4; padding: 0 12px; font-size: clamp(30px, 3.8vw, 64px); line-height: 1; }
.how .tech { grid-column: 6 / span 3; padding: 0 12px; align-self: end; font-size: 12px; color: #8f8f8c; line-height: 1.6; }
.how .tech b { color: #fff; font-weight: 500; }
.step { grid-column: span 2; padding: 0 12px; }
.step:first-of-type { grid-column: 1 / span 2; }
.step .n { font-family: var(--mark); font-stretch: 125%; font-weight: 820; font-size: 56px; line-height: 1; letter-spacing: -.03em; margin-bottom: 22px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: #a3a3a0; font-size: 14px; max-width: 32ch; }
.step:nth-of-type(4) { grid-column: 7 / span 2; }
.how .go-dark { grid-column: 7 / span 2; }

/* ---------- final call ---------- */
.final { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.final a { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; padding: 22vh 1vw 2.5vw; font-family: var(--mark); font-stretch: 125%; font-weight: 820; text-transform: uppercase; font-size: 8.4vw; line-height: .82; letter-spacing: -.035em; transition: background .3s, color .3s; }
.final a:hover { background: var(--dark); color: #fff; }
.final small { display: block; font-family: var(--font); font-stretch: 100%; text-transform: none; font-weight: 400; font-size: 13px; letter-spacing: 0; margin-bottom: 2vw; color: var(--grey); }
footer { display: grid; grid-template-columns: repeat(var(--cols), 1fr); border-top: 1px solid var(--line); font-size: 12px; }
footer > * { padding: 12px; }
footer .r { grid-column: 7 / span 2; text-align: right; color: var(--grey); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  :root { --cols: 4; }
  .hdr a:nth-child(n+3):not(.go) { display: none; }
  .hdr .go { grid-column: 4; }
  .word { font-size: 10.4vw; padding-top: 46px; }
  .stage { width: 86vw; top: 50%; }
  .hero-go { grid-column: 1 / span 2; grid-row: 3; align-self: end; margin: 0 0 40px 12px; }
  .lede { grid-column: 1 / -1; grid-row: 2; align-self: start; margin-top: 22px; }
  .scroll { display: none; }
  .statement h2, .statement .chips { grid-column: 1 / -1; }
  .lib-head h2 { grid-column: 1 / -1; margin-bottom: 14px; }
  .filters { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(4n) { border-right: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .how h2, .how .tech { grid-column: 1 / -1; }
  .step, .step:first-of-type, .step:nth-of-type(4) { grid-column: 1 / -1; }
  .final a { font-size: 10vw; }
  footer .r { grid-column: 3 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .word span { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- studio status (the generator runs on the studio PC) ---------- */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8b8b88; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: #3fbf6a; box-shadow: 0 0 0 3px rgba(63,191,106,.18); }
.dot.off { background: #e0563b; }
  background: var(--dark); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 13px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---------- landing: selected works + link to the gallery ---------- */
.more { display: grid; grid-template-columns: repeat(var(--cols), 1fr); border-bottom: 1px solid var(--line); }
.more a { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 26px 12px; font-family: var(--mark); font-stretch: 125%; font-weight: 820; text-transform: uppercase; font-size: clamp(22px, 3vw, 48px); letter-spacing: -.03em; line-height: 1; transition: background .3s, color .3s; }
.more a small { font-family: var(--font); font-stretch: 100%; text-transform: none; font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--grey); margin-left: 14px; }
.more a:hover { background: var(--dark); color: #fff; }

/* ---------- gallery page ---------- */
.g-hero { display: grid; grid-template-columns: repeat(var(--cols), 1fr); padding: 120px 0 40px; }
.g-hero h1 { grid-column: 1 / -1; padding: 0 .8vw; font-family: var(--mark); font-stretch: 125%; text-transform: uppercase; font-weight: 820; font-size: 11.3vw; line-height: .8; letter-spacing: -.035em; }
.g-hero p { grid-column: 6 / span 3; padding: 34px 12px 0; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.15; letter-spacing: -.03em; }
.g-hero p em { font-style: normal; color: var(--grey); }
.search { grid-column: 1 / span 3; padding: 34px 12px 0; align-self: end; }
.search input { width: 100%; font: inherit; font-size: 14px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; outline: none; color: var(--ink); }
.empty { display: none; padding: 60px 12px; color: var(--grey); }
@media (max-width: 900px) {
  .g-hero { padding-top: 90px; }
  .g-hero h1 { font-size: 13vw; }
  .g-hero p, .search { grid-column: 1 / -1; }
}
.filters .chip { font-size: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s; }
.filters .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters .chip i { font-style: normal; opacity: .5; margin-left: 4px; }
