/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
    --accent: #22d3ee;
    --accent-2: #8b5cf6;
    --accent-3: #ec4899;
    --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --nav-h: 72px;
    --container: 1180px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #07090f;
    --bg-alt: #0b0e17;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e8ebf3;
    --text-strong: #ffffff;
    --muted: #8e97ad;
    --nav-bg: rgba(7, 9, 15, 0.65);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --grid-line: rgba(255, 255, 255, 0.045);
    --blob-opacity: 0.35;
    --tile-bg: #ffffff;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f7fb;
    --bg-alt: #eef1f7;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-2: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.16);
    --text: #334155;
    --text-strong: #0f172a;
    --muted: #64748b;
    --nav-bg: rgba(246, 247, 251, 0.75);
    --shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.25);
    --grid-line: rgba(15, 23, 42, 0.05);
    --blob-opacity: 0.22;
    --tile-bg: #ffffff;
    --accent: #0891b2;
    --accent-2: #7c3aed;
    --accent-3: #db2777;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3 {
    color: var(--text-strong);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

strong {
    color: var(--text-strong);
    font-weight: 600;
}

::selection {
    background: var(--accent-2);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

.accent {
    color: var(--accent);
}

.muted {
    color: var(--muted);
}

/* ==========================================================================
   Background decoration
   ========================================================================== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: var(--blob-opacity);
    animation: blob 22s ease-in-out infinite alternate;
}

.bg-blob--1 {
    width: 520px;
    height: 520px;
    background: var(--accent);
    top: -160px;
    left: -120px;
}

.bg-blob--2 {
    width: 460px;
    height: 460px;
    background: var(--accent-2);
    top: 10%;
    right: -160px;
    animation-delay: -6s;
}

.bg-blob--3 {
    width: 380px;
    height: 380px;
    background: var(--accent-3);
    bottom: -140px;
    left: 30%;
    opacity: calc(var(--blob-opacity) * .6);
    animation-delay: -12s;
}

@keyframes blob {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(.95); }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--gradient);
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    z-index: 1001;
}

/* ==========================================================================
   Buttons, pills, tags
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}

.btn--primary {
    color: #fff;
    background: var(--gradient);
    background-size: 160% 160%;
    background-position: 0% 50%;
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent-2) 70%, transparent);
}

.btn--primary:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent-2) 80%, transparent);
}

.btn--ghost {
    color: var(--text-strong);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
}

.btn--ghost:hover .fa-arrow-right {
    transform: translateX(3px);
}

.btn .fa-arrow-right {
    transition: transform .25s var(--ease);
}

.btn--lg {
    padding: 16px 28px;
    font-size: 1rem;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .25s, color .25s, transform .25s var(--ease);
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    backdrop-filter: blur(8px);
    font-size: .85rem;
    color: var(--text);
    transition: border-color .25s;
}

.pill:hover {
    border-color: var(--accent);
}

.pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: border-color .2s, color .2s, transform .2s var(--ease);
}

.tag:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    transform: translateY(-1px);
}

.tags--sm .tag {
    font-family: var(--font-mono);
    font-size: .72rem;
    padding: 4px 10px;
}

.date-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    white-space: nowrap;
}

.date-chip--live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}

.icon-badge {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.icon-badge--violet { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent); border-color: color-mix(in srgb, var(--accent-2) 25%, transparent); }
.icon-badge--pink   { color: var(--accent-3); background: color-mix(in srgb, var(--accent-3) 12%, transparent); border-color: color-mix(in srgb, var(--accent-3) 25%, transparent); }
.icon-badge--green  { color: #10b981; background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .25); }
.icon-badge--lg     { width: 64px; height: 64px; font-size: 1.7rem; border-radius: 18px; }

.logo-tile {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--tile-bg);
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .4);
    overflow: hidden;
}

.logo-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-tile--lg {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    padding: 12px;
}

.logo-tile--sq {
    width: 64px;
    height: 64px;
    padding: 6px;
}

/* ==========================================================================
   Cards + spotlight hover effect
   ========================================================================== */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s var(--ease);
    isolation: isolate;
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%);
    opacity: 0;
    transition: opacity .35s;
    z-index: -1;
    pointer-events: none;
}

.spotlight::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 70%, transparent), transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}

.spotlight:hover::before,
.spotlight:hover::after {
    opacity: 1;
}

.spotlight:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background-color .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: var(--nav-bg);
    border-bottom-color: var(--border);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-strong);
    z-index: 2;
}

