/* ==========================================================================
   RBLLN THEME — 100% Faithful to rblln.fr/en/brands
   Off-white: #FFF9D8 | Dark: #09637E | Accent: #FD6504
   Typography: Bold condensed uppercase grotesque (Commuters Sans aesthetic)
   ========================================================================== */

/* ==========================================================================
   TYPOGRAPHY — Aardvark Book Club fonts
   Champ ExtraBold: headers / display
   Degular: body / UI
   Hello Organichand: handwritten accent (optional)
   ========================================================================== */

/* Champ ExtraBold — bold display heading font */
@font-face {
  font-family: 'Champ';
  src: url('https://cdn.prod.website-files.com/696173cb00865d1b386e4af8/6963d2cdeaa0084ad1abd7f0_Champ-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Degular — clean modern grotesque for body & UI */
@font-face {
  font-family: 'Degular';
  src: url('https://cdn.prod.website-files.com/696173cb00865d1b386e4af8/6a329ba7d02bd3d351e01fc6_Degular-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Degular';
  src: url('https://cdn.prod.website-files.com/696173cb00865d1b386e4af8/69c51e46ef7236cf68eaef2e_degular-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Degular';
  src: url('https://cdn.prod.website-files.com/696173cb00865d1b386e4af8/69c520c7360396435501e587_degular-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Hello Organichand — handwritten accent (for decorative text) */
@font-face {
  font-family: 'Hello Organichand';
  src: url('https://cdn.prod.website-files.com/696173cb00865d1b386e4af8/6963d3bce4c07135f1d68628_hello-organichand-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --rb-offwhite: #FFF9D8;
  --rb-dark: #09637E;
  --rb-orange: #FD6504;
  --rb-muted: rgba(9, 99, 126, 0.45);
  --rb-card-radius: 20px;
  --rb-font-display: 'Champ', 'Arial Black', sans-serif;
  --rb-font-body: 'Degular', -apple-system, BlinkMacSystemFont, sans-serif;
  --rb-font-handwritten: 'Hello Organichand', cursive;
  --ease-rb: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: var(--rb-offwhite);
  color: var(--rb-dark);
  font-family: var(--rb-font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--rb-offwhite);
  color: var(--rb-dark);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   SITE HEADER / TOP BAR
   ========================================================================== */
.rb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 249, 216, 0.96) 0%, rgba(255, 249, 216, 0) 100%);
}

@media (min-width: 1024px) {
  .rb-header {
    padding: 32px 48px;
  }
}

.rb-header > * {
  pointer-events: auto;
}

.rb-brand-logo {
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 900;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
  white-space: nowrap;
  color: var(--rb-dark);
}

.rb-location-pill {
  display: none;
  font-family: var(--rb-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rb-muted);
}

@media (min-width: 820px) {
  .rb-location-pill {
    display: block;
  }
}

.rb-top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.rb-top-nav a {
  font-size: clamp(13px, 1.05vw, 15.5px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rb-dark);
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.rb-top-nav a:hover {
  opacity: 0.6;
}

.rb-top-nav a.active {
  color: var(--rb-orange);
}

/* Dual-language visibility rules */
html[data-lang="id"] .lang-en,
html:not([data-lang]) .lang-en {
  display: none !important;
}

html[data-lang="en"] .lang-id {
  display: none !important;
}

/* Language Switcher Pill in Top Nav (Base) */
.rb-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 99, 126, 0.08);
  border: 1.5px solid rgba(9, 99, 126, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
  user-select: none;
}

.rb-lang-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--rb-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--rb-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.rb-lang-btn:hover {
  color: var(--rb-dark);
}

.rb-lang-btn.active {
  color: var(--rb-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.rb-lang-sep {
  font-size: 11px;
  color: var(--rb-muted);
  line-height: 1;
}

/* Mobile & Tablet Responsive Header */
@media (max-width: 768px) {
  .rb-header {
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(255, 249, 216, 0.98) 0%, rgba(255, 249, 216, 0.90) 70%, rgba(255, 249, 216, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .rb-brand-logo {
    font-size: clamp(12px, 3.4vw, 15px);
    letter-spacing: -0.02em;
    gap: 8px;
  }

  .rb-top-nav {
    gap: 12px;
    flex-shrink: 0;
  }

  .rb-lang-switcher {
    padding: 3px 8px;
    gap: 4px;
    margin-right: 0;
  }

  .rb-lang-btn {
    font-size: 11px;
  }

  .rb-top-nav a {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .rb-header {
    padding: 10px 10px;
  }

  .rb-brand-logo {
    font-size: 11px;
    letter-spacing: -0.03em;
  }

  .rb-top-nav {
    gap: 8px;
  }

  .rb-lang-switcher {
    padding: 2.5px 6px;
    gap: 3px;
  }

  .rb-lang-btn {
    font-size: 10px;
  }

  .rb-top-nav a {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   HERO SECTION — Corner Crop Marks & Mouse Trail
   ========================================================================== */
.rb-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--rb-offwhite);
  padding: 0 20px;
}

/* 4 Corner Crop Marks */
.rb-crop-marks {
  position: absolute;
  inset: 16px 20px;
  display: grid;
  grid-template-columns: 19px auto 19px;
  grid-template-rows: 19px auto 19px;
  pointer-events: none;
  z-index: 10;
  color: var(--rb-dark);
}

@media (min-width: 1024px) {
  .rb-crop-marks {
    inset: 35px 40px;
  }
}

.rb-crop-marks svg:nth-child(1) { grid-column: 1; grid-row: 1; }
.rb-crop-marks svg:nth-child(2) { grid-column: 3; grid-row: 1; }
.rb-crop-marks svg:nth-child(3) { grid-column: 1; grid-row: 3; }
.rb-crop-marks svg:nth-child(4) { grid-column: 3; grid-row: 3; }

/* Giant Hero H1 (Fallback) */
.rb-hero-h1 {
  font-size: clamp(52px, 12vw, 150px);
  font-weight: 900;
  letter-spacing: -0.05em;
line-height: 1;
   text-align: center;
   text-transform: uppercase;
   color: var(--rb-dark);
   position: relative;
   z-index: 10;
  pointer-events: none;
  user-select: none;
}

/* Hero Portrait Visual — wordmark absolutely centered behind image */
.rb-hero-portrait-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  width: 100%;
  overflow: visible;
  /* Height must accommodate the portrait + wordmark overlap */
  height: min(85vh, 700px);
}

/* PORTOFOLIO wordmark — absolutely centered behind the portrait */
.rb-hero-wordmark {
  position: absolute;
  z-index: 1; /* behind the portrait */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0 clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.rb-hero-wordmark-text {
   font-family: var(--rb-font-display);
   font-size: clamp(54px, 15vw, 310px);
   font-weight: 800;
   letter-spacing: -0.015em;
   text-transform: uppercase;
   color: var(--rb-dark);
   line-height: 1.1;
   white-space: nowrap;
   text-align: center;
 }

.rb-hero-portrait-stage {
  position: relative;
  z-index: 10; /* in front of rear orbit cards, behind front orbit cards */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  max-width: min(620px, 46vw);
  max-height: min(78vh, 680px);
  margin-top: clamp(20px, 3.5vh, 48px);
  pointer-events: none;
  user-select: none;
  animation: heroPortraitFloat 6s ease-in-out infinite alternate;
}

.rb-hero-portrait {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 680px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.12));
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1600px) {
  .rb-hero-portrait-stage {
    max-width: min(720px, 48vw);
    max-height: min(82vh, 760px);
  }
  .rb-hero-portrait {
    max-height: min(82vh, 760px);
  }
}

@media (max-width: 768px) {
  .rb-hero-portrait-stage {
    max-width: min(340px, 85vw);
    max-height: min(55vh, 400px);
    margin-top: 16px;
  }
  .rb-hero-portrait {
    max-height: min(55vh, 400px);
  }
}

@keyframes heroPortraitFloat {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-10px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}


/* ==========================================================================
   HERO ABOUT BLURB (BOTTOM LEFT CORNER — AARDVARK EDITORIAL STYLE)
   ========================================================================== */
.rb-hero-about-blurb {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  left: clamp(28px, 4vw, 64px);
  max-width: clamp(280px, 24vw, 440px);
  z-index: 25;
  pointer-events: auto;
  text-align: left;
}

.rb-hero-about-text {
  font-family: var(--rb-font-body);
  font-size: clamp(15px, 1.22vw, 21px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--rb-dark);
  margin-bottom: 12px;
}

.rb-hero-about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rb-font-display);
  font-size: clamp(12px, 0.9vw, 14.5px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rb-dark);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.rb-hero-about-link:hover {
  opacity: 1;
  color: var(--rb-orange);
  transform: translateX(4px);
}

/* ==========================================================================
   HERO WORKFLOW BLURB (BOTTOM RIGHT CORNER — POST-PRODUCTION PIPELINE)
   ========================================================================== */
.rb-hero-workflow-blurb {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  right: clamp(28px, 4vw, 64px);
  max-width: clamp(280px, 24vw, 440px);
  z-index: 25;
  pointer-events: auto;
  text-align: right;
}

.rb-hero-workflow-text {
  font-family: var(--rb-font-body);
  font-size: clamp(15px, 1.22vw, 21px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--rb-dark);
  margin-bottom: 12px;
}

.rb-hero-workflow-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-family: var(--rb-font-display);
  font-size: clamp(11.5px, 0.85vw, 13.5px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rb-dark);
  opacity: 0.85;
}

.rb-hero-workflow-tools span {
  white-space: nowrap;
}

/* Responsive adjustments for mid-sized screens (1024px - 1280px) */
@media (max-width: 1280px) and (min-width: 921px) {
  .rb-hero-about-blurb,
  .rb-hero-workflow-blurb {
    max-width: clamp(240px, 23vw, 320px);
  }
  .rb-hero-about-text,
  .rb-hero-workflow-text {
    font-size: clamp(13.5px, 1.1vw, 16px);
    line-height: 1.32;
  }
}

/* Smart guard for laptops with short viewport heights (< 800px) */
@media (max-height: 800px) and (min-width: 921px) {
  .rb-hero-portrait-stage {
    max-width: min(450px, 38vw);
    max-height: min(64vh, 480px);
    margin-top: 8px;
  }
  .rb-hero-portrait {
    max-height: min(64vh, 480px);
  }
  .rb-hero-about-blurb,
  .rb-hero-workflow-blurb {
    bottom: 22px;
    max-width: clamp(230px, 22vw, 310px);
  }
  .rb-hero-about-text,
  .rb-hero-workflow-text {
    font-size: clamp(13px, 1.05vw, 15px);
    line-height: 1.32;
    margin-bottom: 8px;
  }
  .rb-hero-wordmark-text {
    font-size: clamp(48px, 14vw, 195px);
  }
}

@media (max-width: 920px) {
  .rb-hero {
    height: auto;
    min-height: auto;
    overflow: visible;
    padding-top: clamp(60px, 9vh, 80px);
    padding-bottom: 28px;
    justify-content: flex-start;
  }

  .rb-hero-portrait-wrap {
    height: auto;
    min-height: 0;
    width: 100%;
  }

  .rb-hero-portrait-stage {
    margin-top: 0;
  }

  .rb-hero-about-blurb {
    position: relative;
    bottom: auto;
    left: auto;
    max-width: 100%;
    margin-top: clamp(32px, 5vh, 42px);
    padding: 0 clamp(16px, 5vw, 24px);
    text-align: left;
  }

  .rb-hero-workflow-blurb {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 100%;
    margin-top: 20px;
    padding: 0 clamp(16px, 5vw, 24px);
    text-align: left;
  }

  .rb-hero-about-text,
  .rb-hero-workflow-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    max-width: 540px;
  }

  .rb-hero-workflow-tools {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   HERO ARC RUNNING TEXT (SVG textPath — curved text hugging under chin)
   ========================================================================== */
.rb-hero-arc-ticker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.rb-arc-text {
  font-family: var(--rb-font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3.5px;
  fill: var(--rb-dark);
  text-transform: uppercase;
  user-select: none;
}

.rb-arc-star {
  fill: var(--rb-accent);
  font-weight: 900;
}

@media (max-width: 768px) {
  .rb-arc-text {
    font-size: 34px;
    letter-spacing: 3px;
  }
}

/* ==========================================================================
   3D ORBITING STILL CAROUSEL (GIONATAN NESE STYLE)
   Project still photographs rotating in 3D cylindrical orbit around Wiro's head!
   ========================================================================== */

.rb-hero-orbit {

  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.rb-orbit-stage {
  position: relative;
  width: 0;
  height: 0;
  display: block;
}

.rb-orbit-card {
  position: absolute;
  top: 0;
  left: 0;
  /* Circular card — same size both axes */
  width:  clamp(80px, 9vw, 130px);
  height: clamp(80px, 9vw, 130px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform-style: flat;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  will-change: transform, opacity;
  text-decoration: none;
}

.rb-orbit-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-color: #11141a;
  border: 2px solid rgba(255, 255, 255, 0.50);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.40), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.35s ease;
}

.rb-orbit-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.rb-orbit-badge {
  position: absolute;
  /* Badge: tooltip label centered below the circle, visible on hover */
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--rb-font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Hover state on orbit cards */
.rb-orbit-card:hover {
  z-index: 100 !important;
}

.rb-orbit-card:hover .rb-orbit-card-inner {
  transform: scale(1.18);
  border-color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55),
              0 0 0 3px rgba(255, 255, 255, 0.35);
}

.rb-orbit-card:hover img {
  transform: scale(1.10);
}

.rb-orbit-card:hover .rb-orbit-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0px);
}




/* Visually hidden for accessibility & SEO */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   MAKEMEPULSE IMAGE TRAIL (1:1 with makemepulse.com)
   Strictly non-scrollable, circle-to-square morph mask, counter-scale zoom
   Layered UNDER the hero text (z-index: 2 vs text z-index: 10)
   ========================================================================== */
.rb-snake-trail-container,
.mmp-trail-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 2 !important;
  overflow: hidden !important;
  contain: strict;
}

@media (pointer: coarse) {
  .rb-snake-trail-container,
  .mmp-trail-container {
    display: none;
  }
}

.rb-snake-node,
.mmp-node {
  position: absolute !important;
  width: 220px !important;
  height: 220px !important;
  transform: translate(-50%, -50%);
  pointer-events: none !important;
  user-select: none;
  touch-action: none;
  will-change: transform, opacity;
  contain: layout style paint;
  z-index: 10;
}

@media (min-width: 1200px) {
  .rb-snake-node,
  .mmp-node {
    width: 250px !important;
    height: 250px !important;
  }
}

/* Morphing mask: Small Circle -> Full Rounded Square */
.rb-snake-mask,
.mmp-node-mask {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32), 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  will-change: transform, border-radius, opacity;
  animation: mmpMorphAnim 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mmpMorphAnim {
  0% {
    transform: scale(0.18) rotate(var(--rot, 0deg));
    border-radius: 50%;
    opacity: 0.95;
  }
  22% {
    transform: scale(0.48) rotate(calc(var(--rot, 0deg) * 0.9));
    border-radius: 46%;
    opacity: 1;
  }
  50% {
    transform: scale(0.85) rotate(calc(var(--rot, 0deg) * 0.7));
    border-radius: 30px;
    opacity: 1;
  }
  72% {
    transform: scale(1.0) rotate(calc(var(--rot, 0deg) * 0.5));
    border-radius: 18px;
    opacity: 1;
  }
  88% {
    transform: scale(1.0) rotate(calc(var(--rot, 0deg) * 0.5));
    border-radius: 18px;
    opacity: 0.85;
  }
  100% {
    transform: scale(0.94) rotate(calc(var(--rot, 0deg) * 0.5));
    border-radius: 18px;
    opacity: 0;
  }
}

/* Counter-scaling embed for parallax reveal effect */
.rb-snake-embed,
.mmp-node-embed {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  animation: mmpEmbedAnim 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mmpEmbedAnim {
  0% {
    transform: scale(1.6);
  }
  72%, 100% {
    transform: scale(1.0);
  }
}

.rb-snake-img,
.mmp-node-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.rb-snake-badge,
.mmp-node-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-family: var(--rb-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  animation: mmpBadgeAnim 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mmpBadgeAnim {
  0%, 45% {
    opacity: 0;
    transform: translateY(6px);
  }
  65%, 85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Mobile Ticker Marquee (Disabled in favor of curved running text under chin) */
.rb-mobile-marquee {
  display: none !important;
}

.rb-marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: rbMarqueeAnim 22s linear infinite;
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rb-dark);
  opacity: 0.5;
  white-space: nowrap;
}

.rb-marquee-track span.dot {
  opacity: 0.3;
  font-size: 10px;
}

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

/* ==========================================================================
   TAGLINE / MANIFESTO (Faithful to rblln.fr)
   ========================================================================== */
.rb-tagline-section {
  padding: 60px 24px 80px;
  border-bottom: 1px solid var(--rb-dark);
  margin-bottom: 30px;
  text-align: center;
}

@media (min-width: 1024px) {
  .rb-tagline-section {
    padding: 100px 14% 120px;
    margin-bottom: 60px;
  }
}

.rb-tagline-text {
   font-size: clamp(22px, 3.6vw, 44px);
   font-weight: 900;
   letter-spacing: -0.04em;
   line-height: 1.1;
   text-transform: uppercase;
   color: var(--rb-dark);
   max-width: 1100px;
   margin: 0 auto;
 }

/* ==========================================================================
   WORK SECTION HEADER
   ========================================================================== */
.rb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 20px;
  margin-bottom: 24px;
  max-width: 1820px;
  width: 96%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .rb-section-head {
    padding: 0 24px;
    margin-bottom: 32px;
  }
}

.rb-section-title {
   font-size: clamp(34px, 7vw, 88px);
   font-weight: 900;
   letter-spacing: -0.05em;
   line-height: 1;
   text-transform: uppercase;
   color: var(--rb-dark);
 }

.rb-section-count {
  font-family: var(--rb-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rb-muted);
}

/* ==========================================================================
   BRANDS WORK CARDS (Expanded width, high-impact cinematic presence)
   ========================================================================== */
.rb-works-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 16px 100px;
  max-width: 1820px;
  width: 96%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rb-works-grid {
    gap: 26px;
    padding: 0 20px 140px;
  }
}

/* ==========================================================================
   CINEMA SPOTLIGHT EFFECT + CONTEMPORARY EDITORIAL MARGINS
   ========================================================================== */
body {
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page background softly dims with warm cream undertones — not pure black */
body.rb-spotlight-active,
body:has(.rb-card:hover) {
  background-color: #524c3d !important;
  background-color: color-mix(in srgb, var(--rb-offwhite) 36%, #1a1714) !important;
}

/* Hide native cursor on desktop during cinema spotlight */
@media (min-width: 1025px) {
  body.rb-spotlight-active,
  body.rb-spotlight-active * {
    cursor: none !important;
  }
}

/* ==========================================================================
   MAGNETIC "OPEN" BUBBLE CURSOR
   Follows cursor with RAF lerp; expands into crisp 'OPEN' badge on card hover
   ========================================================================== */
.rb-cursor-bubble {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  font-family: var(--rb-font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease;
}

/* Small dot when spotlight is active */
body.rb-spotlight-active .rb-cursor-bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* When hovering a project card, expands into the 'OPEN' circular pill */
.rb-cursor-bubble.rb-cursor-open {
  width: 84px;
  height: 84px;
  background-color: #ffffff;
  color: #050507;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rb-cursor-bubble-text {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease 0.08s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
  line-height: 1;
  margin-left: 2px;
}

.rb-cursor-bubble.rb-cursor-open .rb-cursor-bubble-text {
  opacity: 1;
  transform: scale(1);
}

/* Surrounding layout elements dim gently without disappearing */
body.rb-spotlight-active .rb-header,
body:has(.rb-card:hover) .rb-header,
body.rb-spotlight-active .rb-hero,
body:has(.rb-card:hover) .rb-hero,
body.rb-spotlight-active .rb-tagline-section,
body:has(.rb-card:hover) .rb-tagline-section,
body.rb-spotlight-active .rb-section-head,
body:has(.rb-card:hover) .rb-section-head,
body.rb-spotlight-active .rb-dock,
body:has(.rb-card:hover) .rb-dock,
body.rb-spotlight-active .rb-footer,
body:has(.rb-card:hover) .rb-footer {
  opacity: 0.38;
  filter: blur(0.5px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Non-hovered cards fade subtly into the warm background */
.rb-works-grid:hover .rb-card:not(:hover),
body.rb-spotlight-active .rb-card:not(:hover) {
  opacity: 0.45;
  filter: brightness(0.85) grayscale(15%);
  transform: scale(0.99);
}

/* ==========================================================================
   CONTEMPORARY EDITORIAL MARGINS (CLEAN LUXURY ART DIRECTION — NOT SCI-FI)
   Fills the empty space with clean Swiss typography and ghost titles
   ========================================================================== */
.rb-cinema-wing {
  position: fixed;
  top: 50%;
  z-index: 28;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s ease;
  will-change: transform, opacity;
}

body.rb-spotlight-active .rb-cinema-wing,
body:has(.rb-card:hover) .rb-cinema-wing {
  opacity: 1 !important;
  visibility: visible !important;
}

/* --- LEFT WING: Minimal Architectural Index & Studio Credit --- */
.rb-wing-left {
  left: clamp(20px, 2.5vw, 60px);
  transform: translateY(-50%) translateX(-16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--rb-font-body, sans-serif);
  color: rgba(255, 255, 255, 0.85);
}

body.rb-spotlight-active .rb-wing-left,
body:has(.rb-card:hover) .rb-wing-left {
  transform: translateY(-50%) translateX(0);
}

.rb-wing-index {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.95);
}

.rb-wing-index-num {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

.rb-wing-index-sep {
  opacity: 0.35;
}

.rb-wing-index-total {
  opacity: 0.5;
}

.rb-wing-divider {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.rb-wing-studio-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.rb-wing-studio-meta span.rb-accent {
  color: rgba(255, 255, 255, 0.85);
}

/* --- RIGHT WING: Giant Editorial Ghost Project Title --- */
.rb-wing-right {
  right: clamp(20px, 2.5vw, 60px);
  transform: translateY(-50%) translateX(16px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
  max-width: 360px;
}

body.rb-spotlight-active .rb-wing-right,
body:has(.rb-card:hover) .rb-wing-right {
  transform: translateY(-50%) translateX(0);
}

.rb-wing-title-wrap {
  position: relative;
}

.rb-wing-title {
  font-family: var(--rb-font-display);
  font-size: clamp(48px, 6.6vw, 104px);
  font-weight: 900;
line-height: 1;
   letter-spacing: -0.02em;
   text-transform: uppercase;
   color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.42);
  text-stroke: 1.5px rgba(255, 255, 255, 0.42);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.rb-wing-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.rb-wing-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 3px;
}

.rb-wing-subtitle {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

@media (max-width: 1240px) {
  .rb-cinema-wing {
    display: none !important;
  }
}

/* ==========================================================================
   SPECULAR GLASS SHEEN ON CARDS
   ========================================================================== */
.rb-card-sheen {
  position: absolute;
  inset: 0;
  border-radius: var(--rb-card-radius);
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.rb-card {
  position: relative;
  display: block;
  border-radius: var(--rb-card-radius);
  overflow: hidden;
  background-color: #111;
  color: #fff;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s var(--ease-rb),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* While mouse is interacting with card, JS RAF loop takes full control */
.rb-card.rb-card--interacting {
  transition: box-shadow 0.6s var(--ease-rb),
              opacity 0.5s ease,
              filter 0.5s ease !important;
}

.rb-card.rb-card--interacting .rb-card-inner {
  transition: none !important;
}

/* Hovered Card — glow only, transform handled by JS lerp loop */
.rb-card:hover {
  z-index: 30;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95),
              0 0 0 1px rgba(90, 200, 255, 0.25),
              0 0 70px rgba(90, 200, 255, 0.08);
}

@media (min-width: 768px) {
  .rb-card {
    aspect-ratio: 1350 / 640;
  }
}

/* Card inner container */
.rb-card-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;
  will-change: transform;
}

@media (min-width: 768px) {
  .rb-card-inner {
    transform-origin: center center;
    transform: scale(1.12);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Video inside card */
.rb-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1);
  transition: transform 1s var(--ease-rb), opacity 0.5s ease;
  display: block;
}

.rb-card:hover .rb-card-video {
  transform: scale(1.06);
  opacity: 0.72;
}

/* Card Overlay */
.rb-card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 2;
  transition: transform 0.8s var(--ease-rb);
}

.rb-card:hover .rb-card-overlay {
  transform: scale(0.985);
}

@media (min-width: 768px) {
  .rb-card-overlay {
    padding: 40px;
  }
}

/* Corner crop marks inside card */
.rb-card-crops {
  position: absolute;
  inset: 16px;
  display: grid;
  grid-template-columns: 19px auto 19px;
  grid-template-rows: 19px auto 19px;
  pointer-events: none;
  z-index: 3;
}

@media (min-width: 768px) {
  .rb-card-crops {
    inset: 32px;
  }
}

.rb-card-crops svg {
  color: rgba(245, 242, 238, 0.6);
  transition: transform 0.5s var(--ease-rb), color 0.3s ease;
}

.rb-card:hover .rb-card-crops svg {
  color: rgba(245, 242, 238, 0.95);
}

.rb-card-crops svg:nth-child(1) { grid-column: 1; grid-row: 1; }
.rb-card-crops svg:nth-child(2) { grid-column: 3; grid-row: 1; }
.rb-card-crops svg:nth-child(3) { grid-column: 1; grid-row: 3; }
.rb-card-crops svg:nth-child(4) { grid-column: 3; grid-row: 3; }

/* Centered brand content */
.rb-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: relative;
  z-index: 4;
}

.rb-card-title {
   font-size: clamp(38px, 8.5vw, 110px);
   font-weight: 900;
   letter-spacing: -0.05em;
   line-height: 1.05;
   text-transform: uppercase;
   color: var(--rb-offwhite);
   text-shadow: 0 4px 50px rgba(0, 0, 0, 0.5);
   transition: transform 0.6s var(--ease-rb);
 }

.rb-card:hover .rb-card-title {
  transform: translateY(-4px);
}

.rb-card-desc {
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 238, 0.7);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-rb);
}

.rb-card:hover .rb-card-desc {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .rb-card-desc {
    opacity: 1;
    transform: none;
  }
}

/* Sound / Speaker Toggle Button (rblln .hp icon) */
.rb-sound-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(29, 29, 29, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 242, 238, 0.2);
  display: grid;
  place-items: center;
  color: var(--rb-offwhite);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

@media (min-width: 768px) {
  .rb-sound-btn {
    bottom: 28px;
    left: 28px;
  }
}

.rb-card:hover .rb-sound-btn,
.rb-sound-btn.active {
  opacity: 1;
}

.rb-sound-btn:hover {
  background: rgba(29, 29, 29, 0.85);
  border-color: rgba(245, 242, 238, 0.4);
}

/* ==========================================================================
   FLOATING BOTTOM DOCK / NAV PILL — Premium Edition
   ========================================================================== */
.rb-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  align-items: center;
  background: rgba(19, 19, 19, 0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-radius: 22px;
  border: 1px solid rgba(245, 242, 238, 0.1);
  padding: 5px;
  box-shadow:
    0 14px 50px rgba(0, 0, 0, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  width: calc(100% - 32px);
  max-width: 360px;
  transition: box-shadow 0.3s ease;
}

.rb-dock:hover {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

@media (min-width: 768px) {
  .rb-dock {
    bottom: 32px;
    max-width: 390px;
  }
}

.rb-dock-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  list-style: none;
  position: relative;
}

.rb-dock-item a {
  display: block;
  text-align: center;
  padding: 14px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 238, 0.45);
  border-radius: 17px;
  position: relative;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease;
  overflow: hidden;
}

/* Hover — subtle light fill + lift */
.rb-dock-item a:hover {
  color: rgba(245, 242, 238, 0.95);
  background: rgba(245, 242, 238, 0.08);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.rb-dock-item a:active {
  transform: translateY(0) scale(0.96);
  transition: transform 0.1s ease;
}

/* Active — bright white pill */
.rb-dock-item a.active {
  background: var(--rb-offwhite);
  color: var(--rb-dark);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transform: translateY(0) scale(1);
}

.rb-dock-item a.active:hover {
  background: #ffffff;
  color: var(--rb-dark);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   INFO PAGE STYLES (rblln editorial aesthetic)
   ========================================================================== */
.rb-info-main {
  min-height: 100vh;
  padding: 110px 16px 140px;
  max-width: 1980px;
  width: 98%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .rb-info-main {
    padding: 140px 24px 160px;
    width: 98.5%;
  }
}

@media (min-width: 1440px) {
  .rb-info-main {
    padding: 140px 28px 160px;
    width: 99%;
  }
}

.rb-info-hero {
  position: relative;
  border-bottom: 1px solid var(--rb-dark);
  padding-bottom: 50px;
  margin-bottom: 60px;
}

@media (min-width: 1024px) {
  .rb-info-hero {
    padding-bottom: 80px;
    margin-bottom: 80px;
  }
}

.rb-info-h1 {
   font-size: clamp(48px, 11vw, 150px);
   font-weight: 900;
   letter-spacing: -0.05em;
   line-height: 1;
   text-transform: uppercase;
   color: var(--rb-dark);
   margin-bottom: 30px;
 }

.rb-info-bio {
  font-size: clamp(20px, 2.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--rb-dark);
  max-width: 1450px;
}

/* ==========================================================================
   GIFT FOR YOU SECTION (floating cards: music player + personal letter)
   ========================================================================== */
.rb-gift-section {
  padding: 0 clamp(20px, 5vw, 80px) 80px;
  max-width: 1500px;
  margin: 0 auto;
}

.rb-gift-header {
  margin-bottom: 48px;
  text-align: center;
}

.rb-gift-eyebrow {
  display: block;
  font-family: var(--rb-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--rb-orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rb-gift-title {
  font-family: var(--rb-font-display);
  font-size: clamp(42px, 7vw, 110px);
  font-weight: 800;
  letter-spacing: -0.04em;
line-height: 1;
   text-transform: lowercase;
   color: var(--rb-dark);
 }

.rb-gift-hint {
  margin-top: 14px;
  font-family: var(--rb-font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rb-dark);
  opacity: 0.75;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Two floating gift slots */
.rb-gift-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.rb-gift-item {
  position: relative;
  width: 100%;
}

/* ==========================================================================
   AUTHENTIC 3D ISOMETRIC FLOATING GIFT BOX CUBE
   ========================================================================== */
.rb-gift-stage {
  position: relative;
  padding: 16px 10px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rb-gift-box-cube {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
}

/* 3D Floating SVG Graphic */
.rb-cube-graphic-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.rb-gift-cube-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 28px rgba(9, 99, 126, 0.18));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* Floating Bobbing Animation for Box */
.rb-svg-floating-box {
  animation: svgBoxFloat 4.2s ease-in-out infinite;
  transform-origin: center center;
}

.rb-gift-box-letter .rb-svg-floating-box {
  animation-delay: 0.9s;
}

@keyframes svgBoxFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* Ground Shadow pulsing with float */
.rb-svg-ground-shadow {
  animation: svgShadowPulse 4.2s ease-in-out infinite;
  transform-origin: 140px 254px;
}

.rb-gift-box-letter .rb-svg-ground-shadow {
  animation-delay: 0.9s;
}

@keyframes svgShadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.38;
  }
}

/* Hover & Active Interactions */
.rb-gift-box-cube:hover .rb-gift-cube-svg {
  transform: translateY(-12px) scale(1.06);
  filter: drop-shadow(0 22px 36px rgba(9, 99, 126, 0.28));
}

.rb-gift-box-cube:hover .rb-svg-bow {
  animation: bowSvgWiggle 0.5s ease-in-out infinite alternate;
  transform-origin: 140px 93px;
}

@keyframes bowSvgWiggle {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.rb-gift-box-cube:hover .rb-svg-tag {
  animation: tagSvgSway 1s ease-in-out infinite alternate;
  transform-origin: 120px 90px;
}

@keyframes tagSvgSway {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(10deg); }
}

.rb-gift-box-cube:active .rb-gift-cube-svg {
  transform: translateY(-2px) scale(0.96);
  transition: transform 0.12s ease;
}

/* Floating Action Card Badge */
.rb-cube-badge-card {
  margin-top: -8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 18px 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 8px 24px rgba(9, 99, 126, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.rb-cube-badge-title {
  font-family: var(--rb-font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--rb-dark);
  letter-spacing: -0.01em;
}

.rb-cube-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rb-dark);
  color: #ffffff;
  font-family: var(--rb-font-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.rb-gift-box-cube:hover .rb-cube-badge-card {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(9, 99, 126, 0.22);
}

.rb-gift-box-cube:hover .rb-cube-badge-btn {
  background: var(--rb-orange);
  transform: scale(1.05);
}

/* Floating Sparkles */
.rb-gift-sparkles {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 220px;
  pointer-events: none;
  z-index: 5;
}

.rb-sparkle {
  position: absolute;
  font-size: 18px;
  animation: sparkleTwinkle 2.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 6px rgba(253, 101, 4, 0.5));
}

.rb-sparkle.s1 { top: 12px; left: 18px; animation-delay: 0.2s; font-size: 22px; }
.rb-sparkle.s2 { top: 38px; right: 14px; animation-delay: 0.8s; font-size: 18px; }
.rb-sparkle.s3 { bottom: 35px; left: 10px; animation-delay: 1.4s; font-size: 20px; }

/* Real Paper Confetti Cannon Burst */
.rb-confetti-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999;
  perspective: 900px;
}

.rb-confetti-piece {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 2px;
  will-change: transform, opacity;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: confettiFlutter var(--dur, 1.4s) cubic-bezier(0.12, 0.82, 0.22, 1) forwards;
}

@keyframes confettiFlutter {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.3) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  30% {
    opacity: 1;
    transform: translate3d(var(--blast-x), var(--blast-y), 0) scale(1.15) rotateX(var(--rx1)) rotateY(var(--ry1)) rotateZ(var(--rz1));
  }
  65% {
    opacity: 0.95;
    transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1) rotateX(var(--rx2)) rotateY(var(--ry2)) rotateZ(var(--rz2));
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fall-x), var(--fall-y), 0) scale(0.8) rotateX(var(--rx3)) rotateY(var(--ry3)) rotateZ(var(--rz3));
  }
}

/* STATES: WRAPPED VS UNWRAPPING VS OPENED */
.rb-gift-item {
  position: relative;
  width: 100%;
  min-height: 290px;
}

.rb-gift-item[data-state="wrapped"] .rb-gift-card {
  display: none !important;
}

.rb-gift-item[data-state="opened"] .rb-gift-stage,
.rb-gift-item[data-state="opened"] .rb-gift-box-cube {
  display: none !important;
}

/* UNWRAPPING EXPLOSION SEQUENCE (Confetti-Synced Burst) */
.rb-gift-item[data-state="unwrapping"] .rb-gift-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.rb-gift-item[data-state="unwrapping"] .rb-svg-floating-box {
  animation: none !important;
}

.rb-gift-item[data-state="unwrapping"] .rb-svg-lid {
  animation: lidPopExplosion 0.6s cubic-bezier(0.12, 0.9, 0.25, 1) forwards !important;
  transform-origin: 140px 90px;
}

@keyframes lidPopExplosion {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  30% {
    transform: translateY(-90px) rotate(-18deg) scale(1.14);
    opacity: 1;
  }
  100% {
    transform: translateY(-180px) rotate(-38deg) scale(1.2);
    opacity: 0;
  }
}

.rb-gift-item[data-state="unwrapping"] .rb-svg-base {
  animation: basePopDrop 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) forwards !important;
  transform-origin: 140px 180px;
}

@keyframes basePopDrop {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  40% {
    transform: scale(0.95) translateY(18px);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.75) translateY(50px);
    opacity: 0;
  }
}

.rb-gift-item[data-state="unwrapping"] .rb-cube-badge-card,
.rb-gift-item[data-state="unwrapping"] .rb-svg-ground-shadow,
.rb-gift-item[data-state="unwrapping"] .rb-gift-sparkles {
  opacity: 0 !important;
  transform: scale(0.7) !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* CARDS BURST OUT CONCURRENTLY WITH CONFETTI */
.rb-gift-item[data-state="unwrapping"] .rb-gift-music,
.rb-gift-item[data-state="opened"] .rb-gift-music {
  display: block !important;
  position: relative;
  z-index: 2;
}

.rb-gift-item[data-state="unwrapping"] .rb-gift-music {
  animation: cardConfettiBlastMusic 0.85s cubic-bezier(0.16, 1.2, 0.3, 1) forwards;
  transform-origin: center center;
}

@keyframes cardConfettiBlastMusic {
  0% {
    opacity: 0;
    transform: scale(0.15) translateY(70px) rotate(-14deg);
    filter: blur(4px);
  }
  25% {
    opacity: 1;
    filter: blur(0);
  }
  50% {
    transform: scale(1.08) translateY(-26px) rotate(3deg);
  }
  75% {
    transform: scale(0.97) translateY(6px) rotate(-2.5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(-1.5deg);
  }
}

.rb-gift-item[data-state="unwrapping"] .rb-gift-letter,
.rb-gift-item[data-state="opened"] .rb-gift-letter {
  display: block !important;
  position: relative;
  z-index: 2;
}

.rb-gift-item[data-state="unwrapping"] .rb-gift-letter {
  animation: cardConfettiBlastLetter 0.85s cubic-bezier(0.16, 1.2, 0.3, 1) forwards;
  transform-origin: center center;
}

@keyframes cardConfettiBlastLetter {
  0% {
    opacity: 0;
    transform: scale(0.15) translateY(70px) rotate(14deg);
    filter: blur(4px);
  }
  25% {
    opacity: 1;
    filter: blur(0);
  }
  50% {
    transform: scale(1.08) translateY(-26px) rotate(-3deg);
  }
  75% {
    transform: scale(0.97) translateY(6px) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(1.2deg);
  }
}

/* Re-wrap Button on Opened Card */
.rb-rewrap-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rb-dark);
  border: none;
  color: var(--rb-offwhite);
  font-family: var(--rb-font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 1;
  transition: all 0.2s ease;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.rb-rewrap-btn:hover {
  background: var(--rb-orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(253, 101, 4, 0.4);
}

.rb-rewrap-btn:active {
  transform: scale(0.95);
}

@media (min-width: 700px) {
  .rb-gift-cards {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Base card — floating paper/post-it aesthetic */
.rb-gift-card {
  position: relative;
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow:
    0 8px 32px rgba(9, 99, 126, 0.10),
    0 2px 8px rgba(9, 99, 126, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.rb-gift-card:hover {
  transform: translateY(-6px) rotate(0.4deg);
  box-shadow:
    0 20px 56px rgba(9, 99, 126, 0.16),
    0 4px 16px rgba(9, 99, 126, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Pushpin decoration */
.rb-gift-card-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rb-orange);
  box-shadow: 0 2px 6px rgba(253, 101, 4, 0.45), inset 0 1px 2px rgba(255, 200, 150, 0.6);
  z-index: 2;
}

.rb-gift-card-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

/* Card label */
.rb-gift-card-label {
  display: block;
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.7;
}

/* MUSIC CARD specific */
.rb-gift-music {
  background: linear-gradient(145deg, #e8f4f7 0%, #d4eef6 60%, #c8e8f4 100%);
  border: 1px solid rgba(9, 99, 126, 0.18);
  transform: rotate(-1.5deg);
}

.rb-gift-music:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

.rb-gift-music-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rb-gift-music-top .rb-gift-card-label {
  margin-bottom: 0;
}

.rb-gift-status-tag {
  font-family: var(--rb-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rb-dark);
  background: rgba(9, 99, 126, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.rb-gift-status-tag.is-playing {
  background: var(--rb-orange);
  color: #fff;
  opacity: 1;
}

/* Vinyl Player Widget */
.rb-player-widget {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(9, 99, 126, 0.14);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 24px rgba(9, 99, 126, 0.08);
}

/* Spinning Vinyl Record */
.rb-player-vinyl {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b3640 0%, #161d24 70%, #0d1217 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinVinyl 3.6s linear infinite;
  animation-play-state: paused;
}

.rb-player-vinyl.is-playing {
  animation-play-state: running;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rb-vinyl-grooves {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.03), inset 0 0 0 14px rgba(0, 0, 0, 0.2);
}

.rb-vinyl-center {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rb-orange);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rb-vinyl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFF9D8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Track Details & Progress */
.rb-player-details {
  flex: 1;
  min-width: 0;
}

.rb-player-title {
  font-family: var(--rb-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--rb-dark);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.rb-player-artist {
  font-family: var(--rb-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-dark);
  opacity: 0.65;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.rb-player-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(9, 99, 126, 0.14);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.15s ease;
}

.rb-player-progress-container:hover {
  height: 8px;
}

.rb-player-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rb-dark), var(--rb-orange));
  border-radius: 999px;
  transition: width 0.1s linear;
}

.rb-player-time {
  display: flex;
  justify-content: space-between;
  font-family: var(--rb-font-body);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--rb-dark);
  opacity: 0.6;
  margin-top: 5px;
}

/* Play Button */
.rb-player-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rb-dark);
  color: #fff;
  font-family: var(--rb-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(9, 99, 126, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rb-player-play-btn:hover {
  background: var(--rb-orange);
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(253, 101, 4, 0.35);
}

.rb-player-play-btn:active {
  transform: scale(0.96);
}

.rb-player-play-btn .rb-icon-pause {
  display: none;
}

.rb-player-play-btn.is-playing .rb-icon-play {
  display: none;
}

.rb-player-play-btn.is-playing .rb-icon-pause {
  display: inline-block;
}

/* Volume Control */
.rb-player-volume-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(9, 99, 126, 0.15);
  border-radius: 999px;
  padding: 5px 12px 5px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(9, 99, 126, 0.05);
  transition: all 0.2s ease;
}

.rb-player-volume-wrap:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(9, 99, 126, 0.28);
}

.rb-volume-btn {
  background: none;
  border: none;
  color: var(--rb-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.rb-volume-btn:hover {
  opacity: 1;
  transform: scale(1.12);
  color: var(--rb-orange);
}

.rb-volume-btn .rb-icon-vol-mute {
  display: none;
}

.rb-volume-btn.is-muted .rb-icon-vol-high {
  display: none;
}

.rb-volume-btn.is-muted .rb-icon-vol-mute {
  display: inline-block;
  color: var(--rb-orange);
}

/* Custom styled Range Slider */
.rb-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 65px;
  height: 4px;
  background: rgba(9, 99, 126, 0.18);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rb-volume-slider:hover {
  background: rgba(9, 99, 126, 0.32);
}

.rb-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rb-dark);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(9, 99, 126, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.rb-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--rb-orange);
}

.rb-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rb-dark);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(9, 99, 126, 0.3);
  cursor: pointer;
}

.rb-gift-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 99, 126, 0.08);
  border: 1px solid rgba(9, 99, 126, 0.22);
  color: var(--rb-dark);
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(9, 99, 126, 0.08);
}

.rb-gift-shuffle-btn:hover {
  background: var(--rb-orange);
  border-color: var(--rb-orange);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(253, 101, 4, 0.3);
}

.rb-gift-shuffle-btn:active {
  transform: scale(0.96);
}

.rb-gift-shuffle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rb-gift-shuffle-btn.is-spinning .rb-gift-shuffle-icon {
  transform: rotate(360deg);
}

/* LETTER CARD specific */
.rb-gift-letter {
  background: linear-gradient(148deg, #fffdf0 0%, #fff9d8 50%, #fef6c8 100%);
  border: 1px solid rgba(9, 99, 126, 0.14);
  transform: rotate(1.2deg);
}

.rb-gift-letter:hover {
  transform: translateY(-6px) rotate(0.3deg);
}

.rb-gift-letter-body {
  padding-top: 4px;
}

.rb-gift-letter-text {
  font-family: var(--rb-font-handwritten);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--rb-dark);
  margin-bottom: 20px;
}

.rb-gift-letter-sign {
  font-family: var(--rb-font-handwritten);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  color: var(--rb-dark);
  text-transform: none;
  letter-spacing: 0;
  text-align: right;
  opacity: 0.8;
}

@media (max-width: 699px) {
  .rb-gift-music {
    transform: rotate(-1deg);
  }
  .rb-gift-letter {
    transform: rotate(0.8deg);
  }
  .rb-gift-music:hover,
  .rb-gift-letter:hover {
    transform: translateY(-4px) rotate(0deg);
  }
}

@media (max-width: 480px) {
  .rb-player-widget {
    padding: 12px 14px;
    gap: 14px;
  }
  .rb-player-vinyl {
    width: 60px;
    height: 60px;
  }
  .rb-player-title {
    font-size: 14px;
  }
}

.rb-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 80px;
  min-width: 0;
}

@media (min-width: 768px) {
  .rb-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 1440px) {
  .rb-info-grid {
    gap: 40px;
  }
}

.rb-info-card {
  position: relative;
  background: rgba(29, 29, 29, 0.03);
  border: 1px solid var(--rb-dark);
  border-radius: var(--rb-card-radius);
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 480px) {
  .rb-info-card {
    padding: 26px;
  }
}

@media (min-width: 768px) {
  .rb-info-card {
    padding: 40px;
  }
}

.rb-info-label {
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--rb-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.rb-info-value {
   font-size: clamp(16px, 4vw, 32px);
   font-weight: 900;
   letter-spacing: -0.03em;
   line-height: 1.4;
   color: var(--rb-dark);
   word-break: break-word;
   overflow-wrap: break-word;
   max-width: 100%;
 }

.rb-info-copy-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rb-dark);
  color: var(--rb-offwhite);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 100%;
  white-space: nowrap;
}

.rb-info-copy-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: var(--rb-offwhite);
}

.rb-info-copy-btn:active {
  transform: scale(0.96);
}

/* Info Social & Profiles List */
.rb-info-social-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.rb-info-social-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(9, 99, 126, 0.12);
}

.rb-info-social-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.rb-info-social-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rb-info-social-platform {
  font-family: var(--rb-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rb-muted);
  text-transform: uppercase;
}

.rb-info-social-item .rb-info-value {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.15;
  word-break: normal;
}

.rb-info-social-item .rb-info-value a {
  color: var(--rb-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rb-info-social-item .rb-info-value a:hover {
  color: var(--rb-accent);
}

.rb-info-social-item .rb-info-copy-btn {
  margin-top: 2px;
  font-size: 11px;
  padding: 8px 14px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .rb-info-social-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .rb-info-social-item .rb-info-copy-btn {
    margin-top: 0;
    flex-shrink: 0;
  }
}

/* Selected Work / Filmography Table */
.rb-cv-section {
  position: relative;
  margin-bottom: 80px;
}

.rb-cv-title {
   font-size: clamp(28px, 5vw, 56px);
   font-weight: 900;
   letter-spacing: -0.04em;
   line-height: 1.1;
   text-transform: uppercase;
   color: var(--rb-dark);
   margin-bottom: 24px;
 }

.rb-cv-list {
  list-style: none;
  border-top: 1px solid var(--rb-dark);
}

.rb-cv-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(29, 29, 29, 0.15);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 600px) {
  .rb-cv-item {
    grid-template-columns: 60px 1fr;
    gap: 8px;
  }
  .rb-cv-meta {
    grid-column: 2;
  }
}

.rb-cv-year {
  color: var(--rb-muted);
  font-family: var(--rb-font-body);
  font-size: 12px;
  font-weight: 700;
}

.rb-cv-meta {
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rb-muted);
  text-align: right;
}

/* ==========================================================================
   PROJECT DETAIL PAGE (Expanded cinematic presence, matching main site width)
   ========================================================================== */
.rb-project-main {
  min-height: 100vh;
  padding: 110px 16px 140px;
  max-width: 1980px;
  width: 98%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .rb-project-main {
    padding: 140px 24px 160px;
    width: 98.5%;
  }
}

@media (min-width: 1440px) {
  .rb-project-main {
    padding: 140px 28px 160px;
    width: 99%;
  }
}

.rb-project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rb-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rb-project-back:hover {
  color: var(--rb-dark);
  transform: translateX(-4px);
}

.rb-project-hero {
  position: relative;
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rb-dark);
}

.rb-project-title {
   font-size: clamp(44px, 8.5vw, 135px);
   font-weight: 900;
   letter-spacing: -0.05em;
   line-height: 1;
   text-transform: uppercase;
   color: var(--rb-dark);
   margin-bottom: 24px;
   word-break: break-word;
 }

.rb-project-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-bottom: 20px;
}

