:root {
    color-scheme: dark;
    --font-display: "Sora", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", Consolas, monospace;
    --bg: #091015;
    --bg-alt: #0d151b;
    --bg-soft: #111b22;
    --panel: rgba(18, 27, 34, 0.9);
    --panel-strong: rgba(18, 28, 35, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.03);
    --border: rgba(214, 226, 220, 0.12);
    --border-strong: rgba(214, 226, 220, 0.22);
    --text: #eef3ef;
    --text-soft: #d7dfda;
    --muted: #96a49f;
    --muted-strong: #bdc8c2;
    --accent: #9bc2af;
    --accent-alt: #94aecb;
    --accent-strong: #dbe6de;
    --accent-soft: rgba(155, 194, 175, 0.14);
    --accent-alt-soft: rgba(148, 174, 203, 0.16);
    --shadow-soft: 0 20px 50px rgba(1, 6, 10, 0.24);
    --shadow-strong: 0 28px 72px rgba(1, 6, 10, 0.32);
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 30px;
    --radius-xl: 38px;
    --site-width: min(1320px, calc(100% - clamp(2rem, 6vw, 5rem)));
    --section-space: clamp(4.75rem, 8vw, 7.5rem);
    --section-space-tight: clamp(2rem, 4vw, 3rem);
    --grid-gap: clamp(1rem, 2vw, 1.75rem);
    --header-height: 74px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(155, 194, 175, 0.16), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(148, 174, 203, 0.14), transparent 21%),
        radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.03), transparent 30%),
        linear-gradient(145deg, #0f171d 0%, #091015 44%, #060b0f 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background:
        radial-gradient(circle at 10% 12%, rgba(155, 194, 175, 0.08), transparent 18%),
        radial-gradient(circle at 84% 16%, rgba(148, 174, 203, 0.07), transparent 16%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.04), transparent 24%);
    z-index: -2;
}

body::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 88px 88px, 88px 88px, 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 76%);
    opacity: 0.16;
    z-index: -1;
}

@keyframes drift-glow {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(1.5%, -2.5%, 0) scale(1.05);
    }
}

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

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

button,
input,
textarea {
    font: inherit;
}

::selection {
    background: rgba(155, 194, 175, 0.28);
    color: #ffffff;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 80;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #07100c;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(18px);
    background: rgba(9, 14, 18, 0.76);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(1, 6, 10, 0.14);
}

.nav-shell {
    width: var(--site-width);
    margin: 0 auto;
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.96rem;
    letter-spacing: -0.02em;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 0.81rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 1.6vw, 1.4rem);
}

