/* ===== Onepro: one picture read left to right on the six-station line. On the left, the tools a team holds its
   process in today fold, as strands of light, into the station where that work lives. On the right the same line
   runs on, steady, into the dawn, while the models above it pass on a rising path and fade. Nothing moves:
   hovering or focusing a station lights its tools, hovering a group lights its station. No gold here. ===== */
.onepro { position: relative; padding-block: var(--space-2xl) var(--space-3xl); overflow-x: clip; }
.onepro__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-lg); align-items: end; margin-bottom: var(--space-xl); }
.onepro__head h2 { grid-column: 1 / 8; max-width: 18ch; }
.onepro__head .lead { grid-column: 8 / 13; max-width: 44ch; }

.onepro__s-ink { stop-color: var(--color-ink); }

/* ===== The stage: one grid. Six station columns, then the line running on. ===== */
.onepro__stage { --face: 84px; --lip: 12px; --cols: 6; position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 3.6fr); grid-template-rows: minmax(300px, auto) var(--face) auto; }
.onepro__stage > * { min-width: 0; }


/* ===== Groups: the tools, muted, each closing into its station ===== */
.onepro__group { grid-row: 1; display: flex; flex-direction: column; align-items: center; padding-inline: var(--space-2xs); transition: opacity var(--dur-short) var(--ease-out); }
.onepro__group[data-st="1"] { grid-column: 1; padding-top: var(--space-3xl); }
.onepro__group[data-st="2"] { grid-column: 2; }
.onepro__group[data-st="3"] { grid-column: 3; padding-top: 136px; }
.onepro__group[data-st="6"] { grid-column: 6; padding-top: var(--space-2xl); }
.onepro__gname { margin-bottom: var(--space-md); font-size: var(--text-md); font-weight: 500; line-height: 1.25; color: var(--color-ink); text-align: center; }
.onepro__tools { display: grid; justify-content: center; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; opacity: 0.82; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.onepro__tool { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-md); line-height: 1.2; color: var(--color-ink-2); white-space: nowrap; }
.onepro__mark { flex: none; width: 24px; height: 24px; color: var(--color-muted); transform: scale(var(--s, 1)); }
.onepro__fold { flex: 1 1 auto; width: 100%; min-height: 56px; margin-top: var(--space-md); overflow: visible; opacity: 0.8; transition: opacity var(--dur-short) var(--ease-out); }
.onepro__strands { fill: none; stroke-width: 1.5; }
.onepro__fold * { vector-effect: non-scaling-stroke; }

/* ===== The line: a lit slab, six stations, cut square ===== */
.onepro__line { display: contents; margin: 0; padding: 0; list-style: none; }
.onepro__cell, .onepro__run { position: relative; grid-row: 2; background: linear-gradient(to bottom, var(--color-paper-3), color-mix(in oklab, var(--color-paper-3) 55%, var(--color-paper-2))); box-shadow: inset 0 2px 0 color-mix(in oklab, var(--color-ink) 72%, transparent), var(--shadow-card); }
/* the slab sits over the light that falls into it */
.onepro__cell, .onepro__run { z-index: 1; }
.onepro__cell + .onepro__cell { border-left: 1px solid var(--color-rule-2); }
/* the top face, so the slab has depth */
.onepro__cell::before, .onepro__run::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--lip); background: linear-gradient(to top, color-mix(in oklab, var(--color-ink) 16%, var(--color-paper-3)), color-mix(in oklab, var(--color-ink) 4%, var(--color-paper-2))); pointer-events: none; }
/* the slot where a group's work comes in, and its light */
.onepro__cell--holds::after { content: ""; position: absolute; left: 50%; bottom: calc(100% - 6px); width: 64%; height: 30px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in oklab, var(--color-ink) 42%, transparent), transparent); opacity: 0.6; pointer-events: none; transition: opacity var(--dur-short) var(--ease-out); }
.onepro__cell[data-st="1"] { grid-column: 1; } .onepro__cell[data-st="2"] { grid-column: 2; } .onepro__cell[data-st="3"] { grid-column: 3; }
.onepro__cell[data-st="4"] { grid-column: 4; } .onepro__cell[data-st="5"] { grid-column: 5; } .onepro__cell[data-st="6"] { grid-column: 6; }

