@font-face {
  font-family: "Suisse Intl";
  src: url("/public/work/SuisseIntl-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Intl";
  src: url("/public/work/SuisseIntl-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%;
  background: #000;
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Work page resets the canvas-centric body styles */
body.work-page {
  overflow-x: hidden;
  overflow-y: auto;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
  height: auto;
}

html.work-page-root {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

html.work-page-root body.work-page {
  min-height: 100vh;
  overscroll-behavior-y: auto;
}

body.is-dragging {
  cursor: grabbing;
}

/* ─── Canvas viewport ─────────────────────────────────────── */

#canvas {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.canvas__world {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transform-origin: 0 0;
  will-change: transform;
}

.canvas__webgl {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}

/* ─── Severe vignette overlay ─────────────────────────────── */

.gallery-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 86% 76% at 50% 50%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 58%,
      rgba(0, 0, 0, 0.12) 73%,
      rgba(0, 0, 0, 0.4) 91%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.28) 8%,
      rgba(0, 0, 0, 0.06) 20%,
      rgba(0, 0, 0, 0) 32%,
      rgba(0, 0, 0, 0) 68%,
      rgba(0, 0, 0, 0.06) 80%,
      rgba(0, 0, 0, 0.28) 92%,
      rgba(0, 0, 0, 0.62) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.14) 12%,
      rgba(0, 0, 0, 0) 26%,
      rgba(0, 0, 0, 0) 78%,
      rgba(0, 0, 0, 0.18) 92%,
      rgba(0, 0, 0, 0.58) 100%
    );
  box-shadow:
    inset 0 0 clamp(76px, 11vw, 180px) rgba(0, 0, 0, 0.48);
}

/* ─── Individual media tiles ──────────────────────────────── */

.tile {
  position: absolute;
  top: 0;
  left: 0;
  /* width set to COLUMN_W, height set per-tile by JS */
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  contain: layout paint style;
  cursor: inherit;
  background: #111;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.25s ease;
}

.tile:hover {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Image */
.tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.tile__img.is-loaded {
  opacity: 1;
}

.tile:hover .tile__img {
  transform: scale(1.06);
}

/* Caption overlay */
.tile__cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tile:hover .tile__cap {
  opacity: 1;
}

.tile__title {
  display: block;
  color: #fff;
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
}

.tile__role {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
}

/* Suppress animation during drag */
body.is-dragging .tile__img {
  transition: opacity 0.4s ease;
}

body.is-dragging .tile__cap {
  opacity: 0 !important;
}

html.menu-open,
body.menu-open,
html.work-page-root.menu-open,
body.work-page.menu-open {
  overflow: hidden;
}

body.menu-open .drag-hint {
  opacity: 0;
}

/* ─── Topbar ───────────────────────────────────────────────── */

.topbar {
  --nav-gutter: clamp(20px, 4vw, 56px);
  --nav-content-max: 1400px;
  --topbar-nav-height: 64px;
  --topbar-open-ease: cubic-bezier(0.86, 0, 0.07, 1);

  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: block;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  color: #fff;
  clip-path: inset(0 0 calc(100% - var(--topbar-nav-height)) 0);
  transition: clip-path 0.58s var(--topbar-open-ease);
}

.topbar.mega-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
  cursor: default;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #000;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.58s var(--topbar-open-ease);
}

.topbar.mega-open::after {
  transform: scaleY(1);
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 128px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.76) 0%,
    rgba(0, 0, 0, 0.38) 48%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.36s ease;
}

.brand,
.topbar__link,
.topbar__menu-toggle {
  pointer-events: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.topbar.mega-open .brand,
.topbar.mega-open .topbar__link,
.topbar.mega-open .topbar__menu-toggle {
  text-shadow: none;
}

.topbar__nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: min(calc(100% - (var(--nav-gutter) * 2)), var(--nav-content-max));
  margin: 0 auto;
  padding: 20px 0;
}

/* ─── Mega Menu ─────────────────────────────────────────────── */

.mega-menu {
  pointer-events: none;
  cursor: default;
  user-select: text;
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 0.28s ease,
    transform 0.5s var(--topbar-open-ease);
}

.topbar.mega-open .mega-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.mega-menu__body {
  overflow: hidden;
}

.mega-menu__inner {
  --mega-menu-copy-size: 0.86rem;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px) minmax(0, 1fr);
  gap: 0 24px;
  width: min(calc(100% - (var(--nav-gutter) * 2)), var(--nav-content-max));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.mega-menu__blurb {
  justify-self: center;
  max-width: 390px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--mega-menu-copy-size);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.mega-menu__links {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.mega-menu__links--left {
  align-items: flex-start;
}

.mega-menu__links--right {
  align-items: flex-end;
  text-align: right;
}

.mega-menu__link {
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--mega-menu-copy-size);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
  white-space: nowrap;
}

