/* ==========================================================================
   Hendriatna.dev — design system
   --------------------------------------------------------------------------
   1.  Tokens          5.  Navigation      9.  Projects        13. Footer
   2.  Base            6.  Hero            10. Case studies    14. Light theme
   3.  Layout          7.  About           11. Timeline        15. Print
   4.  Components      8.  Skills          12. Contact         16. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    color-scheme: dark;

    --bg: #0b1120;
    --bg-alt: #0e1526;
    --surface: #111827;
    --surface-2: #0f172a;
    --surface-3: #16203a;

    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;
    --faint: #64748b;

    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.26);

    --accent: #3b82f6;
    --accent-2: #22d3ee;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --accent-line: rgba(59, 130, 246, 0.32);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --gradient-text: linear-gradient(120deg, #60a5fa 0%, #22d3ee 100%);

    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.12);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.1);

    --nav-bg: rgba(11, 17, 32, 0.78);
    --nav-bg-scrolled: rgba(11, 17, 32, 0.94);
    --nav-h: 74px;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    --shadow: 0 24px 50px -32px rgba(2, 6, 23, 0.95);
    --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.16), 0 28px 60px -34px rgba(59, 130, 246, 0.65);

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    --container: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base & typography ----------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-soft);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(760px 420px at 12% -8%, rgba(59, 130, 246, 0.16), transparent 70%),
        radial-gradient(680px 380px at 92% 4%, rgba(34, 211, 238, 0.1), transparent 72%);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.75rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

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

small {
    font-size: 0.8125rem;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0;
    opacity: 1;
}

::selection {
    background: rgba(59, 130, 246, 0.32);
    color: #fff;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 1100;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--accent-line);
    color: var(--text);
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    color: var(--text);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 3. Layout primitives ----------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    padding-inline: 1.25rem;
    margin-inline: auto;
}

main {
    display: block;
    padding-top: var(--nav-h);
}

.section {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section--tight {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2));
}

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.9rem;
}

.section-lead {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.0625rem;
    margin-bottom: 0;
}

.section-heading {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-heading--center .eyebrow::before {
    display: none;
}

.section-heading--center .section-lead {
    margin-inline: auto;
}

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

.surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.surface--soft {
    background: var(--surface-2);
}

/* 4. Components ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.35rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s ease,
        background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-accent {
    color: #f8fafc;
    background: var(--gradient-accent);
    box-shadow: 0 14px 34px -22px rgba(59, 130, 246, 0.95);
}

.btn-accent:hover,
.btn-accent:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px -20px rgba(59, 130, 246, 1);
}

.btn-outline {
    color: var(--text);
    background: transparent;
    border-color: var(--border-strong);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    color: var(--text);
    border-color: var(--accent-line);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease,
        background-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
    color: var(--accent-2);
    border-color: var(--accent-line);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.4;
}

.chip i {
    color: var(--accent-2);
    font-size: 0.9rem;
}

.chip--accent {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--text);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.5;
}

.tag--more {
    color: var(--accent-2);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.ticks {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.ticks li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.06);
}

.ticks--tight {
    gap: 0.4rem;
}

.ticks--tight li {
    font-size: 0.85rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-2);
}

.link-arrow i {
    transition: transform 0.2s ease;
}

.link-arrow:hover i {
    transform: translateX(3px);
}

.link-muted {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--faint);
}

.link-muted:hover {
    color: var(--text-soft);
}

/* Reveal on scroll (progressive enhancement).
   The class is added by app.js, so content stays visible if the script fails. */
.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* 5. Navigation ------------------------------------------------------------ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-scrolled {
    background: var(--nav-bg-scrolled);
    border-bottom-color: var(--border);
    box-shadow: 0 20px 40px -36px #000;
}

.site-nav__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: var(--nav-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-right: auto;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text);
}

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

.brand__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 24px -16px rgba(59, 130, 246, 0.95);
}

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

