@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;700;900&family=DM+Sans:wght@300;400;500&display=swap");

/* ─────────────────────────────────────────
   BASE RESET
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────
   WORKFLOW SECTION
───────────────────────────────────────── */
.workflow-section {
  position: relative;
  scroll-margin-top: 120px;
  background: #0a0a0a;
}

/* ─────────────────────────────────────────
   WRAPPER
───────────────────────────────────────── */
.wf {
  padding: 48px 20px;
  font-family: "DM Sans", sans-serif;
}

.wf-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.wf-label {
  display: block;
  margin-bottom: 14px;

  color: #d4af37;
  text-transform: uppercase;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
}

.wf-title {
  margin-bottom: 16px;

  color: #fff;
  line-height: 1.1;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 10vw, 80px);
  font-weight: 900;
}

.wf-desc {
  max-width: 760px;
  margin-bottom: 48px;

  color: #888;
  line-height: 2;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 300;
}

/* ─────────────────────────────────────────
   MOBILE GRID
───────────────────────────────────────── */
.wf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* desktop rows hidden by default */
.wf-row,
.wf-spacer,
.arrow-track {
  display: none;
}

/* ─────────────────────────────────────────
   STEP
───────────────────────────────────────── */
.wf-step {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 16px;

  padding: 20px 0;

  border-bottom: 1px solid #1a1a1a;

  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.wf-step:last-child {
  border-bottom: none;
}

/* connector line */
.wf-step:not(:last-child)::after {
  content: "";

  position: absolute;
  left: 22px;
  bottom: 0;

  width: 1px;
  height: 20px;

  background: linear-gradient(
    to bottom,
    #222 0%,
    transparent 100%
  );

  pointer-events: none;
}

/* stagger */
.wf-step:nth-child(1) { animation-delay: 0.05s; }
.wf-step:nth-child(2) { animation-delay: 0.12s; }
.wf-step:nth-child(3) { animation-delay: 0.19s; }
.wf-step:nth-child(4) { animation-delay: 0.26s; }
.wf-step:nth-child(5) { animation-delay: 0.33s; }
.wf-step:nth-child(6) { animation-delay: 0.40s; }
.wf-step:nth-child(7) { animation-delay: 0.47s; }

/* ─────────────────────────────────────────
   ANIMATION
───────────────────────────────────────── */
@keyframes fadeUp {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   STEP LEFT
───────────────────────────────────────── */
.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;

  flex-shrink: 0;
  width: 44px;
}

.step-num {
  margin-bottom: 8px;

  color: #444;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  color: #d4af37;

  background: rgba(212, 175, 55, 0.06);

  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 12px;
}

.step-icon svg {
  width: 22px;
  height: 22px;

  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ─────────────────────────────────────────
   STEP BODY
───────────────────────────────────────── */
.step-body {
  flex: 1;
  padding-top: 2px;
}

.step-title {
  margin-bottom: 6px;

  color: #fff;
  line-height: 1.2;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(17px, 4.5vw, 22px);
  font-weight: 400;
}

.step-desc {
  margin-bottom: 8px;

  color: #666;
  line-height: 1.8;

  font-size: clamp(12px, 3vw, 13px);
  font-weight: 400;
}

.step-badge {
  display: inline-block;

  padding: 3px 10px;

  color: #d4af37;
  text-transform: uppercase;

  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 100px;

  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
}

/* ─────────────────────────────────────────
   TABLET
───────────────────────────────────────── */
@media (min-width: 600px) {

  .wf {
    padding: 64px 32px;
  }

  .wf-desc {
    margin-bottom: 56px;
  }

  .wf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;

    background: #161616;

    border: 1px solid #161616;
    border-radius: 2px;
  }

  .wf-step {
    flex-direction: column;
    align-items: center;

    gap: 0;

    padding: 36px 24px;

    text-align: center;

    background: #0a0a0a;
    border-bottom: none;
  }

  .wf-step::after {
    display: none;
  }

  .step-left {
    width: auto;
    margin-bottom: 14px;
  }

  .step-num {
    order: -1;

    margin-bottom: 10px;

    font-size: 12px;
  }

  .step-icon {
    width: 52px;
    height: 52px;

    border-radius: 16px;
  }

  .step-body {
    padding-top: 0;
  }

  .step-desc {
    max-width: 200px;
    margin-inline: auto;
  }
}

/* ─────────────────────────────────────────
   DESKTOP
───────────────────────────────────────── */
@media (min-width: 960px) {

  .wf {
    padding:
      clamp(60px, 10vw, 100px)
      clamp(32px, 5vw, 60px);
  }

  .wf-desc {
    margin-bottom: clamp(60px, 8vw, 100px);
  }

  /* mobile grid hidden */
  .wf-grid {
    display: none;
  }

  /* desktop rows */
  .wf-row {
    position: relative;

    display: grid;
    gap: 0;
  }

  .wf-row-top {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 64px;
  }

  .wf-row-bot {
    grid-template-columns: repeat(4, 1fr);
  }

  .wf-spacer {
    display: block;
  }

  /* arrow */
  .arrow-track {
    display: block;

    position: absolute;
    inset: 0 auto auto 0;

    width: 100%;

    pointer-events: none;
    overflow: visible;
  }

  /* desktop card */
  .wf-row .wf-step {
    flex-direction: column;
    align-items: center;

    gap: 0;

    padding: 72px 12px 0;

    text-align: center;

    background: none;
    border-bottom: none;
  }

  .wf-row .wf-step::after {
    display: none;
  }

  /* desktop stagger */
  .wf-row-top .wf-step:nth-child(2) {
    animation-delay: 0.05s;
  }

  .wf-row-top .wf-step:nth-child(3) {
    animation-delay: 0.12s;
  }

  .wf-row-top .wf-step:nth-child(4) {
    animation-delay: 0.19s;
  }

  .wf-row-top .wf-step:nth-child(5) {
    animation-delay: 0.26s;
  }

  .wf-row-bot .wf-step:nth-child(2) {
    animation-delay: 0.40s;
  }

  .wf-row-bot .wf-step:nth-child(3) {
    animation-delay: 0.48s;
  }

  .wf-row-bot .wf-step:nth-child(4) {
    animation-delay: 0.56s;
  }

  /* left */
  .wf-row .step-left {
    width: auto;

    margin-bottom: 0;
  }

  .wf-row .step-num {
    order: -1;

    margin-bottom: 16px;

    font-size: clamp(20px, 2.5vw, 28px);
  }

  .wf-row .step-icon {
    width: clamp(48px, 7vw, 64px);
    height: clamp(48px, 7vw, 64px);

    margin-bottom: 20px;

    background: transparent;
    border: none;
    border-radius: 18px;
  }

  .wf-row .step-icon svg {
    width: 100%;
    height: 100%;
  }

  /* body */
  .wf-row .step-body {
    padding-top: 0;
  }

  .wf-row .step-title {
    margin-bottom: 10px;

    font-size: clamp(16px, 1.8vw, 21px);
  }

  .wf-row .step-desc {
    max-width: 190px;

    margin-inline: auto;

    font-size: clamp(11px, 1.1vw, 13px);
  }

  .wf-row .step-badge {
    margin-top: 12px;

    padding: 4px 14px;

    font-size: 10px;
  }
}