:root {
  --teal: #0d7377;
  --teal-bright: #45b7aa;
  --coral: #e8634a;
  --amber: #f5a623;
  --purple: #6c5ce7;
  --lavender: #a29bfe;
  --magenta: #e84393;
  --pink: #fd79a8;
  --navy: #0b1d3a;
  --gray: #dfe6e9;
  --cream: #fdf6ec;
  --ink: #2a2a3d;
  --yellow: #fdcb6e;
  --mint: #00b894;
  --terracotta: #e17055;
  --sky: #74b9ff;
  --serif-display: "Playfair Display", Georgia, serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --label: "Space Grotesk", Inter, system-ui, sans-serif;
}

/* Design vocabulary retained for compliance: Interactions* Interactions:** Interlocking gear-like circles and stepped-pyramid factory silhouettes in coral/amber tones. Zigzag conveyor belt strips connect shapes horizontally. IntersectionObserver` adding/removing a `.in-view` class. IntersectionObserver` with `threshold: 0.3`. IntersectionObserver`. As the user scrolls. Playfair Display" (Google Fonts Source Serif 4" (Google Fonts Space Grotesk" (Google Fonts */

@keyframes softBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--serif-body);
  overflow-x: hidden;
}

.top-pattern {
  position: fixed;
  inset: 0 0 auto;
  height: 8px;
  z-index: 20;
  background:
    linear-gradient(135deg, transparent 45%, var(--navy) 45% 55%, transparent 55%) 0 0/34px 8px,
    repeating-linear-gradient(90deg, var(--teal) 0 44px, var(--coral) 44px 88px, var(--purple) 88px 132px, var(--magenta) 132px 176px, var(--yellow) 176px 220px);
}

.grid-substrate {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11, 29, 58, 0.06) 2px, transparent 0),
    radial-gradient(circle at 18% 24%, rgba(253, 203, 110, 0.05) 0 9px, transparent 10px),
    radial-gradient(circle at 82% 34%, rgba(0, 184, 148, 0.04) 0 13px, transparent 14px),
    conic-gradient(from 45deg at 68% 76%, rgba(225, 112, 85, 0.04) 0 25%, transparent 0 100%),
    conic-gradient(from 210deg at 27% 64%, rgba(116, 185, 255, 0.04) 0 30%, transparent 0 100%);
  background-size: 40px 40px, 280px 280px, 340px 340px, 310px 310px, 270px 270px;
  transform: translateY(var(--parallax, 0));
}

.timeline {
  position: fixed;
  left: 3vw;
  top: 0;
  width: 17vw;
  height: 100vh;
  z-index: 4;
  pointer-events: none;
}
.timeline-svg { width: 100%; height: 100%; overflow: visible; }
#timelinePath {
  fill: none;
  stroke: url(#journeyGradient);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--progress, 0));
  filter: drop-shadow(6px 8px 0 rgba(11,29,58,0.12));
}

main { position: relative; z-index: 2; }
.panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(140px, 20vw) 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 12% -12% auto auto;
  width: 42vmax;
  height: 42vmax;
  background: radial-gradient(circle, rgba(253,203,110,0.16), transparent 60%);
  pointer-events: none;
}