.nav-collapse {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-links__link {
    position: relative;
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links__link::after {
    content: '';
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: -3px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.nav-links__link:hover {
    color: var(--text);
}

.nav-links__link.is-active {
    color: var(--text);
}

.nav-links__link.is-active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-left: 0.75rem;
    margin-left: 0.35rem;
    border-left: 1px solid var(--border);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle__bars {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: background-color 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars {
    background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: block;
    }

    .nav-collapse.collapse:not(.show) {
        display: none;
    }

    .nav-collapse {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.75rem;
        max-height: calc(100vh - var(--nav-h));
        padding: 1rem 1.25rem 1.4rem;
        overflow-y: auto;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 40px 70px -50px #000;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .nav-links__link {
        padding: 0.7rem 0.85rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .nav-links__link::after {
        display: none;
    }

    .nav-links__link.is-active {
        background: var(--accent-soft);
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.6rem;
        padding-top: 0.9rem;
        padding-left: 0;
        margin-left: 0;
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

@media (min-width: 992px) {
    .nav-collapse.collapse {
        display: flex !important;
    }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    padding-top: clamp(2.25rem, 4.5vw, 3.75rem);
    padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 3.75rem);
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-soft);
}

.status-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
    animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.04);
    }
}

.hero__title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.05rem, 5vw, 3.85rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

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

.hero__lead {
    max-width: 54ch;
    margin-bottom: 1.9rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.9rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.hero__resume {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0.35rem;
    border-bottom: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__resume i {
    color: var(--accent-2);
}

.hero__resume:hover {
    color: var(--accent-2);
    border-bottom-color: var(--accent-line);
}

.hero__meta li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero__meta i {
    color: var(--accent-2);
    font-size: 0.95rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(2.5rem, 5vw, 3.75rem);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--border);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.05rem 1.15rem;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.07), rgba(17, 24, 39, 0.55)), var(--surface);
}

.stat__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent-2);
    font-size: 1.05rem;
}

.stat__value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.stat__unit {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.stat__label {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.4;
    color: var(--muted);
}

@media (min-width: 992px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    }

    .hero__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Architecture visual */
.hero__visual {
    position: relative;
    min-width: 0;
}

.arch {
    position: relative;
    padding: 0.85rem 0.85rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(17, 24, 39, 0.7) 58%);
    box-shadow: var(--shadow);
}

.arch::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(59, 130, 246, 0.45), transparent 42%, transparent 58%, rgba(34, 211, 238, 0.35));
    opacity: 0.4;
    filter: blur(16px);
}

.arch__hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1rem 0.3rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
}

.arch__dots {
    display: flex;
    gap: 0.3rem;
}

.arch__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-strong);
}

.arch__dots span:first-child {
    background: rgba(248, 113, 113, 0.6);
}

.arch__dots span:nth-child(2) {
    background: rgba(251, 191, 36, 0.6);
}

.arch__dots span:last-child {
    background: rgba(52, 211, 153, 0.6);
}

.arch__diagram {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.arch__code {
    margin: 0.85rem 0 0;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.55);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.75;
    color: #cbd5e1;
    tab-size: 4;
}

.arch__code code {
    font-family: inherit;
}

.c-key {
    color: #c084fc;
}

.c-cls {
    color: #7dd3fc;
}

.c-fn {
    color: #93c5fd;
}

.c-str {
    color: #86efac;
}

.c-com {
    color: #64748b;
}

/* Diagram primitives (SVG) */
.d-node {
    fill: var(--surface);
    stroke: var(--border-strong);
    stroke-width: 1;
}

.d-node--accent {
    stroke: var(--accent-line);
}

.d-node--solid {
    fill: rgba(59, 130, 246, 0.16);
    stroke: var(--accent-line);
}

.d-label {
    fill: var(--text);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
}

.d-sub {
    fill: var(--muted);
    font-family: var(--font-mono);
    font-size: 8px;
}

.d-line {
    fill: none;
    stroke: rgba(148, 163, 184, 0.28);
    stroke-width: 1.2;
}

.d-line--accent {
    stroke: rgba(59, 130, 246, 0.55);
}

