/* Elevated greyscale cinematic theme with sparse logos */
:root {
  --ink: #f5f7ff;
  --ink-soft: #e3e7ff;
  --muted: #9aa0a6;
  --border: #ffffff14;
  --cardA: #0b0b0e;
  --cardB: #0f0f13;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  background: #000;
  color: var(--ink);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Red Rose", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  position: relative;
  overflow-x: hidden;
}


/* Global static splotched background + vignette */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(1200px 800px at 12% 20%, #0e0e10 0%, transparent 60%),
    radial-gradient(1000px 700px at 80% 28%, #0a0a0a 0%, transparent 55%),
    radial-gradient(1000px 800px at 42% 74%, #121214 0%, transparent 62%),
    radial-gradient(800px 600px at 60% 60%, #0c0c0e 0%, transparent 55%),
    linear-gradient(180deg, #000 0%, #0b0b0b 100%);
  filter: blur(2px);
  opacity: 0.98;
}

body::after {
  background:
    radial-gradient(1400px 900px at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.22) 82%),
    radial-gradient(2200px 1400px at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.28) 100%);
  z-index: -1;
}

/* Layout primitives */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 24px);
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spread {
  justify-content: space-between;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  isolation: isolate; /* Create stacking context to prevent overlap */
}

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

/* Team cards - prevent overlap on hover - optimized for performance */
.grid-2 .card {
  position: relative;
  z-index: 1;
  contain: layout style paint; /* Isolate layout calculations */
  backface-visibility: hidden; /* Force GPU acceleration */
  transform: translateZ(0); /* Create GPU layer */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              opacity 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  /* Removed z-index, box-shadow, background, border-color from transition for performance */
  will-change: auto; /* Reset when not hovering */
}

.grid-2 .card:hover,
.grid-2 .card:focus-visible {
  z-index: 10; /* Immediate change, no transition */
  will-change: transform; /* Hint browser to optimize - only on hover */
  transform: translate3d(0, -4px, 0) scale(1.005); /* GPU-accelerated 3D transform */
  /* Override base card box-shadow to prevent expensive transitions */
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .03);
  /* Removed transition property - z-index changes immediately */
}

.narrow {
  max-width: 780px;
}


.mini-cards-spacing {
  margin-top: 24px;
}

.team-description {
  margin-top: 20px;
}

/* Sections */
.section {
  padding: clamp(72px, 12vw, 128px) 0;
  min-height: 100vh;
}

.section:first-of-type {
  padding-top: 72px;
}

/* Hero */
.hero {
  position: relative;
  background: transparent;
  overflow: visible;
}

.section.hero {
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.hero-inner {
  padding: 60vh 0 6vh;
  overflow: visible;
  min-height: 0;
  box-sizing: border-box;
}

.hero .hero-inner {
  margin-left: auto;
  margin-right: auto;
}

/* Tighten hero spacing on mobile */
@media (max-width: 768px) {
  .hero.section {
    min-height: 66vh !important;
    max-height: 100vh !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible !important;
  }

  .hero-inner {
    padding-top: clamp(20px, 5vh, 40px) !important;
    padding-bottom: clamp(20px, 5vh, 40px) !important;
    /* Horizontal padding comes from .container class (24px) */
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    max-width: 100%;
  }
  
  .display {
    margin: 0 0 16px;
    line-height: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: clamp(32px, 7vw, 72px) !important;
    letter-spacing: -0.03em;
  }
  
  .display .line {
    display: block;
    overflow: visible;
  }
  
  .lede {
    margin: 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: clamp(16px, 2vw, 22px) !important;
  }
  
  .hero-lockup {
    overflow: visible;
  }
}

.display {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal;
  font-optical-sizing: auto;
  font-size: clamp(40px, 8vw, 108px);
  line-height: .9;
  letter-spacing: -0.045em;
  margin: 10px 0 12px;
  text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: visible;
  max-width: 100%;
}

.display .line {
  display: block;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.kicker {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-family: "Red Rose", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--ink-soft);
  max-width: 820px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: visible;
  hyphens: auto;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #0f0f12aa;
  color: var(--ink);
  border: 1px solid var(--border);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.scroll-cue .chevron {
  font-size: 24px;
  line-height: 1;
}

.scroll-cue:hover {
  filter: brightness(1.06);
}

.hero-watermark {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: clamp(56px, 12vw, 120px);
  opacity: .08;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5));
}

