/* Apple v2: keep data units beside the numbers and reveal the final wish. */
.apple-edition #scarcity .scarcity-model-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: 0 10px;
  min-width: 0;
}

.apple-edition #scarcity .scarcity-model-data h5 {
  grid-column: 1 / -1;
  margin: 0 0 12px;
}

.apple-edition #scarcity .scarcity-model-data .scarcity-number {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 10px;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: clamp(36px, 3.55vw, 64px);
  line-height: 1.1;
  white-space: nowrap;
}

.apple-edition #scarcity .scarcity-model-data .scarcity-unit {
  display: inline;
  flex: 0 0 auto;
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  font-size: clamp(14px, 1.15vw, 20px);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -.025em;
}

.apple-edition #scarcity .scarcity-model-data .scarcity-extra {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.apple-edition #scarcity .scarcity-ai-card {
  gap: clamp(14px, 1.7vw, 24px);
}

.apple-edition #scarcity .scarcity-ai-card > .scarcity-logo {
  width: clamp(60px, 7vw, 115px);
  padding: 18px;
}

.apple-edition #scarcity .scarcity-threshold {
  white-space: nowrap;
  font-size: clamp(13px, 1.1vw, 17px);
}

/* All existing content shares the same grid cell. display:contents brings the
   existing image to the section grid without adding or moving DOM nodes. */
.apple-edition #change {
  --wish-inset: clamp(30px, 5.2vw, 100px);
  --wish-eyebrow-top: 98px;
  --wish-title-top: 145px;
  --wish-original-top: clamp(240px, 28svh, 300px);
  --wish-copy-top: clamp(290px, 37svh, 430px);
  --wish-ending-top: calc(100svh - 100px);
  --grail-unveil: clamp(0, calc((var(--scene-progress, .5) - .2) * 2.7), 1);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  align-items: start;
  align-content: stretch;
  justify-content: stretch;
  height: 190svh;
  min-height: 1050px;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  background: #100e0c;
  color: #f5f5f7;
}

.apple-edition #change::before,
.apple-edition #change::after { display: none; }

.apple-edition #change .wish-layout {
  display: contents;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.apple-edition #change > .eyebrow,
.apple-edition #change > .section-title,
.apple-edition #change > .change-original,
.apple-edition #change .wish-layout > div,
.apple-edition #change > .ending {
  grid-area: 1 / 1;
  position: sticky;
  align-self: start;
  justify-self: start;
  width: calc(100% - var(--wish-inset) * 2);
  max-width: 1320px;
  margin-right: var(--wish-inset);
  margin-left: var(--wish-inset);
  z-index: 3;
}

.apple-edition #change > .eyebrow {
  top: var(--wish-eyebrow-top);
  margin-top: var(--wish-eyebrow-top);
  margin-bottom: 0;
  color: #d0c4b5;
  font-size: 13px;
  text-shadow: 0 2px 16px #0008;
}

.apple-edition #change > .section-title {
  top: var(--wish-title-top);
  margin-top: var(--wish-title-top);
  margin-bottom: 0;
  font-size: clamp(43px, 4.7vw, 82px);
  line-height: 1.15;
  letter-spacing: -.055em;
  color: #fff;
  text-shadow: 0 3px 28px #0006;
}

.apple-edition #change .wish-layout > div {
  top: var(--wish-copy-top);
  margin-top: var(--wish-copy-top);
  max-width: 900px;
}

.apple-edition #change > .change-original {
  top: var(--wish-original-top);
  margin-top: var(--wish-original-top);
  margin-bottom: 0;
  color: #e6e0d7;
  font-size: clamp(22px, 2.1vw, 31px);
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -.035em;
  text-shadow: 0 2px 20px #0006;
}

.apple-edition #change .wish-layout h5 {
  color: #e1d2ba;
  font-size: clamp(21px, 1.9vw, 30px);
  font-weight: 550;
  margin-bottom: 20px;
}

.apple-edition #change .wish-quote {
  color: #ffe891;
  font-size: clamp(34px, 3.9vw, 66px);
  font-weight: 650;
  line-height: 1.22;
  text-wrap: balance;
  text-shadow: 0 2px 25px #0005;
}

.apple-edition #change .wish-layout .final-questions {
  margin-top: 30px;
  gap: 13px;
  color: #e6e0d7;
  font-size: clamp(21px, 1.85vw, 29px);
  font-weight: 450;
  line-height: 1.5;
}

.apple-edition #change .grail-figure.grail-picked-v12 {
  grid-area: 1 / 1;
  position: sticky;
  top: 0;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  height: 100svh;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #100e0c;
  box-shadow: none;
  clip-path: none;
  z-index: 0;
  pointer-events: none;
}

.apple-edition #change .grail-picked-v12 img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center 46%;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transform: none;
}

.apple-edition #change .grail-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0a09ed, #100c08a8 46%, #100c0838 82%),
              linear-gradient(0deg, #08090bd9, transparent 38%, #100c0852);
  pointer-events: none;
}

