/* ============================================================
   RELIANCE ENERGY, section layout
   ============================================================ */

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: center;
  transition: padding .4s var(--ease);
  pointer-events: none;
}

/* one unified pill */
.nav__pill {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1100px;
  background: rgba(251,249,244,0.82);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 32px rgba(20,19,15,0.12);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.light .nav__pill {
  background: rgba(251,249,244,0.97);
  box-shadow: 0 8px 40px rgba(20,19,15,0.18);
}

/* brand / logo - left */
.brand {
  display: flex; align-items: center; gap: 9px;
  flex: none;
}
.brand__logo { height: 70px; width: auto; display: block; }

/* links - absolutely centred so no ghost gaps */
.nav__links {
  display: flex; align-items: center; gap: 2px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav__links a {
  font-family: var(--display); font-weight: 500; font-size: 14.5px;
  padding: 9px 15px; border-radius: 100px; color: var(--ink-2);
  transition: background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.nav__links a:hover { background: rgba(20,19,15,0.07); }

/* right-side actions - right */
.nav__actions {
  display: flex; align-items: center; gap: 8px; flex: none;
}

.nav__burger { display: none; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  height: 92vh; min-height: 600px; max-height: 900px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(28px, 4vw, 58px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media image-slot { width: 100%; height: 100%; border-radius: 0; }
.hero__media::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(20,19,15,0.45) 0%, rgba(20,19,15,0) 28%),
    linear-gradient(to top, rgba(20,19,15,0.85) 0%, rgba(20,19,15,0.4) 36%, rgba(20,19,15,0) 62%);
  pointer-events: none;
}
@media (max-width: 880px) {
  .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(20,19,15,0.5) 0%, rgba(20,19,15,0) 25%),
      linear-gradient(to top, rgba(20,19,15,0.92) 0%, rgba(20,19,15,0.55) 40%, rgba(20,19,15,0.1) 65%);
  }
}
.hero__inner { position: relative; z-index: 5; width: 100%; }
.hero__eyebrow {
  color: rgba(255,255,255,0.85) !important;
  margin-bottom: clamp(16px, 2.4vw, 26px);
}
.hero__eyebrow .idx { color: var(--amber); }
.hero__title {
  font-family: var(--display); font-weight: 800;
  color: #fff; line-height: 0.98; letter-spacing: -0.03em;
  font-size: clamp(36px, 6vw, 88px);
  text-shadow: 0 4px 40px rgba(0,0,0,0.22);
  display: grid;
}
.hero__title .phrase { grid-area: 1 / 1; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line span { display: block; transform: translateY(110%); white-space: nowrap; }
.hero__title .phrase[data-active] .line span { animation: heroUp 1s var(--ease) both; }
.hero__title .phrase[data-active] .line:nth-child(2) span { animation-delay: .12s; }
.hero__title .phrase.leaving .line span { animation: heroOut .72s var(--ease) both; }
.hero__title .phrase.leaving .line:nth-child(2) span { animation-delay: .06s; }
@keyframes heroUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes heroOut { from { transform: none; } to { transform: translateY(-110%); } }
.hero__sub {
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(22px, 3vw, 44px); flex-wrap: wrap; margin-top: clamp(22px, 3vw, 36px);
}
.hero__sub p {
  flex: 1 1 360px; max-width: 480px; color: rgba(255,255,255,0.94);
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5;
}
.hero__sub .btn { flex: none; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(20px, 3vw, 34px);
  z-index: 6;
}
.scrollcue {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(251,249,244,0.9); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 13.5px;
  padding: 8px 8px 8px 18px; border-radius: 100px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}
.scrollcue .dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center;
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(3px)} }