.rb-project-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rb-dark);
  color: var(--rb-offwhite);
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rb-project-role {
  font-family: var(--rb-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rb-muted);
  text-transform: uppercase;
}

.rb-project-desc {
  font-family: var(--rb-font-body);
  font-size: clamp(15px, 1.35vw, 20px);
  color: rgba(29, 29, 29, 0.85);
  line-height: 1.6;
  max-width: 1350px;
  text-transform: none;
}

/* Feature Video Cinema Wrap (Fits exact video dimensions with zero black letterbox/pillarbox) */
.rb-project-video-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 70px;
  background: transparent;
  border: 1px solid var(--rb-dark);
  border-radius: var(--rb-card-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rb-project-video-wrap video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: transparent;
  outline: none;
}

/* Project Credits & Behind The Project */
.rb-project-credits {
  position: relative;
  margin-bottom: 60px;
  padding: 32px 0;
  border-top: 1px solid var(--rb-dark);
  border-bottom: 1px solid var(--rb-dark);
}

.rb-credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 36px;
}

.rb-credit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rb-credit-label {
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-muted);
}

.rb-credit-value {
  font-family: var(--rb-font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--rb-dark);
}

.rb-project-behind {
  position: relative;
  margin-bottom: 70px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--rb-dark);
}

.rb-behind-title {
  font-family: var(--rb-font-display);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
line-height: 1.1;
   margin-bottom: 22px;
   color: var(--rb-dark);
 }