/* Typography */
.h2 {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(26px, 5vw, 54px);
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.h3 {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 8px 0;
}

.p {
  font-family: "Red Rose", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: #e8ebffde;
}

.mute {
  color: var(--muted);
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* Accent bar under headings */
.bar {
  position: relative;
  padding-top: 10px;
}

.bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, #d0d2d7, #8e94a3);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, .08);
}

/* Cards */
.cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              background 0.4s ease,
              border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden; /* GPU acceleration */
  transform: translateZ(0); /* Force GPU layer creation */
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.card:hover::before,
.card:focus-visible::before {
  left: 100%;
}

/* Base card hover - exclude interview cards which have their own style */
.card:not(.cards.interviews .card):hover,
.card:not(.cards.interviews .card):focus-visible {
  transform: translate3d(0, -6px, 0) scale(1.01); /* GPU-accelerated 3D transform */
  box-shadow: 0 20px 80px rgba(0, 0, 0, .5), 
              inset 0 1px 0 rgba(255, 255, 255, .08),
              0 0 30px rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  outline: none;
  will-change: transform; /* Hint browser to optimize */
}

.focusable {
  outline: none;
}

/* Interviews grid */
.cards.interviews {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 16px;
}

@media (min-width: 900px) {
  .cards.interviews {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 20px;
  }
}

/* Sleek interview card styling */
.cards.interviews .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 0 0 0 rgba(255, 255, 255, 0);
  transition: 
    transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 200ms ease,
    background 200ms ease;
  position: relative;
  overflow: hidden;
}

.cards.interviews .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.cards.interviews .card:hover,
.cards.interviews .card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .15);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 20px rgba(255, 255, 255, .03);
  outline: none;
}

.cards.interviews .card:hover::before {
  opacity: 1;
}

.cards.interviews .card .h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cards.interviews .card .p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0.;
}

/* Resources section */
.resources-category {
  margin-top: 56px;
}

.resources-category:first-of-type {
  margin-top: 40px;
}

.resources-category-title {
  margin-bottom: 28px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-weight: 500;
}

/* Resources table wrapper */
.resources-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0;
}

/* Resources table styling - cleaner, more minimal */
.resources-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  position: relative;
}

.resources-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: 
    background 180ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 180ms ease;
  position: relative;
}

.resources-table tbody tr:last-child {
  border-bottom: none;
}

.resources-table tbody tr:hover,
.resources-table tbody tr:focus-within {
  background: rgba(255, 255, 255, .015);
  border-bottom-color: rgba(255, 255, 255, .1);
}

.resources-table td {
  padding: 22px 0;
  vertical-align: middle;
}

.resources-td-publication {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.65;
  padding-right: 32px;
  width: 28%;
  min-width: 140px;
  vertical-align: top;
  padding-top: 24px;
}

.resources-publication {
  display: block;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
  font-size: 11px;
}

.resources-td-title {
  font-size: 17px;
  line-height: 1.65;
  width: 72%;
  padding-top: 24px;
}

.resources-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  font-family: "Red Rose", serif;
  transition: 
    color 180ms ease,
    opacity 180ms ease;
  display: inline;
  position: relative;
  opacity: 1;
}

.resources-link:hover,
.resources-link:focus-visible {
  color: var(--ink-soft);
  opacity: 0.9;
  outline: none;
}

.resources-link::after {
  content: '↗';
  display: inline-block;
  margin-left: 8px;
  opacity: 0.35;
  font-size: 12px;
  font-weight: 300;
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translate(0, -1px);
  vertical-align: baseline;
}

.resources-link:hover::after,
.resources-link:focus-visible::after {
  opacity: 0.55;
  transform: translate(1px, -2px);
}

/* Resources section background */
#resources .section-bg {
  opacity: 0.20;
  filter: blur(1.5px);
}

@media (max-width: 768px) {
  #resources .section-bg {
    opacity: 0.30;
    filter: blur(2px);
    background-size: auto 100%;
    background-position: center center;
    background-repeat: no-repeat;
  }
  
  .resources-category {
    margin-top: 36px;
  }
  
  .resources-category:first-of-type {
    margin-top: 24px;
  }
  
  .resources-category-title {
    font-size: 14px;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
  }
  
  .resources-table td {
    padding: 18px 0;
    display: block;
  }
  
  .resources-td-publication {
    width: 100%;
    padding-right: 0;
    padding-top: 18px;
    padding-bottom: 8px;
    min-width: auto;
  }
  
  .resources-publication {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  
  .resources-td-title {
    width: 100%;
    padding-top: 0;
    font-size: 16px;
    line-height: 1.6;
  }
  
  .resources-link {
    font-size: 16px;
  }
  
  .resources-link::after {
    display: none;
  }
}