.nav__logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--gradient);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent-2) 80%, transparent);
}

.nav__name {
    font-size: 1.05rem;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(12px);
}

.nav__link {
    position: relative;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .25s, background-color .25s;
}

.nav__link:hover {
    color: var(--text-strong);
}

.nav__link.is-active {
    color: var(--text-strong);
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--border);
}

.nav__link--cta {
    color: #fff !important;
    background: var(--gradient) !important;
    box-shadow: none !important;
    margin-left: 4px;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

[data-theme="dark"] .icon-sun,
[data-theme="light"] .icon-moon {
    display: none;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.nav__burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 80px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 64px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.hero__title .gradient-text {
    display: inline-block;
    background-size: 200% auto;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero__typed {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: var(--text-strong);
    min-height: 1.6em;
}

.hero__typed .prompt {
    color: var(--accent);
    margin-right: 8px;
}

.caret {
    color: var(--accent);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero__lead {
    max-width: 560px;
    font-size: 1.1rem;
    color: var(--muted);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials--center {
    justify-content: center;
}

.socials a {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .25s var(--ease), color .25s, border-color .25s, box-shadow .25s;
}

.socials a:hover {
    transform: translateY(-4px);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 24px -12px var(--accent);
}

/* Avatar + orbit */
.hero__visual {
    display: flex;
    justify-content: center;
}

.avatar {
    --size: min(380px, 78vw);
    position: relative;
    width: var(--size);
    height: var(--size);
}

.avatar__ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
    animation: spin 8s linear infinite;
    filter: blur(1px);
}

.avatar__ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(40px);
    opacity: .55;
}

.avatar__img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 45% 30%;
    border: 6px solid var(--bg);
    z-index: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.orbit {
    position: absolute;
    inset: -54px;
    border-radius: 50%;
    border: 1px dashed var(--border-strong);
    animation: spin 40s linear infinite;
    z-index: 2;
}

.orbit__item {
    --angle: calc(var(--i) * 60deg);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--text-strong);
    background: var(--bg-alt);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: rotate(var(--angle)) translate(calc(var(--size) / 2 + 54px)) rotate(calc(var(--angle) * -1));
}

.orbit__item i {
    animation: spin 40s linear infinite reverse;
}

.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border-radius: 16px;
    background: var(--nav-bg);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.float-card img {
    width: 36px;
    height: 36px;
}

.float-card > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gradient);
}

.float-card strong {
    display: block;
    font-size: .85rem;
    line-height: 1.2;
}

.float-card span {
    display: block;
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.3;
}

.float-card--tl {
    top: 4%;
    left: -18%;
}

.float-card--br {
    bottom: 6%;
    right: -14%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    opacity: .7;
    transition: opacity .25s;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-hint__mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid var(--muted);
    border-radius: 14px;
    position: relative;
}

.scroll-hint__mouse span {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--accent);
    animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-section {
    padding: 0 0 40px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.stat {
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat + .stat {
    border-left: 1px solid var(--border);
}

.stat__num {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat__label {
    font-size: .88rem;
    color: var(--muted);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 110px 0;
    position: relative;
}

.section--alt {
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-alt) 70%, transparent) 15%, color-mix(in srgb, var(--bg-alt) 70%, transparent) 85%, transparent);
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-top: 12px;
}

.section-sub {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}

.eyebrow--plain::before {
    display: none;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: start;
}

.about__text p {
    font-size: 1.08rem;
    margin-bottom: 18px;
}

.about__highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-strong);
    transition: border-color .25s, transform .25s var(--ease);
}

.highlight:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    transform: translateY(-2px);
}

.highlight i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

/* Terminal */
.terminal {
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: #0a0d14;
    box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .2);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: .88rem;
    color: #cbd5e1;
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #111522;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }

.terminal__title {
    margin-left: auto;
    margin-right: auto;
    padding-right: 52px;
    font-size: .78rem;
    color: #64748b;
}

.terminal__body {
    padding: 22px 22px 26px;
}

.t-prompt {
    color: #22d3ee;
    margin-right: 6px;
}

.t-list {
    margin: 14px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
}

.t-key {
    color: #a78bfa;
}

.t-key::after {
    content: ':';
    color: #64748b;
}

.t-val {
    color: #e2e8f0;
    word-break: break-word;
}

.t-link:hover {
    color: #22d3ee;
    text-decoration: underline;
}

