/* Enhanced color palette with blue and green accents */
:root {
  --bg: linear-gradient(135deg, #fbeee6 0%, #e6f7fa 50%, #e6ffe6 100%);
  --panel: #fff7f0;
  --muted: #6b7c8a;
  --text: #07203a;
  --accent: #ff6f3c;
  --accent-2: #ffb86b;
  --accent-3: #ffde7d;
  --accent-blue: #0077b6;
  --accent-green: #2dd4bf;
  --accent-blue-light: #e6f7fa;
  --accent-green-light: #e6ffe6;
  --success: #2dd4bf;
  --shadow: 0 10px 30px rgba(15,35,50,0.06);
  --radius: 14px;
  --header-height: 88px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link img {
  height: 44px;
  transition: transform var(--transition);
}

.logo-link:hover img {
  transform: scale(1.02);
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white !important;
  padding: 10px 20px;
  border-radius: 28px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,119,182,0.15);
}

.nav-cta::after {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* Mobile open state for navigation (toggled by .mobile-toggle) */
.nav.nav-open {
  display: none; /* default hidden; visible on small screens via media query */
}

/* Hero section */
.hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: url('assets/hero image.png') no-repeat center center;
  background-size: cover;
  min-height: 560px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(7, 32, 58, 0.92) 0%,
    rgba(7, 32, 58, 0.85) 30%,
    rgba(7, 32, 58, 0.6) 100%);
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  line-height: 1.02;
  margin: 0 0 14px 0;
  font-weight: 800;
  color: #003049; /* darker for card contrast */
}

.hero-copy {
  background: transparent;
  padding: 12px 0 12px 4px;
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.highlight {
  display: block;
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.02;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sub-highlight {
  display: block;
  color: var(--accent-green);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin-top: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(12px, 2.5vw, 14px) clamp(20px, 4vw, 28px);
  border-radius: 28px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-blue), #2a9bd6);
  color: white;
  box-shadow: 0 8px 24px rgba(2,48,73,0.12);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,119,182,0.25);
}

.btn-outline {
  background: white;
  color: var(--accent-blue);
  box-shadow: inset 0 0 0 2px var(--accent-green);
}

.btn-outline:hover {
  box-shadow: inset 0 0 0 2px var(--accent), 0 8px 24px rgba(0,119,182,0.15);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 28px 24px;
  background: rgba(255,255,255,0.96); /* near-opaque for max contrast on dark hero */
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--text);
}

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

.stat-number {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.stat-label {
  color: var(--muted);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-blue-light) 50%, var(--accent-green-light) 100%);
}

.section.light {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-blue-light) 50%, var(--accent-green-light) 100%);
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  text-align: center;
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 48px;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.about-list {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-list h4 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.about-list ul {
  list-style: none;
}

.about-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--muted);
  transition: color var(--transition);
  cursor: default;
}

.about-list li:hover {
  color: var(--text);
}

.about-list li:last-child {
  border: none;
}

/* R&D Grid */
.rnd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.rnd-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-left: 8px solid var(--accent-blue);
}

