/* Home template. */

/* ═══ Hero: a tall scroll track with a pinned stage ═══════════════════ */
.hero { position: relative; height: 420vh; background: var(--ink); }
.hero__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 130% 60% at 74% 102%, rgba(196,181,154,.10) 0%, transparent 62%),
    radial-gradient(ellipse 100% 65% at 18% 104%, rgba(107,95,138,.16) 0%, transparent 66%),
    linear-gradient(to bottom, var(--ink) 0%, var(--twilight) 62%, #221C31 100%);
}
.hero__photo {
  position: absolute; inset: 0; z-index: 1;
  background: url('/assets/image/photo-1543489816-c87b0f5f7dd4.png') center 28% / cover no-repeat;
  transform-origin: 50% 32%;
  transform: scale(1.12);
  will-change: transform;
  animation: heroFadeIn 1.6s ease .1s both;
}
.hero__grade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to right, rgba(17,14,24,.78) 0%, rgba(17,14,24,.42) 38%, transparent 64%),
    linear-gradient(115deg, rgba(107,95,138,.22) 0%, transparent 45%, rgba(196,181,154,.08) 100%),
    linear-gradient(to bottom,
      rgba(17,14,24,.82) 0%, rgba(17,14,24,.46) 34%, rgba(17,14,24,.58) 56%,
      rgba(17,14,24,.90) 76%, rgba(17,14,24,.99) 92%, #110E18 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Intro copy: recedes as the scene energizes */
.hero__intro {
  position: absolute; top: calc(var(--nav-h) + 3.5svh); left: 0; z-index: 10;
  width: 100%; padding: 0 clamp(24px,5vw,72px);
  will-change: opacity, transform;
}
.hero__eyebrow {
  margin-bottom: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  animation: heroFadeUp .7s var(--ease-expo) .15s both;
}
.hero__title {
  font-family: var(--display); font-optical-sizing: auto;
  font-size: clamp(54px,9.2vw,152px); line-height: .92;
  font-weight: 380; letter-spacing: -.025em;
}
.hero__title-a { display: block; color: var(--frost); animation: heroFadeUp 1s var(--ease-expo) .28s both; }
.hero__title-b {
  display: block; font-style: italic; font-weight: 420;
  animation: heroFadeUp 1s var(--ease-expo) .42s both, shimmer 9s ease-in-out 2s infinite;
}
.hero__rule {
  width: 48px; height: 1px; margin: 22px 0;
  background: linear-gradient(90deg, var(--gold), rgba(196,181,154,0));
  animation: heroFadeIn .5s ease .62s both;
}
.hero__lede {
  max-width: 520px;
  font-size: clamp(15px,1.5vw,18px); line-height: 1.7; color: var(--pewter);
  animation: heroFadeUp .75s var(--ease-expo) .68s both;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px;
  animation: heroFadeUp .75s var(--ease-expo) .82s both;
}
@media (max-height: 740px) {
  .hero__title   { font-size: clamp(46px,7.4vw,108px); }
  .hero__eyebrow { margin-bottom: 16px; }
}

.btn {
  display: inline-flex; align-items: center;
  padding: 15px 24px; border-radius: 3px;
  font-size: 13px; text-decoration: none;
}
.btn--gold {
  gap: 9px; padding: 15px 32px;
  background: var(--gold); color: var(--ink);
  font-weight: 600; letter-spacing: .04em;
  transition: background .2s, transform .18s;
}
.btn--gold:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn--ghost {
  gap: 8px; color: var(--pewter); letter-spacing: .02em;
  border: 0.5px solid rgba(176,172,186,.28);
  transition: color .2s, border-color .2s;
}
.btn--ghost:hover { color: var(--frost); border-color: rgba(176,172,186,.55); }

/* Phase captions and the closing statement */
.hero__caption, .hero__final {
  position: absolute; top: calc(var(--nav-h) + 6svh); left: 0; z-index: 10;
  padding: 0 clamp(24px,5vw,72px);
  opacity: 0; pointer-events: none;
}
.hero__flag {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ember);
}
.hero__flag::before {
  content: ''; width: 7px; height: 7px;
  background: var(--ember); box-shadow: 0 0 10px rgba(223,167,92,.6);
}
.hero__final .hero__flag { margin-bottom: 20px; }
.hero__caption h3, .hero__final h2 {
  font-family: var(--display); font-optical-sizing: auto;
  font-weight: 380; color: var(--frost);
}
.hero__caption h3 { font-size: clamp(34px,4.6vw,68px); line-height: 1.08; }
.hero__final h2   { font-size: clamp(40px,5.5vw,84px); line-height: 1.05; }
.hero__caption em, .hero__final em { font-style: italic; font-weight: 420; }
.hero__final p {
  max-width: 480px; margin-top: 18px;
  font-size: clamp(13px,1.3vw,16px); line-height: 1.7; color: var(--pewter);
}

