/* Scoped hero typography, word-layout, and midnight-sapphire color polish
   for Our Story ONLY — matches Home, Our Services, Our Careers, and Our Contact. */

html:has(body[data-page="/our-story/"]) {
  background: #0c174a;
}

body[data-page="/our-story/"] .header {
  background: #0c174a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body[data-page="/our-story/"] .menu {
  background: #0c174a;
}

body[data-page="/our-story/"] .chapter-story {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.94fr);
  gap: clamp(32px, 4.2vw, 68px);
  padding-top: clamp(68px, 7.5vh, 96px);
  padding-bottom: clamp(72px, 8vh, 102px);
  background:
    linear-gradient(#0c174a, transparent 120px),
    radial-gradient(56% 52% at 72% 44%, rgba(0, 191, 237, 0.15), transparent 70%),
    radial-gradient(96% 78% at 48% 24%, #13246e 0%, #0c174a 86%);
}

body[data-page="/our-story/"] .timeline-journey {
  background:
    radial-gradient(ellipse at 0 30%, rgba(19, 36, 110, 0.65), transparent 56%),
    #081136;
}

body[data-page="/our-story/"] .chapter-story .page-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
}

body[data-page="/our-story/"] .chapter-story .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7ee3fd;
  margin: 0 0 22px;
}

body[data-page="/our-story/"] .chapter-story .eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00bfed, #8ae6ff);
}

body[data-page="/our-story/"] .chapter-story h1 {
  font-size: clamp(46px, 5vw, 82px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.048em;
  max-width: 17.5ch;
  text-wrap: balance;
  color: #ffffff;
}

body[data-page="/our-story/"] .chapter-story .headline-secondary {
  display: block;
  font-size: 0.76em;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.036em;
  margin-top: 16px;
  max-width: 20ch;
  color: #7ee3fd;
  background: linear-gradient(94deg, #4dd8ff 0%, #9ceeff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-page="/our-story/"] .chapter-story .page-hero-copy > p {
  font-size: clamp(19px, 1.48vw, 23px);
  font-weight: 450;
  line-height: 1.56;
  letter-spacing: -0.012em;
  max-width: 46ch;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(138, 223, 243, 0.24);
  color: #e4eefc;
  text-wrap: pretty;
}

@media (max-width: 1100px) and (min-width: 761px) {
  body[data-page="/our-story/"] .chapter-story {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.96fr);
    gap: 4%;
  }
  body[data-page="/our-story/"] .chapter-story h1 {
    font-size: clamp(42px, 5vw, 60px);
  }
  body[data-page="/our-story/"] .chapter-story .page-hero-copy > p {
    font-size: clamp(17.5px, 1.7vw, 20px);
    margin-top: 24px;
    padding-top: 20px;
  }
}

@media (max-width: 760px) {
  body[data-page="/our-story/"] .time-observatory {
    background: rgba(8, 17, 54, 0.96);
  }
  body[data-page="/our-story/"] .chapter-story {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 24px 48px;
  }
  body[data-page="/our-story/"] .chapter-story h1 {
    font-size: clamp(38px, 9.2vw, 58px);
    max-width: 18ch;
  }
  body[data-page="/our-story/"] .chapter-story .headline-secondary {
    font-size: 0.78em;
    margin-top: 12px;
  }
  body[data-page="/our-story/"] .chapter-story .page-hero-copy > p {
    font-size: 17.5px;
    line-height: 1.52;
    margin-top: 22px;
    padding-top: 18px;
  }
}