/* Lists + CTA */
.list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.list.tight li {
  margin: 6px 0;
}

.list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .16);
}

.actions {
  margin-top: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--white);
  color: #000;
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-weight: 700;
  box-shadow: 0 1px 0 #000 inset, 0 10px 24px rgba(0, 0, 0, .3);
  text-decoration: none;
}

.btn.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: none;
}

.btn:hover {
  filter: brightness(.95);
}

/* Footer */
.site-footer {
  padding: 28px 0;
}

/* === Side Navigation === */
.side-nav {
  position: fixed;
  top: 25vh;
  right: clamp(20px, 3vw, 40px);
  z-index: 10000;
  opacity: 0.3;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  pointer-events: auto;
  visibility: visible;
  display: block;
  padding-left: 12px;
  margin-right: -12px;
}

.side-nav.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.side-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  padding-right: 0;
  overflow: visible;
}

.side-nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: "Bitcount", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 4px 0;
  background: transparent;
  border: none;
  white-space: nowrap;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: inline-block;
  user-select: none;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: transform, opacity;
}

.side-nav-link.show {
  opacity: 0.85;
  pointer-events: auto;
}

.side-nav-link[data-section].visible {
  opacity: 1;
  transform: translateX(-6px);
  pointer-events: auto;
}

.side-nav-contact.show,
.side-nav-newsletter.show {
  opacity: 0.85;
  pointer-events: auto;
}

.side-nav-link:hover,
.side-nav-link:focus-visible {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.side-nav-link.active {
  color: rgba(255, 255, 255, 1);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.side-nav.scrolling .side-nav-link {
  pointer-events: none;
}

.side-nav-contact {
  margin-bottom: 2px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side-nav-newsletter {
  margin-top: 2px;
  margin-bottom: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile: hide side nav on small screens */
@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}

/* Text hover pop */
:where(.h2, .h3, .btn):hover {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.20), 0 0 2px rgba(255, 255, 255, 0.60);
  transition: text-shadow 140ms ease;
}

/* Minimal text highlight: subtle and performant */
.p {
  position: relative;
  z-index: 1;
  transition: text-shadow 200ms ease;
}

.text-highlight {
  position: fixed;
  width: 280px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(245, 247, 255, 0.04) 0%,
    rgba(227, 231, 255, 0.02) 30%,
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(16px);
  visibility: hidden;
  transition: opacity 200ms ease;
  will-change: transform;
}

.text-highlight.show {
  opacity: 1;
  visibility: visible;
}

.p.highlight-active {
  text-shadow: 
    0 0 12px rgba(245, 247, 255, 0.3),
    0 0 24px rgba(227, 231, 255, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Breathing highlight animation for hero text - more visible and noticeable */
.hero .display,
.hero .lede {
  animation: breathingHighlight 4s ease-in-out infinite;
}

/* Less intense breathing animation on mobile for display text */
@media (max-width: 768px) {
  .hero .display {
    animation: breathingHighlightMobile 4s ease-in-out infinite;
  }
}

@keyframes breathingHighlight {
  0%, 100% {
    text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12);
  }
  25% {
    text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12), 0 0 20px rgba(255, 255, 255, 0.35), 0 0 30px rgba(255, 255, 255, 0.25), 0 0 4px rgba(255, 255, 255, 0.70);
  }
  50% {
    text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12), 0 0 24px rgba(255, 255, 255, 0.45), 0 0 40px rgba(255, 255, 255, 0.30), 0 0 6px rgba(255, 255, 255, 0.85);
  }
  75% {
    text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12), 0 0 20px rgba(255, 255, 255, 0.35), 0 0 30px rgba(255, 255, 255, 0.25), 0 0 4px rgba(255, 255, 255, 0.70);
  }
}

/* Less intense breathing animation for mobile */
@keyframes breathingHighlightMobile {
  0%, 100% {
    text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12);
  }
  25% {
    text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12), 0 0 18px rgba(255, 255, 255, 0.25), 0 0 24px rgba(255, 255, 255, 0.18), 0 0 3px rgba(255, 255, 255, 0.50);
  }
  50% {
    text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12), 0 0 20px rgba(255, 255, 255, 0.30), 0 0 32px rgba(255, 255, 255, 0.22), 0 0 4px rgba(255, 255, 255, 0.60);
  }
  75% {
    text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, .12), 0 0 18px rgba(255, 255, 255, 0.25), 0 0 24px rgba(255, 255, 255, 0.18), 0 0 3px rgba(255, 255, 255, 0.50);
  }
}

