/* ============================================================
   ECHOHAUS — Our Process page
   Loaded after site.css. Reuses site.css primitives.
   Three switchable layouts: timeline · alternating · chapters
   ============================================================ */

/* ---- Hero / manifesto ---- */
.pr-hero {
  padding: calc(19vh + 80px) var(--eh-shell-x) clamp(20px, 2.5vw, 40px);
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(232,154,69,0.10), transparent 60%),
    linear-gradient(180deg, #050505 0%, #08070a 100%);
}
.pr-hero h1 { max-width: 1040px; margin: 0 auto; }
.pr-hero .eh-eyebrow { justify-content: center; }
.pr-hero .eh-lead {
  max-width: 660px; margin: 20px auto 0; text-align: center;
  font-size: clamp(14px, 1.35vw, 17px); line-height: 1.6;
}

.pr-manifesto {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 92px) var(--eh-shell-x) clamp(40px, 5vw, 72px);
  text-align: center;
}
.pr-manifesto p {
  font-family: var(--eh-display);
  font-weight: 200;
  font-size: clamp(22px, 2.7vw, 38px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--eh-ivory);
  text-wrap: balance;
}
.pr-manifesto p .eh-glow { font-weight: 400; }

/* ---- Section shell for the steps ---- */
.pr-steps {
  padding: clamp(20px, 3vw, 48px) var(--eh-shell-x) clamp(64px, 8vw, 120px);
  position: relative;
}
.pr-steps__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.pr-steps__head .eh-eyebrow { margin-bottom: 14px; }

/* number formatting shared */
.pr-num {
  font-family: var(--eh-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* =====================================================
   LAYOUT A — TIMELINE (default)
   ===================================================== */
.pr-timeline { max-width: 1080px; margin: 0 auto; position: relative; --o: clamp(24px, 7vw, 150px); }
.pr-timeline .pr-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(20px, 3vw, 48px);
  position: relative;
  align-items: start;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.pr-timeline .pr-step:nth-child(even) { margin-left: var(--o); }
.pr-timeline .pr-step::before {
  content: '';
  position: absolute;
  left: 47px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(232,154,69,0.5);
  box-shadow: 0 0 8px rgba(232,154,69,0.35);
}
.pr-timeline .pr-step:first-child::before { top: 48px; }
.pr-timeline .pr-step:last-child::before { bottom: auto; height: 48px; }
/* horizontal jog connecting the staggered columns */
.pr-timeline .pr-step::after {
  content: '';
  position: absolute; top: 0; height: 1px;
  background: rgba(232,154,69,0.5);
  box-shadow: 0 0 8px rgba(232,154,69,0.35);
}
.pr-timeline .pr-step:nth-child(odd)::after { left: 47px; width: var(--o); }
.pr-timeline .pr-step:nth-child(even)::after { left: calc(47px - var(--o)); width: var(--o); }
.pr-timeline .pr-step:first-child::after { display: none; }
.pr-timeline .pr-step:last-child { padding-bottom: 0; }
.pr-timeline .pr-node {
  position: relative;
  width: 96px; height: 96px;
  display: grid; place-items: center;
  align-self: start;
}
.pr-timeline .pr-node span {
  width: 70px; height: 70px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232,154,69,0.5);
  background: radial-gradient(circle at 50% 35%, rgba(232,154,69,0.18), rgba(10,9,8,0.96) 66%), #0a0908;
  box-shadow: 0 0 22px rgba(232,154,69,0.18), inset 0 0 14px rgba(232,154,69,0.08);
  font-family: var(--eh-display);
  font-size: 24px; font-weight: 500; color: var(--eh-amber);
  position: relative; z-index: 2;
}
.pr-timeline .pr-body { padding-top: 14px; }
.pr-timeline .pr-kicker {
  font-family: var(--eh-mono); font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--eh-amber); margin-bottom: 12px;
  text-shadow: 0 0 9px rgba(232,154,69,0.6), 0 0 20px rgba(232,154,69,0.32);
}
.pr-timeline .pr-title {
  font-family: var(--eh-display);
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 300;
  letter-spacing: -0.01em; color: var(--eh-ivory); margin: 0 0 14px;
}
.pr-timeline .pr-text {
  font-family: var(--eh-text); font-weight: 300;
  font-size: 15.5px; line-height: 1.7; color: rgba(244,237,225,0.72);
  max-width: 56ch;
}
@media (max-width: 620px){
  .pr-timeline { --o: 0px; }
  .pr-timeline .pr-step { grid-template-columns: 60px 1fr; gap: 18px; }
  .pr-timeline .pr-step::before { left: 29px; }
  .pr-timeline .pr-step:first-child::before { top: 30px; }
  .pr-timeline .pr-step:last-child::before { height: 30px; }
  .pr-timeline .pr-step:nth-child(even) { margin-left: 0; }
  .pr-timeline .pr-node { width: 60px; height: 60px; }
  .pr-timeline .pr-node span { width: 50px; height: 50px; font-size: 18px; }
}

