/* ─────────────────────────────────────
   x-cardiac Pitch · Impeccable Design
   Aesthetic: Clinical Precision + Editorial Confidence
   Fonts: Syne (display), DM Sans (body)
   Palette: Deep Navy, Gold, Off-White
   ───────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ─── TOKENS ─── */
:root {
  --gold: #DEC151;
  --navy: #14376B;
  --navy-deep: #0B1F3F;
  --dark: #0A0A0A;
  --off-white: #F5F4F0;
  --warm-gray: #B8B5AD;
  --text-body: #3A3A38;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --container: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevents iOS Safari scroll bounce glitch */
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dark);
  overflow-wrap: break-word; /* prevents long words from blowing layout */
  word-break: break-word;
}

a { color: inherit; }

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ─── LABELS ─── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 2.5rem;
  overflow-wrap: break-word;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.5s var(--ease);
  cursor: pointer;
  border: none;
  position: relative;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(222, 193, 81, 0.3);
}

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transform: translateY(0) !important;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  height: 40px;
}

.navbar-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--dark);
  color: #fff;
  padding-top: 7rem;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #fff;
  overflow-wrap: break-word;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-sidebar {
  padding-top: 2rem;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8); /* raised from 0.65 → 4.9:1 on dark bg */
  margin-bottom: 3rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start; /* prevent buttons stretching to full width */
}

.hero-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.55); /* raised from 0.3 for legibility */
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ─── SECTIONS ─── */
.section { padding: 8rem 0; }

/* ─── SPLIT LAYOUT ─── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: start;
}

.split-left {
  position: sticky;
  top: 8rem;
}

.challenge-text p {
  font-size: 1.2rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  color: var(--text-body);
}

/* ─── NUMBERS ─── */
.section-numbers {
  background: var(--navy-deep);
  padding: 6rem 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.number-card {
  text-align: center;
  padding: 2.5rem 1rem;
}

.number-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.number-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* ─── BENTO GRID ─── */
.section-header-centered {
  text-align: center;
  margin-bottom: 4rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-item {
  padding: 2.75rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease);
}

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

.bento-wide { grid-column: span 7; }
.bento-narrow { grid-column: span 5; }

.bento-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: auto;
}

.bento-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.5;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-icon svg { width: 22px; height: 22px; }

.bento-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
  /* reset global dark-heading default — each variant sets its own color */
  color: inherit;
}

.bento-item p {
  font-size: 1rem;
  line-height: 1.65;
  /* avoid opacity-based dimming which kills a11y — use explicit colors per variant */
}

