/* ================================================
   ABOUT PAGE — Heritage Courts
   ================================================ */

/* ---------------- Hero: Cinematic Frame ---------------- */
.about-hero {
  padding: calc(var(--nav-height) + 20px) 5vw 3vh;
  background-color: var(--c-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-hero-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-hero-title h1 {
  font-size: 5rem;
  font-weight: 600;
  color: var(--c-green);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.about-hero-title .about-hero-address {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--c-terracotta);
  letter-spacing: 0.02em;
}

.about-hero-frame {
  position: relative;
  width: 70vw;
  max-width: 1100px;
  border-radius: 20px;
  overflow: hidden;
}

.hero-video-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-cream);
  transition: opacity 0.35s ease-out;
  pointer-events: none;
}

.hero-video-loader.loaded {
  opacity: 0;
}

.hero-video-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(26, 48, 38, 0.15);
  border-top-color: var(--c-terracotta);
  border-radius: 50%;
  animation: heroVideoSpin 0.75s linear infinite;
}

@keyframes heroVideoSpin {
  to { transform: rotate(360deg); }
}

.about-hero-frame video {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------- Origin Story: Split Layout ---------------- */
.origin-story {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100vh;
  padding: 12vh 5vw;
  background-color: var(--c-cream);
  gap: 5vw;
  align-items: center;
}

.origin-text {
  flex: 1;
  display: flex;
  align-items: center;
}

.origin-text-inner {
  max-width: 520px;
  margin-left: auto;
}

.origin-kicker {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-terracotta);
  margin-bottom: 1.5rem;
}

.origin-text-inner h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.origin-text-inner p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--c-green-light);
  margin-bottom: 1.25rem;
}

.origin-text-inner p em {
  font-style: italic;
  color: var(--c-green);
}

.origin-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 75vh;
}

.origin-image-inner {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
}

.origin-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------- Timeline ---------------- */
.history-timeline {
  position: relative;
  z-index: 3;
  padding: 12vh 5vw 16vh;
  background-color: var(--c-cream);
  max-width: 1100px;
  margin: 0 auto;
}

.timeline-header {
  text-align: center;
  margin-bottom: 8rem;
}

.timeline-header h2 {
  font-size: 3.5rem;
  color: var(--c-green);
}

.timeline-track {
  position: relative;
  padding-left: 120px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(26, 48, 38, 0.15);
}

.timeline-item {
  position: relative;
  padding-bottom: 6rem;
  opacity: 0;
  transform: translateY(40px);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: -120px;
  top: 0;
  width: 100px;
  text-align: right;
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-terracotta);
  line-height: 1.4;
}

.timeline-line {
  position: absolute;
  left: -24px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--c-terracotta);
  border: 2px solid var(--c-cream);
  box-shadow: 0 0 0 2px var(--c-terracotta);
}

.timeline-content h3 {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  color: var(--c-green);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.timeline-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-green-light);
  max-width: 560px;
}

/* ---------------- Vision Section: full-width video + overlay text ---------------- */
.vision-section {
  position: relative;
  z-index: 3;
  min-height: 75vh;
  max-height: 85vh;
  overflow: hidden;
  background-color: var(--c-cream);
}

.vision-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vision-video-parallax {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
}

.vision-video-parallax video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vision-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.vision-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 75vh;
  max-height: 85vh;
  margin-left: auto;
  max-width: 50%;
  padding: 8vh 5vw;
  box-sizing: border-box;
}

.vision-text-inner {
  max-width: 520px;
}

.vision-section .vision-kicker {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 237, 220, 0.95);
  margin-bottom: 1.5rem;
}

.vision-section .vision-text-inner h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: var(--c-white);
}

.vision-section .vision-text-inner p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
}

@media (max-width: 1024px) {
  .about-hero-title h1 {
    font-size: 3.75rem;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {

  /* Hero */
  .about-hero-title h1 {
    font-size: 3rem;
  }

  .about-hero-title .about-hero-address {
    font-size: 1.05rem;
  }

  .about-hero-frame {
    width: 95vw;
    border-radius: 16px;
  }

  /* Origin Story */
  .origin-story {
    flex-direction: column;
    padding: 8vh 5vw;
    min-height: auto;
    gap: 4vh;
  }

  .origin-text-inner {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
  }

  .origin-text-inner h2 {
    font-size: 2.4rem;
  }

  .origin-image {
    width: 100%;
    height: 50vh;
    border-radius: 16px;
  }

  /* Timeline */
  .history-timeline {
    padding: 8vh 5vw 10vh;
  }

  .timeline-header {
    margin-bottom: 5rem;
  }

  .timeline-header h2 {
    font-size: 2.4rem;
  }

  .timeline-track {
    padding-left: 0;
    padding-top: 0;
  }

  .timeline-track::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 40px;
    padding-bottom: 4rem;
  }

  .timeline-year {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .timeline-line {
    left: 8px;
    top: 6px;
  }

  .timeline-content h3 {
    font-size: 1.4rem;
  }

  .timeline-content p {
    font-size: 0.95rem;
  }

  /* Vision: stacked video + text below */
  .vision-section {
    min-height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .vision-video-bg {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 45vh;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }

  .vision-video-parallax {
    top: 0;
    height: 100%;
  }

  .vision-overlay {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 55%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }

  .vision-text {
    position: relative;
    flex: 1;
    min-height: auto;
    max-height: none;
    max-width: 100%;
    margin-left: 0;
    padding: 6vh 5vw 8vh;
    align-items: flex-start;
  }

  .vision-text-inner {
    max-width: 100%;
    text-align: center;
  }

  .vision-section .vision-kicker {
    color: var(--c-terracotta);
  }

  .vision-section .vision-text-inner h2 {
    font-size: 2.4rem;
    color: var(--c-green);
  }

  .vision-section .vision-text-inner p {
    color: var(--c-green-light);
  }
}