/* Scene along the bottom of the stage */
.hero__scene {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  overflow: hidden;
  animation: heroFadeIn 1.4s ease .45s both;
}
.hero__scene-inner { width: 100%; will-change: transform; }
.hero__scene svg { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .hero__scene-inner { width: 1000px; } }

/* Sequence rail on the right edge */
.hero__rail {
  position: absolute; top: 50%; right: clamp(18px,2.5vw,42px); z-index: 10;
  height: min(280px,34svh); transform: translateY(-50%);
  display: flex; flex-direction: column; justify-content: space-between;
  animation: heroFadeIn 1s ease 1.2s both;
}
.hero__rail::before {
  content: ''; position: absolute; top: 0; bottom: 0; right: 3.5px; width: 1px;
  background: rgba(255,255,255,.12);
}
.hero__rail-fill {
  position: absolute; top: 0; right: 3.5px; width: 1px; height: 0%;
  background: linear-gradient(to bottom, var(--copper), var(--ember));
  box-shadow: 0 0 6px rgba(223,167,92,.5);
}
.hero__rail-stop { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hero__rail-stop span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
  opacity: 0; transform: translateX(6px);
  transition: opacity .4s, transform .4s, color .4s;
}
.hero__rail-stop i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dusk); border: 1px solid rgba(255,255,255,.25);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.hero__rail-stop.is-on span { opacity: 1; transform: none; color: var(--ember); }
.hero__rail-stop.is-on i { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 10px rgba(223,167,92,.7); }
@media (max-width: 1100px) { .hero__rail { display: none; } }

