:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f3ed;
  --muted: rgba(247, 243, 237, 0.72);
  --accent: #d8b48a;
  --accent-soft: rgba(216, 180, 138, 0.2);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --max: 1320px;
  --film-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 180, 138, 0.12), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(99, 124, 159, 0.16), transparent 30%),
    linear-gradient(180deg, #020202 0%, #090909 45%, #050505 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 18px 18px;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav a,
.eyebrow,
.panel-label,
.work-role,
.frame-label,
.card-index,
.timeline-step span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 172px;
  height: auto;
}

.brand-logo-symbol {
  width: 22px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.site-nav a,
.tab-link {
  color: var(--muted);
  font-size: 0.75rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.tab-link {
  position: relative;
  padding-bottom: 5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.tab-link:not(.is-active) {
  color: rgba(247, 243, 237, 0.42);
}

.tab-link.is-active {
  color: var(--text);
}

.tab-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -3px;
  right: -3px;
  height: 2px;
  background: rgba(216, 180, 138, 0.88);
  border-radius: 1px;
  box-shadow:
    0 0 4px rgba(216, 180, 138, 0.34),
    0 0 10px rgba(216, 180, 138, 0.14);
}

.tab-link:hover {
  color: rgba(247, 243, 237, 0.82);
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.filmography-page {
  padding: 18px 0 72px;
}

.filmography-page > .page-intro,
.filmography-page > .works-list,
.filmography-page > .load-more-wrap {
  max-width: var(--film-max);
  margin-left: auto;
  margin-right: auto;
}

.page-intro {
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.page-intro h2 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
}

.page-intro p:last-child {
  margin: 0;
  max-width: none;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
  white-space: nowrap;
}

.section {
  padding: 54px 0;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 54px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

.hero-copy h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  max-width: 8ch;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-text,
.service-panel p,
.work-meta p,
.contact-list,
.frame-main p,
.focus-list {
  color: var(--muted);
  line-height: 1.7;
}

.page-intro p:last-child,
.service-panel p,
.work-meta p,
.contact-list a,
.contact-list p,
.frame-main p,
.hero-text {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: pretty;
}

.service-panel h3,
.work-meta h3,
.page-intro .eyebrow,
.frame-label {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero-text {
  max-width: 36rem;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions-large {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  margin-top: 26px;
  width: min(100%, 760px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.button-primary {
  background: var(--text);
  color: #060606;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-primary:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.92);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.54);
  color: #ffffff;
}

.button:active {
  transform: translateY(-1px) scale(0.995);
}

.hero-panel,
.service-panel,
.work-card,
.contact-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.logo-stage {
  width: 100%;
}

.hero-logo {
  display: block;
  width: min(100%, 760px);
  height: auto;
}

.hero-actions-large .button {
  flex: 1 1 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.hero-panel {
  margin-left: 10px;
}

.hero-frame {
  padding: 28px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%),
    linear-gradient(145deg, #111 0%, #050505 100%);
}

.frame-main p {
  margin: 0;
  max-width: 20rem;
  font-size: 1rem;
}

.frame-label {
  display: block;
  margin: 0 0 14px;
}

.focus-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.focus-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.frame-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.intro-block {
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-block + .intro-block {
  margin-top: 22px;
}

.intro-contact {
  display: grid;
  gap: 10px;
}

.frame-main-compact p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.intro-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.intro-note p {
  margin: 0;
}

.services-grid {
  display: grid;
  gap: 18px;
}

.service-panel {
  padding: 26px;
}

.service-panel h3,
.work-meta h3 {
  margin: 10px 0 14px;
  font-size: 1.5rem;
  font-weight: 600;
}

.service-panel .panel-label {
  margin: 0;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.service-panel h3 {
  margin: 12px 0 20px;
  color: rgba(247, 243, 237, 0.78);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-panel p + p {
  margin-top: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 10px;
}

.section-heading h2,
.contact-panel h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

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

.works-list {
  display: grid;
  gap: 14px;
}

.work-card.is-hidden {
  display: none;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.52fr) minmax(0, 1.48fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  min-height: auto;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.load-more-wrap.is-hidden {
  display: none;
}

.load-more-button {
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  color: rgba(255, 255, 255, 0.96);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.load-more-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.work-card-cinematography {
  border-left: 3px solid rgba(210, 164, 68, 0.98);
  transition:
    border-left-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.work-card-grading {
  border-left: 3px solid rgba(71, 140, 136, 0.98);
  transition:
    border-left-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.work-card-cinematography:hover {
  transform: translateY(-3px);
  border-left-color: rgba(210, 164, 68, 1);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.42),
    -6px 0 18px rgba(210, 164, 68, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.work-card-grading:hover {
  transform: translateY(-3px);
  border-left-color: rgba(71, 140, 136, 1);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.42),
    -6px 0 18px rgba(71, 140, 136, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.work-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.work-meta p {
  margin: 0;
}

.work-role {
  color: var(--accent);
  font-size: 0.76rem;
}

.work-meta h3 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: clamp(1.56rem, 2.2vw, 2.18rem);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: balance;
}

.work-year,
.work-format {
  color: rgba(247, 243, 237, 0.82);
  font-size: 0.98rem;
}

.work-format {
  margin-top: 4px;
}

.work-description,
.work-extra {
  max-width: 24rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.work-description {
  margin-top: 12px;
}

.work-extra {
  margin-top: 4px;
  color: rgba(247, 243, 237, 0.6);
}

.work-extra-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(71, 140, 136, 0.36);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(71, 140, 136, 0.18), rgba(71, 140, 136, 0.08));
  color: rgba(247, 243, 237, 0.92);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.work-extra-link:hover {
  transform: translateY(-2px);
  border-color: rgba(71, 140, 136, 0.6);
  background: linear-gradient(180deg, rgba(71, 140, 136, 0.24), rgba(71, 140, 136, 0.12));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.work-extra-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.work-extra-link-icon svg {
  width: 16px;
  height: 16px;
}

.work-extra-link-youtube {
  gap: 2px;
  padding: 7px 13px 7px 7px;
  border-color: rgba(255, 84, 84, 0.22);
  background: linear-gradient(180deg, rgba(255, 84, 84, 0.14), rgba(255, 84, 84, 0.08));
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(75, 12, 12, 0.08);
}

.work-extra-link-youtube:hover {
  border-color: rgba(255, 84, 84, 0.34);
  background: linear-gradient(180deg, rgba(255, 84, 84, 0.2), rgba(255, 84, 84, 0.11));
  box-shadow: 0 14px 30px rgba(75, 12, 12, 0.12);
  color: rgba(255, 255, 255, 0.98);
}

.work-extra-link-youtube .work-extra-link-icon {
  width: 42px;
  height: 29px;
  border-radius: 11px;
  background: transparent;
  color: #ff0033;
}

.work-extra-link-youtube .work-extra-link-icon svg {
  width: 24px;
  height: 16px;
}

.work-extra-link-youtube span:last-child {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-left: -2px;
}

.work-meta h3.work-title-long {
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.work-embed {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: var(--media-padding, 56.25%);
  background: #000;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: end;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 56%);
  color: rgba(255, 255, 255, 0.9);
  transition: opacity 180ms ease, background 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.work-card-grading .video-placeholder {
  background: transparent;
}

.video-hover-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.video-hover-badge p {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-hover-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.work-embed.is-playing .video-placeholder {
  opacity: 0;
}

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

.still-card {
  margin: 0;
  position: relative;
  height: 0;
  padding-top: var(--media-padding, 56.25%);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #080808;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.still-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-panel {
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.contact-list {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.contact-list a,
.contact-list p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .tab-link.is-active::after {
    height: 1.5px;
    box-shadow:
      0 0 3px rgba(216, 180, 138, 0.28),
      0 0 8px rgba(216, 180, 138, 0.1);
  }
}

@media (max-width: 1024px) {
  .hero,
  .work-card,
  .contact-panel,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-heading {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .section-heading h2 {
    max-width: 100%;
  }

  .page-intro p:last-child {
    white-space: normal;
  }

  .hero {
    gap: 28px;
  }

  .logo-stage {
    display: flex;
    justify-content: center;
  }

  .hero-logo {
    margin: 0 auto;
  }

  .hero-actions,
  .hero-actions-large {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-panel {
    width: 100%;
    max-width: 780px;
    margin-left: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .work-card {
    min-height: auto;
  }

  .work-embed {
    min-height: 0;
  }

  .still-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 420px;
  }

  .contact-list {
    justify-items: start;
    text-align: left;
  }

  .intro-note {
    flex-direction: column;
  }

  .intro-block,
  .frame-main p {
    text-align: left;
  }

  .frame-main p {
    margin-left: 0;
    margin-right: 0;
  }

  .services-grid {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }

  .service-panel {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 14px 18px;
    gap: 12px;
  }

  .brand-logo {
    width: 148px;
  }

  .brand-logo-symbol {
    width: 17px;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 12px;
    margin-left: auto;
  }

  .tab-link {
    font-size: 0.76rem;
    letter-spacing: 0.01em;
  }

  .tab-link.is-active {
    font-weight: 600;
  }

  .tab-link.is-active::after {
    height: 1px;
    box-shadow:
      0 0 2px rgba(216, 180, 138, 0.24),
      0 0 6px rgba(216, 180, 138, 0.08);
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .hero-frame,
  .overview-card,
  .service-panel,
  .timeline-step,
  .contact-panel {
    padding: 22px;
  }

  .work-embed {
    min-height: 0;
  }

  .still-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions-large {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-actions-large .button {
    flex-basis: 100%;
  }

  .frame-foot {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .site-header {
    gap: 8px;
    padding: 14px 12px 16px;
  }

  .brand-logo-symbol {
    width: 15px;
  }

  .site-nav {
    gap: 8px;
  }

  .tab-link {
    font-size: 0.7rem;
    letter-spacing: 0.01em;
  }

  .tab-link.is-active {
    font-weight: 600;
  }

  .tab-link.is-active::after {
    height: 1px;
    box-shadow:
      0 0 2px rgba(216, 180, 138, 0.2),
      0 0 5px rgba(216, 180, 138, 0.06);
  }
}
