:root {
  --ink: #121416;
  --ink-soft: #34383b;
  --paper: #f4f5f2;
  --paper-strong: #ffffff;
  --line: #d8dad4;
  --muted: #71756f;
  --red: #c93f35;
  --teal: #24766f;
  --gold: #b88124;
  --charcoal: #17191b;
  --shadow: 0 18px 45px rgba(18, 20, 22, 0.12);
  --shadow-strong: 0 24px 62px rgba(18, 20, 22, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body,
button {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(244, 245, 242, 0.92);
  border-bottom: 1px solid rgba(18, 20, 22, 0.1);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links a,
.hero-actions a,
.contact-actions a,
.copy-button {
  text-decoration: none;
}

.brand {
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  background: rgba(36, 118, 111, 0.1);
  color: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 70svh;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 34px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ul {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: 66px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.16;
}

.hero-line {
  max-width: 720px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.ghost-action,
.contact-actions a,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.primary-action {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(201, 63, 53, 0.28);
}

.ghost-action {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.82);
}

.primary-action:hover,
.copy-button:hover {
  filter: brightness(1.05);
}

.ghost-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 34px 0 0;
}

.hero-proof div {
  min-width: 0;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.hero-proof dt {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
}

.hero-proof dd {
  margin-left: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-band {
  padding: 54px 0;
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.intro-copy p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.72;
}

.intro-copy p:last-of-type {
  margin-bottom: 20px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.keyword-list li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.works-section {
  padding: 56px 0 66px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-summary {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 0 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-nav a {
  min-width: 0;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.category-nav a:last-child {
  border-right: 0;
}

.category-nav span,
.category-nav small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-nav span {
  font-size: 10px;
  font-weight: 900;
}

.category-nav small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  background: rgba(36, 118, 111, 0.08);
  color: var(--teal);
}

.works-grid {
  display: grid;
  gap: 52px;
}

.work-group {
  display: grid;
  gap: 18px;
}

.group-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: 22px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.group-kicker {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.group-heading h3 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.14;
}

.group-heading p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-group--featured {
  gap: 20px;
}

.work-group--featured .group-heading {
  border-bottom-color: rgba(184, 129, 36, 0.48);
}

.work-group--featured .group-kicker {
  color: var(--gold);
}

.work-group--featured .category-grid {
  display: block;
}

.work-group--two-column .category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}

.work-card:hover {
  border-color: rgba(36, 118, 111, 0.24);
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.work-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.75fr);
  min-height: 410px;
  border-color: rgba(184, 129, 36, 0.34);
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 28px 70px rgba(18, 20, 22, 0.22);
}

.work-card--featured:hover {
  border-color: rgba(184, 129, 36, 0.58);
}

.work-card--featured .video-frame {
  min-height: 410px;
  aspect-ratio: auto;
}

.work-card--featured .video-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(0, 0, 0, 0.32));
  pointer-events: none;
  content: "";
}

.work-card--featured .work-body {
  justify-content: center;
  padding: 34px;
}

.work-card--featured .work-tag {
  background: rgba(184, 129, 36, 0.18);
  color: #e5bc70;
}

.work-card--featured .work-duration,
.work-card.work-card--featured p {
  color: rgba(255, 255, 255, 0.68);
}

.work-card--featured h4 {
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.15;
}

.work-card.work-card--featured p {
  display: block;
  font-size: 15px;
  line-height: 1.72;
}

.work-card--featured .play-mark,
.work-card--featured .availability-badge,
.featured-mark {
  z-index: 1;
}

.work-card--featured .play-mark {
  width: 64px;
  height: 64px;
  border-color: rgba(255, 255, 255, 0.7);
}

.featured-mark {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 10px;
  border-left: 2px solid var(--gold);
  background: rgba(10, 10, 10, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.video-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #090909;
  text-align: left;
}

.video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #090909;
  transition: transform 280ms ease;
}

.work-trigger:hover img,
.work-trigger:focus-visible img,
.work-card:hover .video-frame img {
  transform: scale(1.035);
}

.work-trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(18, 20, 22, 0.56);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  place-items: center;
}

.play-mark::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  content: "";
}

.availability-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(18, 20, 22, 0.48);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.label-mobile {
  display: none;
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 18px;
}

.work-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.work-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(36, 118, 111, 0.12);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.work-duration {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.work-card h4 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
}

.work-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.credits-band {
  padding: 22px 0;
  background: #e8ece7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.credits-grid div {
  min-height: 74px;
  padding: 15px 16px;
  border-left: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.54);
}

.credits-grid span,
.credits-grid strong {
  display: block;
}

.credits-grid span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.credits-grid strong {
  color: var(--ink);
  font-size: 19px;
}

.contact-section {
  padding: 58px 0;
  background: var(--charcoal);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}

.contact-section p {
  max-width: 600px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.7;
}

.contact-actions {
  justify-content: flex-end;
}

.contact-actions a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.84);
}