/* Scroll cue */
.hero__cue {
  position: absolute; bottom: 40px; left: 50%; z-index: 10; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: heroFadeIn .5s ease 1.1s both;
}
.hero__cue span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.hero__cue-bar {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes heroFadeUp { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ── Scene vectors ── */
.a-line  { fill: none; stroke: rgba(133,120,168,.5); stroke-width: 1.2; transition: stroke .6s; }
.a-fill  { fill: rgba(32,27,45,.92); stroke: rgba(133,120,168,.45); stroke-width: 1; transition: stroke .6s, fill .6s; }
.lattice { fill: none; stroke: rgba(133,120,168,.32); stroke-width: .8; }
.hub     { fill: var(--dusk); stroke: rgba(133,120,168,.6); stroke-width: 1; transition: fill .6s, stroke .6s; }
.asset.is-live .a-line { stroke: rgba(196,181,154,.75); }
.asset.is-live .a-fill { stroke: rgba(196,181,154,.6); fill: rgba(196,181,154,.07); }
.asset.is-live .hub    { fill: var(--gold); stroke: var(--gold); }

.rotor {
  transform-box: fill-box; transform-origin: center;
  animation: rotorSpin 7s linear infinite; animation-play-state: paused;
}
.asset.is-live .rotor { animation-play-state: running; }
@keyframes rotorSpin { to { transform: rotate(360deg); } }

.heat { fill: var(--gold); opacity: 0; transition: opacity .6s; }
.asset.is-live .heat { opacity: .3; animation: heatPulse 2.4s ease-in-out infinite; }
@keyframes heatPulse { 0%, 100% { opacity: .15; } 50% { opacity: .42; } }

.flow-base { fill: none; stroke: rgba(133,120,168,.22); stroke-width: 1; stroke-dasharray: 3 5; }
.flow-live {
  fill: none; stroke: url(#flowGrad); stroke-width: 2; opacity: .95;
  filter: drop-shadow(0 0 6px rgba(223,167,92,.55));
}
.bus { stroke: rgba(133,120,168,.4); stroke-width: 2; transition: stroke .5s; }
.bus.is-live { stroke: var(--ember); filter: drop-shadow(0 0 5px rgba(223,167,92,.6)); }
.pulse { fill: #F2DCB4; opacity: 0; filter: drop-shadow(0 0 6px rgba(242,220,180,.95)); }

.burst {
  fill: none; stroke: var(--ember); stroke-width: 1.5; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.burst.is-pop { animation: burstOut .7s ease-out both; }
@keyframes burstOut {
  0%   { opacity: .95; transform: scale(.3); stroke-width: 2.5; }
  100% { opacity: 0; transform: scale(3.4); stroke-width: .5; }
}

.beacon { fill: var(--ember); animation: beaconBlink 2.6s ease-in-out infinite; }
@keyframes beaconBlink { 0%, 100% { opacity: .15; } 12%, 20% { opacity: 1; } 32% { opacity: .15; } }

.glyph { fill: none; stroke: rgba(223,167,92,.55); stroke-width: 1.2; }
.flame {
  fill: rgba(223,167,92,.25); stroke: rgba(223,167,92,.5); stroke-width: 1;
  transition: fill .6s, stroke .6s;
}
.asset.is-live .flame { fill: rgba(223,167,92,.6); stroke: var(--ember); animation: flameWaver 1.6s ease-in-out infinite; }
@keyframes flameWaver { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-1.5px) scaleY(1.12); } }

.underglow { fill: var(--ember); opacity: 0; transition: opacity 1s; }
.underglow.is-on { opacity: .10; }

.scene-lbl { opacity: .4; }
.lbl-name  { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; fill: var(--pewter); }
.lbl-mw    { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .04em; fill: var(--ember); opacity: 0; }

.hud-label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; fill: var(--dim); }
.hud-num   { font-family: var(--mono); font-size: 34px; font-weight: 600; fill: var(--frost); }
.hud-dot   { fill: var(--dim); transition: fill .4s; }
.hud-dot.is-on { fill: var(--ember); animation: beaconBlink 2s ease-in-out infinite; }
.badge-r { fill: rgba(45,122,92,.15); stroke: rgba(45,122,92,.4); stroke-width: .75; }
.badge-t { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .14em; fill: #3EA87C; }

.dc-shell { fill: rgba(26,22,36,.92); stroke: rgba(133,120,168,.5); stroke-width: 1.2; transition: stroke .8s; }
#asset-dc.is-live .dc-shell { stroke: rgba(196,181,154,.65); }
.dc-light { fill: rgba(253,252,254,.06); transition: fill .3s; }
.dc-light.is-lit { fill: var(--ember); animation: lightOn .5s ease-out; }
@keyframes lightOn {
  0%   { fill: rgba(253,252,254,.06); }
  35%  { fill: #F2DCB4; }
  55%  { fill: rgba(223,167,92,.4); }
  100% { fill: var(--ember); }
}
.dc-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; fill: var(--dim); }

/* ═══ Ticker ══════════════════════════════════════════════════════════ */
.ticker {
  overflow: hidden; padding: 18px 0;
  background: var(--twilight);
  border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border);
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item { display: flex; align-items: center; gap: 12px; padding: 0 48px; white-space: nowrap; }
.ticker__num { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--gold); }
.ticker__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ticker__sep { flex-shrink: 0; width: 3px; height: 3px; border-radius: 50%; background: var(--violet); opacity: .45; }

/* ═══ The power problem: word-by-word scrub ═══════════════════════════ */
.problem {
  max-width: 1140px; margin: 0 auto;
  padding: clamp(120px,13vw,200px) clamp(24px,5vw,80px);
}
.problem__label {
  display: block; margin-bottom: 56px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--violet);
}
.problem__text { font-family: var(--serif); font-size: clamp(30px,4.2vw,66px); line-height: 1.2; font-weight: 400; }
.problem__word { --wp: 0; display: inline; margin-right: .2em; color: rgba(253,252,254, calc(.28 + var(--wp) * .72)); }
.problem__word.is-accent { color: rgba(196,181,154, calc(.28 + var(--wp) * .72)); }

/* ═══ Photo band ═════════════════════════════════════════════════════ */
.band { position: relative; height: clamp(380px,50vh,620px); overflow: hidden; }
.band__photo {
  position: absolute; inset: 0;
  background: url('/assets/image/photo-1413882353314-73389f63b6fd.png') center 40% / cover no-repeat;
  will-change: transform;
}
.band__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(17,14,24,.88) 0%, rgba(17,14,24,.60) 38%, rgba(17,14,24,.28) 65%, rgba(17,14,24,.50) 100%),
    linear-gradient(to bottom, rgba(17,14,24,.5) 0%, transparent 25%, transparent 75%, rgba(17,14,24,.8) 100%);
}
.band__content {
  position: relative; z-index: 2; height: 100%; max-width: 800px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px,5vw,96px);
}
.band__tag {
  margin-bottom: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.band__headline { font-family: var(--serif); font-size: clamp(28px,4vw,58px); line-height: 1.15; font-weight: 400; color: var(--frost); }
.band__headline em { font-style: italic; color: var(--gold); }
.band__body { max-width: 520px; margin-top: 20px; font-size: clamp(13px,1.2vw,16px); line-height: 1.75; color: var(--pewter); }

/* ═══ Reveal on enter (home.js adds .is-in; reverses when scrolled back above) ═══ */
.reveal-up, .reveal-left, .reveal-fade {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: var(--dur, .8s);
  transition-timing-function: var(--ease-out3);
  transition-delay: var(--delay, 0s);
}
.reveal-up   { transform: translateY(var(--rise, 24px)); }
.reveal-left { transform: translateX(-28px); }
.band__headline.reveal-fade { transform: translateY(20px); }
.reveal-up.is-in, .reveal-left.is-in, .reveal-fade.is-in { opacity: 1; transform: none; }
.band__tag  { --dur: .7s; --delay: 0s; }
.band__headline { --dur: .9s; --delay: .15s; }
.band__body { --dur: .8s; --delay: .35s; }

/* ═══ Services ═══════════════════════════════════════════════════════ */
.services { padding-top: clamp(100px,12vw,160px); }
.services__head { padding: 0 var(--gutter); margin-bottom: 72px; }
.services__grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 0.5px solid var(--border); }
.service {
  --rise: 36px; --dur: .85s;
  position: relative; overflow: hidden;
  padding: clamp(44px,5vw,80px) clamp(28px,4vw,60px);
  border-right: 0.5px solid var(--border);
  transition-property: opacity, transform, background;
  transition-duration: var(--dur), var(--dur), .3s;
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s;
}
.service:last-child { border-right: none; }
.service::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--violet);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service:hover { background: var(--twilight); }
.service:hover::after { transform: scaleX(1); }
.service__num { margin-bottom: 36px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.service__icon, .aud__icon { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service__icon { width: 38px; height: 38px; margin-bottom: 24px; }
.service__name { margin-bottom: 6px; font-family: var(--serif); font-size: clamp(22px,2vw,30px); line-height: 1.2; color: var(--frost); }
.service__sub  { margin-bottom: 14px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); }
.service__body { max-width: 300px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.service__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 36px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; transition: gap .2s;
}
.service__link:hover { gap: 14px; }

/* ═══ Process ════════════════════════════════════════════════════════ */
.process {
  margin-top: clamp(80px,10vw,140px);
  padding: clamp(100px,12vw,160px) var(--gutter);
  background: var(--twilight);
}
.process__inner { max-width: var(--content); margin: 0 auto; }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(5,1fr); margin-top: 88px; }
.process__connector {
  position: absolute; top: 27px; left: 11%; right: 11%; height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--gold), var(--violet), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s cubic-bezier(.455,.03,.515,.955) .2s;
}
.process__steps.is-in .process__connector { transform: scaleX(1); }
.step { --rise: 24px; --dur: .75s; padding: 0 clamp(12px,2vw,24px); text-align: center; }
.step__node {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 28px; border-radius: 50%;
  background: var(--dusk); border: 0.5px solid rgba(255,255,255,.1);
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--gold);
  transition: background .3s, border-color .3s;
}
.step__node--final, .step:hover .step__node { background: var(--violet); border-color: var(--violet); color: var(--frost); }
.step__node--final { font-size: 10px; line-height: 1.3; text-align: center; }
.step__name { margin-bottom: 10px; font-family: var(--serif); font-size: 18px; line-height: 1.25; color: var(--frost); }
.step__body { font-size: 14px; line-height: 1.65; color: var(--muted); }
.process__speed {
  margin-top: 60px; text-align: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}

