/* R. Malcolm Jones — portfolio, option E (polished)
   Entertainment-portal layout: black chrome, red accent, condensed uppercase
   heads, Ken-Burns hero carousel, work rails. */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:wght@400;500;600;700&display=swap");

:root {
  --red: #d81f26;
  --red-hot: #ff2d35;
  --ink: #0b0b0b;
  --panel: #161616;
  --line: #2a2a2a;
  --fg: #fff;
  --dim: #9d9d9d;
  --pad: clamp(14px, 3vw, 44px);
  --max: 1500px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--red); color: #fff; }

body {
  background: var(--ink);
  color: var(--fg);
  font-family: "Barlow", "Trebuchet MS", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 2px; }

.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.oswald { font-family: "Oswald", Impact, sans-serif; }

/* ---------- chrome ---------- */

.utility {
  background: #000;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.utility .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  gap: 14px;
}

.utility a { color: var(--dim); transition: color 0.2s; }
.utility a:hover { color: #fff; }
.utility .right { display: flex; gap: clamp(10px, 2vw, 26px); }

.brandbar { background: #000; text-align: center; padding: 18px 0 14px; }

.wordmark {
  display: inline-block;
  position: relative;
  background: var(--red);
  color: #fff;
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 2.6vw, 30px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 20px 6px;
  line-height: 1;
  box-shadow: 0 6px 24px -8px rgba(216, 31, 38, 0.8);
}

.brandbar .tag {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
}

.mainnav {
  background: #000;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 60;
}

.mainnav .shell {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-items {
  display: flex;
  gap: clamp(12px, 2.6vw, 40px);
  justify-content: center;
  flex-wrap: wrap;
}

.nav-toggle { display: none; }

.mainnav button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8e8e8;
  padding: 14px 2px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.2s, border-color 0.2s;
}

.mainnav button:hover { color: var(--red-hot); }
.mainnav button.on { color: #fff; border-color: #fff; }

/* ---------- hero carousel ---------- */

.hero { position: relative; background: #000; overflow: hidden; }

.hero .frames { position: relative; height: clamp(360px, 56vw, 640px); }

.hero .frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  cursor: pointer;
  pointer-events: none;
}

.hero .frame.on { opacity: 1; pointer-events: auto; }

.hero .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
}

.hero .frame.on img { animation: kenburns 7s ease-out forwards; }

@keyframes kenburns {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

.hero .frame .grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.66) 38%, rgba(0,0,0,0.05) 72%),
              linear-gradient(0deg, rgba(0,0,0,0.88), transparent 55%);
}

.hero .copy {
  position: absolute;
  left: 0; right: 0; bottom: clamp(46px, 9vh, 96px);
  padding: 0 var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  pointer-events: none;
}

.hero .copy > * { pointer-events: auto; }

.hero .copy .stage { max-width: 620px; }

.hero .copy .stage > * {
  opacity: 0;
  transform: translateY(16px);
  animation: heroin 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .copy .stage > *:nth-child(2) { animation-delay: 0.08s; }
.hero .copy .stage > *:nth-child(3) { animation-delay: 0.16s; }
.hero .copy .stage > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes heroin { to { opacity: 1; transform: none; } }

.chip {
  display: inline-block;
  background: var(--red);
  font-family: "Oswald", Impact, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px 4px;
  margin-bottom: 16px;
}

.hero h2 {
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 16ch;
  text-shadow: 0 3px 22px rgba(0,0,0,0.7);
}

.hero .sub {
  margin-top: 14px;
  font-size: clamp(12px, 1.4vw, 15.5px);
  color: #d9d9d9;
  letter-spacing: 0.05em;
  max-width: 48ch;
  line-height: 1.55;
}

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  background: var(--red);
  color: #fff;
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-red svg { width: 12px; height: 12px; fill: currentColor; }

.btn-red:hover {
  background: var(--red-hot);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(255, 45, 53, 0.9);
}

.hero .arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(44px, 6vw, 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  z-index: 3;
  transition: color 0.2s, background 0.2s;
}

.hero .arrow:hover { color: #fff; background: linear-gradient(90deg, rgba(0,0,0,0.45), transparent); }
.hero .arrow.next:hover { background: linear-gradient(-90deg, rgba(0,0,0,0.45), transparent); }
.hero .arrow.prev { left: 0; }
.hero .arrow.next { right: 0; }
.hero .arrow svg { width: 22px; height: 38px; }

.hero .dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero .dots button {
  position: relative;
  width: 34px; height: 4px;
  border: none; padding: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  overflow: hidden;
}

.hero .dots button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.hero .dots button.on::after { animation: dashfill 6s linear forwards; }

@keyframes dashfill { to { transform: scaleX(1); } }

/* ---------- rows ---------- */

.row { padding: clamp(30px, 4vh, 44px) 0 0; }


.grid-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 18px;
  padding-bottom: 12px;
}

/* poster card */

.card { scroll-snap-align: start; cursor: pointer; }

.card .poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.28s ease, border-color 0.28s, box-shadow 0.28s;
}