.rb-behind-text {
  font-family: var(--rb-font-body);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.75;
  color: var(--rb-dark);
  max-width: 1350px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.9;
}

.rb-behind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 48px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px dashed rgba(9, 99, 126, 0.25);
}

.rb-behind-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rb-behind-subhead {
  font-family: var(--rb-font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--rb-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-behind-subhead::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--rb-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.rb-behind-subtext {
  font-family: var(--rb-font-body);
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.7;
  color: var(--rb-dark);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
}

/* Production Stills Section */
.rb-project-stills-section {
  position: relative;
  margin-bottom: 80px;
}

.rb-project-stills-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rb-dark);
  margin-bottom: 30px;
}

.rb-project-stills-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--rb-dark);
}

.rb-project-stills-count {
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rb-muted);
  text-transform: uppercase;
}

.rb-project-stills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .rb-project-stills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.rb-project-still-card {
  position: relative;
  border: 1px solid rgba(29, 29, 29, 0.15);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(29, 29, 29, 0.04);
}

.rb-project-still-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease-rb);
}

.rb-project-still-card:hover img {
  transform: scale(1.02);
}

/* Project Pager Navigation */
.rb-project-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rb-dark);
  padding: 40px 0 20px;
  gap: 20px;
}

.rb-project-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rb-project-pager-link:hover {
  opacity: 0.7;
}