.copy-button {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(201, 63, 53, 0.22);
}

.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 24px;
  overflow-y: auto;
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(12px);
  overscroll-behavior: contain;
}

.video-modal[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: calc(100svh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #111416;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.modal-dialog--classic {
  width: min(900px, 100%);
}

.modal-dialog--classic .modal-player {
  width: min(100%, 900px);
}

.modal-dialog--portrait {
  width: min(560px, 100%);
}

.modal-dialog--portrait .modal-player {
  width: min(100%, calc(72svh * 9 / 16), 460px);
  width: min(100%, calc(72dvh * 9 / 16), 460px);
  max-height: 72svh;
  max-height: 72dvh;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.modal-copy {
  max-width: 780px;
  padding-right: 92px;
}

.modal-meta {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.modal-copy h2 {
  margin-bottom: 12px;
  font-size: 30px;
}

.modal-copy p:last-child {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.7;
}

.modal-player {
  display: block;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: var(--player-ratio, 16 / 9);
  border-radius: 8px;
  background: #050505;
}

.modal-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-player--pending {
  display: grid;
  place-items: center;
}

.pending-video {
  display: grid;
  gap: 8px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.pending-video strong {
  color: #fff;
  font-size: 22px;
}

.pending-video span {
  font-size: 15px;
}

.pending-video-action {
  justify-self: center;
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.pending-video-action:hover,
.pending-video-action:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-toast {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(17, 20, 22, 0.9);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.mobile-toast[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 18px;
  }

  .hero {
    min-height: 74svh;
  }

  .hero-content,
  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-line {
    font-size: 18px;
  }

  .hero-proof,
  .intro-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .category-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .category-nav a {
    flex: 0 0 170px;
    scroll-snap-align: start;
  }

  .work-card--featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .work-card--featured .video-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .work-card--featured .video-frame::after {
    background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.24));
  }

  .work-card--featured .work-body {
    padding: 24px;
  }

  .group-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intro-layout,
  .contact-layout {
    gap: 32px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .label-desktop {
    display: none;
  }

  .label-mobile {
    display: inline;
  }

  .video-modal {
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 12px;
  }

  .modal-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 14px;
    border-radius: 16px;
  }

  .modal-close {
    right: 12px;
    top: 12px;
    z-index: 2;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .modal-copy {
    display: contents;
    padding-right: 0;
  }

  .modal-meta {
    order: 2;
    margin: 14px 70px 5px 0;
    font-size: 11px;
    line-height: 1.35;
  }

  .modal-copy h2 {
    order: 3;
    margin: 0 70px 10px 0;
    font-size: 20px;
    line-height: 1.24;
  }

  .modal-player {
    order: 1;
    width: 100%;
    max-height: none;
  }

  .modal-copy p:last-child {
    order: 4;
    max-height: 120px;
    margin: 0;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.55;
  }

  .modal-dialog--portrait .modal-player {
    width: min(100%, calc(72svh * 9 / 16));
    width: min(100%, calc(72dvh * 9 / 16));
    max-height: 72svh;
    max-height: 72dvh;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: 12px 16px;
  }

  .nav-links {
    justify-content: flex-end;
  }

  .nav-links a {
    padding-inline: 8px;
  }

  .hero-content {
    padding: 58px 0 30px;
  }

  h1 {
    font-size: 35px;
  }

  h2 {
    font-size: 27px;
  }

  .hero-line,
  .intro-copy p,
  .contact-section p {
    font-size: 16px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
  }

  .category-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .category-nav a {
    min-width: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-nav a:nth-child(2n) {
    border-right: 0;
  }

  .category-nav a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .intro-band,
  .works-section,
  .contact-section {
    padding: 44px 0;
  }

  .category-grid,
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .work-group--two-column .category-grid {
    grid-template-columns: 1fr;
  }

  .work-card--featured h4 {
    font-size: 26px;
  }

  .work-body {
    padding: 16px;
  }

  .play-mark {
    width: 46px;
    height: 46px;
  }

}
