.nature-deco {
  position: absolute;
  top: 0;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.nature-deco--top {
  top: 0;
  right: 150px;
  width: min(24vw, 390px);
  z-index: 0;
}

.nature-deco--left {
  left: -4px; /* trim the artwork's transparent left edge */
  width: clamp(180px, 19vw, 300px);
}

.nature-deco img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1100px) {
  .nature-deco { display: none; }
}

/* Soften the hatching behind the plants and gradually restore it below. */
/* A local white veil sits above the hatching, behind the mushroom artwork. */
.nature-deco--left { z-index: 3; }
.nature-deco--left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 19% at 24% 65%, #fff 0%, rgba(255, 255, 255, .98) 45%, transparent 100%);
  pointer-events: none;
}
.nature-deco--left img { position: relative; }
/* Preserve the first Animals illustration's original footprint so the
   remaining right-hand decorations keep their vertical positions. */
.page-deco--right > img:first-child {
  aspect-ratio: 516 / 1450;
  object-fit: contain;
  object-position: top right;
  transform: translateY(100px) scale(1.35);
  transform-origin: top right;
}

/* Full-width foliage separates the white hero from the dark A+ area. */
.nature-dark-background {
  position: absolute;
  top: var(--nature-dark-top, 2000px);
  left: 0;
  width: 100%;
  height: var(--nature-dark-height, 0px);
  background: #000;
  z-index: 0;
  pointer-events: none;
}
.nature-dark-background::before,
.nature-dark-background::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(180px, 33.333vw, 724px);
  background: url('/nature/assets/transicion-hojas.webp') center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.nature-dark-background::before { bottom: 100%; }
.nature-dark-background::after { top: 100%; transform: rotate(180deg); }
#from-author { --ink: #fff; color: #fff; border-top: 0; }
#from-author .product__cta--repeat {
  --ink: #000;
  color: #000;
  margin-top: 0;
  padding-top: clamp(140px, 18vw, 320px);
  border-top: 0;
}

.product__section--tiles {
  margin-top: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}
.product__section--tiles .tiles { max-width: 850px; margin-inline: auto; }
.product__section--tiles .tile__icon { width: 24px; height: 24px; }
.product__section--tiles .tile__value { font-size: .95rem; }
#from-author { margin-top: clamp(120px, 15vw, 260px); }

.page-deco--right img.nature-deco-inverted { filter: invert(1); }

/* Gold botanical divider above the quick facts. */
.product__section--tiles {
  position: relative;
  border-top: 0;
}
.product__section--tiles::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -35px;
  height: 70px;
  background: url('/nature/assets/separador-dorado-pequeno.webp') center / 100% auto no-repeat;
  pointer-events: none;
}