.onepro__st { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-3xs); width: 100%; height: 100%; min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: 0; background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1.2 var(--font-body); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.onepro__st::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in oklab, var(--color-ink) 12%, transparent), transparent 80%); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.onepro__st:active { transform: translateY(1px); }
.onepro__st:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; transition: none; }
.onepro__st:disabled { opacity: 0.5; cursor: not-allowed; }
.onepro__n { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }

/* the line runs on, steady, into the morning */
.onepro__run { grid-column: 7; background: linear-gradient(to right, color-mix(in oklab, var(--color-paper-3) 70%, var(--color-paper-2)), color-mix(in oklab, var(--color-dawn) 9%, var(--color-paper-3))); box-shadow: inset 0 2px 0 color-mix(in oklab, var(--color-ink) 72%, transparent), var(--shadow-card); }
.onepro__run::before { background: linear-gradient(to right, color-mix(in oklab, var(--color-ink) 10%, var(--color-paper-3)), color-mix(in oklab, var(--color-dawn) 20%, var(--color-paper-3))); }

/* ===== The models: passing on a rising path, fading ===== */
.onepro__sky { grid-row: 1; grid-column: 7; position: relative; }
.onepro__models { --drop: calc(var(--space-xl) + var(--lip)); position: absolute; inset: 0 0 var(--space-xl) 0; margin: 0; padding: 0; list-style: none; container-type: size; }
.onepro__model { --x: 6; --y: 6; --o: 1; position: absolute; left: calc(var(--x) * 1%); bottom: calc(var(--y) * 1%); display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); line-height: 1.2; color: var(--color-ink-2); white-space: nowrap; opacity: var(--o); transform: translateX(-50%); }
.onepro__model .onepro__mark { width: 28px; height: 28px; }
/* while it runs, a model lights the line under it: a soft fall of azure light ending in a pool on the slab */
.onepro__model { --beam: calc(var(--y) * 1cqh + var(--drop) - var(--space-xs)); }
.onepro__model::after, .onepro__model::before { content: ""; position: absolute; z-index: -1; left: 50%; transform: translateX(-50%); pointer-events: none; }
.onepro__model::after { top: calc(100% + var(--space-xs)); width: 56px; height: var(--beam); background: color-mix(in oklab, var(--color-accent) 18%, transparent);
  -webkit-mask: linear-gradient(to right, transparent, var(--color-ink) 35% 65%, transparent), linear-gradient(to bottom, transparent, var(--color-ink));
  -webkit-mask-composite: source-in; mask: linear-gradient(to right, transparent, var(--color-ink) 35% 65%, transparent), linear-gradient(to bottom, transparent, var(--color-ink)); mask-composite: intersect; }
.onepro__model::before { top: calc(100% + var(--beam) - 4px); width: 60px; height: 14px; background: color-mix(in oklab, var(--color-accent) 75%, transparent);
  -webkit-mask: radial-gradient(closest-side, var(--color-ink), transparent); mask: radial-gradient(closest-side, var(--color-ink), transparent); }
.onepro__model:nth-child(1) { --x: 9; --y: 8; --o: 0.95; }
.onepro__model:nth-child(2) { --x: 28; --y: 34; --o: 0.9; }
.onepro__model:nth-child(3) { --x: 47; --y: 49; --o: 0.82; }
.onepro__model:nth-child(4) { --x: 65; --y: 52; --o: 0.74; }
.onepro__model:nth-child(5) { --x: 80; --y: 42; --o: 0.46; }
.onepro__model:nth-child(6) { --x: 90; --y: 28; --o: 0.3; }
.onepro__model:nth-child(7) { --x: 97; --y: 14; --o: 0.16; }
.onepro__ghost { display: block; width: 24px; height: 24px; border: 1px solid var(--color-ink-2); }
.onepro__model:nth-child(6) .onepro__ghost { width: 20px; height: 20px; }
.onepro__model:nth-child(7) .onepro__ghost { width: 16px; height: 16px; }

/* ===== The two halves' words, under the line ===== */
.onepro__cap { grid-row: 3; padding-top: var(--space-xl); }
.onepro__cap--one { grid-column: 1 / 7; padding-right: var(--space-xl); }
.onepro__cap--two { grid-column: 7; padding-left: var(--space-xl); }
.onepro__cap h3 { margin-bottom: var(--space-sm); }
.onepro__cap p { max-width: 46ch; color: var(--color-ink-2); }
.onepro__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-sm); }

