:root {
  /* (Google Interaction:** Interaction: Interactive respond proximity intensification. IntersectionObserver` per-path trigger animations independently threshold `[0 `0 */
  --deep: #1a1118;
  --cream: #fff5eb;
  --orange: #ff6b35;
  --coral: #ff8c61;
  --amber: #ffb347;
  --brown: #b34700;
  --mauve: #8b5e83;
  --charcoal: #3d2b3a;
  --peach: #e8d5c4;
  --split-left: 55%;
  --split-right: 45%;
  --scroll-y: 0px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--charcoal);
  font-family: "DM Sans", "Inter", sans-serif;
  overflow-x: hidden;
}

.market-page {
  min-height: 100vh;
  background: var(--deep);
}

.split-section {
  display: grid;
  grid-template-columns: var(--split-left) var(--split-right);
  min-height: 100vh;
  transition: grid-template-columns 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel {
  position: relative;
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}

.signal-panel {
  background: var(--deep);
  color: var(--peach);
}

.story-panel {
  background: var(--cream);
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(139,94,131,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(139,94,131,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: translate3d(0, calc(var(--scroll-y) * -0.08), 0);
}

.eyebrow, .label {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--orange);
  font-size: .75rem;
}

h1, h2, h3 {
  font-family: "Anybody", "DM Sans", sans-serif;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.05;
}

h1 {
  max-width: 9ch;
  color: var(--deep);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  font-variation-settings: 'wdth' 100;
  animation: breathe 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

h2 {
  max-width: 12ch;
  color: inherit;
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  font-weight: 900;
  font-variation-settings: 'wdth' 75;
}

h3 {
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 90;
}

p {
  max-width: 42ch;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.65;
}

.lede { margin-top: 2rem; color: var(--charcoal); }
.hero-copy { gap: 1rem; }

.signal-stage {
  position: relative;
  height: 100%;
  min-height: 72vh;
}

.circuit {
  position: absolute;
  inset: 2rem;
  width: calc(100% - 4rem);
  height: calc(100% - 4rem);
  overflow: visible;
}

.trace {
  fill: none;
  stroke: rgba(139,94,131,.42);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.1s cubic-bezier(.16,1,.3,1), stroke .3s ease;
}

.trace.drawn { stroke-dashoffset: 0; }
.near .trace { stroke: rgba(255,107,53,.62); stroke-width: 3; transform: translate3d(0, calc(var(--scroll-y) * -0.06), 0); }
.mid .trace { transform: translate3d(0, calc(var(--scroll-y) * -0.03), 0); }
.far .trace { stroke: rgba(139,94,131,.2); transform: translate3d(0, calc(var(--scroll-y) * -0.01), 0); }

.node {
  fill: var(--orange);
  filter: drop-shadow(0 0 12px var(--amber));
  animation: pulse 2s ease-in-out infinite;
  animation-delay: var(--d);
}

.node.big { fill: var(--amber); }

.ticker-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

.ticker-ribbon span, .market-tags b {
  font-family: "IBM Plex Mono", monospace;
  color: var(--orange);
  border: 1px solid rgba(255,179,71,.35);
  background: rgba(255,107,53,.08);
  border-radius: 999px;
  padding: .65rem .8rem;
  font-size: .75rem;
  font-weight: 400;
}

.slim-signal { display: flex; align-items: center; justify-content: center; }
.mini-terminal { position: relative; width: min(320px, 100%); border: 1px solid rgba(139,94,131,.45); padding: 1.2rem; background: rgba(255,245,235,.04); border-radius: 28px; }
.sparkline { height: 120px; display: flex; align-items: end; gap: .7rem; margin: 2rem 0; }
.sparkline i { display: block; flex: 1; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--amber), var(--orange)); animation: bars 1.8s ease-in-out infinite alternate; }
.sparkline i:nth-child(1){height:34%}.sparkline i:nth-child(2){height:62%;animation-delay:.2s}.sparkline i:nth-child(3){height:48%;animation-delay:.4s}.sparkline i:nth-child(4){height:85%;animation-delay:.1s}.sparkline i:nth-child(5){height:57%;animation-delay:.5s}.sparkline i:nth-child(6){height:73%;animation-delay:.3s}
.market-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.narrative { gap: 1.2rem; }
.narrative p { color: inherit; }

.icon-showcase {
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 5rem);
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 35%, #ffb347 70%, #fff5eb 100%);
  color: var(--deep);
}

