/* ============================================================
   personas.css — 2026 dark design system for the 6-persona portfolio.
   Loads AFTER style.css/responsive.css. Accent set inline per <body>
   via --accent/--accent-2/--ink (page.php). Premium dark: elevate by
   lightness not shadow; never pure white text; one saturated accent.
   ============================================================ */

:root {
    --ink: #070707;
    --surface-1: #0E1118;
    --surface-2: #141925;
    --surface-3: #1B2233;
    --hairline: rgba(255, 255, 255, .08);
    --hairline-2: rgba(255, 255, 255, .14);
    --text: #F4F6FB;
    --text-dim: rgba(244, 246, 251, .66);
    --text-faint: rgba(244, 246, 251, .42);

    --accent: #5B8DEF;
    --accent-2: #6EE7B7;
    --accent-rgb: 91, 141, 239;
    --accent2-rgb: 110, 231, 183;

    --status-shipped: #34D399;
    --status-progress: #F5B544;
    --status-planned: rgba(244, 246, 251, .5);

    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
    --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
    --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

    --shadow-card: 0 1px 0 var(--hairline), 0 18px 40px -24px rgba(0, 0, 0, .8);
    --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
}

html { scroll-behavior: smooth; }

body.persona-body, body[data-persona] {
    background: var(--ink);
    color: var(--text);
    font-family: "DM Sans", system-ui, sans-serif;
    overflow-x: hidden;
}
.persona-main { color: var(--text); position: relative; z-index: 1; }
.persona-main a { color: var(--accent); }

/* ---------- Ambient aurora (pure CSS, always-on) ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
    position: absolute; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
    border-radius: 50%; filter: blur(90px); opacity: .30; will-change: transform;
}
.aurora span:nth-child(1) { top: -12%; left: -8%; background: radial-gradient(circle, rgba(var(--accent-rgb), .9), transparent 65%); animation: aur1 26s ease-in-out infinite; }
.aurora span:nth-child(2) { bottom: -18%; right: -6%; background: radial-gradient(circle, rgba(var(--accent2-rgb), .8), transparent 65%); animation: aur2 32s ease-in-out infinite; }
.aurora span:nth-child(3) { top: 38%; left: 42%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(var(--accent-rgb), .5), transparent 60%); opacity: .18; animation: aur3 38s ease-in-out infinite; }
@keyframes aur1 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(8vw,6vh) scale(1.15);} }
@keyframes aur2 { 0%,100% { transform: translate(0,0) scale(1.05);} 50% { transform: translate(-6vw,-8vh) scale(.9);} }
@keyframes aur3 { 0%,100% { transform: translate(-50%,0) scale(1);} 50% { transform: translate(-40%,8vh) scale(1.1);} }

#bg-signature { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
#bg-signature.on { opacity: 1; }

/* ---------- Header / persona switcher ---------- */
.p-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: var(--sp-4);
    padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(7,7,9,.78), rgba(7,7,9,.18)); border-bottom: 1px solid var(--hairline); }
.p-nav .p-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.p-nav .p-brand b { color: var(--accent); }
.p-nav .p-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.p-switch { margin-left: auto; position: relative; }
.p-switch-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--hairline-2); border-radius: var(--r-pill);
    background: rgba(255,255,255,.04); color: var(--text); font-size: .9rem; cursor: pointer; }
.p-switch-btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.p-switch-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: var(--surface-1);
    border: 1px solid var(--hairline-2); border-radius: var(--r-md); padding: 8px; box-shadow: var(--shadow-card);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .22s ease; }
.p-switch.open .p-switch-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.p-switch-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; }
.p-switch-menu a:hover { background: rgba(255,255,255,.05); }
.p-switch-menu a .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.p-switch-menu a small { display: block; color: var(--text-faint); font-size: .76rem; }
.p-switch-menu a.active { outline: 1px solid var(--hairline-2); }