/* Accessibility focus */
:focus-visible {
  outline: 2px solid #ffffff66;
  outline-offset: 3px;
}


/* === Hero lockup: headline + right-aligned square logo === */
.hero-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: left;
  overflow: visible;
  box-sizing: border-box;
}

.hero-logo {
  width: clamp(96px, 16vw, 160px);
  height: auto;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 600ms ease-out 200ms forwards;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5));
}

@keyframes fadeUp {
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .hero-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    width: clamp(96px, 28vw, 140px);
    opacity: 0.9;
  }
}


/* === Full-viewport Intro (first frame) === */
.intro {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: visible;
}

.intro-inner {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.intro-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 48px);
  transform: translateY(-4vh);
  position: relative;
  transform-origin: center center;
  z-index: 2;
  opacity: 1;
  overflow: visible;
  width: 100%;
}

/* Motion blur entry animations - logos appear from nowhere with enhanced blur effect */
@keyframes logoEntryLeft {
  0% {
    opacity: 0;
    transform: translateX(-24px) scale(0.98);
    filter: blur(24px) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
  }
}

@keyframes logoEntryRight {
  0% {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    filter: blur(24px) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
  }
}

.animate-logo-entry-left,
.animate-logo-entry-right {
  will-change: transform, opacity, filter;
  animation-fill-mode: both;
  opacity: 0; /* Ensure initial state is hidden */
}

.animate-logo-entry-left {
  animation: logoEntryLeft 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s forwards;
}

.animate-logo-entry-right {
  animation: logoEntryRight 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s forwards;
}

/* Mobile optimizations - reduced blur for performance */
@media (max-width: 768px) {
  @keyframes logoEntryLeft {
    0% {
      opacity: 0;
      transform: translateX(-20px) scale(0.98);
      filter: blur(18px) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
      filter: blur(0) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
    }
  }

  @keyframes logoEntryRight {
    0% {
      opacity: 0;
      transform: translateX(20px) scale(0.98);
      filter: blur(18px) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
      filter: blur(0) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
    }
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-logo-entry-left,
  .animate-logo-entry-right {
    animation: none;
    opacity: 1;
    transform: translateX(0);
    filter: none;
  }
}

.intro-triangle,
.intro-wordmark {
  height: clamp(120px, 22vw, 220px);
  width: auto;
  opacity: 0; /* Start hidden to prevent flash */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              filter 0.4s ease;
  /* Ensure logos are positioned relative for animation */
  position: relative;
  /* Allow logos to start offscreen */
  will-change: transform, opacity, filter;
}

/* Drop-shadow applied after animation via keyframes, not here to prevent conflicts */

.intro-triangle:hover,
.intro-wordmark:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2)) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
}

.intro-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .intro-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .intro-lockup {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 48px);
    transform: translateY(-4vh);
    width: 100%;
    margin: 0 auto;
  }

  .intro-triangle,
  .intro-wordmark {
    height: clamp(120px, 36vw, 200px);
    width: auto;
    margin: 0 auto;
    display: block;
  }
}


/* === Linked interview cards === */
a.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

a.card:hover,
a.card:focus-visible {
  text-decoration: none;
}

/* Ensure interview link cards maintain proper styling */
.cards.interviews a.card {
  text-decoration: none;
  color: inherit;
}

.cards.interviews a.card:hover .h3,
.cards.interviews a.card:focus-visible .h3 {
  color: var(--ink);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

.cards.interviews a.card:hover .p,
.cards.interviews a.card:focus-visible .p {
  opacity: 1;
  color: var(--ink-soft);
}



/* === Avatar images (Cam & Milo) === */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(20%);
  transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* Team portraits (rectangular, consistent height; tone-normalized) - Optimized */
.card .avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  filter: grayscale(18%) brightness(1.05) contrast(1.15) saturate(0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  /* GPU-accelerated transitions only - removed filter and box-shadow from transition */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  margin-bottom: 12px;
  backface-visibility: hidden; /* GPU acceleration */
  transform: translateZ(0); /* Force GPU layer */
  will-change: auto; /* Reset when not hovering */
}

.card:hover .avatar {
  /* Filter changes are instant (no transition) for performance */
  filter: grayscale(0%) brightness(1.06) contrast(1.12) saturate(1.0);
  transform: translate3d(0, -2px, 0); /* GPU-accelerated 3D transform */
  will-change: transform; /* Hint browser to optimize */
  /* Box-shadow changes are instant (no transition) for performance */
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* Lock scroll briefly on page load (body class toggled by JS) */
body.lock-scroll {
  overflow: hidden;
}


/* === v18: Cinematic hero background behind text === */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 600ms ease-out;
  pointer-events: none;
  user-select: none;
  /* Blur fade at top and bottom */
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Visual treatment without touching the GIF frames */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  backdrop-filter: none;
  /* Darken and add soft vignette - reduced opacity for web to show more of the GIF */
  background:
    radial-gradient(1600px 800px at 70% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.70) 100%);
}

