/* ============================================================
   Professional Portfolio -- full-viewport cinematic deck
   Ported from the shiz.live intro, rebuilt as a six-page deck.
   ============================================================ */

#view-pro { overflow: hidden; }
body.theme-pro { overflow: hidden; }

.pro-root {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% -10%, #10233b 0%, transparent 55%),
        radial-gradient(ellipse at 90% 110%, #1a1338 0%, transparent 50%),
        #04060d;
    color: #e9edf7;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ---------------- Chrome ---------------- */
.pro-chrome {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 42px;
    pointer-events: none;
}
.pro-chrome > * { pointer-events: auto; }

.pro-brand { display: flex; align-items: center; gap: 14px; }
.pro-mark {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 9px;
    transform: rotate(45deg);
    animation: pro-mark-spin 26s linear infinite;
}
.pro-mark-inner {
    width: 15px; height: 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 3px;
}
@keyframes pro-mark-spin { to { transform: rotate(405deg); } }

.pro-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.pro-brand-name { font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.pro-brand-role {
    font-family: var(--font-mono); font-size: .64rem;
    letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}

.pro-chrome-links { display: flex; gap: 8px; margin-right: 150px; }
.pro-chrome-links a {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: rgba(233,237,247,.7);
    transition: all .25s ease;
}
.pro-chrome-links a:hover { color: #04060d; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------------- Rail ---------------- */
.pro-rail {
    position: absolute;
    left: 34px; top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex; flex-direction: column; gap: 20px;
}
.pro-rail-dot {
    position: relative;
    width: 11px; height: 11px; padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
    cursor: pointer;
    transition: all .3s ease;
}
.pro-rail-dot::after {
    content: '';
    position: absolute; inset: 2px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transition: opacity .3s ease;
}
.pro-rail-dot:hover { border-color: var(--accent); transform: scale(1.25); }
.pro-rail-dot.active { border-color: var(--accent); box-shadow: 0 0 14px 1px rgba(56,189,248,.55); }
.pro-rail-dot.active::after { opacity: 1; }

.pro-rail-label {
    position: absolute;
    left: 24px; top: 50%;
    transform: translateY(-50%) translateX(-6px);
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--accent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.pro-rail-dot:hover .pro-rail-label,
.pro-rail-dot.active .pro-rail-label { opacity: 1; transform: translateY(-50%) translateX(0); }

.pro-progress-rail {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 2px;
    background: rgba(255,255,255,.06);
    z-index: 40;
}
.pro-progress-fill {
    width: 100%; height: 0;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px 1px rgba(56,189,248,.6);
    transition: height .7s cubic-bezier(.16,.84,.44,1);
}

/* ---------------- Deck track ---------------- */
.pro-track {
    height: 100%;
    transition: transform .95s cubic-bezier(.72,.02,.2,1);
    will-change: transform;
}
.pro-page {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 90px 70px;
    overflow: hidden;
}
.pro-page-inner { width: 100%; max-width: 1180px; }

/* Entry animation for the active page */
.pro-page > * { opacity: 0; transform: translateY(30px); transition: opacity .8s ease .18s, transform .8s cubic-bezier(.16,.84,.44,1) .18s; }
.pro-page.is-active > * { opacity: 1; transform: translateY(0); }
.pro-page canvas { opacity: 1 !important; transform: none !important; transition: none; }

/* ---------------- Shared type ---------------- */
.pro-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.pro-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -.02em;
}
.pro-heading-xl { font-size: clamp(2.8rem, 8vw, 6rem); }
.pro-sub { margin-top: 16px; color: rgba(233,237,247,.6); font-size: .98rem; line-height: 1.7; max-width: 620px; }

.pro-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: .88rem; font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .28s ease;
    font-family: inherit;
}
.pro-btn-solid {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #04060d;
    box-shadow: 0 12px 40px -12px rgba(56,189,248,.7);
}
.pro-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(56,189,248,.9); }
.pro-btn-line { background: transparent; color: #e9edf7; border-color: rgba(255,255,255,.22); }
.pro-btn-line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   PAGE 1 -- IDENTITY
   ============================================================ */
#pro-bokeh {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.pro-identity-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 66px;
    align-items: center;
    width: 100%;
    max-width: 1240px;
}

.pro-identity-portrait { position: relative; }
.pro-identity-portrait img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    filter: grayscale(.28) contrast(1.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 50px 110px -40px rgba(0,0,0,1);
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}
.pro-portrait-ring {
    position: absolute;
    inset: -26px;
    border: 1px solid rgba(56,189,248,.22);
    border-radius: 30px;
    pointer-events: none;
}
.pro-portrait-ring::before,
.pro-portrait-ring::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid var(--accent);
}
.pro-portrait-ring::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.pro-portrait-ring::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.pro-kicker {
    font-family: var(--font-mono);
    font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
    color: rgba(233,237,247,.42);
}
.pro-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    margin-top: 14px;
    background: linear-gradient(115deg, #ffffff 25%, var(--accent) 62%, var(--accent-2) 92%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pro-role {
    margin-top: 14px;
    font-size: 1.02rem;
    color: rgba(233,237,247,.72);
    letter-spacing: .01em;
}
.pro-divider {
    margin: 26px 0;
    height: 1px;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(90deg, var(--accent), rgba(56,189,248,.05));
}

.pro-matrix { min-height: 118px; position: relative; }
.pro-matrix-line {
    display: none;
    font-family: var(--font-mono);
    font-size: .86rem;
    line-height: 1.9;
    color: rgba(233,237,247,.82);
    letter-spacing: .01em;
}
.pro-matrix-line::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 12px;
    vertical-align: middle;
    background: var(--accent);
    transform: rotate(45deg);
}

