/*
File: /assets/css/styles.css
Purpose: Global styling for portfolio website.
Description: Intentional, modern visual system with responsive layout and subtle animation.
*/

:root {
    color-scheme: light;
    --bg: #f3f1ea;
    --page-gradient: linear-gradient(160deg, #f4f2ec 0%, #f0ece3 55%, #ece7df 100%);
    --surface: #fffdf7;
    --surface-soft: #f8f4ea;
    --text: #172026;
    --muted: #4d5b65;
    --accent: #1c7c72;
    --accent-strong: #145a53;
    --highlight: #f49d37;
    --border: #ddd5c8;
    --grain-dot: rgba(23, 32, 38, 0.06);
    --grain-opacity: 0.42;
    --shadow: 0 18px 40px rgba(23, 32, 38, 0.12);
    --hero-image-filter: saturate(1.02) contrast(1.02) brightness(1.02);
    --radius-lg: 24px;
    --radius-md: 14px;
    --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #101821;
        --page-gradient:
            radial-gradient(920px 640px at 76% 34%, rgba(16, 99, 122, 0.42) 0%, rgba(16, 99, 122, 0.11) 36%, rgba(16, 99, 122, 0) 72%),
            radial-gradient(760px 560px at 90% 80%, rgba(111, 76, 36, 0.34) 0%, rgba(111, 76, 36, 0.08) 40%, rgba(111, 76, 36, 0) 72%),
            radial-gradient(560px 420px at 12% 16%, rgba(30, 117, 108, 0.22) 0%, rgba(30, 117, 108, 0.04) 44%, rgba(30, 117, 108, 0) 76%),
            linear-gradient(140deg, #0b121a 0%, #0e1621 48%, #101a25 100%);
        --surface: #19232d;
        --surface-soft: #1d2832;
        --text: #eef3f6;
        --muted: #a4b2bb;
        --accent: #40b9ac;
        --accent-strong: #2f8f85;
        --highlight: #f7b155;
        --border: #2d3640;
        --grain-dot: rgba(173, 190, 203, 0.085);
        --grain-opacity: 0.2;
        --shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
        --hero-image-filter: saturate(1.02) contrast(1.02) brightness(1.02) drop-shadow(0 22px 32px rgba(0, 0, 0, 0.36));
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    scroll-padding-top: 5.8rem;
}

[id] {
    scroll-margin-top: 5.8rem;
}

body {
    font-family: "Manrope", "Segoe UI", "Trebuchet MS", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.site-bg {
    background: var(--page-gradient);
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

.orb {
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.86;
    position: absolute;
}

.orb-one {
    background: radial-gradient(circle at center, rgba(31, 129, 119, 0.26) 0%, rgba(31, 129, 119, 0) 72%);
    height: 560px;
    left: -180px;
    top: -180px;
    width: 560px;
}

.orb-two {
    background:
        radial-gradient(circle at center, rgba(25, 136, 159, 0.28) 0%, rgba(25, 136, 159, 0) 58%),
        radial-gradient(circle at 72% 82%, rgba(163, 110, 52, 0.3) 0%, rgba(163, 110, 52, 0) 60%);
    height: 720px;
    right: -250px;
    top: 120px;
    width: 720px;
}

body::after {
    background-image: radial-gradient(var(--grain-dot) 0.7px, transparent 0.7px);
    background-size: 22px 22px;
    content: "";
    inset: 0;
    opacity: var(--grain-opacity);
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.container {
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 0 1.4rem;
}

.header {
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 4.9rem;
    position: relative;
}

.logo {
    color: var(--text);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 4px;
    height: 2.45rem;
    justify-content: center;
    padding: 0.35rem;
    width: 2.8rem;
}

.nav-toggle span {
    background: var(--text);
    border-radius: 10px;
    display: block;
    height: 2px;
    width: 18px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    list-style: none;
}

.nav-links a {
    border-radius: 999px;
    color: var(--muted);
    display: block;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 0.46rem 0.84rem;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: color-mix(in srgb, var(--surface) 80%, var(--highlight) 20%);
    color: var(--accent-strong);
    transform: translateY(-1px);
}

.hero {
    align-items: center;
    display: grid;
    gap: 2.4rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: min(88vh, 760px);
    padding-bottom: 2.2rem;
    padding-top: 3.6rem;
}

.eyebrow {
    color: var(--accent-strong);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(2.1rem, 4.3vw, 3.6rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.8rem;
    max-width: 16ch;
}

.hero-specialization {
    align-items: baseline;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    max-width: 100%;
    white-space: nowrap;
}

.hero-specialization-prefix {
    color: var(--text);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.06rem, 1.9vw, 1.38rem);
    font-weight: 600;
}

.hero-specialization-role {
    color: var(--accent-strong);
    display: inline-block;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.06rem, 1.9vw, 1.38rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}

.hero-specialization-role::after {
    color: var(--accent-strong);
    content: "|";
    margin-left: 0.08em;
    opacity: 1;
}

.hero-specialization-role.is-holding::after {
    animation: cursor-blink-steady 1.4s step-end infinite;
}

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

.lead {
    color: var(--muted);
    font-size: clamp(0.95rem, 1.15vw, 1.06rem);
    margin-bottom: 1.55rem;
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.65rem;
}

.btn {
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.78rem 1.05rem;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.btn-primary {
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 9px 20px rgba(28, 124, 114, 0.25);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 13px 22px rgba(28, 124, 114, 0.32);
}

.btn-ghost {
    background: color-mix(in srgb, var(--surface) 65%, transparent);
    border: 1px solid var(--border);
    color: var(--text);
}

.hero-metrics {
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 560px;
    padding: 0.95rem;
}

.metric {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}

.metric span {
    display: block;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.03rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.metric p {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-social {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1rem;
}

.hero-social-label {
    color: var(--muted);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.hero-social-links {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-social-link {
    align-items: center;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
    border-radius: 999px;
    color: color-mix(in srgb, var(--text) 88%, var(--muted));
    display: inline-flex;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.42rem;
    line-height: 1;
    padding: 0.42rem 0.74rem;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hero-social-link:visited {
    color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.hero-social-link:hover,
.hero-social-link:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
    box-shadow: 0 8px 18px rgba(23, 32, 38, 0.15);
    transform: translateY(-1px);
}

.hero-social-icon {
    flex-basis: 0.95rem;
    height: 0.95rem;
    width: 0.95rem;
}

.hero-visual {
    align-items: flex-end;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-frame {
    border-radius: var(--radius-md);
    max-width: 430px;
    position: relative;
    width: 100%;
}

.image-frame picture {
    border-radius: inherit;
    display: block;
    overflow: hidden;
}

.image-frame::before {
    content: none;
}

.image-frame::after {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0) 72%);
    content: "";
    height: 14%;
    inset: auto 12% -2%;
    pointer-events: none;
    position: absolute;
    z-index: -3;
}

.image-frame img {
    border-radius: inherit;
    display: block;
    filter: var(--hero-image-filter);
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center bottom;
    width: 100%;
}

.section {
    padding-bottom: 2.3rem;
    padding-top: 2.3rem;
}

.section-head {
    margin-bottom: 1.25rem;
}

.section-head h2 {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.01em;
    line-height: 1.16;
}

.about-card,
.panel,
.domain-card {
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.about-card {
    display: grid;
    row-gap: 1rem;
    column-gap: 1.8rem;
    grid-template-columns: 1.2fr 0.8fr;
    padding: 1.3rem;
}

.about-card p {
    color: var(--muted);
    text-align: justify;
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    align-items: flex-start;
    display: flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.highlight-list li::before {
    color: var(--highlight);
    content: "";
    background: currentColor;
    border-radius: 999px;
    flex: 0 0 auto;
    height: 8px;
    margin-top: 0.47rem;
    width: 8px;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

.domain-card {
    padding: 1.2rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.domain-card:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 14px 30px rgba(23, 32, 38, 0.16);
    transform: translateY(-3px);
}

.domain-card h3 {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.domain-card ul {
    color: var(--muted);
    list-style: none;
}

.domain-card li {
    margin-bottom: 0.48rem;
    padding-left: 1rem;
    position: relative;
    text-align: justify;
}

.domain-card li::before {
    background: var(--accent);
    border-radius: 999px;
    content: "";
    height: 6px;
    left: 0.12rem;
    position: absolute;
    top: 0.62rem;
    width: 6px;
}

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

.panel {
    padding: 1.3rem;
}

.panel h3 {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
}

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

.project-card {
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card-link {
    color: inherit;
    cursor: pointer;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    text-decoration: none;
}

.project-card-link:visited {
    color: inherit;
}

.project-card-link:focus-visible {
    border-radius: calc(var(--radius-md) - 1px);
    outline: 3px solid color-mix(in srgb, var(--highlight) 65%, #ffffff 35%);
    outline-offset: -3px;
}

.project-card-link:focus-visible .project-media::before {
    transform: scale(1.03);
}

.project-card-link:focus-visible .project-body h3 {
    color: var(--accent-strong);
}

.project-card:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    box-shadow: 0 16px 34px rgba(23, 32, 38, 0.16);
    transform: translateY(-3px);
}

.project-media {
    align-content: space-between;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    display: grid;
    gap: 0.45rem;
    overflow: hidden;
    padding: 0.95rem;
    position: relative;
}

.project-media::before {
    background-image: var(--project-image, none);
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0;
    opacity: var(--project-image-opacity, 0);
    position: absolute;
    transition: transform 260ms ease, opacity 260ms ease;
    z-index: 0;
}

.project-media::after {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.08) 0 9px,
            rgba(255, 255, 255, 0) 9px 18px
        );
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.project-media > * {
    position: relative;
    z-index: 2;
}

.project-card:hover .project-media::before {
    transform: scale(1.03);
}

.project-card-finance .project-media {
    background:
        radial-gradient(circle at 18% 18%, rgba(31, 127, 118, 0.36) 0%, rgba(31, 127, 118, 0) 56%),
        linear-gradient(135deg, #1b3b52 0%, #1d5f72 45%, #1f7f76 100%);
}

.project-card-assistive .project-media {
    background:
        radial-gradient(circle at 82% 16%, rgba(244, 157, 55, 0.32) 0%, rgba(244, 157, 55, 0) 52%),
        linear-gradient(135deg, #34274f 0%, #255170 48%, #1f6678 100%);
}

.project-card-power .project-media {
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 221, 102, 0.34) 0%, rgba(255, 221, 102, 0) 54%),
        linear-gradient(140deg, #3e3320 0%, #6b4e1f 52%, #6f6126 100%);
}

.project-card-protection .project-media {
    background:
        radial-gradient(circle at 78% 14%, rgba(255, 99, 99, 0.32) 0%, rgba(255, 99, 99, 0) 58%),
        linear-gradient(140deg, #3c1f32 0%, #4a2f58 45%, #284262 100%);
}

.project-media-badge {
    align-self: start;
    background: color-mix(in srgb, #ffffff 18%, transparent);
    border: 1px solid color-mix(in srgb, #ffffff 32%, transparent);
    border-radius: 999px;
    color: #ffffff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 0.28rem 0.54rem;
    text-transform: uppercase;
    width: fit-content;
}

.project-media-title {
    align-self: end;
    color: #ffffff;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 14ch;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.project-body {
    display: grid;
    gap: 0.72rem;
    padding: 1.05rem 1.1rem 1.15rem;
}

.project-body h3 {
    margin-bottom: 0;
}

.project-outcome {
    color: color-mix(in srgb, var(--text) 88%, var(--muted));
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    list-style: none;
}

.project-tags li {
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 78%, var(--accent) 22%);
    border-radius: 999px;
    color: color-mix(in srgb, var(--text) 80%, var(--muted));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1;
    padding: 0.33rem 0.56rem;
}



.experience-timeline {
    display: grid;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.experience-timeline::before {
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--accent) 68%, transparent) 0%,
        color-mix(in srgb, var(--accent) 38%, var(--border)) 50%,
        color-mix(in srgb, var(--accent) 68%, transparent) 100%
    );
    border-radius: 999px;
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
    content: "";
    left: 0.45rem;
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
}

.timeline-item {
    padding-left: 1.75rem;
    position: relative;
}

.timeline-dot {
    background: var(--accent);
    border: 2px solid color-mix(in srgb, var(--surface) 86%, var(--accent));
    border-radius: 999px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--surface) 90%, transparent);
    display: block;
    height: 0.9rem;
    left: 0.01rem;
    position: absolute;
    top: 1rem;
    width: 0.9rem;
    z-index: 1;
}

.timeline-card {
    padding: 1.1rem 1.2rem;
    position: relative;
    background: color-mix(in srgb, var(--surface) 74%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, var(--accent) 30%);
    box-shadow:
        0 14px 30px rgba(23, 32, 38, 0.14),
        inset 0 1px 0 color-mix(in srgb, #ffffff 36%, transparent);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.timeline-card::before {
    background: color-mix(in srgb, var(--accent) 35%, var(--border));
    content: "";
    height: 2px;
    left: -0.82rem;
    position: absolute;
    top: 1.45rem;
    width: 0.82rem;
}

.timeline-card:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 14px 30px rgba(23, 32, 38, 0.16);
    transform: translateY(-2px);
}

.timeline-period {
    color: var(--accent-strong);
    display: inline-block;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 85%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
    text-transform: uppercase;
}

.contact-panel {
    display: grid;
    gap: 1rem;
}

.contact-list {
    display: grid;
    gap: 0.58rem;
    list-style: none;
}

.contact-link {
    align-items: center;
    color: color-mix(in srgb, var(--text) 90%, var(--muted));
    display: inline-flex;
    font-weight: 700;
    gap: 0.58rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 160ms ease, text-decoration-color 160ms ease;
    word-break: break-word;
}

.contact-link:visited {
    color: color-mix(in srgb, var(--text) 90%, var(--muted));
}

.contact-icon {
    background-color: currentColor;
    display: inline-flex;
    flex: 0 0 1.05rem;
    height: 1.05rem;
    width: 1.05rem;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.icon-google {
    color: #ea4335;
    -webkit-mask-image: url("../icons/brand-google.svg");
    mask-image: url("../icons/brand-google.svg");
}

.icon-linkedin {
    color: #0a66c2;
    -webkit-mask-image: url("../icons/brand-linkedin.svg");
    mask-image: url("../icons/brand-linkedin.svg");
}

.icon-github {
    color: #24292f;
    -webkit-mask-image: url("../icons/brand-github.svg");
    mask-image: url("../icons/brand-github.svg");
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

.contact-link:hover .contact-icon,
.contact-link:focus-visible .contact-icon {
    filter: brightness(1.06);
}

@media (prefers-color-scheme: dark) {
    .icon-github {
        color: #f0f6fc;
    }
}

.footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    margin-top: 2.4rem;
    padding: 1.4rem 0;
}

.footer p {
    font-size: 0.9rem;
}

.not-found {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding-bottom: 2.2rem;
    padding-top: 6.2rem;
}

.not-found-card {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    margin: 0 auto;
    max-width: 720px;
    padding: 1.6rem;
    text-align: center;
}

.not-found-icon {
    display: block;
    height: auto;
    margin-bottom: 0.2rem;
    max-width: min(420px, 100%);
    width: 100%;
}

.not-found-card h1 {
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.not-found-card p {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 540ms ease, transform 540ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 620ms cubic-bezier(0.2, 0.65, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.65, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-item.reveal-left {
    transform: translateX(-20px);
}

.reveal-item.reveal-right {
    transform: translateX(20px);
}

.reveal-item.reveal-zoom {
    transform: translateY(12px) scale(0.98);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

@media (max-width: 980px) {
    .hero {
        gap: 1.8rem;
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 2.2rem;
    }

    .hero-copy h1,
    .lead,
    .hero-metrics {
        max-width: none;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .image-frame {
        max-width: 450px;
    }

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

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow);
        flex-direction: column;
        min-width: 220px;
        opacity: 0;
        padding: 0.7rem;
        pointer-events: none;
        position: absolute;
        right: 1.4rem;
        top: calc(100% + 0.5rem);
        transform: translateY(-10px);
        transition: opacity 160ms ease, transform 160ms ease;
        visibility: hidden;
        z-index: 25;
    }

    .nav-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .nav-links li,
    .nav-links a {
        width: 100%;
    }

}

@media (max-width: 720px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 1.7rem;
    }

    .hero-specialization {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.12rem;
        white-space: normal;
    }

    .hero-specialization-role {
        line-height: 1.25;
        min-height: 1.3em;
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .hero-metrics {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.75rem;
    }

    .hero-metrics .metric:last-child {
        grid-column: 1 / -1;
    }

    .metric {
        padding: 0.7rem 0.55rem;
    }

    .metric span {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .metric p {
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .hero-social {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1rem;
}

    .hero-social-links {
        margin-top: 0.35rem;
        width: 100%;
    }

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

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

    .section {
        padding-bottom: 1.7rem;
        padding-top: 1.7rem;
    }

    .timeline-item {
        padding-left: 1.45rem;
    }

    .experience-timeline::before {
        left: 0.38rem;
    }

    .timeline-dot {
        height: 0.85rem;
        left: -0.03rem;
        margin-top: 0;
        top: 0.92rem;
        width: 0.85rem;
    }

    .timeline-card {
        padding: 1rem;
    }

    .timeline-card::before {
        left: -0.72rem;
        top: 1.35rem;
        width: 0.72rem;
    }
}

@media (max-width: 420px) {
    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-metrics .metric:last-child {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-item {
        transition-duration: 620ms !important;
    }

    .hero-specialization-role::after {
        opacity: 1;
    }

    .hero-specialization-role.is-holding::after {
        animation-name: cursor-blink-steady !important;
        animation-duration: 1.4s !important;
        animation-timing-function: step-end !important;
        animation-iteration-count: infinite !important;
    }
}
