/* ============================================================
   LongRun — Process Block
   Self-contained, scoped under .lr-process. Drop into any page.
   No global resets, no body styling. Safe to coexist.
   ============================================================ */

@font-face {
  font-family: "Aeonik";
  src: url("fonts/Aeonik-Regular.woff2") format("woff2"),
       url("fonts/Aeonik-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.lr-process {
  /* ---- Tokens (scoped to the block) ---- */
  --lr-white: #FFFFFF;
  --lr-black: #000000;
  --lr-grey: #616161;
  --lr-grey-light: #F5F5F7;
  --lr-grey-mid: #D9D9DC;
  --lr-orange: #FF6E30;
  --lr-orange-deep: #E9402B;
  --lr-gradient-orange: linear-gradient(90deg, #FF6E30 4.04%, #E9402B 83.22%);
  --lr-ease: cubic-bezier(.28,.11,.32,1);
  --lr-fast: .21s var(--lr-ease);
  --lr-default: .42s var(--lr-ease);
  --lr-pad: 46px;

  position: relative;
  padding: 120px var(--lr-pad) 140px;
  max-width: 1680px;
  margin: 0 auto;

  font-family: "Aeonik", ui-sans-serif, system-ui, sans-serif;
  color: var(--lr-black);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  /* Re-establish 10px = 10px inside the block without polluting the host page.
     If your host already uses html { font-size: 10px }, this is a no-op. */
  font-size: 16px;
}

/* Convert all `rem` inside the block to a 10px base by mounting a
   ‘rem-anchor’ wrapper. We also expose 10px === 10px via :where to avoid
   reflowing the host page. */
.lr-process * { box-sizing: border-box; }
.lr-process h2,
.lr-process h3 { font-weight: 400; margin: 0; }
.lr-process p { margin: 0; }

/* ── Helpers ───────────────────────────────────────────── */
.lr-process .text-grad {
  background: var(--lr-gradient-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lr-process .lr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 100%;
  text-transform: uppercase;
}
.lr-process .lr-eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lr-gradient-orange);
}

/* ── Header ────────────────────────────────────────────── */
.lr-process .process-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
  max-width: 960px;
}
.lr-process .process-head h2 {
  font-size: 60px;
  line-height: 110%;
  letter-spacing: -0.014em;
  text-wrap: balance;
  margin-top: 8px;
}

/* ── Vertical stack ────────────────────────────────────── */
.lr-process .fc {
  position: relative;
  display: flex;
  justify-content: center;
}
.lr-process .fc-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1020px;
  gap: 0;
}

/* ── Phase node ────────────────────────────────────────── */
.lr-process .phase-node {
  width: min(720px, 100%);
  position: relative;
  background: var(--lr-white);
  border: 1.5px solid var(--lr-grey-light);
  border-radius: 16px;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: border-color var(--lr-default), transform var(--lr-default);
}
.lr-process .phase-node.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--lr-ease), transform .55s var(--lr-ease), border-color var(--lr-default);
}
.lr-process .phase-node:hover {
  border-color: var(--lr-black);
  transform: translateY(-2px);
}

.lr-process .pn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--lr-grey-mid);
}
.lr-process .pn-name {
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 100%;
}
.lr-process .pn-week {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lr-grey);
  background: var(--lr-grey-light);
  padding: 5px 9px;
  border-radius: 100px;
  white-space: nowrap;
}

.lr-process .pn-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lr-process .pn-step {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  position: relative;
  transition: color var(--lr-fast);
}
.lr-process .pn-step + .pn-step {
  border-top: 1px dashed var(--lr-grey-light);
}
.lr-process .pn-step:hover { color: var(--lr-orange-deep); }
.lr-process .pn-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lr-white);
  border: 1.5px solid var(--lr-grey-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  color: var(--lr-grey);
  font-variant-numeric: tabular-nums;
  transition: background var(--lr-fast), border-color var(--lr-fast), color var(--lr-fast);
}
.lr-process .pn-step:hover .pn-bullet {
  background: var(--lr-black);
  border-color: var(--lr-black);
  color: var(--lr-white);
}
.lr-process .pn-label { font-size: 16px; }
.lr-process .step-tools { display: flex; gap: 4px; }