.pro-identity-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.pro-scroll-cue {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    font-family: var(--font-mono);
    font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
    color: rgba(233,237,247,.4);
}
.pro-scroll-bar {
    width: 1px; height: 34px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: hint-scroll 1.9s ease-in-out infinite;
}

/* ============================================================
   PAGE 2 -- PROFILE
   ============================================================ */
.pro-profile-grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 60px;
    align-items: start;
}
.pro-bio p { color: rgba(233,237,247,.66); line-height: 1.95; font-size: .97rem; }
.pro-bio-meta {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 22px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.09);
}
.pro-bio-meta div { display: flex; flex-direction: column; gap: 7px; }
.pro-bio-meta span {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: .63rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.pro-bio-meta strong { font-size: .88rem; font-weight: 500; color: #e9edf7; word-break: break-word; }

.pro-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.09); }
.pro-number {
    background: #04060d;
    padding: 30px 24px;
    display: flex; flex-direction: column; gap: 10px;
    transition: background .3s ease;
}
.pro-number:hover { background: rgba(56,189,248,.06); }
.pro-number-value {
    font-family: var(--font-display);
    font-weight: 700; font-size: 2.9rem; line-height: 1;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pro-number-label {
    font-family: var(--font-mono); font-size: .64rem;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(233,237,247,.5); line-height: 1.6;
}

/* ============================================================
   PAGE 3 -- CONSTELLATION
   ============================================================ */
.pro-page-constellation { flex-direction: column; justify-content: flex-start; padding-top: 108px; }
.pro-constellation-head { text-align: center; max-width: 720px; z-index: 3; position: relative; }
.pro-constellation-head .pro-sub { margin-left: auto; margin-right: auto; }

#pro-constellation {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    cursor: crosshair;
}