.d-line--flow {
    stroke-dasharray: 5 7;
    animation: dash-flow 18s linear infinite;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -240;
    }
}

.d-glow {
    fill: var(--accent-2);
    opacity: 0.85;
}

.d-pill {
    fill: rgba(34, 211, 238, 0.1);
    stroke: rgba(34, 211, 238, 0.35);
    stroke-width: 1;
}

@media (prefers-reduced-motion: reduce) {
    .d-line--flow,
    .status-pill__dot {
        animation: none;
    }
}

/* 7. About & competencies -------------------------------------------------- */
.about__body p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.05rem;
}

.about__body p:first-child {
    color: var(--text-soft);
    font-size: 1.0625rem;
}

.about__signature {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}

.snapshot {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent 65%), var(--surface);
    box-shadow: var(--shadow);
}

.snapshot__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.snapshot__title i {
    color: var(--accent-2);
}

.snapshot__list {
    display: grid;
    gap: 0.95rem;
}

.snapshot__item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.snapshot__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.snapshot__item i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 0.95rem;
}

.snapshot__label {
    margin: 0 0 0.1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.snapshot__value {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.5;
}

.competency-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

.competency {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.competency:hover {
    transform: translateY(-3px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow);
}

.icon-tile {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 1.1rem;
}

.competency__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.competency__text {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--muted);
}

@media (min-width: 576px) {
    .competency-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .competency-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 8. Skills ---------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    height: 100%;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow);
}

.skill-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.skill-card__title {
    margin: 0 0 0.15rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.skill-card__desc {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.55;
    color: var(--muted);
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 9. Projects -------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(360px 200px at 100% 0%, var(--card-glow, rgba(59, 130, 246, 0.18)), transparent 70%);
    transition: opacity 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--card-line, var(--accent-line));
    box-shadow: var(--shadow);
}

.project-card:hover::after,
.project-card:focus-within::after {
    opacity: 1;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-card__period {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--faint);
    letter-spacing: 0.02em;
}

.project-card__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.project-card__title a {
    color: var(--text);
}

.project-card__title a:hover {
    color: var(--accent-2);
}

.project-card__summary {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--muted);
}

.project-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

/* Accent variants, driven by data-accent on the card */
.project-card[data-accent='cyan'],
.case-hero[data-accent='cyan'] {
    --card-glow: rgba(34, 211, 238, 0.16);
    --card-line: rgba(34, 211, 238, 0.34);
    --card-icon-bg: rgba(34, 211, 238, 0.1);
    --card-icon-color: #22d3ee;
}

.project-card[data-accent='violet'],
.case-hero[data-accent='violet'] {
    --card-glow: rgba(167, 139, 250, 0.16);
    --card-line: rgba(167, 139, 250, 0.34);
    --card-icon-bg: rgba(167, 139, 250, 0.1);
    --card-icon-color: #c4b5fd;
}

.project-card[data-accent='amber'],
.case-hero[data-accent='amber'] {
    --card-glow: rgba(251, 191, 36, 0.14);
    --card-line: rgba(251, 191, 36, 0.32);
    --card-icon-bg: rgba(251, 191, 36, 0.1);
    --card-icon-color: #fcd34d;
}

.project-card[data-accent='emerald'],
.case-hero[data-accent='emerald'] {
    --card-glow: rgba(52, 211, 153, 0.14);
    --card-line: rgba(52, 211, 153, 0.32);
    --card-icon-bg: rgba(52, 211, 153, 0.1);
    --card-icon-color: #6ee7b7;
}

.project-card__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--card-line, var(--accent-line));
    background: var(--card-icon-bg, var(--accent-soft));
    color: var(--card-icon-color, var(--accent-2));
    font-size: 1.05rem;
}

.project-card__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Detailed rows used on /projects */
.project-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-row:hover {
    border-color: var(--card-line, var(--accent-line));
    box-shadow: var(--shadow);
}

.project-row__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.project-row__title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    letter-spacing: -0.02em;
}