.showcase-copy { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.showcase-copy h2 { max-width: 11ch; }
.icon-grid { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 1rem; }
.market-icon-card {
  position: relative;
  min-height: 330px;
  padding: 1.25rem;
  background: var(--deep);
  border: 1px solid rgba(255,245,235,.25);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.market-icon-card:hover { transform: translateY(-10px); box-shadow: 0 0 20px #ffb347, 0 0 40px #ff6b3550; }
.glow-node { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #ffb347 0%, transparent 70%); opacity: .35; right: -22px; top: -22px; }
.market-icon { width: 120px; height: 120px; align-self: center; margin-top: 3rem; overflow: visible; }
.icon-fill { fill: var(--orange); transform-origin: center; transition: transform .3s ease-out; }
.icon-trace { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset .8s ease; }
.market-icon-card:hover .icon-fill { transform: scale(1.08); }
.market-icon-card:hover .icon-trace { stroke-dashoffset: 0; }

.reverse .story-panel, .dark-story { background: linear-gradient(180deg, #1a1118 0%, #3d2b3a 50%, #8b5e83 100%); color: var(--cream); }
.diagram-panel { display: flex; align-items: center; justify-content: center; }
.sector-map { position: relative; width: min(520px, 92%); aspect-ratio: 1; border: 1px solid rgba(139,94,131,.5); border-radius: 50%; background: radial-gradient(circle, rgba(255,179,71,.14), transparent 62%); }
.sector-node { position: absolute; border: 1px solid rgba(255,179,71,.55); background: rgba(26,17,24,.86); color: var(--amber); font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .85rem 1rem; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.sector-node:nth-child(1){left:12%;top:22%}.sector-node:nth-child(2){right:10%;top:18%}.sector-node:nth-child(3){left:16%;bottom:18%}.sector-node:nth-child(4){right:12%;bottom:23%}
.sector-node.active, .sector-node:hover { transform: scale(1.08); background: var(--orange); color: var(--deep); box-shadow: 0 0 20px #ffb347, 0 0 40px #ff6b3550; }
.sector-message { position: absolute; inset: 37% 15% auto; color: var(--peach); font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.45; text-align: center; }
.dense-network { min-height: 100vh; }
.small-circuit { inset: 10%; width: 80%; height: 80%; }

.closing-merge {
  min-height: 100vh;
  padding: clamp(2rem, 7vw, 7rem);
  background: linear-gradient(135deg, rgba(255,107,53,.95), rgba(255,140,97,.9) 35%, rgba(255,179,71,.8) 70%, #fff5eb 100%);
  color: var(--deep);
  display: grid;
  place-content: center;
  text-align: center;
  justify-items: center;
  position: relative;
  overflow: hidden;
}
.closing-merge h2 { max-width: 14ch; font-variation-settings: 'wdth' 125; }
.closing-merge p:not(.eyebrow) { color: var(--charcoal); }
.final-node { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 30px #ffb347, 0 0 90px #ff6b35; margin-bottom: 2rem; animation: pulse 2s ease-in-out infinite; }

@keyframes breathe { 0% { font-variation-settings: 'wdth' 75; } 50% { font-variation-settings: 'wdth' 125; } 100% { font-variation-settings: 'wdth' 100; } }
@keyframes pulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.45); } }
@keyframes bars { from { transform: scaleY(.62); } to { transform: scaleY(1.08); } }

@media (max-width: 1000px) { .icon-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .split-section { grid-template-columns: 1fr; }
  .panel { min-height: auto; padding: 2rem; }
  .signal-panel { min-height: 70vh; }
  .story-panel { min-height: 70vh; }
  .icon-grid { grid-template-columns: 1fr; }
  .showcase-copy { display: block; }
  .market-icon-card { min-height: 240px; }
}
