/* Venerance
   One family (Mona Sans, variable weight + width), true black, true white.
   Contrast comes from scale and space, not color. */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #6b6b6b; /* secondary text on paper, 5.3:1 */
  --ash: #8f8f8f;      /* secondary text on ink, 6.9:1 */

  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --section: clamp(7rem, 17vw, 18rem);

  --t-hero: clamp(2.75rem, 14.2vw, 17.5rem);
  --t-display: clamp(2.5rem, 7.4vw, 9rem);
  --t-title: clamp(2.25rem, 6.2vw, 7.5rem);
  --t-statement: clamp(1.875rem, 4.2vw, 5rem);
  --t-lead: clamp(1.5rem, 2.8vw, 3.25rem);
  --t-body: clamp(1.0625rem, 0.96rem + 0.34vw, 1.3125rem);
  --t-small: clamp(0.875rem, 0.83rem + 0.14vw, 1rem);

  --ease-make: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35em;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 2;
  padding: 0.75em 1em;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-small);
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Twelve columns, used by every section below the hero. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-inline: var(--gutter);
}

.section-heading {
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Masthead */

.masthead {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.8vw, 2.75rem) var(--gutter);
}

.wordmark {
  display: block;
  width: clamp(10rem, 16vw, 17rem);
}

.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.masthead-link {
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
}

/* Hero: the headline arrives at the wordmark's hairline and is made solid. */

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem var(--gutter) clamp(1.5rem, 4vw, 4.5rem);
}

