/* Phone-only experience. Every rule is scoped to html.phone-mode (or #phone),
   and this file is linked with media="(max-width: 768px)", so desktop is untouched. */

html.phone-mode, html.phone-mode body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.phone-mode body > *:not(#phone):not(script) { display: none !important; }

#phone { position: fixed; inset: 0; z-index: 10; overflow: hidden; font-family: "Poppins", sans-serif; color: var(--fg-strong); -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); }
#phone * { box-sizing: border-box; }
#phone button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
#phone a { color: inherit; text-decoration: none; }
#phone input, #phone textarea { -webkit-user-select: text; user-select: text; font: inherit; }

/* ---------- Wallpaper: pure black, ONE subject (the 3D core), shared by lock + home ---------- */
.ph-wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #030304; }
.ph-wall__base { position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 0%, rgba(255, 255, 255, .055), transparent 70%), linear-gradient(180deg, #050506, #030304); }
.ph-wall__net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ph-wall__cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.ph-wall__cv.on { opacity: 1; }
.ph-wall__vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 52%, transparent 55%, rgba(0, 0, 0, .75) 100%); }
/* fallback hero if WebGL is off or the phone is low-power */
@keyframes phSpin { to { transform: rotate(360deg); } }

/* lock + home always sit on the black wallpaper, whatever theme the app sheets use */
.ph-lock, .ph-home { --fg-strong: #f2f3f5; --fg: #c4c8d0; --muted: #8a8f99; --border: rgba(255, 255, 255, .12); --bg: #050506; --primary: #e8e8ec; --secondary: #00e5ff; color: #f2f3f5; }

/* ---------- Lock screen: the model is the hero, the clock is a quiet detail ---------- */
.ph-lock { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 22px) 22px calc(var(--safe-b) + 24px); touch-action: none; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ph-lock.up { transform: translateY(-105%); }
.ph-lock__date { margin-top: 24px; font: 500 .72rem "JetBrains Mono", monospace; letter-spacing: .26em; color: #aeb3bd; }
.ph-aclock { position: relative; flex: none; margin-top: 22px; width: min(44vw, 20vh, 168px); aspect-ratio: 1; animation: phClockIn .9s .1s both cubic-bezier(.2, .8, .2, 1); }
.ph-aclock svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
@keyframes phClockIn { from { opacity: 0; transform: scale(.88) rotate(-8deg); } }
.ph-lock__digi { margin-top: 18px; font: 300 1.15rem "JetBrains Mono", monospace; letter-spacing: .18em; color: #f2f3f5; }
.ph-lock__digi small { font-size: .62em; color: #00e5ff; margin-left: .15rem; }
.ph-lock__stage { flex: 1 1 0; min-height: 90px; width: 100%; pointer-events: none; }
.ph-skip { position: absolute; top: calc(var(--safe-t) + 14px); right: 16px; padding: .35rem .9rem; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12) !important; background: rgba(255, 255, 255, .05) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- Home: a bento of live widgets floating over the model ---------- */
.ph-home { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.ph-home.ph-hold { opacity: 0; visibility: hidden; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px 4px; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.ph-status span { display: flex; gap: .45rem; align-items: center; font-size: .78rem; }
.ph-status .ph-status__os { font: 500 .62rem "JetBrains Mono", monospace; letter-spacing: .3em; color: #9aa0ab; margin-left: auto; margin-right: auto; }
.ph-scroll { flex: 1; overflow-y: auto; padding: 8px 16px calc(var(--safe-b) + 112px); scrollbar-width: none; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 130px), transparent calc(100% - 86px)); mask-image: linear-gradient(180deg, #000 calc(100% - 130px), transparent calc(100% - 86px)); }
.ph-scroll::-webkit-scrollbar { display: none; }

.ph-bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 56px; gap: 10px; }
#phone .ph-tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 13px 14px; overflow: hidden; text-align: left; border-radius: 22px; color: var(--fg-strong); background: linear-gradient(160deg, rgba(40, 41, 47, .78), rgba(14, 14, 17, .7)); border: 1px solid rgba(255, 255, 255, .11); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 14px 32px rgba(0, 0, 0, .4); transition: transform .18s, background .2s; }
#phone button.ph-tile:active { transform: scale(.965); background: rgba(255, 255, 255, .08); }
.ph-eyebrow { display: flex; align-items: center; gap: .45rem; font: 500 .56rem "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: #8a8f99; }
.ph-eyebrow > i { color: #00e5ff; font-size: .7rem; letter-spacing: 0; }
.ph-sub { font-size: .66rem; line-height: 1.35; color: var(--muted); margin-top: 3px; }

/* profile */
#phone .ph-t-profile { grid-column: 1 / -1; grid-row: span 2; flex-direction: row; align-items: center; gap: 14px; }
.ph-flip { position: relative; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; perspective: 700px; }
.ph-flip__inner { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.4, .2, .2, 1); }
.ph-flip.on .ph-flip__inner { transform: rotateY(180deg); }
.ph-flip img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2px solid rgba(255, 255, 255, .28); }
.ph-flip img:first-child { object-position: 50% 3%; scale: 1.28; transform-origin: 50% 16%; background: radial-gradient(circle at 50% 38%, #4a86ff 0%, #17306e 58%, #070c22 100%); }
.ph-flip img + img { transform: rotateY(180deg); object-fit: contain; object-position: 50% 100%; padding-top: 5%; background: radial-gradient(circle at 50% 30%, #2a2d35, #0b0c0f 75%); }
.ph-t-profile__txt { min-width: 0; }
.ph-t-profile h2 { font-size: 1.32rem; letter-spacing: -.01em; line-height: 1.2; margin-top: 3px; }
.ph-t-profile p { font-size: .72rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.ph-loc { display: flex; align-items: center; gap: .45rem; margin-top: 7px; font: 500 .6rem "JetBrains Mono", monospace; letter-spacing: .04em; color: #aeb3bd; }
.ph-loc i, .ph-livedot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 8px #3ddc97; animation: phPulse 2s ease-in-out infinite; }
@keyframes phPulse { 50% { opacity: .35; } }
.ph-theme { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08) !important; font-size: .75rem; }

/* projects: rotating real cards */
.ph-t-projects { grid-row: span 4; }
.ph-rot { flex: 1; min-height: 0; margin-top: 12px; overflow: hidden; }
.ph-rot.in { animation: phSwap .7s both cubic-bezier(.2, .8, .2, 1); }
@keyframes phSwap { from { opacity: 0; transform: translateY(12px); } }
.ph-rot h3 { font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-rot p { margin-top: 8px; font-size: .68rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.ph-rot__dots { display: flex; gap: 5px; margin-top: 10px; }
.ph-rot__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: all .3s; }
.ph-rot__dots i.on { width: 16px; border-radius: 3px; background: #00e5ff; }

/* awards + github */
.ph-t-awards, .ph-t-gh { grid-row: span 2; }
.ph-big { margin-top: auto; font-size: 2rem; letter-spacing: -.02em; line-height: 1; font-weight: 600; background: linear-gradient(90deg, #fff, #9aa0ab); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-gh__name { margin-top: auto; font: 600 .9rem "JetBrains Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-livedot { display: none; margin-left: .2rem; }
.is-live .ph-livedot { display: block; }

/* terminal */
.ph-t-term { grid-column: 1 / -1; grid-row: span 2; }
.ph-tm { margin-top: 7px; font: 500 .74rem "JetBrains Mono", monospace; white-space: nowrap; overflow: hidden; }
.ph-tm__p { color: #3ddc97; }
.ph-caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: #00e5ff; animation: phBlink 1s steps(1) infinite; }
@keyframes phBlink { 50% { opacity: 0; } }
.ph-tm__out { margin-top: 5px; min-height: 1.2em; font: 400 .7rem "JetBrains Mono", monospace; color: #b7bcc6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* skills tile: a labeled, animated sample of the curated skill nodes */
#phone .ph-t-skills { grid-column: 1 / -1; grid-row: span 2; justify-content: space-between; min-height: 122px; padding: 13px 15px; background: linear-gradient(135deg, rgba(14, 28, 39, .9), rgba(13, 13, 18, .78)); }
.ph-skill-tile__head { display: flex; align-items: center; justify-content: space-between; }
.ph-skill-tile__head .ph-eyebrow > i { color: #00e5ff; }
.ph-skill-tile__head em { color: #00e5ff; font: 500 .57rem "JetBrains Mono", monospace; letter-spacing: .12em; font-style: normal; }
.ph-skill-tile__title { color: #f2f3f5; font-size: .91rem; font-weight: 600; letter-spacing: -.02em; }
.ph-marq { position: relative; display: flex; align-items: center; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ph-marq__in { display: flex; width: max-content; animation: phMarq 42s linear infinite; }
.ph-marq__in span { flex: none; margin-right: .45rem; padding: .24rem .55rem; font: 500 .62rem "JetBrains Mono", monospace; color: #c9ccd3; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .035); }
@keyframes phMarq { to { transform: translateX(-50%); } }
.ph-skill-tile__hint { display: flex; align-items: center; gap: .4rem; color: #8a8f99; font: 500 .58rem "JetBrains Mono", monospace; }
.ph-skill-tile__hint i { color: #00e5ff; transition: transform .2s; }
#phone .ph-t-skills:active .ph-skill-tile__hint i { transform: translateX(4px); }

/* small tiles */
#phone .ph-t-sm { flex-direction: row; align-items: center; gap: 10px; padding: 0 12px; }
.ph-sm__ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: .82rem; color: var(--c, #00e5ff); background: rgba(255, 255, 255, .07); background: color-mix(in srgb, var(--c, #00e5ff) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #00e5ff) 28%, transparent); }
.ph-sm__t { min-width: 0; display: flex; flex-direction: column; }
.ph-sm__t b { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.ph-sm__t small { font-size: .6rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#phone .ph-t-gal { background-image: linear-gradient(90deg, rgba(5, 5, 6, .88), rgba(5, 5, 6, .4)), url(im1.jpg); background-size: cover; background-position: center; }

.ph-foot { margin-top: 18px; text-align: center; }
.ph-foot button { font: 400 .72rem "JetBrains Mono", monospace; color: #6f747e; text-decoration: underline; padding: .4rem .8rem; }

.ph-dock { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 12px); z-index: 12; display: flex; gap: 6px; padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .11); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 14px 36px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07); }
.ph-dock a { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; color: #e8e8ec; transition: transform .15s, background .2s; }
.ph-dock a:active { transform: scale(.88); background: rgba(255, 255, 255, .1); }
.ph-badge { position: absolute; z-index: 2; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff3b30; color: #fff; font: 600 .6rem "Poppins", sans-serif; display: grid; place-items: center; box-shadow: 0 0 0 2px #0b0b0d; animation: phPop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes phPop { from { transform: scale(0); } }

/* ---- depth + data visuals ---- */
#phone .ph-tile { isolation: isolate; }
/* light sheen that follows touch / tilt */
.ph-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: var(--so, 0); transition: opacity .35s; background: radial-gradient(170px circle at var(--sx, 50%) var(--sy, -30%), rgba(255, 255, 255, .13), transparent 70%); }
/* projects: accent glow changes with each project */
.ph-t-projects::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(110% 62% at 100% 0%, rgba(0, 229, 255, .22), transparent 64%); background: radial-gradient(110% 62% at 100% 0%, color-mix(in srgb, var(--acc, #00e5ff) 30%, transparent), transparent 64%); }
#phone .ph-t-projects { border-color: color-mix(in srgb, var(--acc, #00e5ff) 32%, rgba(255, 255, 255, .1)); }
.ph-idx { margin-left: auto; font-style: normal; letter-spacing: .12em; color: var(--acc, #00e5ff); }
.ph-rot__dots i.on { background: var(--acc, #00e5ff); }
/* awards: ring of "top 100 of 864" */
.ph-ring { position: absolute; top: 12px; right: 12px; width: 52px; height: 52px; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke-width: 5; }
.ph-ring .t { stroke: rgba(255, 255, 255, .1); }
.ph-ring .a { stroke: #00e5ff; stroke-linecap: round; stroke-dasharray: 0 163.4; transition: stroke-dasharray 1.3s cubic-bezier(.2, .8, .2, 1) .35s; filter: drop-shadow(0 0 4px rgba(0, 229, 255, .8)); }
.ph-ring .a.on { stroke-dasharray: 19 163.4; }
/* github: real push activity over the last 6 months */
.ph-spark { position: absolute; top: 12px; right: 14px; height: 26px; display: flex; align-items: flex-end; gap: 3px; }
.ph-spark i { width: 5px; height: 22%; border-radius: 2px; background: linear-gradient(180deg, #3ddc97, rgba(61, 220, 151, .25)); transition: height .9s cubic-bezier(.2, .8, .2, 1); }
/* terminal: short command history */
.ph-tm__log { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; font: 400 .64rem "JetBrains Mono", monospace; color: #9aa0ab; }
.ph-tm__log .h { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tm__log em { font-style: normal; color: #6f747e; }

/* entrance: tiles rise in one after another as the lock screen lifts */
.ph-home.ph-in .ph-tile { animation: phRise .65s calc(.05s + var(--i, 0) * .055s) both cubic-bezier(.2, .8, .2, 1); }
.ph-home.ph-in .ph-dock { animation: phDockIn .6s .35s both cubic-bezier(.2, .8, .2, 1); }
@keyframes phRise { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes phDockIn { from { opacity: 0; transform: translate(-50%, 24px); } }

/* ---------- App sheet ---------- */
.ph-sheet { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); transform-origin: 0 0; will-change: transform, opacity; }
.ph-sheet__bar { position: relative; display: flex; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 10px) 14px 10px; border-bottom: 1px solid var(--border); }
.ph-back { position: absolute; left: 10px; bottom: 8px; display: flex; align-items: center; gap: .35rem; padding: .35rem .7rem; font-size: .85rem; color: var(--primary) !important; }
.ph-sheet__title { font-weight: 600; font-size: 1rem; }
.ph-sheet__body { flex: 1; overflow-y: auto; padding: 16px 16px calc(var(--safe-b) + 40px); overscroll-behavior: contain; }
.ph-sheet__grab { position: absolute; top: calc(var(--safe-t) + 4px); left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--border); }
.ph-hint { text-align: center; font-size: .75rem; color: var(--muted); margin-bottom: 10px; }

/* cloned desktop cards, made touch-friendly and cheap to render */
.ph-sheet .card { backdrop-filter: none; -webkit-backdrop-filter: none; will-change: auto; transform: none !important; box-shadow: none; margin-bottom: 14px; padding: 18px; border-radius: 20px; background: var(--bg-alt); }
.ph-sheet .card::before { display: none; }
.ph-sheet .card:hover { border-color: var(--border); }
.ph-sheet .tags li:hover { transform: none; background: rgba(92, 142, 255, .12); color: var(--fg-strong); }
.ph-sheet .exp__head { flex-direction: column; gap: .5rem; }
.ph-sheet .project__link { padding: .55rem 0; }

.ph-snap { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.ph-snap::-webkit-scrollbar { display: none; }
.ph-snap > .card { flex: 0 0 86%; scroll-snap-align: center; margin: 0; }
.ph-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.ph-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: all .25s; }
.ph-dots i.on { width: 20px; border-radius: 4px; background: var(--secondary); }

.ph-acc > button { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; font-size: 1rem; font-weight: 600; color: var(--fg-strong) !important; }
.ph-acc > button i.c { transition: transform .3s; color: var(--muted); }
.ph-acc.open > button i.c { transform: rotate(180deg); }
.ph-acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.ph-acc.open .ph-acc__body { grid-template-rows: 1fr; }
.ph-acc__body > div { overflow: hidden; }
.ph-acc .tags { margin-top: .9rem; }

.ph-skill-intro { margin: 2px 0 14px; text-align: left; line-height: 1.5; }
.ph-skill-acc { --skill-color: #00e5ff; overflow: hidden; padding: 0 !important; border-color: color-mix(in srgb, var(--skill-color) 20%, rgba(255, 255, 255, .1)) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--skill-color) 7%, rgba(20, 21, 25, .94)), rgba(12, 13, 17, .9)) !important; }
.ph-skill-acc > button { position: relative; gap: 10px; min-height: 76px; padding: 13px 14px; }
.ph-skill-acc__title { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }
.ph-skill-acc__eyebrow { color: var(--skill-color); font: 500 .55rem "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.ph-skill-acc__name { margin-top: 3px; color: #f2f3f5; font-size: .94rem; line-height: 1.2; }
.ph-skill-acc__summary { margin-top: 3px; overflow: hidden; max-width: 100%; color: #8a8f99; font-size: .66rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.ph-skill-acc__icon { display: grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--skill-color) 14%, transparent); color: var(--skill-color); font-size: .85rem; }
.ph-skill-acc__count { color: color-mix(in srgb, var(--skill-color) 70%, #fff); font: 500 .62rem "JetBrains Mono", monospace; }
.ph-skill-acc > button i.c { margin-left: 1px; color: var(--skill-color); font-size: .72rem; }
.ph-skill-acc__body > div { padding: 0 14px; }
.ph-skill-acc.open .ph-acc__body > div { padding-bottom: 14px; }
.ph-skill-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }
#phone .ph-skill-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .045); color: #c4c8d0; font: 500 .68rem "JetBrains Mono", monospace; transition: color .2s, border-color .2s, background .2s, box-shadow .2s; }
.ph-skill-chip > i { width: 6px; height: 6px; border-radius: 50%; background: var(--skill-color); box-shadow: 0 0 8px color-mix(in srgb, var(--skill-color) 60%, transparent); }
#phone .ph-skill-chip.selected { border-color: color-mix(in srgb, var(--skill-color) 65%, transparent); background: color-mix(in srgb, var(--skill-color) 13%, transparent); color: #fff; box-shadow: 0 0 16px color-mix(in srgb, var(--skill-color) 16%, transparent); }
.ph-skill-trace { margin: 4px 0 14px; padding: 16px; border: 1px solid rgba(0, 229, 255, .18); border-radius: 18px; background: linear-gradient(145deg, rgba(0, 229, 255, .06), rgba(255, 255, 255, .025)); }
.ph-skill-trace__head { margin-bottom: 10px; }
.ph-skill-trace__label { color: #00e5ff; font: 500 .56rem "JetBrains Mono", monospace; letter-spacing: .13em; }
.ph-skill-trace__head h3 { margin-top: 4px; color: #f2f3f5; font-size: 1rem; }
.ph-skill-trace__empty { color: #8a8f99; font-size: .75rem; line-height: 1.5; }
.ph-skill-trace__projects { display: grid; gap: 9px; }
.ph-skill-trace__project { padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 13px; background: rgba(0, 0, 0, .16); }
.ph-skill-trace__project h4 { color: #f2f3f5; font-size: .78rem; line-height: 1.4; }
.ph-skill-trace__project p { margin-top: 4px; color: #8a8f99; font-size: .67rem; line-height: 1.5; }
.ph-skill-trace__project a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #00e5ff !important; font-size: .68rem; }

.ph-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-gal button { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg-alt) !important; }
.ph-gal img { width: 100%; height: 100%; object-fit: cover; }
.ph-gal button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.ph-insta { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 16px; padding: .8rem; border-radius: 16px; border: 1px solid var(--border); color: var(--primary) !important; font-size: .9rem; }
.ph-viewer { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: #000; }
.ph-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ph-viewer .x { position: absolute; top: calc(var(--safe-t) + 12px); right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
.ph-viewer .n { position: absolute; bottom: calc(var(--safe-b) + 18px); left: 0; right: 0; text-align: center; color: #ccd; font-size: .8rem; }

.ph-sheet .repo { display: flex; margin-bottom: 12px; }

/* Terminal app */
.ph-sheet--term .ph-sheet__body { display: flex; flex-direction: column; padding: 0; background: #060a18; font-family: "JetBrains Mono", monospace; color: #c8d3f5; }
.ph-term__out { flex: 1; overflow-y: auto; padding: 14px 16px; font-size: .78rem; line-height: 1.6; -webkit-user-select: text; user-select: text; overscroll-behavior: contain; }
.ph-term__out div { white-space: pre-wrap; word-break: break-word; }
.ph-term__out .ok { color: #3ddc97; } .ph-term__out .err { color: #ff6b81; } .ph-term__out .dim { color: #7f8db8; } .ph-term__out .cmd { color: #e8eeff; }
.ph-term__out a { color: #00e5ff; text-decoration: underline; }
.ph-term__keys { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; border-top: 1px solid rgba(0, 229, 255, .2); scrollbar-width: none; }
.ph-term__keys::-webkit-scrollbar { display: none; }
.ph-term__keys button { flex: none; padding: .45rem .8rem; border-radius: 999px; font-size: .74rem; color: #00e5ff !important; border: 1px solid rgba(0, 229, 255, .35) !important; background: rgba(0, 229, 255, .08) !important; font-family: inherit; }
.ph-term__keys button.hot { color: #3ddc97 !important; border-color: rgba(61, 220, 151, .45) !important; }
.ph-term__row { display: flex; gap: .5rem; align-items: center; padding: 6px 16px calc(var(--safe-b) + 14px); font-size: .78rem; }
.ph-term__row span { color: #3ddc97; white-space: nowrap; }
.ph-term__row input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #e8eeff; font-size: 16px; font-family: inherit; caret-color: #00e5ff; }

/* Contact app */
.ph-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ph-quick a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--border); font-size: .88rem; }
.ph-quick i { color: var(--secondary); }
.ph-form label { display: block; font-size: .75rem; color: var(--muted); margin: 0 0 4px 4px; }
.ph-form input, .ph-form textarea { width: 100%; margin-bottom: 14px; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: rgba(127, 141, 184, .1); color: var(--fg-strong); font-size: 16px; outline: 0; resize: none; }
.ph-form input:focus, .ph-form textarea:focus { border-color: var(--primary); }
.ph-send { width: 100%; padding: .95rem; border-radius: 16px; font-weight: 600; color: #fff !important; background: linear-gradient(120deg, var(--primary), var(--accent)) !important; }
.ph-status-msg { margin-top: 12px; text-align: center; font-size: .85rem; min-height: 1.3em; }
.ph-status-msg.ok { color: #3ddc97; } .ph-status-msg.err { color: #ff6b81; }

@media (prefers-reduced-motion: reduce) {
  #phone *, #phone *::before, #phone *::after { animation: none !important; transition-duration: .01ms !important; }
}
/* lock hint: three animated chevrons + one calm line of text */
.ph-lock__hint { margin-top: .5rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; font: 500 .7rem "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: #aeb3bd; text-align: center; }
.ph-chev { position: relative; display: block; width: 18px; height: 22px; }
.ph-chev i { position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-top: 1.6px solid #8db8ff; border-left: 1.6px solid #8db8ff; transform: rotate(45deg); opacity: 0; animation: phChev 1.8s ease-in-out infinite; }
.ph-chev i:nth-child(1) { top: 11px; } .ph-chev i:nth-child(2) { top: 6px; animation-delay: .22s; } .ph-chev i:nth-child(3) { top: 1px; animation-delay: .44s; }
@keyframes phChev { 0% { opacity: 0; transform: translateY(6px) rotate(45deg); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px) rotate(45deg); } }
.ph-dock a { position: relative; }
