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

:root {
  --crimson: #B91C1C;
  --crimson-bright: #DC2626;
  --ivory: #FAF8F5;
  --charcoal: #1A1A1A;
  --slate: #2D2D2D;
  --ash: #8A8A8A;
  --pearl: #E8E4DF;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Noise texture overlay ── */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background:
    linear-gradient(to right, var(--charcoal) 0%, transparent 30%),
    linear-gradient(to top, rgba(26,26,26,0.4) 0%, transparent 40%);
  z-index: 2;
}

.hero-photo-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.05);
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--charcoal) 0%, transparent 55%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0;
  padding: 0 clamp(2rem, 5vw, 8rem);
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  margin-bottom: 2rem;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--crimson-bright);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  margin-bottom: 2.5rem;
  white-space: nowrap;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  white-space: nowrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 42px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.hero-cta::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.6s;
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta:hover {
  background: #991B1B;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(185, 28, 28, 0.35);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Vertical text decoration */
.hero-vertical {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  white-space: nowrap;
  z-index: 20;
}

/* ── Marquee ── */
.marquee-wrap {
  background: var(--crimson);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.marquee-item::after {
  content: '\2726';
  font-size: 0.55rem;
  opacity: 0.5;
}

/* ── Section common ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--crimson);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.section-title--light {
  color: #fff;
}

.section-divider {
  width: 50px;
  height: 2px;
  background: var(--crimson);
  margin-top: 1.5rem;
}

/* ── Quote section ── */
.quote-section {
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: var(--charcoal);
}

.quote-image-wrap {
  position: relative;
  overflow: hidden;
}

.quote-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: transform 8s ease;
}

.quote-image-wrap:hover img {
  transform: scale(1.03);
}

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--charcoal);
}

.quote-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 2rem;
}

.quote-mark-large {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--crimson);
  opacity: 0.08;
  position: absolute;
  top: 0;
  left: -10px;
  z-index: 0;
  pointer-events: none;
}

/* ── Program section ── */
.program-section {
  background: var(--charcoal);
  position: relative;
}

.program-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--crimson);
  transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-6px);
}

.program-card:hover::before {
  height: 100%;
}

.program-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--crimson);
  line-height: 1;
  opacity: 0.3;
  margin-bottom: 1.5rem;
  transition: opacity 0.4s;
}

.program-card:hover .program-number {
  opacity: 0.7;
}

.program-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.program-card-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ── Program Grid ── */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 1024px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .program-grid { grid-template-columns: 1fr; }
}

/* ── About section ── */
.about-section {
  background: var(--ivory);
  position: relative;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid var(--crimson);
  opacity: 0.3;
  z-index: 0;
}

.about-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: grayscale(10%) contrast(1.02);
}

.about-stat {
  text-align: center;
  padding: 1.5rem 0;
}

.about-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--crimson);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.5rem;
}

/* ── Stats section ── */
.stats-section {
  background: #fff;
  position: relative;
}

.stat-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.stat-row:hover {
  padding-left: 1rem;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  flex-shrink: 0;
  margin-top: 7px;
}

.stat-text {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
  font-weight: 400;
}

.stat-text strong {
  color: var(--crimson);
  font-weight: 700;
}

/* ── CTA section ── */
.cta-section {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,28,28,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 16px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
  width: 100%;
}

.cta-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.cta-input:focus {
  border-color: var(--crimson);
  background: rgba(255,255,255,0.08);
}

.cta-btn {
  background: var(--crimson);
  color: #fff;
  padding: 16px 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #991B1B;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(185,28,28,0.3);
}

/* ── Social icons ── */
.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  transform: translateY(-3px);
}

/* ── Footer ── */
.footer {
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Navigation ── */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-fixed.scrolled {
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--crimson);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.nav-cta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 10px 28px;
  background: var(--crimson);
  transition: all 0.3s;
}

.nav-cta:hover {
  background: #991B1B;
}

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ── Smooth scroll ── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Mobile menu ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.98);
  backdrop-filter: blur(30px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

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

.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-photo-wrap {
    width: 100%;
    opacity: 0.25;
  }

  .hero-photo-wrap::after {
    background: linear-gradient(180deg, rgba(26,26,26,0.6) 0%, var(--charcoal) 90%);
  }

  .hero::before {
    display: none;
  }

  .hero-vertical {
    display: none;
  }

  .quote-section::before {
    width: 100%;
    height: 45%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
    white-space: normal;
  }

  .hero-subtitle {
    white-space: normal;
  }

  .hero-tagline {
    white-space: normal;
  }

  .program-card {
    padding: 2rem 1.5rem;
  }
}