/* ---------------- SECTION SHELL ---------------- */
.section { padding-block: clamp(70px, 9vw, 150px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.sec-head { display: flex; gap: 26px; align-items: baseline; }

/* ---------------- MISSION (01) ---------------- */
.mission__grid {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(24px, 5vw, 70px);
  align-items: start;
}
.mission__lead {
  font-size: clamp(26px, 3.4vw, 44px);
  max-width: 24ch; margin-left: 0;
}
.mission__lead.lead { line-height: 1.16; }
.mission__lead b { color: var(--amber-2); font-weight: 500; }
.mission__media {
  margin-top: clamp(46px, 6vw, 88px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: end;
}
.mission__left { position: relative; }
.mission__left image-slot { width: 100%; height: clamp(300px, 34vw, 440px); }
.quote-card {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(251,249,244,0.94); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 14px 40px rgba(20,19,15,0.16);
}
.quote-card p {
  font-family: var(--display); font-weight: 500; font-size: 17px;
  line-height: 1.34; letter-spacing: -0.01em;
}
.quote-card .by { margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.mission__right image-slot { width: 100%; height: clamp(220px, 26vw, 330px); }
.mission__right .cap { margin-top: 12px; font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; }
.mission__idx-r { text-align: right; font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 14px; }

/* ---------------- BIG WORD (Reliability) ---------------- */
.bigword {
  position: relative; text-align: center;
  padding-block: clamp(40px, 7vw, 110px);
  display: flex; justify-content: center; align-items: center;
}
.bigword__stage { position: relative; display: inline-block; line-height: 1; }
.bigword__img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: clamp(260px, 42vw, 560px); height: clamp(120px, 17vw, 220px);
  z-index: 1; border-radius: 999px;
}
.bigword__text {
  position: relative; z-index: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(64px, 15vw, 250px); letter-spacing: -0.04em;
  color: var(--amber); margin: 0;
}
.bigword__text--top {
  position: absolute; inset: 0; z-index: 2; color: #fff;
}
.bigword__cap {
  position: absolute; bottom: 6%; right: var(--gutter); max-width: 260px;
  text-align: right; color: var(--muted); font-size: 14px;
}

/* ---------------- DARK STATS (03) ---------------- */
.darkpanel {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 70px);
  position: relative; overflow: hidden;
}
.darkpanel__map {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.world-map-img {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.13;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 55% 50%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 100% 90% at 55% 50%, #000 25%, transparent 75%);
  transition: opacity 1.8s var(--ease) 0.3s;
}
.darkpanel__inner { position: relative; z-index: 2; }
.darkpanel .eyebrow { color: rgba(255,255,255,0.6); }
.darkpanel .eyebrow .idx { color: var(--amber); }
.darkpanel__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -0.025em;
  max-width: 16ch; margin-top: 18px;
}
.darkpanel__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  margin-top: clamp(120px, 18vw, 240px); align-items: end;
}
.dstat .num {
  font-family: var(--display); font-weight: 700; color: var(--amber);
  font-size: clamp(34px, 4.6vw, 64px); line-height: 0.96; letter-spacing: -0.03em;
}
.dstat .lbl { color: rgba(255,255,255,0.62); font-size: 14px; margin-top: 12px; max-width: 22ch; }
.darkpanel__cta { position: absolute; left: 0; bottom: 0; z-index: 3; }

/* ---------------- PROMISE + STAT GRID (04) ---------------- */
.promise__top {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(26px, 5vw, 64px);
  align-items: start;
}
.promise__head {
  display: block;
}
.promise__head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.14; letter-spacing: -0.02em;
  max-width: 18ch;
}
.tcard {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(20,19,15,0.05);
}
.tcard__quote {
  display: flex; gap: 14px; align-items: flex-start;
}
.tcard__mark {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: var(--amber); color: var(--ink); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 22px;
}
.tcard p { font-size: 15.5px; line-height: 1.45; }
.tcard__by { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.tcard__av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#caa, #9b8); }
.tcard__by .n { font-family: var(--display); font-weight: 600; font-size: 13.5px; }
.tcard__by .r { font-size: 12px; color: var(--muted); }

.statgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: clamp(34px, 4vw, 56px);
}
.scard {
  border-radius: 18px; padding: 26px 24px; min-height: 188px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--cream-2); border: 1px solid var(--line-2);
}
.scard--feat { background: var(--ink); color: var(--cream); }
.scard--feat .scard__num { color: var(--amber); }
.scard__num {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 0.96;
}
.scard__lbl { font-size: 13.5px; color: var(--muted); margin-top: 10px; max-width: 20ch; }
.scard--feat .scard__lbl { color: rgba(255,255,255,0.6); }
.scard__arrow {
  width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--ink);
  display: grid; place-items: center; align-self: flex-end;
  transition: transform .4s var(--ease);
}
.scard--feat:hover .scard__arrow { transform: translate(3px,-3px); }

@media (max-width: 980px) {
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .darkpanel__stats { grid-template-columns: 1fr; gap: 22px; margin-top: 60px; }
  .promise__top { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .mission__media { grid-template-columns: 1fr; }
  .mission__grid { grid-template-columns: 1fr; }
  .mission__lead { margin-left: 0; max-width: 26ch; }
  .promise__head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .statgrid { grid-template-columns: 1fr; }
}