.site-nav a {
    position: relative;
    padding: 0.3rem 0;
    color: var(--muted);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.45rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: scaleX(0.65);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.current {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.current::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.72rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(155, 194, 175, 0.18);
    background: rgba(155, 194, 175, 0.08);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
    transform: translateY(-1px);
    background: rgba(155, 194, 175, 0.12);
    border-color: rgba(155, 194, 175, 0.24);
}

main section[id] {
    scroll-margin-top: calc(var(--header-height) + 1.4rem);
}

.page-section {
    position: relative;
    overflow: clip;
    padding-block: var(--section-space);
}

.page-section--hero {
    padding-top: calc(var(--header-height) + clamp(3rem, 6vw, 5rem));
    padding-bottom: clamp(2.5rem, 4vw, 3.4rem);
}

.page-section--strengths {
    padding-top: 0;
}

.page-section--experience {
    background:
        radial-gradient(circle at 88% 18%, rgba(148, 174, 203, 0.09), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
        linear-gradient(180deg, rgba(9, 14, 18, 0.84), rgba(7, 12, 16, 0.98));
}

.page-section--projects {
    background:
        radial-gradient(circle at top left, rgba(155, 194, 175, 0.12), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(148, 174, 203, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(16, 24, 30, 0.96), rgba(9, 14, 18, 0.98));
    border-top: 1px solid rgba(214, 226, 220, 0.08);
    border-bottom: 1px solid rgba(214, 226, 220, 0.08);
}

.page-section--skills {
    background:
        radial-gradient(circle at 8% 18%, rgba(155, 194, 175, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(9, 14, 18, 0.96));
}

.page-section--contact {
    padding-bottom: clamp(4.5rem, 7vw, 6rem);
}

.section-inner,
.footer-shell {
    width: var(--site-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-section[data-section-mark] .section-inner::before {
    content: attr(data-section-mark);
    position: absolute;
    top: -0.65rem;
    right: clamp(0rem, 1vw, 0.5rem);
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 14vw, 9.5rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: rgba(255, 255, 255, 0.02);
    -webkit-text-stroke: 1px rgba(214, 226, 220, 0.08);
    pointer-events: none;
    z-index: 0;
}

.page-section[data-section-mark] .section-inner::after {
    content: "";
    position: absolute;
    top: 2rem;
    right: clamp(0rem, 1vw, 0.5rem);
    width: clamp(8rem, 18vw, 14rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(214, 226, 220, 0.2), transparent);
    pointer-events: none;
    z-index: 0;
}

.page-section[data-section-mark] .section-heading,
.page-section[data-section-mark] .strengths-heading {
    position: relative;
    padding-right: clamp(7rem, 16vw, 11rem);
}

.page-section--experience::before,
.page-section--projects::before,
.page-section--skills::before,
.page-section--contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1120px, calc(100% - 2rem));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(214, 226, 220, 0.2), transparent);
}

.page-section--experience::after,
.page-section--projects::after,
.page-section--skills::after {
    content: "";
    position: absolute;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(18px);
    opacity: 0.55;
    animation: drift-glow 18s ease-in-out infinite alternate;
}

.page-section--experience::after {
    top: 5rem;
    right: -8rem;
    background: radial-gradient(circle, rgba(148, 174, 203, 0.16), transparent 68%);
}

.page-section--projects::after {
    top: 6rem;
    left: -8rem;
    background: radial-gradient(circle, rgba(155, 194, 175, 0.16), transparent 68%);
}

.page-section--skills::after {
    top: 3rem;
    right: -7rem;
    background: radial-gradient(circle, rgba(148, 174, 203, 0.14), transparent 68%);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: start;
}

.hero-grid {
    position: relative;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 1.85rem);
}

.hero-grid::before {
    content: "";
    position: absolute;
    inset: -1.6rem -1rem -1.1rem;
    border-radius: 42px;
    border: 1px solid rgba(214, 226, 220, 0.07);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 24px 64px rgba(1, 6, 10, 0.18);
    z-index: 0;
}

.hero-grid::after {
    content: "";
    position: absolute;
    left: -4%;
    top: 1.5rem;
    width: min(24rem, 40vw);
    height: min(24rem, 40vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 194, 175, 0.18), transparent 70%);
    filter: blur(20px);
    opacity: 0.75;
    z-index: 0;
    animation: drift-glow 16s ease-in-out infinite alternate;
}

.section-label,
.card-label,
.facts-label,
.mini-stat-label,
.showcase-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.hero-copy,
.hero-panel {
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.section-label::after {
    content: "";
    width: clamp(2.4rem, 5vw, 3.5rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(155, 194, 175, 0.7), transparent);
}

.hero-title,
.section-title,
.card-title,
.contact-title {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.05em;
    line-height: 1.04;
    color: var(--text);
}

.hero-title {
    margin-top: 1rem;
    max-width: 12.5ch;
    font-size: clamp(2.9rem, 5.9vw, 5.1rem);
    line-height: 1;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.hero-lead {
    margin: 1.05rem 0 0;
    max-width: 34rem;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.65;
}

.hero-summary,
.section-intro,
.section-text,
.card-copy,
.contact-copy,
.showcase-footer p,
.skill-line span,
.education-meta,
.experience-subhead {
    color: var(--muted);
}

.hero-summary {
    margin: 1.15rem 0 0;
    max-width: 32rem;
    font-size: 0.98rem;
    line-height: 1.75;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.7rem;
    max-width: 46rem;
}

.hero-metric {
    position: relative;
    display: grid;
    gap: 0.32rem;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid rgba(214, 226, 220, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 56%),
        linear-gradient(180deg, rgba(13, 20, 27, 0.95), rgba(9, 14, 19, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 40px rgba(1, 6, 10, 0.16);
}

.hero-metric::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    opacity: 0.7;
}

.hero-metric:nth-child(2)::before {
    background: linear-gradient(90deg, var(--accent-alt), var(--accent));
}

.hero-metric small {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-metric strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.hero-metric span {
    color: var(--muted-strong);
    font-size: 0.84rem;
    line-height: 1.55;
}

.section-heading {
    display: grid;
    gap: 0.9rem;
    max-width: 45rem;
    margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

.section-title {
    font-size: clamp(2.35rem, 5vw, 3.55rem);
}

.section-title--compact {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-intro,
.section-text,
.card-copy,
.contact-copy {
    margin: 0;
    line-height: 1.8;
}

.panel,
.contact-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%),
        linear-gradient(180deg, rgba(18, 27, 34, 0.94) 0%, rgba(12, 18, 24, 0.98) 100%);
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease;
}

.panel::before,
.contact-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 22%),
        linear-gradient(315deg, rgba(148, 174, 203, 0.06), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.panel > *,
.contact-panel > * {
    position: relative;
    z-index: 1;
}

.panel--primary {
    padding: clamp(1.35rem, 2.6vw, 1.75rem);
}

.panel--compact {
    padding: 1.05rem 1.15rem;
    border-radius: var(--radius-md);
}

.panel--featured {
    padding: clamp(1.15rem, 2vw, 1.45rem);
    border-radius: var(--radius-xl);
}

.card-title {
    font-size: 1.18rem;
}

.strength-card .card-title {
    font-size: 1.14rem;
    line-height: 1.2;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.88rem 1.28rem;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #dbe6de 0%, #9bc2af 58%, #89afbd 100%);
    color: #08110d;
    box-shadow: 0 16px 36px rgba(155, 194, 175, 0.18);
}

.btn-secondary {
    background:
        linear-gradient(135deg, rgba(148, 174, 203, 0.08), transparent 48%),
        rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.proof-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.15rem;
}

.proof-pill,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.48rem 0.76rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 60%),
        rgba(255, 255, 255, 0.035);
    color: var(--muted-strong);
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.proof-pill:nth-child(even),
.tag:nth-child(even) {
    border-color: rgba(148, 174, 203, 0.18);
}

.hero-copy {
    grid-column: span 7;
    max-width: 46rem;
}

.hero-panel {
    grid-column: span 5;
    display: grid;
    gap: 1rem;
    align-self: start;
    background:
        linear-gradient(135deg, rgba(148, 174, 203, 0.09), transparent 32%),
        linear-gradient(180deg, rgba(18, 27, 34, 0.96) 0%, rgba(10, 16, 22, 0.99) 100%);
    box-shadow: var(--shadow-strong);
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    top: -3rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 194, 175, 0.14), transparent 70%);
    filter: blur(12px);
    pointer-events: none;
}

.hero-portrait {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 4px);
    border: 1px solid rgba(214, 226, 220, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero-portrait img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    object-position: center 18%;
    transition: transform 0.45s ease;
}

.facts-list,
.bullet-list,
.plain-list,
.tag-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.facts-list {
    display: grid;
    gap: 0.75rem;
}

.facts-list li {
    display: grid;
    gap: 0.18rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(214, 226, 220, 0.1);
}

.facts-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.facts-list strong,
.mini-stat strong {
    color: var(--text);
}

.focus-card {
    display: grid;
    gap: 0.55rem;
    background:
        linear-gradient(135deg, rgba(155, 194, 175, 0.12), transparent 48%),
        rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

.mini-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.mini-stat {
    display: grid;
    gap: 0.24rem;
    background:
        linear-gradient(135deg, rgba(148, 174, 203, 0.08), transparent 52%),
        rgba(255, 255, 255, 0.025);
    box-shadow: none;
}

.strengths-heading {
    margin-bottom: 0.9rem;
}

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

.strength-card {
    display: grid;
    gap: 0.55rem;
    min-height: 100%;
}

.strength-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.15rem;
    right: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    opacity: 0.6;
}

.strength-card:nth-child(even) {
    margin-top: clamp(0.8rem, 1.6vw, 1.15rem);
}

.strength-card:nth-child(even)::after {
    background: linear-gradient(90deg, var(--accent-alt), var(--accent));
}

.section-text + .section-text {
    margin-top: 0.2rem;
}

.bullet-list {
    display: grid;
    gap: 0.72rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-soft);
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78rem;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 999px;
    background: var(--accent);
}

.plain-list--spaced {
    display: grid;
    gap: 0.52rem;
    color: var(--muted-strong);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

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

.experience-list {
    display: grid;
    gap: 1.25rem;
}

.experience-entry {
    display: grid;
    grid-template-columns: minmax(92px, 114px) minmax(0, 1fr);
    gap: clamp(0.95rem, 1.8vw, 1.4rem);
    align-items: start;
}

.experience-marker {
    position: relative;
    display: flex;
    justify-content: flex-end;
    min-height: 100%;
    padding-top: 0.15rem;
    padding-right: 1.25rem;
}

.experience-marker::before {
    content: "";
    position: absolute;
    top: 0.92rem;
    right: 0.12rem;
    width: 0.84rem;
    height: 0.84rem;
    border-radius: 999px;
    background: var(--bg);
    box-shadow:
        0 0 0 1px rgba(155, 194, 175, 0.22),
        inset 0 0 0 0.18rem rgba(155, 194, 175, 0.16);
}

.experience-marker::after {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: -1.65rem;
    right: 0.52rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(155, 194, 175, 0.42), rgba(155, 194, 175, 0.06));
}

.experience-entry:last-child .experience-marker::after {
    display: none;
}

.experience-card {
    display: grid;
    gap: 1rem;
    background:
        linear-gradient(90deg, rgba(155, 194, 175, 0.08), transparent 14%),
        linear-gradient(180deg, rgba(18, 27, 34, 0.94) 0%, rgba(12, 18, 24, 0.98) 100%);
}

.experience-entry:nth-child(even) .experience-card {
    background:
        linear-gradient(90deg, rgba(148, 174, 203, 0.1), transparent 14%),
        linear-gradient(180deg, rgba(18, 27, 34, 0.94) 0%, rgba(12, 18, 24, 0.98) 100%);
}

.experience-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(155, 194, 175, 0.16);
    background:
        linear-gradient(135deg, rgba(148, 174, 203, 0.1), transparent 62%),
        rgba(155, 194, 175, 0.08);
    color: var(--accent-strong);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.experience-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.experience-head h3,
.project-feature-copy .card-title,
.project-card .card-title,
.education-head .section-title,
.contact-title {
    color: var(--text);
}

.experience-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.36rem;
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.project-feature-copy .card-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.06;
}