/* ---- Timeline node style variants (default = glow) ---- */
.pr-timeline.nodes-solid .pr-node span {
  background: linear-gradient(160deg, #f6ab55 0%, #e89a45 55%, #c47e33 100%);
  border: none;
  color: #1a1410;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(232,154,69,0.5), 0 8px 20px rgba(0,0,0,0.55), inset 0 1px 2px rgba(255,255,255,0.4);
}
.pr-timeline.nodes-outline .pr-node span {
  width: 64px; height: 64px;
  background: #080706;
  border: 1px solid rgba(232,154,69,0.65);
  box-shadow: none;
  color: var(--eh-amber);
  font-weight: 300;
  font-size: 22px;
}
.pr-timeline.nodes-outline .pr-node::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 78px; height: 78px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(232,154,69,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.pr-timeline.nodes-outline .pr-step::before { left: 47px; }

/* ---- Centered alternating timeline (nodes down middle, diagonal spine) ---- */
.pr-tl-center { position: relative; max-width: 1000px; margin: 0 auto; }
.pr-tl-center .pr-step::before,
.pr-tl-center .pr-step::after { display: none !important; }
.pr-tl-center .pr-tl-svg {
  position: absolute; inset: 0; z-index: 0; overflow: visible; pointer-events: none;
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 6px rgba(232,154,69,0.4));
}
.pr-tl-center .pr-step {
  display: grid;
  grid-template-columns: 1fr clamp(170px, 20vw, 220px) 1fr;
  align-items: start;
  column-gap: clamp(10px, 1.6vw, 26px);
  padding: clamp(16px, 2.4vw, 38px) 0;
  margin-left: 0 !important;
  position: relative;
}
.pr-tl-center .pr-node { grid-column: 2; grid-row: 1; justify-self: center; align-self: start; margin-top: -8px; z-index: 2; }
.pr-tl-center .pr-body { padding-top: 0; grid-row: 1; }
.pr-tl-center .pr-side-left .pr-body { grid-column: 1; text-align: right; }
.pr-tl-center .pr-side-left .pr-text { margin-left: auto; }
.pr-tl-center .pr-side-left .pr-node { transform: translateX(-52px); }
.pr-tl-center .pr-side-right .pr-body { grid-column: 3; text-align: left; }
.pr-tl-center .pr-side-right .pr-node { transform: translateX(52px); }
@media (max-width: 720px){
  .pr-tl-center .pr-tl-svg { display: none; }
  .pr-tl-center .pr-step { grid-template-columns: 60px 1fr; column-gap: 16px; padding: 14px 0 22px; }
  .pr-tl-center .pr-node { grid-column: 1 !important; justify-self: center; transform: none !important; width: 60px; height: 60px; }
  .pr-tl-center .pr-node span { width: 50px; height: 50px; font-size: 18px; }
  .pr-tl-center .pr-side-left .pr-body,
  .pr-tl-center .pr-side-right .pr-body { grid-column: 2 !important; text-align: left !important; }
  .pr-tl-center .pr-side-left .pr-text { margin-left: 0; }
  .pr-tl-center .pr-step::before {
    display: block !important; content: ''; position: absolute;
    left: 29px; top: 0; bottom: 0; width: 1px; background: rgba(232,154,69,0.45);
  }
  .pr-tl-center .pr-step:first-child::before { top: 30px; }
  .pr-tl-center .pr-step:last-child::before { bottom: auto; height: 30px; }
}

/* =====================================================
   LAYOUT B — ALTERNATING
   ===================================================== */
.pr-alt { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 104px); }
.pr-alt .pr-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}
.pr-alt .pr-step:nth-child(even) .pr-media { order: 2; }
.pr-alt .pr-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--eh-line-2);
  overflow: hidden;
  background: #060606;
}
.pr-alt .pr-media .scene { position: absolute; inset: 0; }
.pr-alt .pr-num-ghost {
  position: absolute; right: 14px; bottom: 4px; z-index: 2;
  font-family: var(--eh-display); font-weight: 200;
  font-size: clamp(64px, 9vw, 128px); line-height: 1;
  color: rgba(232,154,69,0.16);
}
.pr-alt .pr-kicker {
  font-family: var(--eh-mono); font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--eh-amber); margin-bottom: 16px;
}
.pr-alt .pr-title {
  font-family: var(--eh-display);
  font-size: clamp(26px, 3vw, 42px); font-weight: 300;
  letter-spacing: -0.01em; color: var(--eh-ivory); margin: 0 0 18px;
}
.pr-alt .pr-text {
  font-family: var(--eh-text); font-weight: 300;
  font-size: 16px; line-height: 1.7; color: rgba(244,237,225,0.74); max-width: 52ch;
}
@media (max-width: 760px){
  .pr-alt .pr-step { grid-template-columns: 1fr; gap: 22px; }
  .pr-alt .pr-step:nth-child(even) .pr-media { order: 0; }
}