/* ---------- Layout primitives ---------- */
.p-sec { position: relative; padding: clamp(56px, 9vw, 120px) 0; }
.p-wrap { width: min(1180px, 92vw); margin: 0 auto; }
.p-eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.p-h2 { font-size: clamp(1.6rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--text); }
.p-lead { color: var(--text-dim); font-size: 1.08rem; line-height: 1.7; max-width: 62ch; }
.p-sec-head { margin-bottom: var(--sp-7); }

/* ---------- Buttons ---------- */
.p-btn, .p-btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: var(--r-pill);
    font-weight: 600; text-decoration: none; transition: transform .18s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; border: 0; }
.p-btn { background: var(--accent); color: #06070a; box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .7); }
.p-btn:hover { transform: translateY(-3px); color: #06070a; box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), .9); }
.p-btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--hairline-2); }
.p-btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
/* Beat `.persona-main a` (which would otherwise paint button text the accent colour). */
.persona-main a.p-btn, .persona-main a.p-btn:hover { color: #06070a; }
.persona-main a.p-btn-ghost, .persona-main a.p-btn-ghost:hover { color: var(--text); }

/* ---------- Hero ---------- */
.p-hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.p-hero .p-wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.p-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; font-weight: 800; letter-spacing: -.025em; color: var(--text); margin: 14px 0 18px; }
.p-hero h1 .kw { color: var(--accent); }
.p-hero .sub { color: var(--text-dim); font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.65; max-width: 60ch; }
.p-hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.p-portrait { position: relative; }
.p-portrait img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--hairline-2); display: block;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--accent-rgb), .25); }
.p-portrait::after { content: ""; position: absolute; inset: -2px; border-radius: var(--r-lg); pointer-events: none;
    background: linear-gradient(140deg, rgba(var(--accent-rgb), .35), transparent 45%); mix-blend-mode: screen; }
body[data-persona="ai-application-engineer"] .p-portrait img { filter: saturate(1.05) contrast(1.05); }

/* ---------- Trust / availability strip ---------- */
.p-trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 22px 0; background: rgba(255,255,255,.015); }
.p-trust .chips { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; color: var(--text-dim); font-size: .95rem; }
.p-trust .chips b { color: var(--text); font-weight: 600; }
.p-trust .chips .sep { color: var(--accent); }
.p-marquee { margin-top: 18px; }

/* ---------- Cards / chips ---------- */
.p-card { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 24px;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.p-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .5); box-shadow: var(--shadow-card); }
.p-grid { display: grid; gap: 20px; }
.p-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.p-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.p-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.p-skill-group h3, .p-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p-chip { font-size: .82rem; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(var(--accent-rgb), .1);
    border: 1px solid rgba(var(--accent-rgb), .22); color: var(--text); }

/* capability cards */
.p-cap .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm);
    background: rgba(var(--accent-rgb), .14); color: var(--accent); font-size: 1.3rem; margin-bottom: 14px; }
.p-cap p { color: var(--text-dim); margin: 0; line-height: 1.6; }

/* ---------- Projects bento ---------- */
.p-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-proj { position: relative; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--hairline);
    background: var(--surface-1); display: flex; flex-direction: column; min-height: 230px; transition: transform .24s ease, border-color .24s ease; }
.p-proj:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .55); }
.p-proj.feat { grid-column: span 2; grid-row: span 2; }
.p-proj .thumb { height: 150px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .35), rgba(var(--accent2-rgb), .18)), var(--surface-2);
    background-size: cover; background-position: center; position: relative; }
.p-proj.feat .thumb { height: 230px; }
.p-proj .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: 2rem; }
.p-proj .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-proj h3 { font-size: 1.05rem; margin: 0; color: var(--text); }
.p-proj .stack { font-family: var(--mono); font-size: .76rem; color: var(--accent); }
.p-proj p { color: var(--text-dim); font-size: .9rem; line-height: 1.55; margin: 0; }

