:root {
  --background: #090909;
  --foreground: #f4efe6;
  --muted: #a8a097;
  --line: rgba(244, 239, 230, 0.14);
  --panel: #11110f;
  --panel-strong: #191815;
  --red: #d02a24;
  --cyan: #7fb7c9;
  --amber: #d2a15a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(208, 42, 36, 0.14), transparent 420px),
    radial-gradient(circle at 50% -20%, rgba(127, 183, 201, 0.12), transparent 34rem),
    var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

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

img {
  display: block;
}

main {
  min-height: 100svh;
  overflow: hidden;
}

.masthead {
  position: relative;
  min-height: 54svh;
  padding: 24px clamp(18px, 4vw, 56px) 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.96), rgba(9, 9, 9, 0.76)),
    url("film-production-workspace.png") center / cover;
}

.subpageHeader {
  padding: 24px clamp(18px, 4vw, 56px) clamp(48px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.96), rgba(9, 9, 9, 0.74)),
    url("film-production-workspace.png") center / cover;
}

.subpageIntro {
  max-width: 980px;
}

.subpageIntro p:last-child {
  max-width: 760px;
  color: rgba(244, 239, 230, 0.78);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.masthead::after {
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  content: "";
  background:
    repeating-linear-gradient(
      90deg,
      rgba(244, 239, 230, 0.22) 0 16px,
      transparent 16px 32px
    );
  opacity: 0.16;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.brand {
  color: var(--foreground);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.navLinks {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(244, 239, 230, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.navLinks a:hover,
.profileLinks a:hover {
  color: var(--foreground);
}

.mastheadGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
}

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

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

h1 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(58px, 11vw, 148px);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  color: var(--red);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.introCard {
  border-left: 4px solid var(--red);
  padding: 0 0 0 22px;
  color: rgba(244, 239, 230, 0.82);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
}

.introCard p:last-child {
  margin-bottom: 0;
}

.heroMemberBlock {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: clamp(26px, 4vw, 48px);
}

.heroMemberBlock > span {
  color: rgba(244, 239, 230, 0.52);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.projectSection,
.commercialSection {
  padding: clamp(34px, 5vw, 72px) clamp(14px, 3vw, 40px) clamp(72px, 8vw, 120px);
}

.commercialSection {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.035), transparent 30%),
    linear-gradient(90deg, rgba(85, 183, 205, 0.08), transparent 42%),
    var(--background);
}

.commercialSection.isStandalone {
  border-top: 0;
}

.productionSection {
  padding-top: 0;
}

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

.logoWall.isPreview {
  margin-bottom: 22px;
}

.sectionIntro {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 46px);
}

.sectionIntro .kicker {
  margin-bottom: 0;
}

.projectWall {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(170px, 19.5vw, 286px);
  gap: clamp(8px, 1vw, 16px);
}

.projectCard {
  position: relative;
  grid-row: span 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.projectCard.isFeatured {
  grid-column: span 2;
  grid-row: span 2;
  border-color: rgba(210, 161, 90, 0.46);
  box-shadow: 0 30px 96px rgba(0, 0, 0, 0.48);
}

.projectCard:hover {
  z-index: 2;
  border-color: rgba(244, 239, 230, 0.44);
  filter: brightness(1.08);
  transform: translateY(-6px) scale(1.015);
}

.projectCard img {
  width: 100%;
  height: 100%;
  background: #050505;
  object-fit: contain;
}

.projectCard.isFeatured .projectInfo {
  padding: 72px 18px 18px;
}

.projectCard.isFeatured .projectInfo h3 {
  font-size: clamp(22px, 2.2vw, 34px);
}

.projectCard.isFeatured .projectInfo p {
  font-size: 13px;
}

.projectInfo {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 13px 13px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84) 52%, rgba(0, 0, 0, 0.96));
}

.projectInfo span {
  display: block;
  margin-bottom: 7px;
  color: var(--amber);
  font-family: var(--font-geist-mono), monospace;
  font-size: 12px;
  font-weight: 900;
}

.projectInfo h3 {
  margin-bottom: 7px;
  font-size: clamp(16px, 1.4vw, 22px);
  text-transform: uppercase;
}

.projectInfo p {
  margin: 0;
  color: rgba(244, 239, 230, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.logoWall {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(5px, 0.55vw, 8px);
}

.logoTile {
  display: grid;
  min-height: clamp(68px, 6.2vw, 88px);
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 6px;
  padding: clamp(8px, 0.9vw, 12px);
  background:
    linear-gradient(150deg, rgba(244, 239, 230, 0.08), rgba(244, 239, 230, 0.015)),
    rgba(11, 11, 11, 0.72);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
}

.logoTile.hasLogo {
  grid-template-rows: minmax(28px, 1fr) auto;
}

.logoMark {
  align-self: end;
  width: min(76%, 112px);
  max-height: 30px;
  object-fit: contain;
  object-position: left center;
}

.logoTile.hasLogoBackdrop .logoMark {
  background: rgba(244, 239, 230, 0.9);
  border-radius: 3px;
  box-sizing: content-box;
  padding: 4px 7px;
}

.logoTile strong {
  color: var(--paper);
  font-size: clamp(15px, 1.15vw, 22px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.logoTile.hasLogo strong {
  color: rgba(244, 239, 230, 0.72);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  line-height: 1.2;
}

.logoTile span {
  display: none;
  color: rgba(244, 239, 230, 0.58);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.textLink {
  display: inline-flex;
  border-bottom: 1px solid rgba(244, 239, 230, 0.38);
  color: rgba(244, 239, 230, 0.82);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.textLink:hover {
  color: var(--foreground);
  border-bottom-color: var(--foreground);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 86px);
  border-top: 1px solid var(--line);
  padding: clamp(52px, 8vw, 110px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(208, 42, 36, 0.18), transparent 44%),
    var(--panel-strong);
}

.contactPanel {
  display: grid;
  gap: 18px;
  align-content: start;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.08;
}

.profileLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profileLinks a {
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 6px;
  padding: 10px 13px;
  color: rgba(244, 239, 230, 0.74);
  font-size: 14px;
  font-weight: 800;
}

.memberBlock {
  display: grid;
  gap: 11px;
  margin-top: 8px;
}

.memberBlock > span {
  color: rgba(244, 239, 230, 0.52);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.memberLogos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.memberLogos a {
  display: grid;
  place-items: center;
  min-width: 92px;
  height: 46px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 6px;
  padding: 8px 12px;
  background: rgba(244, 239, 230, 0.05);
}

.memberLogos img {
  max-width: 96px;
  max-height: 28px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .projectWall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(210px, 24vw, 310px);
  }

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

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

@media (max-width: 960px) {
  .mastheadGrid,
  .sectionIntro,
  .contact {
    grid-template-columns: 1fr;
  }

  .projectWall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(260px, 36vw, 390px);
  }

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

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

@media (max-width: 700px) {
  .nav {
    padding-bottom: 54px;
  }

  .navLinks {
    display: none;
  }

  .masthead {
    min-height: auto;
  }

  .introCard {
    border-left-width: 3px;
    padding-left: 16px;
  }

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

  .projectWall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(320px, 73vw, 540px);
  }

  .projectCard:hover {
    transform: none;
  }

  .projectCard.isFeatured {
    grid-column: span 2;
  }

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

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

  .logoTile {
    min-height: 72px;
  }

  .logoMark {
    width: min(68%, 110px);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 54px;
  }

  .projectSection,
  .commercialSection {
    padding-left: 10px;
    padding-right: 10px;
  }

  .projectWall {
    gap: 10px;
  }

  .projectInfo {
    padding: 34px 10px 10px;
  }

  .projectInfo h3 {
    font-size: 15px;
  }

  .projectInfo p {
    font-size: 11px;
  }
}
