/* ── Design Tokens ───────────────────────────────────────── */

:root {
  --font-family-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --background-primary: #ffffff;
  --background-secondary: #f5f5f7;

  --label-primary: #1d1e1f;
  --label-secondary: rgba(60, 60, 67, 0.7);
  --label-tertiary: rgba(60, 60, 67, 0.3);

  --accent-link: #0066cc;
}

.theme-light {
  --background-primary: #ffffff;
  --background-secondary: #f5f5f7;

  --label-primary: #1d1e1f;
  --label-secondary: rgba(60, 60, 67, 0.7);
  --label-tertiary: rgba(60, 60, 67, 0.3);

  --accent-link: #0066cc;
}

.theme-dark {
  --background-primary: #000000;
  --background-secondary: #1d1e1f;

  --label-primary: #ffffff;
  --label-secondary: rgba(235, 235, 245, 0.7);
  --label-tertiary: rgba(235, 235, 245, 0.3);

  --accent-link: #2997ff;
}


/* ── Reset ───────────────────────────────────────────────── */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: var(--background-secondary);
  color: var(--label-primary);
  font-family: var(--font-family-system);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

body {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--background-secondary);
  color: var(--label-primary);
  font-family: var(--font-family-system);
}

body.theme-dark {
  background: var(--background-primary);
  color: var(--label-primary);
}

.theme-dark {
  color-scheme: dark;
}

:root:has(body.theme-dark) {
  --background-primary: #000000;
  --background-secondary: #1d1e1f;
}

html:has(body.theme-dark) {
  background: var(--background-primary);
  color-scheme: dark;
}

main {
  width: 100%;
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ── Navigation ──────────────────────────────────────────── */

.nav {
  width: 100%;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: transparent;
}

.nav-link {
  min-height: 34px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fbfbff;
  color: var(--label-primary);
  box-shadow:
    inset 0 0 0 1px #ffffff,
    0 0 20px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.nav-link:hover {
  background: #e5e5ea;
  box-shadow: none;
}

.nav-link.is-selected,
.nav-link[aria-current="page"] {
  background: var(--label-primary);
  color: var(--background-primary);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.theme-dark .nav-link {
  background: var(--background-secondary);
  color: var(--label-primary);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(0, 0, 0, 0.05);
}

.theme-dark .nav-link:hover {
  background:
    linear-gradient(rgba(235, 235, 245, 0.12), rgba(235, 235, 245, 0.12)),
    var(--background-secondary);
  box-shadow: none;
}

.theme-dark .nav-link.is-selected,
.theme-dark .nav-link[aria-current="page"] {
  background: #fbfbff;
  color: var(--background-secondary);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}


/* ── Layout ──────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
blockquote,
figure {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.vstack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.section {
  width: 100%;
  padding: 160px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--background-primary);
  overflow-x: clip;
}

.first-section {
  padding-top: 0;
  padding-bottom: 120px;
  gap: 48px;
  background: var(--background-secondary);
}

.theme-dark .first-section {
  background: var(--background-primary);
}

.section-secondary {
  background: var(--background-secondary);
}

.view {
  width: min(87.5vw, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-view {
  gap: 12px;
}

.text-center {
  text-align: center;
}


/* ── Typography ──────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--label-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0.007em;
  text-wrap: balance;
}

.first-section .eyebrow {
  margin-bottom: -4px;
}

.eyebrow-overview,
.eyebrow-shelf,
.eyebrow-indecision,
.eyebrow-dietary {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow-overview {
  background-image: linear-gradient(180deg, #343539, #525357);
}

.eyebrow-shelf {
  background-image: linear-gradient(90deg, #4587cc, #316ecc);
}

.eyebrow-indecision {
  background-image: linear-gradient(160deg, #ec8239 0%, #e64f1c 100%);
}

.eyebrow-dietary {
  background-image: linear-gradient(90deg, #008d00, #47ac00);
}

.headline {
  color: var(--label-primary);
  font-size: 64px;
  font-weight: 600;
  line-height: 68px;
  letter-spacing: 0;
  text-wrap: balance;
}

.overview .headline {
  max-width: none;
}

.nasa .headline {
  font-weight: 400;
  max-width: 640px;
}


/* ── Project Heroes ──────────────────────────────────────── */

.project-hero {
  width: min(1406px, calc(100vw - 48px));
}

.nasa-hero {
  aspect-ratio: 1406 / 609;
  margin-top: 12px;
  position: relative;
  overflow: visible;
  animation: nasaHeroReveal 1800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: 88% 69%;
}

.nasa-hero-stack {
  position: absolute;
  inset: 0;
}

.nasa-hero-image {
  position: absolute;
  max-width: none;
  object-fit: contain;
  transform-origin: center;
  will-change: transform, opacity;
}

.nasa-hero-image-1 {
  --nasa-hero-image-1-left: 0;
  --nasa-hero-image-1-top: -9.72%;
  left: var(--nasa-hero-image-1-left);
  top: var(--nasa-hero-image-1-top);
  width: 73.06%;
  height: 109.67%;
  animation: nasaHeroComputerZoom 2800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 1;
}

.nasa-hero-image-2 {
  left: 43.23%;
  top: 19.3%;
  width: 48.9%;
  height: 80.39%;
  animation: nasaHeroDeviceSweep 1300ms cubic-bezier(0.16, 1, 0.3, 1) 1180ms both;
  z-index: 2;
}

.nasa-hero-image-3 {
  left: 85.21%;
  top: 37.9589%;
  width: 13.08%;
  height: 61.74%;
  animation: nasaHeroDeviceSweep 1250ms cubic-bezier(0.16, 1, 0.3, 1) 1280ms both;
  z-index: 3;
}

.shelf {
  overflow: hidden;
}

.shelf .text-view,
.shelf-hero-image {
  will-change: transform, opacity;
}

.shelf-hero {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.shelf-hero-image {
  width: auto;
  height: min(1000px, calc(100vh - 48px));
  margin-top: 48px;
  max-width: none;
  object-fit: contain;
}

.body-copy.shelf-intro-copy {
  max-width: 680px;
  align-self: center;
  text-align: center;
}

.shelf-intro-copy span {
  color: var(--label-primary);
}


/* ── Shelf Items ─────────────────────────────────────────── */

.shelf-items-section {
  background: var(--background-primary);
}

.shelf-items-view {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 68px;
  width: min(87.5vw, 980px);
}

.shelf-items-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  flex: 0 0 540px;
}

.shelf-item-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  list-style: none;
}

.shelf-item-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  color: var(--label-secondary);
  transition: color 250ms ease;
  cursor: pointer;
}

.shelf-item-row.is-selected {
  color: var(--label-primary);
}

.shelf-item-word {
  font-size: 76px;
  font-weight: 600;
  line-height: 80px;
  letter-spacing: 0;
}

.shelf-item-icon {
  display: block;
  flex: 0 0 auto;
  max-width: none;
  opacity: 0.5;
  transition: opacity 250ms ease;
}

.shelf-item-row.is-selected .shelf-item-icon {
  opacity: 1;
}

.shelf-item-row[data-index="1"].is-selected .shelf-item-icon {
  filter: drop-shadow(2px 4px 12px rgba(0, 0, 0, 0.08));
}

.shelf-items-tagline {
  color: var(--label-primary);
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 0.007em;
  margin-bottom: 20px;
}

.shelf-items-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  flex: 0 0 372px;
}