/* status badges */
.p-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); width: fit-content; text-transform: uppercase; letter-spacing: .04em; }
.p-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.p-badge.shipped { background: rgba(52,211,153,.14); color: var(--status-shipped); }
.p-badge.shipped::before { background: var(--status-shipped); }
.p-badge.in-progress { background: rgba(245,181,68,.12); color: var(--status-progress); border: 1px solid rgba(245,181,68,.4); }
.p-badge.in-progress::before { background: var(--status-progress); }
.p-badge.planned { background: transparent; color: var(--status-planned); border: 1px dashed var(--status-planned); }
.p-badge.planned::before { background: var(--status-planned); }
.p-badge.venture { background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.p-badge.venture::before { background: var(--accent); }

/* ---------- Stepper / process ---------- */
.p-steps { display: grid; gap: 18px; counter-reset: step; }
.p-step { display: flex; gap: 16px; align-items: flex-start; }
.p-step .n { counter-increment: step; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .5); color: var(--accent); font-family: var(--mono); font-weight: 600; }
.p-step .n::before { content: counter(step); }
.p-step h4 { font-size: 1rem; color: var(--text); margin: 6px 0 4px; }
.p-step p { color: var(--text-dim); margin: 0; font-size: .92rem; }

/* ---------- Timeline ---------- */
.p-timeline { position: relative; padding-left: 28px; }
.p-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--accent), rgba(var(--accent-rgb), .1)); }
.p-tl-item { position: relative; padding: 0 0 28px 6px; }
.p-tl-item::before { content: ""; position: absolute; left: -27px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--ink); border: 2px solid var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), .6); }
.p-tl-item .when { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
.p-tl-item h4 { font-size: 1.05rem; color: var(--text); margin: 4px 0 2px; }
.p-tl-item .org { color: var(--text); font-weight: 600; }
.p-tl-item .meta { color: var(--text-faint); font-size: .85rem; }
.p-tl-item p { color: var(--text-dim); font-size: .92rem; margin: 8px 0 0; }

/* ---------- Metrics ---------- */
.p-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-metric { text-align: center; padding: 28px 16px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface-1); }
.p-metric .v { font-family: var(--mono); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--accent); line-height: 1; }
.p-metric .l { color: var(--text-dim); font-size: .88rem; margin-top: 10px; }

/* ---------- Education ---------- */
.p-edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- Flagship (blockchain) ---------- */
.p-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.p-flow .node { position: relative; padding: 20px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface-1); }
.p-flow .node h4 { color: var(--accent); font-size: .95rem; margin: 0 0 8px; }
.p-flow .node p { color: var(--text-dim); font-size: .86rem; margin: 0; }
.p-flow .node:not(:last-child)::after { content: "\2192"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.2rem; z-index: 2; }

/* ---------- Ventures (founder) ---------- */
.p-venture { display: flex; flex-direction: column; gap: 10px; }
.p-venture .role { color: var(--accent); font-family: var(--mono); font-size: .82rem; }
.p-venture h3 { font-size: 1.5rem; }

/* ---------- FAQ ---------- */
.p-faq details { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 0; margin-bottom: 12px; background: var(--surface-1); overflow: hidden; }
.p-faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.p-faq details[open] summary::after { content: "\2212"; }
.p-faq p { padding: 0 22px 20px; color: var(--text-dim); margin: 0; line-height: 1.65; }