.t-cursor {
    display: inline-block;
    width: 9px;
    height: 1.1em;
    vertical-align: text-bottom;
    background: #22d3ee;
    animation: blink 1s steps(1) infinite;
}

/* ==========================================================================
   Skills (bento)
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card--wide {
    grid-column: span 2;
}

.skill-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.skill-card__head h3 {
    font-size: 1.2rem;
}

.marquee {
    margin-top: 56px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee__track span {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-strong);
    white-space: nowrap;
    transition: color .3s;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes marquee {
    to { transform: translateX(calc(-50% - 24px)); }
}

/* ==========================================================================
   Experience timeline
   ========================================================================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2) 50%, transparent);
    border-radius: 2px;
}

.timeline__item {
    position: relative;
}

.timeline__item + .timeline__item {
    margin-top: 28px;
}

.timeline__dot {
    position: absolute;
    left: -40px;
    top: 36px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent-2);
    display: grid;
    place-items: center;
}

.timeline__dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
}

.timeline__dot--live {
    border-color: #22c55e;
}

.timeline__dot--live::after {
    background: #22c55e;
    animation: pulse 2s infinite;
}

.job:hover {
    transform: translateX(4px);
}

.job__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.job__meta {
    flex: 1;
    min-width: 0;
}

.job__meta h3 {
    font-size: 1.25rem;
}

.job__company {
    margin-top: 4px;
    color: var(--accent);
    font-weight: 600;
    font-size: .95rem;
}

.job__loc {
    margin-left: 8px;
    color: var(--muted);
    font-weight: 400;
    font-size: .85rem;
}

.job__list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.job__list--grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
}

.job__list li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-size: .96rem;
}

.job__list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--gradient);
    transform: rotate(45deg);
}

.job__list.is-collapsed li:nth-child(n + 5) {
    display: none;
}

.show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--accent);
}

.show-more i {
    transition: transform .3s var(--ease);
}

.show-more[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.job .tags:last-child {
    margin-top: 4px;
}

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

.edu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.edu__body h3 {
    font-size: 1.2rem;
    margin: 12px 0 6px;
}

.edu__body p {
    font-size: .95rem;
}

.edu__body .muted {
    margin-top: 4px;
    font-size: .88rem;
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.project__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 12px 30px -12px var(--c1);
    margin-bottom: 6px;
    transition: transform .4s var(--ease);
}

.project:hover .project__icon {
    transform: rotate(-8deg) scale(1.08);
}

.project h3 {
    font-size: 1.15rem;
}

.project p {
    font-size: .94rem;
    color: var(--muted);
    flex: 1;
}

.project__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 4px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--text-strong);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: border-color .25s, color .25s;
}

.project__link .fa-arrow-up-right-from-square {
    font-size: .72rem;
    opacity: .7;
}

.project__link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================================
   Certifications
   ========================================================================== */
.certs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cert {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.cert__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cert__issuer {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.cert h3 {
    font-size: 1.02rem;
    line-height: 1.35;
}

.verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap .25s var(--ease);
}

.verify:hover {
    gap: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cert--featured {
    grid-column: span 3;
    align-items: center;
    gap: 28px;
    padding: 32px;
    background:
        radial-gradient(600px circle at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
        var(--surface);
}

.cert--featured .cert__badge {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35));
    transition: transform .5s var(--ease);
}

.cert--featured:hover .cert__badge {
    transform: rotate(-6deg) scale(1.05);
}

.cert--featured h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

/* ==========================================================================
   Course
   ========================================================================== */
.course {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    overflow: hidden;
    isolation: isolate;
}

.course__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(500px circle at 100% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%),
        radial-gradient(400px circle at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}

.course__icon {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 16px 36px -14px var(--accent-2);
}

.course__body {
    flex: 1;
}

.course__body h3 {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    margin: 8px 0 8px;
}

.course__body p {
    color: var(--muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    padding-bottom: 80px;
}

.contact__card {
    position: relative;
    text-align: center;
    padding: 72px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(700px circle at 50% -20%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 60%),
        radial-gradient(500px circle at 50% 120%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
        var(--surface);
    overflow: hidden;
}

.contact__card .eyebrow {
    justify-content: center;
}

.contact__card h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    max-width: 760px;
    margin: 14px auto 16px;
}

.contact__card > p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
}

.contact__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 36px 0 32px;
}

