/* =============================================================================
   About page — 3D scroll-driven timeline. Distinct green/teal identity.
   Loaded only on /about (in addition to main.css).
   ========================================================================== */

.about-page { --tl-line: color-mix(in srgb, var(--accent) 40%, var(--stroke)); }

/* ---------- About hero ---------- */
.about-hero { min-height: 92svh; display: flex; align-items: center; padding-top: 7rem; }
.about-hero .lead { max-width: 56ch; }
.about-hero .portrait-3d {
    position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
    transform: perspective(1200px) rotateY(-10deg) rotateX(3deg);
    transition: transform .6s var(--ease); transform-style: preserve-3d;
    box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--accent) 60%, transparent);
}
.about-hero .portrait-3d:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.about-hero .portrait-3d img { width: 100%; height: 100%; object-fit: cover; }
.about-hero .portrait-3d::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--accent) 35%, transparent));
    mix-blend-mode: screen; pointer-events: none;
}

/* floating accent chips around portrait */
.float-chip {
    position: absolute; z-index: 3; padding: .6rem 1rem; border-radius: 100px;
    background: var(--surface-2); border: 1px solid var(--stroke);
    backdrop-filter: blur(10px); font-size: .82rem; font-weight: 600;
    box-shadow: var(--shadow); animation: chipFloat 5s ease-in-out infinite;
}
.float-chip.c1 { top: 12%; left: -8%; animation-delay: 0s; }
.float-chip.c2 { top: 46%; right: -10%; animation-delay: .8s; }
.float-chip.c3 { bottom: 10%; left: -6%; animation-delay: 1.6s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 900px){ .float-chip { display: none; } }

/* ---------- Now: current roles ---------- */
.now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: var(--gap); }
.now-card { padding: 1.6rem; position: relative; overflow: hidden; }
.now-card .role { font-family: var(--font-display); font-size: 1.15rem; }
.now-card .org { color: var(--accent-2); font-weight: 600; font-size: .92rem; }
.now-card .when { color: var(--text-mute); font-size: .82rem; margin-top: .3rem; }
.now-card .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: .4rem; box-shadow: 0 0 12px var(--accent); }