/* Gold lettering on the existing black purchase buttons. */
.product__cta .btn--ink { --fg: #e1bf7e; }

/* Anchor the vertical mark to the bottom of the publisher artwork. */
.publisher-block__art { position: relative; }
.publisher-block__art img.nature-publisher-artwork {
  transform: scaleX(-1);
  -webkit-mask: url('/nature/assets/mascara-gorrion-contornos.svg?v=3') center / 100% 100% no-repeat;
  mask: url('/nature/assets/mascara-gorrion-contornos.svg?v=3') center / 100% 100% no-repeat;
}
.publisher-block__art img.nature-publisher-wordmark {
  position: absolute;
  /* Align the H with the visible lower edge of the masked illustration. */
  bottom: calc(-1 * clamp(23px, 2.25vw, 35px));
  right: calc((min(1180px, 100vw) - 100vw) / 2 - clamp(1.5rem, 5vw, 4rem) + clamp(0px, 6vw, 90px));
  width: clamp(119px, 11.9vw, 182px);
  height: auto;
  border-radius: 0;
  pointer-events: none;
  filter: url(#nature-dark-ink);
}
@media (max-width: 1100px) {
  .publisher-block__art img.nature-publisher-wordmark { display: none; }
}

/* Lift the video canvas from off-white to the page's white. */

/* Blend the inverted foliage into the black section without a seam. */
.nature-dark-background::after {
  top: calc(100% - 2px);
  background-image: linear-gradient(to top, #000 0, transparent 18px), url('/nature/assets/transicion-hojas.webp');
  background-size: 100% 100%, 100% 100%;
  background-position: center bottom, center bottom;
  background-repeat: no-repeat;
}

/* Retain the original sidebar slot while displaying the Nature pen art. */
.page-deco--right img.nature-pen-art {
  aspect-ratio: 471 / 1714;
  object-fit: contain;
  object-position: center top;
  background: #000;
  transform: scale(1.5);
  transform-origin: top right;
}

/* Curious monkey peeks from behind the foliage at the return to white. */
.nature-peeking-monkey {
  position: absolute;
  top: calc(100% + min(1.6vw, 34px));
  left: 58.9%;
  width: 22.3%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: darken;
}
.nature-dark-background::after { z-index: 2; }

/* Independent artwork cards, anchored to the original collage footprint. */
.page-deco--right .nature-cards {
  --card-width: 92%;
  --card-shadow: 0 8px 18px rgba(0, 0, 0, .23);
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 471 / 1714;
  margin-top: 200px;
}
.page-deco--right .nature-cards .nature-card {
  position: absolute;
  right: -3%;
  width: var(--card-width);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin: 0;
  background: white;
  box-shadow: var(--card-shadow);
  transform: rotate(var(--rotation, 0deg));
}
.nature-card--1 { top: 2%; --rotation: -6deg; z-index: 3; }
.nature-card--2 { top: 32%; --rotation: 0deg; z-index: 2; }
.nature-card--3 { top: 61%; --rotation: 6deg; z-index: 1; }
.nature-card--4 { top: 90%; --rotation: -4deg; z-index: 0; }
.page-deco--right > .nature-cards + img { margin-top: 320px; }

.page-deco--right .nature-cards .nature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.nature-card__tinta { mix-blend-mode: multiply; }

/* Separate selective color beneath the original ink artwork. */
.nature-deco--top .nature-leaf-color { position: absolute; inset: 0; width: 100%; height: 100%; }
.nature-deco--top img { position: relative; mix-blend-mode: multiply; }

/* Vertical decoration alongside the A+ panels; crop only the empty black margin. */
.nature-selective-wordmark {
  position: absolute;
  top: calc(var(--nature-dark-top, 2000px) + 20px);
  left: 0;
  width: var(--nature-wordmark-width, clamp(375px, 33.75vw, 525px));
  height: auto;
  transform: translateX(-32%);
  pointer-events: none;
  z-index: 3;
  background: #000;
}
@media (max-width: 1100px) {
  .nature-selective-wordmark { display: none; }
}

/* Nature illustrations continue the black A+ gutters without shifting the panels. */
body { --nature-wordmark-width: clamp(375px, 33.75vw, 525px); }
.nature-aplus-ornament {
  position: absolute;
  height: auto;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}
.nature-aplus-ornament--left {
  left: 0;
  top: calc(var(--nature-dark-top, 2000px) + 20px + var(--nature-wordmark-width) + var(--nature-wordmark-width) + var(--nature-wordmark-width) + 220px);
  width: clamp(320px, 25.6vw, 560px);
  max-height: max(0px, calc(var(--nature-dark-height, 0px) - var(--nature-wordmark-width) - var(--nature-wordmark-width) - var(--nature-wordmark-width) + 60px));
  object-fit: contain;
  object-position: left top;
}
.nature-aplus-ornament--right {
  right: 0;
  top: calc(var(--nature-dark-top, 2000px) + var(--nature-dark-height, 0px));
  width: clamp(362.25px, 23.625vw, 472.5px);
  transform: translateY(-100%);
}
@media (max-width: 1100px) { .nature-aplus-ornament { display: none; } }

/* The original descriptive copy stays underneath this reversible visual. */
.prose--flap .prose__extended { display: block; position: relative; overflow: hidden; }
.nature-original-copy { position: absolute; inset: 0; overflow: hidden; }
.nature-experience-graphic { display: block; position: relative; z-index: 1; width: 100%; height: auto; background: #fff; }

/* Responsive layering: editorial content stays in front of every decoration. */
.product, .colophon { z-index: 4; }
.masthead { z-index: 5; }
#from-author .aplus__copy { position: relative; background: #000; }
.product__section--tiles::before { mix-blend-mode: multiply; }

/* The foliage must clear the actual book, not just the video's white canvas. */
@media (max-width: 1650px) {
  .nature-deco--left { display: none; }
  /* The white hatch fade belongs to the mushroom composition. */
  .page-deco--left { mask-image: none; -webkit-mask-image: none; }
}
/* The hatch must clear the specifications column. */
@media (max-width: 1450px) {
  .page-deco--left { display: none; }
}
/* Hide the lettering before an A+ panel can obscure the letters. */
@media (max-width: 1300px) {
  .nature-selective-wordmark, .page-deco--right img.nature-deco-inverted { visibility: hidden; }
}
/* Let the hummingbird retreat into the margin as the title gets wider. */
@media (min-width: 1101px) and (max-width: 1500px) {
  .page-deco--right > img:first-child { transform: translateY(100px) scale(.7); }
}
/* The transition foliage gets its own space below the quick facts. */
@media (max-width: 1100px) {
  #from-author { margin-top: calc(clamp(180px, 33.333vw, 724px) + 36px); }
}
/* Use the available width on portrait tablets instead of leaving a wide blank column. */
@media (min-width: 701px) and (max-width: 900px) and (min-height: 501px) {
  .product__head { max-width: none; grid-template-columns: minmax(220px, .8fr) minmax(0, 1fr); gap: 2rem; }
  .product__cover { max-width: 100%; }
  .product__title { font-size: clamp(2.3rem, 4.8vw, 2.75rem); }
  .product__section--tiles .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
/* Quick facts are part of the content, including on phones. */
@media (max-width: 480px) {
  .product__section--tiles { display: block; }
  .product__section--tiles .tiles { max-width: 100%; }
}

/* Blend the whole video layer so its white canvas does not cut the hatch. */
.product__cover-link { mix-blend-mode: multiply; }
/* Phones/tablets: darken instead of multiply, so any video pixel lighter than
   the page (decoders render the canvas white slightly off) becomes the exact
   page white; only the book itself, darker than the page, shows through. */
@media (max-width: 1100px) {
  .product__cover-link { mix-blend-mode: darken; }
}
/* The hatch is above the video canvas only at widths where it clears the content;
   the botanical veil remains above the hatch to keep the mushrooms clean. */
@media (min-width: 1451px) {
  .page-deco--left { z-index: 5; }
  .nature-deco--left { z-index: 6; }
}

/* Keep the left hatch out of the dark A+ section at every width.
   clip-path + a gradient overlay instead of mask-image: WebKit drops tiles of a
   masked, blended layer this tall (the strip spans the whole page). */
.page-deco--left {
  clip-path: polygon(
    0 0, 100% 0,
    100% var(--nature-dark-top, 2000px), 0 var(--nature-dark-top, 2000px),
    0 var(--nature-dark-bottom, 2000px), 100% var(--nature-dark-bottom, 2000px),
    100% 100%, 0 100%);
}
/* With the mushrooms in the corner (wide screens) the hatch fades in below them. */
@media (min-width: 1651px) {
  .page-deco--left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #fff 0, rgba(255, 255, 255, .975) 480px, rgba(255, 255, 255, 0) 900px);
    pointer-events: none;
    z-index: 1;
  }
}

/* A light floating trail beside the final A+ panel, inside the dark section. */
.nature-moth-seeds {
  position: absolute;
  top: calc(var(--nature-last-aplus-top, 5000px) - 160px);
  left: 0;
  transform: translateX(-28%);
  height: clamp(690px, 69vw, 1230px);
  max-height: max(0px, calc(var(--nature-dark-top, 2000px) + var(--nature-dark-height, 0px) - var(--nature-last-aplus-top, 5000px) + 160px));
  width: auto;
  max-width: clamp(230px, 23vw, 410px);
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 1100px) { .nature-moth-seeds { display: none; } }

/* Pre-launch: Amazon button is inert until the Vol. 2 listing exists. */
.btn--soon { cursor: default; pointer-events: none; user-select: none; }