/* ═══ Audience ═══════════════════════════════════════════════════════ */
.audience { padding: clamp(80px,10vw,140px) var(--gutter); background: var(--twilight); }
.audience__inner { max-width: var(--content); margin: 0 auto; }
.audience__grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  margin-top: 72px; overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 0.5px solid var(--border); border-radius: 8px;
}
.aud {
  --rise: 20px; --dur: .75s;
  padding: 40px 32px; background: var(--twilight);
  transition-property: opacity, transform, background;
  transition-duration: var(--dur), var(--dur), .3s;
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s;
}
.aud:hover { background: var(--dusk); }
.aud__icon { width: 32px; height: 32px; margin-bottom: 20px; }
.aud__type { margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.aud__name { margin-bottom: 12px; font-family: var(--serif); font-size: 22px; color: var(--frost); }
.aud__body { font-size: 14.5px; line-height: 1.75; color: var(--muted); }

/* ═══ Markets: light interlude with a full-bleed ISO/RTO map ═════════ */
.markets {
  position: relative; overflow: hidden;
  padding: clamp(100px,12vw,170px) var(--gutter);
  background: var(--paper);
}
.markets::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.markets__map {
  position: absolute; inset: -4% -4%; z-index: 0;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 2%;
  pointer-events: none;
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.2s var(--ease-out2);
  -webkit-mask-image: radial-gradient(ellipse 66% 88% at 68% 50%, black 56%, transparent 90%);
  mask-image: radial-gradient(ellipse 66% 88% at 68% 50%, black 56%, transparent 90%);
  will-change: transform, opacity;
}
.markets__map.is-in { opacity: 1; }
.markets__map svg { width: min(61vw,935px); height: auto; margin-right: 5%; }
.markets__inner { position: relative; z-index: 2; max-width: var(--content); margin: 0 auto; pointer-events: none; }
.markets__head, .market, .markets__legend { pointer-events: auto; }
.markets .eyebrow { color: var(--copper); }
.markets .section-title { color: var(--paper-ink); }
.markets .section-title em { color: var(--copper); }
.markets__body { max-width: 480px; margin-top: 64px; }
.market {
  --dur: .8s;
  margin-bottom: 16px; padding: 36px 32px; border-radius: 6px;
  background: rgba(255,253,247,.88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(25,21,33,.12);
  box-shadow: 0 10px 34px rgba(25,21,33,.06);
  cursor: default;
  transition-property: opacity, transform, background, border-color;
  transition-duration: var(--dur), var(--dur), .3s, .3s;
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s, 0s;
}
.market:hover { background: #FFFDF8; border-color: rgba(176,104,47,.4); }
.market__chip {
  display: inline-block; margin-bottom: 14px; padding: 3px 12px; border-radius: 100px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
}
.market__chip--reg   { background: rgba(176,104,47,.12); color: var(--paper-rust); }
.market__chip--dereg { background: rgba(107,95,138,.14); color: #4F4568; }
.market h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 22px; color: var(--paper-ink); }
.market p  { font-size: 14.5px; line-height: 1.75; color: var(--paper-body); }
.markets__legend {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper-body);
}
.legend-item { display: flex; align-items: center; gap: 9px; }
.legend-item__swatch { flex-shrink: 0; width: 12px; height: 12px; border-radius: 3px; }
.legend-item__swatch--rto   { background: rgba(107,95,138,.4);  border: 1px solid rgba(107,95,138,.55); }
.legend-item__swatch--ercot { background: rgba(176,104,47,.35); border: 1px solid rgba(176,104,47,.5); }
.legend-item__swatch--reg   { background: rgba(140,118,76,.22); border: 1px solid rgba(140,118,76,.4); }

#rto-map { filter: drop-shadow(0 20px 44px rgba(25,21,33,.14)); }
.rgn-fill {
  stroke: transparent; stroke-width: 1.5; cursor: pointer; pointer-events: auto;
  transition: filter .25s, stroke .25s;
}
.rgn.is-hot .rgn-fill { filter: saturate(1.5) brightness(.97); stroke: rgba(176,104,47,.85); }
.map-borders { fill: none; stroke: rgba(246,241,230,.95); stroke-width: .9; pointer-events: none; }
.map-nation  { fill: none; stroke: rgba(25,21,33,.45); stroke-width: 1.4; pointer-events: none; }
.map-lbl {
  font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .1em;
  fill: var(--paper-ink); text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round;
}
.map-lbl.erc { fill: var(--paper-rust); }

.map-tip {
  position: fixed; top: 0; left: 0; z-index: 300; width: 272px;
  padding: 16px 18px; border-radius: 8px;
  background: #FFFDF8; border: 1px solid rgba(25,21,33,.14);
  box-shadow: 0 18px 50px rgba(25,21,33,.2);
  pointer-events: none; opacity: 0; transition: opacity .18s;
  will-change: transform;
}
.map-tip.is-on { opacity: 1; }
.map-tip__name { font-family: var(--serif); font-size: 21px; color: var(--paper-ink); }
.map-tip__meta {
  margin: 6px 0 9px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper-rust);
}
.map-tip__fact { font-size: 12.5px; line-height: 1.65; color: var(--paper-body); }

/* ═══ Inquiry ════════════════════════════════════════════════════════ */
.inquiry { position: relative; padding: clamp(100px,12vw,180px) var(--gutter); background: var(--ink); }
.inquiry::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, transparent);
}
.inquiry__inner {
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: start;
  gap: clamp(48px,8vw,120px); max-width: 980px; margin: 0 auto;
}
.inquiry__intro h2 {
  margin-bottom: 20px;
  font-family: var(--serif); font-size: clamp(38px,4.5vw,60px); line-height: 1.1; color: var(--frost);
}
.inquiry__intro h2 em { font-style: italic; color: var(--gold); }
.inquiry__intro p { margin-bottom: 44px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.inquiry__facts { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.inquiry__facts li {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--dim);
}
.inquiry__facts li::before { content: ''; flex-shrink: 0; width: 18px; height: 0.5px; background: var(--gold); }

.inquiry-form { display: flex; flex-direction: column; gap: 20px; }
.inquiry-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 3px;
  background: rgba(255,255,255,.04); border: 0.5px solid rgba(255,255,255,.1);
  font-family: var(--sans); font-size: 14px; color: var(--frost);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(107,95,138,.6); background: rgba(107,95,138,.05); }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239994A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: calc(100% - 14px) center;
}
.field select option { background: var(--twilight); color: var(--frost); }
.field textarea { min-height: 128px; line-height: 1.65; resize: vertical; }
.inquiry-form__submit {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 17px 32px; border: none; border-radius: 3px; cursor: pointer;
  background: var(--gold); color: var(--ink);
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  transition: background .2s, transform .18s;
}
.inquiry-form__submit:hover { background: var(--gold-lt); transform: translateY(-2px); }
.inquiry-form__submit:disabled { background: var(--green); color: var(--frost); transform: none; cursor: default; }
.inquiry-form__note { text-align: center; font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: .05em; color: var(--dim); }

