/* ════════════════════════════════════════════════════════════════
   XProjects v2 — inner pages
   Page hero (the "level intro") + per-page body treatments for
   Services, Work, About, Contact and Careers. Scoped to html.skin-v2
   like skin.css; loaded only when the skin resolves to v2.
   ════════════════════════════════════════════════════════════════ */

/* ── PAGE HERO ─────────────────────────────────────────────────── */
html.skin-v2 .v2-ph {
    --ph: #bce9fd; --ph-dim: rgba(188,233,253,.22); --hot: #FFB800;
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: -16px; min-height: min(780px, calc(100svh - 64px));
    background: #050d20; color: var(--ph);
    border-bottom: 4px solid var(--c-border);
    display: flex; flex-direction: column;
}
@media (min-width: 768px) { html.skin-v2 .v2-ph { margin-top: -48px; } }
html.skin-v2 .v2-ph-sky { position: absolute; inset: 0; z-index: -3; }
html.skin-v2 .v2-ph .v2-stars { position: absolute; top: 0; left: 0; width: 1px; height: 1px; animation: v2-ph-drift 90s linear infinite; }
html.skin-v2 .v2-ph .v2-stars--2 { width: 2px; height: 2px; animation-duration: 60s; }
html.skin-v2 .v2-ph .v2-stars--3 { width: 3px; height: 3px; animation-duration: 40s; }
@keyframes v2-ph-drift { to { transform: translateX(-220px); } }
html.skin-v2 .v2-ph-glow {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(55% 70% at 74% 46%, rgba(0,102,255,.34), transparent 70%),
        radial-gradient(40% 50% at 6% 110%, rgba(255,184,0,.16), transparent 70%),
        radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55));
}
html.skin-v2 .v2-ph .v2-scan { z-index: 6; }

html.skin-v2 .v2-ph-frame { position: absolute; inset: 30px 14px 70px; z-index: 5; pointer-events: none; border: 1px solid var(--ph-dim); animation: v2-ph-frame .6s steps(6, end) both; }
@keyframes v2-ph-frame { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
html.skin-v2 .v2-ph-rule { position: absolute; top: 0; bottom: 0; inset-inline-start: 52%; width: 1px; background: linear-gradient(transparent, var(--ph-dim) 15%, var(--ph-dim) 85%, transparent); }
html.skin-v2 .v2-ph-tab {
    position: absolute; top: -1px; padding: 9px 16px 8px; font-size: 9px; color: var(--ph);
    background: rgba(188,233,253,.08); border-bottom: 1px solid var(--ph);
    text-shadow: 0 0 8px rgba(188,233,253,.6);
}
html.skin-v2 .v2-ph-tab b { font-weight: 400; color: var(--hot); }
html.skin-v2 .v2-ph-tab--tl { inset-inline-start: -1px; padding-inline-end: 26px; clip-path: polygon(0 0, 100% 0, 100% 55%, calc(100% - 10px) 100%, 0 100%); }
html.skin-v2 .v2-ph-tab--tr { inset-inline-end: -1px; padding-inline-start: 26px; clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 55%); }
html.skin-v2[dir="rtl"] .v2-ph-tab--tl { clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 55%); }
html.skin-v2[dir="rtl"] .v2-ph-tab--tr { clip-path: polygon(0 0, 100% 0, 100% 55%, calc(100% - 10px) 100%, 0 100%); }
html.skin-v2[lang="ar"] .v2-ph-tab { font-size: 12px; }

