:root {
  --black: #000;
  --near-black: #000;
  --panel: #000;
  --white: #f2f2f2;
  --muted: #8f8f8f;
  --line: rgba(255, 255, 255, 0.16);
  --red: #b90810;
  --red-hot: #e20d18;
  --silver: #bdbdbd;
  --shadow: rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background: #000;
}

.noise {
  display: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav {
  gap: 6px;
  padding: 5px;
  border: 0;
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #000;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.topbar.is-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.topbar.is-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav a {
  color: var(--silver);
  text-decoration: none;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.stage {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.stage::-webkit-scrollbar {
  display: none;
}

.panel {
  position: relative;
  display: grid;
  flex: 0 0 100vw;
  min-width: 100vw;
  height: 100vh;
  padding: 112px clamp(24px, 5vw, 72px) 96px;
  scroll-snap-align: start;
  overflow: hidden;
}

.hero {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 6vw, 96px);
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 56vh;
}

.hero-mark::before {
  position: absolute;
  width: min(60vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  content: "";
  transform: rotate(45deg);
}

.hero-mark img {
  position: relative;
  width: min(52vw, 520px);
  filter: drop-shadow(0 34px 70px var(--shadow));
}

.hero-copy {
  max-width: 650px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--red-hot);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 136px;
  line-height: 0.78;
  font-weight: 800;
}

h2 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: 20px;
  line-height: 0.96;
}

h3 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1;
}

.hero-copy > p:not(.kicker),
.work-description,
.service-list p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 20px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-hot);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.scroll-note {
  position: absolute;
  right: 34px;
  bottom: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.reel-panel {
  grid-template-rows: auto 1fr;
  gap: 34px;
}

.section-heading {
  align-self: end;
  max-width: 980px;
}

.gallery-shell {
  position: relative;
  min-width: 0;
}

.video-strip {
  display: flex;
  gap: 18px;
  height: 100%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.video-strip::-webkit-scrollbar {
  display: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #000;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
}

.skip-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 14px;
  margin: auto;
}

.skip-icon::before,
.skip-icon::after {
  position: absolute;
  top: 50%;
  content: "";
  transform: translateY(-50%);
}

.skip-icon::before {
  width: 3px;
  height: 14px;
  background: var(--white);
}

.skip-icon::after {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.skip-icon-next::before {
  right: 0;
}

.skip-icon-next::after {
  left: 1px;
  border-left: 10px solid var(--white);
}

.skip-icon-prev::before {
  left: 0;
}

.skip-icon-prev::after {
  right: 1px;
  border-right: 10px solid var(--white);
}

.gallery-arrow:hover {
  background: var(--red);
}

.gallery-arrow-prev {
  left: 12px;
}

.gallery-arrow-next {
  right: 12px;
}

.video-card {
  position: relative;
  display: grid;
  flex: 0 0 min(76vw, 920px);
  min-height: 440px;
  align-items: end;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 30px 90px var(--shadow);
  cursor: pointer;
}

.video-card::before,
.video-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.video-card::before {
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.86) 86%);
}

.video-card::after {
  background-image:
    var(--thumb, none),
    linear-gradient(#000, #000);
  background-position: center;
  background-size: cover;
  opacity: 0.9;
  transition: transform 500ms ease;
}

.video-card:hover::after,
.video-card:focus-visible::after,
.video-card.is-previewing::after {
  background-image:
    var(--preview, var(--thumb, none)),
    linear-gradient(#000, #000);
  transform: scale(1.04);
}

.video-card:focus-visible {
  outline: 1px solid var(--red-hot);
  outline-offset: 4px;
}

.video-card > * {
  position: relative;
  z-index: 2;
}

.video-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 12px 18px;
}

.video-meta span {
  grid-row: span 3;
  color: var(--red-hot);
  font-size: 52px;
  line-height: 0.9;
  font-weight: 800;
}

.video-meta p {
  margin-bottom: 8px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-meta h3 {
  grid-column: 2 / 4;
  font-size: 42px;
}

.video-meta small {
  color: var(--muted);
  font-weight: 800;
}

.player-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  padding: 32px;
  place-items: center;
}

.player-shell.is-open {
  display: grid;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  backdrop-filter: blur(18px);
}

.player-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  gap: 18px;
}

