:root {
  --hero-paper: #f8f6f2;
  --hero-ink: #302b35;
  --hero-muted: #827987;
  --hero-accent: #785ba7;
}

.embodiverse-hero, .embodiverse-hero * { box-sizing: border-box; }
.embodiverse-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 0;
  isolation: isolate;
  overflow: clip;
  min-height: min(760px, 100svh);
  padding: calc(var(--site-header-height, 72px) + 18px) max(4.5vw, calc((100vw - 1660px) / 2)) 100px;
  background: var(--hero-paper);
  color: var(--hero-ink);
  font-family: "Instrument Sans Variable", Arial, sans-serif;
  text-align: left;
}
.embodiverse-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 74% 49%, #eae5ee80, transparent 58%);
}
.embodiverse-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 4.5%;
  right: 4.5%;
  height: 1px;
  background: linear-gradient(90deg, #cfc6d34d, #cfc6d34d 32%, transparent 85%);
  pointer-events: none;
}
.embodiverse-hero__copy { position: relative; z-index: 10; min-width: 0; padding-bottom: 20px; }
.embodiverse-hero__eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 27px;
  color: var(--hero-accent);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .11em;
  line-height: 1.7;
  text-transform: uppercase;
}
.embodiverse-hero__eyebrow span { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.embodiverse-hero__title {
  margin: 0;
  font-family: "Gilda Display", Georgia, serif;
  font-size: clamp(48px, 4.6vw, 83px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.embodiverse-hero__question { max-width: 13em; margin: 22px 0 0; font-size: clamp(24px, 2.05vw, 34px); font-weight: 400; letter-spacing: -.035em; line-height: 1.3; }
.embodiverse-hero__description { max-width: 27em; margin: 23px 0 0; padding-right: 20px; color: var(--hero-muted); font-size: clamp(13px, 1.02vw, 16px); line-height: 1.8; }
.embodiverse-hero__gallery-link { display: inline-flex; align-items: center; gap: 28px; margin-top: 27px; padding-bottom: 6px; border-bottom: 1px solid #b9a8c980; color: #68517f; font-size: 12px; font-weight: 500; text-decoration: none; }
.embodiverse-hero__gallery-link:hover { color: #39244e; border-color: currentColor; }
.embodiverse-hero__principle { margin: 43px 0 0; color: #a198a4; font-size: 10px; line-height: 1.6; letter-spacing: .025em; }
.embodiverse-hero__principle span { margin-left: 7px; color: #82738e; }

/* Nine small worlds share an open, staggered field. */
.embodiverse-worlds { position: relative; min-width: 0; width: min(108%, 1120px, calc((100svh - 150px) * 1.5)); justify-self: center; margin-left: -3%; aspect-ratio: 1.85; isolation: isolate; }
.embodiverse-worlds::before { content: none; }
.embodiverse-worlds__atmosphere {
  position: absolute;
  inset: 8% -4% -2% -7%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 72% 79%, #b7d3d82b, transparent 30%),
    radial-gradient(ellipse at 38% 80%, #d9c6a62e, transparent 35%),
    radial-gradient(ellipse at 71% 42%, #c6d0b31f, transparent 32%);
}
.embodiverse-worlds__scenes { position: absolute; inset: 0; }
.embodiverse-world {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --lift: 0px;
  position: absolute;
  display: block;
  width: var(--scene-width);
  left: var(--scene-x);
  top: var(--scene-y);
  z-index: var(--scene-z, 1);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #665772;
  text-decoration: none;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(var(--parallax-x), calc(var(--parallax-y) + var(--lift)), 0);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .35s, opacity .35s;
}
.embodiverse-world img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.embodiverse-world--satellite-repair { --scene-x: 0%; --scene-y: 5%; --scene-width: 33%; --scene-z: 1; --label-x: 40%; --label-y: 3%; }
.embodiverse-world--container-handling { --scene-x: 20%; --scene-y: 47%; --scene-width: 32%; --scene-z: 2; --label-x: 3%; --label-y: 5%; }
.embodiverse-world--forestry-log-collection { --scene-x: 72%; --scene-y: 43%; --scene-width: 30%; --scene-z: 4; --label-x: 44%; --label-y: 8%; }
.embodiverse-world--industrial-welding { --scene-x: -5%; --scene-y: 48%; --scene-width: 28%; --scene-z: 3; --label-x: 1%; --label-y: 92%; }
.embodiverse-world--wheelchair-feeding { --scene-x: 42%; --scene-y: 35%; --scene-width: 32%; --scene-z: 5; --label-x: 12%; --label-y: 92%; }
.embodiverse-world--excavator-digging { --scene-x: 36%; --scene-y: 78%; --scene-width: 33%; --scene-z: 6; --label-x: 8%; --label-y: 88%; }
.embodiverse-world--rov-valve { --scene-x: 73%; --scene-y: 78%; --scene-width: 29%; --scene-z: 7; --label-x: 25%; --label-y: 92%; }
.embodiverse-world__label {
  position: absolute;
  left: var(--label-x, 50%);
  top: var(--label-y, 90%);
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 160px;
  padding: 5px 0;
  color: #796582;
  font-size: clamp(8px, .65vw, 11px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.embodiverse-world__label::before { content: ""; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #9274b3; box-shadow: 0 0 0 3px #9274b314; }
.embodiverse-world__label span { padding: 2px 0; text-shadow: 0 1px 6px var(--hero-paper), 0 0 9px var(--hero-paper); }
.embodiverse-world:focus-visible { outline: 0; --lift: -5px; filter: drop-shadow(0 3px 5px #9675b64d); }
.embodiverse-world:focus-visible .embodiverse-world__label { opacity: 1; transform: translateY(0); }
.embodiverse-worlds__note { position: absolute; bottom: -15%; left: 13%; right: 0; margin: 0; pointer-events: none; color: #aaa0ae; font-size: 9px; line-height: 1.5; letter-spacing: .045em; text-align: center; }
.embodiverse-worlds__note span { margin: 0 8px; color: #bdb1c4; }
@media (hover: hover) and (pointer: fine) {
  .embodiverse-worlds:has(.embodiverse-world:hover) .embodiverse-world:not(:hover) { opacity: .8; }
  .embodiverse-world:hover { --lift: -5px; filter: drop-shadow(0 5px 6px #8a75821a); }
  .embodiverse-world:hover .embodiverse-world__label { opacity: 1; transform: translateY(0); }
}

.embodiverse-hero__gallery-link:focus-visible, .embodiverse-hero__close:focus-visible { outline: 2px solid #8b68ae; outline-offset: 5px; }
.embodiverse-hero__lightbox { width: min(94vw, 1536px); max-width: none; max-height: 94svh; margin: auto; padding: 0; border: 0; border-radius: 4px; background: var(--hero-paper); color: var(--hero-ink); overflow: auto; }
.embodiverse-hero__lightbox::backdrop { background: #1c1823db; backdrop-filter: blur(7px); }
.embodiverse-hero__lightbox img { display: block; width: 100%; height: auto; max-height: 84svh; object-fit: contain; }
.embodiverse-hero__lightbox p { margin: 0; padding: 14px 24px; font: 13px/1.5 "Instrument Sans Variable", Arial, sans-serif; }
.embodiverse-hero__close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 35px; height: 35px; padding: 0; border: 1px solid #d5cbd8; border-radius: 50%; background: #fffef4eb; color: #4a424c; font: 26px/1 Arial, sans-serif; cursor: pointer; }

@media (min-width: 1700px) { .embodiverse-hero { padding-bottom: 100px; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .embodiverse-hero { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr); min-height: 650px; padding-inline: 30px; padding-bottom: 100px; }
  .embodiverse-hero__title { font-size: 49px; }
  .embodiverse-hero__question { font-size: 25px; }
  .embodiverse-hero__description { padding-right: 4px; font-size: 13px; }
  .embodiverse-hero__eyebrow { max-width: 245px; font-size: 8px; }
  .embodiverse-worlds { width: 108%; margin-left: 0; }
}
@media (max-width: 760px) {
  .embodiverse-hero { display: block; min-height: 0; padding: calc(var(--site-header-height, 70px) + 27px) 24px 36px; }
  .embodiverse-hero__copy { max-width: 510px; margin: 0 auto; padding: 0; text-align: center; }
  .embodiverse-hero__eyebrow { justify-content: center; margin-bottom: 18px; font-size: 8px; }
  .embodiverse-hero__title { font-size: clamp(49px, 11vw, 72px); }
  .embodiverse-hero__question { max-width: none; margin-top: 15px; font-size: 25px; }
  .embodiverse-hero__description { max-width: 31em; margin: 16px auto 0; padding: 0; font-size: 13px; line-height: 1.7; }
  .embodiverse-hero__gallery-link { margin-top: 18px; font-size: 11px; gap: 18px; }
  .embodiverse-hero__principle { display: none; }
  .embodiverse-worlds { width: calc(100% + 24px); max-width: 600px; margin: 32px auto 65px; left: -12px; aspect-ratio: 1.85; }
  .embodiverse-worlds__note { bottom: -19%; left: 0; font-size: 8px; }
  .embodiverse-world__label { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .embodiverse-hero *, .embodiverse-hero *::before { transition: none !important; animation: none !important; }
  .embodiverse-world { transform: none !important; }
}

.embodiverse-world--apple-harvest { --scene-x: 72%; --scene-y: 0%; --scene-width: 30%; --scene-z: 3; --label-x: 6%; --label-y: 4%; }

/* Independent, low-amplitude drift gives each world its own rhythm. */
@keyframes world-drift {
  0%, 100% { transform: translate3d(0, 2px, 0) rotate(-.3deg); }
  50% { transform: translate3d(2px, -5px, 0) rotate(.3deg); }
}
.embodiverse-world img { animation: world-drift var(--drift-duration, 10s) ease-in-out var(--drift-delay, 0s) infinite; }
.embodiverse-world:nth-child(2n) { --drift-duration: 12s; --drift-delay: -4s; }
.embodiverse-world:nth-child(3n) { --drift-duration: 11s; --drift-delay: -7s; }
.embodiverse-world:nth-child(4n) { --drift-duration: 13s; --drift-delay: -2s; }
.embodiverse-world { scale: 1; transition: transform .65s cubic-bezier(.2,.7,.2,1), scale .65s cubic-bezier(.2,.7,.2,1), filter .4s, opacity .4s; }
@media (hover: hover) and (pointer: fine) {
  .embodiverse-world:hover { scale: 1.035; }
  .embodiverse-worlds:has(.embodiverse-world:hover) .embodiverse-world:not(:hover) { opacity: .94; }
}
@media (prefers-reduced-motion: reduce) {
  .embodiverse-world img { animation: none; }
  .embodiverse-world:hover { scale: 1; }
}

.embodiverse-network { position: absolute; inset: 0; width: 100%; height: 115%; overflow: visible; pointer-events: none; z-index: -1; fill: none; }
.embodiverse-network__lines { stroke: #c7b3df; stroke-width: 1; opacity: .42; }
.embodiverse-network__flow { stroke: #b397d5; stroke-width: 1.7; opacity: .72; stroke-linecap: round; }
.embodiverse-network__flow path { stroke-dasharray: 2.5 97.5; animation: world-current var(--flow-duration) linear var(--flow-delay) infinite; }
@keyframes world-current { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .embodiverse-network__flow { display: none; } }

/* Asset colors are baked into versioned PNGs; no CSS color grading. */

.embodiverse-world--lunar-regolith { --scene-x: 31%; --scene-y: -4%; --scene-width: 30%; --scene-z: 6; }

/* Captions sit outside the picture, on paper, without covering scene details. */
.embodiverse-world__label { left: 50%; top: calc(100% - 14px); max-width: 230px; width: max-content; padding: 6px 10px; border-radius: 5px; background: #f8f6f2f7; color: #65536e; font-size: 11px; line-height: 1.4; text-align: center; box-shadow: 0 2px 9px #55445d0d; transform: translate(-50%, 4px); }
.embodiverse-world__label::before { display: none; }
.embodiverse-world__label span { padding: 0; text-shadow: none; }
.embodiverse-world:hover, .embodiverse-world:focus-visible { z-index: 20; }
.embodiverse-world:hover .embodiverse-world__label, .embodiverse-world:focus-visible .embodiverse-world__label { transform: translate(-50%, 0); }
@media (max-width:760px) { .embodiverse-world__label { max-width: 160px; white-space: normal; font-size: 10px; } }

@media (min-width:761px) { .embodiverse-hero { padding-bottom: 120px; } }

/* Anchor captions to visible content, including the satellite's letterboxing. */
.embodiverse-world__label { left: var(--caption-x, 50%); top: calc(var(--caption-y, 96%) - 10px); }
.embodiverse-world--satellite-repair { --caption-x: 54.75%; --caption-y: 74%; }
.embodiverse-world--container-handling { --caption-x: 48.15%; --caption-y: 96.2%; }
.embodiverse-world--forestry-log-collection { --caption-x: 49.9%; --caption-y: 93.8%; }
.embodiverse-world--industrial-welding { --caption-x: 51.15%; --caption-y: 96.4%; }
.embodiverse-world--wheelchair-feeding { --caption-x: 48.65%; --caption-y: 97.7%; }
.embodiverse-world--excavator-digging { --caption-x: 50.1%; --caption-y: 94.8%; }
.embodiverse-world--rov-valve { --caption-x: 50.4%; --caption-y: 95.2%; }
.embodiverse-world--apple-harvest { --caption-x: 48.75%; --caption-y: 99%; }
.embodiverse-world--lunar-regolith { --caption-x: 50.2%; --caption-y: 96.8%; }
