/* Negative Lab Color: a color house. Concept: the film negative.
   Warm black, paper white, and the orange of the color negative's mask as the only accent.
   Film edge markings (frame numbers, edge codes, timecode) are the ornament, set in mono. */
:root {
  --ink: #0b0a09;          /* warm black, the room */
  --ink-2: #141210;        /* raised surfaces */
  --line: #2a2622;         /* hairlines */
  --paper: #ece6dc;        /* text, the print */
  --dim: #8f877c;          /* secondary text */
  --mask: #b8afa3;         /* accent: a quiet warm grey (the orange was dropped, 25/11) */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.55 var(--text); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1.5px solid var(--mask); outline-offset: 4px; }
::selection { background: var(--mask); color: var(--ink); }
.wrap { padding-left: var(--gut); padding-right: var(--gut-r); max-width: 1440px; margin: 0 auto; }
.mono { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.mask { color: var(--mask); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.top { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20; mix-blend-mode: difference; color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font: 700 15px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; display: flex; gap: 8px; align-items: baseline; }
.brand small { font: 500 10px var(--mono); letter-spacing: .2em; opacity: .7; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 8px 0; }
.top .wrap { gap: 28px; }
.brand { margin-right: auto; }
.lang { display: flex; align-items: center; gap: 6px; font: 500 12px var(--mono); letter-spacing: .12em; }
.lang a { opacity: .45; padding: 6px 2px; transition: opacity .2s; }
.lang a:hover, .lang a[aria-current="true"] { opacity: 1; }
.lang span { opacity: .35; }
@media (max-width: 760px) {
  .top .wrap { gap: 20px; }
  .lang { order: 1; position: relative; z-index: 2; }
  .menu-btn { order: 2; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 0 var(--gut); background: var(--ink); font: 600 44px/1.1 var(--display); font-stretch: 112%; opacity: 0; pointer-events: none; transition: opacity .3s; mix-blend-mode: normal; color: var(--paper); }
  .nav.open { opacity: 1; pointer-events: auto; }
  .menu-btn { display: block; position: relative; z-index: 2; }
}

/* film edge strip: the ornament */
.edge { display: flex; gap: 38px; white-space: nowrap; overflow: hidden; color: var(--mask); opacity: .85; }
.edge span { flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; border: 1px solid currentColor; border-radius: 999px; font: 500 14px var(--text); background: transparent; color: inherit; cursor: pointer; transition: background .25s, color .25s; }
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid:hover { background: var(--mask); border-color: var(--mask); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mask); }

/* home: the reel fills the screen */
.reel { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.reel .vid { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); pointer-events: none; border: 0; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 10 9 / .55) 0%, rgb(11 10 9 / 0) 28%, rgb(11 10 9 / 0) 55%, rgb(11 10 9 / .92) 100%); }
.reel .over { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: max(34px, env(safe-area-inset-bottom, 0px)); }
.reel .over .wrap { display: grid; gap: 26px; }
.word { font: 700 clamp(20px, 2.3vw, 34px)/1 var(--display); font-stretch: 125%; letter-spacing: .01em; text-transform: uppercase; }
.word em { color: inherit; -webkit-text-stroke: 0; font-weight: 300; }
.reel .row p { font-size: 14px !important; max-width: 30em !important; color: rgb(236 230 220 / .78) !important; line-height: 1.5; }
.reel .over .wrap { gap: 14px !important; }
/* home: name and line centered at the bottom of the reel */
.reel .over .wrap { justify-items: center; text-align: center; }
.reel .row { justify-content: center !important; }
.reel .row p { margin: 0 auto; }
.reel .edge { justify-content: center; width: 100%; }
/* plain text links instead of pill buttons */
.reel .actions { gap: 26px !important; }
.tlink { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); padding-bottom: 4px; border-bottom: 1px solid rgb(236 230 220 / .45); transition: border-color .25s, opacity .25s; }
.tlink:hover { border-color: var(--paper); }
.reel .edge { color: var(--paper); opacity: .35; }
.tc b { color: var(--paper) !important; }
/* home: only the reel, one screen, no scroll */
body.home { height: 100%; overflow: hidden; }
body.home .reel { height: 100vh; height: 100dvh; }
.word em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.reel .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 22px; }
.reel .row p { max-width: 34em; color: var(--paper); font-size: clamp(16px, 1.5vw, 19px); }
.reel .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tc { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 84px); right: var(--gut-r); text-align: right; color: var(--paper); opacity: .8; }
.tc b { display: block; font: 500 13px var(--mono); letter-spacing: .08em; color: var(--mask); }

