/* ─── UTILITY TEXT ───────────────────────────────────────── */
.accent-text {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-size: 0.68rem;
  font-weight: 400;
}

/* Blue accent — no hacker glow, just the color */
.glow-text {
  color: var(--electric-blue);
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav-float {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  background: linear-gradient(180deg, rgba(2,1,14,0.92) 0%, rgba(2,1,14,0.6) 70%, transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-float__logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--pure-white);
  letter-spacing: -0.05em;
  text-decoration: none;
  line-height: 1;
  font-weight: 400;
  position: relative;
  z-index: 3;
}

.nav-float__logo em {
  color: var(--cyan-blue);
  font-style: normal;
}

.nav-float__links {
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.nav-float__link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  transition: color var(--transition-snap);
  position: relative;
}

.nav-float__link:hover, .nav-float__link.active {
  color: var(--pure-white);
}

.nav-float__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--cyan-blue);
  transition: width var(--transition-snap);
}

.nav-float__link:hover::after {
  width: 100%;
}

/* ─── DRIFT / FLOATING DECORATIVE ELEMENTS ───────────────── */
.drift-element {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  will-change: transform;
  color: var(--midnight-blue);
  opacity: 0.35;
  animation: drift-float var(--drift-duration, 18s) ease-in-out infinite;
  animation-delay: var(--drift-delay, 0s);
}

/* Light variants for sections with colored backgrounds */
.drift-element--light {
  color: var(--deep-navy);
  opacity: 0.4;
}

@keyframes drift-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(var(--drift-x, 15px), calc(var(--drift-y, 10px) * -1)) rotate(0.8deg); }
  50%  { transform: translate(calc(var(--drift-x, 15px) * -0.5), var(--drift-y, 10px)) rotate(-0.4deg); }
  75%  { transform: translate(calc(var(--drift-x, 15px) * 0.7), calc(var(--drift-y, 10px) * -0.3)) rotate(0.3deg); }
}

/* AE keyframe diamond */
.ae-keyframe {
  width: 10px;
  height: 10px;
  background: currentColor;
  transform: rotate(45deg);
  font-size: 0;
}

/* AE anchor/crosshair circle */
.ae-anchor {
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.ae-anchor::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 100%;
  background: currentColor;
  left: 50%;
  transform: translateX(-50%);
}

.ae-anchor::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: currentColor;
  top: 50%;
  transform: translateY(-50%);
}

/* AE scrubber bar */
.ae-scrubber {
  width: 72px;
  height: 2px;
  background: currentColor;
  opacity: 0.4;
  position: relative;
}

.ae-scrubber::after {
  content: '';
  position: absolute;
  right: 28%;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* AE bracket */
.ae-bracket {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: currentColor;
  opacity: 0.25;
  font-weight: 400;
}

/* AE timecode */
.ae-timecode {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: currentColor;
  opacity: 0.35;
  letter-spacing: -0.05em;
  font-weight: 400;
}

/* Editorial × cross */
.ae-cross {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: currentColor;
  opacity: 0.18;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Print registration mark */
.ae-reg {
  width: 26px;
  height: 26px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  opacity: 0.18;
}

.ae-reg::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 180%;
  background: currentColor;
  left: 50%;
  top: -40%;
  transform: translateX(-50%);
}

.ae-reg::after {
  content: '';
  position: absolute;
  width: 180%;
  height: 1px;
  background: currentColor;
  top: 50%;
  left: -40%;
  transform: translateY(-50%);
}

/* ─── VIDEO / CONTENT PLACEHOLDER ───────────────────────── */
.video-placeholder {
  background: linear-gradient(145deg, var(--deep-navy) 0%, var(--midnight-blue) 100%);
  border: 1.5px solid var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Film frame corners */
.video-placeholder::before,
.video-placeholder::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--deep-navy);
  border-style: solid;
}

.video-placeholder::before {
  top: 10px;
  left: 10px;
  border-width: 1.5px 0 0 1.5px;
}

.video-placeholder::after {
  bottom: 10px;
  right: 10px;
  border-width: 0 1.5px 1.5px 0;
}