/* ---------- Sticky blurred portrait behind the Story timeline (desktop only) ---------- */
.journey-bg { display: none; }
@media (min-width: 1024px) {
    .journey-bg {
        display: block; position: fixed; inset: 0; z-index: -2; pointer-events: none;
        background-size: cover; background-position: center 22%;
        filter: blur(24px) brightness(.34) saturate(1.15);
        opacity: .24;
        -webkit-mask-image: radial-gradient(125% 95% at 50% 28%, #000 38%, transparent 86%);
        mask-image: radial-gradient(125% 95% at 50% 28%, #000 38%, transparent 86%);
    }
}

/* ---------- 3D TIMELINE ---------- */
.timeline {
    position: relative; max-width: 1040px; margin-inline: auto;
    padding-block: 2rem; perspective: 1500px;
}
.tl-spine {
    position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 3px; background: var(--tl-line); border-radius: 3px; overflow: hidden;
}
.tl-fill {
    position: absolute; top: 0; left: 0; width: 100%;
    height: var(--tl-progress, 0%);
    background: linear-gradient(var(--accent), var(--accent-2));
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 80%, transparent);
    transition: height .15s linear;
}

.tl-item {
    position: relative; width: 50%; padding: 1.2rem 3rem; box-sizing: border-box;
    transform-style: preserve-3d;
}
.tl-item.left  { left: 0; }
.tl-item.right { left: 50%; }

.tl-node {
    position: absolute; top: 2rem; width: 20px; height: 20px; border-radius: 50%;
    background: var(--bg); border: 3px solid var(--accent); z-index: 2;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
    transition: transform .4s var(--ease), background .4s;
}
.tl-item.left  .tl-node { right: -10px; }
.tl-item.right .tl-node { left: -10px; }
.tl-item.in .tl-node { background: var(--accent); transform: scale(1.25); }

.tl-card { padding: 1.5rem 1.6rem; position: relative; }
.tl-card .tl-year {
    font-family: var(--font-display); font-size: .9rem; letter-spacing: .04em;
    color: var(--accent-2); font-weight: 600;
}
.tl-card h3 { font-size: 1.25rem; margin: .3rem 0 .2rem; }
.tl-card .where { color: var(--text-mute); font-size: .82rem; margin-bottom: .5rem; }
.tl-card p { color: var(--text-dim); font-size: .94rem; }
.tl-tag {
    display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
    padding: .2rem .6rem; border-radius: 100px; font-weight: 600; margin-bottom: .2rem;
}
.tl-tag.edu     { background: color-mix(in srgb,#34D399 20%,transparent); color:#6EE7B7; }
.tl-tag.work    { background: color-mix(in srgb,var(--accent) 22%,transparent); color: var(--accent-2); }
.tl-tag.milestone { background: color-mix(in srgb,#F59E0B 22%,transparent); color:#FCD34D; }
.tl-tag.future  { background: color-mix(in srgb,#8B5CF6 24%,transparent); color:#C4B5FD; }

/* 3D reveal — cards swing in from depth, alternating sides.
   Gated behind .js so text is never hidden when JS is off. */
.js .tl-item[data-reveal] { opacity: 0; }
.js .tl-item.left[data-reveal]  { transform: perspective(1200px) rotateY(22deg)  translateZ(-140px) translateX(-30px); }
.js .tl-item.right[data-reveal] { transform: perspective(1200px) rotateY(-22deg) translateZ(-140px) translateX(30px); }
.tl-item[data-reveal].in    { opacity: 1 !important; transform: perspective(1200px) rotateY(0) translateZ(0) translateX(0) !important; }

/* connector arm from card to spine */
.tl-card::before {
    content: ""; position: absolute; top: 2.1rem; width: 30px; height: 2px;
    background: var(--tl-line);
}
.tl-item.left  .tl-card::before { right: -30px; }
.tl-item.right .tl-card::before { left: -30px; }

/* ---------- Mobile timeline → single column, spine on left ---------- */
@media (max-width: 760px) {
    .tl-spine { left: 14px; }
    .tl-item, .tl-item.left, .tl-item.right { width: 100%; left: 0; padding: 1rem 0 1rem 42px; }
    .tl-item.left .tl-node, .tl-item.right .tl-node { left: 5px; right: auto; }
    .tl-item.left .tl-card::before, .tl-item.right .tl-card::before { left: -22px; right: auto; width: 22px; }
    .js .tl-item.left[data-reveal], .js .tl-item.right[data-reveal] { transform: perspective(1000px) translateZ(-80px) translateY(30px); }
    .tl-item[data-reveal].in { transform: none !important; }
}

/* ---------- Journey card extras (emoji head, metrics, chips) ---------- */
.tl-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.tl-emoji {
    width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
    font-size: 1.4rem; border-radius: 13px; background: var(--surface-2);
    border: 1px solid var(--stroke);
}
.tl-kicker { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.tl-metrics { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1rem 0 .4rem; }
.tl-metric { line-height: 1.1; }
.tl-metric b { display: block; font-family: var(--font-display); font-size: 1.6rem;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-metric span { font-size: .76rem; color: var(--text-mute); }
.tl-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tl-chip { font-size: .74rem; padding: .25rem .65rem; border-radius: 100px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border: 1px solid var(--stroke); color: var(--text-dim); }
.tl-card.future { border-color: color-mix(in srgb, #8B5CF6 50%, var(--stroke)); }

/* ---------- Skills cloud ---------- */
.skill-cloud { display: flex; flex-wrap: wrap; gap: .7rem; }
.skill-chip {
    padding: .6rem 1.1rem; border-radius: 100px; background: var(--surface);
    border: 1px solid var(--stroke); font-weight: 500; font-size: .92rem;
    transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.skill-chip:hover { transform: translateY(-4px); border-color: var(--accent); color: var(--accent-2); }

/* ---------- "Read me" long-bio expander ---------- */
.readme { padding: 0; overflow: hidden; }
.readme > summary {
    list-style: none; cursor: pointer; padding: 1.1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-weight: 600; font-family: var(--font-display);
}
.readme > summary::-webkit-details-marker { display: none; }
.readme > summary .chev { transition: transform .3s var(--ease); color: var(--accent-2); }
.readme[open] > summary .chev { transform: rotate(180deg); }
.readme .readme-body { padding: 0 1.5rem 1.5rem; }
.readme .readme-body p { color: var(--text-dim); margin-bottom: .8rem; }
.readme .readme-body p:last-child { color: var(--text); font-weight: 500; margin-bottom: 0; }

/* ---------- Google SERP preview + CV ---------- */
.serp-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 820px){ .serp-wrap { grid-template-columns: 1fr; } }
.serp { background: #fff; color: #202124; border-radius: 16px; padding: 1.6rem 1.8rem; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.serp .gbar { display: flex; align-items: center; gap: .7rem; border: 1px solid #dfe1e5; border-radius: 100px; padding: .55rem 1rem; margin-bottom: 1.4rem; }
.serp .glogo { font-family: arial, sans-serif; font-weight: 500; font-size: 1.25rem; }
.serp .glogo .b{color:#4285F4}.serp .glogo .r{color:#EA4335}.serp .glogo .y{color:#FBBC05}.serp .glogo .g{color:#34A853}
.serp .gq { flex: 1; color: #3c4043; font-size: .95rem; }
.serp .gi { color: #4285F4; }
.serp .result .url { color: #202124; font-size: .82rem; display: flex; align-items: center; gap: .4rem; }
.serp .result .url small { color: #5f6368; }
.serp .result h4 { color: #1a0dab; font-size: 1.3rem; font-weight: 400; margin: .15rem 0 .25rem; font-family: arial, sans-serif; }
.serp .result p { color: #4d5156; font-size: .9rem; line-height: 1.5; }
.serp .sitelink { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid #ececec; }
.serp .sitelink .ic { font-size: 1.4rem; }
.serp .sitelink h5 { color: #1a0dab; font-size: 1rem; font-weight: 400; font-family: arial, sans-serif; }
.serp .sitelink p { color: #5f6368; font-size: .82rem; }

/* ---------- Selected work (numbered) ---------- */
.work-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px,1fr)); gap: var(--gap); }
.work-item { padding: 1.8rem; position: relative; display: flex; flex-direction: column; gap: .6rem; overflow: hidden; }
.work-item .wnum { position: absolute; top: .6rem; right: 1.1rem; font-family: var(--font-display); font-size: 3.4rem; color: color-mix(in srgb, var(--accent) 16%, transparent); font-weight: 700; }
.work-item .wlogo { height: 46px; display: flex; align-items: center; }
.work-item .wlogo img { max-height: 44px; max-width: 160px; object-fit: contain; }
.work-item .wlogo .wname { font-family: var(--font-display); font-size: 1.4rem; }
.work-item .wcat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); font-weight: 600; }
.work-item h3 { font-size: 1.2rem; }
.work-item p { color: var(--text-dim); font-size: .92rem; }
.work-item .wgo { margin-top: auto; align-self: flex-start; color: var(--accent-2); display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; padding-top: .4rem; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: var(--gap); }
.svc-card { padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.svc-card .emoji { font-size: 2rem; }
.svc-card h3 { font-size: 1.2rem; }
.svc-card p { color: var(--text-dim); font-size: .92rem; }
.svc-card .svc-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .4rem; }
.svc-card .svc-tags span { font-size: .72rem; padding: .25rem .6rem; border-radius: 8px; background: var(--surface-2); color: var(--text-dim); }

/* ---------- Instagram gallery ---------- */
.ig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
@media (max-width: 620px){ .ig-grid { grid-template-columns: repeat(2, 1fr); } }
.ig-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; display: block; background: var(--surface-2); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ig-tile:hover img { transform: scale(1.08); }
.ig-tile .ig-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-mute);
    background: radial-gradient(circle at 30% 30%, color-mix(in srgb,var(--accent) 30%,transparent), transparent 60%), var(--surface-2); }
.ig-tile .ig-ov { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
.ig-tile:hover .ig-ov { opacity: 1; }

/* ---------- Thoughts (coming soon) ---------- */
.thoughts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: var(--gap); }
.thought-card { padding: 1.7rem; display: flex; flex-direction: column; gap: .6rem; }
.thought-card .badge-soon { align-self: flex-start; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; padding: .25rem .6rem; border-radius: 100px; background: var(--surface-2); color: var(--text-mute); }
.thought-card h3 { font-size: 1.12rem; }
.thought-card p { color: var(--text-dim); font-size: .9rem; }
.thought-card .cat { color: var(--accent-2); font-size: .8rem; font-weight: 600; margin-top: auto; }

/* ---------- Year HUD (sticky progress) ---------- */
.year-hud {
    position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
    display: flex; flex-direction: column; align-items: flex-end; gap: .4rem;
    pointer-events: none;
}
.year-hud .yh-label { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-2); opacity: .9; }
.year-hud .yh-bar { width: 4px; height: 120px; background: var(--stroke); border-radius: 4px; overflow: hidden; }
.year-hud .yh-bar span { display: block; width: 100%; background: linear-gradient(var(--accent),var(--accent-2)); height: var(--tl-progress,0%); }
@media (max-width: 1100px){ .year-hud { display: none; } }