.project-card .card-title {
    font-size: 1.32rem;
    line-height: 1.16;
}

.experience-head h3 span {
    display: block;
    margin-top: 0.18rem;
    color: var(--muted-strong);
    font-family: var(--font-body);
    font-size: 0.88em;
    font-weight: 600;
    letter-spacing: 0;
}

.experience-subhead {
    margin: 0.45rem 0 0;
}

.date-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(155, 194, 175, 0.16);
    background:
        linear-gradient(135deg, rgba(148, 174, 203, 0.1), transparent 62%),
        rgba(155, 194, 175, 0.08);
    color: var(--accent-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    min-height: 0;
    padding: 0.42rem 0.66rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tag-list--quiet .tag {
    color: var(--muted-strong);
}

.project-feature {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.2rem, 2vw, 1.6rem);
    align-items: start;
}

.project-feature-media {
    grid-column: span 7;
}

.project-feature-copy {
    grid-column: span 5;
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 0.3rem 0;
}

.project-showcase {
    display: grid;
    gap: 1rem;
    min-height: 100%;
    padding: 1.1rem;
    border-radius: calc(var(--radius-lg) - 2px);
    border: 1px solid rgba(155, 194, 175, 0.16);
    background:
        radial-gradient(circle at top left, rgba(155, 194, 175, 0.14), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(148, 174, 203, 0.1), transparent 22%),
        linear-gradient(180deg, rgba(14, 22, 28, 0.98), rgba(10, 16, 21, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 60px rgba(1, 6, 10, 0.22);
}

.project-showcase--image {
    place-items: center;
    padding: 1rem;
}

.project-showcase--image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 8px);
    object-fit: contain;
}

.showcase-topbar {
    display: flex;
    gap: 0.45rem;
}

.showcase-topbar span {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(219, 239, 229, 0.22);
}

.showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(124px, 0.58fr) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
}

.showcase-card,
.showcase-flow {
    border-radius: 22px;
    border: 1px solid var(--border);
}

.showcase-card {
    display: grid;
    gap: 0.65rem;
    min-height: 100%;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 65%),
        rgba(255, 255, 255, 0.03);
}