.project-row__overview {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.project-row__label {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.project-row__side {
    display: grid;
    gap: 1.15rem;
    align-content: start;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.project-row .project-card__footer {
    margin-top: 1.15rem;
    padding-top: 0;
    border-top: 0;
}

@media (min-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-row {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 2rem;
    }

    .project-row__side {
        padding-top: 0;
        padding-left: 2rem;
        border-top: 0;
        border-left: 1px solid var(--border);
    }
}

/* 10. Case study & page headers -------------------------------------------- */
.page-header {
    padding-top: clamp(2.25rem, 4vw, 3.25rem);
    padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.page-header__title {
    margin-bottom: 0.85rem;
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.page-header__lead {
    max-width: 66ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    font-size: 0.8rem;
    color: var(--faint);
}

.breadcrumb-nav a {
    color: var(--muted);
}

.breadcrumb-nav a:hover {
    color: var(--accent-2);
}

.breadcrumb-nav i {
    font-size: 0.65rem;
    color: var(--faint);
}

.case-hero {
    position: relative;
    padding: clamp(1.4rem, 3vw, 2.25rem);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, var(--card-glow, rgba(59, 130, 246, 0.12)), transparent 62%), var(--surface);
}

.case-hero__title {
    margin: 0.55rem 0 0.85rem;
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.case-hero__overview {
    max-width: 72ch;
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.case-hero__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.case-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--border);
}

.case-fact {
    padding: 0.85rem 1rem;
    background: var(--surface-2);
}

.case-fact__label {
    margin: 0 0 0.2rem;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.case-fact__value {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-soft);
    line-height: 1.45;
}

.case-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    align-items: start;
}

.case-block {
    padding: clamp(1.2rem, 2.5vw, 1.6rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.case-block__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.05rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.case-block__title i {
    color: var(--accent-2);
    font-size: 1rem;
}

.case-block--highlight {
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.09), transparent 70%), var(--surface);
}

.note {
    display: flex;
    gap: 0.7rem;
    padding: 1rem 1.15rem;
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.note i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: var(--accent-2);
    font-size: 1rem;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.scope-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    font-size: 0.82rem;
    color: var(--text-soft);
}

.scope-item i {
    color: var(--accent-2);
    font-size: 0.9rem;
}

.pager {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.pager__link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

.pager__link:hover {
    transform: translateY(-2px);
    border-color: var(--accent-line);
    background: var(--surface-2);
}

.pager__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.pager__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

@media (min-width: 768px) {
    .pager {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pager__link--next {
        align-items: flex-end;
        text-align: right;
    }
}

@media (min-width: 992px) {
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-grid--wide {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }
}

/* 11. Timeline & education -------------------------------------------------- */
.timeline {
    position: relative;
    display: grid;
    gap: 1.35rem;
    padding-left: 1.75rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.55), rgba(148, 163, 184, 0.12));
}

.timeline__item {
    position: relative;
}

.timeline__marker {
    position: absolute;
    left: -1.75rem;
    top: 1.35rem;
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

.timeline__body {
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline__body:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow);
}

.timeline__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.2rem;
}

.timeline__role {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
}

.timeline__period {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-2);
    white-space: nowrap;
}

.timeline__company {
    margin: 0 0 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.timeline__stack {
    margin-top: 0.95rem;
}

.education-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.08), transparent 70%), var(--surface);
}

.education-card__body {
    flex: 1;
    min-width: 0;
}

.education-card__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
}

.education-card__school {
    margin: 0 0 0.7rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.education-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.education-card__gpa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 700;
}

.education-card__period {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--faint);
}

/* 12. Contact --------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.contact-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.contact-intro__title {
    margin-bottom: 0.9rem;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.contact-intro__text {
    margin-bottom: 1.65rem;
    color: var(--muted);
}

.contact-list {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--text-soft);
    word-break: break-word;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

a.contact-item:hover {
    transform: translateX(2px);
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--text);
}

.contact-item i {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 0.95rem;
}

.contact-item__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

.contact-item__value {
    display: block;
    font-size: 0.88rem;
    color: inherit;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Form */