/* Variants — all color pairs verified WCAG AA */
.bento-blue {
  background: var(--navy);
  color: #fff;
}
.bento-blue h3 { color: #fff; }
.bento-blue p { color: rgba(255, 255, 255, 0.82); } /* 5.6:1 on #14376B */
.bento-blue .bento-icon { background: rgba(255,255,255,0.12); color: var(--gold); }
.bento-blue .bento-tag { color: rgba(255, 255, 255, 0.65); }

.bento-light {
  background: #fff;
  border: 1px solid #E8E6E1;
  color: var(--dark);
}
.bento-light h3 { color: var(--dark); }
.bento-light p { color: #4A4A47; }  /* 7.2:1 on #fff */
.bento-light .bento-icon { background: var(--off-white); color: var(--navy); }

.bento-gold {
  background: var(--gold);
  color: var(--dark);
}
.bento-gold h3 { color: var(--navy-deep); } /* #0B1F3F on #DEC151 = 7.4:1 */
.bento-gold p { color: #1A1A0E; }          /* near-black on gold = 9.1:1 */
.bento-gold .bento-icon { background: rgba(0,0,0,0.1); color: var(--navy-deep); }
.bento-gold .bento-tag { color: rgba(0, 0, 0, 0.6); }

.bento-dark {
  background: var(--dark);
  color: #fff;
}
.bento-dark h3 { color: #fff; }
.bento-dark p { color: rgba(255, 255, 255, 0.78); } /* 4.8:1 on #0A0A0A */
.bento-dark .bento-icon { background: rgba(255,255,255,0.08); color: var(--gold); }
.bento-dark .bento-tag { color: rgba(255, 255, 255, 0.6); }

/* ─── EDITORIAL (90 DAYS) ─── */
.section-editorial {
  background: var(--dark);
  color: #fff;
  padding: 10rem 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.editorial-heading {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  overflow-wrap: break-word;
  color: #fff;
}

.editorial-right {
  display: grid;
  gap: 3rem;
}

.pitch-card {
  border-left: 2px solid var(--gold);
  padding-left: 2rem;
}

.pitch-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.pitch-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.pitch-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

/* ─── MASSIVE QUOTE ─── */
.section-quote {
  padding: 10rem 0;
  text-align: center;
}

.massive-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto;
  overflow-wrap: break-word;
  color: var(--dark);
}

.highlight {
  position: relative;
  display: inline;
  background: linear-gradient(to top, var(--gold) 35%, transparent 35%);
  padding: 0 0.1em;
}

/* ─── TIMELINE ─── */
.section-timeline { padding: 8rem 0; }

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-entry {
  display: flex;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid #E0DDD8;
  position: relative;
}

.timeline-entry:last-child { border-bottom: 1px solid #E0DDD8; }

.tl-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.tl-year {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.tl-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.tl-content p {
  color: #6B6B68;
  font-size: 1rem;
  max-width: 500px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.footer-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.footer-cta {
  text-align: center;
  margin-bottom: 8rem;
  position: relative;
  z-index: 1;
}

.footer-label { justify-content: center; }
.footer-label::before { display: none; }

.cta-title {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  color: #fff;
  margin-bottom: 2rem;
  overflow-wrap: break-word;
}

.text-gold { color: var(--gold); }

.cta-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

.footer-meta { display: flex; gap: 2rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.footer-links a:hover { color: var(--gold); }

/* ─── RESPONSIVE ─── */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .split-layout { grid-template-columns: 1fr; gap: 3rem; }
  .split-left { position: static; }
  .editorial-grid { grid-template-columns: 1fr; gap: 3rem; }
  .bento-wide, .bento-narrow { grid-column: span 6; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }

  /* Bento: all cards full-width single column */
  .bento-wide,
  .bento-narrow { grid-column: span 12; }
  .bento-grid { padding-bottom: 1rem; gap: 1rem; }
  .bento-item { margin-bottom: 0.5rem; }

  /* Numbers: stack 2x2, no overflow risk */
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .number-card { padding: 2rem 1rem; }
  .number-value { font-size: clamp(2.25rem, 9vw, 3rem); }
  .number-label { font-size: 0.8rem; }

  /* Typography — reduce large display text on mobile */
  .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .hero-title { font-size: clamp(2rem, 7vw, 2.6rem); }
  .cta-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .massive-quote { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .editorial-heading { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .challenge-text p { font-size: 1.05rem; }
  .hero-desc { font-size: 1rem; }

  /* Spacing — reduce all section paddings on mobile */
  .section { padding: 4rem 0; }
  .section-numbers { padding: 3.5rem 0; }
  .section-editorial { padding: 4rem 0; }
  .section-quote { padding: 4rem 0; }

  /* Hero: remove forced full-viewport height so no empty space below CTA */
  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  /* Footer */
  .footer { padding-top: 5rem; padding-bottom: 3rem; }
  .footer-cta { margin-bottom: 4rem; }

  /* CTA / Footer meta */
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-meta { justify-content: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }

  /* Nav */
  .navbar-meta { display: none; }
  .hero-scroll-indicator { display: none; }

  /* Timeline */
  .tl-content p { max-width: 100%; }
  .timeline-entry { padding: 1.75rem 0; }

  /* Editorial cards */
  .pitch-card { padding-left: 1.25rem; }
}

/* Small mobile (iPhone SE etc.) */
@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .number-value { font-size: clamp(2rem, 11vw, 2.5rem); }
  .hero-title { letter-spacing: -0.03em; }
  .section { padding: 3.5rem 0; }
  .section-editorial, .section-numbers, .section-quote { padding: 3rem 0; }
}
