/* 10Yards. Concept: the call sheet. Films carry the colour; type is Big Shoulders for names, Archivo for everything else. */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --orange: #fb5605;
  --mute: #9b9b9b;
  --line: rgba(255, 255, 255, 0.2);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --g: clamp(16px, 2.2vw, 40px);              /* side gutter */
  --fs: clamp(16px, 0.45vw + 10.5px, 21px);   /* body: 18px on a 1600px screen */
  --fs-s: calc(var(--fs) * 0.82);             /* labels */
  --fs-title: clamp(30px, 2.9vw, 60px);       /* film titles */
  --fs-head: clamp(56px, 8.5vw, 170px);       /* page headings */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--text); font-size: var(--fs); line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--orange); color: var(--ink); padding: 8px 12px; z-index: 100; }
main:focus { outline: none; }
main { transition: opacity .18s ease; }
main.leaving { opacity: 0; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--g); mix-blend-mode: difference; color: #fff;
}
.bar-logo { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 2.4vw, 46px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.bar-logo:hover { text-decoration: none; }
.bar-nav { display: flex; gap: clamp(20px, 2.6vw, 52px); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2vw, 40px); line-height: 1; letter-spacing: .01em; }
.bar-nav a:hover { text-decoration: none; opacity: .6; }
.bar-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
body.is-home { overflow: hidden; }
body.is-home .foot { display: none; }

/* Home hero */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mark {
  position: absolute; left: 0; right: 0; bottom: clamp(56px, 7vh, 96px);
  font-family: var(--display); font-weight: 900; text-transform: uppercase; text-align: center;
  font-size: 27vw; line-height: .74; color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.hero-base {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px var(--g) 18px; mix-blend-mode: difference; color: #fff;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 1.5vw, 30px); line-height: 1.05;
}
.hero-base .tc { font-variant-numeric: tabular-nums; }
.hero-base button:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Section heads */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: clamp(96px, 12vh, 150px) var(--g) clamp(24px, 3vw, 44px); }
.head h1, .head h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-head); line-height: .8; }
.head .side { display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline; color: var(--mute); }
.head .side button[aria-pressed="true"], .head .side a.on { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.head .side button:hover { color: var(--paper); }
.sub-head { padding: clamp(80px, 10vh, 130px) var(--g) 20px; display: flex; justify-content: space-between; align-items: baseline; }
.sub-head h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 4.4vw, 88px); line-height: .85; }

/* Film tiles: two up, edge to edge, no gaps */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: block; position: relative; }
.tile:hover { text-decoration: none; }
.tile-media { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.tile-media img, .tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media video { opacity: 0; transition: opacity .25s; }
.tile.playing .tile-media video { opacity: 1; }
.tile-media .soon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); }
.tile-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px var(--g) 30px; }
.tile-cap .t { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--fs-title); line-height: .92; }
.tile:hover .tile-cap .t { color: var(--orange); }
.tile-cap .r { font-variant-numeric: tabular-nums; color: var(--mute); }
.tile-cap .c { color: var(--mute); grid-column: 1 / -1; }
.tiles--tall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles--tall .tile-media { aspect-ratio: 9 / 16; }
.tiles--tall .tile-cap .t { font-size: clamp(24px, 2vw, 40px); }

/* Lead project at the top of Work */
.lead { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lead-media .tile-media { aspect-ratio: 16 / 9; }
.lead-copy { padding: clamp(18px, 2vw, 36px) var(--g) clamp(28px, 3vw, 48px); display: grid; gap: 1em; align-content: start; max-width: 62ch; }
.lead-client { color: var(--mute); }
.lead-copy h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 5.4vw, 112px); line-height: .82; }
.lead-copy h2 a:hover { text-decoration: none; color: var(--orange); }
.lead-more { text-decoration: underline; text-underline-offset: 4px; }

/* Work list view */
.list { border-top: 1px solid var(--paper); margin: 0 var(--g) 40px; }
.list-row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr) 90px;
  gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.list-row:hover { text-decoration: none; }