.card:hover .poster {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 16px 34px -12px rgba(216,31,38,0.55), 0 6px 18px rgba(0,0,0,0.6);
}

.card .poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card:hover .poster img { transform: scale(1.05); }

.card .poster video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}

.card .poster video.ready { opacity: 1; }

.card .poster::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}

.card:hover .poster::after { opacity: 1; }

.card .poster .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s, transform 0.28s;
  transform: scale(0.85);
  z-index: 2;
}

.card:hover .poster .play { opacity: 1; transform: scale(1); }

.card .poster .play i {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(216,31,38,0.9);
}

.card .poster .play svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }

.card .poster.no-art img,
.card .poster.no-art .play { display: none; }

.card .poster.no-art {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, #1d1d1d, #101010);
  border-color: var(--line);
}

.card .poster.no-art::before {
  content: attr(data-label) " — artwork pending";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 18px;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f6f6f;
  z-index: 1;
}

.card .cap { padding: 10px 1px 0; }

.card .cap .t {
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  transition: color 0.2s;
}

.card:hover .cap .t { color: var(--red-hot); }

.card .cap .s {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ---------- panels ---------- */

.panel { display: none; padding: clamp(26px, 5vh, 60px) 0 20px; }
.panel.on { display: block; }

.panel h3 {
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.panel .redrule { width: 68px; height: 4px; background: var(--red); margin-bottom: 26px; transform: skewX(-14deg); }

.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 3vw, 52px); align-items: start; }
.about-grid img { width: 100%; display: block; border: 1px solid var(--line); }

.panel p { font-size: 15.5px; line-height: 1.85; color: #cfcfcf; margin-bottom: 1.2em; max-width: 68ch; }
.panel em { font-style: italic; color: #fff; }

.contact-rows { max-width: 620px; }

.contact-rows a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: color 0.2s, padding 0.2s;
}

.contact-rows a:hover { color: var(--red-hot); padding-left: 8px; }
.contact-rows .k { font-family: "Oswald", Impact, sans-serif; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.96);
  display: none; flex-direction: column;
  z-index: 100;
  padding: var(--pad);
}

.lightbox.open { display: flex; }

.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 12px; }

