/* ═══════════════════════════════════════════════════════════════════
   CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* Brand tokens */
  --black: #0d0d0d;
  --gold: #b8960c;
  --champagne: #f5e6a3;
  --white: #f4f4f6;
  --line: rgba(245, 230, 163, 0.24);
  --glass: rgba(13, 13, 13, 0.38);
  --shadow: rgba(0, 0, 0, 0.42);

  /* ── Grid system ──────────────────────────────────────────────────
     --content-width  max width of the centered content container
     --gutter         horizontal padding inside the container
     --col-gap        column gap for the 12-column grid
     ─────────────────────────────────────────────────────────────── */
  --content-width: 980px;
  --gutter: 22px;
  --col-gap: 24px;

  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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


/* ═══════════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

/* Centered container — all main content lives here */
.page-container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 12-column grid — applied to inner wrappers that need column-aligned children */
.content-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

/* Full-bleed — escapes the centered container to span the full viewport.
   Math: a child inside .page-container has its left content edge at
   (viewport − content-width) / 2 + gutter from the left. The negative
   margin-inline pulls both edges outward by that exact offset so the
   element lands flush at 0 and 100vw. */
.full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}


/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE SHELL
   ═══════════════════════════════════════════════════════════════════ */
.homepage {
  position: relative;
  min-height: 100vh;
  background: var(--black);
}

/* Subtle film-grain texture overlay */
.homepage::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.38;
}


/* ═══════════════════════════════════════════════════════════════════
   RIBBON (fixed navigation bar)
   The .ribbon bar is full viewport width. .ribbon-inner constrains
   wordmark and actions to --content-width, aligning with the grid.
   ═══════════════════════════════════════════════════════════════════ */
.ribbon {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 50px var(--shadow);
}

.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 18px var(--gutter);
}

.wordmark {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}

.wordmark::first-letter { color: var(--gold); }

.ribbon-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(184, 150, 12, 0.72);
  border-radius: 4px;
  color: var(--black);
  background: rgba(184, 150, 12, 0.72);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.menu-button {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

/* Dropdown: right edge aligns with .ribbon-inner at all widths */
.site-menu {
  position: fixed;
  z-index: 4;
  top: 76px;
  right: max(var(--gutter), calc((100vw - var(--content-width)) / 2 + var(--gutter)));
  display: grid;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(13, 13, 13, 0.9);
  box-shadow: 0 18px 50px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.site-menu a {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(245, 230, 163, 0.14);
  color: var(--white);
  font-size: 0.82rem;
}

.site-menu a:last-child { border-bottom: 0; }
.site-menu a:hover { color: var(--champagne); }


/* ═══════════════════════════════════════════════════════════════════
   HERO (cinematic full-width banner)
   Natural block child of <main> — no escape trick needed.
   .hero-content constrains text/buttons to --content-width.
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 2.52;
  min-height: 400px;
  overflow: hidden;
  padding-bottom: clamp(40px, 5vw, 64px);
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Bottom-up scrim: text legibility without obscuring the full image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(13, 13, 13, 0.82) 0%,
    rgba(13, 13, 13, 0.44) 32%,
    rgba(13, 13, 13, 0.18) 60%,
    rgba(13, 13, 13, 0.18) 100%
  );
}

/* Re-centers content to --content-width after the full-bleed escape */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-text {
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
  flex: 1;
  min-width: 0;
}

.hero-badge { display: flex; align-items: center; gap: 10px; }

.hero-badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--gold) 0%, #f0c020 100%);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184, 150, 12, 0.5);
}

.hero-badge-name {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero-badge-name::first-letter { color: var(--gold); }

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border: 1px solid rgba(245, 230, 163, 0.38);
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244, 244, 246, 0.65);
}

.hero h1 {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-shrink: 0;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.18s;
}

.hero-actions a:hover { opacity: 0.78; }

.hero-actions a:first-child {
  background: var(--gold);
  color: var(--black);
  border: none;
}

