/* One family (Archivo) used across its width axis: expanded for headings, normal for text, condensed for meta.
   Paper-grey page, ink text, one cobalt accent for interaction only; the work supplies the colour. */
:root {
  --paper: #EEEEEA;
  --paper-2: #E4E4DF;
  --ink: #141414;
  --muted: #66665F;
  --line: #CFCFC8;
  --accent: #2B3BFF;
  --night: #0E0E0E;
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --max: 1360px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.55; font-variation-settings: "wdth" 100; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2 { font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }

/* top bar */
.bar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut) 18px; color: #fff; mix-blend-mode: difference; }
.name { font-weight: 700; text-decoration: none; font-variation-settings: "wdth" 112; letter-spacing: -0.01em; }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
.bar nav a:hover { background-size: 100% 1px; }
@media (max-width: 560px) { .bar nav a:not(:first-child):not(:last-child) { display: none; } }

/* hero: the reel itself */
.hero { position: relative; min-height: 100svh; background: var(--night); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.hero-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(28px, 6vh, 64px); display: grid; gap: 26px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 96px); line-height: .98; max-width: 14ch; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.play { display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px 13px 16px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px;
  font-weight: 600; transition: background .2s, color .2s, transform .12s; }
.play:hover { background: #fff; color: var(--ink); }
.play:active { transform: scale(.97); }
.play-dot { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hero-meta { margin: 0; color: rgba(255,255,255,.78); font-variation-settings: "wdth" 85; font-size: 15px; }
.hero-copy { animation: enter .9s cubic-bezier(.2,.7,.2,1) both .15s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* selected tiles: asymmetric, the work at size */
.selected { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vh, 110px) var(--gut); display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr; }
.tile { position: relative; overflow: hidden; border-radius: 4px; background: var(--night); text-align: left; }
.tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile:hover video { transform: scale(1.025); }
.t-series { grid-column: 1 / -1; aspect-ratio: 21 / 9; background: radial-gradient(120% 90% at 50% 40%, #2B0A5C, #0E0326 70%); }
.t-wide { aspect-ratio: 16 / 9; }
.phones { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2%; padding: 4% 9%; align-items: center; }
.phones video { aspect-ratio: 9 / 16; height: auto; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.phones video:nth-child(even) { transform: translateY(5%); }
.tile:hover .phones video { transform: translateY(-2%); }
.tile:hover .phones video:nth-child(even) { transform: translateY(3%); }
.tile-label { position: absolute; left: 14px; bottom: 12px; right: 14px; color: #fff; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: baseline;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.tile-label i { font-style: normal; font-weight: 400; opacity: .8; font-variation-settings: "wdth" 85; }
.tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; transform: none; }
@media (hover: none) { .tile-label { opacity: 1; transform: none; } }
@media (max-width: 820px) { .selected { grid-template-columns: 1fr; } .t-series { aspect-ratio: 4 / 3; } .phones { grid-template-columns: repeat(3, 1fr); padding: 6%; } .phones video:nth-child(n+4) { display: none; } }

/* index list */
.index { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vh, 90px) var(--gut) clamp(56px, 9vh, 110px); }
.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.index h2 { font-size: clamp(30px, 4vw, 52px); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.filters button { color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.filters sup { font-size: 11px; font-variant-numeric: tabular-nums; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); }
.row button { width: 100%; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 90px 60px; gap: 20px; align-items: baseline; padding: 17px 0; text-align: left; }
.row .t { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; font-variation-settings: "wdth" 110; letter-spacing: -0.01em; transition: color .2s, transform .25s; }
.row .k, .row .f, .row .d { color: var(--muted); font-size: 15px; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; }
.row .d { text-align: right; }
.row button:hover .t { color: var(--accent); transform: translateX(6px); }
@media (max-width: 680px) { .row button { grid-template-columns: 1fr auto; gap: 2px 14px; } .row .k { grid-column: 1; grid-row: 2; } .row .f { display: none; } .row .d { grid-row: 1 / span 2; align-self: center; } }

/* hover preview that follows the pointer */
.peek { position: fixed; z-index: 30; left: 0; top: 0; width: 300px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.92);
  transition: opacity .18s, transform .18s; border-radius: 4px; overflow: hidden; background: var(--night); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek video { width: 100%; height: auto; }
@media (hover: none) { .peek { display: none; } }

/* series */
.series { background: var(--night); color: #fff; }
.series > * { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.series-copy { padding-top: clamp(64px, 10vh, 120px); display: grid; gap: 22px; grid-template-columns: 1fr 1fr; align-items: end; }
.series h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.02; }
.series-copy p { margin: 0; color: rgba(255,255,255,.72); max-width: 56ch; }
.beats { grid-column: 1 / -1; list-style: none; margin: 18px 0 0; padding: 0; display: flex; border-top: 1px solid rgba(255,255,255,.25); }
.beats li { flex: 0 0 var(--w); padding: 12px 12px 0 0; display: grid; gap: 2px; border-left: 1px solid rgba(255,255,255,.25); padding-left: 10px; }
.beats b { font-weight: 600; font-size: 15px; }
.beats span { font-size: 13px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 85; }
.series-phones { padding-top: 40px; padding-bottom: clamp(64px, 10vh, 120px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ph { display: grid; gap: 10px; text-align: left; }
.ph video { aspect-ratio: 9 / 16; width: 100%; height: auto; object-fit: cover; border-radius: 10px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.ph:hover video { transform: translateY(-4px); }
.ph span { font-size: 14px; color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .series-copy { grid-template-columns: 1fr; } .series-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .series-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .beats { flex-wrap: wrap; } .beats li { flex-basis: 50%; } }

/* about */
.about { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vh, 120px) var(--gut); display: grid; gap: 30px; }
.about h2 { font-size: clamp(30px, 4vw, 52px); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 70px; }
.about-lead { margin: 0; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; max-width: 30ch; font-variation-settings: "wdth" 104; }
.about-list { margin: 0; display: grid; gap: 0; }
.about-list div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.about-list dt { font-weight: 600; }
.about-list dd { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-list div { grid-template-columns: 1fr; gap: 2px; } }

/* contact */
.contact { background: var(--paper-2); padding: clamp(64px, 12vh, 140px) var(--gut); }
.contact-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 18px; justify-items: start; }
.contact h2 { font-size: clamp(34px, 5.4vw, 80px); line-height: 1; max-width: 16ch; }
.contact-line { margin: 0; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-links a { padding: 12px 20px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; transition: background .2s, color .2s; }
.contact-links a:hover { background: var(--ink); color: var(--paper); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; padding: 22px var(--gut) calc(22px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--muted); }

/* lightbox */
.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; background: var(--night); color: #fff; border-radius: 6px; }
.lightbox::backdrop { background: rgba(10,10,10,.82); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 15px; }
.lb-close { padding: 6px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font-size: 14px; }
.lb-close:hover { background: #fff; color: var(--ink); }
.lightbox video { width: 100%; max-height: calc(92vh - 56px); background: #000; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.clients { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; font-size: 15px; }
.clients span { color: var(--ink); font-weight: 600; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--muted); }

/* bar turns solid after the hero so it never sits on top of text */
.bar { transition: background .25s, color .25s; }
.bar.solid { mix-blend-mode: normal; color: var(--ink); background: rgba(238,238,234,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: calc(env(safe-area-inset-top, 0px) + 12px); padding-bottom: 12px; }
/* room for the host's badge in the bottom-right corner */
.foot { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