/* ===== Lighting: a station and its tools, both ways ===== */
.onepro__stage:has(.onepro__st:is(:hover, :focus-visible, .is-on)) .onepro__group,
.onepro__stage:has(.onepro__group:hover) .onepro__group { opacity: 0.5; }
.onepro__stage:has(.onepro__st[data-st="1"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="1"],
.onepro__stage:has(.onepro__st[data-st="2"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="2"],
.onepro__stage:has(.onepro__st[data-st="3"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="3"],
.onepro__stage:has(.onepro__st[data-st="6"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="6"],
.onepro__stage .onepro__group:hover { opacity: 1; }
.onepro__stage:has(.onepro__st[data-st="1"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="1"] :is(.onepro__tools, .onepro__fold),
.onepro__stage:has(.onepro__st[data-st="2"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="2"] :is(.onepro__tools, .onepro__fold),
.onepro__stage:has(.onepro__st[data-st="3"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="3"] :is(.onepro__tools, .onepro__fold),
.onepro__stage:has(.onepro__st[data-st="6"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="6"] :is(.onepro__tools, .onepro__fold),
.onepro__group:hover :is(.onepro__tools, .onepro__fold) { opacity: 1; }
.onepro__stage:has(.onepro__st[data-st="1"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="1"] .onepro__tools,
.onepro__stage:has(.onepro__st[data-st="2"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="2"] .onepro__tools,
.onepro__stage:has(.onepro__st[data-st="3"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="3"] .onepro__tools,
.onepro__stage:has(.onepro__st[data-st="6"]:is(:hover, :focus-visible, .is-on)) .onepro__group[data-st="6"] .onepro__tools,
.onepro__group:hover .onepro__tools { transform: translateY(-4px); }
.onepro__st:is(:hover, :focus-visible, .is-on)::before,
.onepro__stage:has(.onepro__group[data-st="1"]:hover) .onepro__cell[data-st="1"] .onepro__st::before,
.onepro__stage:has(.onepro__group[data-st="2"]:hover) .onepro__cell[data-st="2"] .onepro__st::before,
.onepro__stage:has(.onepro__group[data-st="3"]:hover) .onepro__cell[data-st="3"] .onepro__st::before,
.onepro__stage:has(.onepro__group[data-st="6"]:hover) .onepro__cell[data-st="6"] .onepro__st::before { opacity: 1; }
.onepro__cell--holds:has(.onepro__st:is(:hover, :focus-visible, .is-on))::after,
.onepro__stage:has(.onepro__group[data-st="1"]:hover) .onepro__cell[data-st="1"]::after,
.onepro__stage:has(.onepro__group[data-st="2"]:hover) .onepro__cell[data-st="2"]::after,
.onepro__stage:has(.onepro__group[data-st="3"]:hover) .onepro__cell[data-st="3"]::after,
.onepro__stage:has(.onepro__group[data-st="6"]:hover) .onepro__cell[data-st="6"]::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .onepro__group, .onepro__tools, .onepro__fold, .onepro__st::before, .onepro__cell--holds::after { transition: none; }
}

@media (max-width: 85rem) {
  .onepro__stage { grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 2.9fr); }
  .onepro__model:nth-child(3) { --x: 45; } .onepro__model:nth-child(4) { --x: 68; }
  .onepro__tool { gap: var(--space-xs); font-size: var(--text-sm); }
  .onepro__group .onepro__mark { width: 20px; height: 20px; }
}

/* ===== Narrower: the line spans the width, and the models pass under it, fading as they go ===== */
@media (max-width: 75rem) {
  .onepro__head h2 { grid-column: 1 / -1; }
  .onepro__head .lead { grid-column: 1 / 10; }
  .onepro__stage { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(280px, auto) var(--face) 230px auto; }
  .onepro__run { display: none; }
  .onepro__sky { grid-column: 1 / -1; grid-row: 3; }
  .onepro__models { inset: var(--space-2xl) var(--space-xl) var(--space-md) var(--space-xl); }
  /* under the line, the light falls upward into it */
  .onepro__models { --rise: var(--space-2xl); }
  .onepro__model { --beam: calc((100 - var(--y)) * 1cqh - 64px + var(--rise)); }
  .onepro__model--next { --beam: calc((100 - var(--y)) * 1cqh - 32px + var(--rise)); }
  .onepro__model::after { top: auto; bottom: calc(100% + var(--space-xs));
    -webkit-mask: linear-gradient(to right, transparent, var(--color-ink) 35% 65%, transparent), linear-gradient(to top, transparent, var(--color-ink));
    -webkit-mask-composite: source-in; mask: linear-gradient(to right, transparent, var(--color-ink) 35% 65%, transparent), linear-gradient(to top, transparent, var(--color-ink)); mask-composite: intersect; }
  .onepro__model::before { top: auto; bottom: calc(100% + var(--space-xs) + var(--beam) - 10px); }
  .onepro__model:nth-child(1) { --y: 58; } .onepro__model:nth-child(2) { --y: 48; } .onepro__model:nth-child(3) { --y: 42; } .onepro__model:nth-child(4) { --y: 42; }
  .onepro__model:nth-child(5) { --y: 48; } .onepro__model:nth-child(6) { --y: 56; } .onepro__model:nth-child(7) { --y: 64; }
  .onepro__cap { grid-row: 4; padding-top: var(--space-lg); }
  .onepro__cap--one { grid-column: 1 / 4; padding-right: var(--space-lg); }
  .onepro__cap--two { grid-column: 4 / -1; padding-left: var(--space-lg); }
}
@media (max-width: 60rem) {
  .onepro__head .lead { grid-column: 1 / -1; }
}

/* ===== Phones: the line in two lengths of three, tools above their stations ===== */
@media (max-width: 47.5rem) {
  .onepro { padding-block: var(--space-2xl); }
  .onepro__head { margin-bottom: var(--space-lg); }
  .onepro__stage { --face: 64px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto var(--face) auto var(--face) 260px auto; }
  .onepro__group[data-st] { padding-top: 0; }
  .onepro__group[data-st="1"] { grid-column: 1; grid-row: 1; padding-top: var(--space-xl); }
  .onepro__group[data-st="2"] { grid-column: 2; grid-row: 1; }
  .onepro__group[data-st="3"] { grid-column: 3; grid-row: 1; padding-top: var(--space-2xl); }
  .onepro__group[data-st="6"] { grid-column: 3; grid-row: 3; padding-top: var(--space-xl); }
  .onepro__gname { margin-bottom: var(--space-sm); }
  .onepro__tools { gap: var(--space-xs); }
  .onepro__tool { gap: var(--space-xs); font-size: var(--text-sm); }
  .onepro__group .onepro__mark { width: 20px; height: 20px; }
  .onepro__fold { min-height: 40px; }
  .onepro__cell[data-st="1"], .onepro__cell[data-st="4"] { grid-column: 1; }
  .onepro__cell[data-st="2"], .onepro__cell[data-st="5"] { grid-column: 2; }
  .onepro__cell[data-st="3"], .onepro__cell[data-st="6"] { grid-column: 3; }
  .onepro__cell[data-st="4"], .onepro__cell[data-st="5"], .onepro__cell[data-st="6"] { grid-row: 4; }
  .onepro__cell[data-st="4"] { border-left: 0; }
  .onepro__st { padding-inline: var(--space-sm); }
  /* the first half's words sit beside Monitoring, over Run and Ship */
  .onepro__cap--one { grid-column: 1 / 3; grid-row: 3; align-self: start; padding: var(--space-xl) var(--space-md) var(--space-lg) 0; }
  .onepro__cap--one p { font-size: var(--text-sm); }
  .onepro__sky { grid-row: 5; }
  .onepro__cap--two { grid-column: 1 / -1; grid-row: 6; padding: 0; }
  .onepro__models { --rise: var(--space-xl); inset: var(--space-xl) var(--space-md) var(--space-sm) var(--space-md); }
  .onepro__model::after { width: 40px; }
  .onepro__model:nth-child(1) { --x: 13; --y: 64; } .onepro__model:nth-child(2) { --x: 42; --y: 70; } .onepro__model:nth-child(3) { --x: 74; --y: 60; }
  .onepro__model:nth-child(4) { --x: 28; --y: 8; } .onepro__model:nth-child(5) { --x: 62; --y: 18; } .onepro__model:nth-child(6) { --x: 79; --y: 24; } .onepro__model:nth-child(7) { --x: 92; --y: 30; }
}
@media (max-width: 22.5rem) {
  .onepro__tool { flex-direction: column; gap: var(--space-2xs); text-align: center; }
  .onepro__tools { justify-items: center; }
}
