/* PROCESS — engineering focused: a vertical rail, precise timeline
   interactions, restrained transitions between stages. */

.process-intro {
    padding:
        calc(var(--nav-h) + 5rem)
        calc(clamp(1.2rem, 6vw, 6rem) + var(--safe-right))
        3rem
        calc(clamp(1.2rem, 6vw, 6rem) + var(--safe-left));
    background:
        linear-gradient(180deg, rgba(247, 242, 232, .045), transparent 54%),
        var(--bg);
    border-bottom: 1px solid var(--line);
    min-height: min(520px, 62dvh);
    display: grid;
    align-content: end;
}

.process-intro p {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    color: var(--grey);
    margin-bottom: 1rem;
}

.process-intro h1 {
    font-size: clamp(2.6rem, 6.6vw, 6.2rem);
    line-height: .9;
    max-width: 16ch;
    text-wrap: balance;
}

.process-intro span {
    display: block;
    max-width: 48ch;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.65;
}

.process-timeline {
    position: relative;
    padding:
        clamp(2rem, 5vw, 4rem)
        calc(clamp(1.2rem, 6vw, 6rem) + var(--safe-right))
        clamp(4rem, 8vw, 7rem)
        calc(clamp(3.2rem, 8vw, 8rem) + var(--safe-left));
}

.process-timeline__line {
    position: absolute;
    left: clamp(1.6rem, 5vw, 5rem);
    top: 0;
    bottom: 4rem;
    width: 1px;
    background: var(--line);
}

.process-timeline__line span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top center;
}

.process-stage {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.4rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-bottom: 1px solid var(--line);
    transition: background .35s var(--ease);
}

.process-stage:hover {
    background:
        linear-gradient(90deg, rgba(247, 242, 232, .04), transparent 54%);
}

.process-stage:last-child { border-bottom: 0; }

.process-stage__dot {
    position: absolute;
    left: calc(clamp(1.6rem, 5vw, 5rem) * -1 + 1px - 4px);
    top: clamp(2rem, 4vw, 3rem);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 1px solid var(--bg);
    box-shadow: 0 0 0 5px rgba(247, 242, 232, .09);
}

.process-stage__index {
    font-size: .85rem;
    color: var(--accent);
    padding-top: .2rem;
    letter-spacing: .14em;
}

.process-stage__body h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.process-stage__body p {
    color: var(--grey);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 58ch;
}

.process-stage__meta {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1px;
    margin-top: 1.4rem;
    padding-top: 0;
    border: 1px solid var(--line);
    background: var(--line);
    max-width: 780px;
}

.process-stage__meta strong {
    display: grid;
    align-items: center;
    background: rgba(247, 242, 232, .045);
    padding: .85rem;
    color: var(--accent);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.process-stage__meta ul {
    display: grid;
    gap: .25rem;
    background: var(--bg);
    padding: .85rem;
}

.process-stage__meta p {
    background: var(--bg);
    padding: .85rem;
}

.process-stage__meta li {
    color: var(--muted);
    line-height: 1.5;
}

.process-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-rules article {
    min-height: 240px;
    background:
        linear-gradient(180deg, rgba(247, 242, 232, .04), rgba(247, 242, 232, .012)),
        var(--surface);
    padding: clamp(1.4rem, 4vw, 3rem);
    display: grid;
    align-content: space-between;
}

.process-rules h2 {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    text-transform: none;
    margin-bottom: .9rem;
}

.process-rules p {
    color: var(--muted);
    line-height: 1.65;
}

.process-cta {
    display: grid;
    justify-items: center;
    gap: 1.6rem;
    text-align: center;
    padding:
        clamp(4rem, 10vw, 8rem)
        calc(1.2rem + var(--safe-right))
        calc(clamp(6rem, 12vw, 9rem) + var(--safe-bottom))
        calc(1.2rem + var(--safe-left));
    border-top: 1px solid var(--line);
}

.process-cta h2 {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    text-transform: none;
    max-width: 18ch;
}

@media (max-width: 900px) {
    .process-intro {
        padding-top: calc(var(--nav-h) + 4rem);
        padding-bottom: 2.4rem;
    }
    .process-intro h1 {
        font-size: clamp(1.85rem, 7.7vw, 2.65rem);
        line-height: 1.08;
        max-width: 20ch;
    }
    .process-intro span {
        margin-top: 1.15rem;
        font-size: 1rem;
        line-height: 1.5;
        max-width: 29ch;
    }
    .process-timeline {
        padding-top: 1.2rem;
        padding-left: calc(2.6rem + var(--safe-left));
    }
    .process-timeline__line { left: 1.1rem; }
    .process-stage {
        grid-template-columns: 1fr;
        gap: .6rem;
        padding: 1.8rem 0;
    }
    .process-stage__dot { left: -1.6rem; }
    .process-stage__body h2 {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
    }
    .process-stage__meta,
    .process-rules { grid-template-columns: 1fr; }
}
