/* =========================================================================
   Aditya Pamungkas — Portfolio
   Single page · Light & minimal · Cyan/Teal accent
   ========================================================================= */

/* ----------------------------- Tokens --------------------------------- */
:root {
    --bg:          #f6f5f1;
    --bg-2:        #efece5;
    --surface:     #ffffff;
    --ink:         #15171c;
    --ink-soft:    #3b3f47;
    --muted:       #767c87;
    --line:        rgba(21, 23, 28, 0.09);
    --line-strong: rgba(21, 23, 28, 0.16);

    --accent:        #0891b2; /* teal 600  */
    --accent-deep:   #0e7490; /* teal 700  */
    --accent-bright: #06b6d4; /* cyan 500  */
    --accent-soft:   #e6f7fb;
    --grad: linear-gradient(135deg, #22d3ee 0%, #06b6d4 46%, #0891b2 100%);
    --grad-soft: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 6px rgba(16, 24, 40, .06);
    --shadow-md: 0 14px 34px -16px rgba(16, 24, 40, .22);
    --shadow-lg: 0 34px 64px -24px rgba(15, 38, 48, .35);
    --shadow-card: 0 30px 60px -18px rgba(8, 90, 112, .45);

    --r-sm: 12px;
    --r:    18px;
    --r-lg: 26px;

    --maxw: 1180px;
    --nav-h: 70px;

    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-head: 'Space Grotesk', var(--font-body);
}

/* ----------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
::selection { background: var(--accent-bright); color: #fff; }

/* Soft ambient backdrop blobs */
body::before, body::after {
    content: ""; position: fixed; z-index: -1; border-radius: 50%;
    filter: blur(90px); opacity: .5; pointer-events: none;
}
body::before { width: 460px; height: 460px; top: -160px; right: -120px;
    background: radial-gradient(circle, rgba(34,211,238,.30), transparent 70%); }
body::after  { width: 520px; height: 520px; bottom: -220px; left: -160px;
    background: radial-gradient(circle, rgba(8,145,178,.18), transparent 70%); }

/* --------------------------- Utilities -------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-size: .78rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-title {
    font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em;
    font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; margin-top: 14px;
}
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------- Buttons --------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px rgba(8,145,178,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(8,145,178,.8); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }

/* ------------------------------ Nav ----------------------------------- */
.nav {
    position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
    display: flex; align-items: center;
    background: rgba(246, 245, 241, .72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(246,245,241,.85); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.brand .mark {
    width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff;
    display: grid; place-items: center; font-size: .85rem; box-shadow: 0 6px 14px -4px rgba(8,145,178,.6);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    font-size: .92rem; font-weight: 500; color: var(--ink-soft);
    padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(21,23,28,.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); place-items: center; background: var(--surface); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ------------------------------ Hero ---------------------------------- */
.hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px; min-height: 100vh; display: flex; align-items: center; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; width: 100%; }
.hero-copy { max-width: 560px; }
.hero h1 {
    font-family: var(--font-head); font-weight: 700; letter-spacing: -.03em;
    font-size: clamp(2.4rem, 5.4vw, 3.8rem); line-height: 1.04; margin: 18px 0 0;
}
.hero h1 .line { display: block; }
.hero-lead { color: var(--ink-soft); font-size: 1.1rem; margin-top: 22px; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-socials { display: flex; gap: 12px; margin-top: 30px; }
.hero-socials a {
    width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
    box-shadow: var(--shadow-sm); transition: transform .2s, color .2s, border-color .2s;
}
.hero-socials a:hover { transform: translateY(-3px); color: var(--accent-deep); border-color: var(--accent); }
.hero-socials svg { width: 20px; height: 20px; }

.hero-stats { display: flex; gap: 30px; margin-top: 40px; }
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.hero-stats .lbl { font-size: .8rem; color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
.hero-stats .sep { width: 1px; background: var(--line); }

/* --------------------- Lanyard / Interactive ID card ------------------ */
.lanyard {
    position: relative; width: 100%; height: 560px;
    display: flex; justify-content: center;
    touch-action: none; user-select: none; -webkit-user-select: none;
}
.lanyard-band { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.lanyard-clip {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 54px; height: 16px; border-radius: 6px; z-index: 2;
    background: linear-gradient(180deg, #d7dadf, #a9adb5);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 3px 6px rgba(0,0,0,.18);
}
.lanyard-clip::after {
    content: ""; position: absolute; left: 50%; top: 13px; transform: translateX(-50%);
    width: 14px; height: 10px; border: 3px solid #a9adb5; border-top: none; border-radius: 0 0 8px 8px;
}

.id-card {
    position: absolute; top: 0; left: 50%; width: 300px; margin-left: -150px;
    transform-origin: 50% 0; z-index: 3; cursor: grab;
    border-radius: 22px; background: var(--surface); overflow: hidden;
    box-shadow: var(--shadow-card);
    will-change: transform;
}
.id-card.grabbing { cursor: grabbing; }
.id-card::after { /* glossy sweep */
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 22px;
    background: linear-gradient(115deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 32%);
}
.id-hole {
    position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 11px; border-radius: 999px; z-index: 4;
    background: rgba(0,0,0,.28); box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.id-top {
    background: var(--grad); color: #fff; padding: 38px 22px 26px; text-align: center;
    position: relative;
}
.id-avatar {
    width: 104px; height: 104px; border-radius: 50%; margin: 6px auto 14px;
    overflow: hidden; border: 4px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.2); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.id-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.id-top h3 { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.id-top .role { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; opacity: .92; margin-top: 6px; }
.id-body { padding: 16px 20px 18px; }
.id-tagline {
    text-align: center; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px;
    padding: 8px 10px; margin-bottom: 14px; font-weight: 600;
}
.id-pills { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.id-pills span {
    font-size: .76rem; font-weight: 600; color: #fff; background: var(--grad);
    padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(8,145,178,.6);
}
.id-meta { display: grid; gap: 9px; font-size: .82rem; }
.id-meta .row { display: flex; justify-content: space-between; align-items: baseline; }
.id-meta dt { color: var(--muted); }
.id-meta dd { font-weight: 700; color: var(--ink); }
.id-meta dd.open { color: var(--accent-deep); }
.id-location {
    margin: 16px -20px -18px; padding: 13px; text-align: center;
    background: #11141b; color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.id-location svg { width: 14px; height: 14px; }
.lanyard-hint {
    position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
    font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 7px;
    opacity: .85; transition: opacity .4s ease; pointer-events: none; white-space: nowrap;
}
.lanyard.touched .lanyard-hint { opacity: 0; }
.lanyard-hint svg { width: 15px; height: 15px; }

/* ------------------------------ About --------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; }
.about-photo .badge {
    position: absolute; bottom: 18px; left: -18px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 12px;
}
.about-photo .badge .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.about-photo .badge .ic svg { width: 20px; height: 20px; }
.about-photo .badge strong { font-family: var(--font-head); display: block; font-size: 1.05rem; }
.about-photo .badge span { font-size: .8rem; color: var(--muted); }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.fact dt { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.fact dd { font-family: var(--font-head); font-weight: 600; margin-top: 4px; }

/* Skills */
.skills-head { margin-top: 56px; margin-bottom: 26px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.skill:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.skill .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.skill .name { font-weight: 600; }
.skill .lvl { font-size: .74rem; color: var(--accent-deep); font-weight: 600; background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.skill .bar { height: 7px; border-radius: 999px; background: rgba(21,23,28,.07); overflow: hidden; }
.skill .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width 1s cubic-bezier(.22,1,.36,1); }

/* ------------------------------ Work ---------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filter {
    padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-soft);
    border: 1px solid var(--line-strong); background: var(--surface); transition: .25s;
}
.filter:hover { border-color: var(--accent); color: var(--accent-deep); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
    position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer;
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, opacity .3s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card .thumb { aspect-ratio: 16/11; overflow: hidden; background: var(--bg-2); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .thumb img { transform: scale(1.06); }
.work-card .meta { padding: 16px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-card .meta h4 { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; }
.work-card .tag {
    font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    color: var(--accent-deep); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.work-card.hide { display: none; }
.work-card .view {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink);
    opacity: 0; transform: scale(.8); transition: .3s; box-shadow: var(--shadow-sm);
}
.work-card:hover .view { opacity: 1; transform: scale(1); }
.work-card .view svg { width: 18px; height: 18px; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
    background: rgba(12,14,18,.86); backdrop-filter: blur(6px); padding: 30px;
}
.lightbox.open { display: grid; animation: lbIn .3s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--font-head); font-size: 1rem; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.lightbox .lb-close:hover { background: rgba(255,255,255,.26); }

/* Project detail modal */
.project-modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px; }
.project-modal.open { display: grid; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(12,14,18,.62); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: pmFade .3s ease; }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
.pm-card {
    position: relative; z-index: 1; width: min(940px, 100%); max-height: 88vh;
    background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
    display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: var(--shadow-lg);
    animation: pmIn .4s cubic-bezier(.22,1,.36,1);
}
@keyframes pmIn { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }
.pm-media { background: linear-gradient(150deg, #67e8f9, #0891b2); min-height: 300px; overflow: hidden; }
.pm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-body { padding: 36px 32px; overflow-y: auto; }
.pm-close {
    position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.5rem; line-height: 1;
    display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .25s, background .2s;
}
.pm-close:hover { background: #fff; transform: rotate(90deg); }
.pm-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.pm-tags span { font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; }
.pm-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.pm-sub { color: var(--muted); font-weight: 600; margin-top: 5px; }
.pm-role { color: var(--accent-deep); font-size: .85rem; font-weight: 600; margin-top: 12px; }
.pm-desc { color: var(--ink-soft); margin-top: 14px; font-size: .96rem; }
.pm-section { margin-top: 24px; }
.pm-section h4 { font-family: var(--font-head); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.pm-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-tech span { font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.pm-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: .88rem; transition: transform .2s, background .2s; }
.pm-link::before { content: "\2197"; font-size: .95em; }
.pm-link:hover { background: var(--accent-deep); transform: translateY(-2px); }
/* Certificate / document mode: image-forward, single column */
.pm-card.is-doc { grid-template-columns: 1fr; width: min(820px, 100%); }
.pm-card.is-doc .pm-media { background: var(--bg-2); display: grid; place-items: center; padding: 22px; min-height: 0; max-height: 70vh; }
.pm-card.is-doc .pm-media img { object-fit: contain; max-height: calc(70vh - 44px); border-radius: 8px; box-shadow: var(--shadow-sm); }
.pm-card.is-doc .pm-body { text-align: center; padding: 22px 26px 26px; }
.pm-card.is-doc .pm-tags { justify-content: center; }
@media (max-width: 760px) {
    .pm-card, .pm-card.is-doc { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; width: min(560px, 100%); }
    .pm-media { min-height: 200px; max-height: 280px; }
    .pm-card.is-doc .pm-media img { max-height: 56vh; }
    .pm-body { padding: 26px 22px 30px; }
}

/* --------------------- Experience & Education ------------------------- */
.timeline-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.timeline-cols h3 { font-family: var(--font-head); font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.timeline-cols h3 .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.timeline-cols h3 .ic svg { width: 18px; height: 18px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.t-item { position: relative; padding-bottom: 30px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.t-item .date { font-size: .78rem; font-weight: 600; color: var(--accent-deep); }
.t-item h4 { font-family: var(--font-head); font-size: 1.06rem; margin: 3px 0 2px; }
.t-item .org { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.t-item p { font-size: .9rem; color: var(--ink-soft); }
.t-item ul { margin: 8px 0 0; padding-left: 18px; list-style: disc; }
.t-item ul li { font-size: .86rem; color: var(--ink-soft); margin-bottom: 4px; }

/* --------------------------- Testimonials ----------------------------- */
.tcarousel { position: relative; }
.ttrack {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(310px, 1fr);
    gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px;
    scrollbar-width: none;
}
.ttrack::-webkit-scrollbar { display: none; }
.tcard {
    scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.tcard .quote { font-size: 2.6rem; line-height: 1; font-family: var(--font-head); color: var(--accent-bright); height: 26px; }
.tcard p { color: var(--ink-soft); font-size: .94rem; flex: 1; margin: 8px 0 18px; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.tcard .who strong { font-family: var(--font-head); font-size: .96rem; display: block; }
.tcard .who .stars { color: #f5b301; font-size: .8rem; letter-spacing: 1px; }
.tnav { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.tnav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: .2s; }
.tnav button:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.tnav svg { width: 20px; height: 20px; }

/* ----------------------------- Contact -------------------------------- */
.contact-card {
    background: var(--ink); color: #fff; border-radius: var(--r-lg); overflow: hidden;
    display: grid; grid-template-columns: 1.1fr .9fr; box-shadow: var(--shadow-lg); position: relative;
}
.contact-card::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -80px; top: -120px; background: radial-gradient(circle, rgba(34,211,238,.4), transparent 70%); }
.contact-left { padding: 52px 46px; position: relative; z-index: 1; }
.contact-left h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; }
.contact-left p { color: rgba(255,255,255,.72); margin: 16px 0 30px; max-width: 380px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none; }
.contact-actions .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.contact-right { background: rgba(255,255,255,.04); padding: 52px 40px; display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; border-left: 1px solid rgba(255,255,255,.08); }
.cinfo { display: flex; gap: 14px; align-items: flex-start; }
.cinfo .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex-shrink: 0; }
.cinfo .ic svg { width: 19px; height: 19px; }
.cinfo > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.cinfo .lbl { display: block; font-size: .76rem; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.cinfo a, .cinfo .val { color: #fff; font-weight: 500; }
.cinfo a:hover { color: var(--accent-bright); }

/* ------------------------------ Footer -------------------------------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer .fsocials { display: flex; gap: 10px; }
.footer .fsocials a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: .2s; }
.footer .fsocials a:hover { color: var(--accent-deep); border-color: var(--accent); transform: translateY(-2px); }
.footer .fsocials svg { width: 18px; height: 18px; }

/* --------------------------- Scroll reveal ---------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 10px; }
    .hero-copy { max-width: 640px; order: 2; }
    .lanyard { order: 1; height: 540px; margin-bottom: 14px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-photo { max-width: 420px; margin-inline: auto; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-cols { grid-template-columns: 1fr; gap: 44px; }
    .contact-card { grid-template-columns: 1fr; }
    .contact-right { border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 640px) {
    .section { padding: 72px 0; }
    .wrap { padding-inline: 18px; }
    .nav-links, .nav .nav-cta .btn { display: none; }
    .nav-toggle { display: grid; }
    .nav.open .nav-links {
        display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: var(--surface); padding: 14px 18px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    }
    .nav.open .nav-links a { padding: 12px 14px; }
    .hero-stats { gap: 18px; }
    .hero-stats .num { font-size: 1.4rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .about-facts { grid-template-columns: 1fr; }
    .contact-left, .contact-right { padding: 36px 26px; }
    .about-photo .badge { left: 0; }
}

/* ------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    *, *::before, *::after { animation-duration: .001ms !important; }
}