/* Ensure all hero content sits above */
.hero>*:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  /* Visual treatment without touching the GIF frames - mobile variant */
  .hero-bg::after {
    background:
      radial-gradient(1600px 800px at 70% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.72) 40%, rgba(0, 0, 0, 0.85) 100%);
  }
}

/* Fine-tune Milo crop slightly lower within the fixed-height frame */
.avatar-milo {
  object-position: 50% 60%;
}

/* y>50 moves the content down a touch */


/* CTA styles */
.cta-card {
  margin: 40px auto;
  max-width: 820px;
  text-align: center;
  padding: clamp(20px, 4vw, 36px);
  background: radial-gradient(120% 120% at 70% -10%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02) 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cta-title {
  font-size: clamp(22px, 3.2vw, 28px);
  margin: 0 0 6px 0;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 18px 0;
}

.cta-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.cta-actions.dual {
  grid-auto-flow: column;
  gap: 14px;
  justify-content: center;
}

@media (max-width: 720px) {
  .cta-actions.dual {
    grid-auto-flow: row;
  }
}

.btn.lg {
  font-size: clamp(18px, 2.2vw, 20px);
  padding: 14px 22px;
  border-radius: 10px;
}

.btn.lg.alt {
  background: transparent;
  color: var(--fg, #fff);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn.xl {
  font-size: clamp(18px, 2.4vw, 22px);
  padding: 16px 26px;
  border-radius: 12px;
}

.cta-alt {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-alt a {
  color: inherit;
  text-decoration: underline;
}

/* Section background layers (always visible, subtle overlay) */
.section {
  position: relative;
  overflow: hidden;
}

.section .section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.30;
  /* Increased from 0.18 */
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
  z-index: 0;
  will-change: transform;
  /* Smooth out transitions between sections */
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.section .section-bg.parallax {
  transform: translateY(0);
}

/* Intro section background - matches other section backgrounds */
#intro {
  overflow: hidden;
}

#intro .section-bg {
  opacity: 0.08;
}

/* Stronger background specifically for the interviews section */
#interviews .section-bg {
  opacity: 0.2 !important;
  /* Subtle blur to separate text from the background */
  filter: blur(2px);
  transform: scale(1.03);
}

/* Increased background opacity for Why Now section (web/desktop) */
#why .section-bg {
  opacity: 0.40 !important;
}

/* Ensure intro content is above background */
#intro .intro-inner {
  position: relative;
  z-index: 2;
}

/* Shift team section background to the right on mobile */
@media (max-width: 768px) {
  #team .section-bg {
    background-position: right center;
  }
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.48) 100%);
  z-index: 1;
  pointer-events: none;
}

.section .container,
.section .cards,
.section .content {
  position: relative;
  z-index: 2;
}

/* === Hero Reveal Animation (smooth, non-jumpy) === */
.hero.scroll-reveal {
  /* Longer fade-in / fade-out for a cinematic feel */
  --hero-fade-in-duration: 1.8s;
  --hero-fade-out-duration: 1.2s;
}

/* Background GIF: starts soft and slowly resolves */
.hero.scroll-reveal .hero-bg-img {
  opacity: 0;
  filter: blur(3px);
  will-change: opacity, filter;
  transition:
    opacity var(--hero-fade-out-duration) cubic-bezier(0.33, 0, 0.2, 1),
    filter var(--hero-fade-in-duration) cubic-bezier(0.33, 0, 0.2, 1);
  /* Blur fade at top and bottom */
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.hero.scroll-reveal.hero-visible .hero-bg-img {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--hero-fade-in-duration) cubic-bezier(0.33, 0, 0.2, 1),
    filter var(--hero-fade-in-duration) cubic-bezier(0.33, 0, 0.2, 1);
}

/* === Hero Text Fade Animation (sync with background) === */
.hero.scroll-reveal .hero-lockup,
.hero.scroll-reveal .lede {
  opacity: 0;
  will-change: opacity;
  transition: opacity var(--hero-fade-out-duration) cubic-bezier(0.33, 0, 0.2, 1);
  pointer-events: none;
}

