/* Process page — v3 light theme. Animations preserved intact.
   v4: added denser topo drift + amber glow orbs + between-step ornaments. */

/* Fixed ambient background layer (covers whole page, drifting topo) */
.process-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("../images/topo-texture.svg");
  background-size: 70%;
  background-repeat: repeat;
  background-position: 0 0;
  will-change: transform, background-position;
  animation: process-topo-drift 40s linear infinite;
}
@keyframes process-topo-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 1600px -800px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-ambient { animation: none; }
}

/* Amber glow orbs — float slowly between timeline steps */
.process-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center,
    oklch(72% 0.15 55 / 0.22) 0%,
    oklch(72% 0.15 55 / 0.08) 40%,
    transparent 70%);
  z-index: 1;
  will-change: transform;
}
.process-orb--a { width: 320px; height: 320px; top: 18%; right: -4%; animation: orb-drift 22s ease-in-out infinite; }
.process-orb--b { width: 280px; height: 280px; top: 52%; left: -3%; animation: orb-drift 26s ease-in-out infinite reverse; }
.process-orb--c { width: 240px; height: 240px; top: 78%; right: 10%; animation: orb-drift 20s ease-in-out infinite; animation-delay: 4s; }
@keyframes orb-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(-40px, 60px, 0) scale(1.08); }
  66%  { transform: translate3d(40px, 30px, 0) scale(0.95); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .process-orb { animation: none; }
}

/* Between-step ornaments — show between each timeline step on desktop */
.process-between-ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 2;
}

.process-between-ornament__dot {
  width: 6px; height: 6px;
  background: var(--color-amber);
  border-radius: 50%;
  opacity: 0.75;
}
.process-between-ornament__chevron {
  width: 20px; height: 10px;
  display: inline-block;
  color: var(--color-bridge-blue);
  opacity: 0.85;
}
.process-between-ornament__line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-amber), transparent);
}
@media (max-width: 1023px) {
  .process-between-ornament { padding: var(--space-md) 0; }
}
/* v8: hide between-step ornaments entirely on mobile (tight spacing, steps read as-is) */
@media (max-width: 768px) {
  .process-between-ornament { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .process-between-ornament { opacity: 1; transform: none; }
}

.process-hero {
  padding: calc(140px + env(safe-area-inset-top, 0px)) 0 var(--space-xl);
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
/* v10: process-hero dark variant — ink band with topo + radial amber glow */
.process-hero.section--dark {
  background: var(--color-ink);
  color: var(--color-cream-white);
  isolation: isolate;
}
.process-hero.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/topo-texture-light.svg");
  background-size: cover;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.process-hero.section--dark::after {
  /* Soft amber radial glow left side */
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center,
    oklch(72% 0.15 55 / 0.14) 0%,
    transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.process-hero.section--dark .container { position: relative; z-index: 2; }
.process-hero.section--dark h1 { color: var(--color-cream-white); }
.process-hero.section--dark p { color: oklch(82% 0.015 85); }
.process-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin-top: var(--space-md);
  max-width: 15ch;
}
.process-hero p {
  font-family: var(--font-body);
  font-size: var(--text-sub);
  color: var(--color-mid-char);
  margin-top: var(--space-md);
  max-width: 56ch;
  line-height: 1.55;
}
/* v8: process hero mobile tightening */
@media (max-width: 768px) {
  .process-hero {
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
    padding-bottom: var(--space-md);
  }
  .process-hero h1 { font-size: clamp(34px, 9vw, 52px); margin-top: 10px; }
  .process-hero p { font-size: 15px; margin-top: 10px; }
}

/* v12: Austin flagged the L-bracket + dot ornament as hero noise.
   Removed; hero now carries on typography + ambient orbs alone. */
.process-hero__ornament {
  display: none;
}

/* =========================================================
   TIMELINE (scroll-locked signature animation — preserved)
   ========================================================= */
.timeline {
  position: relative;
  background: transparent;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  z-index: 2;
}

@media (min-width: 1024px) {
  .timeline {
    padding-top: 0;
    padding-bottom: 0;
  }
  .timeline__wrap {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: var(--space-2xl);
    align-items: start;
  }
  .timeline__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  .timeline__steps-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }
  .timeline__scroll {
    display: flex;
    flex-direction: column;
  }
  .timeline__step {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
  }
}
/* Below 1024 — standard stacked */
@media (max-width: 1023px) {
  .timeline__steps-left { display: none; }
  .timeline__step {
    padding: var(--space-xl) 0;
    border-top: 1px solid oklch(18% 0.04 264 / 0.12);
  }
  .timeline__step:last-of-type { border-bottom: 1px solid oklch(18% 0.04 264 / 0.12); }
}
/* v8: compact timeline steps on mobile */
@media (max-width: 768px) {
  .timeline { padding-top: var(--space-md); padding-bottom: var(--space-lg); }
  .timeline__step { padding: var(--space-md) 0; }
  .timeline__step-mobile-num { font-size: 44px; margin-bottom: 6px; }
  .timeline__step-h { font-size: clamp(22px, 6vw, 28px); margin-bottom: 10px; }
  .timeline__step-body { font-size: 15px; line-height: 1.55; margin-bottom: 10px; }
  .url-demo { font-size: 12px; padding: 10px 12px; min-width: auto; }
}

.timeline__step-left {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  transition: opacity 400ms var(--ease-out-quart), transform 400ms var(--ease-out-quart);
  opacity: 0.22;
  transform: translateX(-8px);
}
.timeline__step-left.is-active {
  opacity: 1;
  transform: translateX(0);
}
.timeline__step-left-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--color-amber);
  transition: transform 400ms var(--ease-out-quart);
  transform-origin: left center;
}
.timeline__step-left.is-active .timeline__step-left-num {
  transform: scale(1.08);
}
.timeline__step-left-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--color-ink);
  line-height: 1;
  letter-spacing: -0.01em;
}

