:root {
  --overview-ink: #10252b;
  --overview-muted: #5a7076;
  --overview-line: #d7e4e2;
  --overview-soft: #f2f7f6;
  --overview-dark: #061d22;
  --overview-teal: #12a594;
  --overview-gold: #f2a33a;
}

body.research-overview-page {
  color: var(--overview-ink);
  background: #fff;
  overflow-x: hidden;
}

.overview-nav .navbar-brand {
  font-weight: 800;
}

.overview-nav .nav-link.active {
  color: #087b70 !important;
}

.overview-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--overview-dark);
  isolation: isolate;
}

.overview-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent);
}

.overview-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 50%, rgba(18,165,148,.16), transparent 28%),
    linear-gradient(180deg, transparent 72%, rgba(18,165,148,.08));
}

.overview-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: 3rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.overview-kicker,
.overview-section__eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--overview-gold);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.overview-kicker::before,
.overview-section__eyebrow::before {
  content: "";
  width: 2.35rem;
  height: 2px;
  background: currentColor;
}

.overview-hero h1 {
  max-width: 620px;
  margin: 1.2rem 0 0;
  color: #fff;
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff !important;
  font-size: 4.5rem;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.overview-hero h1 span {
  display: block;
  margin-top: .85rem;
  color: rgba(255,255,255,.52);
  font-size: .22em;
  font-weight: 650;
  letter-spacing: .04em;
}

.overview-hero__lead {
  max-width: 610px;
  margin: 1.75rem 0 0;
  color: rgba(255,255,255,.8);
  font-size: 1.08rem;
  line-height: 1.9;
}

.overview-hero__motion {
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.62);
  font-size: .94rem;
}

.overview-hero__motion i {
  color: var(--overview-teal);
}

.overview-rotating {
  min-width: 8.5em;
  color: #fff;
  font-weight: 750;
  transition: opacity 220ms ease, transform 220ms ease;
}

.overview-rotating.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.overview-hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
}

#overviewCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.overview-visual__legend {
  position: absolute;
  right: 1rem;
  bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.56);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
}

.overview-visual__legend::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--overview-teal);
}

.overview-hero__statline {
  position: absolute;
  left: 1rem;
  bottom: .25rem;
  display: flex;
  gap: 1.2rem;
  color: rgba(255,255,255,.6);
  font-family: var(--font-mono);
  font-size: .68rem;
}

.overview-hero__statline b {
  color: #fff;
  font-weight: 800;
}

.overview-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: overviewReveal 720ms cubic-bezier(.2,.7,.2,1) forwards;
}

.overview-reveal:nth-child(2) { animation-delay: 90ms; }
.overview-reveal:nth-child(3) { animation-delay: 180ms; }
.overview-reveal:nth-child(4) { animation-delay: 270ms; }
.overview-reveal:nth-child(5) { animation-delay: 360ms; }

@keyframes overviewReveal {
  to { opacity: 1; transform: translateY(0); }
}

.overview-section {
  padding: 6rem 0;
}

.overview-section--soft {
  background: var(--overview-soft);
}

.overview-section__head {
  max-width: 760px;
  margin-bottom: 3rem;
}

.overview-section__eyebrow {
  color: #087b70;
}

.overview-section h2 {
  margin: .9rem 0 0;
  color: var(--overview-ink);
  font-size: 2.5rem;
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: 0;
}

.overview-section__head p {
  margin: 1rem 0 0;
  color: var(--overview-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.area-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--overview-line);
  border-radius: 10px;
  background: var(--overview-line);
}

.area-card {
  --area-color: #12a594;
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  color: var(--overview-ink);
  background: #fff;
  overflow: hidden;
  transition: transform 280ms ease, background-color 280ms ease;
}