.showcase-card strong,
.mini-diagram-block,
.mini-diagram-arrow {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.showcase-card--accent,
.showcase-flow {
    background: linear-gradient(180deg, rgba(155, 194, 175, 0.12), rgba(255, 255, 255, 0.03));
}

.showcase-flow {
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
}

.showcase-flow span {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.showcase-flow small {
    color: var(--muted);
}

.showcase-table,
.mini-diagram-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.showcase-table span,
.mini-diagram-grid span {
    padding: 0.45rem 0.56rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.82rem;
}

.showcase-footer {
    display: grid;
    gap: 0.8rem;
}

.project-grid,
.skills-grid,
.education-highlights {
    display: grid;
    gap: 1rem;
}

.project-grid,
.skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid {
    margin-top: 1rem;
}

.project-card {
    display: grid;
    gap: 1rem;
    min-height: 100%;
}

.project-card::after,
.skill-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    opacity: 0.7;
}

.project-card:nth-child(even)::after,
.skill-card:nth-child(even)::after {
    background: linear-gradient(90deg, var(--accent-alt), var(--accent));
}

.project-card:nth-child(even) {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.project-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(214, 226, 220, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.project-thumb--light {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(233, 238, 236, 0.96), rgba(205, 214, 209, 0.92));
}

.project-thumb--light img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.38s ease;
}

.project-thumb--diagram {
    display: grid;
    gap: 1rem;
    align-content: center;
    padding: 1.15rem;
    background:
        radial-gradient(circle at top left, rgba(155, 194, 175, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(14, 22, 28, 0.96), rgba(10, 16, 21, 0.98));
}

.mini-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.7rem;
    align-items: center;
}

.mini-diagram-block {
    display: grid;
    place-items: center;
    min-height: 4.25rem;
    padding: 0.9rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.mini-diagram-arrow {
    color: var(--accent-strong);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-card-body,
.skill-card {
    display: grid;
    gap: 0.9rem;
}

.skill-card:nth-child(odd) {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-note {
    margin: -0.15rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.project-note__value {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 226, 220, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.project-links a,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 600;
}

.project-links a::after,
.text-link::after {
    content: "->";
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.skill-lines {
    display: grid;
    gap: 0.85rem;
}

.skill-line {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(214, 226, 220, 0.1);
}

.skill-line:first-child {
    padding-top: 0;
    border-top: 0;
}

.skill-line strong {
    color: var(--text);
}

.education-main {
    grid-column: span 7;
    display: grid;
    gap: 1.1rem;
}

.education-side {
    grid-column: span 5;
    display: grid;
    gap: 1rem;
}

.education-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.education-meta {
    margin: 0.45rem 0 0;
}

.education-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-panel {
    grid-column: span 7;
    display: grid;
    gap: 1rem;
    padding: clamp(1.6rem, 3vw, 2.15rem);
    border-radius: 32px;
    border: 1px solid rgba(155, 194, 175, 0.18);
    background:
        radial-gradient(circle at top left, rgba(155, 194, 175, 0.18), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(148, 174, 203, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(19, 28, 35, 0.96), rgba(11, 17, 24, 0.98));
    box-shadow: var(--shadow-strong);
}

.contact-panel::after {
    content: "";
    position: absolute;
    inset: auto -8rem -10rem auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148, 174, 203, 0.14), transparent 68%);
    pointer-events: none;
    filter: blur(16px);
}

.contact-title {
    max-width: 13ch;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.contact-copy {
    max-width: 38rem;
    color: var(--muted-strong);
}

.contact-side {
    grid-column: span 5;
    display: grid;
    gap: 1rem;
}

.contact-side .panel:nth-child(even) {
    margin-left: clamp(0.6rem, 1.6vw, 1.25rem);
}

.site-footer {
    padding: 1.2rem 0 2rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0));
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-shell p {
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
}

@media (hover: hover) {
    .panel:hover,
    .contact-panel:hover,
    .project-showcase:hover {
        transform: translateY(-4px);
        border-color: rgba(214, 226, 220, 0.18);
        box-shadow: 0 30px 68px rgba(1, 6, 10, 0.28);
    }

    .btn:hover,
    .btn:focus-visible,
    .header-cta:hover,
    .header-cta:focus-visible {
        box-shadow: 0 14px 32px rgba(1, 6, 10, 0.18);
    }

    .hero-panel:hover .hero-portrait img,
    .project-card:hover .project-thumb--light img {
        transform: scale(1.03);
    }
}

@media (max-width: 1100px) {
    .section-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .hero-copy,
    .hero-panel,
    .education-main,
    .education-side,
    .contact-panel,
    .contact-side {
        grid-column: span 8;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
        align-items: center;
    }

    .hero-copy,
    .hero-panel {
        grid-column: auto;
    }

    .hero-copy {
        max-width: 38rem;
    }

    .hero-panel {
        width: 100%;
        max-width: 31rem;
        justify-self: end;
    }

    .hero-title {
        max-width: 10.5ch;
        font-size: clamp(2.7rem, 5vw, 4.3rem);
    }

    .page-section[data-section-mark] .section-heading,
    .page-section[data-section-mark] .strengths-heading {
        padding-right: clamp(5.5rem, 14vw, 8rem);
    }

    .hero-grid::before {
        inset: -1.2rem -0.8rem -0.8rem;
    }

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

    .experience-entry {
        grid-template-columns: minmax(82px, 96px) minmax(0, 1fr);
        gap: 0.95rem;
    }

    .project-feature {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .project-feature-media,
    .project-feature-copy {
        grid-column: span 8;
    }
}

@media (max-width: 860px) {
    .header-cta {
        display: none;
    }

    .nav-shell {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 1.1rem;
        border-radius: 24px;
        border: 1px solid var(--border);
        background: rgba(9, 14, 18, 0.96);
        box-shadow: var(--shadow-strong);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .site-nav a::after {
        bottom: -0.2rem;
    }

    .hero-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        align-items: start;
    }

    .hero-grid::before {
        inset: -0.9rem -0.6rem -0.6rem;
        border-radius: 32px;
    }

    .hero-copy,
    .hero-panel {
        grid-column: span 8;
        max-width: none;
    }

    .hero-panel {
        justify-self: stretch;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .mini-stat-row,
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --site-width: min(100% - 24px, 1320px);
    }

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

    .hero-copy,
    .hero-panel,
    .education-main,
    .education-side,
    .contact-panel,
    .contact-side {
        grid-column: span 4;
    }

    .page-section {
        padding-block: clamp(4rem, 12vw, 5.25rem);
    }

    .page-section--hero {
        padding-top: calc(var(--header-height) + 2.6rem);
        padding-bottom: 2.25rem;
    }

    .hero-title {
        max-width: 11ch;
        font-size: clamp(2.55rem, 11vw, 3.6rem);
    }

    .page-section[data-section-mark] .section-inner::before,
    .page-section[data-section-mark] .section-inner::after {
        display: none;
    }

    .page-section[data-section-mark] .section-heading,
    .page-section[data-section-mark] .strengths-heading {
        padding-right: 0;
    }

    .hero-grid::before,
    .hero-grid::after,
    .page-section--experience::after,
    .page-section--projects::after,
    .page-section--skills::after {
        display: none;
    }

    .strength-card:nth-child(even),
    .project-card:nth-child(even),
    .skill-card:nth-child(odd),
    .contact-side .panel:nth-child(even) {
        margin-top: 0;
        margin-left: 0;
    }

    .section-title,
    .section-title--compact,
    .contact-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .strengths-grid,
    .project-grid,
    .skills-grid,
    .education-highlights {
        grid-template-columns: 1fr;
    }

    .action-row,
    .project-links,
    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-row .btn {
        width: 100%;
    }

    .experience-entry {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .experience-marker,
    .experience-card {
        grid-column: auto;
    }

    .experience-marker {
        justify-content: flex-start;
        padding-top: 0;
        padding-right: 0;
    }

    .experience-marker::before,
    .experience-marker::after {
        display: none;
    }

    .contact-title {
        max-width: none;
    }

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

    .project-feature-media,
    .project-feature-copy {
        grid-column: span 4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-section--experience::after,
    .page-section--projects::after,
    .page-section--skills::after,
    .hero-grid::after {
        animation: none;
    }

    .panel,
    .contact-panel,
    .project-showcase,
    .btn,
    .header-cta,
    .hero-portrait img,
    .project-thumb--light img {
        transition: none;
    }
}

.project-links a,
.text-link {
    padding-bottom: 0.08rem;
    border-bottom: 1px solid rgba(219, 230, 222, 0.46);
    color: #e8f1eb;
    font-weight: 700;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.project-links a:hover,
.project-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    color: #ffffff;
    border-color: currentColor;
    transform: translateY(-1px);
}

.project-links a:focus-visible,
.text-link:focus-visible {
    outline: 2px solid rgba(155, 194, 175, 0.5);
    outline-offset: 3px;
}

/* ====================================================
   Visual enhancements
   ==================================================== */

/* Gradient hero title */
.hero-title {
    background: linear-gradient(140deg, var(--text) 0%, var(--text-soft) 38%, var(--accent-strong) 72%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Gradient value text in hero metric cards */
.hero-metric strong {
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-strong) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typewriter cursor */
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.typewriter-cursor {
    display: inline-block;
    width: 1.5px;
    height: 0.82em;
    background: var(--accent);
    margin-left: 1px;
    vertical-align: middle;
    border-radius: 1px;
    animation: cursor-blink 0.75s ease-in-out infinite;
}

/* Shimmer sweep on card top accent lines */
@keyframes accent-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

.strength-card::after,
.project-card::after,
.skill-card::after {
    background: linear-gradient(
        90deg,
        var(--accent)       0%,
        var(--accent-alt)   30%,
        var(--accent-strong) 50%,
        var(--accent-alt)   70%,
        var(--accent)       100%
    );
    background-size: 300% 100%;
    animation: accent-shimmer 7s linear infinite;
    opacity: 0.9;
}

/* Teal glow on card hover (extends the existing hover block) */
@media (hover: hover) {
    .panel:hover,
    .contact-panel:hover,
    .project-showcase:hover {
        box-shadow:
            0 30px 68px rgba(1, 6, 10, 0.28),
            0 0 0 1px rgba(155, 194, 175, 0.12),
            0 0 32px rgba(155, 194, 175, 0.08);
    }
}

/* Strength card icon badge */
.strength-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.35rem;
    border-radius: 14px;
    border: 1px solid rgba(155, 194, 175, 0.2);
    background: linear-gradient(135deg, rgba(155, 194, 175, 0.16), rgba(148, 174, 203, 0.1));
    color: var(--accent-strong);
    flex-shrink: 0;
}

.strength-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

/* Skill proficiency dots */
.skill-level-dots {
    display: flex;
    gap: 0.4rem;
    margin: 0.3rem 0 0.6rem;
}

.skill-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    transition: box-shadow 0.3s ease;
}

.skill-dot--filled {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    box-shadow: 0 0 5px rgba(155, 194, 175, 0.3);
}

.skill-dot--empty {
    border: 1px solid rgba(214, 226, 220, 0.22);
    background: rgba(214, 226, 220, 0.05);
}

/* Visitor counter */
.visitor-card {
    display: grid;
    gap: 0.1rem;
}

.visitor-counter__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.visitor-counter__value {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visitor-counter__status {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.82rem;
}

/* Slightly livelier hero background pulse */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.75; transform: translate3d(0, 0, 0) scale(1);    }
    50%       { opacity: 1;    transform: translate3d(0, -1%, 0) scale(1.04); }
}

.hero-grid::after {
    animation: pulse-glow 12s ease-in-out infinite;
}

/* ============================================
   Fun enhancements – more colour, more bounce
   ============================================ */

:root {
    --fun-purple: #a78bfa;
    --fun-pink:   #f472b6;
    --fun-orange: #fb923c;
    --fun-yellow: #fbbf24;
    --fun-cyan:   #22d3ee;
    --fun-coral:  #ff6b6b;
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fun-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

@keyframes fun-pulse-dot {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%       { opacity: 0.55; transform: scale(0.78); }
}

@keyframes fun-shimmer-rainbow {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* ── Hero title – rainbow shimmer instead of plain teal ─ */
.hero-title {
    background: linear-gradient(
        130deg,
        var(--text)          0%,
        var(--accent-strong) 22%,
        var(--fun-cyan)      38%,
        var(--fun-purple)    56%,
        var(--fun-pink)      72%,
        var(--fun-orange)    88%,
        var(--accent-strong) 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: fun-shimmer-rainbow 10s ease infinite;
}

/* ── More vivid body background ─────────────────────── */
body {
    background:
        radial-gradient(circle at 12%  0%,  rgba(155, 194, 175, 0.22), transparent 28%),
        radial-gradient(circle at 88%  12%, rgba(167, 139, 250, 0.14), transparent 22%),
        radial-gradient(circle at 52%  48%, rgba(244, 114, 182, 0.07), transparent 28%),
        radial-gradient(circle at 76%  84%, rgba(251, 146,  60, 0.06), transparent 20%),
        linear-gradient(145deg, #0f171d 0%, #091015 44%, #060b0f 100%);
}

/* ── Section accent glows – more vivid colours ──────── */
.page-section--experience {
    background:
        radial-gradient(circle at 88% 18%, rgba(167, 139, 250, 0.12), transparent 26%),
        radial-gradient(circle at 12% 74%, rgba(244, 114, 182, 0.07), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
        linear-gradient(180deg, rgba(9, 14, 18, 0.84), rgba(7, 12, 16, 0.98));
}

.page-section--projects {
    background:
        radial-gradient(circle at top left, rgba(155, 194, 175, 0.14), transparent 30%),
        radial-gradient(circle at 88%  84%, rgba(167, 139, 250, 0.11), transparent 24%),
        radial-gradient(circle at 50%  42%, rgba(244, 114, 182, 0.07), transparent 22%),
        linear-gradient(180deg, rgba(16, 24, 30, 0.96), rgba(9, 14, 18, 0.98));
    border-top: 1px solid rgba(214, 226, 220, 0.08);
    border-bottom: 1px solid rgba(214, 226, 220, 0.08);
}

.page-section--skills {
    background:
        radial-gradient(circle at 8%  18%, rgba(251, 146,  60, 0.09), transparent 24%),
        radial-gradient(circle at 92% 78%, rgba(167, 139, 250, 0.08), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(9, 14, 18, 0.96));
}

.page-section--experience::after {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 68%);
}

.page-section--projects::after {
    background: radial-gradient(circle, rgba(244, 114, 182, 0.20), transparent 68%);
}

.page-section--skills::after {
    background: radial-gradient(circle, rgba(251, 146, 60, 0.18), transparent 68%);
}

/* ── Per-card coloured accent lines (override shimmer) ─ */
.strength-card:nth-child(1)::after { background: linear-gradient(90deg, var(--accent),      var(--fun-cyan));   background-size: 100%; animation: none; opacity: 0.85; }
.strength-card:nth-child(2)::after { background: linear-gradient(90deg, var(--fun-purple),  var(--fun-pink));   background-size: 100%; animation: none; opacity: 0.85; }
.strength-card:nth-child(3)::after { background: linear-gradient(90deg, var(--fun-pink),    var(--fun-orange)); background-size: 100%; animation: none; opacity: 0.85; }
.strength-card:nth-child(4)::after { background: linear-gradient(90deg, var(--fun-orange),  var(--fun-yellow)); background-size: 100%; animation: none; opacity: 0.85; }

.project-card:nth-child(1)::after { background: linear-gradient(90deg, var(--accent),     var(--fun-cyan));   background-size: 100%; animation: none; opacity: 0.85; }
.project-card:nth-child(2)::after { background: linear-gradient(90deg, var(--fun-purple), var(--accent-alt)); background-size: 100%; animation: none; opacity: 0.85; }
.project-card:nth-child(3)::after { background: linear-gradient(90deg, var(--fun-pink),   var(--fun-purple)); background-size: 100%; animation: none; opacity: 0.85; }
.project-card:nth-child(4)::after { background: linear-gradient(90deg, var(--fun-orange), var(--fun-yellow)); background-size: 100%; animation: none; opacity: 0.85; }

/* ── Per-card coloured icon badges ──────────────────── */
.strength-card:nth-child(1) .strength-icon { border-color: rgba(155, 194, 175, 0.32); background: linear-gradient(135deg, rgba(155, 194, 175, 0.2), rgba( 34, 211, 238, 0.12)); color: var(--fun-cyan); }
.strength-card:nth-child(2) .strength-icon { border-color: rgba(167, 139, 250, 0.32); background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(244, 114, 182, 0.10)); color: var(--fun-purple); }
.strength-card:nth-child(3) .strength-icon { border-color: rgba(244, 114, 182, 0.32); background: linear-gradient(135deg, rgba(244, 114, 182, 0.2), rgba(251, 146,  60, 0.10)); color: var(--fun-pink); }
.strength-card:nth-child(4) .strength-icon { border-color: rgba(251, 146,  60, 0.32); background: linear-gradient(135deg, rgba(251, 146,  60, 0.2), rgba(251, 191,  36, 0.10)); color: var(--fun-orange); }

/* ── Hero metric accent lines – per-card colours ────── */
.hero-metric:nth-child(1)::before { background: linear-gradient(90deg, var(--accent),     var(--fun-cyan));   opacity: 0.85; }
.hero-metric:nth-child(2)::before { background: linear-gradient(90deg, var(--fun-purple), var(--fun-pink));   opacity: 0.85; }
.hero-metric:nth-child(3)::before { background: linear-gradient(90deg, var(--fun-orange), var(--fun-yellow)); opacity: 0.85; }

/* ── Proof pills – each one a different colour ───────── */
.proof-pill:nth-child(1) { border-color: rgba(155, 194, 175, 0.38); color: var(--accent-strong); background: linear-gradient(135deg, rgba(155, 194, 175, 0.1), transparent 60%), rgba(255,255,255,0.03); }
.proof-pill:nth-child(2) { border-color: rgba(167, 139, 250, 0.34); color: var(--fun-purple);    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), transparent 60%), rgba(255,255,255,0.03); }
.proof-pill:nth-child(3) { border-color: rgba(251, 146,  60, 0.30); color: var(--fun-orange);    background: linear-gradient(135deg, rgba(251, 146,  60, 0.1), transparent 60%), rgba(255,255,255,0.03); }

/* ── Experience year chips – per-entry colours ───────── */
.experience-entry:nth-child(2) .experience-year {
    border-color: rgba(167, 139, 250, 0.28);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.14), transparent 62%), rgba(255,255,255,0.02);
    color: var(--fun-purple);
}
.experience-entry:nth-child(3) .experience-year {
    border-color: rgba(251, 146, 60, 0.28);
    background: linear-gradient(135deg, rgba(251, 146,  60, 0.14), transparent 62%), rgba(255,255,255,0.02);
    color: var(--fun-orange);
}

/* ── macOS traffic-light dots in showcase topbar ─────── */
.showcase-topbar span:nth-child(1) { background: #ff5f57; }
.showcase-topbar span:nth-child(2) { background: #febc2e; }
.showcase-topbar span:nth-child(3) { background: #28c840; }

/* ── Pulsing dot before section labels ───────────────── */
.section-label::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
    animation: fun-pulse-dot 2.2s ease-in-out infinite;
}

/* ── Hover: per-card coloured glows + icon float ─────── */
@media (hover: hover) {
    /* Strength cards – each card gets its own colour glow */
    .strength-card:nth-child(1):hover { transform: translateY(-5px); border-color: rgba(155, 194, 175, 0.38); box-shadow: 0 24px 52px rgba(155, 194, 175, 0.18), 0 0 0 1px rgba(155, 194, 175, 0.14); }
    .strength-card:nth-child(2):hover { transform: translateY(-5px); border-color: rgba(167, 139, 250, 0.38); box-shadow: 0 24px 52px rgba(167, 139, 250, 0.18), 0 0 0 1px rgba(167, 139, 250, 0.14); }
    .strength-card:nth-child(3):hover { transform: translateY(-5px); border-color: rgba(244, 114, 182, 0.38); box-shadow: 0 24px 52px rgba(244, 114, 182, 0.18), 0 0 0 1px rgba(244, 114, 182, 0.14); }
    .strength-card:nth-child(4):hover { transform: translateY(-5px); border-color: rgba(251, 146,  60, 0.38); box-shadow: 0 24px 52px rgba(251, 146,  60, 0.18), 0 0 0 1px rgba(251, 146,  60, 0.14); }

    /* Project cards */
    .project-card:nth-child(1):hover { border-color: rgba(155, 194, 175, 0.3); box-shadow: 0 28px 60px rgba(155, 194, 175, 0.14); }
    .project-card:nth-child(2):hover { border-color: rgba(167, 139, 250, 0.3); box-shadow: 0 28px 60px rgba(167, 139, 250, 0.14); }
    .project-card:nth-child(3):hover { border-color: rgba(244, 114, 182, 0.3); box-shadow: 0 28px 60px rgba(244, 114, 182, 0.14); }
    .project-card:nth-child(4):hover { border-color: rgba(251, 146,  60, 0.3); box-shadow: 0 28px 60px rgba(251, 146,  60, 0.14); }

    /* Icons float up when you hover the card */
    .strength-card:hover .strength-icon svg {
        animation: fun-float 1.4s ease-in-out infinite;
    }

    /* More bounce on buttons */
    .btn:hover,
    .btn:focus-visible {
        transform: translateY(-3px) scale(1.03);
    }

    .btn-primary:hover,
    .btn-primary:focus-visible {
        background: linear-gradient(135deg, #dbe6de 0%, #9bc2af 30%, #a78bfa 65%, #f472b6 100%);
        box-shadow: 0 18px 44px rgba(155, 194, 175, 0.32);
    }

    .btn-secondary:hover,
    .btn-secondary:focus-visible {
        border-color: rgba(167, 139, 250, 0.36);
        box-shadow: 0 14px 36px rgba(167, 139, 250, 0.12);
    }
}

/* ── Skill card accent lines – per-card colours ─────── */
.skill-card:nth-child(1)::after { background: linear-gradient(90deg, var(--accent),     var(--fun-cyan));   background-size: 100%; animation: none; opacity: 0.85; }
.skill-card:nth-child(2)::after { background: linear-gradient(90deg, var(--fun-purple), var(--accent-alt)); background-size: 100%; animation: none; opacity: 0.85; }
.skill-card:nth-child(3)::after { background: linear-gradient(90deg, var(--fun-pink),   var(--fun-purple)); background-size: 100%; animation: none; opacity: 0.85; }
.skill-card:nth-child(4)::after { background: linear-gradient(90deg, var(--fun-orange), var(--fun-yellow)); background-size: 100%; animation: none; opacity: 0.85; }

/* ── Skill proficiency dots – per-card colours ──────── */
.skill-card:nth-child(1) .skill-dot--filled { background: linear-gradient(135deg, var(--accent),     var(--fun-cyan));   box-shadow: 0 0 6px rgba( 34, 211, 238, 0.38); }
.skill-card:nth-child(2) .skill-dot--filled { background: linear-gradient(135deg, var(--fun-purple), var(--fun-pink));   box-shadow: 0 0 6px rgba(167, 139, 250, 0.38); }
.skill-card:nth-child(3) .skill-dot--filled { background: linear-gradient(135deg, var(--fun-pink),   var(--fun-orange)); box-shadow: 0 0 6px rgba(244, 114, 182, 0.38); }
.skill-card:nth-child(4) .skill-dot--filled { background: linear-gradient(135deg, var(--fun-orange), var(--fun-yellow)); box-shadow: 0 0 6px rgba(251, 146,  60, 0.38); }

/* ── Tags – cycle through 4 accent colours ──────────── */
.tag:nth-child(4n+1) { color: var(--accent-strong); border-color: rgba(155, 194, 175, 0.30); background: linear-gradient(135deg, rgba(155, 194, 175, 0.08), transparent 60%), rgba(255,255,255,0.02); }
.tag:nth-child(4n+2) { color: var(--fun-purple);    border-color: rgba(167, 139, 250, 0.26); background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), transparent 60%), rgba(255,255,255,0.02); }
.tag:nth-child(4n+3) { color: var(--fun-pink);      border-color: rgba(244, 114, 182, 0.24); background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), transparent 60%), rgba(255,255,255,0.02); }
.tag:nth-child(4n+0) { color: var(--fun-orange);    border-color: rgba(251, 146,  60, 0.24); background: linear-gradient(135deg, rgba(251, 146,  60, 0.08), transparent 60%), rgba(255,255,255,0.02); }

/* ── Bullet list dots – cycling colours ─────────────── */
.bullet-list li:nth-child(3n+1)::before { background: var(--accent); }
.bullet-list li:nth-child(3n+2)::before { background: var(--fun-purple); }
.bullet-list li:nth-child(3n+0)::before { background: var(--fun-pink); }

/* ── Experience timeline – coloured marker dots ─────── */
.experience-entry:nth-child(1) .experience-marker::before { box-shadow: 0 0 0 1px rgba(155, 194, 175, 0.42), inset 0 0 0 0.18rem rgba(155, 194, 175, 0.24); }
.experience-entry:nth-child(2) .experience-marker::before { box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.42), inset 0 0 0 0.18rem rgba(167, 139, 250, 0.24); }
.experience-entry:nth-child(3) .experience-marker::before { box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.42), inset 0 0 0 0.18rem rgba(244, 114, 182, 0.24); }
.experience-entry:nth-child(4) .experience-marker::before { box-shadow: 0 0 0 1px rgba(251, 146,  60, 0.42), inset 0 0 0 0.18rem rgba(251, 146,  60, 0.24); }

/* ── Hero metric small labels – per-card colours ────── */
.hero-metric:nth-child(1) small { color: var(--fun-cyan); }
.hero-metric:nth-child(2) small { color: var(--fun-purple); }
.hero-metric:nth-child(3) small { color: var(--fun-orange); }

/* ── Nav links – coloured per link on hover/active ──── */
.site-nav a:nth-child(1):hover, .site-nav a:nth-child(1).current { color: var(--accent-strong); }
.site-nav a:nth-child(2):hover, .site-nav a:nth-child(2).current { color: var(--fun-purple); }
.site-nav a:nth-child(3):hover, .site-nav a:nth-child(3).current { color: var(--fun-pink); }
.site-nav a:nth-child(4):hover, .site-nav a:nth-child(4).current { color: var(--fun-orange); }
.site-nav a:nth-child(5):hover, .site-nav a:nth-child(5).current { color: var(--fun-yellow); }
.site-nav a:nth-child(6):hover, .site-nav a:nth-child(6).current { color: var(--fun-cyan); }

.site-nav a:nth-child(2)::after { background: linear-gradient(90deg, transparent, var(--fun-purple), transparent); }
.site-nav a:nth-child(3)::after { background: linear-gradient(90deg, transparent, var(--fun-pink),   transparent); }
.site-nav a:nth-child(4)::after { background: linear-gradient(90deg, transparent, var(--fun-orange), transparent); }
.site-nav a:nth-child(5)::after { background: linear-gradient(90deg, transparent, var(--fun-yellow), transparent); }
.site-nav a:nth-child(6)::after { background: linear-gradient(90deg, transparent, var(--fun-cyan),   transparent); }

/* ── Footer links – coloured hover ──────────────────── */
.footer-links a:nth-child(1):hover { color: var(--fun-cyan); }
.footer-links a:nth-child(2):hover { color: var(--fun-purple); }
.footer-links a:nth-child(3):hover { color: var(--fun-pink); }

/* ── Typewriter cursor – cyan instead of plain teal ─── */
.typewriter-cursor {
    background: linear-gradient(180deg, var(--fun-cyan), var(--fun-purple));
}

/* ── Contact panel – more colourful background ───────── */
.contact-panel {
    background:
        radial-gradient(circle at top left, rgba(167, 139, 250, 0.14), transparent 30%),
        radial-gradient(circle at 86% 18%,  rgba(244, 114, 182, 0.10), transparent 22%),
        radial-gradient(circle at 50% 92%,  rgba(251, 146,  60, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(19, 28, 35, 0.96), rgba(11, 17, 24, 0.98));
    border-color: rgba(167, 139, 250, 0.2);
}

/* ============================================
   Third base accent – warm amber
   Completes the sage-green / steel-blue / amber triad
   ============================================ */

:root {
    --accent-warm:      #e8b86d;
    --accent-warm-soft: rgba(232, 184, 109, 0.14);
    --accent-warm-faint:rgba(232, 184, 109, 0.07);
}

/* ── Body – amber blob joins the teal and blue blobs ── */
body {
    background:
        radial-gradient(circle at 12%  0%,  rgba(155, 194, 175, 0.22), transparent 28%),
        radial-gradient(circle at 88%  12%, rgba(167, 139, 250, 0.14), transparent 22%),
        radial-gradient(circle at 52%  48%, rgba(244, 114, 182, 0.07), transparent 28%),
        radial-gradient(circle at 22%  72%, rgba(232, 184, 109, 0.10), transparent 22%),
        radial-gradient(circle at 76%  84%, rgba(251, 146,  60, 0.06), transparent 20%),
        linear-gradient(145deg, #0f171d 0%, #091015 44%, #060b0f 100%);
}

/* ── Hero grid – amber glow on the right side ────────── */
.hero-grid::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
    border-color: rgba(232, 184, 109, 0.09);
}

.hero-panel {
    border-color: rgba(232, 184, 109, 0.16);
}

/* ── Education section – amber as its signature glow ─── */
.page-section--education {
    background:
        radial-gradient(circle at 10% 20%, rgba(232, 184, 109, 0.11), transparent 26%),
        radial-gradient(circle at 88% 78%, rgba(155, 194, 175, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(9, 14, 18, 0.96));
}

/* ── Date chips – amber tint ─────────────────────────── */
.date-chip {
    border-color: rgba(232, 184, 109, 0.28);
    background:
        linear-gradient(135deg, rgba(232, 184, 109, 0.13), transparent 62%),
        rgba(255, 255, 255, 0.02);
    color: var(--accent-warm);
}

/* ── Education card highlight – amber top border ─────── */
.education-main::after {
    content: "";
    position: absolute;
    top: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-warm), var(--accent));
    opacity: 0.75;
}

/* ── Contact CTA panel – amber accent ───────────────── */
.contact-panel {
    background:
        radial-gradient(circle at top left, rgba(232, 184, 109, 0.13), transparent 28%),
        radial-gradient(circle at 86% 18%,  rgba(155, 194, 175, 0.10), transparent 22%),
        radial-gradient(circle at 50% 92%,  rgba(148, 174, 203, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(19, 28, 35, 0.96), rgba(11, 17, 24, 0.98));
    border-color: rgba(232, 184, 109, 0.22);
}

/* ── Primary button – amber in the gradient mix ─────── */
.btn-primary {
    background: linear-gradient(135deg, #dbe6de 0%, #9bc2af 40%, #e8b86d 75%, #94aecb 100%);
    box-shadow: 0 16px 36px rgba(232, 184, 109, 0.20);
}

/* ── Section label dot – amber on every 3rd section ─── */
.page-section--education .section-label::before,
.page-section--contact   .section-label::before {
    background: var(--accent-warm);
}

/* ── Experience timeline line – blend to amber ───────── */
.experience-list::before,
.experience-marker::after {
    background: linear-gradient(180deg,
        rgba(155, 194, 175, 0.42),
        rgba(232, 184, 109, 0.22),
        rgba(155, 194, 175, 0.06));
}

/* ── Hover: amber glow on the contact panel ─────────── */
@media (hover: hover) {
    .contact-panel:hover {
        border-color: rgba(232, 184, 109, 0.34);
        box-shadow:
            0 30px 68px rgba(1, 6, 10, 0.28),
            0 0 0 1px rgba(232, 184, 109, 0.12),
            0 0 40px rgba(232, 184, 109, 0.10);
    }

    .btn-primary:hover,
    .btn-primary:focus-visible {
        background: linear-gradient(135deg, #dbe6de 0%, #e8b86d 35%, #9bc2af 65%, #94aecb 100%);
        box-shadow: 0 18px 44px rgba(232, 184, 109, 0.32);
    }
}

/* ── Reduced-motion: disable new animations ─────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .section-label::before,
    .strength-card:hover .strength-icon svg {
        animation: none;
    }
}
