/* ============================================================
   VERDANTIS — ENERGY
   BUILD 027: kicker match, closing emblem, tablet hero contrast.
   Transform/opacity only. Pause via [data-page-hidden]
   and [data-hero-idle]. Do not touch HOME, CITY, HABITATS.
   ============================================================ */

.page-energy {
  min-height: 100svh;
  background: #080c0a;
}

.page-energy .grain {
  display: none;
}

.page-energy .site-header:not(.is-scrolled) {
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 10, 0.48) 0%,
    rgba(8, 12, 10, 0.18) 32%,
    rgba(8, 12, 10, 0.05) 56%,
    transparent 78%
  );
}

.page-energy .site-header:not(.is-scrolled) .brand-name,
.page-energy .site-header:not(.is-scrolled) .site-nav a,
.page-energy .site-header:not(.is-scrolled) .header-meta,
.page-energy .site-header:not(.is-scrolled) .nav-toggle {
  text-shadow: 0 1px 18px rgba(8, 10, 8, 0.75), 0 0 3px rgba(8, 10, 8, 0.45);
}

.page-energy .site-header:not(.is-scrolled) .site-nav a {
  color: #f6f1e8;
}

.page-energy .site-header:not(.is-scrolled) .header-meta {
  color: #c8bfae;
}

.page-energy .site-header:not(.is-scrolled) .site-nav a[aria-current="page"] {
  color: #ffffff;
}

/* ---------- Hero ---------- */

.nrg-hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  min-height: 0;
  overflow: hidden;
  color: var(--ink);
  background: #12180e;
}

.nrg-vista {
  position: absolute;
  inset: 0;
}

.nrg-scene {
  position: absolute;
  inset: -2%;
}

.nrg-plate,
.nrg-glow,
.nrg-read,
.nrg-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nrg-plate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 40%;
  display: block;
}

.nrg-glow {
  background: linear-gradient(
    96deg,
    rgba(255, 210, 130, 0.09) 0%,
    transparent 42%
  );
  animation: nrg-glow 34s linear infinite alternate;
}

.nrg-read {
  background:
    linear-gradient(
      to bottom,
      rgba(8, 12, 10, 0.36) 0%,
      rgba(8, 12, 10, 0.1) 14%,
      transparent 32%
    ),
    linear-gradient(
      to right,
      rgba(8, 12, 10, 0.22) 0%,
      rgba(8, 12, 10, 0.06) 18%,
      transparent 36%
    );
}

.nrg-frame {
  z-index: 3;
  inset: 1.1rem;
  border: 1px solid rgba(224, 204, 150, 0.13);
}

.nrg-identity {
  position: absolute;
  z-index: 6;
  top: clamp(6.75rem, 15vh, 9.25rem);
  left: clamp(4.5rem, 9vw, 8.25rem);
  bottom: auto;
  max-width: 30rem;
  min-width: 0;
}

.nrg-context {
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f3eadc;
  text-shadow: 0 1px 14px rgba(8, 10, 8, 0.55), 0 0 2px rgba(8, 10, 8, 0.4);
}

.nrg-title {
  font-family: var(--font-display);
  font-size: clamp(3.9rem, 8.6vw, 6.8rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 0 4px 26px rgba(8, 10, 8, 0.5);
}

.nrg-support {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.52rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #f3eadc;
  text-shadow: 0 1px 2px rgba(8, 10, 8, 0.55), 0 2px 14px rgba(8, 10, 8, 0.42);
}

.nrg-stand {
  margin-top: 1.05rem;
  max-width: 26rem;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.55;
  color: #f5efe6;
  text-shadow: 0 2px 18px rgba(8, 10, 8, 0.52);
  overflow-wrap: break-word;
}

/* ---------- Intro ---------- */

body.is-intro .nrg-plate {
  opacity: 0.3;
}

body.is-intro .nrg-glow,
body.is-intro .nrg-identity,
body.is-intro .nrg-frame {
  opacity: 0;
}

body.is-awakening .nrg-plate {
  animation: nrg-fade 2s var(--ease-out) both;
}

body.is-awakening .nrg-glow,
body.is-awakening .nrg-frame {
  animation: nrg-fade 1.35s 0.35s var(--ease-out) both;
}

body.is-awakening .nrg-identity {
  animation: nrg-rise 1.5s 0.28s var(--ease-out) both;
}

body.is-ready .nrg-plate,
body.is-ready .nrg-glow,
body.is-ready .nrg-identity,
body.is-ready .nrg-frame {
  opacity: 1;
}

/* ---------- Editorial ---------- */

.nrg-sec {
  position: relative;
  padding: 7.5rem var(--gutter) 7rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 680px;
}

.nrg-index {
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4ae80;
}

.nrg-sec h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.02em;
  max-width: 16ch;
}