.mega-menu__link:hover {
  color: #fff;
  opacity: 1;
}

.mega-menu__icon {
  display: none;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mega-menu__icon-dot {
  fill: currentColor;
  stroke: none;
}

.mega-menu__icon--brand {
  fill: currentColor;
  stroke: none;
}

.mega-menu__link--mobile-only {
  display: none;
}

.brand {
  display: block;
  justify-self: center;
  color: #fff;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: min(26vw, 144px);
  height: auto;
}

.topbar__link {
  color: #fff;
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(0, 0, 0, 0.9);
}

.topbar__link--left {
  justify-self: start;
}

.topbar__link--right {
  justify-self: end;
}

.topbar__menu-toggle {
  display: none;
  justify-self: end;
  min-height: 44px;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(0, 0, 0, 0.9);
}

.topbar__menu-toggle:focus-visible,
.topbar__link:focus-visible,
.brand:focus-visible,
.mega-menu__link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

/* ─── Drag hint ───────────────────────────────────────────── */

.drag-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  animation: hint-out 0.6s ease 3s forwards;
}

@keyframes hint-out {
  to {
    opacity: 0;
  }
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .gallery-vignette {
    display: none;
  }

  .topbar {
    --topbar-nav-height: 76px;

    height: 100dvh;
  }

  .topbar__nav {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: max(20px, env(safe-area-inset-top)) 0 0;
  }

  .topbar::before {
    display: none;
  }

  .topbar__link {
    display: none;
  }

  .topbar__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    font-size: 0.78rem;
  }

  .topbar.mega-open .topbar__menu-toggle {
    color: #fff;
  }

  .brand {
    justify-self: start;
  }

  .mega-menu__inner {
    --mega-menu-copy-size: 0.86rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(calc(100% - (var(--nav-gutter) * 2)), 680px);
    min-height: calc(100dvh - var(--topbar-nav-height));
    padding: clamp(36px, 9vh, 84px) 0 max(30px, env(safe-area-inset-bottom));
  }

  .mega-menu__blurb {
    order: 2;
    max-width: 330px;
    margin: 22px auto 18px;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
  }

  .mega-menu {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    padding-top: var(--topbar-nav-height);
    transform: translateY(-18px);
  }

  .mega-menu__body {
    width: 100%;
    min-height: calc(100dvh - var(--topbar-nav-height));
  }

  .mega-menu__links {
    display: flex;
  }

  .mega-menu__links--left {
    order: 1;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.6vh, 22px);
    min-height: 0;
  }

  .mega-menu__links--right {
    order: 3;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }

  .mega-menu__link--mobile-only {
    display: block;
  }

  .mega-menu__link--projects {
    order: 1;
  }

  .mega-menu__link--about {
    order: 2;
  }

  .mega-menu__link--contact-primary {
    order: 3;
  }

  .mega-menu__links--left .mega-menu__link {
    color: #fff;
    font-size: clamp(3.4rem, 18vw, 7rem);
    font-weight: 400;
    line-height: 0.93;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
  }

  .mega-menu__links--right .mega-menu__link {
    color: #fff;
    text-align: center;
  }

  .mega-menu__links--right .mega-menu__contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    color: #fff;
    transition:
      color 0.18s ease,
      opacity 0.18s ease;
  }

  .mega-menu__links--right .mega-menu__contact-link:hover {
    color: #fff;
  }

  .mega-menu__links--right .mega-menu__contact-link:focus-visible {
    outline: none;
  }

  .mega-menu__links--right .mega-menu__link-label {
    display: none;
  }

  .mega-menu__links--right .mega-menu__icon {
    display: block;
  }

  .brand__logo {
    width: clamp(132px, 42vw, 180px);
  }

}