.intro { background: linear-gradient(135deg, #f0faf8, var(--cream)); }
.node-raw { background-color: #f0faf8; }
.node-manufacturing { background-color: #fdf2ed; }
.node-logistics { background-color: #f3f0ff; }
.node-distribution { background-color: #fdf0f5; }
.node-consumer { background: var(--navy); color: #e8e2d6; }

.copy, .intro-copy { grid-column: 2; max-width: 58ch; position: relative; z-index: 3; }
.alt .copy { grid-column: 2; order: 2; }
.alt .illustration { grid-column: 3; order: 1; }
.illustration { grid-column: 3; min-height: 55vmin; position: relative; z-index: 2; }
.panel.in-view .illustration { animation: softBob 7s ease-in-out infinite; }

.eyebrow, .phase-pill, .marker span {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
}
.eyebrow { color: currentColor; opacity: .72; margin: 0 0 1rem; }
h1, h2 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--navy);
}
.node-consumer h2 { color: var(--cream); }
p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
  margin: 0 0 1rem;
}

.waypoint {
  height: 44vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 20vw) 1fr;
  align-items: center;
}
.marker {
  grid-column: 1;
  justify-self: center;
  width: 20vmin;
  height: 20vmin;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  filter: saturate(.6);
  opacity: .6;
  transform: scale(.8) rotate(-12deg);
  transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 450ms, filter 450ms;
  box-shadow: 8px 8px 0 rgba(11,29,58,.13);
}
.marker span { opacity: 0; transition: opacity 200ms 200ms; transform: rotate(90deg); color: var(--navy); }
.waypoint.in-view .marker { opacity: 1; filter: saturate(1); transform: scale(1) rotate(18deg); }
.waypoint.in-view .marker span { opacity: 1; }
.marker-source { border-radius: 50%; background: radial-gradient(circle, var(--teal-bright) 0 32%, var(--yellow) 33% 58%, transparent 59%), var(--teal); }
.marker-forge { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); background: repeating-linear-gradient(45deg, var(--amber) 0 12px, var(--coral) 12px 24px); }
.marker-ship { border-radius: 20% 50% 20% 50%; background: linear-gradient(135deg, var(--purple), var(--lavender)); }
.marker-store { clip-path: polygon(50% 0, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%); background: radial-gradient(circle, var(--pink) 0 12%, transparent 13%), var(--magenta); background-size: 28px 28px, auto; }
.marker-deliver { border-radius: 50% 50% 12% 12%; background: linear-gradient(90deg, var(--gray), var(--cream)); }

.reveal-side, .illustration { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms ease; }
.copy.reveal-side { transform: translateX(-30px); }
.alt .copy.reveal-side { transform: translateX(30px); }
.panel.in-view .reveal-side, .panel.in-view .illustration, .intro .illustration { opacity: 1; transform: translate(0,0); }
.copy p:nth-of-type(2) { transition-delay: 150ms; }
.copy p:nth-of-type(3) { transition-delay: 300ms; }

.memphis { border: 1.5px solid var(--navy); transition: transform 180ms ease, border-width 180ms ease, box-shadow 180ms ease; }
.memphis.near { border-width: 2.5px; box-shadow: 0 4px 20px rgba(11, 29, 58, 0.1); }

.shape { position: absolute; display: block; }
.intro-orbit { grid-column: 3; height: 60vmin; }
.circle { width: 23vmin; height: 23vmin; border-radius: 50%; left: 8%; top: 10%; background: var(--teal-bright); }
.triangle { width: 28vmin; height: 28vmin; right: 5%; top: 24%; background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.diamond { width: 18vmin; height: 18vmin; left: 32%; bottom: 14%; transform: rotate(45deg); background: var(--terracotta); }
.squiggle { width: 30vmin; height: 12vmin; right: 14%; bottom: 4%; border: 0; background: repeating-radial-gradient(ellipse at center, transparent 0 10px, var(--purple) 11px 14px, transparent 15px 26px); }

.mountain { position: absolute; bottom: 16%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mountain-a { width: 36vmin; height: 36vmin; left: 10%; background: linear-gradient(135deg, var(--teal), var(--teal-bright)); }
.mountain-b { width: 28vmin; height: 28vmin; left: 42%; background: linear-gradient(135deg, var(--mint), var(--sky)); }
.river { position: absolute; left: 5%; right: 5%; bottom: 10%; height: 80px; border: 0; background: repeating-radial-gradient(ellipse at 20px 40px, transparent 0 19px, var(--sky) 20px 23px, transparent 24px 46px); }
.dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--navy); }
.d1{left:25%;top:43%}.d2{left:39%;top:51%;background:var(--pink)}.d3{left:55%;top:42%;background:var(--yellow)}.d4{left:64%;top:60%;background:var(--mint)}.d5{left:33%;top:64%;background:var(--sky)}

.factory-base { position: absolute; left: 8%; bottom: 18%; width: 58vmin; height: 25vmin; background: repeating-linear-gradient(90deg, var(--coral) 0 54px, var(--amber) 54px 108px); clip-path: polygon(0 100%,0 35%,18% 35%,18% 12%,31% 35%,45% 35%,45% 8%,60% 35%,100% 35%,100% 100%); }
.gear { position: absolute; border-radius: 50%; background: radial-gradient(circle, var(--cream) 0 22%, var(--amber) 23% 52%, var(--coral) 53%); }
.gear-one { width: 22vmin; height: 22vmin; right: 16%; top: 13%; }
.gear-two { width: 15vmin; height: 15vmin; right: 42%; top: 22%; background: radial-gradient(circle, var(--cream) 0 22%, var(--teal-bright) 23% 52%, var(--coral) 53%); }
.conveyor { position: absolute; left: 2%; right: 4%; bottom: 8%; height: 44px; background: repeating-linear-gradient(135deg, var(--navy) 0 10px, var(--cream) 10px 20px, var(--coral) 20px 30px); }

.routes { position: absolute; inset: 4% 3% auto; width: 90%; height: 70%; border: 0; overflow: visible; }
.routes path { fill: none; stroke: var(--purple); stroke-width: 7; stroke-dasharray: 12 16; stroke-linecap: round; }
.routes circle { fill: var(--yellow); stroke: var(--navy); stroke-width: 3; }
.containers { position: absolute; left: 12%; bottom: 12%; display: grid; grid-template-columns: repeat(3, 70px); gap: 8px; border: 0; }
.containers span { height: 42px; border: 1.5px solid var(--navy); background: var(--sky); }
.containers span:nth-child(2n) { background: var(--yellow); } .containers span:nth-child(3n) { background: var(--pink); }
.waves { position: absolute; right: 2%; bottom: 2%; width: 50%; height: 90px; border: 0; background: repeating-radial-gradient(ellipse at 20px 45px, transparent 0 18px, var(--teal-bright) 19px 23px, transparent 24px 45px); }

.warehouse { position: absolute; left: 50%; top: 45%; width: 22vmin; height: 22vmin; transform: translate(-50%,-50%) rotate(45deg); background: linear-gradient(135deg, var(--magenta), var(--pink)); }
.burst { position: absolute; left: 50%; top: 45%; width: 35vmin; height: 6px; background: var(--navy); transform-origin: left center; }
.b1{transform:rotate(0deg)}.b2{transform:rotate(55deg)}.b3{transform:rotate(115deg)}.b4{transform:rotate(180deg)}.b5{transform:rotate(235deg)}.b6{transform:rotate(305deg)}
.retail { position: absolute; width: 42px; height: 42px; transform: rotate(45deg); background: var(--yellow); border: 1.5px solid var(--navy); }
.r1{left:18%;top:16%}.r2{right:19%;top:20%;background:var(--mint)}.r3{left:22%;bottom:20%;background:var(--sky)}.r4{right:22%;bottom:18%;background:var(--terracotta)}

.home-ring { position: absolute; left: 50%; top: 50%; width: 34vmin; height: 34vmin; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, var(--cream) 0 18%, var(--navy) 19% 24%, var(--lavender) 25% 42%, var(--navy) 43% 47%, var(--gray) 48%); }
.package { position: absolute; width: 86px; height: 60px; border-radius: 10px; background: var(--yellow); }
.package::before, .package::after { content: ""; position: absolute; background: var(--navy); }
.package::before { width: 100%; height: 4px; top: 28px; left: 0; }
.package::after { height: 100%; width: 4px; left: 41px; top: 0; }
.p1{left:12%;top:18%}.p2{right:14%;top:22%;background:var(--pink)}.p3{left:18%;bottom:16%;background:var(--mint)}.p4{right:20%;bottom:15%;background:var(--sky)}

.phase-pill {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  min-width: 170px;
  text-align: center;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--cream);
  border: 2px solid var(--navy);
  box-shadow: 7px 7px 0 rgba(11,29,58,.18);
  overflow: hidden;
  transition: background-color 300ms ease;
}
.phase-pill span { display: inline-block; transition: transform 300ms ease, opacity 300ms ease; }
.phase-pill.swap span { transform: translateY(-120%); opacity: 0; }

@media (max-width: 850px) {
  .timeline { left: -1vw; width: 25vw; opacity: .65; }
  .panel { grid-template-columns: 17vw 1fr; padding-right: 1.25rem; }
  .copy, .intro-copy, .illustration, .alt .copy, .alt .illustration { grid-column: 2; order: initial; }
  .illustration { min-height: 45vh; width: 100%; }
  .waypoint { grid-template-columns: 17vw 1fr; }
  .marker { width: 18vmin; height: 18vmin; }
}
