.project-gallery[data-astro-cid-j4gwzyy4] {
  padding: 0 var(--gutter) 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-gallery[data-astro-cid-j4gwzyy4] figure[data-astro-cid-j4gwzyy4] {
  margin: 0;
  min-width: 0;
}

.gallery-image[data-astro-cid-j4gwzyy4] {
  height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #141618;
}

.gallery-image[data-astro-cid-j4gwzyy4] img[data-astro-cid-j4gwzyy4] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-wide[data-astro-cid-j4gwzyy4] {
  grid-template-columns: 1fr;
}

.gallery-wide[data-astro-cid-j4gwzyy4] .gallery-image[data-astro-cid-j4gwzyy4] {
  height: clamp(320px, 37vw, 570px);
}

.gallery-wide[data-astro-cid-j4gwzyy4] .gallery-image[data-astro-cid-j4gwzyy4] img[data-astro-cid-j4gwzyy4] {
  object-position: center 52%;
}

figcaption[data-astro-cid-j4gwzyy4] {
  padding: 20px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

figcaption[data-astro-cid-j4gwzyy4] h3[data-astro-cid-j4gwzyy4] {
  font-size: 21px;
  letter-spacing: -.025em;
  font-weight: 500;
  margin: 0 0 7px;
}

figcaption[data-astro-cid-j4gwzyy4] p[data-astro-cid-j4gwzyy4] {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.product-drawing[data-astro-cid-j4gwzyy4] .gallery-image[data-astro-cid-j4gwzyy4] {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(#2a2d31, #0f1113 75%);
}

.product-drawing[data-astro-cid-j4gwzyy4] .gallery-image[data-astro-cid-j4gwzyy4] img[data-astro-cid-j4gwzyy4] {
  width: 260px;
  max-width: 65%;
  height: auto;
  object-fit: contain;
}

@media (width <= 700px) {
  .project-gallery[data-astro-cid-j4gwzyy4] {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 45px;
  }

  .gallery-image[data-astro-cid-j4gwzyy4] {
    height: 270px;
  }

  .gallery-wide[data-astro-cid-j4gwzyy4] .gallery-image[data-astro-cid-j4gwzyy4] {
    height: 300px;
  }

  figcaption[data-astro-cid-j4gwzyy4] {
    padding-top: 15px;
  }

  figcaption[data-astro-cid-j4gwzyy4] h3[data-astro-cid-j4gwzyy4] {
    font-size: 20px;
  }

  .product-drawing[data-astro-cid-j4gwzyy4] .gallery-image[data-astro-cid-j4gwzyy4] {
    height: 240px;
  }
}
/* Hero */
.project-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  background: #050607;
}
.project-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.project-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: project-push 24s ease-in-out infinite alternate;
}
.project-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050607f0 0%, #050607b8 32%, #05060733 60%, transparent 82%),
    linear-gradient(0deg, #050607f5 0%, #05060780 26%, transparent 52%),
    linear-gradient(180deg, #050607bf 0%, transparent 22%);
}
.holymap .project-backdrop img {
  object-position: center 58%;
}
.lalai .project-backdrop img {
  object-position: center 62%;
}
.superbdent .project-backdrop img {
  object-position: 30% center;
}
.project-numeral {
  position: absolute;
  z-index: -1;
  right: var(--gutter);
  top: 46%;
  transform: translateY(-50%);
  font-size: min(42vw, 74vh);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tone);
  opacity: 0.4;
}
.project-hero-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(74px, 12vh, 124px);
  max-width: 880px;
}
.project-hero-copy > * {
  animation: project-rise 1s var(--ease) both;
}
.project-hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.project-hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.project-hero-copy > :nth-child(4) {
  animation-delay: 0.28s;
}
.project-hero-copy > :nth-child(5) {
  animation-delay: 0.36s;
}
.project-logo {
  --logo-h: clamp(36px, 5vh, 54px);
  display: flex;
  margin: clamp(14px, 2.4vh, 26px) 0 clamp(8px, 1.4vh, 16px);
}
.project-hero h1 {
  font-size: clamp(46px, min(8.2vw, 14vh), 140px);
}
.project-hero h1 span {
  display: block;
}
.project-summary {
  max-width: 460px;
  margin: clamp(12px, 2.2vh, 24px) 0 clamp(16px, 2.8vh, 30px);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--soft);
}
.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.project-signoff {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 38px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Facts */
.project-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.project-facts > div {
  padding: clamp(24px, 3.2vw, 44px) 0;
}
.project-facts > div + div {
  padding-left: clamp(18px, 3vw, 44px);
  border-left: 1px solid var(--line);
}
.project-facts dt {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mark, var(--tone));
}
.project-facts dd {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 1.08;
}