.hero.scroll-reveal.hero-visible .hero-lockup,
.hero.scroll-reveal.hero-visible .lede {
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--hero-fade-in-duration) cubic-bezier(0.33, 0, 0.2, 1);
}

/* Ensure lazy-hero works with our custom JS reveal - only fade in when both loaded and visible */
.hero.scroll-reveal .hero-bg-img.lazy-hero {
  opacity: 0;
  transform: scale(1.02);
  filter: blur(3px);
  /* Fast fade-out transition (base state) */
  transition:
    opacity var(--hero-fade-out-duration) cubic-bezier(0.33, 0, 0.2, 1),
    transform var(--hero-fade-out-duration) cubic-bezier(0.33, 0, 0.2, 1),
    filter var(--hero-fade-out-duration) cubic-bezier(0.33, 0, 0.2, 1);
  /* Blur fade at top and bottom */
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.hero.scroll-reveal.hero-visible .hero-bg-img.lazy-hero.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  /* Slow, subtle fade-in transition (when visible) */
  transition:
    opacity var(--hero-fade-in-duration) cubic-bezier(0.33, 0, 0.2, 1),
    transform var(--hero-fade-in-duration) cubic-bezier(0.33, 0, 0.2, 1),
    filter var(--hero-fade-in-duration) cubic-bezier(0.33, 0, 0.2, 1);
}

/* Mobile: boost background visibility */
@media (max-width: 768px) {
  .section .section-bg {
    opacity: 0.45;
    /* Increased from 0.28 */
    background-position: 50% 40%;
  }
  
  /* Interviews section: same opacity as desktop */
  #interviews .section-bg {
    opacity: 0.2 !important;
  }
  
  /* Why Now section: increased opacity on mobile to match desktop */
  #why .section-bg {
    opacity: 0.40 !important;
  }
}


/* Mobile hotfix: remove Briefings from top nav regardless of markup variant */
nav a[href="#briefings"],
nav a[data-target="#briefings"],
nav a[href*="#briefings"] {
  display: none !important;
}

/* Prevent horizontal scroll on mobile due to nav width */
html,
body {
  overflow-x: hidden;
}

.site-nav,
nav,
.menu {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 840px) {

  .menu,
  .nav-list {
    flex-wrap: wrap;
  }

  .menu>li,
  .nav-list>li {
    margin-right: clamp(8px, 2vw, 12px);
  }
}

/* Scroll arrow positioning */
.scroll-arrow,
.scroll-indicator,
.hero .scroll {
  position: absolute !important;
  bottom: 9vh !important;
  transform: translateY(0) !important;
  z-index: 3 !important;
}

@media (max-width: 820px),
(max-aspect-ratio: 10/16) {
  .scroll-arrow,
  .scroll-indicator,
  .hero .scroll {
    bottom: 11vh !important;
  }
}

/* Mailto link styling */
a[href^="mailto:amifilm@outlook.com"] {
  color: #fff !important;
}

/* Mini card trio for producers */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: keep producer mini-cards side by side */
@media (max-width: 699px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mini-cards .card {
  padding: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .008));
  border-radius: 14px;
}

.mini-cards .h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.mini-cards .p {
  font-size: 14px;
  color: var(--muted);
}

/* === Immersive CTA refinement === */
.actions.interactive {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 60px;
  text-align: center;
  animation: fadeInCTA 1.2s ease-out 0.3s both;
}

@keyframes fadeInCTA {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Transparent, embossed square button === */
.btn.glow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-size: 5.2rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 3.6rem 8rem;
  min-height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.05),
    inset 0 -3px 8px rgba(0, 0, 0, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  transform: translateY(0);
  backdrop-filter: blur(3px);
}

@media (max-width: 768px) {
  .btn.glow {
    min-height: 120px;
    padding-top: 3.6rem;
    padding-bottom: 3.6rem;
    padding-left: 4rem;
    padding-right: 4rem;
    width: 100%;
    max-width: 100%;
  }
}

.btn.glow:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 3px 8px rgba(255, 255, 255, 0.12),
    inset 0 -4px 10px rgba(0, 0, 0, 0.7),
    0 6px 14px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  /* faint luminous lift */
}


/* Cover the viewport without letterboxing, keep proper stacking */

/* Lazy-play: hero GIF fades in when loaded */
.lazy-hero {
  opacity: 0;
}

.lazy-hero.is-loaded {
  opacity: 1;
  transition: opacity 600ms ease-out;
}