/* ═══ Responsive ═════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { border-right: none; border-bottom: 0.5px solid var(--border); }
  .service:last-child { border-bottom: none; }
  .process__steps { grid-template-columns: repeat(3,1fr); gap: 32px; }
  .process__connector { display: none; }
  .audience__grid { grid-template-columns: repeat(2,1fr); }
  .inquiry__inner { grid-template-columns: 1fr; }

  .markets__map {
    inset: auto -30% -4% -30%; align-items: flex-end; justify-content: center; padding: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 2%, black 40%);
    mask-image: linear-gradient(to bottom, transparent 2%, black 40%);
  }
  .markets__map svg { width: 150vw; }
  .markets__body { max-width: none; margin-bottom: 46vw; }
  .rgn-fill { pointer-events: none; cursor: default; }
  .map-tip { display: none; }
}
@media (max-width: 768px) {
  .process__steps { grid-template-columns: 1fr 1fr; }
  .audience__grid { grid-template-columns: 1fr; }
  .inquiry-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .process__steps { grid-template-columns: 1fr; }
}

/* ═══ Reduced motion: final states, no scroll choreography ═══════════
   Same exemptions as the original (the ticker keeps running). */
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100svh; }
  .hero__cue { display: none; }
  .rotor, .asset.is-live .heat, .beacon, .asset.is-live .flame,
  .hero__title-b, .hud-dot.is-on { animation: none !important; }
  .reveal-up, .reveal-left, .reveal-fade, .band__headline.reveal-fade { opacity: 1; transform: none; transition: none; }
  .process__connector { transform: scaleX(1); transition: none; }
  .problem__word { --wp: 1; }
  .markets__map { opacity: 1; transform: none; transition: none; }
}
