@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #12161f;
  --panel: #191f2a;
  --line: #343b49;
  --white: #f7f6f4;
  --muted: #bdc5d0;
  --accent: #f8cb53;
  --ink: #1c1810;
  --display: Montserrat, "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--white);
  font: 16px/1.6 var(--body);
}

body:has(dialog[open]) { overflow: hidden; }

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

h1, h2, h3 { font-family: var(--display); line-height: 1.12; }

a { color: inherit; }

img { display: block; max-inline-size: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.shell {
  width: min(100% - 112px, 1320px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 12px auto auto 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font: 750 14px/1.2 var(--display);
  text-decoration: none;
}

.brand img {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.2vw, 34px);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .94rem;
  text-decoration: none;
}

.site-header nav a:hover { color: var(--white); }

.site-header .nav-profile { gap: 5px; }

.nav-profile span { color: var(--accent); }

.site-header nav .nav-contact {
  border: 1px solid var(--line);
  padding: 0 16px;
  color: var(--white);
}

.site-header nav .nav-contact:hover { border-color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: 60px 67px;
}

.hero-copy { padding-block: 10px; }

.hero h1 {
  font-size: clamp(3.4rem, 5.9vw, 6.1rem);
  font-weight: 800;
  letter-spacing: -.078em;
  line-height: 1.06;
}

.hero h1 > span { display: block; }

.hero-dot { color: var(--accent); }

.hero-role {
  margin-top: 24px;
  color: var(--accent);
  font: 700 clamp(1.04rem, 1.48vw, 1.35rem)/1.35 var(--display);
}

.hero-description {
  max-width: 29ch;
  text-wrap: balance;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.32vw, 1.18rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 27px;
}

.button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.3;
}

.button {
  justify-content: center;
  padding: 13px 17px;
  font-size: .95rem;
}

.button-primary { background: var(--accent); color: var(--ink); }

.button-primary:hover { background: #ffe092; }

.text-link { color: var(--white); font-size: .94rem; }

.text-link > span { color: var(--accent); }

.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-film, .work-media {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  background: var(--panel);
  color: var(--white);
  text-decoration: none;
}

.hero-film { aspect-ratio: 1.67; border: 1px solid #3c4350; }

.hero-film img, .work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.hero-film img { object-position: 53% center; }

.hero-film::after, .work-media::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-film::after {
  background: linear-gradient(0deg, rgb(7 10 15 / .94), rgb(7 10 15 / .25) 36%, transparent 66%);
}

.work-media::after {
  background: linear-gradient(0deg, rgb(7 10 15 / .4), transparent 38%);
}

.play-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / .76);
  border-radius: 50%;
  background: rgb(12 16 24 / .72);
  color: white;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.play-icon::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-block: 8px solid transparent;
  border-left: 13px solid currentColor;
  content: "";
}

.video-link:hover .play-icon,
.video-link:focus-visible .play-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.video-link:hover img { transform: scale(1.025); }