.hero-actions a:nth-child(2) {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


/* ═══════════════════════════════════════════════════════════════════
   CAROUSEL SECTION

   Structure (direct children of <main>, naturally full-width):
     .carousel-bar        — section label bar
       .carousel-bar-inner  — constrains h2 to --content-width
     .carousel-outer        — stage with vertical padding
       .carousel-viewport   — overflow:hidden + edge fade masks
         .carousel-track    — flex row, animated, width:max-content

   Loop mechanic: see script.js for the full explanation.
     Cards use margin-right for spacing (not flex gap) so the gap
     between the last card of set A and the first card of set B is
     identical to every other inter-card gap, removing the seam.
   ═══════════════════════════════════════════════════════════════════ */

/* Outer stage — naturally full-width, provides vertical rhythm */
.carousel-outer {
  padding-block: clamp(32px, 5vw, 56px);
  background: var(--black);
}

/* ── Viewport ────────────────────────────────────────────────────────
   overflow:hidden clips the track as it scrolls.
   mask-image fades cards in/out 8% from each edge so cards dissolve
   rather than hard-cutting at the container boundary.
   ─────────────────────────────────────────────────────────────── */
.carousel-viewport {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* Hovering anywhere on the viewport pauses the animation */
.carousel-viewport:hover .carousel-track {
  animation-play-state: paused;
}

/* ── Track ───────────────────────────────────────────────────────────
   width:max-content lets the track grow to fit all cards (set A + B).
   The animation moves it left by -50% — exactly one set's width.
   Because set B is identical to set A, the loop restart at 0% is
   visually seamless: the same cards reappear in the same positions.
   will-change promotes the track to its own GPU layer to prevent jank.
   ─────────────────────────────────────────────────────────────── */
.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-scroll 50s linear infinite;
  will-change: transform;
}

/* ── Keyframe ────────────────────────────────────────────────────────
   0%   → natural position (set A fully visible)
   100% → shifted left by one set-width (set B now in set A's slot)
   The browser loops back to 0% instantly — no visible jump because
   set A and set B are pixel-identical.
   ─────────────────────────────────────────────────────────────── */
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Card ────────────────────────────────────────────────────────────
   flex-shrink:0 prevents cards from collapsing under the flex layout.
   margin-right is the gap between cards. It lives on each card (not
   as a track gap) so the join between set A's tail and set B's head
   has the exact same spacing as every other inter-card gap.
   ─────────────────────────────────────────────────────────────── */
.carousel-card {
  flex-shrink: 0;
  width: clamp(220px, 26vw, 340px);
  margin-right: 24px;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}

/* Image wrapper: aspect-ratio holds space before images load,
   border-radius rounds the corners, overflow clips the scale transform */
.carousel-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  transition: transform 0.35s ease;
}

/* Scale the image wrapper (not the whole card) so the title text
   stays static while the image floats forward on hover */
.carousel-card:hover .carousel-card-img-wrap {
  transform: scale(1.03);
}

.carousel-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text below image */
.carousel-card-meta {
  padding: 10px 2px 0;
  display: grid;
  gap: 4px;
}

.carousel-card-title {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
}

.carousel-card-source {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(244, 244, 246, 0.46);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════════════════════════════
   CAREERS SECTION
   Minimalist Apple-style application form. Generous negative space,
   centered content, nothing unnecessary on screen.
   ═══════════════════════════════════════════════════════════════════ */
.careers-section {
  padding-block: clamp(96px, 14vw, 160px);
  background: var(--black);
  border-top: 1px solid var(--line);
}

/* Centers content to --content-width; form itself is narrower (see .careers-body) */
.careers-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.careers-headline {
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--white);
}

/* Form stack: narrower than the section so inputs feel slim and elegant */
.careers-body {
  width: 100%;
  max-width: 420px;
}

.careers-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Shared input/button shape ────────────────────────────────────────
   border-radius: 999px — pulled from .hero-actions a, the "Engage" and
   "Research" pill buttons. Applying the same value here ties the form
   elements visually to the page's primary interactive affordance.
   ─────────────────────────────────────────────────────────────── */
.careers-input,
.careers-upload {
  border-radius: 999px;
}

/* Email field */
.careers-input {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(245, 230, 163, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
}

.careers-input::placeholder {
  color: rgba(244, 244, 246, 0.28);
}

.careers-input:focus {
  border-color: rgba(184, 150, 12, 0.7);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(184, 150, 12, 0.1);
}

.careers-input.is-invalid {
  border-color: rgba(220, 70, 70, 0.65);
  box-shadow: 0 0 0 3px rgba(220, 70, 70, 0.1);
}

/* Upload résumé — styled label acts as a button over the hidden file input */
.careers-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: 1px solid rgba(245, 230, 163, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 244, 246, 0.52);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
  overflow: hidden;
}