.form-field {
    margin-bottom: 1.05rem;
}

.form-field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
}

.form-field__label span {
    color: var(--danger);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
    color: var(--faint);
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    color: var(--text);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

textarea.form-control {
    min-height: 148px;
    resize: vertical;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--danger);
}

.form-hint {
    margin-top: 0.4rem;
    font-size: 0.76rem;
    color: var(--faint);
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.form-footer__note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.76rem;
    color: var(--faint);
}

.alert-flash {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1.05rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 12px;
    background: var(--success-soft);
    color: #a7f3d0;
    font-size: 0.86rem;
}

.alert-flash i {
    margin-top: 0.1rem;
    color: var(--success);
}

.alert-flash--error {
    border-color: rgba(248, 113, 113, 0.3);
    background: var(--danger-soft);
    color: #fecaca;
}

.alert-flash--error i {
    color: var(--danger);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 2rem;
        align-items: start;
    }
}

/* 13. Footer & utilities ---------------------------------------------------- */
.site-footer {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-block: clamp(2.5rem, 4vw, 3.5rem) 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--text);
    text-transform: uppercase;
}

.footer-brand:hover {
    color: var(--text);
}

.footer-tagline {
    max-width: 34ch;
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.footer-heading {
    margin: 0 0 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.footer-links {
    display: grid;
    gap: 0.5rem;
}

.footer-links a,
.footer-links span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--muted);
    word-break: break-word;
}

.footer-links a:hover {
    color: var(--accent-2);
}

.footer-links i {
    font-size: 0.9rem;
    color: var(--faint);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--faint);
}

.footer-bottom p {
    margin: 0;
}

.footer-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-note i {
    color: var(--success);
}

/* Back to top */
.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1020;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 1.05rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, color 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    color: var(--accent-2);
    border-color: var(--accent-line);
}

/* 14. Light theme ----------------------------------------------------------- */
[data-theme='light'] {
    color-scheme: light;

    --bg: #f4f7fc;
    --bg-alt: #eef2f9;
    --surface: #ffffff;
    --surface-2: #f7f9fd;
    --surface-3: #eef2f8;

    --text: #0f172a;
    --text-soft: #2f3e54;
    --muted: #55657d;
    --faint: #7b8aa0;

    --border: rgba(15, 23, 42, 0.1);
    --border-strong: rgba(15, 23, 42, 0.18);

    --accent: #2563eb;
    --accent-2: #0891b2;
    --accent-soft: rgba(37, 99, 235, 0.09);
    --accent-line: rgba(37, 99, 235, 0.28);
    --gradient-text: linear-gradient(120deg, #1d4ed8 0%, #0891b2 100%);

    --success: #059669;
    --success-soft: rgba(5, 150, 105, 0.08);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.06);

    --nav-bg: rgba(244, 247, 252, 0.82);
    --nav-bg-scrolled: rgba(244, 247, 252, 0.96);
    --shadow: 0 24px 48px -34px rgba(15, 23, 42, 0.35);
}

[data-theme='light'] body::before {
    background:
        radial-gradient(760px 420px at 12% -8%, rgba(37, 99, 235, 0.1), transparent 70%),
        radial-gradient(680px 380px at 92% 4%, rgba(8, 145, 178, 0.07), transparent 72%);
}

[data-theme='light'] .stat {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0.6)), var(--surface);
}

[data-theme='light'] .snapshot,
[data-theme='light'] .case-hero,
[data-theme='light'] .education-card {
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.06), transparent 70%), var(--surface);
}

[data-theme='light'] .arch {
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.85) 58%);
}

[data-theme='light'] .arch__code {
    background: #f1f5f9;
    color: #334155;
}

[data-theme='light'] .c-key {
    color: #7c3aed;
}

[data-theme='light'] .c-cls {
    color: #0369a1;
}

[data-theme='light'] .c-fn {
    color: #1d4ed8;
}

[data-theme='light'] .c-str {
    color: #047857;
}

[data-theme='light'] .d-line {
    stroke: rgba(15, 23, 42, 0.22);
}