.hero-caption {
  position: absolute;
  z-index: 1;
  inset: auto 22px 19px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.caption-name, .caption-role { display: block; }

.caption-name { font: 740 clamp(1rem, 1.55vw, 1.27rem)/1.2 var(--display); }

.caption-role { margin-top: 5px; color: #e0e4ea; font-size: .91rem; }

.duration {
  z-index: 1;
  padding: 3px 9px;
  border: 1px solid rgb(255 255 255 / .22);
  background: rgb(10 12 17 / .8);
  color: var(--white);
  font-size: .79rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.work, .shorts, .thumbnails, .about, .contact { scroll-margin-top: 20px; }

.work, .shorts, .thumbnails {
  padding-top: 29px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px 16px;
  margin-bottom: 22px;
}

.section-heading h2, .about h2, .contact h2 {
  font-size: clamp(1.85rem, 3.25vw, 3.05rem);
  font-weight: 750;
  letter-spacing: -.055em;
}

.section-heading p { margin-top: 7px; color: var(--muted); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 18px;
}

.work-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.work-media { aspect-ratio: 16 / 9; }

.work-media .play-icon { width: 46px; height: 46px; }

.work-media .play-icon::before { border-block-width: 6px; border-left-width: 10px; }

.work-media .duration { position: absolute; right: 9px; bottom: 9px; }

.work-copy { padding: 17px 17px 19px; }

.work-copy .work-type {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 650;
}

.work-copy h3 {
  font-size: clamp(1.08rem, 1.55vw, 1.31rem);
  font-weight: 750;
  letter-spacing: -.036em;
}

.work-copy p { margin-top: 9px; color: var(--muted); font-size: .95rem; line-height: 1.56; }

.shorts, .thumbnails, .about { margin-top: 66px; }

.short-grid, .thumbnail-grid { display: grid; gap: 18px; }

.short-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.short-card {
  display: grid;
  grid-template-columns: min(38%, 196px) minmax(0, 1fr);
}

.short-media { aspect-ratio: 9 / 16; align-self: start; }

.short-copy {
  align-self: center;
  padding: clamp(13px, 3vw, 36px);
}

.short-copy h3 { max-width: 19ch; font-size: clamp(1em, 2vw, 1.65rem); }

.short-copy .short-views { color: var(--accent); font-variant-numeric: tabular-nums; }

.short-copy .text-link { margin-top: 6px; }

.thumbnail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.thumbnail-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(155px, .65fr) minmax(0, 1.35fr);
  gap: clamp(32px, 6.4vw, 94px);
  align-items: center;
  padding: clamp(26px, 5vw, 65px);
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.about-stat { max-width: 32ch; }

.stat-number {
  color: var(--accent);
  font: 800 clamp(3.15rem, 8vw, 6.8rem)/.96 var(--display);
  letter-spacing: -.085em;
}

.stat-number span {
  font-size: .28em;
  letter-spacing: -.025em;
  vertical-align: 27%;
}

.about-stat > p + p { margin-top: 13px; color: var(--white); font-weight: 650; }

.about-copy p, .contact p { margin-top: 13px; color: var(--muted); font-size: 1.04rem; }

.about-copy p { max-width: 61ch; }
.about-copy p + p { text-wrap: balance; }

.contact { padding-block: 61px; }

.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 40px;
}

.contact-actions { flex-shrink: 0; max-width: 100%; }

.contact-email { display: grid; justify-items: start; gap: 4px; }

.contact-email .text-link { color: var(--muted); overflow-wrap: anywhere; }

.video-dialog {
  width: min(calc(100% - 28px), 900px);
  max-height: calc(100dvh - 28px);
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--white);
}

.video-dialog::backdrop { background: rgb(4 7 13 / .88); }

.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }

.dialog-header h2 { font-size: clamp(1.05rem, 2.7vw, 1.4rem); }

.close-button {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
}

.close-button:hover { border-color: var(--accent); }

.video-frame { aspect-ratio: 16 / 9; background: #080a0d; }

.video-frame iframe, .video-frame video { display: block; width: 100%; height: 100%; border: 0; }

.video-dialog-portrait { width: min(calc(100% - 28px), 440px); }

.video-dialog-portrait .video-frame {
  width: min(100%, 358px, calc(56.25dvh - 88px));
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.external-video { margin-top: 5px; }

.external-video .external-label { color: inherit; }

@media (max-width: 1160px) {
  .shell { width: min(100% - 72px, 1320px); }
  .hero { gap: 34px; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { width: calc(100% - 44px); }
  .hero { grid-template-columns: 1fr; gap: 27px; padding-block: 35px 45px; }
  .hero h1 {
    font-size: clamp(3.45rem, 10vw, 6rem);
    line-height: .99;
  }
  .hero-description { max-width: 36ch; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .short-grid { grid-template-columns: 1fr; }
  .about-inner { gap: 30px; }
  .contact-inner { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .site-header { min-height: 96px; }
  .site-header nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    align-content: center;
    gap: 0 14px;
    reading-flow: grid-rows;
  }
  .site-header .nav-profile { grid-row: 2; }
}

@media (max-width: 640px) {
  .thumbnail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .site-header { gap: 12px; }
  .site-header .brand span { display: none; }
  .site-header .brand img { width: 42px; height: 42px; }
  .site-header nav a { font-size: .87rem; }
  .site-header nav .nav-contact { padding-inline: 9px; }
  .hero h1 { font-size: clamp(2.9rem, 12.9vw, 4.45rem); }
  .hero-role { margin-top: 18px; }
  .hero-description { margin-top: 8px; }
  .hero-actions { margin-top: 21px; gap: 10px 16px; }
  .hero-caption { inset: auto 12px 11px; }
  .caption-role { margin-top: 2px; font-size: .8rem; }
  .play-icon { width: 50px; height: 50px; }
  .work, .shorts, .thumbnails { padding-top: 23px; }
  .section-heading { margin-bottom: 15px; }
  .work-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-copy { padding: 14px 15px 17px; }
  .shorts, .thumbnails, .about { margin-top: 43px; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .contact { padding-block: 40px; }
}

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