.nrg-lede,
.nrg-store-copy p:not(.nrg-index),
.nrg-scale p,
.nrg-surfaces p,
.nrg-returns p {
  color: #d8d0c2;
  font-weight: 300;
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}

.nrg-lede + .nrg-lede {
  margin-top: 1.15rem;
}

/* 01 Harvest */

.nrg-harvest {
  background: linear-gradient(180deg, #0c1210 0%, #101610 100%);
}

.nrg-harvest h2 {
  margin-bottom: 1.7rem;
}

.nrg-lede {
  max-width: 40rem;
}

.nrg-surfaces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 3.4rem 0 0;
  padding: 1.4rem 0 0;
  list-style: none;
  width: 82%;
  max-width: none;
  border-top: 1px solid rgba(212, 188, 140, 0.2);
}

.nrg-surfaces li {
  padding: 0 2.2rem 0 0;
}

.nrg-surfaces li + li {
  padding-left: 2.2rem;
  border-left: 1px solid rgba(212, 188, 140, 0.2);
}

.nrg-surfaces h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ead4a8;
}

.nrg-surfaces p {
  margin: 0;
  font-size: 0.98rem;
  color: #d6ccbc;
}

/* 02 Storage */

.nrg-store {
  background: linear-gradient(180deg, #14180e 0%, #10140c 100%);
  padding-top: 8.4rem;
  padding-bottom: 8.4rem;
}

.nrg-store-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 1.18fr);
  column-gap: clamp(3.5rem, 8vw, 8rem);
  align-items: start;
}

.nrg-store h2 {
  margin-bottom: 1.65rem;
  max-width: 22ch;
}

.nrg-store-copy p:not(.nrg-index) {
  max-width: 34rem;
}

.nrg-store-lead {
  margin: 6.1rem 0 0;
  max-width: 22ch;
  justify-self: end;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 3.05rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.22;
  color: #e4c890;
}

/* 03 Exchange */

.nrg-exchange {
  overflow-x: clip;
  background: #0a100e;
}

.nrg-exchange h2 {
  margin-bottom: 1.6rem;
}

.nrg-scale {
  --scale-inset: 4.8%;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.nrg-scale li {
  --i: 0;
  width: calc(44% + var(--i) * 7.6%);
  max-width: none;
  margin-inline-start: calc(var(--i) * var(--scale-inset));
  padding: 1.15rem 0;
  border-top: 1px solid rgba(212, 188, 140, 0.18);
}

.nrg-scale li:nth-child(2) { --i: 1; }
.nrg-scale li:nth-child(3) { --i: 2; }
.nrg-scale li:nth-child(4) { --i: 3; }
.nrg-scale li:nth-child(5) { --i: 4; }

.nrg-scale li:last-child {
  border-bottom: 1px solid rgba(212, 188, 140, 0.18);
}

.nrg-scale-n {
  display: block;
  margin-bottom: 0.28rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ead8b4;
}

.nrg-scale p {
  margin: 0;
  font-size: 0.98rem;
}

/* 04 Recovery */

.nrg-recover {
  overflow-x: clip;
  background: linear-gradient(180deg, #10140f 0%, #0e140e 100%);
}

.nrg-recover h2 {
  margin-bottom: 1.6rem;
}

.nrg-returns {
  --ret-inset: 5%;
  margin: 3.1rem 0 0;
  padding: 0;
  list-style: none;
  width: auto;
  max-width: none;
}

.nrg-returns li {
  --i: 0;
  display: grid;
  grid-template-columns: minmax(8rem, 0.38fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: baseline;
  width: calc(48% + var(--i) * 6.5%);
  margin-inline-start: calc(var(--i) * var(--ret-inset));
  padding: 1.15rem 0;
  border-top: 1px solid rgba(212, 188, 140, 0.18);
}

.nrg-returns li:nth-child(2) { --i: 1; }
.nrg-returns li:nth-child(3) { --i: 2; }
.nrg-returns li:nth-child(4) { --i: 3; }

.nrg-returns li:last-child {
  border-bottom: 1px solid rgba(212, 188, 140, 0.18);
}

.nrg-returns h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 164, 90, 0.88);
}

.nrg-returns p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 400;
  color: #dcc8a8;
}

/* 05 Baseload */