/* Trailer: full-width 16:9 video, no cropping on mobile */
.section.trailer {
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  position: relative;
  background: transparent !important;
  z-index: 2;
  transition: opacity 0.6s ease;
}

.trailer-frame {
  position: relative;
  width: 100vw;
  /* edge-to-edge */
  margin-left: calc(50% - 50vw);
  margin-bottom: 0 !important;
  background: #000;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.trailer-frame:hover {
  transform: scale(1.005);
}

.trailer-frame iframe {
  display: block;
  position: relative;
  z-index: 1;
  width: 100vw;
  /* fill viewport width */
  height: calc(100vw * 9 / 16);
  /* 16:9 aspect ratio */
  max-height: 100vh;
  /* never taller than viewport */
  margin: 0 auto;
  border: 0;
  background: #000;
}

.section.trailer::before {
  display: none !important;
}

/* Hide the gradient bar on mobile */
@media (max-width: 768px) {
  .trailer-hero-fade {
    display: none !important;
  }

  .section.trailer {
    min-height: auto !important;
  }
}

/* === Cinematic Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 1.1s cubic-bezier(0.19, 1, 0.22, 1),
    filter 1.4s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, filter, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

/* Headings: subtle letter-spacing expansion */
h2.animate-on-scroll {
  transform: translateY(20px);
  letter-spacing: -0.06em;
  transition:
    opacity 1.1s cubic-bezier(0.19, 1, 0.22, 1),
    filter 1.4s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.1s cubic-bezier(0.19, 1, 0.22, 1),
    letter-spacing 1.5s ease-out;
}

h2.animate-on-scroll.is-visible {
  letter-spacing: -0.035em;
  /* Matches original .h2 style */
}

/* Stagger delays */
.delay-100 {
  transition-delay: 150ms;
}

.delay-200 {
  transition-delay: 300ms;
}

.delay-300 {
  transition-delay: 450ms;
}

.delay-400 {
  transition-delay: 600ms;
}

/* FORCE FIX: Mobile Trailer Spacing */
@media (max-width: 768px) {

  #trailer,
  .section.trailer {
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .trailer-frame {
    height: auto !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
  }

  .hero.section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 66vh !important;
    max-height: 100vh !important;
    /* Allow content to expand if needed, but cap at viewport height */
  }
}

/* Contact Button Hover - enhanced interactivity */
.contact-container .contact-btn:hover,
.contact-container .contact-btn:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 3px 8px rgba(255, 255, 255, 0.15),
    inset 0 -4px 10px rgba(0, 0, 0, 0.7),
    0 8px 20px rgba(255, 255, 255, 0.1),
    0 0 30px rgba(255, 255, 255, 0.05);
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  letter-spacing: 0.06em;
}

.contact-container .contact-btn:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(255, 255, 255, 0.08);
}

/* Mobile adjustments for large buttons */
@media (max-width: 768px) {
  .btn.lg {
    font-size: 16px !important;
    padding: 12px 18px !important;
    width: auto;
    max-width: 90%;
  }
}

/* Contact Container Layout - centered button with email below */
.contact-container {
  margin-top: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.contact-container .contact-btn {
  text-align: center;
  font-size: 5.2rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3.6rem 8rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.05),
    inset 0 -3px 8px rgba(0, 0, 0, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
  backdrop-filter: blur(3px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-container .contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-container .contact-btn:hover::before {
  left: 100%;
}

.contact-container .email-line {
  text-align: center;
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 0;
  padding: 0;
  display: block;
  white-space: normal;
  border: none;
  background: transparent;
  color: var(--ink-soft);
}

.contact-container .email-line a {
  text-decoration: underline;
  color: inherit;
}

.contact-container .email-link {
  font-size: inherit;
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-container {
    gap: 12px;
  }

  .contact-container .contact-btn {
    padding: 3.6rem 4rem !important;
    min-height: 120px !important;
    font-size: clamp(2rem, 7vw, 3.5rem) !important;
    white-space: normal;
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
  }

  .contact-container .email-line {
    padding: 0 !important;
    min-height: auto !important;
    font-size: clamp(16px, 4vw, 20px) !important;
    white-space: normal;
  }
  
  .contact-container .email-link {
    font-size: inherit;
  }
}

/* Coming Soon Overlay - Updated 2025-12-01 */
.coming-soon-wrapper {
  position: relative;
  display: grid;
  /* Match width of contact button */
  place-items: center;
  width: 100%;
  max-width: 100%;
}

.coming-soon-wrapper>* {
  grid-area: 1 / 1;
  /* Layers items on top of each other */
}

.disabled-link {
  pointer-events: none;
  opacity: 0.4;
  filter: grayscale(100%) blur(1px);
  /* Added blur for better "unavailable" feel */
  z-index: 1;
  position: relative;
}

.coming-soon-badge {
  position: relative;
  z-index: 100;
  background: #c00;
  /* Classic bright red */
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  /* Responsive size */
  letter-spacing: 0.1em;
  padding: 8px 24px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #c00, 0 10px 20px rgba(0, 0, 0, 0.5);
  /* Double border effect */
  transform: rotate(-5deg);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* === Newsletter marquee === */
.newsletter-bar {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
  padding: 32px 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  margin-bottom: 0;
  backdrop-filter: blur(2px);
  box-shadow: 
    0 0 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Fade overlays on left and right edges - dark theme gradient fade */
.newsletter-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 150px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 75%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.newsletter-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 150px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 75%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.newsletter-marquee {
  display: flex;
  width: max-content;
  animation: newsletterScroll 6s linear infinite;
  will-change: transform;
  transition: animation-play-state 0.3s ease;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
}

.newsletter-bar:hover .newsletter-marquee {
  animation-play-state: paused;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.12));
}

.newsletter-track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 8vw, 80px);
  padding: 0 40px;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  width: max-content;
}

.newsletter-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
  transition: filter 0.3s ease;
}