/* sections */
section { padding-block: clamp(72px, 10vw, 150px); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head h2 { font-size: clamp(34px, 5vw, 72px); font-stretch: 112%; line-height: .95; text-transform: uppercase; letter-spacing: -.03em; }
.head .mono { color: var(--dim); }
.lead { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.3; max-width: 28em; font-weight: 400; letter-spacing: -.01em; }
.lead .dim { color: var(--dim); }

/* work grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (min-width: 861px) and (max-width: 1100px) { .grid[data-main] .item { grid-column: span 6; } }
.item { position: relative; grid-column: span 4; cursor: pointer; background: var(--ink-2); overflow: hidden; border: 0; padding: 0; color: inherit; text-align: left; }
.item.w6 { grid-column: span 6; } .item.w8 { grid-column: span 8; } .item.w12 { grid-column: span 12; }
.item .ph { aspect-ratio: 16 / 9; overflow: hidden; }
.item.w12 .ph { aspect-ratio: 2.39 / 1; }
.item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.item:hover img { transform: scale(1.07); }
.item .cap { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 4px; align-items: baseline; }
.item .cap h3 { font-size: 16px; font-weight: 500; letter-spacing: -.005em; }
.item .cap .mono { color: var(--dim); }
.item .fr { position: absolute; top: 10px; left: 12px; color: var(--paper); text-shadow: 0 1px 6px rgb(0 0 0 / .6); opacity: 0; transition: opacity .3s; }
.item:hover .fr { opacity: 1; }
@media (max-width: 860px) { .item, .item.w6, .item.w8 { grid-column: span 12; } }

/* services */
.svc { border-top: 1px solid var(--line); }
.svc li { list-style: none; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc ul { margin: 0; padding: 0; }
.svc .mono { color: var(--mask); padding-top: 6px; }
.svc h3 { font-size: clamp(22px, 2.6vw, 34px); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.svc p { color: var(--dim); max-width: 36em; }
@media (max-width: 760px) { .svc li { grid-template-columns: 1fr; gap: 10px; } }

/* services: big title, one line, and a picture for each */
.svc2 { border-top: 1px solid var(--line); }
.svc2 article { display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: baseline; padding: clamp(30px, 3.5vw, 50px) 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .svc2 article { grid-template-columns: 1fr; gap: 10px; } }
.svc2 .txt { display: grid; gap: 14px; align-content: center; min-width: 0; }
.svc2 .num { font: 400 14px var(--text); color: var(--dim); }
.svc2 h2 { font-size: clamp(34px, 5vw, 76px); font-stretch: 112%; line-height: .95; text-transform: uppercase; letter-spacing: -.03em; }
.svc2 p { font-size: clamp(17px, 1.5vw, 21px); color: var(--dim); max-width: 26em; }
.svc2 .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.svc2 .pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.svc2 article:hover .pic img { transform: scale(1.06); }
@media (max-width: 760px) { .svc2 article { grid-template-columns: 1fr; } .svc2 .pic { order: -1; } }

/* about */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split > * { min-width: 0; }
.split .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.split .ph img { width: 100%; height: 100%; object-fit: cover; }
.split .left { display: grid; gap: 34px; align-content: start; }
.portrait { margin: 0; display: flex; align-items: center; gap: 20px; }
.portrait img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; }
.portrait figcaption { display: grid; gap: 4px; }
.portrait b { font: 500 18px var(--text); }
.portrait span { font-size: 14px; color: var(--dim); }
.prose { display: grid; gap: 18px; color: var(--dim); font-size: 17px; max-width: 38em; }
.prose strong { color: var(--paper); font-weight: 500; }
.ways { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ways li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; align-items: baseline; }
.ways .mono { color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.facts b { font: 500 17px var(--text); overflow-wrap: anywhere; }
.facts .mono { color: var(--dim); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .ph { aspect-ratio: 16 / 10; } }

/* contact */
.form { display: grid; gap: 16px; max-width: 760px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { color: var(--dim); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); font: 400 18px var(--text); padding: 10px 0 12px; border-radius: 0; transition: border-color .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mask); }
.sent { color: var(--mask); min-height: 1.4em; }
.direct { display: grid; gap: 22px; align-content: start; }
.direct a.big { font: 600 clamp(22px, 3vw, 40px)/1.1 var(--display); font-stretch: 112%; letter-spacing: -.02em; word-break: break-word; }
.direct a.big:hover { color: var(--mask); }

/* showreel page: the reel, large, with sound and controls */
.player { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100vh - 120px) * 16 / 9)); max-width: 100%; margin: 0 auto; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* page title band (inner pages) */
.ptitle { padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: clamp(36px, 5vw, 70px); }
.ptitle h1 { font-size: clamp(54px, 11vw, 176px); line-height: .84; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.045em; }
.ptitle .mono { color: var(--dim); margin-bottom: 18px; display: block; }
.ptitle { text-align: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 26px max(26px, env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: grid; gap: 30px; }
footer .big { font: 700 clamp(40px, 9vw, 140px)/.85 var(--display); font-stretch: 125%; letter-spacing: -.045em; text-transform: uppercase; }
footer .big a:hover { color: var(--mask); }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--dim); }

