@font-face {
  font-family: "Larke Neue";
  src: url("Assets/Fonts/Larke%20Neue%20Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Larke Neue";
  src: url("Assets/Fonts/Larke%20Neue%20Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0089ff;
  --hero-overlay: 0.35;
  --reel-still: url("Assets/Photos/showreel-still.jpg");
  --production-photo: url("Assets/Production/production-1440.webp");
  --font: "Larke Neue", "Century Gothic", "Avenir Next", sans-serif;
  --type-small: clamp(0.8125rem, 0.76rem + 0.12vw, 0.9rem);
  --type-body: clamp(1rem, 0.83rem + 0.25vw, 1.125rem);
  --type-support: clamp(1.0625rem, 0.92rem + 0.35vw, 1.375rem);
  --type-heading: clamp(1.5rem, 1.15rem + 0.75vw, 2.25rem);
  --page-gutter: clamp(1rem, 3.4vw, 4rem);
  --space-section: clamp(3.5rem, 6.2vw, 6.75rem);
  --space-stack: clamp(0.75rem, 1.2vw, 1.125rem);
  --header-height: clamp(3.75rem, 5.45vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body {
  margin: 0;
  color: #111;
  background: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem;
  color: #111;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  place-items: center;
  min-height: var(--header-height);
  background: #fff;
}
.site-header__logo {
  position: relative;
  --wordmark-width: clamp(6.75rem, 10vw, 10.5rem);
  width: var(--wordmark-width);
  aspect-ratio: 8153 / 1609;
  translate: 0 2px;
}
.site-header__logo img,
.site-header__logo canvas {
  position: absolute;
  top: calc(-26 * var(--wordmark-width) / 319);
  left: 50%;
  width: calc(100% * 350 / 319);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}
.site-header__logo.is-animated .site-header__logo-rest { opacity: 0; }

.instagram-link {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}
.site-header .instagram-link { right: max(0.25rem, calc(var(--page-gutter) - 10px)); }
.instagram-link__icon {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000;
}
.instagram-link:hover .instagram-link__icon,
.instagram-link:focus-visible .instagram-link__icon { background: var(--blue); }
.instagram-link__icon::before,
.instagram-link__icon::after {
  position: absolute;
  content: "";
  border: 1.5px solid #fff;
}
.instagram-link__icon::before {
  inset: 5px;
  border-radius: 4px;
  background: radial-gradient(circle at 8.5px 2.5px, #fff 0.8px, transparent 1.1px);
}
.instagram-link__icon::after {
  inset: 9px;
  border-radius: 50%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(26rem, 47vw, 52rem);
  margin-inline: var(--page-gutter);
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 7.3vw, 8.75rem);
  color: #fff;
  background:
    linear-gradient(90deg, rgb(0 0 0 / calc(var(--hero-overlay) + 0.16)), rgb(0 0 0 / var(--hero-overlay)) 62%, rgb(0 0 0 / 0.2)),
    #202020 var(--production-photo) center 29% / cover no-repeat;
}
.hero__reel-link { position: absolute; inset: 0; }
.hero__reel-link:focus-visible { outline-offset: -4px; }
.hero__content {
  position: relative;
  transform: translateY(clamp(-1.5rem, -1.5vw, -0.5rem));
  pointer-events: none;
}
.hero__actions a { pointer-events: auto; }
.hero h1, .contact h2 {
  font-size: var(--type-heading);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.025em;
  text-wrap: balance;
}
.hero h1 {
  max-width: 20ch;
  font-size: clamp(1.625rem, 0.9rem + 1.6vw, 2.875rem);
}
.hero p {
  max-width: 40ch;
  margin-top: clamp(0.75rem, 1.1vw, 1rem);
  font-size: var(--type-support);
  line-height: 1.42;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.625rem, 1.3vw, 1.25rem);
  margin-top: clamp(1.125rem, 1.7vw, 1.625rem);
}
.button {
  display: inline-grid;
  place-items: center;
  min-width: clamp(6.5rem, 10vw, 9.5rem);
  min-height: 44px;
  padding: 0.4em 1em;
  background: var(--blue);
  color: #fff;
  font-size: var(--type-body);
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-decoration: none;
}
.button:hover { text-decoration: underline; }
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 3.7vw, 4.25rem);
  align-items: center;
  --about-gutter: clamp(var(--page-gutter), 9vw - 3rem, 10rem);
  width: min(calc(100% - 2 * var(--about-gutter)), 80rem);
  margin-inline: auto;
  padding-block: var(--space-section);
}
.about__reel {
  display: block;
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #202020;
  color: inherit;
}
.reel-preview,
.reel-preview::before,
.reel-preview::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.reel-preview { overflow: hidden; }
.reel-preview::before {
  z-index: 1;
  content: "";
  background: #202020 var(--reel-still) center / contain no-repeat;
}
.reel-preview.is-playing::before { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .reel-preview.is-playing::before { transition: opacity 120ms ease-out; }
}
@media (hover: hover) {
  .about__reel:hover .reel-preview::after {
    z-index: 2;
    content: "";
    background: rgb(0 0 0 / 0.16);
  }
}
.reel-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Crop the thin edge that can appear in the embedded player. */
  transform: scale(1.02);
}
.about__copy {
  max-width: 34rem;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.007em;
}
.about__copy p:first-child {
  font-size: clamp(1.15625rem, 0.64rem + 0.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.about__copy p:not(:first-child) { text-wrap: pretty; }
.about__copy p + p { margin-top: var(--space-stack); }

.clients {
  position: relative;
  padding-block: clamp(1.875rem, 3vw, 3.25rem) clamp(2rem, 3.6vw, 3.875rem);
  background: var(--blue);
  color: #fff;
  text-align: center;
}
.clients h2, .contact p, .contact a {
  font-size: var(--type-support);
  line-height: 1.4;
  letter-spacing: 0.015em;
}
.clients h2 { font-weight: 400; }
.clients__viewport {
  --logos-visible: 5;
  --logo-scale: 1.3;
  width: 100%;
  margin-top: clamp(1rem, 1.9vw, 1.625rem);
  overflow-x: auto;
}
.clients__viewport:focus-visible { outline-offset: -4px; }
.clients__viewport.is-carousel { overflow: hidden; }
.clients__logos {
  display: flex;
  align-items: center;
  min-height: clamp(3.25rem, 4.25vw, 4.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients__logos li {
  display: grid;
  flex: 0 0 calc(100% / var(--logos-visible));
  min-width: 0;
  place-items: center;
  padding-inline: min(2vw, 1.35rem);
}
.clients__logos img {
  width: min(100%, calc(var(--logo-size, 7rem) * var(--logo-scale)));
  max-height: clamp(3.25rem, 5vw, 4.75rem);
  height: auto;
  object-fit: contain;
}
.clients__logo-white { filter: brightness(0) invert(1); }
.clients__logos .clients__clone { display: none; }
.is-carousel .clients__logos .clients__clone { display: grid; }

.contact {
  padding: var(--space-section) var(--page-gutter);
  text-align: center;
}
.contact p {
  margin-top: var(--space-stack);
  text-wrap: balance;
}
.contact a {
  display: inline-block;
  margin-top: var(--space-stack);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.contact a:hover { text-decoration: underline; }

.site-footer {
  position: relative;
  padding: clamp(1.375rem, 2.3vw, 2.5rem) var(--page-gutter);
  border-top: 1px solid #d6d6d6;
  color: #666;
  font-size: var(--type-small);
  letter-spacing: 0.015em;
  text-align: right;
}
.site-footer .instagram-link { left: calc(var(--page-gutter) - 10px); }

body:has(.reel[open]) { overflow: hidden; }
.reel {
  width: min(92vw, 1120px, 138dvh);
  max-width: none;
  max-height: 96dvh;
  padding: 3rem 0 0;
  border: 0;
  background: #181818;
  color: #fff;
}
.reel::backdrop { background: rgb(0 0 0 / 0.88); }
.reel__close {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 2rem/1 sans-serif;
  cursor: pointer;
}
.reel__close:focus-visible { outline-offset: -4px; }
.reel__player {
  aspect-ratio: 16 / 9;
  background: #000;
}
.reel__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.reel__link:not([hidden]) { display: block; padding: 0.65rem 1rem; color: inherit; text-align: center; }

@media (861px <= width <= 1100px) {
  .about {
    --about-gutter: var(--page-gutter);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(1.75rem, 2.8vw, 2rem);
  }
}
@media (max-width: 860px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.25rem);
    width: min(calc(100% - 2 * var(--page-gutter)), 38rem);
  }
  .about__copy { max-width: none; }
}
@media (max-width: 680px) {
  .site-header__logo img {
    top: 0;
    width: 100%;
  }
  .hero {
    display: block;
    min-height: auto;
    padding: 0;
    color: #000;
    background: #fff;
  }
  .hero__reel-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #202020 var(--reel-still) center / contain no-repeat;
  }
  .hero__reel-link .reel-preview iframe { transform: none; }
  .about__reel {
    aspect-ratio: 3 / 2;
    background: var(--production-photo) center / contain no-repeat;
  }
  .hero__content {
    padding-top: clamp(1.5rem, 5vw, 2.25rem);
    transform: none;
    pointer-events: auto;
  }
  .hero h1 {
    max-width: 23ch;
    font-size: clamp(1.625rem, 1.2rem + 2vw, 2.125rem);
  }
  .hero p {
    max-width: 38ch;
    margin-top: 0.75rem;
    text-wrap: pretty;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hero__actions .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    min-height: 48px;
    padding-inline: 0.5rem;
    border: 1px solid var(--blue);
  }
  .hero__actions #view-reel::before {
    content: "";
    border-block: 0.32rem solid transparent;
    border-left: 0.5rem solid currentColor;
  }
  .hero__actions .button[href="#contact"] {
    background: #fff;
    color: var(--blue);
  }
  .hero__actions #view-reel:active { background: #006ecc; }
  .hero__actions .button[href="#contact"]:active { background: #e8f4ff; }
  .clients__viewport { --logos-visible: 1; }
  .clients__logos li { padding-inline: clamp(0.5rem, 2.5vw, 1.125rem); }
}
@supports (background-image: image-set(url("Assets/Production/production-1440.webp") 1x)) {
  :root {
    --production-photo: image-set(
      url("Assets/Production/production-1440.webp") 1x,
      url("Assets/Production/production-2400.webp") 2x,
      url("Assets/Production/production-3200.webp") 3x
    );
  }
  @media (width > 1500px) {
    :root {
      --production-photo: image-set(
        url("Assets/Production/production-2048.webp") 1x,
        url("Assets/Production/production-3200.webp") 2x
      );
    }
  }
  @media (max-width: 680px) {
    :root {
      --production-photo: image-set(
        url("Assets/Production/production-768.webp") 1x,
        url("Assets/Production/production-1440.webp") 2x,
        url("Assets/Production/production-2048.webp") 3x
      );
    }
  }
  @media (max-width: 480px) {
    :root {
      --production-photo: image-set(
        url("Assets/Production/production-768.webp") 1x,
        url("Assets/Production/production-1440.webp") 2x,
        url("Assets/Production/production-1440.webp") 3x
      );
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