[data-theme='light'] .d-line--accent {
    stroke: rgba(37, 99, 235, 0.45);
}

[data-theme='light'] .alert-flash {
    color: #065f46;
}

[data-theme='light'] .alert-flash--error {
    color: #991b1b;
}

.theme-toggle .bi-sun {
    display: none;
}

[data-theme='light'] .theme-toggle .bi-sun {
    display: inline-block;
}

[data-theme='light'] .theme-toggle .bi-moon-stars {
    display: none;
}

/* 15. Resume --------------------------------------------------------------- */
.resume-sheet {
    max-width: 920px;
    margin-inline: auto;
    padding: clamp(1.4rem, 3.5vw, 2.75rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.resume-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.resume-name {
    margin: 0 0 0.35rem;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.resume-role {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-2);
}

.resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.resume-contact a,
.resume-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
}

.resume-contact i {
    color: var(--accent-2);
}

.resume-contact a:hover {
    color: var(--accent-2);
}

.resume-summary {
    margin: 1.25rem 0 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--muted);
}

.resume-section {
    margin-top: 1.9rem;
}

.resume-section__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.resume-section__title i {
    font-size: 0.95rem;
}

.resume-job {
    padding-bottom: 1.05rem;
    margin-bottom: 1.05rem;
    border-bottom: 1px dashed var(--border);
}

.resume-job:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.resume-job__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
}

.resume-job__role {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.resume-job__period {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

.resume-job__company {
    margin: 0.1rem 0 0.6rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.resume-skill-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem 1rem;
    padding-block: 0.55rem;
    border-bottom: 1px dashed var(--border);
}

.resume-skill-group:last-child {
    border-bottom: 0;
}

.resume-skill-group__label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.resume-skill-group__items {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

.resume-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.35rem;
}

@media (min-width: 768px) {
    .resume-skill-group {
        grid-template-columns: 210px minmax(0, 1fr);
        align-items: baseline;
    }
}

/* 15b. Font face & component extensions ------------------------------------ */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

.subsection-title {
    margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 1rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
}

.subsection-title:first-child {
    margin-top: 0;
}

.split-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.split-heading > div {
    flex: 1 1 420px;
    min-width: 0;
}

.aside-links {
    display: grid;
    gap: 0.5rem;
}

.aside-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-soft);
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

.aside-links a:hover {
    transform: translateX(2px);
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--text);
}

.aside-links i {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--faint);
}

.aside-links__title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.aside-links__meta {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.cv-callout {
    margin-top: 1.5rem;
    padding: 1.3rem;
}

.cv-callout__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.cv-callout__text {
    margin: 0 0 1rem;
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--muted);
}

.cv-callout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-card__lead {
    margin: 0 0 1.35rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1rem;
}

.form-hint.is-warning {
    color: var(--danger);
}

.case-block__subtitle {
    margin: 1.5rem 0 0.85rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.project-row__link {
    color: var(--text);
}

.project-row__link:hover {
    color: var(--accent-2);
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 15c. CTA band, error page & final adjustments ---------------------------- */
.cta-band {
    padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
}

.cta-band__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    overflow: hidden;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.16), rgba(34, 211, 238, 0.08) 58%, transparent), var(--surface);
}

.cta-band__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px 220px at 88% 0%, rgba(34, 211, 238, 0.14), transparent 72%);
}

.cta-band__title {
    position: relative;
    margin: 0 0 0.4rem;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta-band__text {
    position: relative;
    max-width: 54ch;
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.cta-band__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

[data-theme='light'] .cta-band__inner {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.1), rgba(8, 145, 178, 0.05) 58%, transparent), var(--surface);
}

.error-page {
    padding-block: clamp(2.75rem, 7vw, 5.5rem);
    text-align: center;
}