.ratio-9-16 {
  aspect-ratio: 9 / 16;
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}


.placeholder-content {
  text-align: center;
  color: rgba(255,255,255,0.18);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: -0.05em;
  font-weight: 400;
}

/* ─── PROCESS CARDS (on Strategy section) ──────────────── */
.process-card {
  background: var(--deep-navy);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--pure-white);
  padding: 36px 28px 32px;
  position: relative;
  transition: transform var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
  cursor: default;
}

.process-card:hover {
  transform: translateY(-6px) !important;
  background: var(--electric-blue);
  border-color: var(--pure-white);
}

.process-card__number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--cyan-blue);
  opacity: 0.6;
  position: absolute;
  top: 8px;
  right: 14px;
  line-height: 1;
  transition: color var(--transition-smooth), opacity var(--transition-smooth);
  font-weight: 400;
  letter-spacing: -0.05em;
  z-index: 3;
}

.process-card:hover .process-card__number {
  color: var(--midnight-blue);
  opacity: 0.8;
}

.process-card__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--electric-blue);
  letter-spacing: -0.05em;
  margin-bottom: 12px;
  transition: color var(--transition-smooth);
  font-weight: 400;
  position: relative;
  z-index: 3;
}

.process-card:hover .process-card__title {
  color: var(--pure-white);
}

.process-card__desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--electric-blue);
  line-height: 1.65;
  font-weight: 400;
  transition: color var(--transition-smooth);
  position: relative;
  z-index: 3;
}

.process-card:hover .process-card__desc {
  color: var(--pure-white);
}

/* ─── VAULT CELLS ────────────────────────────────────────── */
.vault-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition-smooth), outline var(--transition-snap);
  /* Height determined by content / grid row */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--midnight-blue);
  aspect-ratio: 9 / 16; /* Default fallback for vertical videos */
}

.vault-cell.vault-cell--visible {
  opacity: 1;
  transform: translateY(0);
}

.vault-cell:hover, .vault-cell.vault-cell--active {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px var(--pure-white), 0 12px 40px rgba(2,1,14,0.3);
  z-index: 2;
}

.vault-cell[data-shade="1"] { background: var(--midnight-blue); }
.vault-cell[data-shade="2"] { background: var(--deep-navy); }
.vault-cell[data-shade="3"] { background: linear-gradient(145deg, var(--deep-navy) 0%, var(--midnight-blue) 100%); }
.vault-cell[data-shade="4"] { background: linear-gradient(145deg, var(--midnight-blue) 0%, var(--deep-navy) 100%); }
.vault-cell[data-shade="5"] { background: var(--midnight-blue); }

.vault-cell--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9; /* Default fallback for wide horizontal videos */
}

@media (min-width: 1201px) {
  .vault-cell--wide {
    grid-column: 2 / span 2;
  }
}

.vault-cell--tall     { grid-row:    span 2; }
.vault-cell--featured { grid-column: span 2; grid-row: span 2; }

.vault-cell__media {
  position: absolute;
  inset: 0;
}

/* ─── VIDEO ELEMENTS ─────────────────────────────────────── */
/* Grid preview: fills the cell, object-fit:cover ensures it covers the cell exactly */
.vault-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Hero reel wrapper preserves its aspect ratio */
.video-wrap {
  position: relative;
  width: 100%;
}


/* Play-icon overlay on vault cells */
.vault-cell__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.vault-cell:hover .vault-cell__play-icon {
  opacity: 1;
}

.vault-cell__play-icon svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.7));
}

.vault-cell__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  font-family: var(--font-accent);
  font-size: 0.56rem;
  font-weight: 400;
  color: var(--pure-white);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  background: var(--deep-navy);
  padding: 5px 12px;
}

.vault-cell__title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pure-white);
  letter-spacing: -0.05em;
  font-weight: 400;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92%  { opacity: 1; }
  93%  { opacity: 0.7; }
  94%  { opacity: 1; }
  96%  { opacity: 0.85; }
  97%  { opacity: 1; }
}

.vault-cell.flickering {
  animation: flicker 0.15s ease-in-out;
}