.lb-top .t {
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 2.2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lb-close {
  background: var(--red); border: none; color: #fff;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 18px; cursor: pointer;
}

.lb-close:hover { background: var(--red-hot); }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage video { max-width: 100%; max-height: 100%; background: #000; outline: none; }
.lb-clips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 14px; }

.lb-clips button {
  background: none; border: 1px solid var(--line); color: #ddd;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 15px; cursor: pointer;
}

.lb-clips button.on { background: var(--red); border-color: var(--red); color: #fff; }

.lb-credit {
  text-align: center; padding-top: 12px;
  font-size: 11.5px; color: var(--dim);
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: pre-line; line-height: 1.85;
}

/* ---------- footer ---------- */

footer { background: #000; border-top: 1px solid var(--line); margin-top: 48px; padding: 34px 0 40px; }

footer .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
footer .fname { font-family: "Oswald", Impact, sans-serif; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
footer .links { display: flex; gap: 22px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
footer .links a { color: var(--dim); }
footer .links a:hover { color: var(--red-hot); }
footer .fine { width: 100%; font-size: 10.5px; color: #6a6a6a; letter-spacing: 0.1em; }

/* ---------- responsive / motion ---------- */

@media (max-width: 1150px) { .grid-wrap { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .grid-wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .grid-wrap { grid-template-columns: 1fr; } }

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .utility .shell { font-size: 10px; }
  .hero .arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .frame.on img { animation: none; }
  .hero .copy .stage > * { animation: none; opacity: 1; transform: none; }
  .hero .dots button.on::after { animation: none; transform: scaleX(1); }
}

/* ================= private DP selects page ================= */

body.private { background: #070707; }

/* passcode gate */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(60vw 60vh at 50% 0%, rgba(216,31,38,0.10), transparent 70%),
    #070707;
}

.gate-box { width: min(430px, 100%); text-align: center; }

.gate-mark {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 3.4vw, 24px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px 6px;
  line-height: 1;
}

.gate-sub {
  margin-top: 12px;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.gate-note {
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #b9b9b9;
}

#gate-form { margin-top: 22px; display: flex; gap: 10px; }

#gate-input {
  flex: 1;
  min-width: 0;
  background: #141414;
  border: 1px solid var(--line);
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  padding: 12px 14px;
}

#gate-input:focus { outline: none; border-color: var(--red); }
#gate-form .btn-red { margin-top: 0; }

.gate-err {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-hot);
}

/* intro */


.private footer { margin-top: 40px; }


/* Vimeo player inside the lightbox */
.lb-stage iframe {
  width: 100%;
  max-width: calc((100vh - 200px) * 1.7778);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  display: block;
}
.lb-stage iframe[hidden] { display: none; }

/* ---------- contact form ---------- */

.contact-lead {
  font-size: 15.5px;
  line-height: 1.8;
  color: #cfcfcf;
  max-width: 56ch;
  margin-bottom: 30px;
}

.cform { max-width: 720px; }
.cform .hp { position: absolute; left: -9999px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cf { display: block; margin-bottom: 18px; }

.cf > span {
  display: block;
  font-family: "Oswald", Impact, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 7px;
}

.cf > span em { font-style: normal; color: #5f5f5f; text-transform: none; letter-spacing: 0.06em; }

.cf input,
.cf select,
.cf textarea {
  width: 100%;
  background: #141414;
  border: 1px solid var(--line);
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}

.cf textarea { resize: vertical; line-height: 1.6; }
.cf select { appearance: none; cursor: pointer; }

.cf input:focus,
.cf select:focus,
.cf textarea:focus { outline: none; border-color: var(--red); }

.cform .btn-red { margin-top: 8px; }

/* ---------- thank-you page ---------- */

.thanks { padding: clamp(60px, 14vh, 150px) 0; max-width: 620px; }
.thanks .redrule { width: 68px; height: 4px; background: var(--red); transform: skewX(-14deg); margin-bottom: 24px; }

.thanks h1 {
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.thanks p { margin-top: 14px; font-size: 16px; line-height: 1.8; color: #cfcfcf; }
.thanks .btn-red { margin-top: 28px; text-decoration: none; }

@media (max-width: 620px) { .cf-row { grid-template-columns: 1fr; gap: 0; } }


/* ---------- mobile nav (hamburger) ---------- */

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px 2px;
    width: 46px;
  }
  .nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
  }
  .mainnav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mainnav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .mainnav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 3px solid var(--red);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 65;
  }
  .mainnav.open .nav-items { max-height: 75vh; }

  .nav-items button {
    width: 100%;
    text-align: center;
    padding: 16px 0;
    margin: 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 15px;
  }
  .nav-items button.on { color: var(--red-hot); border-bottom-color: #1a1a1a; }

  /* tighten the masthead on small screens */
  .utility { display: none; }
  .brandbar { padding: 12px 0 10px; }
  .wordmark { font-size: 22px; }
  .brandbar .tag { font-size: 9px; letter-spacing: 0.24em; }
}

/* ---------- lightbox showcase (poster + link, non-video) ---------- */
.lb-stage img#lb-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.lb-stage img#lb-image[hidden] { display: none; }
.lb-actions { display: flex; justify-content: center; padding-top: 14px; }
.lb-actions:empty { display: none; }
.lb-actions a.btn-red { text-decoration: none; margin-top: 0; }
/* showcase card: swap the play triangle for a corner tag */
.card.showcase .poster .play i { background: rgba(0,0,0,0.55); }
.card .poster .tag {
  position: absolute; top: 0; left: 0;
  background: var(--red);
  font-family: "Oswald", Impact, sans-serif;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 9px 3px; z-index: 2;
}