.job-inner { display:flex; gap: 18px; align-items:flex-start; }
.job-meta { flex:1; }
.job-meta { margin-right: 160px; }
.job-cta { width: 180px; display:flex; align-items:center; justify-content:center; }
.job-icon { display:inline-block; width:30px; height:30px; text-align:center; border-radius:8px; background: linear-gradient(180deg,var(--accent-green-light),var(--accent-blue-light)); box-shadow: 0 6px 18px rgba(0,0,0,0.06); margin-right:8px; font-size:18px; }
.apply-btn { padding: 10px 16px; }
.apply-status { padding: 10px 14px; border-radius: 8px; background: rgba(32, 201, 151, 0.12); color: var(--accent-green); border: 1px solid rgba(32, 201, 151, 0.2); }
.apply-status.error { background: rgba(242, 222, 222, 0.9); color: #b22222; border-color: rgba(178,34,34,0.2); }

/* Careers cards */
.jobs-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.job-card { display:flex; flex-direction:column; justify-content:space-between; }
.job-card .apply-btn { margin-top: 12px; }
/* Careers cards - improved layout & readability */
.jobs-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.job-card { display:flex; flex-direction:column; justify-content:space-between; padding: 20px 22px 20px 26px; border-radius: 12px; background: #ffffff; border-left: 8px solid var(--accent-blue); position:relative; box-shadow: 0 8px 24px rgba(3,48,73,0.06); }
.job-card h3 { margin-bottom: 8px; color: var(--text); font-size: 1.18rem; font-weight:700; line-height:1.08; }

/* Left accent bar for job cards */
.job-card::before { display:none; }

/* Ensure the job card content appears above the accent bar */
.job-card > * { position: static; z-index: auto; }
.job-meta p, .job-summary { color: rgba(7,32,58,0.75); font-size: 0.98rem; }
.job-badges { display:flex; gap:8px; margin-top:6px; margin-bottom: 12px; }
.badge { background: rgba(2,32,60,0.05); color: var(--muted); padding:6px 10px; border-radius: 12px; font-weight:600; font-size: 0.82rem; }
.job-cta { margin-top: 12px; position: absolute; top: 12px; right: 12px; z-index: 3; }
.job-card:hover { transform: translateY(-8px); box-shadow: 0 26px 44px rgba(3,48,73,0.10); }
.job-cta .btn-primary { width: 140px; height: 40px; border-radius: 20px; padding: 8px 18px; }

/* Read-more / details */
.job-summary { color: rgba(7,32,58,0.82); margin:12px 0 10px; }
.job-details { max-height: 0; overflow: hidden; transition: max-height 320ms ease, opacity 260ms ease; opacity:0; }
.job-details.expanded { max-height: 900px; opacity:1; }
.read-more { display:inline-block; margin-top: 6px; background: none; border: none; color: var(--accent-blue); cursor: pointer; text-decoration: underline; padding:0; }

/* Job summary & collapsible details */
.job-summary { color:var(--muted); margin:12px 0 16px; font-size: 0.98rem; }
.job-details { max-height: 0; overflow: hidden; transition: max-height 300ms ease, opacity 300ms ease; opacity:0; }
.job-details.expanded { max-height: 1000px; opacity:1; }
.read-more { margin-top: 12px; background: transparent; color: var(--accent-blue); border: none; text-decoration: underline; cursor: pointer; padding: 0; }

/* Make the form stand out in careers page */
.contact-form-card { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.95)); padding: 32px; border-radius: 16px; }
.contact-form-card input, .contact-form-card textarea { border: 1px solid rgba(0,0,0,0.08); padding: 12px; border-radius: 8px; }

/* Narrower layout for the form */
#apply .container { max-width: 800px; margin: 0 auto; }

/* Minor button styles */
.btn-outline { border: 2px solid rgba(255,255,255,0.15); color: var(--accent-blue); background: transparent; }

@media (max-width: 1100px) {
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card { padding: 18px; }
  .job-cta .btn-primary { width: 100%; }
}

@media (max-width: 900px) {
  .job-inner { flex-direction: column; }
  .job-cta { width: 100%; margin-top: 12px; position: static; top: auto; right: auto; }
  .job-cta .btn-primary { width: 100%; }
  .job-meta { margin-right: 0; }
}

.rnd-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15,35,50,0.12);
}

.rnd-card h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.rnd-card p {
  color: var(--muted);
}

/* Therapeutics */
.thera-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.thera-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--accent-green);
}

.thera-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

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

.thera-card:hover::before {
  transform: scaleX(1);
}

.thera-card h4 {
  margin-bottom: 12px;
}

.thera-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.resource {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
  border-bottom: 4px solid var(--accent-blue);
}

.resource:hover {
  transform: translateY(-8px);
}