.player-topline,
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.player-topline h2 {
  font-size: 34px;
}

.icon-button,
.control-button,
.quality-control select {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #080808;
  color: var(--white);
  font: inherit;
  font-weight: 800;
}

.icon-button {
  width: 42px;
  cursor: pointer;
}

.video-frame {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: none;
}

.fullscreen-exit {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.fullscreen-exit:hover {
  background: var(--red);
}

.video-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border: 0;
  background: #000;
}

.video-frame:fullscreen .fullscreen-exit {
  display: grid;
  place-items: center;
}

.video-frame:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border: 0;
  background: #000;
}

.video-frame:-webkit-full-screen .fullscreen-exit {
  display: grid;
  place-items: center;
}

.video-frame video,
.video-frame iframe,
.video-fallback {
  width: 100%;
  height: 100%;
}

.video-frame video,
.video-frame iframe {
  border: 0;
  object-fit: contain;
}

.video-fallback {
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.video-fallback span {
  color: var(--white);
  font-weight: 800;
}

.player-controls {
  border: 1px solid var(--line);
  padding: 12px;
  background: #000;
}

.playback-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.control-button {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  cursor: pointer;
}

.compact-control {
  min-width: 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1;
}

.control-button:hover,
.icon-button:hover {
  background: var(--red);
}

.control-button:disabled,
.volume-control input:disabled,
.quality-control select:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.volume-control,
.quality-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.volume-control input {
  width: 160px;
  accent-color: var(--red-hot);
}

.quality-control select {
  padding: 0 12px;
  color: var(--white);
  cursor: pointer;
}

.services {
  grid-template-columns: minmax(320px, 0.7fr) minmax(560px, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}

.compact h2 {
  font-size: 58px;
}

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

.service-list article {
  display: grid;
  grid-template-columns: 56px 0.36fr 1fr;
  align-items: baseline;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.service-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.service-list span {
  color: var(--red-hot);
  font-weight: 800;
}

.service-list p {
  margin-bottom: 0;
  font-size: 16px;
}

.qr-panel {
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 520px);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.qr-lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.qr-tool {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  padding: clamp(18px, 2.2vw, 26px);
  background: #050505;
  box-shadow: 0 30px 90px var(--shadow);
}

.qr-field {
  display: grid;
  gap: 9px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.qr-field input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  background: #000;
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  outline: 0;
  text-transform: none;
}

.qr-field input:focus {
  border-color: rgba(211, 12, 25, 0.72);
}

.qr-generate {
  width: 100%;
  min-height: 50px;
}

.qr-preview {
  display: grid;
  min-height: 330px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: #080808;
  padding: 18px;
}

.qr-preview p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.qr-preview canvas {
  width: min(310px, 100%);
  height: auto;
  background: #fff;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.qr-action-button {
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.24);
  background: #111;
  color: var(--white);
}

.qr-action-button:not(:disabled) {
  border-color: rgba(211, 12, 25, 0.8);
  background: rgba(211, 12, 25, 0.18);
  box-shadow: inset 0 0 0 1px rgba(211, 12, 25, 0.24);
}

.qr-action-button:not(:disabled):hover {
  background: var(--red);
}

.qr-action-button:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.qr-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.qr-status.is-error {
  color: #ff6b72;
  font-weight: 750;
}

.contact {
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  width: min(1120px, 100%);
}

.contact-card {
  display: grid;
  justify-items: start;
  width: 100%;
  text-align: left;
}

.contact-card img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin-bottom: 24px;
}

.contact-card h2 {
  margin-bottom: 28px;
}

.contact-info {
  display: grid;
  gap: 22px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.contact-info article {
  display: grid;
  gap: 6px;
}

.contact-info h3,
.contact-form h3 {
  margin: 0;
  color: var(--white);
  font-size: 17px;
}

.contact-info p,
.contact-info a {
  margin: 0;
  color: var(--silver);
  text-decoration: none;
  font-weight: 650;
}

.contact-info a:hover {
  color: var(--white);
}

.contact-form {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 34px);
  background: #050505;
  box-shadow: 0 30px 90px var(--shadow);
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 15px;
  outline: 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red-hot);
}

