/* Bespoke case pages. FifthForce: a logistics control room in signal orange, carbon and squared type. */
.ff { --o: #E32301; --k: #0A0A0A; --p: #F4F4F2; --g: clamp(16px, 2.4vw, 40px); --mono: "Geist Mono", ui-monospace, Menlo, monospace; background: var(--k); color: var(--p); overflow: hidden; }
.ff .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ff-k { font: 500 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--o); }

/* hero: a live grid of routes behind the wordmark */
.ff-hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--hdr, 72px) + 2vh) var(--g) clamp(24px, 4vh, 48px); isolation: isolate; }
.ff-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ff-hero-top { display: flex; justify-content: space-between; gap: 16px; font: 500 12px/1.2 var(--mono); text-transform: uppercase; color: rgb(244 244 242 / .6); }
.ff-hero-top a { color: inherit; }
.ff-word { margin: 0; align-self: center; justify-self: center; width: min(88vw, 1240px); }
.ff-word img { display: block; width: 100%; height: auto; clip-path: inset(0 0 100% 0); animation: ff-scan 1.6s cubic-bezier(.7, 0, .2, 1) .2s forwards; }
@keyframes ff-scan { to { clip-path: inset(0 0 0 0); } }
.ff-hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 18px clamp(24px, 4vw, 64px); align-items: end; }
.ff-hero-foot p { margin: 0; max-width: 40ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; color: rgb(244 244 242 / .75); }
.ff-hero-foot .ff-tag { font-size: clamp(20px, 2vw, 30px); line-height: 1.1; letter-spacing: -.02em; color: var(--p); }
.ff-status { display: grid; gap: 8px; justify-items: end; font: 500 11px/1 var(--mono); text-transform: uppercase; color: rgb(244 244 242 / .55); }
.ff-status span:first-child { color: var(--p); display: inline-flex; align-items: center; gap: 8px; }
.ff-status i { width: 7px; height: 7px; background: var(--o); animation: ff-blink 1.4s steps(2) infinite; }
@keyframes ff-blink { 50% { opacity: .2; } }