.resource h4 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.resource p {
  color: var(--muted);
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.info-card:hover {
  transform: translateX(8px);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.info-body h4 {
  margin-bottom: 4px;
}

.info-body p {
  color: var(--muted);
}

.contact-form-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-card h3 {
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 24px;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: clamp(12px, 3vw, 16px);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  font-size: 16px;
  transition: border-color var(--transition);
  margin-bottom: clamp(12px, 4vw, 20px);
  min-height: 44px;
}

.form-row label {
  display:block;
  margin-bottom:8px;
  font-weight:600;
  color:var(--text);
}

.form-row { margin-bottom: 16px; }
.apply-btn { padding:8px 12px; font-size:0.95rem; }

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Footer */
.site-footer {
  background: white;
  padding: 48px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.muted {
  color: var(--muted);
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-inner {
    grid-template-columns: 1fr 400px;
    gap: 40px;
  }
  
  .thera-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  :root {
    --header-height: 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    grid-row: 1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    max-width: 600px;
    margin: 0 auto;
  }

  .rnd-grid,
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

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

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  /* When mobile toggle opens the nav, make it a full-width stacked menu */
  .nav.nav-open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 12px 20px;
    box-shadow: 0 12px 36px rgba(2,32,60,0.12);
    z-index: 200;
    transform: translateY(-6px);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .nav.nav-open a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: var(--text);
    font-weight: 600;
  }

  .nav.nav-open .nav-cta {
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 12px;
  }

  /* When the nav has been opened, animate into place */
  .nav.nav-open {
    transform: translateY(0);
    opacity: 1;
  }


/* Small-screen typography & spacing tweaks */
@media (max-width: 480px) {
  :root { --header-height: 64px; }

  .container { padding: 0 16px; }

  .hero { padding: 28px 0; min-height: auto; }

  .hero-inner { gap: 18px; }

  .hero-title { font-size: clamp(1.6rem, 6.2vw, 2.2rem); }
  .highlight { font-size: clamp(1.6rem, 7.8vw, 2.6rem); }
  .sub-highlight { font-size: clamp(1rem, 3.6vw, 1.4rem); }

  .lead { font-size: 1rem; }

  .hero-art { height: clamp(200px, 45vw, 300px); }
  
  .hero-slider { width: 100%; height: 100%; }
  
  .hero-slide { width: 100%; height: 100%; }
  
  .hero-card { width: 100%; height: 100%; }

  .contact-form-card { padding: 20px; }

  .btn { padding: clamp(10px, 2vw, 12px) clamp(16px, 3vw, 18px); }
  
  .hero-ctas { gap: 12px; }
}

/* Fallback slide-down keyframe for older browsers */
@keyframes navSlideDown {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
  .hero {
    padding: 40px 0;
  }

  .section {
    padding: 64px 0;
  }

  .rnd-grid,
  .resources-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

/* Animations */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  transform: translateX(100%);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.hero-slide:nth-child(odd) .hero-card {
  animation: slideInRight 1.2s ease-out forwards;
}

.hero-slide:nth-child(even) .hero-card {
  animation: slideInLeft 1.2s ease-out forwards;
}

.text-animate-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-animate {
  opacity: 0;
  transform: translateY(20px);
}

.text-animate.animate {
  animation: fadeInUp 0.8s ease-out forwards;
}

.text-animate:nth-child(1) { animation-delay: 0.2s; }
.text-animate:nth-child(2) { animation-delay: 0.4s; }
.lead.text-animate { animation-delay: 0.6s; }

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(240px, 50vw, 400px);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 28px 60px rgba(3,48,73,0.12);
  position: relative;
  overflow: visible;
}

.hero-card::before,
.hero-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.14;
}

.hero-card::before {
  width: 120px;
  height: 120px;
  left: -40px;
  bottom: -40px;
  background: var(--accent-green);
}

.hero-card::after {
  width: 84px;
  height: 84px;
  right: -28px;
  top: -28px;
  background: var(--accent-blue);
}

.hero-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  transition: transform 0.8s ease-in-out;
}

.hero-card {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 18px;
  padding: clamp(8px, 2vw, 12px);
  box-shadow: 0 28px 60px rgba(3,48,73,0.12);
  transition: transform 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active .hero-card {
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Background-bleed mode: use uploaded hero image as right-side background */
.hero.bg-bleed {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
}

.hero.bg-bleed .hero-card {
  display: none;
}

/* Entrance animations */
.hero-copy,
.hero-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.hero-copy.animate-in,
.hero-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hide any leftover debug filename overlays injected during debugging */
.hero-slide .slide-label,
.hero-slide .debug-label,
.hero-slide .filename-label,
.hero-slider .slide-label,
.hero-slider .debug-label,
.hero-slider .filename-label {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
