html {
  scroll-behavior: smooth;
}

body.home #qodef-page-inner {
  display: none;
}

body.home #qodef-page-outer {
  margin-top: -100px;
}

.iw-portfolio {
  --ink: #f7f2ea;
  --muted: rgba(247, 242, 234, 0.72);
  --line: rgba(247, 242, 234, 0.18);
  --gold: #d8b46a;
  --red: #9d2f22;
  --coal: #0a0a0a;
  --paper: #e7dfd0;
  background: var(--coal);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  overflow: hidden;
}

.iw-portfolio * {
  box-sizing: border-box;
}

.iw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 160px clamp(22px, 6vw, 96px) clamp(36px, 8vw, 88px);
  isolation: isolate;
}

.iw-hero-media,
.iw-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.iw-hero-media {
  z-index: -2;
  background: #050505;
}

.iw-hero-media video {
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.86) contrast(1.12);
}

.iw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 42%);
}

.iw-hero-content {
  width: min(1120px, 100%);
}

.iw-kicker,
.iw-section-kicker {
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(18px, 1.65vw, 28px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 18px;
}

.iw-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(76px, 14vw, 190px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.iw-hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.7;
}

.iw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.iw-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 13px 24px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.iw-button:hover {
  background: var(--ink);
  color: var(--coal);
}

.iw-button.is-muted {
  border-color: var(--line);
  color: var(--muted);
}

.iw-button.is-muted:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--coal);
}

.iw-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.iw-role {
  min-height: 290px;
  padding: clamp(28px, 5vw, 58px);
  border-right: 1px solid var(--line);
  background: #0d0d0d;
}

.iw-role:last-child {
  border-right: 0;
}

.iw-role span {
  display: block;
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.iw-role h2 {
  margin: 18px 0 18px;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.iw-role p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.iw-section {
  padding: clamp(64px, 9vw, 128px) clamp(22px, 6vw, 96px);
}

.iw-section-header {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.iw-section h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(58px, 8vw, 122px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.iw-section-lede {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.iw-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.iw-work {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #111;
}

.iw-work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
  transition: transform 420ms ease, opacity 420ms ease;
}

.iw-work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.02) 62%);
}

.iw-work:hover img {
  opacity: 0.9;
  transform: scale(1.08);
}

.iw-work-copy {
  position: relative;
  z-index: 1;
}

.iw-work-copy small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.iw-work-copy h3 {
  margin: 9px 0 8px;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.iw-work-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.iw-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  background: var(--paper);
  color: #151515;
}

.iw-profile figure {
  margin: 0;
}

.iw-profile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.16) contrast(1.08);
}

.iw-profile h2,
.iw-profile .iw-section-kicker {
  color: #151515;
}

.iw-profile .iw-section-kicker {
  color: var(--red);
}

.iw-profile p {
  max-width: 740px;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.75;
}

.iw-credits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(0, 0, 0, 0.18);
}

.iw-credit {
  padding: 24px;
  background: rgba(255, 255, 255, 0.34);
}

.iw-credit strong {
  display: block;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.iw-credit span {
  display: block;
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.iw-contact {
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.65fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.96), rgba(10, 10, 10, 0.66)),
    url("/wp-content/uploads/2026/07/release-candidate-film-still.png") center / cover;
}

.iw-contact p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.55;
}

.iw-contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iw-contact-list a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  text-decoration: none;
}

.iw-contact-list a:hover {
  color: var(--gold);
}

@media (max-width: 1024px) {
  body.home #qodef-page-outer {
    margin-top: -70px;
  }

  .iw-roles,
  .iw-profile,
  .iw-contact {
    grid-template-columns: 1fr;
  }

  .iw-role {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .iw-role:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 680px) {
  .iw-hero {
    min-height: 86vh;
    padding-top: 118px;
  }

  .iw-section-header {
    display: block;
  }

  .iw-section-lede {
    margin-top: 18px;
  }

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

  .iw-work {
    min-height: 360px;
  }
}