/* lightbox and reel player */
.lb { position: fixed; inset: 0; z-index: 50; background: rgb(11 10 9 / .96); display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) var(--gut-r) max(20px, env(safe-area-inset-bottom, 0px)) var(--gut); }
.lb[hidden] { display: none; }
.lb .box { width: min(1400px, 100%, calc((100vh - 170px) * 16 / 9)); display: grid; gap: 14px; }
.lb .media { aspect-ratio: 16 / 9; background: #000; position: relative; }
.lb .media img, .lb .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; }
.lb .bar { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.lb .bar h3 { font-size: 18px; font-weight: 500; }
.lb .nav2 { display: inline-flex; align-items: center; gap: 14px; }
.lb .nav2[hidden] { display: none; }
.lb .arr { background: none; border: 1px solid var(--line); color: var(--paper); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: border-color .2s; }
.lb .arr:hover { border-color: var(--paper); }
.lb .media img { transition: opacity .25s; }
/* category chips on the Work page */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 34px; }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
/* category tabs: plain words, the chosen one underlined */
.filters { gap: 10px; margin-bottom: 34px; }
.chip { background: none; border: 1px solid #3a3631; color: var(--paper); padding: 10px 20px; border-radius: 999px; font: 500 15px var(--text); letter-spacing: -.005em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: #6a645c; }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* category under each card: quiet text, not a label */
.item .cap .kind { font-size: 13px; color: var(--dim); }
/* vertical films in the lightbox */
.lb .box:has(.media.vert) { width: min(100%, calc((100vh - 170px) * 9 / 16)); }
.lb .media.vert { aspect-ratio: 9 / 16; width: 100%; height: auto; }
.lb .x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); right: var(--gut-r); }

/* motion layer (motion.js): grain, curtain, split letters */
.grain { position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--ink); pointer-events: none; transform: scaleY(1); transform-origin: top; animation: curOpen .8s cubic-bezier(.76, 0, .24, 1) .05s forwards; }
@keyframes curOpen { to { transform: scaleY(0); } }
@keyframes curClose { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.curtain.closing { transform-origin: bottom; animation: curClose .5s cubic-bezier(.76, 0, .24, 1) forwards; }
.curtain.open { animation: none; transform: scaleY(0); }
.curtain.off { display: none; }
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.ch > span { display: inline-block; will-change: transform; }
.svc2 h2 { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.svc2 article:hover h2 { transform: translateX(14px); }
.svc2 .num { transition: color .3s; }
.svc2 article:hover .num { color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* reveal on scroll */
.rv { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .item img { transition: none; } }