.rb-project-pager-link.prev:hover {
  transform: translateX(-4px);
}

.rb-project-pager-link.next {
  text-align: right;
}

.rb-project-pager-link.next:hover {
  transform: translateX(4px);
}

.rb-project-pager-label {
  font-family: var(--rb-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rb-muted);
  text-transform: uppercase;
}

.rb-project-pager-title {
  font-size: clamp(18px, 2.8vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--rb-dark);
  text-transform: uppercase;
}

.rb-project-pager-center {
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--rb-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}



/* ==========================================================================
   MOTION GRAPHICS MULTI-VIDEO SHOWCASE
   ========================================================================== */
.rb-motion-showcase {
  margin-bottom: 90px;
}

.rb-motion-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rb-dark);
  margin-bottom: 12px;
}

.rb-motion-showcase-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--rb-dark);
}

.rb-motion-showcase-count {
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rb-muted);
  text-transform: uppercase;
}

.rb-motion-showcase-sub {
  font-family: var(--rb-font-body);
  font-size: 14px;
  color: var(--rb-muted);
  margin-bottom: 30px;
  text-transform: none;
}

.rb-motion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 768px) {
  .rb-motion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

.rb-motion-card {
  position: relative;
  background: rgba(29, 29, 29, 0.03);
  border: 1px solid var(--rb-dark);
  border-radius: var(--rb-card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-rb), box-shadow 0.3s var(--ease-rb);
}

.rb-motion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.rb-motion-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(29, 29, 29, 0.12);
  background: rgba(245, 242, 238, 0.5);
  gap: 12px;
}