@media (max-width: 480px) {
  .topbar__nav {
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .brand__logo {
    width: clamp(120px, 38vw, 150px);
  }

  .topbar__menu-toggle {
    font-size: 0.72rem;
  }

  .mega-menu__inner {
    padding-top: clamp(28px, 7vh, 62px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .tile__img,
  .tile__cap,
  .tile,
  .topbar,
  .topbar::before,
  .topbar::after,
  .mega-menu {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════
   WORK PAGE
   ═══════════════════════════════════════════════════ */

.work-page {
  --wp-gutter: clamp(20px, 4vw, 56px);
  --wp-content-max: 1400px;
  overflow-x: hidden;
  overflow-y: auto;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
}

.work-page .topbar__nav,
.work-page .mega-menu__inner,
.wp__hero,
.wp__cover,
.wp__video-section,
.wp__other-heading,
.wp__other-grid {
  width: min(calc(100% - (var(--wp-gutter) * 2)), var(--wp-content-max));
  margin-right: auto;
  margin-left: auto;
}

.work-page .topbar__nav {
  padding-right: 0;
  padding-left: 0;
}

.work-page .mega-menu__inner {
  padding-right: 0;
  padding-left: 0;
}

/* ─── Main scroll container ───────────────────────── */

.wp {
  padding-top: 64px; /* clear topbar */
  background: #000;
  color: #fff;
  min-height: 100vh;
}

/* ─── Hero ────────────────────────────────────────── */

.wp__hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(20px, 3vw, 36px);
  animation: wp-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wp__hero-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wp__hero-meta[hidden],
.wp__cover[hidden],
.wp__cover-img[hidden],
.wp__cover-video[hidden],
.wp__credits[hidden],
.wp__video-section[hidden],
.wp__quote[hidden] {
  display: none !important;
}

.wp__sep {
  color: rgba(255, 255, 255, 0.2);
}

.wp__title {
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.2rem, 9.5vw, 11rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  word-break: break-word;
}

/* ─── Cover image ─────────────────────────────────── */

.wp__cover,
.wp__credits,
.wp__video-section {
  padding: 0;
}

.wp__cover {
  position: relative;
  height: clamp(340px, 52vw, 660px);
  margin-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  animation: wp-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.wp__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.wp__cover-img.is-loaded {
  opacity: 1;
}

.wp__cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.wp__cover-video.is-loaded {
  opacity: 1;
}

/* ─── Video ───────────────────────────────────────── */

.wp__video-section {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(48px, 7vw, 80px);
  animation: wp-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.wp__video-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wp__video-title {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.35;
}

.wp__video-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.wp__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.wp__video.is-loaded {
  opacity: 1;
}

/* Credits */
.wp__credits {
  width: 100%;
  max-width: 760px;
  margin: 0 auto clamp(72px, 9vw, 124px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.45vw, 21px);
}

.wp__credit-row {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 340px);
  justify-content: center;
  align-items: baseline;
  column-gap: clamp(18px, 2vw, 28px);
}

.wp__credit-label {
  font-size: clamp(0.95rem, 1.22vw, 1.42rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  color: rgba(255, 255, 255, 0.76);
  text-align: right;
}

.wp__credit-value {
  font-size: clamp(0.98rem, 1.28vw, 1.48rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.74);
  text-align: left;
}

@media (max-width: 700px) {
  .wp__credits {
    max-width: 430px;
  }

  .wp__credit-row {
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    column-gap: 12px;
  }

  .wp__credit-label,
  .wp__credit-value {
    font-size: clamp(0.68rem, 3.2vw, 0.95rem);
    line-height: 1.12;
  }

  .wp__video-title {
    font-size: 0.74rem;
    line-height: 1.25;
  }
}

/* ─── Pull quote ──────────────────────────────────── */

.wp__quote {
  margin: 0;
  padding: clamp(40px, 8vw, 96px) clamp(24px, 10vw, 160px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  animation: wp-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.wp__quote-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 28px;
  font-style: italic;
}

.wp__quote-cite {
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
}

/* ─── Other Projects ──────────────────────────────── */

.wp__other {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(64px, 10vw, 120px);
  overflow: hidden;
  animation: wp-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.wp__other-heading {
  font-family: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.wp__other-grid {
  display: flex;
  gap: clamp(8px, 1.2vw, 14px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.wp__other-grid::-webkit-scrollbar {
  height: 4px;
}

.wp__other-grid::-webkit-scrollbar-track {
  background: transparent;
}

.wp__other-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}

.wp__other-card {
  flex: 0 0 clamp(220px, 28vw, 340px);
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.25s ease;
}

.wp__other-card:hover {
  box-shadow:
    0 8px 36px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.wp__other-fig {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin: 0;
}

.wp__other-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wp__other-img.is-loaded {
  opacity: 1;
}

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

.wp__other-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.wp__other-card:hover .wp__other-cap {
  opacity: 1;
}

.wp__other-title {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
}

.wp__other-role {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
}

/* ─── Poster footer ────────────────────────────── */

.wp__poster-footer[hidden] {
  display: none !important;
}

.wp__poster-footer {
  display: block;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.wp__poster-footer-img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

/* ─── Page entrance animation ─────────────────────── */

@keyframes wp-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Work page: topbar always shows gradient ─────── */

.work-page .topbar::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .wp__hero,
  .wp__cover,
  .wp__video-section,
  .wp__quote,
  .wp__other {
    animation: none;
  }

  .wp__cover-img {
    transition: none;
  }

  .wp__cover-video,
  .wp__video,
  .wp__poster-footer-img {
    transition: none;
  }
}