.lr-process .tool-chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lr-grey-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--lr-fast);
}
.lr-process .tool-chip:hover { transform: scale(1.08); }
.lr-process .tool-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.lr-process .tool-chip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--lr-black);
  color: var(--lr-white);
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 100%;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--lr-fast), transform var(--lr-fast);
  z-index: 50;
}
.lr-process .tool-chip:hover[data-tip]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Connector (dashed line + traveling pulse) ─────────── */
.lr-process .connector {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lr-process .conn-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background-image: linear-gradient(to bottom, var(--lr-grey-mid) 50%, transparent 50%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
  animation: lr-march-down 0.6s linear infinite;
}
.lr-process .connector.no-anim .conn-line { animation: none; }
@keyframes lr-march-down {
  to { background-position: 0 8px; }
}

.lr-process .conn-pulse {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lr-orange);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px 2px rgba(255,110,48,0.7);
  animation: lr-pulse-down 2.4s var(--lr-ease) infinite;
}
.lr-process .connector.no-anim .conn-pulse { display: none; }
@keyframes lr-pulse-down {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.lr-process .conn-label {
  position: relative;
  z-index: 2;
  background: var(--lr-white);
  padding: 6px 12px;
  border: 1.5px solid var(--lr-orange);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lr-orange-deep);
  box-shadow: 0 0 0 6px rgba(255,110,48,0.08);
  white-space: nowrap;
}
.lr-process .connector:has(.conn-label) { height: 60px; }
.lr-process .connector.hero .conn-label {
  background: var(--lr-gradient-orange);
  color: var(--lr-white);
  border-color: transparent;
  font-weight: 500;
  letter-spacing: 0.1em;
  box-shadow: 0 0 0 8px rgba(255,110,48,0.12);
}
.lr-process .connector.hero .conn-pulse {
  background: var(--lr-white);
  box-shadow: 0 0 16px 3px rgba(255,255,255,0.8);
}

/* ── Handover panel ────────────────────────────────────── */
/* Light treatment: sits comfortably between a white section above and
   a dark section below without competing with either. */
.lr-process .handover {
  width: min(980px, 100%);
  background: var(--lr-white);
  color: var(--lr-black);
  border: 1.5px solid var(--lr-grey-light);
  border-radius: 20px;
  padding: 44px 40px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--lr-ease), transform .7s var(--lr-ease);
}
.lr-process .handover.in { opacity: 1; transform: none; }
.lr-process .handover::before {
  content: none;
}

.lr-process .handover-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  text-align: center;
}
.lr-process .handover-eyebrow { color: var(--lr-grey); }
.lr-process .handover-title {
  font-size: 34px;
  line-height: 115%;
  letter-spacing: -0.014em;
  margin: 4px 0 0;
  text-wrap: balance;
}
.lr-process .handover-sub {
  color: var(--lr-grey);
  font-size: 14.5px;
  line-height: 150%;
  max-width: 52ch;
  margin: 4px 0 0;
}

.lr-process .handover-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.lr-process .handover-card {
  background: var(--lr-white);
  border: 1px solid var(--lr-grey-light);
  border-radius: 14px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform var(--lr-fast), border-color var(--lr-fast), box-shadow var(--lr-fast);
}
.lr-process .handover-card:hover {
  border-color: var(--lr-grey-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.lr-process .handover-card.hero {
  background: var(--lr-gradient-orange);
  border-color: transparent;
  color: var(--lr-white);
}
.lr-process .handover-card.hero:hover {
  box-shadow: 0 16px 44px rgba(233,64,43,0.32);
}

.lr-process .hc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lr-process .hc-stage {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lr-grey);
}
.lr-process .handover-card.hero .hc-stage { color: rgba(255,255,255,0.9); }

.lr-process .hc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lr-grey-light);
  border: 1px solid var(--lr-grey-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lr-black);
  flex-shrink: 0;
}
.lr-process .handover-card.hero .hc-icon {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
  color: var(--lr-white);
}

.lr-process .hc-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lr-process .hc-label {
  font-size: 21px;
  line-height: 115%;
  letter-spacing: -0.005em;
  color: var(--lr-black);
}
.lr-process .handover-card.hero .hc-label { color: var(--lr-white); }
.lr-process .hc-meta {
  font-size: 13px;
  line-height: 150%;
  color: var(--lr-grey);
  text-wrap: pretty;
}
.lr-process .handover-card.hero .hc-meta { color: rgba(255,255,255,0.92); }

.lr-process .hc-owner {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lr-grey);
  padding-top: 14px;
  border-top: 1px dashed var(--lr-grey-mid);
}
.lr-process .hc-owner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lr-grey-mid);
}
.lr-process .handover-card.hero .hc-owner {
  color: rgba(255,255,255,0.95);
  border-top-color: rgba(255,255,255,0.3);
}
.lr-process .handover-card.hero .hc-owner-dot { background: var(--lr-white); }

.lr-process .handover-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lr-grey-mid);
  align-self: center;
}

/* ── Responsive ──────────────────────────────────────────
   Breakpoints aligned with the rest of longrun.agency:
   1100 (tablet), 967 (large phone), 650 (phone). */
@media (max-width: 1100px) {
  .lr-process { padding: 100px 32px 120px; }
}
@media (max-width: 967px) {
  .lr-process { padding: 80px 24px 100px; }
  .lr-process .handover { padding: 30px 20px; }
  .lr-process .handover-flow { grid-template-columns: 1fr; }
  .lr-process .handover-arrow {
    transform: rotate(90deg);
    justify-self: center;
    padding: 4px 0;
  }
}
@media (max-width: 650px) {
  .lr-process { padding: 60px 16px 80px; }
  .lr-process .process-head h2 { font-size: 40px; }
  .lr-process .pn-name { font-size: 22px; }
  .lr-process .handover-title { font-size: 26px; }
  .lr-process .phase-node { padding: 20px 20px 16px; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lr-process .conn-line { animation: none; }
  .lr-process .conn-pulse { display: none; }
  .lr-process .phase-node,
  .lr-process .handover {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