.rb-motion-card-title {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--rb-dark);
}

.rb-motion-card-badge {
  font-family: var(--rb-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rb-dark);
  color: var(--rb-offwhite);
  text-transform: uppercase;
  white-space: nowrap;
}

.rb-motion-video-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rb-motion-video-player-wrap video {
  width: 100%;
  max-height: 460px;
  display: block;
  background: #000;
  outline: none;
}

/* 9:16 Vertical Video Reel Styling */
.rb-motion-card.vertical .rb-motion-video-player-wrap {
  background: #080808;
  padding: 16px 0;
}

.rb-motion-card.vertical .rb-motion-video-player-wrap video {
  max-width: 280px;
  max-height: 500px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.rb-motion-card-body {
  padding: 14px 20px 18px;
}

.rb-motion-card-desc {
  font-family: var(--rb-font-body);
  font-size: 13px;
  color: rgba(29, 29, 29, 0.7);
  line-height: 1.5;
  text-transform: none;
}


/* ==========================================================================
   FOOTER (Faithful to rblln.fr)
   ========================================================================== */
.rb-footer {
  border-top: 1px solid var(--rb-dark);
  padding: 60px 20px 100px;
  background: var(--rb-offwhite);
  text-align: center;
}

@media (min-width: 1024px) {
  .rb-footer {
    padding: 80px 40px 120px;
  }
}

.rb-footer-giant {
   font-size: clamp(38px, 10vw, 150px);
   font-weight: 900;
   letter-spacing: -0.06em;
   line-height: 1;
   text-transform: uppercase;
   color: var(--rb-dark);
   margin-bottom: 40px;
   word-break: break-word;
 }

.rb-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 50px;
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

@media (min-width: 768px) {
  .rb-footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

.rb-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.rb-footer-links a {
  transition: opacity 0.2s ease;
}

.rb-footer-links a:hover {
  opacity: 0.5;
}

.rb-footer-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.5;
}

.rb-footer-bottom {
  font-family: var(--rb-font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--rb-muted);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   VOLUME SLIDER POPUP
   ========================================================================== */

.rb-vol-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 10px;
  width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--rb-offwhite);
  border: 1.5px solid var(--rb-dark);
  border-radius: 20px;
  padding: 10px 0 12px;
  z-index: 50;
  pointer-events: all;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rb-vol-popup.rb-vol-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rb-vol-label {
  font-family: var(--rb-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rb-dark);
  user-select: none;
  line-height: 1;
}

.rb-vol-track {
  position: relative;
  width: 4px;
  height: 80px;
  background: rgba(9, 99, 126, 0.15);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.rb-vol-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--rb-dark);
  border-radius: 4px;
  transition: height 0.05s linear;
}