.careers-upload:hover {
  border-color: rgba(245, 230, 163, 0.44);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

/* Hidden native file picker; covers the label so the whole area is clickable */
.careers-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.careers-upload-label {
  pointer-events: none;
  transition: color 200ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

/* Submit button — gold fill, same pill radius */
.careers-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: none;
  border-radius: 999px; /* matches .hero-actions a:first-child */
  background: var(--gold);
  color: var(--black);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 200ms ease;
}

.careers-submit:hover {
  opacity: 0.78;
}

/* Confirmation message — initially hidden; revealed by JS after submit.
   Inherits the transition styles injected inline during the animation. */
.careers-confirmation {
  display: none;
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: rgba(244, 244, 246, 0.6);
  letter-spacing: -0.01em;
}


/* ═══════════════════════════════════════════════════════════════════
   VIDEO CAROUSEL SECTION
   Same loop mechanic as the article carousel; separate keyframe name
   allows independent speed (80s for 19 cards vs. 50s for 8 cards,
   keeping per-card viewing time roughly equal).
   ═══════════════════════════════════════════════════════════════════ */
.video-section {
  background: var(--black);
  border-top: 1px solid var(--line);
}

.video-section-header {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

.video-section-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.46);
  margin: 0;
}

.video-carousel-outer {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.video-carousel-viewport {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.video-carousel-viewport:hover .video-carousel-track {
  animation-play-state: paused;
}

.video-carousel-track {
  display: flex;
  width: max-content;
  animation: video-carousel-scroll 80s linear infinite;
  will-change: transform;
}

@keyframes video-carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.video-card {
  flex-shrink: 0;
  width: clamp(220px, 26vw, 340px);
  margin-right: 24px;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}

.video-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  transition: transform 0.35s ease;
}

.video-card:hover .video-card-img-wrap {
  transform: scale(1.03);
}

.video-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-card-play svg {
  width: 44px;
  height: 44px;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-card:hover .video-card-play svg {
  opacity: 1;
  transform: scale(1.1);
}

.video-card-meta {
  padding: 10px 2px 0;
  display: grid;
  gap: 4px;
}

.video-card-title {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
}

.video-card-source {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(244, 244, 246, 0.46);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1068px ─────────────────────────────────────────────────────── */
@media (max-width: 1068px) {
  .hero h1 {
    font-size: clamp(2rem, 3.8vw, 4.8rem);
  }
}

/* ── 980px ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .ribbon { min-height: 70px; }
  .site-menu { top: 70px; }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
  }
}

/* ── 734px: single-column; hero and carousel reflow ─────────────── */
@media (max-width: 734px) {
  .ribbon { min-height: 68px; }

  .ribbon-inner { padding-block: 12px; }

  .contact-button {
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.7rem;
  }

  .menu-button { width: 42px; height: 42px; }

  .site-menu {
    top: 68px;
    left: var(--gutter);
    right: var(--gutter);
  }

  .hero {
    aspect-ratio: auto;
    min-height: 75vh;
    padding-bottom: 48px;
    align-items: flex-end;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    letter-spacing: -0.025em;
  }

  .hero-actions {
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }

  .hero-actions a {
    flex: 1 1 auto;
    min-height: 48px;
    font-size: 0.85rem;
  }

  /* Narrower cards on mobile: show ~1.5 cards at once */
  .carousel-card {
    width: clamp(160px, 58vw, 240px);
  }

  .video-card {
    width: clamp(160px, 58vw, 240px);
  }
}

/* ── 320px: minimum viewport ────────────────────────────────────── */
@media (max-width: 320px) {
  :root { --gutter: 16px; }

  .hero h1 { font-size: 1.8rem; }

  .hero-actions a {
    min-height: 44px;
    font-size: 0.8rem;
  }

  .carousel-card { width: 160px; }
  .video-card { width: 160px; }
}

/* ── Reduced motion: stop auto-scroll; allow manual horizontal swipe ──
   The duplicate card set (aria-hidden + tabindex=-1) is visually
   hidden so only one copy of each card is accessible.
   ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }

  /* Remove edge fades — user scrolls manually, so edges must be visible */
  .carousel-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .carousel-viewport::-webkit-scrollbar { display: none; }

  /* Hide the duplicate set in static mode */
  .carousel-card[aria-hidden="true"] {
    display: none;
  }

  .video-carousel-track {
    animation: none;
  }

  .video-carousel-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .video-carousel-viewport::-webkit-scrollbar { display: none; }

  .video-card[aria-hidden="true"] {
    display: none;
  }
}
