.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(94svh, 980px);
  align-items: flex-end;
  overflow: hidden;
  padding-block: 10rem clamp(3rem, 6vw, 5rem);
  background: var(--navy-deep);
  color: var(--cream);
}

.home-hero .hero-media img {
  object-position: center 44%;
  animation: hero-settle 1.2s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-content {
  animation: hero-copy 800ms cubic-bezier(.16, 1, .3, 1) 120ms both;
}

.home-hero .hero-content h1 {
  opacity: 1;
  text-shadow:
    0 2px 20px rgb(7 27 41 / 48%),
    0 1px 3px rgb(7 27 41 / 72%);
}

.home-hero h1 {
  max-width: none;
  color: #fffdf8;
  font-size: clamp(3rem, 5vw, 4.9rem);
  text-wrap: balance;
}

.home-hero .hero-content > p:last-of-type {
  max-width: 58ch;
  margin-top: 1.5rem;
  color: #f8fbfa;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  opacity: 1;
  text-shadow:
    0 3px 20px rgb(7 27 41 / 82%),
    0 1px 3px rgb(7 27 41 / 96%);
}

@keyframes hero-settle {
  from {
    filter: saturate(.75) brightness(.75);
    transform: scale(1.025);
  }
  to {
    filter: none;
    transform: none;
  }
}

@keyframes hero-copy {
  from {
    transform: translateY(18px);
  }
  to {
    transform: none;
  }
}

.place-section {
  background: var(--paper);
}

.place-layout {
  display: grid;
  grid-template-areas: "intro photo";
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
  column-gap: clamp(2rem, 3.5vw, 3rem);
}

.place-intro {
  grid-area: intro;
}

.place-intro h2 {
  max-width: none;
}

.place-intro > p:last-child {
  max-width: 58ch;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.coast-figure {
  grid-area: photo;
  align-self: stretch;
  width: min(100%, 470px);
  justify-self: start;
}

.coast-figure picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.coast-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.coast-figure figcaption {
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.observatory-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.observatory-section::after {
  position: absolute;
  top: -18rem;
  right: -14rem;
  width: 40rem;
  height: 40rem;
  border: 4rem solid rgb(43 145 139 / 8%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.observatory-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "copy measures"
    "foundation foundation";
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.observatory-copy {
  grid-area: copy;
}

.observatory-copy h2 {
  max-width: none;
}

.observatory-copy > p {
  max-width: 54ch;
  margin-top: 1.35rem;
  color: var(--muted-light);
}

.measure-list {
  grid-area: measures;
}

.measure-list > div {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 1.5rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line-light);
}

.measure-list dt {
  color: var(--cream);
  font-weight: 600;
}

.measure-list dd {
  color: var(--muted-light);
}

.observatory-foundation {
  grid-area: foundation;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-light);
}

.observatory-foundation > p {
  max-width: 62ch;
  color: var(--muted-light);
}

.research-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.research-support dt {
  color: var(--cream);
  font-weight: 600;
}

.research-support dd {
  margin-top: 0.45rem;
  color: var(--muted-light);
}

.sentinel-bridge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-light);
  background: linear-gradient(105deg, rgb(21 60 80 / 42%), rgb(12 44 67 / 8%) 68%);
}

.sentinel-bridge::before {
  position: absolute;
  z-index: -1;
  inset: -28% -4% -28% 36%;
  background: url("../graphics/sentinel-contours.svg") center / cover no-repeat;
  content: "";
  opacity: 0.18;
  pointer-events: none;
  transform: rotate(-4deg) scale(1.08);
}

.sentinel-bridge-inner {
  position: relative;
  z-index: 1;
  display: block;
  padding-block: clamp(1.65rem, 3vw, 2.35rem);
}

.bridge-copy h3 {
  max-width: none;
  margin-bottom: 0.8rem;
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
}

.bridge-copy p {
  max-width: 76ch;
  color: var(--muted-light);
}

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

.station-section {
  background: var(--cream);
}

.station-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: start;
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.station-heading h2 {
  max-width: none;
}

.station-heading > p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.station-lead-figure {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.station-lead-figure picture {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.station-lead-figure img {
  width: 100%;
  max-height: 390px;
  aspect-ratio: 16 / 6;
  filter: brightness(1.045) contrast(0.96) saturate(0.98);
  object-fit: cover;
}

.station-lead-figure figcaption,
.lodging-mosaic figcaption,
.lab-figure figcaption {
  padding-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.lodging-profiles {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.lodging-profile {
  display: grid;
  grid-template-areas: "copy images";
  grid-template-columns: minmax(230px, 0.62fr) 1.38fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.4rem);
}

.lodging-profile:first-child {
  border-top: 1px solid var(--line);
}

.lodging-profile:nth-child(even) {
  grid-template-areas: "images copy";
  grid-template-columns: 1.38fr minmax(230px, 0.62fr);
}

.lodging-profile:last-child {
  border-bottom: 1px solid var(--line);
}

.lodging-copy {
  grid-area: copy;
}

.lodging-copy h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.lodging-copy p {
  max-width: 42ch;
  color: var(--muted);
}

.lodging-mosaic {
  grid-area: images;
  display: grid;
  min-width: 0;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 155px);
  gap: 0.8rem;
}

.lodging-mosaic figure {
  min-width: 0;
}

.lodging-mosaic figure:first-child {
  grid-row: 1 / 3;
}

.lodging-mosaic picture {
  display: block;
  height: calc(100% - 1.75rem);
  overflow: hidden;
  border-radius: 8px;
}

.lodging-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lodging-profile-compact .lodging-mosaic {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 260px;
}

.lodging-profile-compact .lodging-mosaic figure:first-child {
  grid-row: auto;
}

.station-life-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 3vw, 2.75rem);
}

.station-life-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  min-width: 0;
  padding: 1rem;
  background: rgb(12 44 67 / 4.5%);
  border-radius: 10px;
}

