/* Portfolio: a 3D orbit of selected work and one themed scene per project.
   Each project section sets --p-glow / --p-glow-2 (space-separated RGB),
   --p-accent, --p-accent-2 and --p-bg; everything below is driven by them. */

@property --hero-glow-color { syntax: "<color>"; inherits: true; initial-value: rgb(0 217 255); }

/* --- Hero + orbit -------------------------------------------------------- */
.pf-hero { min-height: 760px; padding-bottom: 96px; --hero-glow-color: rgb(74 158 255); transition: --hero-glow-color .9s ease; }
.pf-hero::before { opacity: .22; }
.pf-hero > canvas { opacity: .8; }
.pf-hero-glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 73% 48%, color-mix(in srgb, var(--hero-glow-color) 26%, transparent), transparent 38%), radial-gradient(circle at 12% 86%, rgba(0, 144, 211, .1), transparent 36%); pointer-events: none; }
.pf-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .98fr); align-items: center; gap: clamp(36px, 5vw, 80px); }
.pf-hero .page-title { max-width: 760px; }

.pf-orbit { position: relative; z-index: 2; width: min(100%, 600px); margin-inline: auto; }
.pf-orbit-stage { position: relative; height: clamp(380px, 38vw, 500px); perspective: 1100px; perspective-origin: 50% 32%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.pf-orbit-stage.is-dragging { cursor: grabbing; }
.pf-orbit-path { position: absolute; left: 50%; top: 54%; width: 88%; aspect-ratio: 3.1; border: 1px solid rgba(140, 205, 240, .24); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 40px color-mix(in srgb, var(--hero-glow-color) 16%, transparent), inset 0 0 50px color-mix(in srgb, var(--hero-glow-color) 10%, transparent); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--hero-glow-color) 13%, transparent), transparent 66%); }
.pf-orbit-path-inner { width: 54%; border-color: rgba(180, 160, 255, .2); background: none; box-shadow: none; }
.pf-orbit-core { position: absolute; z-index: 50; left: 50%; top: 44%; width: clamp(96px, 9.5vw, 132px); height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 26px color-mix(in srgb, var(--hero-glow-color) 70%, transparent)) drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); animation: pf-core-float 7s ease-in-out infinite; pointer-events: none; }
.pf-orbit-ring { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.pf-orbit-card { --depth: 1; position: absolute; left: 50%; top: 50%; display: flex; width: clamp(122px, 11.5vw, 148px); flex-direction: column; align-items: center; gap: 7px; padding: 15px 10px 13px; border: 1px solid rgb(var(--c) / .42); border-radius: 16px; background: linear-gradient(165deg, rgb(var(--c) / .17), rgba(7, 13, 27, .9) 58%); box-shadow: 0 22px 44px rgba(0, 0, 0, .45), 0 0 calc(var(--depth) * 32px) rgb(var(--c) / .32), inset 0 1px rgba(255, 255, 255, .12); color: #e9f2fb; text-align: center; transform: translate(-50%, -50%); will-change: transform, opacity; transition: border-color .3s ease, box-shadow .3s ease; }
.pf-orbit-card:focus-visible { outline: 2px solid rgb(var(--c)); outline-offset: 4px; }
.pf-orbit-card.is-front { border-color: rgb(var(--c) / .9); }
.pf-orbit-icon { display: grid; width: 70px; height: 70px; place-items: center; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 50% 35%, rgb(var(--c) / .26), rgba(3, 7, 16, .92) 72%); box-shadow: inset 0 0 0 1px rgb(var(--c) / .25); }
.pf-orbit-icon img { width: 88%; height: 88%; object-fit: contain; pointer-events: none; }
.pf-orbit-icon-tile img { width: 100%; height: 100%; object-fit: cover; }
.pf-orbit-card strong { font-size: .86rem; font-weight: 720; letter-spacing: -.02em; line-height: 1.2; }
.pf-orbit-card small { color: #9fb2c6; font-size: .58rem; font-weight: 760; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.pf-orbit-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.pf-orbit-label { min-width: 210px; margin: 0; color: #e4edf6; font-size: .92rem; font-weight: 680; text-align: center; }
.pf-orbit-label span { margin-right: 8px; color: #8fdcf5; font-size: .68rem; font-weight: 790; letter-spacing: .14em; }
.pf-orbit-hint { margin: 12px 0 0; color: #7f97ad; font-size: .58rem; font-weight: 780; letter-spacing: .17em; text-align: center; }

.pf-round-button { display: inline-grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(150, 205, 238, .4); border-radius: 50%; background: rgba(7, 16, 31, .7); color: #e3edf6; font: inherit; font-size: 1.05rem; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.pf-round-button:hover { border-color: var(--cyan); background: rgba(0, 190, 255, .12); transform: translateY(-1px); }

/* --- Sticky project bar --------------------------------------------------- */
.pf-jump { position: sticky; z-index: 10; top: 0; border-top: 1px solid rgba(158, 198, 223, .14); border-bottom: 1px solid rgba(158, 198, 223, .14); background: rgba(5, 12, 24, .94); backdrop-filter: blur(12px); }
.pf-jump-inner { display: flex; align-items: center; gap: clamp(18px, 3.4vw, 56px); min-height: 64px; }
.pf-jump span { margin-right: auto; color: #7693a9; font-size: .64rem; font-weight: 790; letter-spacing: .16em; white-space: nowrap; }
.pf-jump a { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; color: #b8c9d9; font-size: .78rem; font-weight: 680; white-space: nowrap; transition: color .2s ease; }
.pf-jump a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 10px rgb(var(--c) / .8); opacity: .55; transition: opacity .2s ease; }
.pf-jump a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 16px; height: 2px; background: rgb(var(--c)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.pf-jump a:hover, .pf-jump a[aria-current="true"] { color: #f2f7fb; }
.pf-jump a[aria-current="true"]::before { opacity: 1; }
.pf-jump a[aria-current="true"]::after { transform: scaleX(1); }

/* --- Project scenes ------------------------------------------------------- */
.pf-project { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0 136px; scroll-margin-top: 64px; border-top: 1px solid rgba(158, 198, 223, .08); background: radial-gradient(circle at 76% 40%, rgb(var(--p-glow) / .15), transparent 44%), radial-gradient(circle at 8% 92%, rgb(var(--p-glow-2) / .07), transparent 38%), var(--p-bg); color: #e5edf5; }
.pf-project::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle, rgb(var(--p-glow) / .14) 1px, transparent 1px); background-size: 34px 34px; opacity: .45; mask-image: radial-gradient(ellipse at 70% 45%, #000 0, transparent 70%); pointer-events: none; }
.pf-project-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(48px, 6vw, 104px); }
.pf-flip .pf-project-copy { order: 2; }
.pf-index { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: #8ea6bb; font-size: .66rem; font-weight: 790; letter-spacing: .18em; }
.pf-index::before { content: ""; width: 29px; height: 1px; background: linear-gradient(90deg, var(--p-accent), var(--p-accent-2)); }
.pf-index span { color: var(--p-accent); }
.pf-name { margin: 0; line-height: 0; }
.pf-name img { width: auto; max-width: min(100%, 420px); height: clamp(52px, 5.4vw, 78px); object-fit: contain; object-position: left center; }
.pf-tagline { margin: 28px 0 22px; color: #e8f0f7; font-size: clamp(2.3rem, 3.5vw, 3.55rem); font-weight: 630; line-height: 1.08; letter-spacing: -.058em; text-wrap: balance; }
.pf-tagline em { color: var(--p-accent); background: linear-gradient(100deg, var(--p-accent), var(--p-accent-2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; }
.pf-summary { max-width: 610px; margin: 0 0 30px; color: #adbed0; font-size: 1.02rem; line-height: 1.8; }
.pf-built h3 { margin: 0 0 12px; color: #8ea6bb; font-size: .62rem; font-weight: 790; letter-spacing: .18em; text-transform: uppercase; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.pf-chips li { padding: 7px 13px; border: 1px solid rgb(var(--p-glow) / .34); border-radius: 999px; background: rgb(var(--p-glow) / .07); color: #d9e6f2; font-size: .76rem; font-weight: 650; }
.pf-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 30px; padding: 0; list-style: none; }
.pf-features li { display: grid; gap: 5px; padding: 15px 0 16px; border-top: 1px solid rgba(165, 200, 230, .14); }
.pf-features strong { color: #eef4fa; font-size: .93rem; font-weight: 700; letter-spacing: -.015em; }
.pf-features strong::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; border-radius: 50%; background: var(--p-accent); box-shadow: 0 0 9px var(--p-accent); }
.pf-features span { color: #9fb3c7; font-size: .85rem; line-height: 1.6; }
.pf-stack { max-width: 610px; margin: 0 0 22px; color: #b9c9d8; font-size: .82rem; line-height: 1.75; }
.pf-stack b { display: block; margin-bottom: 4px; color: #8ea6bb; font-size: .62rem; font-weight: 790; letter-spacing: .18em; text-transform: uppercase; }
.pf-note { max-width: 610px; margin: 0; padding-left: 14px; border-left: 2px solid rgb(var(--p-glow) / .5); color: #93a8bc; font-size: .8rem; line-height: 1.65; }

/* Metrics strip: figures from each project, counted up as they scroll in. */
.pf-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; margin: 70px 0 0; padding: 0; list-style: none; perspective: 900px; }
.pf-metrics li { position: relative; overflow: hidden; padding: 24px 20px 22px; border: 1px solid rgb(var(--p-glow) / .26); border-radius: 14px; background: linear-gradient(160deg, rgb(var(--p-glow) / .11), rgba(5, 10, 20, .78) 62%); box-shadow: 0 22px 46px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .06); transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .3s ease; }
.pf-metrics li::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--p-accent), var(--p-accent-2)); opacity: .7; }
.pf-metrics li:hover { border-color: rgb(var(--p-glow) / .6); box-shadow: 0 26px 50px rgba(0, 0, 0, .36), 0 0 26px rgb(var(--p-glow) / .16); transform: translateY(-4px) rotateX(5deg); }
.pf-metrics strong { display: block; margin-bottom: 8px; color: var(--p-accent); background: linear-gradient(100deg, #f2f7fb, var(--p-accent) 60%, var(--p-accent-2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: clamp(2rem, 2.9vw, 2.75rem); font-variant-numeric: tabular-nums; font-weight: 720; letter-spacing: -.045em; line-height: 1.05; }
.pf-metrics span { display: block; color: #9fb3c7; font-size: .83rem; line-height: 1.55; }
html.motion-paused .pf-metrics li:hover { transform: none; }

/* --- 3D showcase stage ---------------------------------------------------- */
.pf-stage { position: relative; }
.pf-stage-label { margin: 0 0 14px; color: var(--p-accent-2); font-size: .6rem; font-weight: 790; letter-spacing: .18em; text-align: right; opacity: .85; }
.pf-stage-view { position: relative; height: clamp(380px, 38vw, 540px); perspective: 1500px; perspective-origin: 50% 40%; touch-action: pan-y; }
.pf-stage-rig { --rx: 4deg; --ry: -9deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); will-change: transform; }
.pf-halo { position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(circle, rgb(var(--p-glow) / .3), rgb(var(--p-glow-2) / .08) 45%, transparent 66%); transform: translateZ(-220px); filter: blur(18px); pointer-events: none; }
.pf-ring { position: absolute; left: 50%; top: 52%; width: 82%; aspect-ratio: 1; border: 1px solid rgb(var(--p-glow) / .32); border-radius: 50%; transform: translate(-50%, -50%) translateZ(-150px) rotateX(72deg); box-shadow: 0 0 30px rgb(var(--p-glow) / .18); pointer-events: none; }
.pf-ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--p-accent-2); box-shadow: 0 0 16px var(--p-accent), 0 0 32px var(--p-accent); }
.pf-ready .pf-ring { animation: pf-ring-spin 24s linear infinite; }

/* Deck: without JS the images are a simple stacked list; with JS a 3D deck. */
.pf-deck { display: grid; gap: 14px; }
.pf-shot { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(214, 232, 247, .2); border-radius: 12px; background: #0a1220; box-shadow: 0 32px 70px rgba(0, 0, 0, .55), 0 0 44px rgb(var(--p-glow) / .14); }
.pf-shot > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pf-shot figcaption { padding: 10px 14px; color: #b3c4d6; font-size: .8rem; }
.pf-ready .pf-deck { position: absolute; display: block; top: 10%; left: 3%; width: 80%; aspect-ratio: 16 / 10; transform-style: preserve-3d; }
.pf-ready .pf-deck-wide { aspect-ratio: 16 / 9; }
.pf-ready .pf-shot { position: absolute; inset: 0; transform-origin: 50% 60%; transition: transform .85s cubic-bezier(.22, 1, .36, 1), opacity .6s ease, filter .6s ease; }
.pf-ready .pf-shot figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pf-ready .pf-shot[data-pos="0"] { z-index: 5; transform: translate3d(0, 0, 50px); opacity: 1; }
.pf-ready .pf-shot[data-pos="1"] { z-index: 4; transform: translate3d(8%, -8%, -70px); opacity: .78; filter: brightness(.62) saturate(.9); }
.pf-ready .pf-shot[data-pos="2"] { z-index: 3; transform: translate3d(16%, -16%, -190px); opacity: .5; filter: brightness(.48) saturate(.8); }
.pf-ready .pf-shot[data-pos="3"] { z-index: 2; transform: translate3d(24%, -24%, -310px); opacity: .26; filter: brightness(.4); }
.pf-ready .pf-shot[data-pos="hidden"] { z-index: 1; transform: translate3d(30%, -30%, -420px); opacity: 0; pointer-events: none; }
.pf-ready .pf-shot[data-pos="out"] { z-index: 6; transform: translate3d(-26%, 12%, 160px) rotateY(18deg); opacity: 0; }
.pf-ready .pf-shot.is-snap { transition: none; }
.pf-shot-square > img, .pf-shot-device > img { object-fit: contain; object-position: center; background: radial-gradient(circle at 50% 40%, rgb(var(--p-glow) / .18), #070b14 70%); }
.pf-shot-device > img { padding: 6% 10%; }

/* Code-rendered brand panels (projects without interface captures). */
.pf-shot-panel { display: grid; min-height: 260px; background: radial-gradient(circle at 22% 18%, rgb(var(--p-glow) / .22), transparent 50%), radial-gradient(circle at 85% 90%, rgb(var(--p-glow-2) / .12), transparent 45%), linear-gradient(160deg, #0d1626, #070c17); }
.pf-panel-inner { display: grid; height: 100%; padding: clamp(18px, 4%, 34px); place-items: center; align-content: center; gap: 14px; }
.pf-panel-identity .pf-panel-inner img { width: 82%; height: auto; }
.pf-panel-tile .pf-panel-inner img { width: auto; height: 74%; max-height: 260px; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgb(var(--p-glow) / .35)); }
.pf-panel-kicker { margin: 0; color: var(--p-accent); font-size: .62rem; font-weight: 790; letter-spacing: .18em; }
.pf-promise { display: grid; width: min(100%, 420px); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pf-promise li { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid rgba(74, 158, 255, .24); border-radius: 12px; background: rgba(13, 19, 32, .82); }
.pf-promise-icon { grid-row: 1 / 3; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: rgba(74, 158, 255, .14); }
.pf-promise-icon svg { width: 20px; height: 20px; fill: none; stroke: #4a9eff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-promise b { color: #e9eef7; font-size: .86rem; }
.pf-promise small { color: #9aa9c0; font-size: .74rem; line-height: 1.45; }
/* AssistLink theme switcher: the product ships dark and light themes. */
.pf-panel-theme { --t-bg: #05080e; --t-surface: #0d1320; --t-line: rgba(154, 169, 192, .2); --t-text: #e9eef7; --t-muted: #9aa9c0; --t-loop-a: #ffffff; --t-loop-b: #4a9eff; background: var(--t-bg); transition: background .5s ease; }
.pf-panel-theme[data-theme="light"] { --t-bg: #eef2f8; --t-surface: #ffffff; --t-line: rgba(12, 26, 46, .12); --t-text: #0c1a2e; --t-muted: #5b6b82; --t-loop-a: #031a37; --t-loop-b: #378add; }
.pf-theme-demo { display: grid; width: min(100%, 470px); gap: 10px; }
.pf-theme-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-surface); transition: background .5s ease, border-color .5s ease; }
.pf-theme-mark { width: 46px; flex: 0 0 auto; fill: none; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.pf-theme-mark .loop-a { stroke: var(--t-loop-a); transition: stroke .5s ease; }
.pf-theme-mark .loop-b, .pf-theme-mark .loop-bar { stroke: var(--t-loop-b); stroke-linecap: square; transition: stroke .5s ease; }
.pf-theme-mark .loop-b { stroke-linecap: round; }
.pf-theme-mark .loop-cut { stroke: var(--t-surface); stroke-width: 30; stroke-linecap: square; transition: stroke .5s ease; }
.pf-theme-word { margin-right: auto; color: var(--t-text); font-size: 1rem; font-weight: 700; letter-spacing: -.02em; transition: color .5s ease; }
.pf-theme-word b { color: var(--t-loop-b); font-weight: 700; transition: color .5s ease; }
.pf-theme-switch { display: inline-flex; align-items: center; gap: 9px; padding: 6px 4px; border: 0; background: none; color: var(--t-muted); font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; transition: color .5s ease; }
.pf-switch-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: rgba(154, 169, 192, .35); transition: background .3s ease; }
.pf-switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.pf-theme-switch[aria-checked="true"] .pf-switch-track { background: var(--t-loop-b); }
.pf-theme-switch[aria-checked="true"] .pf-switch-thumb { transform: translateX(18px); }
.pf-theme-switch:focus-visible { outline: 2px solid var(--t-loop-b); outline-offset: 3px; border-radius: 8px; }
.pf-theme-card { display: grid; grid-template-columns: 10px 1fr; column-gap: 12px; padding: 13px 16px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-surface); transition: background .5s ease, border-color .5s ease; }
.pf-theme-dot { grid-row: 1 / 3; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--t-loop-b); box-shadow: 0 0 10px var(--t-loop-b); }
.pf-theme-card b { color: var(--t-text); font-size: .9rem; transition: color .5s ease; }
.pf-theme-card small { color: var(--t-muted); font-size: .76rem; line-height: 1.45; transition: color .5s ease; }
.pf-category-cloud { display: flex; max-width: 460px; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pf-category-cloud li { padding: 8px 14px; border: 1px solid rgba(4, 207, 255, .34); border-radius: 999px; background: rgba(8, 11, 14, .75); color: #eef2f6; font-size: .8rem; font-weight: 650; }
.pf-panel-foot { max-width: 380px; margin: 4px 0 0; color: #a9b3bd; font-size: .74rem; text-align: center; }
.pf-flow { display: grid; width: min(100%, 520px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pf-flow li { display: grid; gap: 4px; padding: 14px 12px; border: 1px solid rgba(201, 209, 219, .2); border-top: 2px solid #04cfff; border-radius: 10px; background: rgba(13, 17, 22, .86); }
.pf-flow span { color: #04cfff; font-size: .62rem; font-weight: 790; letter-spacing: .14em; }
.pf-flow b { color: #eef2f6; font-size: .95rem; }
.pf-flow small { color: #a9b3bd; font-size: .7rem; line-height: 1.4; }

/* Floating brand marks and devices in front of the deck. */
.pf-float { position: absolute; pointer-events: none; }
.pf-float img, .pf-float svg { display: block; width: 100%; height: auto; }
.pf-float-mark { right: 0; bottom: 6%; width: 27%; transform: translateZ(170px); }
.pf-float-mark img { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgb(var(--p-glow) / .45)); animation: pf-bob 7s ease-in-out infinite; }
.pf-float-emblem { right: 4%; bottom: auto; top: 0; width: 19%; transform: translateZ(120px); }
.pf-float-tile { right: 2%; bottom: 4%; width: 22%; transform: translateZ(170px); }
.pf-float-tile img { border-radius: 22%; box-shadow: 0 26px 46px rgba(0, 0, 0, .6), 0 0 36px rgb(var(--p-glow) / .4); animation: pf-bob 7s ease-in-out infinite; }
.pf-float-phone { right: 2%; bottom: -2%; width: 21%; transform: translateZ(210px); pointer-events: auto; }
.pf-float-phone img { filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .6)); animation: pf-bob 8s ease-in-out -2s infinite; }
.pf-float-link { left: -2%; bottom: 0; width: 34%; aspect-ratio: 3 / 2; transform-style: preserve-3d; transform: translateZ(150px); }
.pf-link-layer { position: absolute; inset: 0; fill: none; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pf-link-back { stroke: #f1f6ff; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); transform: translateZ(0); }
.pf-link-front { stroke: #4a9eff; filter: drop-shadow(0 0 16px rgba(74, 158, 255, .55)); transform: translateZ(46px); }
.pf-ready .pf-float-link { animation: pf-link-sway 9s ease-in-out infinite; }

/* Controls under the stage. */
.pf-stage-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pf-stage-controls .pf-round-button { border-color: rgb(var(--p-glow) / .45); }
.pf-stage-controls .pf-round-button:hover { border-color: var(--p-accent); background: rgb(var(--p-glow) / .14); }
.pf-caption { flex: 1; min-width: 0; margin: 0; color: #b3c4d6; font-size: .86rem; line-height: 1.5; }
.pf-count { color: #8ea6bb; font: 600 .7rem/1 "Cascadia Code", Consolas, monospace; letter-spacing: .06em; white-space: nowrap; }
.pf-expand { padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--p-accent); background: none; color: #dcecf5; font: inherit; font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pf-expand span { color: var(--p-accent); }
.pf-expand:hover { color: #fff; }
.pf-expand[disabled] { opacity: .35; cursor: default; }
.pf-stage-controls { visibility: hidden; }
.pf-ready .pf-stage-controls { visibility: visible; }

/* Entrance: content rises into place as each scene scrolls in (JS only). */
.pf-ready .pf-reveal { transition: opacity .9s ease, transform 1s cubic-bezier(.22, 1, .36, 1); }
.pf-ready .pf-reveal:not(.is-in) { opacity: 0; transform: translateY(46px); }
.pf-ready .pf-project-show.pf-reveal:not(.is-in) { transform: translateY(60px) rotateX(10deg); }

/* --- Lightbox -------------------------------------------------------------- */
.pf-lightbox { width: min(94vw, 1500px); max-height: 92vh; padding: 0; border: 1px solid rgba(160, 210, 240, .3); border-radius: 12px; background: #050b16; color: #dce8f2; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.pf-lightbox::backdrop { background: rgba(2, 6, 14, .86); backdrop-filter: blur(6px); }
.pf-lightbox img { display: block; width: 100%; max-height: calc(92vh - 70px); object-fit: contain; background: #03070f; }
.pf-lightbox p { margin: 0; padding: 16px 64px 18px 20px; color: #b8c9d9; font-size: .9rem; }
.pf-lightbox-close { position: absolute; top: 10px; right: 10px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(190, 220, 245, .4); border-radius: 50%; background: rgba(5, 11, 22, .85); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pf-lightbox-close:hover { border-color: var(--cyan); }

/* --- Keyframes (stopped when the visitor pauses interactions) ------------- */
@keyframes pf-core-float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 9px)); } }
@keyframes pf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pf-ring-spin { to { transform: translate(-50%, -50%) translateZ(-150px) rotateX(72deg) rotateZ(360deg); } }
@keyframes pf-link-sway { 0%, 100% { transform: translateZ(150px) rotateY(-10deg) rotateX(4deg); } 50% { transform: translateZ(150px) rotateY(14deg) rotateX(-4deg); } }
html.motion-paused .pf-orbit-core, html.motion-paused .pf-float img, html.motion-paused .pf-float-link, html.motion-paused .pf-ring { animation: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .primary-nav { gap: clamp(13px, 1.65vw, 23px); }
  .pf-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
  .pf-features { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .pf-hero { min-height: 0; }
  .pf-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .pf-project { padding: 100px 0 108px; }
  .pf-project-grid { grid-template-columns: 1fr; gap: 54px; }
  .pf-flip .pf-project-copy { order: 0; }
  .pf-stage-view { height: clamp(330px, 64vw, 520px); }
  .pf-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-float-link { left: 3%; width: 30%; }
}
@media (max-width: 850px) {
  .pf-jump-inner { gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .pf-jump-inner::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
  .pf-orbit-stage { height: 340px; perspective: 800px; }
  .pf-orbit-card { width: 94px; padding: 10px 7px 9px; border-radius: 13px; }
  .pf-orbit-icon { width: 48px; height: 48px; border-radius: 12px; }
  .pf-orbit-card strong { font-size: .74rem; }
  .pf-orbit-card small { display: none; }
  .pf-orbit-label { min-width: 0; font-size: .84rem; }
  .pf-hero { padding-bottom: 54px; }
  .pf-jump span { display: none; }
  .pf-project { padding: 82px 0 90px; }
  .pf-tagline { font-size: clamp(2rem, 9vw, 2.6rem); }
  .pf-features { grid-template-columns: 1fr; }
  .pf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 48px; }
  .pf-metrics li { padding: 18px 14px 16px; }
  .pf-metrics strong { font-size: 1.7rem; }
  .pf-metrics span { font-size: .76rem; }
  .pf-stage-view { height: clamp(260px, 72vw, 360px); perspective: 1000px; }
  .pf-ready .pf-deck { top: 8%; width: 84%; }
  .pf-stage-controls { flex-wrap: wrap; }
  .pf-caption { order: 5; flex-basis: 100%; }
  .pf-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-promise li { padding: 8px 10px; }
  .pf-promise small { display: none; }
  .pf-category-cloud li { padding: 6px 10px; font-size: .7rem; }
  .pf-shot-panel { min-height: 0; }
}