.contact-privacy {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-form .button {
  justify-self: end;
  min-height: 46px;
}

.contact-status {
  min-height: 20px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-status.is-error {
  color: #ff6b72;
  font-weight: 750;
}

.rail {
  position: fixed;
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  bottom: 78px;
  z-index: 11;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.progress {
  width: 0;
  height: 100%;
  background: var(--red-hot);
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(18px);
}

.bottom-bar p {
  margin: 0;
  color: var(--silver);
  font-size: 13px;
  font-weight: 700;
}

.bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.bottom-actions .button {
  min-height: 40px;
}

.sound-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 0 11px;
  background: rgba(0, 0, 0, 0.94);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sound-toggle:hover {
  border-color: rgba(255, 255, 255, 0.36);
}

.sound-bars {
  display: inline-flex;
  width: 18px;
  height: 16px;
  align-items: end;
  gap: 3px;
}

.sound-bars span {
  display: block;
  width: 3px;
  min-height: 5px;
  background: var(--red-hot);
}

.sound-bars span:nth-child(1) {
  height: 8px;
}

.sound-bars span:nth-child(2) {
  height: 14px;
}

.sound-bars span:nth-child(3) {
  height: 10px;
}

.sound-toggle.is-muted .sound-bars span {
  height: 3px;
  background: var(--muted);
}

.sound-toggle.is-paused .sound-bars span {
  background: var(--silver);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .topbar {
    align-items: center;
    min-height: 64px;
    padding: 12px 18px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    display: grid;
    order: 4;
  }

  .sound-toggle {
    order: 3;
    margin-left: auto;
    min-height: 38px;
  }

  .sound-label {
    display: none;
  }

  .nav {
    order: 5;
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 6px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .topbar.is-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }

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

  .stage {
    display: block;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .panel {
    display: grid;
    min-width: 0;
    width: 100%;
    min-height: 100vh;
    height: auto;
    padding: 96px 20px 56px;
    padding-bottom: 132px;
  }

  .hero,
  .services,
  .qr-panel,
  .contact-layout,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    min-height: 38vh;
    order: -1;
  }

  .hero-mark img {
    width: min(78vw, 380px);
  }

  h1 {
    font-size: 76px;
  }

  h2,
  .compact h2 {
    font-size: 38px;
  }

  .hero-copy > p:not(.kicker),
.work-description,
  .service-list p {
    font-size: 16px;
  }

  .reel-panel {
    min-height: 100vh;
  }

  .video-strip {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .gallery-arrow {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .video-card {
    flex-basis: calc(100vw - 40px);
    min-height: 58vh;
  }

  .video-meta {
    grid-template-columns: 1fr auto;
  }

  .video-meta span {
    grid-row: auto;
    font-size: 36px;
  }

  .video-meta p {
    grid-column: 1 / 3;
  }

  .video-meta h3 {
    grid-column: 1 / 3;
    font-size: 30px;
  }

  .player-shell {
    padding: 14px;
  }

  .fullscreen-exit {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .player-topline,
  .player-controls {
    align-items: stretch;
  }

  .player-controls {
    display: grid;
  }

  .playback-group {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    justify-items: center;
  }

  .control-button,
  .compact-control {
    min-width: 0;
    width: 100%;
  }

  .compact-control {
    aspect-ratio: 1;
    width: 38px;
    justify-self: center;
  }

  .volume-control,
  .quality-control {
    justify-content: space-between;
  }

  .volume-control input {
    width: min(48vw, 180px);
  }

  .service-list article {
    grid-template-columns: 44px 1fr;
  }

  .service-list p {
    grid-column: 2;
  }

  .qr-panel {
    align-content: start;
    gap: 24px;
  }

  .qr-tool {
    gap: 14px;
    padding: 16px;
  }

  .qr-field input,
  .qr-generate,
  .qr-action-button {
    min-height: 48px;
  }

  .qr-preview {
    min-height: 260px;
    padding: 14px;
  }

  .qr-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-card {
    justify-items: center;
    text-align: center;
  }

  .contact-info {
    justify-items: center;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-form .button {
    width: 100%;
    justify-self: stretch;
  }

  .rail,
  .scroll-note {
    display: none;
  }

  .bottom-bar {
    display: grid;
    gap: 10px;
    min-height: 112px;
    padding: 12px 18px;
  }

  .bottom-bar p {
    font-size: 12px;
  }

  .bottom-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .bottom-actions .button {
    padding-inline: 10px;
  }
}

/* Silent MP4 previews sit above the still image, beneath the text gradient. */
.video-card > .video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.video-card:hover > .video-thumbnail.is-ready,
.video-card.is-touch-preview > .video-thumbnail.is-ready { opacity: 0.9; }
.video-card::before { z-index: 2; pointer-events: none; }
.video-card > .video-meta { z-index: 3; }
/* Match the work introduction to the hero typography. */
.reel-panel .section-heading { max-width: 650px; }
.reel-panel .section-heading > .kicker {
  font-size: 30px;
  line-height: normal;
  overflow-wrap: anywhere;
}
.work-description {
  font-weight: 400;
  margin-bottom: 0;
}
@media (hover: none) {
  .video-card:not(.is-touch-preview) > .video-thumbnail.is-ready { opacity: 0; }
  .video-card.is-touch-preview::before {
    content: "Tap again to watch";
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
  }
}
/* Keep the brand line intact; JavaScript fits it to the available width. */
.reel-panel .section-heading { min-width: 0; width: 100%; }
#work-title {
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: min(30px, 5vw);
}
#work-title .brand-white { color: #fff; }
/* Keep the player inside the visible viewport, including rotated phones. */
body.player-open { overflow: hidden; }
.player-shell {
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  overscroll-behavior: contain;
}
.player-panel { min-width: 0; }
.player-topline > div { min-width: 0; }
.player-topline .icon-button { flex-shrink: 0; }

@media (max-width: 900px), (max-height: 600px) {
  .player-shell {
    padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }
  .player-panel {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(80px, 1fr) auto;
    gap: 8px;
  }
  .player-topline { align-items: center; gap: 8px; }
  .player-topline .kicker { font-size: 14px; margin-bottom: 4px; }
  .player-topline h2 {
    font-size: 22px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .player-panel .video-frame {
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .video-frame > video,
  .video-frame > iframe,
  .video-frame > .video-fallback {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
  .player-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px;
  }
  .playback-group { display: flex; flex-shrink: 0; gap: 4px; }
  .player-controls .control-button { width: auto; min-width: 44px; min-height: 44px; }
  .player-controls .compact-control { width: 44px; height: 44px; }
  .player-controls .volume-control,
  .player-controls .quality-control { gap: 6px; font-size: 11px; }
  .player-controls .volume-control input { width: 80px; }
  .player-controls .quality-control select { min-height: 44px; max-width: 105px; padding: 0 6px; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .player-topline h2 { font-size: 18px; }
  .player-topline .kicker { font-size: 12px; margin-bottom: 2px; }
  .player-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .player-controls > * { flex-shrink: 0; }
  .player-controls .volume-control { margin-left: auto; }
}