.station-life-card figure,
.station-life-card picture {
  display: block;
  min-width: 0;
  height: 100%;
}

.station-life-card figure {
  overflow: hidden;
  border-radius: 7px;
}

.station-life-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  max-height: 190px;
  object-fit: cover;
}

.station-life-card h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
}

.station-life-card p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.lab-section {
  padding-block: clamp(3rem, 4vw, 4rem);
  background: var(--paper);
}

.lab-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.lab-copy h2 {
  max-width: none;
  font-size: clamp(2.15rem, 3.35vw, 3.1rem);
}

.lab-copy > p {
  max-width: 52ch;
  margin-top: 1.35rem;
  color: var(--muted);
}

.lab-figure picture {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.lab-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.setting-section {
  padding-block: clamp(3rem, 4.5vw, 4.5rem);
  background: var(--navy-deep);
  color: var(--cream);
}

.setting-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.setting-copy h2 {
  max-width: none;
  color: var(--cream);
  font-size: clamp(2.15rem, 3.35vw, 3.1rem);
}

.setting-copy p {
  max-width: 48ch;
  margin-top: 1.25rem;
  color: rgb(243 240 232 / 78%);
}

.setting-gallery {
  --setting-image-height: clamp(250px, 26vw, 330px);

  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
  gap: 0.85rem;
}

.setting-figure,
.setting-figure picture {
  display: block;
  min-width: 0;
}

.setting-figure picture {
  height: var(--setting-image-height);
}

.setting-figure img {
  width: 100%;
  height: var(--setting-image-height);
  object-fit: cover;
  border-radius: 8px;
}

.setting-figure picture img {
  height: 100%;
}

.setting-figure figcaption {
  padding-top: 0.65rem;
  color: rgb(243 240 232 / 64%);
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .sentinel-bridge::before {
    inset: -22% -30% -22% 24%;
    opacity: 0.15;
    transform: rotate(-4deg) scale(1.04);
  }

  .place-layout,
  .observatory-layout,
  .station-heading,
  .lab-layout,
  .setting-layout {
    grid-template-columns: 1fr;
  }

  .place-layout {
    grid-template-areas:
      "intro"
      "photo";
  }

  .observatory-layout {
    grid-template-areas:
      "copy"
      "measures"
      "foundation";
  }

  .place-layout,
  .observatory-layout {
    gap: 3rem;
  }

  .station-heading {
    align-items: start;
    gap: 2rem;
  }

  .lab-layout,
  .setting-layout {
    gap: 1.25rem;
  }

  .coast-figure img {
    aspect-ratio: 16 / 10;
  }

  .coast-figure {
    width: 100%;
    justify-self: stretch;
  }

  .setting-gallery {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .observatory-foundation {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .sentinel-bridge::before {
    inset: -12% -62% -12% 18%;
    opacity: 0.12;
  }

  .home-hero {
    min-height: 86svh;
    padding-bottom: 4rem;
  }

  .home-hero .hero-media img {
    object-position: 60% center;
  }

  .measure-list > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .research-support {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .station-life-grid {
    grid-template-columns: 1fr;
  }

  .station-life-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .station-life-card figure,
  .station-life-card picture {
    height: auto;
  }

  .station-life-card img {
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .station-lead-figure img {
    aspect-ratio: 4 / 3;
  }

  .lodging-profile,
  .lodging-profile:nth-child(even) {
    grid-template-areas:
      "copy"
      "images";
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lodging-mosaic,
  .lodging-profile-compact .lodging-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 215px 150px;
  }

  .lodging-mosaic figure:first-child,
  .lodging-profile-compact .lodging-mosaic figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .lodging-mosaic picture {
    height: calc(100% - 1.65rem);
  }

  .lodging-profile-compact .lodging-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .lodging-profile-compact .lodging-mosaic picture {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .coast-figure img {
    aspect-ratio: 4 / 3;
  }

  .setting-gallery {
    grid-template-columns: 1fr;
  }

  .setting-figure-main img,
  .setting-figure img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .setting-figure picture {
    height: auto;
  }
}