/* ---------- Contact ---------- */
.p-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.p-contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.p-contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.p-contact-list i { color: var(--accent); font-size: 1.3rem; }
.p-contact-list a { color: var(--text); text-decoration: none; }
.p-contact-list a:hover { color: var(--accent); }
.p-form .form-control, .p-form textarea { background: var(--surface-1); border: 1px solid var(--hairline-2); color: var(--text); border-radius: var(--r-sm); padding: 14px 16px; width: 100%; margin-bottom: 14px; }
.p-form .form-control::placeholder { color: var(--text-faint); }
.p-form .form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.p-social { display: flex; gap: 12px; margin-top: 8px; }
.p-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline-2); color: var(--text); font-size: 1.1rem; transition: .2s; }
.p-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.p-footer { border-top: 1px solid var(--hairline); padding: 48px 0 40px; }
.p-footer .row1 { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.p-footer .links { display: flex; flex-wrap: wrap; gap: 16px; }
.p-footer .links a { color: var(--text-dim); text-decoration: none; font-size: .9rem; }
.p-footer .links a:hover { color: var(--accent); }
.p-footer .copy { color: var(--text-faint); font-size: .85rem; margin-top: 22px; }

/* ---------- HUB ---------- */
.hub-masthead { min-height: 70svh; display: flex; align-items: center; padding: 140px 0 60px; text-align: center; }
.hub-masthead .p-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hub-masthead img.face { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(var(--accent-rgb), .5); box-shadow: 0 0 40px rgba(var(--accent-rgb), .35); }
.hub-masthead h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.hub-masthead h1 .kw { color: var(--accent); }
.hub-masthead .one-line { color: var(--text-dim); font-size: 1.15rem; max-width: 60ch; }
.hub-avail { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; color: var(--text-dim); font-size: .92rem; }
.hub-avail b { color: var(--text); }
.hub-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hub-tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg);
    background: var(--surface-1); border: 1px solid var(--hairline); text-decoration: none; min-height: 220px; overflow: hidden;
    transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease; }
.hub-tile::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .26s ease;
    background: radial-gradient(120% 90% at 0% 0%, rgba(var(--t-rgb), .18), transparent 60%); }
.hub-tile:hover { transform: translateY(-8px); border-color: rgba(var(--t-rgb), .6); box-shadow: 0 24px 60px -28px rgba(0,0,0,.9); }
.hub-tile:hover::before { opacity: 1; }
.hub-tile .tdot { width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--t-rgb)); box-shadow: 0 0 14px rgb(var(--t-rgb)); }
.hub-tile .ttag { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); }
.hub-tile h3 { font-size: 1.5rem; color: var(--text); margin: 0; letter-spacing: -.02em; }
.hub-tile .trole { color: rgb(var(--t-rgb)); font-weight: 600; font-size: .95rem; }
.hub-tile p { color: var(--text-dim); font-size: .92rem; margin: 0; flex: 1; }
.hub-tile .go { color: var(--text); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.hub-tile .go i { transition: transform .2s ease; }
.hub-tile:hover .go i { transform: translateX(5px); }
.hub-note { text-align: center; color: var(--text-dim); }
.hub-factband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- self-draw SVG ---------- */
.draw path, .draw line, .draw polyline, .draw circle { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.draw.in path, .draw.in line, .draw.in polyline, .draw.in circle { transition: stroke-dashoffset 1.4s ease; stroke-dashoffset: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .p-hero .p-wrap { grid-template-columns: 1fr; }
    .p-portrait { max-width: 360px; }
    .p-grid.cols-3, .p-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .p-bento { grid-template-columns: repeat(2, 1fr); }
    .p-proj.feat { grid-column: span 2; grid-row: span 1; }
    .p-metrics, .hub-factband { grid-template-columns: repeat(2, 1fr); }
    .hub-bento { grid-template-columns: 1fr; }
    .p-flow { grid-template-columns: 1fr 1fr; }
    .p-flow .node:not(:last-child)::after { display: none; }
    .p-contact-grid { grid-template-columns: 1fr; }
    .p-edu { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .p-grid.cols-2, .p-grid.cols-3, .p-grid.cols-4, .p-bento, .p-metrics, .hub-factband { grid-template-columns: 1fr; }
    .p-proj.feat { grid-column: span 1; }
    .p-nav .p-brand span.full { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .aurora span { animation: none !important; }
    #bg-signature { display: none !important; }
    .draw path, .draw line, .draw polyline, .draw circle { stroke-dashoffset: 0 !important; transition: none !important; }
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .12s !important; }
}