html.skin-v2 .v2-ph-inner { flex: 1; width: 100%; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding-top: 92px; padding-bottom: 110px; }
@media (min-width: 1024px) { html.skin-v2 .v2-ph-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
html.skin-v2 .v2-ph-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
html.skin-v2 .v2-ph-kicker { display: flex; align-items: center; gap: 10px; color: var(--hot); text-shadow: 0 0 8px rgba(255,184,0,.5); }
html.skin-v2 .v2-ph-kicker i { width: 8px; height: 8px; background: var(--hot); animation: v2-blink 1s steps(1, end) infinite; }
html.skin-v2 .v2-ph-title { display: grid; font-family: 'VT323', ui-monospace, monospace; font-weight: 400; font-size: clamp(64px, 8.6vw, 136px); line-height: .86; text-transform: uppercase; color: #eef6ff; text-shadow: 0 0 18px rgba(188,233,253,.45), 4px 4px 0 #0050cb; overflow-wrap: anywhere; }
html.skin-v2[lang="ar"] .v2-ph-title,
html.skin-v2[lang="ar"] .v2-ph-title span { font-family: 'Cairo', system-ui, sans-serif !important; font-weight: 900; }
html.skin-v2[lang="ar"] .v2-ph-title { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.25; }
html.skin-v2 .v2-ph-line { display: block; width: fit-content; max-width: 100%; animation: v2-ph-decode .7s steps(7, end) var(--d, .2s) both; }
html.skin-v2 .v2-ph-line:last-child { color: var(--hot); text-shadow: 0 0 18px rgba(255,184,0,.4), 4px 4px 0 #0050cb; }
@keyframes v2-ph-decode {
    0%   { clip-path: inset(0 100% 0 0); filter: drop-shadow(-6px 0 0 rgba(255,184,0,.9)); }
    60%  { filter: drop-shadow(4px 0 0 rgba(0,102,255,.9)); }
    100% { clip-path: inset(0 0 0 0); filter: none; }
}
html.skin-v2[dir="rtl"] .v2-ph-line { animation-name: v2-ph-decode-rtl; }
@keyframes v2-ph-decode-rtl { 0% { clip-path: inset(0 0 0 100%); } 100% { clip-path: inset(0 0 0 0); } }
html.skin-v2 .v2-ph-desc { max-width: 52ch; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: #c9d6ef; }
html.skin-v2[lang="ar"] .v2-ph-desc { font-family: 'Cairo', system-ui, sans-serif; }

html.skin-v2 .v2-ph-cells { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; filter: drop-shadow(0 0 6px rgba(188,233,253,.28)); }
html.skin-v2 .v2-ph-cell {
    --cut: 10px; position: relative; isolation: isolate; min-width: 132px; padding: 10px 18px 10px 14px;
    background: rgba(188,233,253,.55);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
    animation: v2-ph-cell .4s steps(4, end) var(--d, .7s) both;
}
html.skin-v2 .v2-ph-cell::before { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: inherit; background: linear-gradient(135deg, rgba(10,27,61,.96), rgba(5,13,32,.96)); }
html.skin-v2 .v2-ph-cell dt { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(188,233,253,.62); }
html.skin-v2 .v2-ph-cell dd { font-family: 'VT323', ui-monospace, monospace; font-size: 30px; line-height: 1; color: #e8f4ff; text-shadow: 0 0 8px rgba(188,233,253,.5); }
html.skin-v2[lang="ar"] .v2-ph-cell dt { font-family: 'Cairo', system-ui, sans-serif; letter-spacing: 0; font-size: 12px; }
@keyframes v2-ph-cell {
    0%   { opacity: 0; transform: translateX(-6px); }
    40%  { opacity: 1; transform: translateX(5px); }
    100% { opacity: 1; transform: none; }
}

html.skin-v2 .v2-ph-viewer {
    position: relative; justify-self: center; width: min(520px, 100%); aspect-ratio: 1 / 1; margin: 0;
    display: grid; place-items: center;
    background: radial-gradient(circle at 50% 55%, rgba(0,102,255,.28), transparent 62%);
    border: 1px solid var(--ph-dim);
    animation: v2-ph-view .8s steps(8, end) .35s both;
}
@keyframes v2-ph-view { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
html.skin-v2 .v2-ph-corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--hot); }
html.skin-v2 .v2-ph-corner--tl { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; }
html.skin-v2 .v2-ph-corner--tr { top: -2px; right: -2px; border-top-width: 3px; border-right-width: 3px; }
html.skin-v2 .v2-ph-corner--bl { bottom: -2px; left: -2px; border-bottom-width: 3px; border-left-width: 3px; }
html.skin-v2 .v2-ph-corner--br { bottom: -2px; right: -2px; border-bottom-width: 3px; border-right-width: 3px; }
html.skin-v2 .v2-ph-ret { position: absolute; inset: 6%; width: 88%; height: 88%; overflow: visible; }
html.skin-v2 .v2-ph .v2-ring { fill: none; stroke: rgba(188,233,253,.35); stroke-width: .6; stroke-dasharray: 2 3; transform-box: fill-box; transform-origin: center; animation: v2-ph-spin 30s linear infinite; }
html.skin-v2 .v2-ph .v2-ring--b { stroke: rgba(255,184,0,.4); stroke-dasharray: 14 8; animation-duration: 18s; animation-direction: reverse; }
@keyframes v2-ph-spin { to { transform: rotate(360deg); } }
html.skin-v2 .v2-ph-img { position: relative; z-index: 1; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 0 22px rgba(0,102,255,.45)) drop-shadow(8px 10px 0 rgba(0,0,0,.35)); animation: v2-ph-float 3.2s steps(2, end) infinite; }
@keyframes v2-ph-float { 50% { transform: translateY(-6px); } }
html.skin-v2 .v2-ph-beam { position: absolute; z-index: 2; inset-inline: 0; top: 0; height: 14%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(188,233,253,.22) 80%, rgba(188,233,253,.9) 82%, transparent 84%); mix-blend-mode: screen; animation: v2-ph-beam 3s steps(16, end) infinite; }
@keyframes v2-ph-beam { from { transform: translateY(-20%); } to { transform: translateY(720%); } }
html.skin-v2 .v2-ph-cap { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 8px; color: var(--ph); background: rgba(5,13,32,.8); border-top: 1px solid var(--ph-dim); }
html.skin-v2 .v2-ph-sig { display: inline-flex; align-items: center; gap: 3px; color: var(--hot); }
html.skin-v2 .v2-ph-sig i { width: 5px; height: 9px; background: var(--hot); animation: v2-blink 1.2s steps(1, end) infinite; }
html.skin-v2 .v2-ph-sig i:nth-child(2) { animation-delay: .3s; }
html.skin-v2 .v2-ph-sig i:nth-child(3) { animation-delay: .6s; }
html.skin-v2 .v2-ph-sig i:nth-child(4) { animation-delay: .9s; }

html.skin-v2 .v2-ph-ticker { position: absolute; z-index: 5; inset: auto 0 0 0; height: 46px; display: flex; overflow: hidden; border-top: 1px solid var(--ph-dim); background: rgba(5,13,32,.9); }
html.skin-v2 .v2-ph-ticker-run { flex: none; display: flex; align-items: center; gap: 16px; padding-inline-end: 16px; white-space: nowrap; font-size: 9px; color: rgba(188,233,253,.7); }
html.skin-v2 .v2-ph-ticker-run i { font-style: normal; color: var(--hot); }

@media (max-width: 1023px) {
    html.skin-v2 .v2-ph-rule { display: none; }
    html.skin-v2 .v2-ph-viewer { width: min(300px, 76%); order: -1; }
    html.skin-v2 .v2-ph-inner { padding-top: 76px; padding-bottom: 90px; gap: 24px; }
}
@media (max-width: 640px) {
    html.skin-v2 .v2-ph-frame { inset: 26px 8px 58px; }
    html.skin-v2 .v2-ph-tab--tr { display: none; }
    html.skin-v2 .v2-ph-cell { min-width: 0; flex: 1 1 40%; }
}

/* ── Shared: section headers on inner pages ───────────────────── */
html.skin-v2 .v2-sec-head { display: grid; gap: 12px; margin-bottom: 40px; }
html.skin-v2 .v2-sec-head h2 { font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(32px, 4.2vw, 56px); line-height: 1; color: var(--c-on-surface); }

/* ── SERVICES: mission files ───────────────────────────────────── */
html.skin-v2 .v2-holo {
    position: relative; isolation: isolate; overflow: hidden;
    background: #0a1b3d !important; border: 3px solid var(--c-border) !important;
    box-shadow: 8px 8px 0 0 var(--c-border) !important;
}
html.skin-v2 .v2-holo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: conic-gradient(at 2px 2px, transparent 75%, rgba(188,233,253,.18) 0) 0 0 / 22px 22px, radial-gradient(circle at 50% 50%, rgba(0,102,255,.4), transparent 60%); }
html.skin-v2 .v2-holo .material-symbols-outlined { color: #bce9fd !important; opacity: 1 !important; text-shadow: 0 0 24px rgba(188,233,253,.8), 6px 6px 0 #0050cb; animation: v2-ph-float 2.8s steps(2, end) infinite; }
html.skin-v2 .v2-holo-ring { position: absolute; inset: 14%; border: 2px dashed rgba(255,184,0,.45); border-radius: 50% !important; animation: v2-ph-spin 24s linear infinite; }
html.skin-v2 .v2-holo-tag { position: absolute; z-index: 2; top: 0; inset-inline-start: 0; background: #FFB800; color: #1a1c1c; padding: 9px 12px 8px; font-size: 9px; }
html.skin-v2 .v2-holo-tag--end { inset-inline-start: auto; inset-inline-end: 0; background: transparent; color: #bce9fd; }
html.skin-v2 .v2-holo-scan { position: absolute; inset-inline: 0; top: 0; height: 12%; background: linear-gradient(180deg, transparent, rgba(188,233,253,.18) 85%, rgba(188,233,253,.7) 86%, transparent 88%); animation: v2-ph-beam 3.4s steps(16, end) infinite; pointer-events: none; }
html.skin-v2 .v2-file-no { color: var(--c-on-surface-var); }
html.skin-v2 #services-list li .material-symbols-outlined { font-size: 18px; }
html.skin-v2 #services-list li { padding: 10px 14px; background: var(--c-surface-lowest); border: 2px solid var(--c-border); box-shadow: 3px 3px 0 0 var(--c-border); }

/* ── WORK: archive rows (aliunin.com/work) ─────────────────────── */
html.skin-v2 .v2-arc { display: grid; gap: 0; border: 3px solid var(--c-border); box-shadow: 8px 8px 0 0 var(--c-border); background: #050d20; }
html.skin-v2 .v2-arc-row {
    position: relative; isolation: isolate; overflow: hidden; display: block;
    min-height: 260px; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 52px);
    border-bottom: 2px solid rgba(188,233,253,.18); color: #f1f5ff;
}
html.skin-v2 .v2-arc-row:last-child { border-bottom: 0; }
html.skin-v2 .v2-arc-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: grayscale(.3) brightness(.45) sepia(.2) hue-rotate(180deg) saturate(1.6); transform: scale(1.02); transition: transform .5s steps(5, end), filter .5s steps(5, end); }
html.skin-v2 .v2-arc-bg--pat { filter: none; opacity: .6; background: conic-gradient(at 3px 3px, transparent 75%, rgba(255,184,0,.35) 0) 0 0 / 18px 18px, linear-gradient(135deg, #0a1b3d, #003fa4); }
html.skin-v2 .v2-arc-row::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,13,32,.92) 30%, rgba(5,13,32,.45)), repeating-linear-gradient(0deg, rgba(188,233,253,.05) 0 1px, transparent 1px 4px); }
html.skin-v2[dir="rtl"] .v2-arc-row::after { background: linear-gradient(270deg, rgba(5,13,32,.92) 30%, rgba(5,13,32,.45)), repeating-linear-gradient(0deg, rgba(188,233,253,.05) 0 1px, transparent 1px 4px); }
/* Own product banner keeps its true colours (no hue shift), just dimmed */
html.skin-v2 .v2-arc-bg--own { filter: brightness(.75); background-color: #0a1b3d; background-size: auto 78%; background-repeat: no-repeat; background-position: right 7% center; }
html.skin-v2[dir="rtl"] .v2-arc-bg--own { background-position: left 7% center; }
html.skin-v2 .v2-arc-row:hover .v2-arc-bg { transform: scale(1.06); filter: grayscale(0) brightness(.6) saturate(1.2); }
html.skin-v2 .v2-arc-no { font-size: 9px; color: #FFB800; }
html.skin-v2 .v2-arc-title {
    margin-top: 14px; font-family: 'VT323', ui-monospace, monospace; font-size: clamp(44px, 6vw, 86px); line-height: .9; text-transform: uppercase;
    color: #ffe39a; text-shadow: 0 0 18px rgba(255,184,0,.45);
}
html.skin-v2[lang="ar"] .v2-arc-title { font-family: 'Cairo', system-ui, sans-serif !important; font-weight: 900; font-size: clamp(30px, 4vw, 54px); line-height: 1.3; }
html.skin-v2 .v2-arc-tags { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 14px; }
html.skin-v2 .v2-arc-tag { --cut: 7px; background: #FFB800; color: #1a1c1c; padding: 5px 14px 4px 9px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
html.skin-v2 .v2-arc-desc { margin-top: 18px; max-width: 64ch; font-family: 'VT323', ui-monospace, monospace; font-size: 22px; line-height: 1.15; text-transform: uppercase; color: #ffd36b; }
html.skin-v2[lang="ar"] .v2-arc-desc { font-family: 'Cairo', system-ui, sans-serif !important; font-size: 16px; text-transform: none; line-height: 1.6; }
html.skin-v2 .v2-arc-go { position: absolute; inset-inline-end: clamp(20px, 4vw, 52px); top: 50%; transform: translate(0, -50%); width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid #FFB800; color: #FFB800; font-size: 28px; opacity: 0; transition: opacity .2s steps(2, end), transform .2s steps(2, end); }
html.skin-v2 .v2-arc-row:hover .v2-arc-go, html.skin-v2 .v2-arc-row:focus-visible .v2-arc-go { opacity: 1; transform: translate(-6px, -50%); }
html.skin-v2[dir="rtl"] .v2-arc-go { transform: translate(0, -50%) scaleX(-1); }
html.skin-v2 .v2-arc-row:focus-visible { outline: 3px dashed #FFB800; outline-offset: -6px; }
/* Glitch strokes on hover (aliunin's action strokes) */
html.skin-v2 .v2-arc-row::before { content: ""; position: absolute; z-index: 1; inset-inline: 0; top: 0; height: 3px; background: #FFB800; transform: scaleX(0); transform-origin: left; transition: transform .3s steps(6, end); }
html.skin-v2 .v2-arc-row:hover::before { transform: scaleX(1); }
html.skin-v2 .v2-arc-feat { position: absolute; top: clamp(28px, 4vw, 48px); inset-inline-end: clamp(20px, 4vw, 52px); font-size: 8px; color: #1a1c1c; background: #bce9fd; padding: 6px 8px 5px; }
/* Filter tabs */
html.skin-v2 #portfolio-grid .flex-wrap a { font-family: 'Press Start 2P', 'Cairo', monospace; font-size: 9px; padding: 10px 14px; }
html.skin-v2[lang="ar"] #portfolio-grid .flex-wrap a { font-family: 'Cairo', system-ui, sans-serif; font-size: 13px; font-weight: 800; }

/* ── ABOUT: lore dialogue + character select ───────────────────── */
html.skin-v2 .v2-dialog {
    position: relative; background: #0a1b3d; color: #e8f1ff;
    border: 4px solid var(--c-border); box-shadow: 8px 8px 0 0 var(--c-border), inset 0 0 0 3px #bce9fd;
    padding: 30px 30px 44px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
}
html.skin-v2 .v2-dialog-face { width: 96px; padding: 8px; background: #bce9fd; border: 3px solid var(--c-border); }
html.skin-v2 .v2-dialog-face .px-cham { display: block; width: 100%; height: auto; color: #0066ff; animation: v2-dialog-face 6s steps(1, end) infinite; }
@keyframes v2-dialog-face { 0% { color: #0066ff; } 33% { color: #FFB800; } 66% { color: #386475; } }
html.skin-v2 .v2-dialog-name { display: inline-block; margin-bottom: 14px; font-size: 9px; color: #1a1c1c; background: #FFB800; padding: 6px 9px 5px; }
html.skin-v2 .v2-dialog p { font-family: 'VT323', ui-monospace, monospace; font-size: 25px; line-height: 1.2; color: #e8f1ff; }
html.skin-v2 .v2-dialog p + p { margin-top: 14px; color: #b9c8e6; }
html.skin-v2[lang="ar"] .v2-dialog p { font-family: 'Cairo', system-ui, sans-serif !important; font-size: 17px; line-height: 1.8; }
html.skin-v2 .v2-dialog-next { position: absolute; inset-inline-end: 22px; bottom: 14px; width: 0; height: 0; border-inline: 8px solid transparent; border-top: 10px solid #FFB800; animation: v2-blink .8s steps(1, end) infinite; }
@media (max-width: 640px) { html.skin-v2 .v2-dialog { grid-template-columns: 1fr; padding: 22px 20px 40px; } html.skin-v2 .v2-dialog-face { width: 72px; } }

html.skin-v2 .v2-char {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 18px 16px 20px; background: var(--c-surface-lowest);
    border: 3px solid var(--c-border); box-shadow: 6px 6px 0 0 var(--c-border);
    transition: transform .14s steps(2, end), box-shadow .14s steps(2, end);
}
html.skin-v2 .v2-char:hover, html.skin-v2 .v2-char:focus-within { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 0 var(--c-border); }
html.skin-v2 .v2-char-p { position: absolute; top: -3px; inset-inline-start: -3px; font-size: 8px; background: var(--c-border); color: #bce9fd; padding: 6px 8px 5px; }
html.skin-v2 .v2-char-ready { position: absolute; top: -3px; inset-inline-end: -3px; font-size: 8px; background: #FFB800; color: #1a1c1c; padding: 6px 8px 5px; opacity: 0; transition: opacity .14s steps(2, end); }
html.skin-v2 .v2-char:hover .v2-char-ready, html.skin-v2 .v2-char:focus-within .v2-char-ready { opacity: 1; animation: v2-blink .5s steps(1, end) 3; }
html.skin-v2 .v2-char-photo { position: relative; width: 100%; aspect-ratio: 1; margin: 20px 0 16px; border: 3px solid var(--c-border); overflow: hidden; background: #0a1b3d; }
html.skin-v2 .v2-char-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); image-rendering: pixelated; transition: filter .3s steps(3, end); }
html.skin-v2 .v2-char:hover .v2-char-photo img { filter: none; }
html.skin-v2 .v2-char-photo::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); pointer-events: none; }
html.skin-v2 .v2-char-initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Press Start 2P', monospace; font-size: 44px; color: #bce9fd; }
html.skin-v2 .v2-char-class { font-size: 8px; color: var(--c-on-surface-var); margin-top: 8px; }
html.skin-v2 .v2-char h3 { font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--c-on-surface); }
html.skin-v2 .v2-char-role { margin-top: 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; color: #0050cb; }
html.skin-v2[lang="ar"] .v2-char-role { font-family: 'Cairo', system-ui, sans-serif; }
html.skin-v2 .v2-char-links { display: flex; gap: 6px; margin-top: 14px; }
html.skin-v2 .v2-char-links a { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--c-border); box-shadow: 2px 2px 0 0 var(--c-border); background: var(--c-surface-lowest); color: var(--c-on-surface); }
html.skin-v2 .v2-char-links a:hover { background: #0066ff; color: #fff; }

/* ── CONTACT: comms terminal ───────────────────────────────────── */
html.skin-v2 .v2-term { border: 3px solid var(--c-border) !important; box-shadow: 8px 8px 0 0 var(--c-border) !important; padding: 0 !important; overflow: hidden; }
html.skin-v2 .v2-term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #0a1b3d; color: #bce9fd; font-size: 9px; border-bottom: 3px solid var(--c-border); }
html.skin-v2 .v2-term-bar i { width: 10px; height: 10px; background: #22c55e; animation: v2-blink 1.2s steps(1, end) infinite; }
html.skin-v2 .v2-term-bar b { margin-inline-start: auto; font-weight: 400; color: #FFB800; }
html.skin-v2 .v2-term-body { padding: 28px clamp(20px, 4vw, 44px) 36px; }
html.skin-v2 .v2-term-body label > span:first-child::before { content: "> "; color: #0066ff; }
html.skin-v2 .v2-term-body input, html.skin-v2 .v2-term-body textarea { border-width: 3px !important; font-family: 'JetBrains Mono', ui-monospace, monospace !important; caret-color: #0066ff; }
html.skin-v2 .v2-term-body input:focus, html.skin-v2 .v2-term-body textarea:focus { box-shadow: 4px 4px 0 0 #0066ff; }
html.skin-v2[lang="ar"] .v2-term-body input, html.skin-v2[lang="ar"] .v2-term-body textarea { font-family: 'Cairo', system-ui, sans-serif !important; }

/* ── CAREERS: quest board ──────────────────────────────────────── */
html.skin-v2 .career-card { border: 3px solid var(--c-border) !important; box-shadow: 6px 6px 0 0 var(--c-border) !important; position: relative; padding-top: 44px !important; }
html.skin-v2 .v2-quest-no { position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: 0; display: flex; justify-content: space-between; padding: 8px 12px 7px; background: var(--c-border); color: #bce9fd; font-size: 8px; }
html.skin-v2 .v2-quest-no b { font-weight: 400; color: #FFB800; }
html.skin-v2 #open-roles select { border-width: 3px !important; font-family: 'JetBrains Mono', ui-monospace, monospace; padding-inline-end: 2.6rem; }
html.skin-v2 .req-list li::before { content: "■" !important; color: #0066ff !important; font-size: .8em; }
html.skin-v2 .v2-file-drop { border-width: 3px !important; }

/* ── MOBILE MENU: full-screen arcade PAUSE MENU ────────────────────
   Opens like a CRT switching on (a bright line expanding to full
   screen), starfield + scanlines, links as big numbered levels that
   slide in one after another, the chameleon at the bottom. Overrides
   the drawer slide from app.blade.php only under html.skin-v2. */
html.skin-v2 #mobile-menu {
    width: 100%; max-width: none; left: 0; right: 0; border: 0 !important; box-shadow: none;
    background:
        repeating-linear-gradient(0deg, rgba(188,233,253,.05) 0 1px, transparent 1px 4px),
        radial-gradient(1px 1px at 14% 18%, #fff, transparent), radial-gradient(1px 1px at 82% 12%, #bce9fd, transparent),
        radial-gradient(2px 2px at 70% 44%, #fff, transparent), radial-gradient(1px 1px at 24% 64%, #FFB800, transparent),
        radial-gradient(1px 1px at 90% 78%, #fff, transparent), radial-gradient(2px 2px at 40% 90%, #bce9fd, transparent),
        conic-gradient(at 2px 2px, transparent 75%, rgba(188,233,253,.08) 0) 0 0 / 22px 22px,
        radial-gradient(80% 60% at 50% 30%, #0d2153, #050d20 75%);
    color: #e8f1ff; overflow-y: auto;
    transform: none !important;
    clip-path: inset(50% 0 50% 0); visibility: hidden;
    filter: brightness(2.2);
    transition: clip-path .34s steps(6, end), filter .5s steps(5, end), visibility 0s .34s;
}
html.skin-v2 #mobile-menu.open { clip-path: inset(0 0 0 0); visibility: visible; filter: none; transition-delay: 0s; }
html.skin-v2 #menu-backdrop { display: none; }

/* Header: GAME PAUSED · RESUME ✕ */
html.skin-v2 #mobile-menu > div:first-child { padding: 22px 22px 18px; border-bottom: 2px solid rgba(188,233,253,.18) !important; }
html.skin-v2 #mobile-menu > div:first-child > span[data-i18n="nav.menu"] { display: none; }
html.skin-v2 .v2-mm-paused { display: inline-flex; align-items: center; gap: 10px; font-family: 'Press Start 2P', 'Cairo', monospace; font-size: 12px; color: #FFB800; text-shadow: 0 0 10px rgba(255,184,0,.5); }
html.skin-v2 .v2-mm-paused i { width: 10px; height: 10px; background: #FFB800; animation: v2-blink .8s steps(1, end) infinite; }
html.skin-v2[lang="ar"] .v2-mm-paused { font-size: 15px; font-weight: 800; }
html.skin-v2 #mobile-menu > div:first-child button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; color: #0a1b3d !important; background: #bce9fd; border: 3px solid #000; box-shadow: 3px 3px 0 0 #000; }
html.skin-v2 .v2-mm-resume { font-family: 'Press Start 2P', 'Cairo', monospace; font-size: 9px; }
/* beats skin.css's "#mobile-menu > div:first-child span[data-i18n]" (yellow title rule) */
html.skin-v2 #mobile-menu > div:first-child button span.v2-mm-resume[data-i18n] { color: #0a1b3d; }
html.skin-v2 #mobile-menu > div:first-child button .material-symbols-outlined { font-size: 18px; }

html.skin-v2 .v2-mm-select { padding: 22px 22px 0; font-family: 'Press Start 2P', 'Cairo', monospace; font-size: 9px; color: #8fa3c8; }

/* Levels */
html.skin-v2 #mobile-menu nav { padding: 10px 22px 6px !important; gap: 4px; }
html.skin-v2 #mobile-menu nav .xp-nav-link {
    position: relative; display: flex; align-items: baseline; gap: 16px; padding: 14px 0 !important;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif !important; font-weight: 900; font-style: italic; text-transform: uppercase;
    font-size: clamp(30px, 9vw, 44px); line-height: 1; letter-spacing: -.02em; color: #ffffff;
    border-bottom: 2px dashed rgba(188,233,253,.16) !important;
}
html.skin-v2[lang="ar"] #mobile-menu nav .xp-nav-link { font-family: 'Cairo', system-ui, sans-serif !important; font-style: normal; font-size: clamp(26px, 8vw, 38px); }
html.skin-v2 #mobile-menu nav .xp-nav-link::after { font-size: 10px !important; color: #6f7c9c !important; font-style: normal; transform: translateY(-6px); }
html.skin-v2 #mobile-menu nav .xp-nav-link.text-primary { color: #FFB800 !important; text-shadow: 3px 3px 0 #0050cb; }
html.skin-v2 #mobile-menu nav .xp-nav-link.text-primary::before { inset-inline-start: auto; inset-inline-end: 0; top: 50%; margin-top: -8px; border-block-width: 8px; border-inline-start-width: 11px; }
html.skin-v2 #mobile-menu nav .xp-nav-link:active { color: #bce9fd; }
html.skin-v2 #mobile-menu.open nav .xp-nav-link { animation: v2-mm-in .38s steps(4, end) both; }
html.skin-v2 #mobile-menu.open nav .xp-nav-link:nth-child(1) { animation-delay: .18s; }
html.skin-v2 #mobile-menu.open nav .xp-nav-link:nth-child(2) { animation-delay: .24s; }
html.skin-v2 #mobile-menu.open nav .xp-nav-link:nth-child(3) { animation-delay: .30s; }
html.skin-v2 #mobile-menu.open nav .xp-nav-link:nth-child(4) { animation-delay: .36s; }
html.skin-v2 #mobile-menu.open nav .xp-nav-link:nth-child(5) { animation-delay: .42s; }
html.skin-v2 #mobile-menu.open nav .xp-nav-link:nth-child(6) { animation-delay: .48s; }
@keyframes v2-mm-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
html.skin-v2[dir="rtl"] #mobile-menu.open nav .xp-nav-link { animation-name: v2-mm-in-rtl; }
@keyframes v2-mm-in-rtl { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

/* Chameleon + footer controls */
html.skin-v2 .v2-mm-cham { display: flex; align-items: flex-end; gap: 14px; padding: 18px 22px 8px; }
html.skin-v2 .v2-mm-cham .px-cham { width: 86px; height: auto; color: #0066ff; overflow: visible; animation: v2-mm-cham 6s steps(1, end) infinite; }
@keyframes v2-mm-cham { 0% { color: #0066ff; } 33% { color: #FFB800; } 66% { color: #bce9fd; } }
html.skin-v2 .v2-mm-cham span { padding-bottom: 6px; font-family: 'Press Start 2P', monospace; font-size: 8px; color: #6f7c9c; }
html.skin-v2 #mobile-menu > div.px-6 { border-color: rgba(188,233,253,.18) !important; }
html.skin-v2 #mobile-menu #lang-btn-m { padding: 8px 12px; background: #bce9fd; color: #0a1b3d !important; border: 3px solid #000; box-shadow: 3px 3px 0 0 #000; font-size: 13px !important; }
html.skin-v2 #mobile-menu .brutalist-button { padding-block: 16px; font-size: 15px; background: #FFB800 !important; color: #1a1c1c !important; }

@media (prefers-reduced-motion: reduce) {
    html.skin-v2 #mobile-menu, html.skin-v2 #mobile-menu.open nav .xp-nav-link, html.skin-v2 .v2-mm-cham .px-cham, html.skin-v2 .v2-mm-paused i { transition: none !important; animation: none !important; filter: none; }
}

/* ── Shared: pixel game cartridge (client logos) ──────────────────
   A notched cartridge body with grip ridges and a white label that
   carries the client logo in full colour. */
html.skin-v2 .v2-cart {
    --body: #1f2b45; --tone: #FFB800;
    position: relative; display: flex; flex-direction: column; gap: 8px;
    padding: 12px 10px 10px; background: var(--body); color: #bce9fd;
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    filter: drop-shadow(5px 5px 0 var(--c-border));
    transition: transform .14s steps(2, end), filter .14s steps(2, end);
}
html.skin-v2 .v2-cart::before { /* top grip notch */
    content: ""; position: absolute; top: 4px; left: 50%; width: 34%; height: 4px; margin-left: -17%;
    background: repeating-linear-gradient(90deg, rgba(188,233,253,.35) 0 3px, transparent 3px 6px);
}
html.skin-v2 .v2-cart-label {
    display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10px; margin-top: 6px;
    background: #ffffff; border: 2px solid #0a1b3d; box-shadow: inset 0 -6px 0 0 var(--tone);
}
html.skin-v2 .v2-cart-label img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
html.skin-v2 .v2-cart-label span { font-family: 'Press Start 2P', monospace; font-size: 9px; color: #0a1b3d; text-align: center; }
html.skin-v2 .v2-cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-family: 'Press Start 2P', monospace; font-size: 8px; }
html.skin-v2 .v2-cart-foot i { flex: 1; height: 8px; background: repeating-linear-gradient(90deg, rgba(188,233,253,.45) 0 2px, transparent 2px 5px); }

@media (prefers-reduced-motion: reduce) {
    html.skin-v2 .v2-ph *, html.skin-v2 .v2-ph-frame,
    html.skin-v2 .v2-holo *, html.skin-v2 .v2-dialog *, html.skin-v2 .v2-term-bar i { animation: none !important; }
    html.skin-v2 .v2-ph-beam, html.skin-v2 .v2-holo-scan { display: none; }
}