/* manifest: the case facts as a shipping label */
.ff-manifest { background: var(--o); color: #fff; padding: clamp(18px, 2.4vw, 32px) var(--g); display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.ff-man-grid { display: grid; grid-template-columns: repeat(6, minmax(0, auto)); gap: 14px clamp(16px, 3vw, 48px); }
.ff-man-grid div { display: grid; gap: 6px; } .ff-man-grid span { font: 500 11px/1 var(--mono); text-transform: uppercase; opacity: .75; } .ff-man-grid b { font-size: 15px; font-weight: 600; }
.ff-bar { display: flex; height: 44px; gap: 0; } .ff-bar i, .ff-bar b { display: block; width: calc(var(--w) * 2px); } .ff-bar i { background: currentColor; }

/* thesis */
.ff-thesis { padding: clamp(90px, 13vw, 210px) var(--g) clamp(60px, 9vw, 140px); }
.ff-big { margin: 22px 0 36px; max-width: 18em; font-size: clamp(34px, 5.8vw, 108px); font-weight: 600; line-height: .96; letter-spacing: -.05em; }
.ff-sub { margin: 0; max-width: 56ch; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.55; color: rgb(244 244 242 / .7); }
.nx-on .ff .nx-w { opacity: .16; } .nx-on .ff .nx-w.lit { opacity: 1; }

/* full-bleed picture that opens as you reach it */
.ff-full { position: relative; height: min(100svh, 62vw); overflow: hidden; clip-path: inset(0 calc(var(--o, 1) * var(--g)) 0 calc(var(--o, 1) * var(--g)) round calc(var(--o, 1) * 6px)); }
.ff-full .nx-band-in, .ff-full .nx-band-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ff-cap { position: absolute; left: calc(var(--g) * 2); bottom: 22px; font: 500 12px/1 var(--mono); text-transform: uppercase; color: #fff; }

/* identity system */
.ff-system { padding: clamp(90px, 12vw, 190px) var(--g); }
.ff-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(24px, 5vw, 90px); align-items: end; margin-bottom: clamp(40px, 6vw, 90px); }
.ff-head .ff-k { grid-column: 1 / -1; }
.ff-head h2 { margin: 0; font-size: clamp(44px, 7.4vw, 140px); font-weight: 600; line-height: .88; letter-spacing: -.055em; text-transform: uppercase; }
.ff-head p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.55; color: rgb(244 244 242 / .7); }
.ff-sys-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.ff-tile { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: #141414; min-height: 280px; }
.ff-tile > img, .ff-tile > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.ff-tile:hover > img { transform: scale(1.04); }
.ff-tile figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; font: 500 11px/1.3 var(--mono); text-transform: uppercase; color: rgb(244 244 242 / .75); }
.ff-mark { grid-column: span 5; aspect-ratio: 4 / 5; } .ff-lock { grid-column: span 7; aspect-ratio: 7 / 5; }
.ff-type { grid-column: span 7; background: var(--p); color: var(--k); display: grid; place-items: center; aspect-ratio: 7 / 4; }
.ff-type figcaption { color: rgb(10 10 10 / .6); }
.ff-type-in { position: relative; width: 78%; } .ff-type-in img { display: block; width: 100%; height: auto; filter: brightness(0); }
.ff-gridlines { position: absolute; inset: -8%; background: linear-gradient(rgb(227 35 1 / .45) 1px, transparent 1px) 0 0 / 100% 12.5%, linear-gradient(90deg, rgb(227 35 1 / .45) 1px, transparent 1px) 0 0 / 6.25% 100%; opacity: 0; transition: opacity .5s; }
.ff-type:hover .ff-gridlines { opacity: 1; }
.ff-colour { grid-column: span 5; background: transparent; }
.ff-sw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: 2fr 1fr 1fr 1fr; height: 100%; min-height: 360px; border-radius: 6px; overflow: hidden; }
.ff-sw li { background: var(--c); color: var(--t); display: flex; justify-content: space-between; align-items: end; padding: 14px 16px; font: 500 12px/1 var(--mono); text-transform: uppercase; transition: flex .5s; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.ff-colour figcaption { position: static; padding-top: 12px; }

/* shipments: a pinned row of mockups, each tagged like a parcel */
.ff-ship { position: relative; }
.ff-ship-pin { padding: clamp(40px, 6vw, 80px) 0; }
.ff-ship-head { display: flex; justify-content: space-between; padding: 0 var(--g) 24px; font: 500 12px/1 var(--mono); text-transform: uppercase; }
.ff-ship-count b { color: var(--o); font-weight: 500; }
.ff-ship-track { display: flex; gap: clamp(14px, 2vw, 28px); padding: 0 var(--g); overflow-x: auto; scroll-snap-type: x mandatory; }
.ff-ship-c { flex: 0 0 min(78vw, 520px); scroll-snap-align: start; display: grid; gap: 0; background: var(--p); color: var(--k); border-radius: 8px; overflow: hidden; }
.ff-ship-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1a1a1a; } .ff-ship-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ff-label { padding: 16px 18px 18px; display: grid; gap: 8px; border-top: 2px dashed rgb(10 10 10 / .25); }
.ff-label-top { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); text-transform: uppercase; color: rgb(10 10 10 / .55); }
.ff-label h3 { margin: 4px 0 0; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.035em; text-transform: uppercase; }
.ff-label p { margin: 0; font-size: 14px; line-height: 1.45; color: rgb(10 10 10 / .7); }
.ff-label .ff-bar { height: 34px; margin-top: 6px; color: var(--k); }
.ff-on .ff-ship { height: calc(var(--n) * 62vh + 100vh); }
.ff-on .ff-ship-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.ff-on .ff-ship-track { overflow: visible; width: max-content; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; scroll-snap-type: none; }
.ff-on .ff-ship-c { flex-basis: min(34vw, 460px); }
.ff-on .ff-ship-img { aspect-ratio: 4 / 4.4; }

