@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #0b0b0a;
  --offwhite: #f1f0eb;
  --grey: #92918c;
  --line: #272725;
  --gutter: clamp(16px, 2.6vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

body {
  background: var(--black);
  color: var(--offwhite);
  font: 300 17px/1.5 "Geist", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible { outline: 1px solid var(--offwhite); outline-offset: 3px; }

/* The page sits on one four-column grid, so everything lines up with something */

.page { width: min(100%, 1280px); margin: 0 auto; padding: 0 var(--gutter); }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.top h1 { font-size: inherit; line-height: 0; }
.top img { width: 84px; height: auto; }
.top nav { display: flex; gap: 22px; }
.top a, .foot a, .follow a { color: var(--grey); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.top a { text-decoration: none; }
.top a:hover, .foot a:hover, .follow a:hover { color: var(--offwhite); }

.intro { padding: clamp(40px, 5vw, 64px) 0; }
.statement { grid-column: span 2; font-size: clamp(26px, 2.8vw, 36px); font-weight: 200; line-height: 1.15; letter-spacing: -0.02em; }
.pitch { grid-column: span 2; max-width: 34em; color: var(--grey); font-size: 15px; line-height: 1.55; }

/* Stills are in full colour: the brand around them stays monochrome, so the
   only colour on the page is the work. */

.card { text-decoration: none; }
li > .card { display: block; }
.still { overflow: hidden; aspect-ratio: 1280 / 540; background: #161615; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.card:hover .still img, .card:focus-visible .still img { transform: scale(1.03); }

.feature { align-items: stretch; }
.feature .still { grid-column: span 2; }
.feature-text { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; }
.feature-text h2 { margin: 8px 0 0; font-size: 26px; font-weight: 200; line-height: 1.2; letter-spacing: -0.015em; }
.feature-text p { color: var(--grey); font-size: 15px; }
.feature-text .label { font-size: 13px; }
.feature-text .label:nth-of-type(2) { margin-top: 2px; }
.watch { margin-top: auto; padding-top: 12px; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.block { margin-top: clamp(44px, 5vw, 64px); padding-top: 16px; border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; font-size: 13px; color: var(--grey); }
.head h2, .make h2 { margin: 0; font-size: 13px; font-weight: 300; color: var(--grey); }

.grid { row-gap: 28px; }

.caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; }
.caption h2 { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.35; }
.caption p, .caption .time { color: var(--grey); font-size: 13px; line-height: 1.4; }
.caption .time { flex: none; font-variant-numeric: tabular-nums; }

.make { row-gap: 24px; }
.make h3 { margin: 0 0 6px; font-size: 14px; font-weight: 300; }
.make p { color: var(--grey); font-size: 13px; line-height: 1.5; max-width: 24em; }
.make .lead { grid-column: 2 / -1; max-width: 30em; color: var(--offwhite); font-size: clamp(20px, 2vw, 24px); font-weight: 200; line-height: 1.3; letter-spacing: -0.01em; }
.make .from-2 { grid-column-start: 2; }

.follow { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.follow a { color: var(--offwhite); font-size: 14px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 16px;
  padding: 16px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 13px;
}

/* Theatre: the same narrow column, centred on black */

.theatre {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0 var(--gutter); border: 0;
  background: var(--black); color: var(--offwhite);
}
.theatre[open] { display: grid; align-content: center; justify-items: center; animation: rise 280ms ease; }
.theatre:focus { outline: none; }
.theatre::backdrop { background: var(--black); }
@keyframes rise { from { opacity: 0; } }

.theatre-top, .theatre-foot, .stage-wrap { width: min(100%, 880px, calc((100dvh - 150px) * 16 / 9)); }
.theatre-top, .theatre-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.theatre-top { padding-bottom: 12px; }
.theatre-top img { width: 84px; height: auto; }
.theatre-foot { align-items: flex-start; padding-top: 12px; }
.theatre-foot h2 { font-size: 15px; font-weight: 300; line-height: 1.35; }
.theatre-foot p { color: var(--grey); font-size: 13px; }

.text-button {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--grey); font: inherit; font-size: 13px; text-decoration: none;
}
.text-button:hover { color: var(--offwhite); }
.turns { display: flex; gap: 18px; flex: none; }

.stage { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.stage video, .stage iframe, .stage > .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; }

.stage-msg { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--grey); font-size: 14px; }
.stage-msg a { color: var(--offwhite); text-underline-offset: 3px; }

/* ægent's own player, used when a video has a file on the CDN */

.bar {
  position: absolute; inset: auto 0 0;
  display: flex; align-items: center; gap: 12px;
  padding: 32px 12px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  transition: opacity 240ms ease;
}
.stage.idle .bar { opacity: 0; pointer-events: none; }
.stage.idle { cursor: none; }

.icon {
  appearance: none; border: 0; background: none; padding: 6px; margin: 0; cursor: pointer;
  color: var(--offwhite); line-height: 0; flex: none;
}
.icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.icon .fill { fill: currentColor; stroke: none; }

.clock { color: var(--offwhite); font-size: 12px; font-weight: 300; font-variant-numeric: tabular-nums; white-space: nowrap; }

.seek, .level {
  --p: 0%; --b: 0%;
  appearance: none; -webkit-appearance: none;
  height: 22px; margin: 0; background: none; cursor: pointer;
}
.seek { flex: 1; min-width: 0; }
.level { width: 72px; flex: none; }
.seek::-webkit-slider-runnable-track, .level::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(90deg, var(--offwhite) var(--p), rgba(241,240,235,.5) var(--p), rgba(241,240,235,.5) var(--b), rgba(241,240,235,.24) var(--b));
}
.seek::-moz-range-track, .level::-moz-range-track {
  height: 1px;
  background: linear-gradient(90deg, var(--offwhite) var(--p), rgba(241,240,235,.5) var(--p), rgba(241,240,235,.5) var(--b), rgba(241,240,235,.24) var(--b));
}
.seek::-webkit-slider-thumb, .level::-webkit-slider-thumb {
  -webkit-appearance: none; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--offwhite);
}
.seek::-moz-range-thumb, .level::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--offwhite); }

.big-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  width: 100%; border: 0; background: none; cursor: pointer; color: var(--offwhite);
}
.big-play svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: .5; }
.big-play .fill { fill: currentColor; stroke: none; }
.stage.playing .big-play { display: none; }

@media (max-width: 720px) {
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .statement, .pitch, .feature .still, .feature-text, .make h2 { grid-column: 1 / -1; }
  .pitch { margin-top: 14px; }
  .feature-text { margin-top: 12px; }
  .watch { margin-top: 0; }
  .grid { row-gap: 24px; }
  .make > div:last-child { grid-column: 1 / -1; }
  .make .lead { grid-column: 1 / -1; }
  .make .from-2 { grid-column-start: auto; }
  .caption .time { display: none; }
  .level { display: none; }
  .theatre { padding: 0; }
  .stage-wrap { width: 100%; }
  .theatre-top, .theatre-foot { width: calc(100% - 2 * var(--gutter)); }
  .bar { gap: 8px; padding: 32px 8px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