/* =====================================================
   LAYOUT C — CHAPTERS
   ===================================================== */
.pr-chapters { max-width: 1080px; margin: 0 auto; }
.pr-chapters .pr-step {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) 1.5fr;
  gap: clamp(24px, 4vw, 80px);
  padding: clamp(36px, 5vw, 72px) 0;
  border-top: 1px solid var(--eh-line);
  align-items: start;
}
.pr-chapters .pr-step:last-child { border-bottom: 1px solid var(--eh-line); }
.pr-chapters .pr-num-big {
  font-family: var(--eh-display); font-weight: 200;
  font-size: clamp(72px, 11vw, 168px); line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,154,69,0.5);
  letter-spacing: -0.02em;
}
.pr-chapters .pr-kicker {
  font-family: var(--eh-mono); font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--eh-amber); margin-bottom: 14px;
}
.pr-chapters .pr-title {
  font-family: var(--eh-display);
  font-size: clamp(28px, 3.4vw, 48px); font-weight: 300;
  letter-spacing: -0.015em; color: var(--eh-ivory); margin: 0 0 18px;
  text-transform: uppercase;
}
.pr-chapters .pr-text {
  font-family: var(--eh-text); font-weight: 300;
  font-size: 16.5px; line-height: 1.72; color: rgba(244,237,225,0.74); max-width: 60ch;
}
@media (max-width: 720px){
  .pr-chapters .pr-step { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .pr-chapters .pr-num-big { font-size: 84px; }
}

/* =====================================================
   PREVIEW SWITCHER (temporary — like the flyout switcher)
   ===================================================== */
.pr-switch {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  background: rgba(12,11,10,0.92);
  border: 1px solid rgba(232,154,69,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  font-family: var(--eh-mono);
}
.pr-switch__lab {
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(244,237,225,0.5); margin-bottom: 8px; display: block;
}
.pr-switch__row { display: flex; gap: 5px; }
.pr-switch button {
  flex: 1; background: transparent;
  border: 1px solid rgba(244,237,225,0.18);
  color: rgba(244,237,225,0.7);
  font-family: var(--eh-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 7px 12px; border-radius: 5px; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.pr-switch button:hover { border-color: rgba(232,154,69,0.5); color: var(--eh-ivory); }
.pr-switch button.on {
  background: var(--eh-amber); border-color: var(--eh-amber); color: #0a0a0a;
}

/* ---- Partnership emphasis (final step highlight when present) ---- */
.pr-step.is-partner .pr-title,
.pr-step.is-partner .pr-num-big { color: var(--eh-amber); }
.pr-chapters .pr-step.is-partner .pr-num-big { -webkit-text-stroke-color: var(--eh-amber); }

/* Mobile small-label legibility */
@media (max-width: 760px) {
  .pr-switch__lab { font-size: 11px; letter-spacing: 0.18em; }
}
