/* Portfolio layer: intro card, build-note dots and cards, frame-rate counter */
.pf-kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--neon); }

/* ---- intro (sits above Step inside, under the buzzing logo) */
#intro-ui { bottom: max(4vh, 18px); padding: 0 16px; }
.pf-intro { width: min(560px, 100%); padding: 20px 22px 16px; border-radius: var(--radius); background: rgba(22, 11, 9, .78); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 24px 70px rgba(0, 0, 0, .5); text-align: left; }
.pf-intro .pf-lede { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.pf-facts { margin: 0; display: grid; gap: 7px; }
.pf-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; }
.pf-facts dt { color: var(--ink-dim); letter-spacing: .06em; text-transform: uppercase; font-size: 11px; padding-top: 2px; }
.pf-facts dd { margin: 0; color: var(--ink); }
.pf-stats { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-stats li { font-size: 11.5px; line-height: 1.3; color: var(--ink-dim); }
.pf-stats b { display: block; font-size: 22px; font-weight: 600; color: #ffe3e8; text-shadow: 0 0 12px rgba(255, 119, 129, .6); }
.pf-how { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; }
.pf-how b { color: var(--ink); font-weight: 600; }
.pf-dot-demo { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); vertical-align: -1px; }
#intro-ui .enter { margin-top: 6px; }
#intro-ui .intro-note { margin: 0; }
@media (max-height: 760px) { .pf-stats { display: none; } }
@media (max-height: 640px) { .pf-intro .pf-facts div:nth-child(2) { display: none; } .pf-how { display: none; } }
@media (max-width: 480px) { .pf-intro { padding: 16px 16px 12px; } .pf-intro .pf-lede { font-size: 14px; } .pf-facts div { grid-template-columns: 64px 1fr; font-size: 12.5px; } }

/* ---- chips */
.pf-group { margin-left: auto; margin-right: 8px; }
.pf-chip[aria-pressed="true"] { background: rgba(255, 119, 129, .2); border-color: rgba(255, 119, 129, .6); box-shadow: 0 0 18px rgba(255, 119, 129, .3); }
body.intro .pf-group, body:not(.pf-live) #pf-fps { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .pf-chip span { display: none; } .pf-chip { width: 40px; padding: 0; justify-content: center; } #btn-menu span { display: none; } #btn-menu { width: 40px; padding: 0; justify-content: center; } .chip-group.zoom { display: none; } }

/* ---- build-note dots */
.pf-dots { position: absolute; inset: 0; pointer-events: none; z-index: 9; }
.pf-dot { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; pointer-events: none; opacity: 0; transition: opacity .35s; }
.pf-dot.on { pointer-events: auto; opacity: 1; }
.pf-dot i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--neon); border: 2px solid #ffe3e8; box-shadow: 0 0 10px rgba(255, 119, 129, .9), 0 0 24px rgba(255, 119, 129, .5); transition: transform .2s; }
.pf-dot i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255, 119, 129, .7); animation: pf-ping 2.4s ease-out infinite; }
.pf-dot.seen i { background: rgba(255, 227, 232, .9); }
.pf-dot.seen i::after { animation: none; opacity: 0; }
.pf-dot:hover i, .pf-dot:focus-visible i { transform: scale(1.3); }
.pf-dot:focus-visible { outline: none; }
@keyframes pf-ping { 0% { transform: scale(.5); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pf-dot i::after { animation: none; } }

/* ---- note card: a side sheet on wide screens, a bottom sheet on phones */
#pf-card { position: absolute; inset: 0; z-index: 30; }
#pf-card[hidden] { display: none; }
.pf-backdrop { position: absolute; inset: 0; background: rgba(8, 3, 2, .35); }
.pf-sheet { position: absolute; right: max(16px, env(safe-area-inset-right)); top: 70px; bottom: 76px; width: min(440px, calc(100% - 32px)); overflow: auto; padding: 26px 24px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); outline: none; overscroll-behavior: contain; }
@media (max-width: 720px) { .pf-sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 78vh; border-radius: var(--radius) var(--radius) 0 0; padding: 22px 16px max(16px, env(safe-area-inset-bottom)); } }
.pf-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 10, 8, .5); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.pf-sheet h2 { margin: 0 40px 14px 0; font-size: 22px; font-weight: 600; line-height: 1.2; }
.pf-sheet p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.pf-sheet .pf-kicker { font-size: 11px; color: var(--neon); }
.pf-tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tags li { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 119, 129, .35); color: var(--neon-soft); }
.pf-card-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-grow { flex: 1; }
.pf-btn { height: 38px; min-width: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); cursor: pointer; font-size: 14px; }
.pf-btn:hover { border-color: rgba(255, 119, 129, .5); }
.pf-btn.primary { border-color: rgba(255, 119, 129, .6); background: rgba(255, 119, 129, .16); color: #ffe3e8; }
.pf-count { font-size: 12px; color: var(--ink-dim); min-width: 44px; text-align: center; }
.pf-link { white-space: nowrap; background: none; border: 0; padding: 0; color: var(--neon-soft); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* before / after slider */
.pf-cmp { position: relative; margin: 0 0 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #1b1110; line-height: 0; user-select: none; -webkit-user-select: none; }
.pf-cmp img { width: 100%; height: auto; display: block; pointer-events: none; }
.pf-cmp-a { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.pf-cmp-a img { width: 100%; height: 100%; object-fit: cover; }
.pf-cmp-h { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #ffe3e8; box-shadow: 0 0 10px rgba(255, 119, 129, .9); pointer-events: none; }
.pf-cmp-h::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--neon); color: #2a0c0f; font: 600 13px/34px var(--font); text-align: center; letter-spacing: 2px; }
.pf-cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.pf-cmp-l { position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 4, 3, .7); font: 11px/1.5 var(--font); letter-spacing: .06em; color: var(--ink); pointer-events: none; }
.pf-cmp-l.a { left: 10px; } .pf-cmp-l.b { right: 10px; }

/* note index */
.pf-index { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.pf-index button { width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: 14.5px; display: flex; align-items: baseline; gap: 10px; }
.pf-index button:hover { border-color: rgba(255, 119, 129, .5); }
.pf-index span { flex: none; width: 74px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--neon); }
.pf-index em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--ink-dim); }
.pf-sheet .pf-lede { font-size: 15px; }
.pf-sheet .pf-facts div { font-size: 13.5px; }

/* ---- the frame-rate counter */
#pf-fps { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: 84px; z-index: 11; padding: 5px 10px; border-radius: 999px; background: rgba(20, 10, 8, .62); border: 1px solid var(--line); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-dim); cursor: pointer; transition: opacity .6s; }
#pf-fps b { color: #9ff0c5; font-weight: 600; }
#pf-fps[data-lvl="mid"] b { color: #ffd166; } #pf-fps[data-lvl="low"] b { color: #ff8a8a; }

/* inside the studio: one note for the room */
#pf-studio-note { position: absolute; left: max(16px, env(safe-area-inset-left)); top: 118px; z-index: 11; opacity: 0; pointer-events: none; transition: opacity .4s; }
#pf-studio-note.on { opacity: 1; pointer-events: auto; }
.pf-mini-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }

/* ---- footer credit */
#foot .pf-credit { font-size: 13px; color: var(--ink-dim); text-align: center; flex: 1; }
#foot .pf-credit b { color: var(--ink); font-weight: 600; }
#foot .pf-foot-btns { display: flex; gap: 12px; }
@media (max-width: 900px) { #foot .pf-credit { display: none; } #pf-fps { bottom: 76px; } }

/* the site's pages, under the notes */
.pf-sheet .pf-sub { margin-top: 18px; }
.pf-pages { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-pages button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink); cursor: pointer; font-size: 13.5px; }
.pf-pages button:hover { border-color: rgba(255, 119, 129, .5); }
a.pf-btn.pf-a { display: inline-flex; align-items: center; text-decoration: none; font-size: 13.5px; }
#foot .f-links, #foot .f-social { display: none; }
body.pf-busy .pf-dots, body.pf-busy #pf-fps { opacity: 0; pointer-events: none; }

/* SorelleVision in the portfolio copy: a blank navigator, no client work */
#tvb .tv-tile.ph .tv-soon, #tvb .tv-tile.ph .tv-cap { display: none; }

/* build notes are yellow sticky notes (like the notes on the case study page), so they never get mixed up with the room's own pink tap hints */
.pf-dot i { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 2px; background: #f4e27a; border: 0; transform: rotate(-8deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 0 14px rgba(244, 226, 122, .55); }
.pf-dot i::after { inset: -8px; border-radius: 4px; border-color: rgba(244, 226, 122, .75); }
.pf-dot.seen i { background: #cfc497; }
.pf-dot:hover i, .pf-dot:focus-visible i { transform: rotate(-8deg) scale(1.3); }
.pf-dot-demo, .pf-mini-dot { border-radius: 2px; background: #f4e27a; box-shadow: 0 0 8px rgba(244, 226, 122, .7); transform: rotate(-8deg); }
@media (max-width: 560px) { #pf-fps { display: none; } }