.rb-vol-thumb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--rb-dark);
  border: 2px solid var(--rb-offwhite);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: bottom 0.05s linear;
}

/* ==========================================================================
   KNIFE SLASH EFFECT — Canvas overlay + Binary digit eruption
   High-contrast tear cut (dark incision + cyan energy) + erupting binary code
   ========================================================================== */

/* Canvas overlay drawn on the hero section by JS */
.rb-slash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;   /* above bg, below portrait & text */
}

@keyframes rb-binary-slash-erupt {
  0% {
    transform: translate(0, 0) scale(0.65);
    opacity: 1;
  }
  20% {
    transform: translate(calc(var(--bdx, 0px) * 0.35), calc(var(--bdy, 0px) * 0.35)) scale(1.15);
    opacity: 1;
  }
  75% {
    opacity: 0.95;
  }
  100% {
    transform: translate(var(--bdx, 0px), var(--bdy, 0px)) scale(1.0);
    opacity: 0;
  }
}

.rb-binary-digit {
  position: fixed;
  z-index: 99999;
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: #041922;
  background: none;
  border: none;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  --bdx: 0px;
  --bdy: -40px;
  will-change: transform, opacity;
  text-shadow:
    0 0 2px #00f5ff,
    0 0 8px rgba(0, 245, 255, 0.95),
    0 0 20px rgba(0, 210, 255, 0.6),
    0 0 35px rgba(0, 180, 255, 0.35);
}

.rb-binary-digit--active {
  animation: rb-binary-slash-erupt ease-out forwards;
}

.rb-binary-digit:nth-child(3n) {
  color: #031e12;
  text-shadow:
    0 0 2px #00ff73,
    0 0 8px rgba(0, 255, 115, 0.95),
    0 0 20px rgba(0, 255, 115, 0.6),
    0 0 35px rgba(0, 255, 115, 0.35);
}

.rb-binary-digit:nth-child(5n) {
  color: #051833;
  text-shadow:
    0 0 2px #38a2ff,
    0 0 8px rgba(56, 162, 255, 0.95),
    0 0 20px rgba(56, 162, 255, 0.6),
    0 0 35px rgba(56, 162, 255, 0.35);
}

@media (hover: none) {
  .rb-binary-digit { display: none; }
  .rb-slash-canvas { display: none; }
}