.shelf-gallery-frame {
  position: relative;
  width: 372px;
  height: 760px;
  border-radius: 40px;
}

.shelf-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  transform-origin: center center;
  opacity: var(--shelf-img-opacity, 0);
  transform: translateX(var(--shelf-img-x, 0px)) scale(var(--shelf-img-scale, 0.92));
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 600ms ease;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .shelf-gallery-img {
    transition: none;
  }
}

.shelf-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}


/* ── Shelf — Style ───────────────────────────────────────── */

.shelf-style-section {
  gap: 64px;
  padding-bottom: 240px;
  background: linear-gradient(to bottom, var(--background-primary) 30%, var(--background-secondary) 100%);
}

.shelf-style-view {
  align-items: flex-start;
  gap: 24px;
}

.shelf-style-headline {
  max-width: 560px;
}

.body-copy.shelf-style-copy {
  max-width: 840px;
}

.shelf-style-images {
  width: 100%;
  max-width: 1280px;
  align-self: center;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.shelf-style-img {
  position: relative;
  width: 340px;
  height: 695px;
  flex: 0 0 340px;
  max-width: none;
  object-fit: cover;
}

.shelf-style-img + .shelf-style-img {
  margin-left: -120px;
}

/* Phones 1–4 start stacked behind phone 5 (anchor); each step is 220px (340 − 120 overlap) */
.shelf-style-img:nth-child(1) { z-index: 1; transform: translateX(880px);  --reveal-x:  880px; }
.shelf-style-img:nth-child(2) { z-index: 2; transform: translateX(660px);  --reveal-x:  660px; }
.shelf-style-img:nth-child(3) { z-index: 3; transform: translateX(440px);  --reveal-x:  440px; }
.shelf-style-img:nth-child(4) { z-index: 4; transform: translateX(220px);  --reveal-x:  220px; }
.shelf-style-img:nth-child(5) { z-index: 5; }

@keyframes styleReveal {
  from { transform: translateX(var(--reveal-x, 0)); }
  to   { transform: translateX(0); }
}

/* Phone 5 anchors; 4 slides first, then 3, 2, 1 */
.shelf-style-images.is-visible .shelf-style-img:nth-child(4) {
  animation: styleReveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) 0ms both;
}
.shelf-style-images.is-visible .shelf-style-img:nth-child(3) {
  animation: styleReveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}
.shelf-style-images.is-visible .shelf-style-img:nth-child(2) {
  animation: styleReveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}
.shelf-style-images.is-visible .shelf-style-img:nth-child(1) {
  animation: styleReveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
}

@media (prefers-reduced-motion: reduce) {
  .shelf-style-img {
    transform: none !important;
    animation: none !important;
  }
}

/* ── Shelf — Devices ─────────────────────────────────────── */

.shelf-devices-outer {
  background: var(--background-primary);
}

.shelf-devices-section {
  position: relative;
  gap: 64px;
  max-width: 1780px;
  margin: 0 auto;
  padding: 80px 0;
  background: var(--background-secondary);
  overflow: hidden;
  transition: border-radius 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1780px) {
  .shelf-devices-section.is-vision {
    border-radius: 36px;
  }
}

.shelf-devices-env-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/Shelf/environment-1.avif');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.shelf-devices-section.is-vision .shelf-devices-env-bg {
  opacity: 1;
}

.shelf-devices-text-view,
.shelf-devices-scroll-wrapper,
.shelf-devices-segmented {
  position: relative;
  z-index: 1;
}

.segmented-control.shelf-devices-segmented {
  max-width: 480px;
  margin-top: -42px;
}

.shelf-devices-text-view {
  align-items: flex-start;
  padding: 0 24px;
}

.body-copy.shelf-devices-copy {
  max-width: 640px;
  transition: color 600ms ease;
}

.shelf-devices-copy span {
  color: var(--label-primary);
  transition: color 600ms ease;
}

.shelf-devices-section.is-vision .body-copy.shelf-devices-copy {
  color: rgba(235, 235, 245, 0.7);
}

.shelf-devices-section.is-vision .shelf-devices-copy span {
  color: #ffffff;
}

/* Scroll gallery */
.shelf-devices-scroll-wrapper {
  width: 100%;
}

.shelf-devices-scroll {
  position: relative;
  overflow: hidden;
  height: 800px;
  width: 100%;
}

.shelf-devices-item {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.shelf-devices-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* iPad stacked images */
.shelf-ipad-stack {
  position: relative;
  width: 1067px;
  height: 760px;
  flex-shrink: 0;
}

.shelf-ipad-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  transition: opacity 800ms linear;
}

/* Replay button */
.shelf-ipad-replay {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 16px;
  margin-right: 34px;
  align-self: flex-end;
  padding: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  color: var(--label-secondary);
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: none;
  transition: color 400ms ease, opacity 400ms ease;
}

.shelf-ipad-replay svg {
  display: inline-block;
  flex-shrink: 0;
  max-width: none;
  position: relative;
  top: 1px;
}

/* Mac and Vision Pro images */
.shelf-devices-img {
  max-height: 798px;
  max-width: 100%;
  object-fit: contain;
  object-position: top center;
}