.nrg-base {
  background: linear-gradient(180deg, #0e120e 0%, #0a0e0c 100%);
  padding-top: 8.5rem;
  padding-bottom: 8.5rem;
}

.nrg-base h2 {
  margin-bottom: 1.6rem;
}

.nrg-base-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.92fr);
  column-gap: clamp(3rem, 7vw, 7.5rem);
  align-items: start;
}

.nrg-base-copy .nrg-lede {
  max-width: 36rem;
}

.nrg-fusion {
  margin: 6.1rem 0 0;
  max-width: 13ch;
  justify-self: end;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.03em;
  color: #ead8b0;
}

.nrg-fusion span {
  display: block;
  margin-top: 0.45rem;
  font-style: italic;
  font-weight: 400;
  color: #c4b090;
}

.nrg-order {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2.25rem;
  margin: 3.6rem 0 0;
  max-width: none;
}

.nrg-order div {
  padding: 1rem 0;
  border-top: 1px solid rgba(212, 188, 140, 0.18);
  border-bottom: 1px solid rgba(212, 188, 140, 0.18);
}

.nrg-order dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c4ae80;
}

.nrg-order dd {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 300;
  color: #d4c8b4;
}

/* ---------- Threshold ---------- */

.nrg-threshold {
  position: relative;
  overflow: hidden;
  padding: 7.5rem var(--gutter) 6.5rem;
  background: #080c0a;
  border-top: 1px solid rgba(198, 184, 150, 0.14);
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.nrg-threshold h2 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.5rem);
  font-weight: 500;
  max-width: 16ch;
  margin-bottom: 2.8rem;
  line-height: 1.05;
}

.nrg-threshold-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
}

.nrg-threshold-list a {
  display: flex;
  padding: 1.3rem 0;
  border-top: 1px solid rgba(198, 184, 150, 0.16);
  transition: padding-left var(--duration) var(--ease-out);
}

.nrg-threshold-list li:last-child a {
  border-bottom: 1px solid rgba(198, 184, 150, 0.16);
}

.nrg-threshold-name {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  letter-spacing: 0.04em;
}

.nrg-threshold-desc {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8a888;
}

.nrg-threshold-list a:hover,
.nrg-threshold-list a:focus-visible {
  padding-left: 0.45rem;
}

.nrg-threshold-list a:hover .nrg-threshold-desc,
.nrg-threshold-list a:focus-visible .nrg-threshold-desc {
  color: var(--amber);
}

.nrg-threshold-mark {
  position: absolute;
  left: auto;
  right: 14%;
  top: auto;
  bottom: 22%;
  width: min(16rem, 34%);
  pointer-events: none;
  user-select: none;
}

.nrg-threshold-mark img {
  width: 100%;
  height: auto;
  opacity: 0.08;
}