.area-card[data-area="isac"] { --area-color: #16a1c5; }
.area-card[data-area="edge"] { --area-color: #2f9e63; }
.area-card[data-area="iot"] { --area-color: #008c82; }
.area-card[data-area="embodied"] { --area-color: #d85b78; }
.area-card[data-area="low-altitude"] { --area-color: #3a8ed8; }

.area-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--area-color);
  transform: scaleY(.25);
  transform-origin: top;
  transition: transform 300ms ease;
}

.area-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -65px;
  top: -65px;
  border: 1px solid color-mix(in srgb, var(--area-color) 24%, transparent);
  border-radius: 50%;
  transition: transform 450ms ease;
}

.area-card:hover {
  z-index: 1;
  background: #fbfdfd;
}

.area-card:hover::before {
  transform: scaleY(1);
}

.area-card:hover::after {
  transform: scale(1.12);
}

.area-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.area-card__number {
  color: var(--area-color);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.area-card__icon {
  position: relative;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--area-color) 36%, #d7e4e2);
  border-radius: 50%;
  color: var(--area-color);
  background: #fff;
  font-size: 1.1rem;
}

.area-card h3 {
  margin: 1.65rem 0 0;
  color: var(--overview-ink);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0;
}

.area-card__english {
  display: block;
  margin-top: .25rem;
  color: var(--overview-muted);
  font-size: .78rem;
  font-weight: 650;
}

.area-card__description {
  margin: 1rem 0 0;
  color: var(--overview-muted);
  font-size: .93rem;
  line-height: 1.75;
}

.area-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.area-card__tags span {
  padding: .3rem .6rem;
  border: 1px solid var(--overview-line);
  border-radius: 999px;
  color: #4d666c;
  background: #fff;
  font-size: .72rem;
  font-weight: 650;
}

.area-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--area-color);
  font-size: .86rem;
  font-weight: 800;
}

.area-card__link i {
  transition: transform 220ms ease;
}

.area-card:hover .area-card__link i {
  transform: translateX(4px);
}

.research-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--overview-line);
  border-bottom: 1px solid var(--overview-line);
}

.chain-step {
  position: relative;
  padding: 2rem 1.7rem 2.2rem;
  border-right: 1px solid var(--overview-line);
}

.chain-step:first-child { padding-left: 0; }
.chain-step:last-child { padding-right: 0; border-right: 0; }

.chain-step:not(:last-child)::after {
  content: "\f054";
  position: absolute;
  z-index: 1;
  top: 2.15rem;
  right: -.58rem;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  color: #087b70;
  background: var(--overview-soft);
  font-family: "Font Awesome 6 Free";
  font-size: .62rem;
  font-weight: 900;
}

.chain-step__index {
  display: block;
  margin-bottom: 1.5rem;
  color: #087b70;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 800;
}

.chain-step h3 {
  margin: 0 0 .65rem;
  color: var(--overview-ink);
  font-size: 1.15rem;
  font-weight: 780;
}

.chain-step p {
  margin: 0;
  color: var(--overview-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.overview-cta {
  padding: 4.5rem 0;
  color: #fff;
  background: var(--overview-dark);
}

.overview-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.overview-cta__label {
  display: block;
  margin-bottom: .55rem;
  color: var(--overview-gold);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.overview-cta p {
  margin: .7rem 0 0;
  color: rgba(255,255,255,.66);
}

.overview-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-weight: 750;
}

.overview-action:hover {
  color: var(--overview-dark);
  background: #fff;
}

.research-overview-page footer {
  margin-top: 0;
}

.overview-scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(.2,.7,.2,1), transform 650ms cubic-bezier(.2,.7,.2,1);
}

.overview-scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* This page deliberately keeps motion enabled regardless of OS preferences. */
.research-overview-page .overview-reveal {
  animation-duration: 720ms !important;
  animation-iteration-count: 1 !important;
}

.research-overview-page .overview-rotating,
.research-overview-page .area-card__link i {
  transition-duration: 220ms !important;
}

.research-overview-page .overview-scroll-reveal {
  transition-duration: 650ms !important;
}

.research-overview-page .area-card {
  transition-duration: 280ms !important;
}

@media (max-width: 991.98px) {
  .overview-hero { min-height: auto; }
  .overview-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }
  .overview-hero__visual {
    width: min(100%, 620px);
    justify-self: center;
    aspect-ratio: 1.55;
  }
  .research-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain-step:nth-child(2) { border-right: 0; }
  .chain-step:nth-child(-n+2) { border-bottom: 1px solid var(--overview-line); }
  .chain-step:nth-child(2)::after { display: none; }
}

@media (max-width: 767.98px) {
  .overview-hero h1 { font-size: 3rem; }
  .overview-hero__lead { font-size: 1rem; }
  .overview-section h2 { font-size: 2rem; }
  .overview-hero__visual { aspect-ratio: 1.18; }
  .overview-hero__statline { display: none; }
  .overview-visual__legend { right: 0; }
  .overview-section { padding: 4.25rem 0; }
  .area-map { grid-template-columns: 1fr; }
  .area-card { min-height: 315px; padding: 1.55rem; }
  .research-chain { grid-template-columns: 1fr; }
  .chain-step,
  .chain-step:first-child,
  .chain-step:last-child {
    padding: 1.55rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--overview-line);
  }
  .chain-step:last-child { border-bottom: 0; }
  .chain-step::after { display: none !important; }
  .chain-step__index { margin-bottom: .8rem; }
  .overview-cta__inner { align-items: flex-start; flex-direction: column; }
}
