/* ============================================================
   Prosperous Planet — Projects Page
   This file extends the shared theme in /css/style.css.
   ============================================================ */

.projects-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0d2138;
  color: #ffffff;
}

.projects-hero-media {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
}

.projects-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 20, 36, 0.92) 0%,
      rgba(5, 20, 36, 0.72) 46%,
      rgba(5, 20, 36, 0.26) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 20, 36, 0.88) 0%,
      rgba(5, 20, 36, 0.08) 65%
    );
  pointer-events: none;
}

.projects-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.projects-hero-content h1 {
  max-width: 850px;
  margin: 0.7rem 0 1.25rem;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.projects-hero-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.75;
}

.projects-hero .hero-actions {
  margin-top: 2rem;
}

.project-jump-nav {
  position: relative;
  z-index: 5;
  background: var(--panel, #ffffff);
  border-bottom: 1px solid var(--line-soft, #dce8f1);
  box-shadow: 0 18px 35px rgba(18, 43, 67, 0.06);
}

.project-jump-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-jump-grid a {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-height: 76px;
  padding: 1rem 1.2rem;
  color: var(--text-strong, #102a43);
  font-weight: 800;
  text-decoration: none;
  border-right: 1px solid var(--line-soft, #dce8f1);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.project-jump-grid a:first-child {
  border-left: 1px solid var(--line-soft, #dce8f1);
}

.project-jump-grid a:hover,
.project-jump-grid a:focus-visible {
  background: var(--bg-soft-2, #eef7fc);
}

.project-jump-grid span {
  color: var(--accent-strong, #1173a8);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.project-section {
  padding-top: clamp(4.5rem, 8vw, 8rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
  scroll-margin-top: 90px;
}

.project-heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: 3rem;
}

.project-heading-grid h2 {
  max-width: 680px;
  margin: 0.55rem 0 0;
  color: var(--text-strong, #102a43);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-intro {
  max-width: 720px;
  color: var(--muted, #52697d);
  font-size: 1.08rem;
  line-height: 1.8;
}

.project-intro p:first-child {
  margin-top: 0;
}

.image-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  border: 2px dashed rgba(34, 120, 164, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(105, 194, 232, 0.18),
      rgba(255, 255, 255, 0.86)
    ),
    repeating-linear-gradient(
      45deg,
      rgba(35, 104, 140, 0.035) 0,
      rgba(35, 104, 140, 0.035) 14px,
      transparent 14px,
      transparent 28px
    );
  color: #183b52;
  text-align: center;
}

.image-placeholder::before,
.image-placeholder::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 1px;
  background: rgba(34, 120, 164, 0.22);
}

.image-placeholder::before {
  transform: rotate(25deg);
}

.image-placeholder::after {
  transform: rotate(-25deg);
}

.image-placeholder-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 1rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(34, 120, 164, 0.23);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(23, 72, 99, 0.12);
  backdrop-filter: blur(8px);
}

.image-placeholder-content span {
  display: block;
  margin-bottom: 0.4rem;
  color: #1979aa;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-placeholder-content strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #102a43;
  font-size: 1.3rem;
}

.image-placeholder-content p {
  margin: 0;
  color: #52697d;
  line-height: 1.6;
}

.image-placeholder--hero {
  min-height: 720px;
  background:
    linear-gradient(
      135deg,
      #163853,
      #317ba3 50%,
      #99d4e8
    );
}

.image-placeholder--hero .image-placeholder-content {
  opacity: 0.22;
}

.image-placeholder--panorama {
  aspect-ratio: 2 / 1;
  min-height: 360px;
}

.image-placeholder--landscape {
  min-height: 470px;
  aspect-ratio: 3 / 2;
}

.image-placeholder--feature {
  min-height: 560px;
  aspect-ratio: 1.5 / 1;
}

.image-placeholder--card {
  min-height: 360px;
  aspect-ratio: 3 / 2;
  border-radius: 22px 22px 0 0;
}

.image-placeholder--space {
  min-height: 620px;
  aspect-ratio: 16 / 9;
  border-color: rgba(176, 220, 255, 0.42);
  background:
    linear-gradient(
      135deg,
      #071421,
      #213a55 55%,
      #766c67
    );
  color: #ffffff;
}

.image-placeholder--space .image-placeholder-content,
.image-placeholder--moon-hotel .image-placeholder-content,
.image-placeholder--future .image-placeholder-content {
  background: rgba(8, 23, 38, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
}

.image-placeholder--space .image-placeholder-content span,
.image-placeholder--moon-hotel .image-placeholder-content span,
.image-placeholder--future .image-placeholder-content span {
  color: #8dd8ff;
}

.image-placeholder--space .image-placeholder-content strong,
.image-placeholder--moon-hotel .image-placeholder-content strong,
.image-placeholder--future .image-placeholder-content strong {
  color: #ffffff;
}

.image-placeholder--space .image-placeholder-content p,
.image-placeholder--moon-hotel .image-placeholder-content p,
.image-placeholder--future .image-placeholder-content p {
  color: rgba(255, 255, 255, 0.76);
}

.project-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.project-benefit-card {
  min-height: 310px;
  padding: 1.5rem;
}

.project-number {
  display: inline-block;
  margin-bottom: 2.4rem;
  color: var(--accent-strong, #1173a8);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.project-benefit-card h3 {
  margin: 0 0 0.8rem;
  color: var(--text-strong, #102a43);
  font-size: 1.3rem;
  line-height: 1.2;
}

.project-benefit-card p {
  margin: 0;
  color: var(--muted, #52697d);
  line-height: 1.7;
}

.project-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(4rem, 7vw, 7rem);
}

.project-story-copy h3 {
  margin: 0.6rem 0 1rem;
  color: var(--text-strong, #102a43);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.project-story-copy p:not(.eyebrow) {
  color: var(--muted, #52697d);
  line-height: 1.8;
}

.project-section--dark {
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(74, 157, 196, 0.2),
      transparent 32%
    ),
    #0b1d2c;
  color: #ffffff;
}

.project-section--dark .project-heading-grid h2,
.project-section--dark .feature-project h3 {
  color: #ffffff;
}

.project-section--dark .project-intro,
.project-section--dark .feature-project-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
}

.feature-project {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-project--reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.feature-project--reverse .feature-project-copy {
  order: 2;
}

.feature-project--reverse .image-placeholder {
  order: 1;
}

.feature-project-copy h3 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.feature-project-copy p:not(.eyebrow) {
  line-height: 1.8;
}

.feature-project-copy .button {
  margin-top: 1rem;
}

.ai-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ai-project-card {
  overflow: hidden;
  border: 1px solid var(--line-soft, #dce8f1);
  border-radius: 24px;
  background: var(--panel, #ffffff);
  box-shadow: 0 22px 60px rgba(22, 58, 82, 0.09);
}

.ai-project-copy {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.ai-project-copy h3 {
  margin: 0.55rem 0 1rem;
  color: var(--text-strong, #102a43);
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.ai-project-copy p:not(.eyebrow) {
  color: var(--muted, #52697d);
  line-height: 1.8;
}

.project-section--space {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(86, 143, 190, 0.21),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #07131f 0%,
      #0b2032 45%,
      #091723 100%
    );
  color: #ffffff;
}

.project-heading-grid--light h2 {
  color: #ffffff;
}

.project-heading-grid--light .project-intro {
  color: rgba(255, 255, 255, 0.76);
}

.space-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.space-copy-grid article {
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.space-copy-grid h3 {
  margin: 0.55rem 0 0.9rem;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.2;
}

.space-copy-grid p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.moon-hotel-callout {
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.025)
    );
}

.moon-hotel-copy {
  max-width: 900px;
  margin-bottom: 2rem;
}

.moon-hotel-copy h3 {
  margin: 0.6rem 0 1rem;
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.moon-hotel-copy p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.8;
}

.image-placeholder--moon-hotel {
  min-height: 520px;
  aspect-ratio: 11 / 6;
  border-color: rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(
      135deg,
      #142f44,
      #567f9a 52%,
      #b6d9e8
    );
}

.future-systems {
  margin-top: clamp(4rem, 8vw, 8rem);
}

.future-systems-heading {
  max-width: 800px;
  margin-bottom: 2rem;
}

.future-systems-heading h3 {
  margin: 0.55rem 0 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.future-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.future-system-card {
  min-height: 250px;
  padding: 1.5rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.future-system-card h4 {
  margin: 0 0 0.8rem;
  color: #ffffff;
  font-size: 1.25rem;
}

.future-system-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.image-placeholder--future {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(
      135deg,
      #07131f,
      #1c4662 52%,
      #537b91
    );
}

.projects-cta-section {
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.projects-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(
      circle at 88% 15%,
      rgba(89, 187, 225, 0.22),
      transparent 35%
    ),
    var(--panel, #ffffff);
}

.projects-cta h2 {
  max-width: 850px;
  margin: 0.55rem 0 1rem;
  color: var(--text-strong, #102a43);
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.projects-cta p:not(.eyebrow) {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted, #52697d);
  line-height: 1.8;
}

.projects-cta-actions {
  display: grid;
  gap: 0.8rem;
}

.projects-cta-actions .button {
  width: 100%;
  text-align: center;
}

@media (max-width: 1050px) {
  .project-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .space-copy-grid,
  .future-system-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .projects-hero {
    min-height: 650px;
  }

  .projects-hero-content {
    padding-top: 6rem;
    padding-bottom: 4.5rem;
  }

  .project-heading-grid,
  .project-story-grid,
  .feature-project,
  .feature-project--reverse,
  .projects-cta {
    grid-template-columns: 1fr;
  }

  .feature-project--reverse .feature-project-copy,
  .feature-project--reverse .image-placeholder {
    order: initial;
  }

  .ai-project-grid {
    grid-template-columns: 1fr;
  }

  .projects-cta-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .projects-hero {
    min-height: 610px;
  }

  .projects-hero-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(5, 20, 36, 0.96) 0%,
        rgba(5, 20, 36, 0.65) 72%,
        rgba(5, 20, 36, 0.35) 100%
      );
  }

  .project-jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-jump-grid a:nth-child(odd) {
    border-left: 1px solid var(--line-soft, #dce8f1);
  }

  .project-jump-grid a {
    border-bottom: 1px solid var(--line-soft, #dce8f1);
  }

  .project-benefit-grid {
    grid-template-columns: 1fr;
  }

  .project-benefit-card {
    min-height: auto;
  }

  .image-placeholder--panorama,
  .image-placeholder--landscape,
  .image-placeholder--feature,
  .image-placeholder--space,
  .image-placeholder--moon-hotel {
    min-height: 410px;
    aspect-ratio: auto;
  }

  .projects-cta-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .project-jump-grid {
    grid-template-columns: 1fr;
  }

  .project-jump-grid a {
    border-left: 1px solid var(--line-soft, #dce8f1);
  }

  .projects-hero-content h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .image-placeholder-content {
    margin: 0.75rem;
    padding: 1rem;
  }
}

.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* Wide panoramic image */
.project-image--panorama {
  aspect-ratio: 2 / 1;
}

/* Normal landscape image */
.project-image--landscape {
  aspect-ratio: 1600 / 1100;
}

/* Featured project image */
.project-image--feature {
  aspect-ratio: 2000 / 1300;
}

.project-benefit-card {
  overflow: hidden;
}

.project-benefit-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}
.robotics-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;

  background-image:
    linear-gradient(
      90deg,
      rgba(2, 8, 18, 0.48) 0%,
      rgba(2, 8, 18, 0.78) 38%,
      rgba(2, 8, 18, 0.72) 62%,
      rgba(2, 8, 18, 0.35) 100%
    ),
    url("/projects/images/image8.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.robotics-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 100px;
}

.robotics-hero h2,
.robotics-hero .project-intro p {
  color: #ffffff;
}

.robotics-hero .eyebrow {
  color: #8fd8ff;
}
@media (max-width: 800px) {
  .robotics-hero {
    min-height: auto;
    background-position: center;
  }

  .robotics-hero-content {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}
#companion-ai .project-heading-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  column-gap: 90px;
  align-items: start;
}

#companion-ai .project-heading-grid > div:first-child {
  max-width: 620px;
}

#companion-ai .project-intro {
  padding-top: 18px;
}
@media (max-width: 900px) {
  #companion-ai .project-heading-grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  #companion-ai .project-intro {
    padding-top: 0;
  }
}
.space-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;

  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 14, 0.72) 0%,
      rgba(2, 6, 14, 0.58) 38%,
      rgba(2, 6, 14, 0.72) 100%
    ),
    url("/projects/images/image14.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.space-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 100px;
}

.space-hero .eyebrow,
.space-hero h2,
.space-hero .project-intro p {
  color: #ffffff;
}
