/* UNPACK: the original four-step reading process, scoped to the team page. */
.ff-unpack {
  --unpack-ink: var(--color-text, #09090b);
  --unpack-body: var(--color-text-body, #3f3f46);
  --unpack-green: var(--color-accent, #00b050);
  background: #f5f9f6;
  color: var(--unpack-ink);
}
.ff-unpack .method-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(40px, 6vw, 78px); align-items: start; }
.ff-unpack .section-copy { position: sticky; top: 122px; min-width: 0; }
.ff-unpack .section-label { margin-bottom: 16px; }
.ff-unpack h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 850; line-height: 1.15; letter-spacing: -.04em; color: var(--unpack-ink); }
.ff-unpack .unpack-name { font-family: var(--font-sans, sans-serif); font-size: clamp(3.3rem, 5.6vw, 5.3rem); line-height: 1; letter-spacing: -.06em; }
.ff-unpack h2 em { display: inline-block; margin-top: 17px; font-family: var(--font-serif, Georgia, serif); font-style: italic; color: #087537; }
.ff-unpack .section-copy > p:not(.section-label) { margin-top: 20px; font-size: 1rem; line-height: 1.75; color: var(--unpack-body); }
.ff-unpack .section-copy .method-signature { font-size: .9rem; font-weight: 650; color: var(--unpack-ink); }
.ff-unpack .method-signature > span { display: block; margin-top: 4px; font-size: .8rem; font-weight: 400; color: var(--unpack-body); }
.ff-unpack .process-map { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; margin-top: 28px; padding: 18px 0; border-block: 1px solid #cbdccf; }
.ff-unpack .process-map > a { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; position: relative; padding-block: 4px; color: #536d5b; font-size: 1rem; font-weight: 750; line-height: 1.45; text-decoration: none; transition: color .25s; }
.ff-unpack .process-map > a > span { font-size: .75rem; letter-spacing: .07em; font-weight: 650; }
.ff-unpack .process-map > a::after { content: ''; position: absolute; inset: auto 0 -7px; height: 3px; background: var(--unpack-green); transform: scaleX(0); transform-origin: left; transition: transform .45s; }
.ff-unpack .process-map > a:is(:hover, :focus-visible, .is-current) { color: #075f2c; }
.ff-unpack .process-map > a:is(:hover, :focus-visible, .is-current)::after { transform: scaleX(1); }
.ff-unpack .process-map > a.is-past { color: #213f2b; }
.ff-unpack .process-map > span { padding-top: 19px; color: #427653; font-size: 1.1rem; }
.ff-unpack .method-process { position: relative; min-width: 0; }
.ff-unpack .process-track { position: absolute; width: 2px; background: #d4e2d8; transform: translateX(-50%); z-index: 0; }
.ff-unpack .process-track-fill { position: absolute; inset: 0; background: var(--unpack-green); transform: scaleY(0); transform-origin: top; transition: transform .12s linear; }
.ff-unpack .process-cursor { position: absolute; left: 50%; top: 0; display: grid; place-items: center; width: 26px; height: 26px; transform: translate(-50%, -50%); background: var(--unpack-green); color: #052c14; border: 4px solid #f5f9f6; border-radius: 50%; font: 750 .875rem/1 var(--font-sans, sans-serif); transition: top .12s linear; z-index: 2; }
.ff-unpack .method-process:not(.process-enhanced) .process-track { display: none; }
.ff-unpack .method-list { position: relative; list-style: none; margin: 0; padding: 0; }
.ff-unpack .process-step { display: flex; position: relative; gap: 22px; padding: 0 0 22px; border: 0; scroll-margin-top: max(110px, calc(47vh - 44px)); }
.ff-unpack .process-step:last-child { padding-bottom: 0; }
.ff-unpack .method-number { position: relative; isolation: isolate; display: grid; place-items: center; width: 44px; min-width: 44px; height: 38px; flex-shrink: 0; margin-top: 23px; color: #07351a; z-index: 3; transition: color .35s, transform .35s; }
.ff-unpack .method-number::before { content: ''; position: absolute; inset: 0; background: #e0eee4; transform: skewX(-10deg); z-index: -1; transition: background .35s, box-shadow .35s; }
.ff-unpack .method-number svg { display: block; width: 26px; height: 26px; stroke-width: 1.9; overflow: visible; }
.ff-unpack .process-step.is-current .method-number { color: #052c14; transform: scale(1.08); }
.ff-unpack .process-step.is-current .method-number::before { background: var(--unpack-green); box-shadow: 0 0 0 5px #00b05014; }
.ff-unpack .process-step.is-current .method-number svg { stroke-width: 2.1; }
.ff-unpack .process-step.is-past .method-number { color: #fff; }
.ff-unpack .process-step.is-past .method-number::before { background: #176f39; }
.ff-unpack .step-content { position: relative; isolation: isolate; flex: 1; min-width: 0; padding: 20px 24px; border-bottom: 1px solid #dce7df; }
.ff-unpack .step-content::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #ecf6ef; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); opacity: 0; transition: opacity .4s; }
.ff-unpack .is-current .step-content::before { opacity: 1; }
.ff-unpack .method-list h3 { margin: 0; color: var(--unpack-ink); font-size: 2.05rem; line-height: 1.15; font-weight: 800; letter-spacing: -.04em; transition: color .3s; }
.ff-unpack .method-list h3::after { content: ''; display: block; height: 3px; width: 45px; margin-top: 10px; background: var(--unpack-green); transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.22, .65, .3, 1); }
.ff-unpack .is-current h3 { color: #08632d; }
.ff-unpack .is-current h3::after { transform: scaleX(1); }
.ff-unpack .method-meaning { display: block; margin-top: 12px; color: var(--unpack-ink); font-size: 1.05rem; font-weight: 750; }
.ff-unpack .method-list p { max-width: none; margin: 9px 0 0; font-size: 1rem; line-height: 1.7; color: var(--unpack-body); }
.ff-unpack .method-list .process-output { margin-top: 16px; padding-top: 12px; border-top: 1px solid #d1e2d6; color: #365a41; font-size: .9rem; font-weight: 550; line-height: 1.65; }
.ff-unpack .process-output > span { display: block; margin-bottom: 4px; color: #1a713a; font-size: .75rem; letter-spacing: .045em; font-weight: 750; text-transform: uppercase; }
@media (max-width: 1100px) {
  .ff-unpack .method-grid { gap: 40px; grid-template-columns: .95fr 1.05fr; }
  .ff-unpack .step-content { padding: 20px 18px; }
  .ff-unpack .process-step { gap: 17px; }
  .ff-unpack .process-map { gap: 5px; }
  .ff-unpack .process-map > a { font-size: .95rem; }
}
@media (max-width: 800px) {
  .ff-unpack .method-grid { grid-template-columns: 1fr; gap: 32px; }
  .ff-unpack .section-copy { position: static; }
  .ff-unpack .process-map { max-width: 560px; gap: 14px; }
  .ff-unpack .process-step { gap: 24px; }
  .ff-unpack .step-content { padding: 22px 26px; }
  .ff-unpack h2 { font-size: 2.4rem; }
}
@media (max-width: 550px) {
  .ff-unpack h2 { font-size: 2.1rem; }
  .ff-unpack .unpack-name { font-size: 3.2rem; }
  .ff-unpack .process-map { gap: 5px; padding-block: 17px; }
  .ff-unpack .process-map > a { font-size: .9rem; }
  .ff-unpack .process-map > span { font-size: .9rem; }
  .ff-unpack .process-map > a::after { bottom: -5px; }
  .ff-unpack .process-step { gap: 14px; padding-bottom: 20px; scroll-margin-top: max(100px, calc(47vh - 41px)); }
  .ff-unpack .method-number { min-width: 35px; width: 35px; height: 34px; margin-top: 22px; }
  .ff-unpack .method-number svg { width: 23px; height: 23px; }
  .ff-unpack .step-content { padding: 19px 14px; }
  .ff-unpack .method-list h3 { font-size: 1.9rem; }
  .ff-unpack .method-meaning { font-size: 1rem; }
  .ff-unpack .method-list .process-output { font-size: .875rem; }
  .ff-unpack .process-cursor { width: 23px; height: 23px; border-width: 4px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-unpack *, .ff-unpack *::before, .ff-unpack *::after { transition: none; }
  .ff-unpack .process-step.is-current .method-number { transform: none; }
}