.error-page__code {
    margin: 0;
    font-family: var(--font-mono);
    font-size: clamp(3.75rem, 13vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.9;
}

.error-page .eyebrow {
    margin-top: 1.25rem;
    justify-content: center;
}

.error-page .eyebrow::before {
    display: none;
}

.error-page__title {
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    letter-spacing: -0.03em;
}

.error-page__text {
    max-width: 56ch;
    margin: 0 auto 1.6rem;
    color: var(--muted);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.error-page__suggestions {
    max-width: 620px;
    margin-inline: auto;
    text-align: left;
}

.error-page__suggestions .footer-heading {
    text-align: left;
}

/* Architecture snippet caption */
.arch__snippet {
    margin-top: 0.85rem;
}

.arch__file {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    color: var(--faint);
}

.arch__file i {
    color: var(--accent-2);
    font-size: 0.85rem;
}

.arch__snippet .arch__code {
    margin-top: 0;
}

/* Hero statistic alignment */
.stat__body {
    min-width: 0;
}

.stat__value {
    margin: 0 0 0.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.stat__value .stat__unit {
    display: inline-block;
    margin: 0;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

/* Footer columns */
@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero__stats {
        margin-inline: -0.25rem;
    }

    .stat {
        padding: 0.9rem 0.85rem;
        gap: 0.6rem;
    }

    .stat__icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-radius: 9px;
    }

    .stat__value {
        font-size: 1.35rem;
    }

    .stat__label {
        font-size: 0.72rem;
    }

    .resume-contact {
        gap: 0.35rem 0.9rem;
    }
}

/* 16. Print ---------------------------------------------------------------- */
@media print {
    @page {
        size: A4;
        margin: 10mm 12mm;
    }

    :root {
        color-scheme: light;
        --bg: #ffffff;
        --bg-alt: #ffffff;
        --surface: #ffffff;
        --surface-2: #ffffff;
        --text: #0f172a;
        --text-soft: #1f2937;
        --muted: #374151;
        --faint: #4b5563;
        --border: #d5dde8;
        --border-strong: #c2ccd9;
        --accent: #1d4ed8;
        --accent-2: #0e7490;
        --accent-soft: #eff6ff;
        --accent-line: #bfdbfe;
        --shadow: none;
    }

    body {
        background: #fff;
        color: #1f2937;
        font-size: 9.5pt;
        line-height: 1.4;
    }

    body::before,
    .site-nav,
    .site-footer,
    .to-top,
    .skip-link,
    .no-print {
        display: none !important;
    }

    main {
        padding-top: 0;
    }

    .container {
        max-width: none;
        padding-inline: 0;
    }

    .page-header {
        padding-top: 0;
    }

    .section,
    .section--tight {
        padding-block: 0;
    }

    .resume-sheet {
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .resume-name {
        font-size: 19pt;
        margin-bottom: 0.15rem;
    }

    .resume-role {
        font-size: 10pt;
        margin-bottom: 0.55rem;
    }

    .resume-header {
        padding-bottom: 0.55rem;
    }

    .resume-contact {
        gap: 0.2rem 0.9rem;
        font-size: 8pt;
    }

    .resume-summary {
        margin-top: 0.55rem;
        font-size: 8.6pt;
        line-height: 1.5;
    }

    .resume-section {
        margin-top: 0.85rem;
    }

    .resume-section__title {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
        font-size: 0.68rem;
    }

    .resume-job {
        padding-bottom: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .resume-job__role {
        font-size: 0.9rem;
    }

    .resume-job__company {
        margin-bottom: 0.3rem;
        font-size: 0.78rem;
    }

    .ticks {
        gap: 0.15rem;
    }

    .ticks li {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .ticks li::before {
        top: 0.42rem;
        width: 6px;
        height: 6px;
    }

    .resume-skill-group {
        padding-block: 0.25rem;
    }

    .resume-skill-group__label,
    .resume-skill-group__items {
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .resume-job,
    .resume-skill-group,
    .resume-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .timeline__body,
    .skill-card,
    .education-card,
    .case-block {
        border: 1px solid #d5dde8;
        background: #fff;
        box-shadow: none;
    }

    a {
        color: inherit;
    }

    a[href^='http']::after {
        content: '';
    }
}

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

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

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* == END OF FILE == */