/* ─── VIDEO LIGHTBOX MODAL ───────────────────────────────── */
#video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#video-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Dark cinematic backdrop */
#video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 1, 14, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

/* Halftone texture on backdrop */
#video-lightbox__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(43,43,229,0.05) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

/* Inner container — sized to respect video aspect ratio */
#video-lightbox__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;  /* Stretch controls bar to match video width */
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  width: fit-content;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#video-lightbox.is-open #video-lightbox__inner {
  transform: scale(1) translateY(0);
}

/* The video itself */
#video-lightbox__video {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08);
}

/* Controls bar below the video */
#video-lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 20px;
  background: rgba(2, 1, 14, 0.75);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-sizing: border-box;
}

#video-lightbox__tag {
  font-family: var(--font-accent);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: var(--deep-navy);
  padding: 4px 12px;
  flex-shrink: 0;
}

#video-lightbox__title {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#video-lightbox__title a {
  color: var(--pure-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-snap);
}

#video-lightbox__title a:hover {
  color: var(--electric-blue);
}

#video-lightbox__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-accent);
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-left: auto;
}

#video-lightbox__close:hover {
  background: var(--pure-white);
  border-color: var(--pure-white);
  color: var(--midnight-blue);
}

/* ESC hint */
#video-lightbox__esc-hint {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-accent);
  font-size: 0.52rem;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
}

/* Responsive: on mobile, allow taller videos to scroll */
@media (max-width: 640px) {
  #video-lightbox__inner {
    max-width: 98vw;
    max-height: 95vh;
  }
  #video-lightbox__video {
    max-height: 70vh;
  }
  #video-lightbox__bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }
}

/* ─── HERO REEL LABEL ──────────────────────────────── */
.hero__reel-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-accent);
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── CTA LINKS ──────────────────────────────────────────── */
.cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--pure-white);
  font-family: var(--font-alte);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.cta__link span {
  font-family: var(--font-alte);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-block;
}

.cta__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-smooth);
}

.cta__link:hover {
  transform: translateY(-4px);
}

.cta__link:hover .cta__icon {
  transform: scale(1.15) rotate(-8deg);
}

/* Instagram Hover State: Colorful gradient transition */
.cta__link--instagram:hover {
  border-color: transparent;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--pure-white);
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.35);
}

/* WhatsApp Hover State: Crisp brand green */
.cta__link--whatsapp:hover {
  border-color: #25D366;
  background: #25D366;
  color: var(--midnight-blue);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

/* Discord Hover State: Classic brand blurple */
.cta__link--discord:hover {
  border-color: #5865F2;
  background: #5865F2;
  color: var(--pure-white);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35);
}

.cta__label {
  margin-bottom: 28px;
  font-size: 0.72rem;
  letter-spacing: -0.05em;
  color: var(--midnight-blue);
  font-weight: 400;
}

/* ─── SITE FOOTER ────────────────────────────────── */
.site-footer {
  padding: 32px 48px;
  text-align: center;
  background: var(--midnight-blue);
  border-top: 1px solid var(--deep-navy);
  color: var(--deep-navy);
  font-family: var(--font-accent);
  font-size: 0.6rem;
  letter-spacing: -0.05em;
  font-weight: 400;
}

/* ─── HAMBURGER BUTTON ───────────────────────────────── */
.nav-hamburger {
  display: none; /* shown via media query */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 101;
  transition: border-color var(--transition-snap);
}

.nav-hamburger:hover {
  border-color: rgba(255,255,255,0.7);
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--pure-white);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Morph to × when open */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Show hamburger on small screens */
@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
}

/* ─── MOBILE MENU OVERLAY ────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--midnight-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Subtle paper texture on the overlay */
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(43,43,229,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-readfine);
  font-size: clamp(2.8rem, 12vw, 5rem);
  color: rgba(255,255,255,0.15);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
  opacity: 0;
  transition: color 0.2s ease, transform 0.35s ease, opacity 0.35s ease;
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
  color: rgba(255,255,255,0.7);
}

/* Stagger each link's entrance */
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.22s; }

.mobile-menu__link:hover { color: var(--pure-white); transform: translateY(-2px); }