/* Overview */
.project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 120px);
  padding: clamp(70px, 10vw, 160px) var(--gutter);
}
.project-overview h2,
.feature-heading h2 {
  margin-top: 24px;
  font-size: clamp(38px, 5.8vw, 100px);
}
.overview-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 8px;
}
.overview-copy p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--soft);
}
.overview-copy p:first-child {
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.5;
  color: var(--ink);
}
.overview-copy .image-credit {
  font-size: 11px;
  color: var(--muted);
}

/* Features */
.project-features {
  padding: clamp(50px, 7vw, 110px) var(--gutter) clamp(70px, 9vw, 140px);
}
.feature-heading {
  max-width: 1100px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 40px);
  margin-top: clamp(40px, 5.6vw, 84px);
}
.feature-grid article {
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.feature-number {
  display: block;
  font-size: clamp(50px, 5.6vw, 92px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--stroke, var(--tone));
}
.feature-grid h3 {
  margin: 20px 0 12px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 620;
  letter-spacing: -0.03em;
}
.feature-grid p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* Invitation */
.project-invitation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: clamp(80px, 11vw, 180px) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(
    ellipse 60% 70% at 50% 60%,
    color-mix(in srgb, var(--tone) 18%, transparent),
    transparent 70%
  );
}
.project-invitation h2 {
  max-width: 1300px;
  font-size: clamp(42px, 8vw, 144px);
}

/* Next world */
.next-world {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 72vh, 780px);
  padding: clamp(36px, 6vw, 84px) var(--gutter);
  background: #050607;
}
.next-world img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.next-world::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #050607eb, #05060759 60%, #050607a6);
  transition: opacity 0.6s;
}
.next-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.next-name {
  font-size: clamp(54px, 12vw, 210px);
  transition: transform 0.7s var(--ease);
}
.next-category {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tone);
}
.next-category svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .next-world:hover img {
    transform: scale(1.05);
  }
  .next-world:hover::after {
    opacity: 0.75;
  }
  .next-world:hover .next-name {
    transform: translateX(clamp(8px, 1.6vw, 26px));
  }
  .next-world:hover .next-category svg {
    transform: translate(4px, -4px);
  }
}

/* Other worlds */
.other-worlds {
  display: flex;
  align-items: baseline;
  gap: 18px 40px;
  padding: clamp(34px, 4vw, 60px) var(--gutter);
}
.other-worlds .slate {
  flex-shrink: 0;
}
.other-worlds ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.other-worlds a {
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.2;
  color: var(--muted);
  transition: color 0.25s;
}
.other-worlds a:hover {
  color: var(--mark, var(--tone));
}

@keyframes project-push {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12);
  }
}
@keyframes project-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@media (max-width: 900px) {
  .project-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .other-worlds {
    flex-direction: column;
  }
}
@media (max-width: 740px) {
  .project-backdrop {
    bottom: 26%;
  }
  .project-backdrop::after {
    background:
      linear-gradient(0deg, #050607 0%, #050607cc 26%, transparent 60%),
      linear-gradient(180deg, #050607bf 0%, transparent 22%);
  }
  .project-numeral {
    top: 26%;
    font-size: 52vw;
  }
  .project-hero-copy {
    bottom: 60px;
  }
  .project-hero h1 {
    font-size: clamp(40px, min(12.5vw, 8.4vh), 70px);
  }
  .project-signoff span:last-child {
    display: none;
  }
  .project-facts {
    grid-template-columns: 1fr;
  }
  .project-facts > div {
    padding: 18px 0;
  }
  .project-facts > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