/* ==========================================================================
   Footer, to-top, toast
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    font-size: .9rem;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.footer .fa-heart {
    color: var(--accent-3);
}

.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 12px 30px -10px var(--accent-2);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
    z-index: 900;
}

.to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.to-top:hover {
    transform: translateY(-3px);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 30px);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-strong);
    background: var(--nav-bg);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
    z-index: 1100;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Cards keep their own hover transform once revealed */
.js .reveal.is-visible.card {
    transition: opacity .8s var(--ease), transform .35s var(--ease), border-color .35s, box-shadow .35s var(--ease);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .nav__link {
        padding: 8px 12px;
    }

    .float-card--tl { left: -8%; }
    .float-card--br { right: -6%; }

    .projects,
    .certs {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert--featured {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    :root {
        --nav-h: 64px;
    }

    .nav__burger {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 0 24px;
        border: none;
        border-radius: 0;
        background: var(--bg);
        backdrop-filter: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    }

    .nav__menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__link {
        font-size: 1.5rem;
        font-weight: 700;
        padding: 12px 28px;
        color: var(--text-strong);
    }

    .nav__link--cta {
        margin: 16px 0 0;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 48px);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 72px;
    }

    .hero__content {
        align-items: center;
        order: 2;
    }

    .hero__visual {
        order: 1;
    }

    .hero__lead {
        margin: 0 auto;
    }

    .hero__cta,
    .socials {
        justify-content: center;
    }

    .avatar {
        --size: min(280px, 62vw);
    }

    .orbit {
        inset: -38px;
    }

    .orbit__item {
        width: 36px;
        height: 36px;
        margin: -18px 0 0 -18px;
        font-size: 1rem;
        transform: rotate(var(--angle)) translate(calc(var(--size) / 2 + 38px)) rotate(calc(var(--angle) * -1));
    }

    .float-card--tl { left: -14%; top: auto; bottom: -6%; }
    .float-card--br { display: none; }

    .scroll-hint {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3) {
        border-left: none;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .about {
        grid-template-columns: 1fr;
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .skill-card--wide {
        grid-column: span 2;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .course {
        flex-direction: column;
        text-align: center;
    }

    .course .eyebrow {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }

    .section {
        padding: 80px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .card {
        padding: 22px;
    }

    .nav__name {
        display: none;
    }

    .hero__title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .hero__lead {
        font-size: 1rem;
    }

    .hero__cta {
        width: 100%;
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .pill {
        font-size: .78rem;
        text-align: left;
    }

    .float-card {
        padding: 8px 12px 8px 8px;
    }

    .float-card img,
    .float-card > i {
        width: 30px;
        height: 30px;
    }

    .float-card--tl {
        left: -10%;
    }

    .stat {
        padding: 24px 12px;
    }

    .bento,
    .projects,
    .certs {
        grid-template-columns: 1fr;
    }

    .skill-card--wide,
    .cert--featured {
        grid-column: auto;
    }

    .cert--featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px;
    }

    .cert--featured .cert__badge {
        width: 88px;
        height: 88px;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline__dot {
        left: -28px;
        top: 30px;
        width: 16px;
        height: 16px;
    }

    .timeline__dot::after {
        width: 6px;
        height: 6px;
    }

    .job:hover {
        transform: none;
    }

    .job__head {
        flex-wrap: wrap;
        gap: 14px;
    }

    .job__head .logo-tile {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .job__head .date-chip {
        order: 3;
        flex-basis: auto;
    }

    .job__meta {
        flex-basis: calc(100% - 70px);
    }

    .job__meta h3 {
        font-size: 1.1rem;
    }

    .job__loc {
        display: block;
        margin: 2px 0 0;
    }

    .job__list--grid {
        grid-template-columns: 1fr;
    }

    .edu {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .logo-tile--lg {
        width: 80px;
        height: 80px;
    }

    .about__highlights {
        grid-template-columns: 1fr 1fr;
    }

    .highlight {
        padding: 12px;
        font-size: .86rem;
    }

    .terminal {
        font-size: .8rem;
    }

    .t-list li {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .t-list li + li {
        margin-top: 6px;
    }

    .course {
        padding: 28px 22px;
    }

    .contact__card {
        padding: 52px 20px;
    }

    .contact__actions {
        flex-direction: column;
    }

    .contact__actions .btn {
        width: 100%;
        white-space: normal;
        word-break: break-all;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Touch devices: no hover lift, which feels sticky on tap */
@media (hover: none) {
    .spotlight:hover,
    .job:hover {
        transform: none;
    }

    .spotlight::before,
    .spotlight::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
