/* ==========================================================================
   Fortune Group — processing sections as a production line
   seven numbered stations on a conveyor rail, raw material in -> finished part out
   ========================================================================== */
.gf-line {
  --l-ink: #1b1f24;
  --l-soft: #5a636d;
  --l-line: rgba(27, 31, 36, 0.1);
  --l-mist: #f3f5f7;
  --l-red: #d90a0a;
  --l-grad: linear-gradient(100deg, #ff3b2f 0%, #d90a0a 45%, #7e0606 100%);
  --l-font: "Archivo", "Manrope", system-ui, sans-serif;
  --l-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  padding: clamp(70px, 8vw, 120px) 0;
  background: linear-gradient(180deg, var(--l-mist) 0%, #fff 100%);
  overflow: hidden;
}
.gf-line__head { max-width: 860px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.gf-line__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 600 15px/1 var(--l-font); color: var(--l-red); }
.gf-line__eyebrow::before, .gf-line__eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--l-grad); }
.gf-line__eyebrow::after { transform: scaleX(-1); }
.gf-line .gf-line__title { margin: 0 0 16px; font: 800 clamp(28px, 3.4vw, 50px)/1.05 var(--l-font); font-variation-settings: "wdth" 110; letter-spacing: -0.025em; color: var(--l-ink); text-transform: none; }
.gf-line .gf-line__title::first-letter { text-transform: uppercase; }
.gf-line__text { margin: 0 auto; max-width: 60ch; font-size: 16px; line-height: 1.7; color: var(--l-soft); }

/* the board */
.gf-line__board { position: relative; padding: 0 0 10px; }
.gf-line__track { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gf-line__st {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 210px;
  padding: 20px 18px 54px;
  background: #fff;
  border: 1.5px solid rgba(188, 0, 0, 0.10);
  border-radius: 22px;
  transition: transform 0.4s var(--l-ease), box-shadow 0.4s var(--l-ease), border-color 0.3s;
  opacity: 0; transform: translateY(20px);
}
.gf-line.is-in .gf-line__st { opacity: 1; transform: none; transition: opacity 0.6s ease calc(var(--i) * 0.1s), transform 0.7s var(--l-ease) calc(var(--i) * 0.1s), box-shadow 0.4s, border-color 0.3s; }
.gf-line__no { position: absolute; top: 14px; right: 16px; font: 800 30px/1 var(--l-font); font-variation-settings: "wdth" 120; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.2px rgba(27, 31, 36, 0.18); transition: -webkit-text-stroke-color 0.3s; }
.gf-line__icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: rgba(188, 0, 0, 0.10); color: #BC0000; font-size: 22px; transition: background 0.35s, color 0.35s, transform 0.45s var(--l-ease); }
.gf-line .gf-line__name { margin: 0; font: 800 16px/1.3 var(--l-font); letter-spacing: -0.01em; color: var(--l-ink); text-transform: none; }
.gf-line .gf-line__name::first-letter { text-transform: uppercase; }
/* the station's connector down to the rail */
.gf-line__dot { position: absolute; left: 50%; bottom: -27px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 3px solid rgba(27, 31, 36, 0.25); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; z-index: 2; }
.gf-line__dot::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 14px; margin-left: -1px; background: rgba(27, 31, 36, 0.15); }

/* station in use: hover, or the one the conveyor highlight is passing */
.gf-line__st:hover, .gf-line__st.is-live { transform: translateY(-8px); border-color: rgba(188, 0, 0, 0.25); box-shadow: 0 16px 40px rgba(188, 0, 0, 0.16); }
.gf-line__st:hover .gf-line__icon, .gf-line__st.is-live .gf-line__icon { background: #BC0000; color: #fff; transform: rotate(-8deg); }
.gf-line__st:hover .gf-line__no, .gf-line__st.is-live .gf-line__no { -webkit-text-stroke-color: rgba(217, 10, 10, 0.6); }
.gf-line__st:hover .gf-line__dot, .gf-line__st.is-live .gf-line__dot { border-color: var(--l-red); background: var(--l-red); box-shadow: 0 0 0 6px rgba(217, 10, 10, 0.15); }

/* conveyor rail with moving chevrons */
.gf-line__rail {
  position: relative; height: 10px; margin-top: 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e3e7ec, #cfd5dc);
  box-shadow: inset 0 1px 2px rgba(27, 31, 36, 0.25);
  overflow: hidden;
}
.gf-line__rail::before { /* belt texture moving left -> right */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(27, 31, 36, 0.14) 0 2px, transparent 2px 14px);
  animation: gf-belt 1.6s linear infinite;
}
.gf-line__flow { /* a red "part" that rides the belt end to end */
  position: absolute; top: 1px; left: 0; width: 70px; height: 8px; border-radius: 8px;
  background: var(--l-grad); box-shadow: 0 0 12px rgba(255, 40, 20, 0.7);
  transform: translateX(-80px);
  transition: transform 0.9s cubic-bezier(0.6, 0, 0.3, 1);
}
@keyframes gf-belt { to { background-position: 14px 0; } }
@keyframes gf-flow { 0% { transform: translateX(-80px); } 100% { transform: translateX(calc(var(--rail-w, 1200px) + 10px)); } }
.gf-line__ends { display: flex; justify-content: space-between; margin-top: 12px; font: 600 13px/1 var(--l-font); color: var(--l-soft); }
.gf-line__ends span:first-child::before { content: "\2192\00a0"; color: var(--l-red); }
.gf-line__ends span:last-child::after { content: "\00a0\2713"; color: var(--l-red); }

/* responsive */
@media (max-width: 1199px) {
  .gf-line__track { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 50px; }
}
@media (max-width: 767px) {
  .gf-line__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; row-gap: 12px; }
  .gf-line__st { min-height: 170px; padding-bottom: 20px; }
  .gf-line__dot, .gf-line__rail, .gf-line__ends { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gf-line__st { opacity: 1; transform: none; }
  .gf-line__rail::before, .gf-line__flow { animation: none; }
}