.shelf-devices-item[data-device="mac"] .shelf-devices-img {
  width: 1242px;
  height: 760px;
  min-width: 1242px;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* Devices segmented control */
.shelf-devices-segmented .segmented-track {
  background: #ffffff;
  overflow: hidden;
  transition: background 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.shelf-devices-segmented .segmented-indicator {
  background: #ededf0;
  transition:
    transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
    width 350ms cubic-bezier(0.16, 1, 0.3, 1),
    background 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.shelf-devices-segmented .segmented-button {
  transition: color 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.shelf-devices-section.is-vision .shelf-devices-segmented .segmented-track {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shelf-devices-section.is-vision .shelf-devices-segmented .segmented-indicator {
  background: rgba(235, 235, 245, 0.3);
}

.shelf-devices-section.is-vision .shelf-devices-segmented .segmented-button {
  color: rgba(235, 235, 245, 0.7);
}

.shelf-devices-section.is-vision .shelf-devices-segmented .segmented-button.is-selected {
  color: rgba(235, 235, 245, 1);
}

@media (prefers-reduced-motion: reduce) {
  .shelf-devices-env-bg,
  .shelf-ipad-layer,
  .shelf-devices-item {
    transition: none;
  }
}


/* ── Shelf — Spaces & Rooms ──────────────────────────────── */

.shelf-spaces-section {
  gap: 64px;
  background: var(--background-secondary);
}

.shelf-spaces-headline {
  max-width: 480px;
}

.shelf-spaces-hstack {
  display: flex;
  align-items: center;
  width: min(980px, calc(100vw - 48px));
}

.shelf-spaces-side {
  flex: 1;
  max-width: 280px;
  display: flex;
  align-items: center;
}

.shelf-spaces-side-prev {
  justify-content: flex-end;
  padding-right: 22px;
}

.shelf-spaces-side-next {
  justify-content: flex-start;
  padding-left: 22px;
}

.shelf-spaces-side .gallery-button {
  width: 36px;
  height: 64px;
  margin-bottom: 20px;
  background: #FFF;
}

.shelf-spaces-side .gallery-button:hover:not(:disabled) {
  background: #ededf0;
}

.shelf-spaces-side .gallery-button svg {
  transform: translateX(1px);
}

.shelf-spaces-side .gallery-button-previous svg {
  transform: translateX(-1px) rotate(180deg);
}

.shelf-spaces-image-group {
  position: relative;
  width: 420px;
  height: 859px;
  flex: 0 0 420px;
  overflow: hidden;
}

.shelf-spaces-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 859px;
  background-size: cover;
  background-position: center;
  transition: opacity 400ms ease;
}

.shelf-spaces-items-clip {
  position: absolute;
  left: 22.3px;
  top: 94.25px;
  width: 375.38px;
  height: 638.7px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  z-index: 3;
}

.shelf-spaces-items-clip::-webkit-scrollbar {
  display: none;
}

.shelf-spaces-items-row {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.shelf-spaces-item {
  width: 375.38px;
  height: 638.7px;
  flex: 0 0 375.38px;
  max-width: none;
  object-fit: cover;
  scroll-snap-align: start;
}

.shelf-spaces-darken {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 859px;
  max-width: none;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.shelf-spaces-sheet-clip {
  position: absolute;
  left: 22.3px;
  top: 21.5px;
  width: 375.38px;
  height: 816.03px;
  border-radius: 58px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.shelf-spaces-image-group.is-room .shelf-spaces-items-clip {
  z-index: 1;
}

.shelf-spaces-image-group.is-room .shelf-spaces-sheet-clip {
  z-index: 3;
  pointer-events: auto;
}

.shelf-spaces-sheet-img {
  position: absolute;
  left: 0;
  top: 57.8px;
  width: 375.38px;
  height: 758.23px;
  max-width: none;
  object-fit: cover;
  border-radius: 36px;
  transform: translateY(100%);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  box-shadow: 0 15px 75px 0 rgba(0, 0, 0, 0.3);
}

.shelf-spaces-sheet-clip.is-room .shelf-spaces-sheet-img {
  transform: translateY(0);
}

.shelf-spaces-controls-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: -42px;
}

.segmented-control.shelf-spaces-segmented {
  max-width: 280px;
}

.shelf-spaces-segmented .segmented-track {
  background: #FFF;
  overflow: hidden;
}

.shelf-spaces-segmented .segmented-indicator {
  background: #ededf0;
}

.shelf-spaces-caption {
  max-width: 440px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .shelf-spaces-bg-img,
  .shelf-spaces-darken,
  .shelf-spaces-sheet-img {
    transition: none;
  }
}


.indecision {
  overflow: hidden;
}

.indecision.first-section {
  padding-bottom: 160px;
}

.indecision.first-section .body-copy {
  max-width: 760px;
}

.indecision.first-section .body-copy span {
  color: var(--label-primary);
}

.indecision-chip {
  padding: 3px 6px;
  background: rgba(197, 58, 0, 0.14);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #C53A00;
}

.indecision-link-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.indecision-inline-link {
  --inline-link-color: var(--accent-link);
}

.indecision-hero {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.indecision-hero-stack {
  aspect-ratio: 590 / 560;
  height: min(668px, calc(100vh - 48px));
  position: relative;
}

.indecision-hero-image {
  width: auto;
  max-width: none;
  position: absolute;
  object-fit: contain;
  will-change: transform, opacity;
}

.indecision-hero-image-1 {
  left: 0.54%;
  top: 0;
  height: 100%;
  z-index: 3;
}

.indecision-hero-image-2 {
  left: 31.9%;
  top: 3.75%;
  height: 92.39%;
  z-index: 2;
}

.indecision-hero-image-3 {
  left: 60.45%;
  top: 7.68%;
  height: 84.5%;
  z-index: 1;
}

.indecision .indecision-hero-image-1 {
  animation: indecisionHeroFan1Quick 1450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.indecision .indecision-hero-image-2 {
  animation: indecisionHeroFan2Quick 1450ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
}

.indecision .indecision-hero-image-3 {
  animation: indecisionHeroFan3Quick 1450ms cubic-bezier(0.16, 1, 0.3, 1) 170ms both;
}

/* ── InDecision — New Decision ───────────────────────────── */

.indecision-new-section {
  gap: 64px;
}

.indecision-new-section .eyebrow,
.indecision-oc-section .eyebrow {
  width: 100%;
  max-width: 840px;
  justify-content: left;
}

.indecision-new-headline,
.indecision-oc-headline,
.indecision-bp-headline,
.indecision-new-body {
  width: 100%;
  max-width: 840px;
}

.indecision-new-image-view {
  position: relative;
  width: 980px;
  height: 674px;
}

.indecision-new-img {
  position: absolute;
  max-width: none;
  opacity: 0;
  /* Exit timing — used when is-revealed is removed */
  transition: opacity 650ms ease-in, transform 650ms ease-in;
}

.indecision-new-img-1 {
  left: -24.5px;
  top: 136.46px;
  width: 255.83px;
  height: 523.02px;
  z-index: 1;
  transform: translateX(-48px);
}

.indecision-new-img-2 {
  left: -14.91px;
  top: -49.96px;
  width: 1110.67px;
  height: 724.35px;
  z-index: 0;
  transform: translateX(72px);
}

/* Reveal — transition props on this state apply when is-revealed is added */
.indecision-new-section.is-revealed .indecision-new-img-2 {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1600ms cubic-bezier(0.25, 1, 0.4, 1) 60ms,
              transform 1600ms cubic-bezier(0.25, 1, 0.4, 1) 60ms;
}
.indecision-new-section.is-revealed .indecision-new-img-1 {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1600ms cubic-bezier(0.25, 1, 0.4, 1) 280ms,
              transform 1600ms cubic-bezier(0.25, 1, 0.4, 1) 280ms;
}

@media (prefers-reduced-motion: reduce) {
  .indecision-new-img-1,
  .indecision-new-img-2 {
    animation: none;
    opacity: 1;
  }
}

.indecision-new-body span {
  color: var(--label-primary);
}


/* ── InDecision — Options & Criteria ─────────────────────── */

.indecision-oc-section {
  gap: 64px;
  background: var(--background-secondary);
}

.indecision-oc-headline {
  width: 100%;
  max-width: 840px;
}

.indecision-oc-imgs {
  position: relative;
  width: 1080px;
  height: 769px;
  flex-shrink: 0;
}

.indecision-oc-imgs .image-frame-img {
  width: 1080px;
  height: 769px;
}

.indecision-oc-section .image-viewer,
.indecision-bp-section .image-viewer {
  gap: 22px;
}

.indecision-oc-section .viewer-caption,
.indecision-bp-section .viewer-caption {
  max-width: 580px;
}

.indecision-oc-section .segmented-track,
.indecision-bp-section .segmented-track {
  background: #fff;
  overflow: hidden;
}

.indecision-oc-section .segmented-indicator,
.indecision-bp-section .segmented-indicator {
  background: #ededf0;
}

.indecision-bp-section {
  gap: 64px;
  background: linear-gradient(to bottom, var(--background-primary), var(--background-secondary) 60%);
}


.indecision-showcase-section {
  padding-bottom: 0;
  gap: 64px;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--background-primary), var(--background-secondary));
}

.indecision-showcase-headline {
  max-width: 740px;
}

.indecision-showcase-frame {
  width: 840px;
  height: 1040px;
  overflow: hidden;
  flex-shrink: 0;
}

.indecision-showcase-img {
  display: block;
  width: 840px;
  height: 1180px;
  max-width: none;
}

.indecision-showcase-section .indecision-showcase-frame {
  opacity: 0;
  transform: scale(0.88);
  transform-origin: bottom center;
  transition: opacity 650ms ease-in, transform 650ms ease-in;
}

.indecision-showcase-section.is-revealed .indecision-showcase-frame {
  opacity: 1;
  transform: scale(1);
  transition: opacity 2000ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 2000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Behind the Design — shared layout ──────────────────── */

.nasa-btd-section,
.indecision-btd-section,
.shelf-btd-section,
.dietary-btd-section {
  gap: 80px;
  padding-top: 160px;
  padding-bottom: 120px;
}

.nasa-btd-copy,
.indecision-btd-copy,
.shelf-btd-copy,
.dietary-btd-copy {
  width: min(1260px, 87.5vw);
  align-self: center;
}

.indecision-btd-section {
  background: var(--background-primary);
}

.indecision-btd-gallery {
  --poster-last-item-width: 372px;
}

.dietary {
  overflow: hidden;
}

.dietary-hero {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.dietary-hero-stack {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(546px, calc(100vh - 48px));
}

.dietary-hero-image {
  width: auto;
  height: 100%;
  max-width: none;
  flex: 0 0 auto;
  position: relative;
  object-fit: contain;
  will-change: transform;
}

.dietary-hero-image + .dietary-hero-image {
  margin-left: -236px;
}

.dietary-hero-image-1 {
  z-index: 1;
}

.dietary-hero-image-2 {
  z-index: 2;
}

.dietary-hero-image-3 {
  z-index: 3;
}

.dietary-hero-image-4 {
  z-index: 4;
}

.dietary-hero-image-5 {
  z-index: 5;
}

.dietary-hero-image-6 {
  z-index: 6;
}

.dietary-hero-image-7 {
  z-index: 7;
}

.dietary .dietary-hero-image {
  animation: dietaryHeroCascade 1500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dietary .dietary-hero-image-2 {
  animation-delay: 70ms;
}

.dietary .dietary-hero-image-3 {
  animation-delay: 140ms;
}

.dietary .dietary-hero-image-4 {
  animation-delay: 210ms;
}

.dietary .dietary-hero-image-5 {
  animation-delay: 280ms;
}

.dietary .dietary-hero-image-6 {
  animation-delay: 350ms;
}

.dietary .dietary-hero-image-7 {
  animation-delay: 420ms;
}


/* ── Dietary Sensing — Design ────────────────────────────── */

.dietary-design-section {
  gap: 64px;
  padding-bottom: 0;
  background: linear-gradient(to bottom, var(--background-primary), var(--background-secondary));
}

.dietary-design-section .text-view {
  align-items: flex-start;
}


/* ── Dietary Sensing — Trio ──────────────────────────────── */

.dietary-trio-section {
  background: var(--background-primary);
  padding-top: 240px;
  gap: 250px;
}

.dietary-trio-row {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.dietary-trio-row-right {
  justify-content: center;
}

.dietary-trio-copy {
  width: 385px;
  flex-shrink: 0;
}

.dietary-trio-copy .body-copy {
  max-width: none;
  padding-top: 0;
}

.dietary-trio-copy .body-copy span {
  color: var(--label-primary);
}

.dietary-trio-frame {
  width: 426px;
  height: 654px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.dietary-trio-img {
  position: absolute;
  left: -201px;
  top: -71px;
  width: 832px;
  height: 832px;
  max-width: none;
}


.dietary-trio-copy {
  opacity: 0;
  will-change: opacity;
  transition: opacity 500ms ease-in;
}

.dietary-trio-frame {
  opacity: 0;
  transform: scale(0.88) translateY(32px);
  transform-origin: center top;
  will-change: transform, opacity;
  transition: opacity 500ms ease-in, transform 500ms ease-in;
}

.dietary-trio-row.is-revealed .dietary-trio-copy {
  opacity: 1;
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.dietary-trio-row.is-revealed .dietary-trio-frame {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 1300ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .dietary-trio-copy,
  .dietary-trio-frame {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .dietary-duo-img-front,
  .dietary-duo-img-back {
    animation: none;
  }
}

/* ── Dietary — Duo Section ───────────────────────────────── */

.dietary-duo-section {
  padding-top: 200px;
  padding-bottom: 200px;
  gap: 80px;
  background: var(--background-secondary);
}

.dietary-duo-frame {
  width: 724px;
  height: 712px;
  position: relative;
  flex-shrink: 0;
}

.dietary-duo-img {
  position: absolute;
  max-width: none;
}

.dietary-duo-img-back {
  left: 45px;
  top: -71px;
  width: 906px;
  height: 906px;
  z-index: 1;
}

.dietary-duo-img-front {
  left: -239px;
  top: -67.5px;
  width: 899px;
  height: 899px;
  z-index: 2;
}

.dietary-duo-copy {
  max-width: 680px;
  padding-top: 0;
}

.dietary-duo-copy span {
  color: var(--label-primary);
}


/* ── Duo scroll-driven keyframes ─────────────────────────── */

@keyframes duo-converge-front {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes duo-converge-back {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes duo-rise-back {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes duo-rise-front {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes duo-scatter-front {
  from { opacity: 0; transform: scale(0.82) translateX(-50px); }
  to   { opacity: 1; transform: scale(1) translateX(0); }
}

@keyframes duo-scatter-back {
  from { opacity: 0; transform: scale(0.82) translateX(50px); }
  to   { opacity: 1; transform: scale(1) translateX(0); }
}


@supports (animation-timeline: view()) {

  .dietary-duo-frame {
    view-timeline: --duo-frame block;
  }

  /* Option 1: Converge — glide toward each other from opposite sides */
  [data-duo-anim="1"] .dietary-duo-img-front {
    animation: duo-converge-front linear both;
    animation-timeline: --duo-frame;
    animation-range: entry 0% cover 45%;
  }

  [data-duo-anim="1"] .dietary-duo-img-back {
    animation: duo-converge-back linear both;
    animation-timeline: --duo-frame;
    animation-range: entry 10% cover 55%;
  }

  /* Option 2: Rise Together — float up, foreground blooms in with depth delay */
  [data-duo-anim="2"] .dietary-duo-img-back {
    animation: duo-rise-back linear both;
    animation-timeline: --duo-frame;
    animation-range: entry 0% cover 45%;
  }

  [data-duo-anim="2"] .dietary-duo-img-front {
    animation: duo-rise-front linear both;
    animation-timeline: --duo-frame;
    animation-range: entry 15% cover 55%;
  }

  /* Option 3: Scatter → Land — zoom in from spread positions */
  [data-duo-anim="3"] .dietary-duo-img-front {
    animation: duo-scatter-front linear both;
    animation-timeline: --duo-frame;
    animation-range: entry 0% cover 45%;
  }

  [data-duo-anim="3"] .dietary-duo-img-back {
    animation: duo-scatter-back linear both;
    animation-timeline: --duo-frame;
    animation-range: entry 10% cover 50%;
  }

}


.dietary-design-frame {
  width: 980px;
  height: 834px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.dietary-design-img {
  position: absolute;
  left: -127px;
  top: 0;
  width: 1346px;
  height: 994px;
  max-width: none;
}


.shelf .text-view {
  animation: shelfCopyZoomSettle 1600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.shelf .shelf-hero-image {
  animation: shelfHeroSoftRise 1600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* ── Dietary — Behind the Design ────────────────────────── */

.dietary-btd-section {
  background: var(--background-primary);
}

.dietary-btd-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dietary-btd-gallery {
  --poster-last-item-width: 696px;
}


/* ── Animations ──────────────────────────────────────────── */

@keyframes nasaHeroReveal {
  from {
    opacity: 0;
  }

  24% {
    opacity: 1;
  }

  to {
    opacity: 1;
  }
}

@keyframes nasaHeroComputerZoom {
  from {
    transform: translate(18.44%, 4.45%) scale(3.25);
    opacity: 1;
  }

  36% {
    transform: translate(18.44%, 0) scale(1);
    opacity: 1;
  }

  to {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes nasaHeroDeviceSweep {
  from {
    opacity: 0;
    transform: translateX(38vw) scale(1);
    filter: blur(8px);
  }

  62% {
    opacity: 1;
    filter: blur(0);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes shelfCopyZoomSettle {
  from {
    opacity: 0;
    transform: translateY(150px) scale(1.2);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shelfHeroSoftRise {
  from {
    opacity: 0;
    transform: translateY(180px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes indecisionHeroFan1Quick {
  from {
    transform: translateX(56.5%) scale(1);
  }

  18% {
    transform: translateX(56.5%) scale(1);
  }

  to {
    transform: translateX(0) scale(1);
  }
}

@keyframes indecisionHeroFan2Quick {
  from {
    transform: translateX(-7.8%) scale(1);
  }

  10% {
    transform: translateX(-7.8%) scale(1);
  }

  to {
    transform: translateX(0) scale(1);
  }
}

@keyframes indecisionHeroFan3Quick {
  from {
    transform: translateX(-76.6%) scale(1);
  }

  10% {
    transform: translateX(-76.6%) scale(1);
  }

  to {
    transform: translateX(0) scale(1);
  }
}

@keyframes dietaryHeroCascade {
  from {
    opacity: 0;
    transform: translateX(80px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nasa-hero,
  .nasa-hero-image-1,
  .nasa-hero-image-2,
  .nasa-hero-image-3,
  .shelf .text-view,
  .shelf-hero-image,
  .indecision-hero-image-2,
  .indecision-hero-image-3,
  .dietary-hero-image-1,
  .dietary-hero-image-2,
  .dietary-hero-image-3,
  .dietary-hero-image-4,
  .dietary-hero-image-5,
  .dietary-hero-image-6,
  .dietary-hero-image-7 {
    animation: none;
  }
}

.body-copy {
  max-width: 740px;
  padding-top: 10px;
  color: var(--label-secondary);
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0.007em;
  text-wrap: pretty;
}

.overview .body-copy {
  max-width: 840px;
}


/* ── Overview Gallery ────────────────────────────────────── */

.gallery {
  --gallery-item-width: calc(var(--gallery-frame-width) * 0.778);
  --gallery-frame-width: min(1260px, 87.5vw);
  --gallery-frame-gutter: calc((100vw - var(--gallery-frame-width)) / 2);
  width: var(--gallery-frame-width);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.overview-gallery {
  margin-top: 72px;
}

.scroll-container {
  width: 100vw;
  margin-inline: calc((var(--gallery-frame-width) - 100vw) / 2);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: var(--gallery-frame-gutter);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.item-container {
  width: max-content;
  padding-left: var(--gallery-frame-gutter);
  padding-right: calc(var(--gallery-frame-gutter) + (var(--gallery-frame-width) - var(--gallery-item-width)));
  display: flex;
  align-items: flex-start;
  gap: 24px;
  list-style: none;
}

.gallery-item {
  width: var(--gallery-item-width);
  flex: 0 0 var(--gallery-item-width);
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-snap-align: start;
}

.gallery-card {
  width: 100%;
  aspect-ratio: 980 / 680;
  display: block;
  border-radius: 28px;
  background: var(--background-primary);
  outline-offset: 4px;
}

.gallery-card-nasa {
  --nasa-gallery-padding: 60px;
  position: relative;
  overflow: hidden;
  background: #000000;
}

.gallery-card-nasa-stack {
  aspect-ratio: 1021 / 506;
  height: calc(100% - (var(--nasa-gallery-padding) * 2));
  position: absolute;
  top: 50%;
  right: var(--nasa-gallery-padding);
  transform: translateY(-50%);
}

.gallery-card-nasa-image {
  position: absolute;
  max-width: none;
  object-fit: contain;
}

.gallery-card-nasa-image-1 {
  left: 0;
  top: -9.72%;
  width: 83.6%;
  height: 109.68%;
  z-index: 1;
}

.gallery-card-nasa-image-2 {
  left: 37.03%;
  top: 19.3%;
  width: 55.95%;
  height: 80.39%;
  z-index: 2;
}

.gallery-card-nasa-image-3 {
  left: 85.04%;
  top: 37.96%;
  width: 14.97%;
  height: 61.75%;
  z-index: 3;
}

.gallery-card-shelf {
  --shelf-gallery-padding: 60px;
  --shelf-gallery-overlap: 64px;
  --shelf-gallery-overlap-resting: -10px;
  --shelf-gallery-overlap-current: var(--shelf-gallery-overlap);
  --shelf-gallery-drift: 0px;
  position: relative;
  overflow: hidden;
  background: var(--background-primary);
}

.gallery-card-shelf-stack {
  position: absolute;
  inset: var(--shelf-gallery-padding);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card-shelf-image {
  width: auto;
  height: 100%;
  max-width: none;
  flex: 0 0 auto;
  position: relative;
  object-fit: contain;
}

.gallery-card-shelf-image + .gallery-card-shelf-image {
  margin-left: calc(var(--shelf-gallery-overlap-current) * -1);
}

.gallery-card-shelf-image:nth-child(1) {
  z-index: 1;
  transform: translateX(calc(var(--shelf-gallery-drift) * -1));
}

.gallery-card-shelf-image:nth-child(2) {
  z-index: 2;
}

.gallery-card-shelf-image:nth-child(3) {
  z-index: 3;
  transform: translateX(var(--shelf-gallery-drift));
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card-shelf {
    --shelf-gallery-overlap-current: var(--shelf-gallery-overlap);
    --shelf-gallery-drift: 0px;
  }
}

.gallery-card-indecision {
  --indecision-gallery-padding-block: 60px;
  --indecision-image-1-left: 0.54%;
  --indecision-image-2-left: 31.9%;
  --indecision-image-3-left: 60.45%;
  position: relative;
  overflow: hidden;
  background: var(--background-primary);
}

.gallery-card-indecision-stack {
  aspect-ratio: 590 / 560;
  height: calc(100% - (var(--indecision-gallery-padding-block) * 2));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gallery-card-indecision-image {
  width: auto;
  max-width: none;
  position: absolute;
  object-fit: contain;
}

.gallery-card-indecision-image-1 {
  left: var(--indecision-image-1-left);
  top: 0;
  height: 100%;
  z-index: 3;
}

.gallery-card-indecision-image-2 {
  left: var(--indecision-image-2-left);
  top: 3.75%;
  height: 92.39%;
  z-index: 2;
}

.gallery-card-indecision-image-3 {
  left: var(--indecision-image-3-left);
  top: 7.68%;
  height: 84.5%;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card-indecision {
    --indecision-image-1-left: 0.54%;
    --indecision-image-2-left: 31.9%;
    --indecision-image-3-left: 60.45%;
  }
}

.gallery-card-dietary {
  --dietary-gallery-padding-block: 60px;
  --dietary-gallery-overlap: 340px;
  --dietary-gallery-overlap-resting: 260px;
  --dietary-gallery-overlap-current: var(--dietary-gallery-overlap);
  position: relative;
  overflow: hidden;
  background: var(--background-primary);
}

.gallery-card-dietary-stack {
  position: absolute;
  inset: var(--dietary-gallery-padding-block) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.gallery-card-dietary-image {
  width: auto;
  height: 100%;
  max-width: none;
  flex: 0 0 auto;
  position: relative;
  object-fit: contain;
}

.gallery-card-dietary-image + .gallery-card-dietary-image {
  margin-left: calc(var(--dietary-gallery-overlap-current) * -1);
}

.gallery-card-dietary-image:nth-child(1) {
  z-index: 1;
}

.gallery-card-dietary-image:nth-child(2) {
  z-index: 2;
}

.gallery-card-dietary-image:nth-child(3) {
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card-dietary {
    --dietary-gallery-overlap-current: var(--dietary-gallery-overlap);
  }
}

.gallery-meta {
  padding: 24px 17px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.gallery-caption {
  max-width: 680px;
  font-size: 21px;
  font-weight: 400;
  line-height: 29px;
  letter-spacing: 0.011em;
}

.gallery-caption span {
  color: var(--label-primary);
  font-weight: 600;
}

.gallery-link {
  flex: 0 0 auto;
  padding: 11px 22px;
  border: 1px solid var(--accent-link);
  border-radius: 999px;
  color: var(--accent-link);
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.gallery-link:hover {
  background: #0071e3;
  color: #ffffff;
}

.gallery-controls {
  margin-top: 48px;
  align-self: flex-end;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.gallery-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.08);
  color: var(--label-secondary);
  cursor: pointer;
}

.gallery-button:hover:not(:disabled) {
  background: rgba(60, 60, 67, 0.14);
}

.gallery-button svg {
  transform: translateX(1px);
}

.gallery-button-previous svg {
  transform: translateX(-1px) rotate(180deg);
}

.gallery-button:active:not(:disabled) {
  opacity: 0.5;
}

.gallery-button:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.theme-dark .gallery-button {
  background: rgba(235, 235, 245, 0.12);
}

.theme-dark .gallery-button:hover:not(:disabled) {
  background: rgba(235, 235, 245, 0.18);
}


/* ── Refinements ─────────────────────────────────────────── */

.refinements-section {
  padding: 120px 24px;
  gap: 80px;
  background: var(--background-primary);
}

.refinements-copy {
  width: var(--gallery-frame-width, min(1260px, calc(100vw - 48px)));
  max-width: min(1260px, 87.5vw);
  align-items: flex-start;
  text-align: left;
}

.refinements-copy .eyebrow {
  margin-bottom: 0;
}

.refinements-copy .headline {
  max-width: 680px;
}

.refinements-copy .body-copy {
  max-width: 840px;
}

/* — Poster Gallery: shared component — */

.poster-gallery .item-container {
  padding-right: var(--gallery-frame-gutter);
}

.poster-gallery .item-container > :last-child {
  margin-right: calc(var(--gallery-frame-width) - var(--poster-item-width));
}

.poster-item {
  width: auto;
  flex: 0 0 auto;
}

.poster-item-small {
  --poster-item-width: 372px;
  width: var(--poster-item-width);
}

.poster-item-medium {
  --poster-item-width: 696px;
  width: var(--poster-item-width);
}

.poster-card {
  width: 100%;
  height: 450px;
  border-radius: 28px;
  background-color: var(--background-secondary);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-card-img {
  display: block;
  max-width: 80%;
  height: auto;
}

.poster-caption {
  max-width: 480px;
  padding: 28px 15px 0;
  color: var(--label-primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 0;
  text-wrap: pretty;
}

.poster-caption span {
  font-weight: 600;
}

/* — Refinements specifics — */

.refinements-card-side-1 {
  background-image: url("assets/images/Overview/side-1.avif");
}

.refinements-card-side-2 {
  background-image: url("assets/images/Overview/side-2.avif");
}

.refinements-card-side-3 {
  background-image: url("assets/images/Overview/side-3.avif");
}

.refinements-card-side-4 {
  background-color: #000000;
  background-image: url("assets/images/Overview/side-4.avif");
}


/* ── NASA — Anomaly Response ────────────────────────────── */

.nasa-anomaly-section {
  gap: 80px;
}

.anomaly-split {
  width: min(1316px, 100%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 80px;
}

.anomaly-image-group {
  position: relative;
  width: 796px;
  height: 798px;
  flex: 0 0 796px;
}

.anomaly-img {
  position: absolute;
  max-width: none;
  object-fit: cover;
}

.anomaly-img-1 {
  left: 0;
  top: 0;
  width: 566.67px;
  height: 795.74px;
}

.anomaly-img-2 {
  left: 472.91px;
  top: 314.35px;
  width: 235.22px;
  height: 480.89px;
}

.anomaly-img-3 {
  left: 588.61px;
  top: 551.05px;
  width: 273.75px;
  height: 273.75px;
}

/* ── NASA — Anomaly Scroll Reveal ──────────────────────── */

.anomaly-img-1,
.anomaly-img-2,
.anomaly-img-3 {
  opacity: 0;
}

@keyframes anomalyRise {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes anomalyHide {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(48px) scale(0.97);
  }
}

.anomaly-image-group.is-visible .anomaly-img-1 {
  animation: anomalyRise 1300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anomaly-image-group.is-visible .anomaly-img-2 {
  animation: anomalyRise 1300ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.anomaly-image-group.is-visible .anomaly-img-3 {
  animation: anomalyRise 1300ms cubic-bezier(0.16, 1, 0.3, 1) 340ms both;
}

.anomaly-image-group.is-exiting .anomaly-img-1 {
  animation: anomalyHide 550ms cubic-bezier(0.4, 0, 0.6, 1) both;
}

.anomaly-image-group.is-exiting .anomaly-img-2 {
  animation: anomalyHide 550ms cubic-bezier(0.4, 0, 0.6, 1) 120ms both;
}

.anomaly-image-group.is-exiting .anomaly-img-3 {
  animation: anomalyHide 550ms cubic-bezier(0.4, 0, 0.6, 1) 240ms both;
}

@media (prefers-reduced-motion: reduce) {
  .anomaly-img-1,
  .anomaly-img-2,
  .anomaly-img-3 {
    opacity: 1;
  }

  .anomaly-image-group.is-visible .anomaly-img-1,
  .anomaly-image-group.is-visible .anomaly-img-2,
  .anomaly-image-group.is-visible .anomaly-img-3,
  .anomaly-image-group.is-exiting .anomaly-img-1,
  .anomaly-image-group.is-exiting .anomaly-img-2,
  .anomaly-image-group.is-exiting .anomaly-img-3 {
    animation: none;
  }
}

.anomaly-text-stack {
  width: 440px;
  flex: 0 1 440px;
  min-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anomaly-text-stack .body-copy {
  max-width: none;
}

/* ── NASA — Anomaly Gallery ─────────────────────────────── */

.nasa-anomaly-gallery-section {
  padding-top: 0;
}

.anomaly-gallery .item-container {
  gap: 20px;
  padding-right: var(--gallery-frame-gutter);
}

.anomaly-gallery .item-container > :last-child {
  margin-right: calc(var(--gallery-frame-width) - var(--large-gallery-item-width));
}

.anomaly-item {
  width: auto;
  flex: 0 0 auto;
}

.anomaly-item-small {
  --large-gallery-item-width: calc((var(--gallery-frame-width) - 20px) * 0.5);
  width: var(--large-gallery-item-width);
}

.anomaly-item-medium {
  --large-gallery-item-width: calc((var(--gallery-frame-width) - 20px) * 0.67);
  width: var(--large-gallery-item-width);
}

.anomaly-item-large {
  --large-gallery-item-width: var(--gallery-frame-width);
  width: var(--large-gallery-item-width);
}

.anomaly-card {
  width: 100%;
  height: 680px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: var(--background-secondary);
}

.anomaly-card-img {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 80px);
  height: auto;
}

.anomaly-item-small .anomaly-card-img {
  width: 353px;
}

.anomaly-item-medium .anomaly-card-img {
  width: 629px;
}

.anomaly-item-large .anomaly-card-img {
  width: 954px;
}

.anomaly-caption {
  max-width: 760px;
  padding: 24px 15px 0;
  color: var(--label-secondary);
  font-size: 17px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 0;
  text-wrap: pretty;
}

.anomaly-caption span {
  color: var(--label-primary);
}

/* ── NASA — Behind the Design ───────────────────────────── */

.nasa-btd-section {
  background: var(--background-secondary);
}

.nasa-btd-gallery {
  --poster-last-item-width: 372px;
}

.nasa-btd-gallery .poster-card {
  background-color: var(--background-primary);
}

/* ── Shelf — Reflection Gallery ─────────────────────────── */

.shelf-reflection-section {
  padding-top: 240px;
  background: var(--background-secondary);
  gap: 80px;
}

.shelf-reflection-copy {
  width: min(1260px, 87.5vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.shelf-reflection-headline {
  max-width: 680px;
}

.shelf-reflection-gallery .item-container {
  gap: 20px;
  padding-right: var(--gallery-frame-gutter);
}

.shelf-reflection-gallery .item-container > :last-child {
  margin-right: calc(var(--gallery-frame-width) - var(--large-gallery-item-width));
}

.shelf-reflection-item {
  width: auto;
  flex: 0 0 auto;
}

.shelf-reflection-item-small {
  --large-gallery-item-width: calc((var(--gallery-frame-width) - 20px) * 0.5);
  width: var(--large-gallery-item-width);
}

.shelf-reflection-item-medium {
  --large-gallery-item-width: calc((var(--gallery-frame-width) - 20px) * 0.67);
  width: var(--large-gallery-item-width);
}

.shelf-reflection-item-large {
  --large-gallery-item-width: var(--gallery-frame-width);
  width: var(--large-gallery-item-width);
}

.shelf-reflection-card {
  width: 100%;
  height: 680px;
  border-radius: 28px;
  background: var(--background-primary);
  position: relative;
  overflow: hidden;
}

.shelf-reflection-img-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  height: auto;
  max-width: none;
  padding-top: 40px;
}

.shelf-reflection-card-2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shelf-reflection-img-holder {
  position: relative;
  width: 914px;
  height: 519px;
  overflow: visible;
  flex-shrink: 0;
}

.shelf-reflection-img-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 999.92px;
  height: auto;
  max-width: none;
}

.shelf-reflection-card-3 {
  background: url('assets/images/Shelf/reflect-3.avif') center / cover no-repeat;
}

.shelf-reflection-img-4 {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  height: auto;
  max-width: calc(100% - 80px);
}

.shelf-reflection-caption {
  max-width: 760px;
  padding: 24px 15px 0;
  color: var(--label-secondary);
  font-size: 17px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 0;
  text-wrap: pretty;
}

.shelf-reflection-caption span {
  color: var(--label-primary);
}


/* ── Shelf — Mail Gallery ────────────────────────────────── */

.shelf-mail-section {
  background: var(--background-secondary);
  gap: 80px;
}

.shelf-mail-copy {
  width: min(1260px, 87.5vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.shelf-mail-headline {
  max-width: 740px;
}

.shelf-mail-gallery .item-container {
  gap: 20px;
  padding-right: var(--gallery-frame-gutter);
}

.shelf-mail-gallery .item-container > :last-child {
  margin-right: calc(var(--gallery-frame-width) - var(--large-gallery-item-width));
}

.shelf-mail-item {
  width: auto;
  flex: 0 0 auto;
}

.shelf-mail-item-small {
  --large-gallery-item-width: calc((var(--gallery-frame-width) - 20px) * 0.5);
  width: var(--large-gallery-item-width);
}

.shelf-mail-card {
  width: 100%;
  height: 680px;
  border-radius: 28px;
  background: var(--background-primary);
  position: relative;
  overflow: hidden;
}

.shelf-mail-img {
  position: absolute;
  width: 430px;
  height: auto;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 120px);
}

.shelf-mail-img-top {
  top: 60px;
}

.shelf-mail-img-bottom {
  bottom: 60px;
}

.shelf-mail-caption {
  max-width: 760px;
  padding: 24px 15px 0;
  color: var(--label-secondary);
  font-size: 17px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 0;
  text-wrap: pretty;
}

.shelf-mail-caption span {
  color: var(--label-primary);
}


/* ── Shelf — Behind the Design ───────────────────────────── */

.shelf-btd-section {
  background: var(--background-primary);
}

.shelf-btd-gallery {
  --poster-last-item-width: 696px;
}


/* ── Footer ──────────────────────────────────────────────── */

.footer-section {
  background: transparent;
}

.footer-view {
  width: min(87.5vw, 980px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 70px;
}

.footer-name {
  color: var(--label-secondary);
  font-size: 56px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.005em;
}

.overview .footer-name {
  background-image: linear-gradient(180deg, #343539, #525357);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-overview-link {
  color: var(--label-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.022em;
}

.footer-projects-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-projects-label {
  color: var(--label-secondary);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.022em;
}

.footer-project-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-project-link {
  color: var(--label-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0.007em;
  transition: color 160ms ease;
}



/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1068px) {
  .nav-link {
    font-size: 14px;
    line-height: 18px;
  }

  .headline {
    font-size: 56px;
    line-height: 60px;
    letter-spacing: -0.005em;
  }

  .eyebrow {
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0.009em;
  }

  .body-copy {
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0.009em;
  }

  .anomaly-split {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .anomaly-image-group {
    transform: scale(0.8);
    transform-origin: top center;
    margin-inline: calc(796px * -0.1);
    margin-bottom: calc(798px * -0.2);
  }

  .anomaly-text-stack {
    width: min(87.5vw, 1260px);
    flex: 0 0 auto;
    align-items: flex-start;
  }

  .nav {
    flex-shrink: 0;
  }

  .indecision-hero-stack {
    flex-shrink: 0;
  }

  .dietary-hero-stack {
    flex-shrink: 0;
  }

  .shelf-hero-image {
    height: min(740px, calc(100vh - 48px));
  }

  .shelf-spaces-image-group {
    transform: scale(0.85);
    transform-origin: top center;
    margin-inline: calc(420px * -0.075);
    margin-bottom: calc(859px * -0.15);
  }

  .shelf-style-images {
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: calc(695px * -0.15);
  }

  .shelf-items-view {
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: min(87.5vw, 1260px);
  }

  .shelf-items-text-group {
    flex: 0 0 auto;
    width: 100%;
  }

  .shelf-item-word {
    font-size: 56px;
    line-height: 60px;
  }

  .shelf-items-tagline {
    font-size: 28px;
    line-height: 32px;
  }

  .shelf-items-gallery {
    flex: 0 0 auto;
    align-self: flex-start;
    align-items: flex-start;
  }

  .shelf-gallery-frame {
    transform: scale(0.85);
    transform-origin: top left;
    margin-bottom: calc(760px * -0.15);
    margin-right: calc(372px * -0.15);
  }

  .shelf-devices-scroll-wrapper {
    width: 93.75vw;
  }

  .overview-gallery {
    --gallery-item-width: var(--gallery-frame-width);
  }

  .gallery-card {
    height: 628px;
    aspect-ratio: auto;
  }

  .anomaly-card,
  .shelf-reflection-card,
  .shelf-mail-card {
    height: 628px;
  }

  .anomaly-card-img {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .shelf-mail-img-top,
  .shelf-mail-img-bottom {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .split-image {
    height: 520px;
  }

  .split-stack {
    width: 360px;
  }

  .dietary-trio-row {
    gap: 40px;
  }

  .dietary-trio-copy {
    flex-shrink: 1;
    min-width: 0;
  }

  .dietary-trio-frame {
    flex-shrink: 1;
    min-width: 280px;
  }
}

@media (max-width: 734px) {
  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .nav-link {
    font-size: 14px;
    line-height: 18px;
  }

  .gallery-card {
    height: auto;
    aspect-ratio: 980 / 680;
  }

  .view {
    max-width: 420px;
  }

  .headline {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: 0.004em;
  }

  .eyebrow {
    font-size: 21px;
    line-height: 25px;
    letter-spacing: 0.011em;
  }

  .body-copy {
    font-size: 21px;
    line-height: 25px;
    letter-spacing: 0.011em;
  }

  .poster-caption,
  .anomaly-caption,
  .shelf-reflection-caption,
  .shelf-mail-caption {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.016em;
  }

  .indecision-chip {
    font-size: 13px;
    line-height: 18px;
  }

  .anomaly-image-group {
    transform: scale(0.45);
    margin-inline: calc(796px * -0.275);
    margin-bottom: calc(798px * -0.55);
    margin-top: 0;
  }

  .split-view {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .split-image {
    height: 360px;
    width: auto;
  }

  .split-stack {
    width: 100%;
  }

  .dietary-trio-row,
  .dietary-trio-row-right {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
  }

  .dietary-trio-copy {
    width: 100%;
    flex-shrink: 1;
    min-width: 0;
  }

  .dietary-trio-frame {
    width: 100%;
    max-width: 426px;
    height: 380px;
    flex-shrink: 0;
  }
}

@media (max-width: 734px) {
  .gallery {
    --gallery-frame-width: min(420px, 87.5vw);
    --gallery-item-width: var(--gallery-frame-width);
  }

  .refinements-copy {
    width: 100%;
    max-width: 100%;
  }

  .poster-item-small {
    --poster-item-width: 260px;
    width: var(--poster-item-width);
  }

  .poster-item-medium {
    --poster-item-width: var(--gallery-frame-width);
    width: var(--poster-item-width);
  }

  .anomaly-item-small,
  .anomaly-item-medium,
  .anomaly-item-large,
  .shelf-reflection-item-small,
  .shelf-reflection-item-medium,
  .shelf-reflection-item-large,
  .shelf-mail-item-small {
    --large-gallery-item-width: var(--gallery-frame-width);
    width: var(--large-gallery-item-width);
  }

  .poster-card {
    height: auto;
    aspect-ratio: 372 / 450;
  }

  .poster-item-medium .poster-card {
    aspect-ratio: 696 / 450;
  }
}

/* ── NASA — Earth-Independent Operations ────────────────────── */

.nasa-eio-section {
  gap: 64px;
}

.nasa-eio-section .headline {
  max-width: 840px;
}

.nasa-gradient {
  color: transparent;
  background-image: linear-gradient(90deg, #f7f7f7, #676767);
  -webkit-background-clip: text;
  background-clip: text;
}

.split-view {
  width: min(100%, 980px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.split-image {
  height: 859px;
  width: auto;
}

.split-stack {
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 41px;
}

.body-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.body-group .body-copy {
  padding-top: 0;
  max-width: none;
}

.no-break {
  white-space: nowrap;
}


/* ── Mobile Pause ────────────────────────────────────────── */

.mobile-pause {
  display: none;
}

@media (max-width: 734px) {
  .mobile-pause {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--background-secondary);
  }

  .mobile-pause-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 360px;
  }

  .mobile-pause .inline-link {
    color: var(--accent-link);
  }

  .mobile-pause .inline-icon path {
    fill: var(--accent-link);
  }
}

.inline-icon {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: 1px;
  margin-left: 3px;
}

.inline-link {
  color: var(--inline-link-color, var(--accent-link));
  font-size: 21px;
  line-height: 29px;
  letter-spacing: 0.011em;
  font-weight: 600;
  text-decoration: none;
}

/* ── NASA — Situational Awareness ────────────────────────────── */

.nasa-sa-section {
  gap: 120px;
}

.intro-split {
  width: min(87.5vw, 980px);
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.intro-split .headline {
  flex: 1;
}

.intro-split .body-copy {
  flex: 1;
  padding-top: 0;
  max-width: none;
}

.image-viewer {
  width: min(87.5vw, 1260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 41px;
}

.image-frame {
  width: min(1058px, 93.75vw);
  aspect-ratio: 1058 / 702;
  height: auto;
  position: relative;
  overflow: visible;
}

.image-frame-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 111.34%;
  height: 106.45%;
  background-size: cover;
  background-position: center;
  transition: background-image 360ms ease;
}

.segmented-control {
  max-width: 540px;
  width: 100%;
}

.segmented-track {
  position: relative;
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(235, 235, 245, 0.12);
}

.segmented-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: rgba(235, 235, 245, 0.18);
  pointer-events: none;
  transition:
    transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
    width 350ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, width;
}

.segmented-button {
  flex: 1;
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--label-secondary);
  font-family: var(--font-family-system);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms ease;
}

.segmented-button.is-selected {
  color: var(--label-primary);
}

.segmented-button:focus:not(:focus-visible) {
  outline: none;
}

.viewer-caption {
  max-width: 480px;
  color: var(--label-secondary);
  font-size: 21px;
  font-weight: 600;
  line-height: 29px;
  letter-spacing: 0.011em;
  text-align: center;
  text-wrap: pretty;
  transition: opacity 200ms ease, transform 200ms ease, height 200ms ease;
}

.viewer-caption.is-transitioning {
  opacity: 0;
  transform: translateY(4px);
}

/* ── NASA — Gallery ──────────────────────────────────────────── */

.nasa-gallery-copy-section {
  padding-bottom: 80px;
}

.nasa-gallery-section {
  height: 940px;
  padding: 0;
  background: var(--background-secondary);
  overflow: hidden;
  justify-content: center;
}

.nasa-gallery-image {
  width: 100%;
  min-height: 1520px;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}