.list-row .t { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 46px); line-height: .95; }
.list-row:hover .t { color: var(--orange); }
.list-row .m { color: var(--mute); }
.list-row .r { text-align: right; font-variant-numeric: tabular-nums; }
.list-head { color: var(--mute); padding: 0 0 8px; border-bottom: 1px solid var(--paper); display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr) 90px; gap: 16px; margin: 0 var(--g); font-size: var(--fs-s); }
.list-head span:last-child { text-align: right; }
.peek { position: fixed; right: var(--g); bottom: var(--g); z-index: 25; width: min(520px, 34vw); aspect-ratio: 16 / 9; background: #111; opacity: 0; pointer-events: none; transition: opacity .2s; }
.peek.on { opacity: 1; }
.peek video { width: 100%; height: 100%; object-fit: cover; }

/* Project page */
.film { position: relative; background: #000; padding-top: 70px; }
.film video { width: 100%; max-height: calc(100svh - 70px); background: #000; }
.film .embed { position: relative; aspect-ratio: 16 / 9; max-height: calc(100svh - 70px); width: min(100%, calc((100svh - 70px) * 16 / 9)); margin: 0 auto; background: #000; }
.film .embed iframe, .film .embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.film .watch-out { display: block; }
.film .watch-out span { position: absolute; left: var(--g); bottom: var(--g); font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 3vw, 56px); line-height: .9; color: #fff; mix-blend-mode: difference; }
.film .watch-out:hover { text-decoration: none; }
.film .watch-out:hover span { color: var(--orange); mix-blend-mode: normal; }
.film .soon { aspect-ratio: 16 / 9; max-height: calc(100svh - 70px); width: 100%; display: grid; place-items: center; background: #111; color: var(--mute); }
.project { padding: clamp(28px, 3vw, 56px) var(--g) clamp(60px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 80px); }
.project h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 7.5vw, 150px); line-height: .82; grid-column: 1 / -1; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-content: start; border-top: 1px solid var(--paper); padding-top: 14px; }
.credits dt { color: var(--mute); }
.copy { display: grid; gap: 1em; max-width: 58ch; align-content: start; border-top: 1px solid var(--paper); padding-top: 14px; }
.press { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.press a { text-decoration: underline; text-underline-offset: 4px; }
.next { display: block; border-top: 1px solid var(--paper); padding: 18px var(--g) 40px; }
.next:hover { text-decoration: none; }
.next span { color: var(--mute); }
.next b { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-head); line-height: .82; }
.next:hover b { color: var(--orange); }

/* Latest */
.log { margin: 0 var(--g) clamp(60px, 8vw, 120px); border-top: 1px solid var(--paper); }
.log-entry { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(0, 1.6fr) minmax(0, 1.4fr); gap: 16px 32px; padding: 22px 0 28px; border-bottom: 1px solid var(--line); }
.log-entry time, .log-entry .nodate { color: var(--mute); font-variant-numeric: tabular-nums; }
.log-entry h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 56px); line-height: .9; }
.log-entry .body { display: grid; gap: 10px; max-width: 54ch; }
.log-entry .body a { text-decoration: underline; text-underline-offset: 4px; }

/* Studio + contact */
.statement { padding: 0 var(--g); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5vw, 104px); line-height: .9; max-width: 18ch; }
.studio-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: clamp(48px, 6vw, 96px) var(--g) clamp(60px, 8vw, 120px); }
.studio-cols li { border-top: 1px solid var(--paper); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.studio-cols h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 2.6vw, 52px); line-height: .9; }
.studio-cols p { color: #d4d4d4; max-width: 30ch; }
.intro { padding: clamp(28px, 3vw, 48px) var(--g) 0; max-width: 60ch; color: #d4d4d4; }
.contact-mail { display: block; padding: 0 var(--g); font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 8vw, 170px); line-height: .85; color: var(--orange); overflow-wrap: anywhere; }
.contact-mail:hover { text-decoration: none; color: var(--paper); }
.contact-more { display: flex; gap: 32px; flex-wrap: wrap; padding: 32px var(--g) clamp(80px, 10vw, 160px); color: var(--mute); }

/* Contact */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-contact .foot { display: none; }
.contact2 { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(22px, 2.6vw, 44px); padding: 130px var(--g) clamp(24px, 2.6vw, 44px); }
.contact2 .kick { font-size: clamp(19px, 0.55vw + 13px, 25px); line-height: 1.3; max-width: 30ch; }
.c-lines { display: grid; gap: clamp(6px, .8vw, 14px); }
.c-row { display: flex; align-items: flex-end; gap: clamp(14px, 1.3vw, 24px); }
.c-row--r { flex-direction: row-reverse; }
.c-big { flex: none; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .8; white-space: nowrap; letter-spacing: .005em; }
.c-big:hover { text-decoration: none; }
.c-bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.c-big[style*="--grad"] {
  background-image: var(--grad); background-size: 300% 100%; background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: issue-drift 30s ease-in-out infinite alternate;
}
.c-big[style*="--grad"]:hover, .c-big[style*="--grad"]:focus-visible { background-image: none; color: var(--paper); animation: none; }
.c-row--r .c-big:hover { color: var(--orange); }
.c-lab { flex: 1 1 0; text-align: right; color: var(--mute); padding-bottom: .4em; }
.c-row--r .c-lab { text-align: left; }
.c-foot { display: flex; gap: 12px 36px; flex-wrap: wrap; align-items: baseline; border-top: 1px solid var(--paper); padding-top: 14px; color: var(--mute); }
.c-foot button, .c-foot a { color: var(--paper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.c-foot button:hover, .c-foot a:hover { text-decoration-thickness: 3px; }
@keyframes issue-drift { to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .c-big[style*="--grad"] { animation: none; } }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--g) 28px; border-top: 1px solid var(--line); color: var(--mute); }

@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tiles--tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-head { display: none; }
  .list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .list-row .m { display: none; }
  .list-row .m.keep { display: block; grid-column: 1 / -1; }
  .peek { display: none; }
  .project { grid-template-columns: 1fr; }
  .log-entry { grid-template-columns: 1fr; gap: 8px; }
  .studio-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; row-gap: 10px; padding: 14px var(--g); }
  .bar-nav { width: 100%; justify-content: space-between; gap: 0; font-size: 22px; }
  .studio-cols { grid-template-columns: 1fr; }
  .hero-base { flex-direction: column; gap: 4px; }
  .c-row, .c-row--r { flex-direction: column; align-items: flex-start; gap: 6px; }
  .c-lab, .c-row--r .c-lab { text-align: left; padding: 0 0 10px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  main { transition: none; }
  .tile-media video, .peek { transition: none; }
}