.timeline__step-right {
  max-width: 54ch;
}
.timeline__step-mobile-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  color: var(--color-amber);
  line-height: 1;
  margin-bottom: var(--space-sm);
}
@media (min-width: 1024px) {
  .timeline__step-mobile-num { display: none; }
}
.timeline__step-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: var(--space-md);
}
.timeline__step-body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-mid-char);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}
.timeline__step-body strong {
  color: var(--color-ink);
  font-weight: 400;
}

/* Type-out address bar between Steps 2 and 3 — light theme */
.url-demo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: var(--space-md) 0 0;
  padding: 14px 18px;
  background: var(--color-ink);
  border: 1px solid oklch(18% 0.04 264 / 0.2);
  min-width: min(380px, 100%);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-cream-white);
  letter-spacing: 0.04em;
}
.url-demo svg {
  width: 12px; height: 12px;
  stroke: var(--color-amber);
  fill: none;
  flex-shrink: 0;
}
.url-demo__text {
  position: relative;
  overflow: hidden;
}
.url-demo__text::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 10%; bottom: 10%;
  width: 2px;
  background: var(--color-amber);
  animation: blink 900ms steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .url-demo__text::after { animation: none; opacity: 1; }
}

/* =========================================================
   v5: deep-focus dark section after timeline (2nd dark moment on page)
   ========================================================= */
.process-deep {
  padding: var(--space-2xl) 0;
  background: var(--color-ink);
  color: var(--color-cream-white);
  position: relative;
  overflow: hidden;
}
.process-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/topo-texture-light.svg");
  background-size: cover;
  opacity: 0.06;
  pointer-events: none;
}
.process-deep::after {
  content: "";
  position: absolute;
  top: -20%; left: 50%;
  width: 70%; height: 140%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    oklch(72% 0.15 55 / 0.12) 0%,
    transparent 60%);
  pointer-events: none;
}
.process-deep__inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.process-deep__h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  color: var(--color-cream-white);
  margin-bottom: var(--space-xl);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.process-deep__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 780px) {
  .process-deep__pillars { grid-template-columns: 1fr; gap: var(--space-md); }
}
.process-deep__pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid oklch(68% 0.155 55 / 0.35);
}
.process-deep__pillar-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 80px);
  color: var(--color-amber);
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
}
/* v9: yellow dot above $0 removed (Austin flagged 2026-04-16) */
.process-deep__pillar-dash {
  color: var(--color-mid-char);
  font-weight: 400;
  margin: 0 2px;
}
.process-deep__pillar-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: oklch(82% 0.015 85);
  line-height: 1.55;
  max-width: 26ch;
}
/* v8: tighter process-deep on mobile */
@media (max-width: 768px) {
  .process-deep { padding: 48px 0; }
  .process-deep__h2 {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: var(--space-md);
  }
  .process-deep__pillars { gap: 10px; }
  .process-deep__pillar { padding: var(--space-md) 8px; }
  .process-deep__pillar-num { font-size: clamp(32px, 8vw, 44px); }
  .process-deep__pillar-text { font-size: 14px; }
}