/* product interface */
.ff-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: center; padding: clamp(90px, 12vw, 180px) var(--g); background: #E9E9E7; color: var(--k); }
.ff-app h2 { margin: 18px 0; font-size: clamp(44px, 7vw, 130px); font-weight: 600; line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.ff-app p { margin: 0; max-width: 40ch; font-size: 17px; line-height: 1.5; color: rgb(10 10 10 / .7); }
.ff-phone { justify-self: center; width: min(100%, 380px); padding: 12px; border-radius: 44px; background: #0a0a0a; box-shadow: 0 40px 80px rgb(0 0 0 / .25); transform: rotate(-3deg); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.ff-phone:hover { transform: rotate(0); }
.ff-phone-in { border-radius: 32px; overflow: hidden; aspect-ratio: 900 / 1126; background: #fff; } .ff-phone-in video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* challenge and outcome, as a system log */
.ff-log { padding: clamp(80px, 11vw, 170px) var(--g); display: grid; gap: clamp(40px, 6vw, 90px); }
.ff-log-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 18px clamp(24px, 5vw, 90px); border-top: 1px solid rgb(244 244 242 / .18); padding-top: 22px; }
.ff-log-row > p { margin: 0; font-size: clamp(20px, 2.2vw, 34px); line-height: 1.25; letter-spacing: -.02em; }
.ff-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.ff-stat b { display: block; font-size: clamp(64px, 9vw, 160px); font-weight: 600; line-height: .85; letter-spacing: -.06em; color: var(--o); }
.ff-stat span { display: block; margin-top: 10px; max-width: 30ch; font-size: 14px; line-height: 1.45; color: rgb(244 244 242 / .7); }
.ff blockquote { margin: 0; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -.03em; } .ff cite { display: block; margin-top: 14px; font: 500 12px/1 var(--mono); font-style: normal; text-transform: uppercase; color: rgb(244 244 242 / .6); }
.ff-note { margin: 22px 0 0; font: 500 11px/1.4 var(--mono); text-transform: uppercase; color: rgb(244 244 242 / .45); }

@media (max-width: 899px) {
  .ff-hero-foot, .ff-head, .ff-app, .ff-log-row, .ff-manifest { grid-template-columns: 1fr; } .ff-status { justify-items: start; }
  .ff-man-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-mark, .ff-lock, .ff-type, .ff-colour { grid-column: 1 / -1; }
  .ff-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ff-word img { animation: none; clip-path: none; } .ff-status i { animation: none; } }
.ff-stat b small { font-size: .28em; letter-spacing: -.02em; margin-left: .2em; color: var(--p); }
.ff-lock > img, .ff-lock > picture img { object-fit: contain; background: #0a0a0a; }

/* v2: particle wordmark, brand console, shipment tracker, tilting cards */
.ff-px .ff-word img { opacity: 0; animation: none; clip-path: none; }
.ff-hero { cursor: crosshair; }
.ff-hint { position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%); font: 500 11px/1 var(--mono); text-transform: uppercase; color: rgb(244 244 242 / .45); opacity: 0; transition: opacity .6s; pointer-events: none; }
.ff-px .ff-hint { opacity: 1; }

/* tracker: the page is a shipment in transit */
.fft { position: fixed; left: var(--g); bottom: 18px; z-index: 40; width: min(340px, calc(100vw - 2 * var(--g) - 150px)); padding: 10px 12px; background: rgb(10 10 10 / .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 6px; color: var(--p); font: 500 10.5px/1 var(--mono); text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none; }
.fft.on { opacity: 1; transform: none; }
.fft-row { display: flex; gap: 10px; align-items: center; }
.fft-id { color: rgb(244 244 242 / .5); } .fft-st { flex: 1; color: var(--o); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fft-p { font-variant-numeric: tabular-nums; }
.fft-st::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: var(--o); animation: ff-blink 1.4s steps(2) infinite; }
.fft-bar { margin-top: 8px; height: 2px; background: rgb(244 244 242 / .15); } .fft-bar i { display: block; height: 100%; width: 100%; background: var(--o); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* brand console */
.ffc { padding: 0 var(--g) clamp(90px, 12vw, 180px); }
.ffc-ui { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(12px, 1.6vw, 22px); }
.ffc-stage { --bg: #E32301; --fg: #fff; position: relative; overflow: hidden; border-radius: 8px; background: var(--bg); color: var(--fg); aspect-ratio: 16 / 9; display: grid; place-items: center; transition: background-color .6s cubic-bezier(.16, 1, .3, 1), color .6s cubic-bezier(.16, 1, .3, 1); }
.ffc-lock { position: relative; display: flex; align-items: center; justify-content: center; gap: 4%; width: 78%; transition: all .7s cubic-bezier(.16, 1, .3, 1); }
.ffc-lock i { display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: width .7s cubic-bezier(.16, 1, .3, 1), opacity .5s, transform .7s cubic-bezier(.16, 1, .3, 1); }
.ffc-m { --m: var(--ffm); aspect-ratio: 693 / 712; width: 22%; }
.ffc-w { --m: var(--word); aspect-ratio: 1381 / 597; width: 66%; }
.ffc-stage[data-l="s"] .ffc-lock { flex-direction: column; gap: 6%; width: 40%; } .ffc-stage[data-l="s"] .ffc-m { width: 34%; } .ffc-stage[data-l="s"] .ffc-w { width: 100%; }
.ffc-stage[data-l="m"] .ffc-m { width: 30%; } .ffc-stage[data-l="m"] .ffc-w { width: 0; opacity: 0; }
.ffc-stage[data-l="w"] .ffc-m { width: 0; opacity: 0; } .ffc-stage[data-l="w"] .ffc-w { width: 92%; }
.ffc-stage[data-l="w"] .ffc-lock, .ffc-stage[data-l="m"] .ffc-lock { gap: 0; }
.ffc-grid { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: linear-gradient(currentColor 1px, transparent 1px) 0 0 / 100% calc(100% / 9), linear-gradient(90deg, currentColor 1px, transparent 1px) 0 0 / calc(100% / 16) 100%; mix-blend-mode: normal; }
.ffc-stage.grid .ffc-grid { opacity: .16; }
.ffc-stage.grid .ffc-lock { outline: 1px dashed currentColor; outline-offset: 10px; }
.ffc-read { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 18px; font: 500 11px/1 var(--mono); text-transform: uppercase; opacity: .8; }
.ffc-read span:last-child { margin-left: auto; }
.ffc-ctl { display: grid; align-content: start; gap: 28px; padding: 22px; border-radius: 8px; background: #141414; }
.ffc-g { display: grid; gap: 12px; }
.ffc-sw { display: grid; gap: 6px; }
.ffc-sw button, .ffc-seg button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 5px; font: 500 12px/1 var(--mono); text-transform: uppercase; color: rgb(244 244 242 / .7); transition: background .25s, color .25s; }
.ffc-sw button:hover, .ffc-seg button:hover { background: rgb(244 244 242 / .06); color: var(--p); }
.ffc-sw button[aria-pressed="true"], .ffc-seg button[aria-pressed="true"] { background: var(--p); color: var(--k); }
.ffc-sw i { width: 26px; height: 18px; border-radius: 3px; background: linear-gradient(90deg, var(--bg) 55%, var(--fg) 55%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.ffc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .ffc-seg button { justify-content: center; background: rgb(244 244 242 / .04); }
.ffc-sw button:focus-visible, .ffc-seg button:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }

/* shipment cards tilt toward the pointer */
.ff-ship-c { transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .5s cubic-bezier(.16, 1, .3, 1); position: relative; }
.ff-ship-c::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .18), transparent 45%); opacity: 0; transition: opacity .4s; }
.ff-ship-c:hover::after { opacity: 1; }

@media (max-width: 899px) {
  .ffc-ui { grid-template-columns: 1fr; } .ffc-stage { aspect-ratio: 4 / 3.4; } .ffc-read span:nth-child(2) { display: none; }
  .fft { bottom: 14px; padding: 8px 10px; } .fft-id { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ffc-stage, .ffc-lock, .ffc-lock i, .ff-ship-c { transition: none; } .fft-st::before { animation: none; } }
@media (max-width: 899px), (pointer: coarse) { .ff-hint { display: none; } }
@media (max-width: 899px) { .fft { top: calc(var(--hdr, 64px) + 6px); bottom: auto; left: var(--g); right: var(--g); width: auto; transform: translateY(-8px); } }

@media (max-width: 899px) {
  .ff-tile { min-width: 0; } .ff-sys-grid { grid-template-columns: minmax(0, 1fr); } .ff-mark, .ff-lock, .ff-type, .ff-colour { grid-column: auto; }
  .ff-type { width: 100%; aspect-ratio: auto; padding: 44px 0 56px; } .ff-type figcaption { right: 14px; }
  .ff-hero-foot { position: relative; } .ff-hero-foot::before { content: ""; position: absolute; inset: -40px calc(var(--g) * -1) calc(clamp(24px, 4vh, 48px) * -1); z-index: -1; background: linear-gradient(transparent, #0A0A0A 34%); }
}