.newsletter-bar:hover .newsletter-logos {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

.newsletter-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

.newsletter-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
  position: relative;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.newsletter-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.3, 1);
}

.newsletter-link:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.4);
  text-shadow: 
    0 0 12px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.newsletter-link:hover::after {
  width: 100%;
}

.newsletter-divider {
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
  flex-shrink: 0;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.newsletter-bar:hover .newsletter-divider {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  transform: scale(1.05);
}

.newsletter-divider-triangle {
  width: 32px;
  height: 32px;
}

.newsletter-divider-wordmark {
  height: 40px;
  width: auto;
  max-width: 220px;
  display: inline-block;
  vertical-align: middle;
}

/* Mobile: More compact newsletter bar with improved marquee - same orientation as desktop */
@media (max-width: 768px) {
  .newsletter-bar {
    padding: 28px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    margin-bottom: 0;
  }

  /* Fade overlays on mobile - dark theme gradient fade */
  .newsletter-bar::before {
    width: 100px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    display: block;
  }
  
  .newsletter-bar::after {
    width: 100px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    display: block;
  }

  .newsletter-marquee {
    animation: newsletterScrollMobile 12s linear infinite;
    display: flex;
    width: max-content;
    will-change: transform;
  }

  .newsletter-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    width: max-content;
    flex-shrink: 0;
  }

  .newsletter-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .newsletter-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
  }

  .newsletter-link {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
    position: relative;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
    font-size: inherit;
    border-radius: 0;
    background: transparent;
  }

  .newsletter-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.3, 1);
  }

  .newsletter-link:active,
  .newsletter-link:hover {
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.4);
    text-shadow: 
      0 0 12px rgba(255, 255, 255, 0.3),
      0 0 20px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    background: transparent;
  }

  .newsletter-link:hover::after {
    width: 100%;
  }

  .newsletter-divider {
    margin: 0;
    opacity: 0.85;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  }

  .newsletter-bar:hover .newsletter-divider {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transform: scale(1.05);
  }

  .newsletter-divider-triangle {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
  }

  .newsletter-divider-wordmark {
    height: 32px;
    width: auto;
    max-width: 180px;
    display: inline-block;
    vertical-align: middle;
  }
}

/* Slower, smoother marquee animation for mobile */
@keyframes newsletterScrollMobile {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-14.28%);
  }
}

@keyframes newsletterScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-14.28%);
  }
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6));
  z-index: 10000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Enhanced button interactions */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Smooth reveal for sections */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Interactive text selection highlight */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

::-moz-selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

/* Smooth focus transitions */
*:focus-visible {
  transition: outline 0.2s ease;
}

/* Enhanced avatar interactions - Optimized (only applies if not overridden by .card .avatar) */
.avatar:not(.card .avatar) {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.card:hover .avatar:not(.card .avatar) {
  transform: translate3d(0, -3px, 0) scale(1.02);
  will-change: transform;
}

/* Parallax container */
.parallax-container {
  will-change: transform;
}

/* Smooth scroll snap (optional, can be disabled) */
@media (min-width: 1024px) {
  html {
    scroll-snap-type: y proximity;
  }
  
  .section {
    scroll-snap-align: start;
  }
}