.pro-node-card {
    position: absolute;
    z-index: 12;
    width: min(400px, 82vw);
    padding: 26px 28px 24px;
    border-radius: 16px;
    background: rgba(8, 13, 26, .93);
    border: 1px solid rgba(56,189,248,.35);
    box-shadow: 0 30px 80px -24px rgba(0,0,0,1), 0 0 50px -18px rgba(56,189,248,.5);
    animation: node-card-in .3s cubic-bezier(.16,.84,.44,1) both;
    opacity: 1 !important;
    transform: none !important;
}
@keyframes node-card-in { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.pro-node-close {
    position: absolute; top: 13px; right: 13px;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: #e9edf7; cursor: pointer; transition: all .2s ease;
}
.pro-node-close:hover { background: var(--accent); color: #04060d; }
.pro-node-type {
    display: inline-block;
    font-family: var(--font-mono); font-size: .6rem;
    letter-spacing: .2em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(56,189,248,.14); color: var(--accent);
    margin-bottom: 13px;
}
.pro-node-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.4; padding-right: 26px; }
.pro-node-org { margin-top: 8px; font-size: .84rem; color: var(--accent-2); }
.pro-node-detail { margin-top: 13px; font-size: .85rem; line-height: 1.75; color: rgba(233,237,247,.62); }
.pro-node-period {
    display: inline-block; margin-top: 16px;
    font-family: var(--font-mono); font-size: .68rem;
    letter-spacing: .1em; color: rgba(233,237,247,.42);
}

.pro-constellation-legend {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex; gap: 26px;
    font-family: var(--font-mono); font-size: .66rem;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(233,237,247,.5);
}
.pro-constellation-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pro-constellation-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-award { background: #fbbf24; box-shadow: 0 0 10px 1px rgba(251,191,36,.7); }
.dot-talk  { background: #38bdf8; box-shadow: 0 0 10px 1px rgba(56,189,248,.7); }
.dot-cert  { background: #34d399; box-shadow: 0 0 10px 1px rgba(52,211,153,.7); }

/* ============================================================
   PAGE 4 -- CRAFT
   ============================================================ */
.pro-skill-columns {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 34px;
}
.pro-skill-cat {
    font-family: var(--font-mono);
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.pro-skill-item {
    display: grid;
    grid-template-columns: 1fr 54px 26px;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: .85rem;
}
.pro-skill-name { color: rgba(233,237,247,.85); }
.pro-skill-meter { height: 3px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.pro-skill-meter i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    transition: width 1s cubic-bezier(.16,.84,.44,1);
}
.pro-page.is-active .pro-skill-meter i { width: var(--lvl); }
.pro-skill-pct {
    font-family: var(--font-mono); font-size: .68rem;
    color: rgba(233,237,247,.4); text-align: right;
}

/* ============================================================
   PAGE 5 -- WORK
   ============================================================ */
.pro-work-scroller {
    margin-top: 36px;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(56,189,248,.5) transparent;
}
.pro-work-scroller::-webkit-scrollbar { height: 5px; }
.pro-work-scroller::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 999px; }
.pro-work-scroller::-webkit-scrollbar-thumb { background: rgba(56,189,248,.5); border-radius: 999px; }

.pro-work-card {
    flex: 0 0 330px;
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.025);
    transition: transform .35s ease, border-color .3s ease, box-shadow .35s ease;
}
.pro-work-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent);
    box-shadow: 0 26px 60px -26px rgba(0,0,0,1), 0 0 40px -18px rgba(56,189,248,.55);
}
.pro-work-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #080b14; }
.pro-work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pro-work-card:hover .pro-work-thumb img { transform: scale(1.06); }
.pro-work-flag {
    position: absolute; top: 12px; left: 12px;
    font-family: var(--font-mono); font-size: .58rem;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #04060d; font-weight: 700;
}
.pro-work-body { padding: 18px 20px 22px; }
.pro-work-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pro-work-top h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.pro-work-year { font-family: var(--font-mono); font-size: .68rem; color: rgba(233,237,247,.4); flex-shrink: 0; }
.pro-work-cat { margin-top: 7px; font-size: .72rem; color: var(--accent); letter-spacing: .04em; }
.pro-work-desc { margin-top: 11px; font-size: .82rem; line-height: 1.65; color: rgba(233,237,247,.58); }
.pro-work-tech { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.pro-work-tech span {
    font-family: var(--font-mono); font-size: .62rem;
    padding: 3px 8px; border-radius: 5px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(233,237,247,.55);
}
.pro-work-visit {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px;
    font-family: var(--font-mono); font-size: .68rem;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent);
    transition: gap .2s ease, color .2s ease;
}
.pro-work-visit:hover { gap: 9px; color: var(--accent-2); }
.pro-work-hint {
    margin-top: 8px;
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: .66rem;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(233,237,247,.35);
}

/* ============================================================
   PAGE 6 -- CONTACT
   ============================================================ */
.pro-contact-inner { text-align: center; }
.pro-contact-inner .pro-eyebrow { justify-content: center; }
.pro-contact-grid {
    margin-top: 46px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    text-align: left;
}
.pro-contact-card {
    padding: 26px 24px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    display: flex; flex-direction: column; gap: 7px;
    transition: all .3s ease;
}
.pro-contact-card:hover {
    border-color: var(--accent);
    background: rgba(56,189,248,.06);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -26px rgba(0,0,0,1);
}
.pro-contact-icon { color: var(--accent); margin-bottom: 8px; }
.pro-contact-label {
    font-family: var(--font-mono); font-size: .62rem;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(233,237,247,.45);
}
.pro-contact-value { font-size: .88rem; color: #e9edf7; word-break: break-word; }
.pro-contact-alt { font-size: .8rem; color: rgba(233,237,247,.45); }

.pro-contact-cta { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pro-foot {
    margin-top: 44px;
    font-family: var(--font-mono); font-size: .66rem;
    letter-spacing: .08em; color: rgba(233,237,247,.32);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .pro-page { padding: 96px 56px 64px; }
    .pro-identity-inner { grid-template-columns: 1fr; gap: 34px; max-width: 620px; }
    .pro-identity-portrait { max-width: 320px; }
    .pro-profile-grid { grid-template-columns: 1fr; gap: 38px; }
    .pro-chrome-links { margin-right: 130px; }
}
@media (max-width: 760px) {
    .pro-page { padding: 92px 26px 76px; }
    .pro-rail { left: 16px; gap: 15px; }
    .pro-rail-label { display: none; }
    .pro-chrome { padding: 18px 22px; }
    .pro-chrome-links { display: none; }
    .pro-identity-portrait { max-width: 210px; margin: 0 auto; }
    .pro-identity-inner { text-align: center; }
    .pro-divider { margin-left: auto; margin-right: auto; }
    .pro-identity-actions { justify-content: center; }
    .pro-matrix { min-height: 140px; }
    .pro-numbers { grid-template-columns: 1fr 1fr; }
    .pro-number { padding: 22px 18px; }
    .pro-number-value { font-size: 2.1rem; }
    .pro-work-card { flex-basis: 260px; }
    .pro-skill-columns { gap: 24px; }
    .pro-constellation-legend { gap: 14px; font-size: .58rem; bottom: 22px; }
}
@media (max-height: 700px) {
    .pro-page { padding-top: 84px; padding-bottom: 54px; }
    .pro-matrix { min-height: 96px; }
    .pro-heading { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
}