.apple-edition #change .grail-figure figcaption {
  position: absolute;
  right: var(--wish-inset);
  bottom: 30px;
  margin: 0;
  color: #d9ccb8;
  font-size: 11px;
  opacity: .8;
  z-index: 1;
  pointer-events: auto;
}

.apple-edition #change > .ending {
  top: var(--wish-ending-top);
  margin-top: var(--wish-ending-top);
  margin-bottom: 0;
}

.apple-edition #change .ending a {
  padding: 14px 23px;
  background: #ffffff15;
  border: 1px solid #ffffff3b;
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.apple-edition #change .ending a:hover { background: #ffffff25; }

/* The mask edge travels from the bottom towards the top while the image stays
   fixed for the extra 90vh of scroll. A disabled/missing script shows it whole. */
body.apple-edition[data-apple-motion="on"] #change .grail-figure.grail-picked-v12 {
  clip-path: inset(calc((1 - var(--grail-unveil)) * 100%) 0 0 0);
  will-change: clip-path;
}

body.apple-edition.motion-off #change { height: 100svh; min-height: 720px; }
body.apple-edition.motion-off #change .grail-figure.grail-picked-v12 {
  clip-path: none;
  will-change: auto;
}

@media (max-width: 1100px) and (min-width: 801px) {
  .apple-edition #scarcity .scarcity-ai-row { grid-template-columns: 1fr; gap: 18px; }
  .apple-edition #scarcity .scarcity-ai-card { justify-content: flex-start; padding: 24px 30px 36px; }
}

@media (max-width: 800px) {
  .apple-edition #scarcity .scarcity-model-data { column-gap: 8px; }
  .apple-edition #scarcity .scarcity-model-data .scarcity-number { font-size: clamp(32px, 7vw, 50px); }
  .apple-edition #scarcity .scarcity-model-data .scarcity-unit { font-size: 15px; }
  .apple-edition #scarcity .scarcity-ai-card { justify-content: flex-start; padding: 26px 20px 38px; }
  .apple-edition #scarcity .scarcity-ai-card > .scarcity-logo { width: 64px; padding: 14px; }
  .apple-edition #change {
    --wish-inset: 27px;
    --wish-eyebrow-top: 88px;
    --wish-title-top: 125px;
    --wish-original-top: 230px;
    --wish-copy-top: clamp(285px, 38svh, 360px);
    --wish-ending-top: calc(100svh - 95px);
    min-height: 1250px;
  }
  .apple-edition #change > .eyebrow { font-size: 10px; }
  .apple-edition #change > .section-title { font-size: clamp(34px, 6.8vw, 54px); max-width: 620px; }
  .apple-edition #change > .change-original { font-size: 20px; }
  .apple-edition #change .wish-layout h5 { font-size: 20px; margin-bottom: 17px; }
  .apple-edition #change .wish-quote { font-size: clamp(29px, 6.9vw, 48px); }
  .apple-edition #change .wish-layout .final-questions { font-size: 20px; gap: 10px; margin-top: 24px; }
  .apple-edition #change .grail-figure::after { background: linear-gradient(90deg, #100c08d9, #100c0866), linear-gradient(0deg, #08090bf2, transparent 70%); }
  .apple-edition #change .grail-figure figcaption { bottom: 22px; font-size: 10px; }
  body.apple-edition.motion-off #change { min-height: 680px; }
}

@media (max-width: 460px) {
  .apple-edition #scarcity .scarcity-ai-card { gap: 11px; padding-inline: 14px; }
  .apple-edition #scarcity .scarcity-ai-card > .scarcity-logo { width: 48px; padding: 11px; }
  .apple-edition #scarcity .scarcity-model-data .scarcity-number { font-size: 31px; }
  .apple-edition #scarcity .scarcity-model-data .scarcity-unit { font-size: 13px; }
}

@media (max-height: 680px) {
  .apple-edition #change { --wish-eyebrow-top: 78px; --wish-title-top: 116px; --wish-original-top: 215px; --wish-copy-top: 280px; --wish-ending-top: calc(100svh - 70px); }
  .apple-edition #change > .section-title { font-size: clamp(32px, 4vw, 54px); }
  .apple-edition #change .wish-layout h5 { font-size: 20px; margin-bottom: 12px; }
  .apple-edition #change .wish-quote { font-size: clamp(29px, 3.6vw, 44px); }
  .apple-edition #change .wish-layout .final-questions { font-size: 19px; gap: 8px; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .apple-edition #change { height: 100svh; min-height: 720px; }
  body.apple-edition[data-apple-motion="on"] #change .grail-figure.grail-picked-v12 { clip-path: none; will-change: auto; }
}

@media print {
  .apple-edition #change { height: 190mm; min-height: 0; --wish-eyebrow-top: 15mm; --wish-title-top: 30mm; --wish-original-top: 60mm; --wish-copy-top: 80mm; --wish-ending-top: 165mm; }
  .apple-edition #change .grail-figure.grail-picked-v12 { position: relative; height: 190mm; clip-path: none !important; }
}