.page-energy .site-footer {
  color: #889080;
  background: #080c0a;
  border-top-color: rgba(198, 184, 150, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes nrg-glow {
  from { transform: translate3d(-1.2%, 0, 0); opacity: 0.55; }
  to { transform: translate3d(2%, 0, 0); opacity: 1; }
}

@keyframes nrg-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nrg-rise {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nrg-plate-img {
    object-position: 58% 42%;
  }

  .nrg-identity {
    left: clamp(2.75rem, 6.5vw, 5.5rem);
    top: clamp(6.4rem, 14vh, 8.5rem);
  }
}

@media (min-width: 901px) and (min-height: 700px) {
  .nrg-identity {
    left: clamp(4.5rem, 9vw, 8.25rem);
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  .nrg-plate-img {
    object-position: 54% 48%;
  }
}

@media (min-width: 901px) {
  .nrg-fusion {
    margin-right: 8.75rem;
  }

  .nrg-store-lead {
    margin-right: 11.25rem;
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  .nrg-stand {
    color: #faf6ee;
    text-shadow:
      0 1px 12px rgba(8, 10, 8, 0.7),
      0 0 22px rgba(8, 10, 8, 0.36);
  }
}

@media (max-width: 900px) {
  .page-energy .site-header:not(.is-scrolled) {
    background: linear-gradient(
      to bottom,
      rgba(8, 12, 10, 0.5) 0%,
      rgba(8, 12, 10, 0.16) 42%,
      transparent 100%
    );
  }

  .nrg-frame {
    inset: 0.55rem;
  }

  .nrg-plate-img {
    object-position: 64% 46%;
  }

  .nrg-identity {
    top: clamp(5.8rem, 12vh, 7.6rem);
    max-width: 26rem;
  }

  .nrg-store-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .nrg-store-lead {
    margin-top: 0.85rem;
    max-width: 22rem;
    justify-self: start;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
  }

  .nrg-surfaces {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 36rem;
    padding-top: 0;
    border-top: 0;
  }

  .nrg-surfaces li {
    padding: 1.15rem 0;
    border-top: 1px solid rgba(212, 188, 140, 0.2);
  }

  .nrg-surfaces li + li {
    padding-left: 0;
    border-left: 0;
  }

  .nrg-surfaces li:last-child {
    border-bottom: 1px solid rgba(212, 188, 140, 0.2);
  }

  .nrg-scale {
    --scale-inset: 1.4%;
  }

  .nrg-scale li {
    width: calc(84% + var(--i) * 2.2%);
  }

  .nrg-returns {
    --ret-inset: 1.4%;
    width: auto;
    max-width: none;
  }

  .nrg-returns li {
    width: calc(86% + var(--i) * 2.2%);
  }

  .nrg-base-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .nrg-fusion {
    margin-top: 0.4rem;
    max-width: 16ch;
    justify-self: start;
  }

  .nrg-order {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    max-width: none;
    margin-top: 2.4rem;
  }

  .nrg-order div {
    border-bottom: 0;
  }

  .nrg-order div:nth-child(n + 3) {
    border-bottom: 1px solid rgba(212, 188, 140, 0.18);
  }

  .nrg-threshold-mark {
    right: 6%;
    top: auto;
    bottom: 10%;
    width: min(11rem, 28%);
  }
}

@media (max-width: 720px) {
  .nrg-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .nrg-vista {
    position: relative;
    height: 100svh;
    height: 100dvh;
    max-height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .nrg-read {
    background:
      linear-gradient(
        to bottom,
        rgba(8, 12, 10, 0.4) 0%,
        rgba(8, 12, 10, 0.12) 16%,
        transparent 36%
      ),
      linear-gradient(
        to top,
        rgba(8, 12, 10, 0.58) 0%,
        rgba(8, 12, 10, 0.18) 22%,
        transparent 42%
      );
  }

  .nrg-identity {
    top: auto;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 1.85rem;
    max-width: none;
  }

  .nrg-title {
    font-size: clamp(3.1rem, 14vw, 4.4rem);
  }

  .nrg-stand {
    font-size: 0.96rem;
    max-width: 24rem;
  }

  .nrg-plate-img {
    object-position: 70% 48%;
  }

  .nrg-glow {
    display: none;
  }

  .nrg-sec {
    padding: 5.2rem var(--gutter) 5rem;
  }

  .nrg-store,
  .nrg-base {
    padding-top: 5.6rem;
    padding-bottom: 5.6rem;
  }

  .nrg-store-copy,
  .nrg-store h2 {
    min-width: 0;
    max-width: 18ch;
  }

  .nrg-store-break {
    display: none;
  }

  .nrg-store-lead {
    max-width: none;
    justify-self: start;
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .nrg-scale {
    --scale-inset: 0%;
  }

  .nrg-scale li {
    width: 100%;
    margin-inline-start: 0;
  }

  .nrg-returns {
    --ret-inset: 0%;
  }

  .nrg-returns li {
    width: 100%;
    margin-inline-start: 0;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .nrg-fusion {
    margin-top: 0.85rem;
    max-width: none;
    justify-self: start;
  }

  .nrg-order {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nrg-order div {
    border-bottom: 0;
  }

  .nrg-order div:last-child {
    border-bottom: 1px solid rgba(212, 188, 140, 0.18);
  }

  .nrg-threshold-mark {
    right: 4%;
    top: auto;
    bottom: 6%;
    width: min(9.5rem, 36%);
  }

  .nrg-threshold-mark img {
    opacity: 0.07;
  }
}

@media (max-width: 720px) and (max-height: 720px) {
  .nrg-title {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
  }

  .nrg-identity {
    bottom: 1.5rem;
  }

  .nrg-plate-img {
    object-position: 72% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nrg-glow,
  body.is-awakening .nrg-plate,
  body.is-awakening .nrg-glow,
  body.is-awakening .nrg-identity,
  body.is-awakening .nrg-frame {
    animation: none !important;
  }

  body.is-intro .nrg-plate,
  body.is-intro .nrg-glow,
  body.is-intro .nrg-identity,
  body.is-intro .nrg-frame {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html.reduce-motion .nrg-glow {
  animation: none !important;
}

html[data-page-hidden] .nrg-glow,
html[data-hero-idle] .nrg-glow {
  animation-play-state: paused;
}