.hero-title {
  font-size: var(--t-hero);
  font-weight: 640;
  font-stretch: 94%;
  line-height: 0.95;
  letter-spacing: -0.058em;
  margin-left: -0.045em;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

@keyframes make {
  from {
    font-weight: 200;
  }
  to {
    font-weight: 640;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-line {
    font-weight: 200;
  }

  .js.fonts-ready .hero-line {
    animation: make 2.2s var(--ease-make) calc(0.25s + var(--i) * 0.16s) both;
  }
}

/* Intro */

.intro {
  padding-top: var(--section);
}

.intro-lead {
  grid-column: 4 / -1;
  max-width: 28ch;
  font-size: var(--t-lead);
  font-weight: 460;
  line-height: 1.14;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.intro-body {
  grid-column: 9 / -1;
  grid-row: 2;
  align-self: start;
  margin-top: clamp(3.5rem, 7vw, 7.5rem);
}

/* The one image allowed to break the gutter: it bleeds off the left edge,
   opens toward the text as it arrives, then drifts slower than the page. */
.intro-media {
  grid-column: 1 / 8;
  grid-row: 2;
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: clamp(3.5rem, 7vw, 7.5rem);
  margin-left: calc(-1 * var(--gutter));
  overflow: hidden;
  background: #90715d;
}

.intro-media img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
}

@keyframes media-open {
  from {
    clip-path: inset(0 34% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes media-settle {
  from {
    scale: 1.14;
  }
  to {
    scale: 1;
  }
}

@keyframes media-drift {
  from {
    translate: 0 -6.5%;
  }
  to {
    translate: 0 6.5%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .intro-media {
      view-timeline: --intro-media block;
      animation: media-open cubic-bezier(0.4, 0, 0.2, 1) both;
      animation-timeline: --intro-media;
      animation-range: cover 0% cover 45%;
    }

    .intro-media img {
      animation:
        media-settle cubic-bezier(0.4, 0, 0.2, 1) both,
        media-drift linear both;
      animation-timeline: --intro-media, --intro-media;
      animation-range: cover 0% cover 45%, cover 0% cover 100%;
    }
  }
}

.intro-body p,
.work-body p {
  max-width: 38ch;
  text-wrap: pretty;
}

.intro-body p + p,
.work-body p + p {
  margin-top: 1.1em;
}

/* What we make */

.capabilities {
  padding-top: var(--section);
}

.capabilities .section-heading {
  grid-column: 1 / -1;
}

.capability-list {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 5vw, 5.5rem);
}

.capability {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: baseline;
}

.capability + .capability {
  margin-top: clamp(2.25rem, 4.6vw, 5rem);
}

.capability-title {
  grid-column: 1 / 9;
  font-size: var(--t-title);
  font-weight: 520;
  font-stretch: 94%;
  line-height: 0.96;
  letter-spacing: -0.048em;
  margin-left: -0.03em;
}

.capability-text {
  grid-column: 9 / -1;
  max-width: 30ch;
  text-wrap: pretty;
}

/* Selected work: the page goes dark for the film. */

.work {
  margin-top: var(--section);
  padding-block: var(--section);
  background: var(--ink);
  color: var(--paper);
}

.work ::selection {
  background: var(--paper);
  color: var(--ink);
}

.work-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--col-gap);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.35;
}

.work-meta .section-heading {
  color: var(--ash);
}

.work-title {
  grid-column: 1 / -1;
  max-width: 13em;
  margin-top: clamp(1.5rem, 3vw, 3rem);
  margin-left: -0.04em;
  font-size: var(--t-display);
  font-weight: 600;
  font-stretch: 94%;
  line-height: 0.9;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.shot-frame {
  overflow: hidden;
  background: #16181b;
}

.shot img {
  width: 100%;
}

/* Each screenshot fades up while the picture settles inside a fixed frame,
   so the grid edges never move. */
@keyframes shot-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shot-settle {
  from {
    scale: 1.06;
  }
  to {
    scale: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .shot {
      view-timeline: --shot block;
      animation: shot-fade cubic-bezier(0.4, 0, 0.2, 1) both;
      animation-timeline: --shot;
      animation-range: entry 0% entry 75%;
    }

    .shot img {
      animation: shot-settle cubic-bezier(0.4, 0, 0.2, 1) both;
      animation-timeline: --shot;
      animation-range: entry 0% entry 100%;
    }
  }
}

.shot figcaption {
  margin-top: 0.85rem;
  color: var(--ash);
  font-size: var(--t-small);
  line-height: 1.35;
}

.shot-storyboard {
  grid-column: 1 / -1;
  margin-top: clamp(4rem, 9vw, 9rem);
}

.work-body {
  grid-column: 9 / -1;
  margin-top: clamp(4rem, 9vw, 9.5rem);
}

/* Screenplay and characters step across the grid, one after the other. */
.shot-screenplay {
  grid-column: 1 / 10;
  margin-top: var(--section);
}

.shot-characters {
  grid-column: 4 / -1;
  margin-top: clamp(3rem, 7vw, 7rem);
}

.work-statement {
  grid-column: 1 / -1;
  max-width: 19em;
  margin-top: var(--section);
  margin-left: -0.03em;
  font-size: var(--t-statement);
  font-weight: 500;
  font-stretch: 96%;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.shot-settings {
  grid-column: 1 / 7;
  margin-top: var(--section);
}

.shot-review {
  grid-column: 7 / -1;
  margin-top: var(--section);
}

.shot-projects {
  grid-column: 4 / -1;
  margin-top: clamp(5rem, 11vw, 11rem);
}

.work-closing {
  grid-column: 4 / -1;
  max-width: 28ch;
  margin-top: var(--section);
  font-size: var(--t-lead);
  font-weight: 460;
  line-height: 1.14;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

/* Contact */

.contact {
  padding-top: var(--section);
}

.contact-title {
  grid-column: 1 / -1;
  max-width: 11em;
  margin-left: -0.04em;
  font-size: var(--t-display);
  font-weight: 600;
  font-stretch: 94%;
  line-height: 0.9;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.contact-text {
  grid-column: 9 / -1;
  max-width: 30ch;
  margin-top: clamp(3.5rem, 7vw, 7.5rem);
  text-wrap: pretty;
}

.contact-link {
  grid-column: 9 / -1;
  justify-self: start;
  margin-top: 1.75rem;
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.026em;
  text-decoration-line: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.18em;
}

.contact-link:hover {
  text-decoration-thickness: 0.12em;
}

/* Footer */

.footer {
  padding: var(--section) var(--gutter) clamp(1.25rem, 2.8vw, 2.75rem);
}

.footer-wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.footer-meta {
  margin-top: clamp(1.25rem, 2.4vw, 2.25rem);
  color: var(--graphite);
  font-size: var(--t-small);
}

/* Mid-size screens: body text moves left to keep a readable measure. */

@media (min-width: 761px) and (max-width: 1100px) {
  .intro-body,
  .work-body,
  .contact-text,
  .contact-link {
    grid-column: 7 / -1;
  }

  .capability-title {
    grid-column: 1 / -1;
  }

  .capability-text {
    grid-column: 7 / -1;
    margin-top: 1rem;
  }

  .intro-media {
    grid-column: 1 / 7;
    aspect-ratio: 4 / 5;
  }

  .intro-body {
    grid-column: 8 / -1;
  }
}

/* Small screens: one column, same order, same space. */

@media (max-width: 760px) {
  :root {
    --t-hero: 18.2vw;
  }

  .hero-break {
    display: block;
  }

  .intro-lead,
  .intro-body,
  .capability-title,
  .capability-text,
  .work-body,
  .shot-screenplay,
  .shot-characters,
  .work-statement,
  .shot-settings,
  .shot-review,
  .shot-projects,
  .work-closing,
  .contact-text,
  .contact-link {
    grid-column: 1 / -1;
  }

  .capability-text {
    margin-top: 0.75rem;
  }

  .intro-media {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    margin-right: calc(-1 * var(--gutter));
  }

  .intro-body {
    grid-row: auto;
    margin-top: clamp(2.5rem, 10vw, 3.5rem);
  }

  .shot-characters,
  .shot-settings,
  .shot-review {
    margin-top: clamp(3.5rem, 14vw, 5rem);
  }

  .shot-projects {
    margin-top: clamp(3.5rem, 14vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
