:root {
    --bg-deep: #0a0e12;
    --bg-elevated: #111820;
    --bg-card: rgba(17, 24, 32, 0.78);
    --bg-card-inner: rgba(8, 12, 18, 0.55);
    --border-subtle: rgba(232, 237, 245, 0.09);
    --border-strong: rgba(232, 237, 245, 0.14);
    --text: #e8edf5;
    --text-muted: rgba(232, 237, 245, 0.68);
    --text-dim: rgba(232, 237, 245, 0.45);
    --accent: #5eead4;
    --accent-soft: rgba(94, 234, 212, 0.16);
    --accent-muted: rgba(94, 234, 212, 0.45);
    --accent-warm: #f0c674;
    --link: #7dd3fc;
    --link-hover: #bae6fd;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --radius: 16px;
    --radius-sm: 11px;
    --shadow: 0 28px 56px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.22);
    --transition: 0.2s ease;
    --content-max: 42rem;
    --page-max: 1180px;
}

html {
    --hero-blend: 0;
    --scroll-y: 0px;
    scroll-behavior: smooth;
}

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

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

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

    .video-orbit {
        animation: none;
    }

    .hero {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero.hero--inert {
        pointer-events: auto;
    }

    .reveal,
    .reveal.is-revealed {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    .scroll-rail__track {
        transform: none !important;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-optical-sizing: auto;
    background-color: var(--bg-deep);
    color: var(--text);
    line-height: 1.68;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 15% -5%, rgba(94, 234, 212, 0.085), transparent 52%),
        radial-gradient(ellipse 55% 45% at 100% 25%, rgba(125, 211, 252, 0.055), transparent 48%),
        radial-gradient(ellipse 45% 35% at 45% 100%, rgba(240, 198, 116, 0.04), transparent 42%);
    pointer-events: none;
    z-index: -1;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--bg-deep);
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 100;
    transition: top var(--transition);
}

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

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2.75rem 1.5rem 5.5rem;
    overflow: hidden;
    z-index: 6;
    opacity: calc(1 - var(--hero-blend, 0));
    transform: translateY(calc(var(--hero-blend, 0) * -3rem)) scale(calc(1 - var(--hero-blend, 0) * 0.045));
    will-change: opacity, transform;
}

.hero.hero--inert {
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 72% 58% at 50% 42%, black 18%, transparent 72%);
    opacity: 0.48;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.hero-visual {
    position: relative;
    width: 196px;
    height: 196px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.video-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(94, 234, 212, 0.22);
    animation: orbit-drift 28s linear infinite;
}

@keyframes orbit-drift {
    to {
        transform: rotate(360deg);
    }
}

.video-frame {
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(145deg, var(--accent), rgba(125, 211, 252, 0.48), var(--accent-warm));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 22px 44px rgba(0, 0, 0, 0.42),
        0 0 64px rgba(94, 234, 212, 0.11);
    transition: transform var(--transition), box-shadow var(--transition);
}

.video-frame:hover {
    transform: scale(1.035);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 28px 52px rgba(0, 0, 0, 0.48),
        0 0 80px rgba(94, 234, 212, 0.16);
}

.hero video {
    display: block;
    width: 176px;
    height: 176px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg-elevated);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.hero video::-webkit-media-controls {
    display: none !important;
}

.hero video::-webkit-media-controls-enclosure {
    display: none !important;
}

.hero video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-title-line {
    display: inline-block;
}

.caps {
    color: var(--accent-warm);
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.07rem;
    color: var(--text-muted);
    max-width: 38ch;
    margin-inline: auto;
    line-height: 1.55;
}

.hero-meta {
    font-size: 0.94rem;
    color: var(--text-dim);
}

@media (min-width: 900px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: clamp(2.5rem, 5vw, 4rem);
        max-width: 920px;
        padding-inline: 0.5rem;
    }

    .hero-copy {
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-tagline {
        margin-inline: 0;
        max-width: min(42ch, 100%);
    }
}

.page-wrap {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 2.75rem clamp(1rem, 3.2vw, 1.75rem) 4.5rem;
    display: grid;
    gap: 2.75rem;
    align-items: start;
}

@keyframes reveal-rise {
    from {
        opacity: 0;
        transform: translateY(2.75rem) scale(0.97);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(2.75rem) scale(0.97);
    filter: blur(6px);
}

.reveal.is-revealed {
    animation: reveal-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}

@media (min-width: 960px) {
    .page-wrap {
        grid-template-columns: minmax(15.5rem, 17.5rem) minmax(0, 1fr);
        gap: clamp(2rem, 3.5vw, 3.25rem);
        padding-top: 3rem;
    }
}

.scroll-rail {
    position: fixed;
    top: 0;
    width: clamp(44px, 6.5vw, 80px);
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.scroll-rail--left {
    left: 0;
}

.scroll-rail--right {
    right: 0;
}

.scroll-rail__track {
    position: absolute;
    left: 0;
    right: 0;
    height: 220%;
    top: -60%;
    opacity: 0.55;
}

.scroll-rail__track--left {
    background:
        repeating-linear-gradient(
            180deg,
            transparent 0,
            transparent 18px,
            rgba(94, 234, 212, 0.11) 18px,
            rgba(94, 234, 212, 0.11) 19px
        ),
        linear-gradient(180deg, rgba(94, 234, 212, 0.06), transparent 35%, transparent 65%, rgba(125, 211, 252, 0.05));
    transform: translateY(calc(var(--scroll-y, 0px) * -0.14));
    mask-image: linear-gradient(90deg, black 40%, transparent 100%);
}

.scroll-rail__track--right {
    background:
        repeating-linear-gradient(
            180deg,
            transparent 0,
            transparent 22px,
            rgba(240, 198, 116, 0.1) 22px,
            rgba(240, 198, 116, 0.1) 23px
        ),
        linear-gradient(180deg, rgba(240, 198, 116, 0.05), transparent 40%, transparent 60%, rgba(125, 211, 252, 0.04));
    transform: translateY(calc(var(--scroll-y, 0px) * 0.18));
    mask-image: linear-gradient(270deg, black 40%, transparent 100%);
}

@media (max-width: 380px) {
    .scroll-rail {
        opacity: 0.35;
        width: 32px;
    }
}

.sidebar {
    position: relative;
    order: 2;
}

@media (min-width: 960px) {
    .sidebar {
        position: sticky;
        top: 1.25rem;
        align-self: start;
        order: 1;
    }
}

#sidebar {
    scroll-margin-top: 1.25rem;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.65rem 1.4rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.sidebar-photo {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 1.1rem;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(94, 234, 212, 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.sidebar-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.sidebar-role {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-muted);
    text-align: center;
    margin-bottom: 1.1rem;
}

.sidebar-email {
    display: block;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--link);
    text-decoration: none;
    word-break: break-word;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.sidebar-email:hover {
    color: var(--link-hover);
    border-bottom-color: rgba(186, 230, 253, 0.45);
}

.sidebar-loc {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.sidebar-nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.55rem;
    margin: 0 -0.55rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
    background: var(--accent-soft);
    color: var(--text);
    border-left-color: var(--accent);
    outline: none;
}

.sidebar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.sidebar-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.2);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.sidebar-links a:hover {
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.35);
    color: var(--link-hover);
}

.sidebar-facts {
    list-style: none;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.sidebar-facts li {
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-subtle);
}

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

.main-flow {
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
    min-width: 0;
    order: 1;
}

@media (min-width: 960px) {
    .main-flow {
        order: 2;
    }
}

.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2rem clamp(1.25rem, 3vw, 2.25rem) 2.35rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    scroll-margin-top: 1.25rem;
}

.content-section--nest {
    padding-bottom: 2rem;
    height: 100%;
}

.content-section--primary {
    padding: 2.4rem clamp(1.35rem, 3.2vw, 2.55rem) 2.55rem;
    border-color: rgba(94, 234, 212, 0.14);
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(94, 234, 212, 0.05),
        0 0 100px rgba(94, 234, 212, 0.045);
}

.content-section--primary .section-index {
    font-size: 2.35rem;
}

.content-section--primary .section-head-text h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.05rem);
}

.content-section--primary .section-lead {
    font-size: 1.02rem;
    max-width: 54ch;
    color: rgba(232, 237, 245, 0.72);
}

.content-section--primary .job-list li {
    font-size: 1.045rem;
    line-height: 1.68;
}

.content-section--primary .job-header h3 {
    font-size: 1.24rem;
}

.content-section--secondary {
    opacity: 0.87;
    padding: 1.6rem clamp(1.05rem, 2.4vw, 1.8rem) 1.8rem;
    border-color: rgba(232, 237, 245, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.content-section--secondary .section-head {
    margin-bottom: 1.25rem;
    padding-bottom: 0.95rem;
}

.content-section--secondary .section-index {
    font-size: 1.45rem;
    color: rgba(240, 198, 116, 0.55);
}

.content-section--secondary .section-head-text h2 {
    font-size: clamp(1.12rem, 2.4vw, 1.32rem);
    font-weight: 600;
}

.content-section--secondary .section-lead {
    font-size: 0.86rem;
    max-width: 42ch;
    margin-bottom: 0;
}

.content-section--secondary .job-card::before {
    opacity: 0.32;
}

.content-section--secondary .chip {
    font-size: 0.78rem;
    padding: 0.28rem 0.55rem;
}

.content-section--secondary .skill-panel {
    padding: 0.95rem 1rem;
}

.content-section--secondary .edu-card h3 {
    font-size: 0.98rem;
}

.content-section--secondary .edu-detail {
    font-size: 0.84rem;
}

.bottom-split--secondary {
    gap: 1.15rem;
}

@media (min-width: 960px) {
    .sidebar--after-resume .sidebar-card {
        opacity: 0.92;
    }
}

.section-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.35rem;
    align-items: start;
    margin-bottom: 2rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--border-subtle);
}

.section-head--compact {
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
}

.section-index {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-warm);
    line-height: 1;
    opacity: 0.92;
    padding-top: 0.15rem;
}

.section-head-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}

.section-lead {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 50ch;
}

.job-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.35rem 1.45rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.job-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, var(--accent), rgba(125, 211, 252, 0.5));
    opacity: 0.75;
}

.job-card:last-child {
    margin-bottom: 0;
}

.job-card--quiet::before {
    opacity: 0.45;
}

.job-header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    padding-left: 0.35rem;
}

@media (min-width: 640px) {
    .job-header:not(.job-header--stacked) {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }
}

.job-header--stacked {
    flex-direction: column;
}

.job-title-block {
    flex: 1;
    min-width: 0;
}

.job-header h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.28;
    margin-bottom: 0.35rem;
}

.job-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.job-context {
    color: var(--text);
    font-style: italic;
}

.job-dates {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-warm);
    line-height: 1.35;
    text-align: left;
    padding: 0.4rem 0.75rem;
    background: rgba(240, 198, 116, 0.1);
    border: 1px solid rgba(240, 198, 116, 0.22);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .job-dates {
        text-align: right;
    }
}

.job-dates-sep {
    margin: 0 0.35rem;
    opacity: 0.55;
    font-weight: 600;
}

.job-dates-now {
    color: var(--accent);
}

.job-list {
    list-style: none;
    max-width: var(--content-max);
    padding-left: 0.35rem;
}

.job-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.95rem;
    color: var(--text-muted);
    font-size: 0.995rem;
    line-height: 1.62;
}

.job-list li:last-child {
    margin-bottom: 0;
}

.job-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.8;
}

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

.job-list--tight li {
    margin-bottom: 0;
}

.skills-panels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 1.1rem;
}

.skill-panel {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.15rem 1.15rem;
}

.skill-panel--wide {
    grid-column: 1 / -1;
}

.skill-panel-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.chip-list li {
    margin: 0;
}

.chip {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.09);
    border: 1px solid rgba(94, 234, 212, 0.22);
    color: var(--text);
    letter-spacing: 0.01em;
}

.bottom-split {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 860px) {
    .bottom-split {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: stretch;
    }
}

.edu-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.edu-card {
    padding: 1.1rem 1.2rem;
    background: var(--bg-card-inner);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.edu-card h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.edu-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.certs-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 0.75rem;
}

.certs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.certs-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.85rem;
    font-size: 0.94rem;
    color: var(--text-muted);
}

.cert-pill {
    font-weight: 600;
    color: var(--text);
    padding: 0.3rem 0.65rem;
    background: rgba(240, 198, 116, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(240, 198, 116, 0.2);
}

.cert-year {
    font-size: 0.86rem;
    color: var(--text-dim);
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem 3.25rem;
    font-size: 0.84rem;
    color: var(--text-dim);
}

.footer-easter-hint {
    margin-top: 0.65rem;
    font-size: 0.58rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: rgba(232, 237, 245, 0.22);
    font-weight: 400;
}

.footer-easter-hint kbd {
    font-family: inherit;
    font-size: 0.95em;
    padding: 0.05em 0.28em;
    border-radius: 3px;
    border: 1px solid rgba(232, 237, 245, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(232, 237, 245, 0.35);
}

.footer-easter-hint-note {
    font-size: 0.92em;
    opacity: 0.85;
}

@keyframes footer-cheat-hint-ping {
    0% {
        color: rgba(232, 237, 245, 0.22);
        text-shadow: none;
    }

    50% {
        color: rgba(175, 92, 92, 0.55);
        text-shadow: 0 0 11px rgba(150, 60, 60, 0.13);
    }

    100% {
        color: rgba(232, 237, 245, 0.22);
        text-shadow: none;
    }
}

@keyframes footer-cheat-hint-ping-kbd {
    0% {
        color: rgba(232, 237, 245, 0.35);
        border-color: rgba(232, 237, 245, 0.12);
        background: rgba(0, 0, 0, 0.2);
    }

    50% {
        color: rgba(215, 180, 180, 0.78);
        border-color: rgba(165, 85, 85, 0.36);
        background: rgba(90, 35, 35, 0.22);
    }

    100% {
        color: rgba(232, 237, 245, 0.35);
        border-color: rgba(232, 237, 245, 0.12);
        background: rgba(0, 0, 0, 0.2);
    }
}

.footer-easter-hint--ping {
    animation: footer-cheat-hint-ping 3s ease-in-out forwards;
}

.footer-easter-hint--ping kbd {
    animation: footer-cheat-hint-ping-kbd 3s ease-in-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    .footer-easter-hint--ping {
        animation: none;
        color: rgba(175, 95, 95, 0.62) !important;
        text-shadow: 0 0 8px rgba(130, 55, 55, 0.16);
    }

    .footer-easter-hint--ping kbd {
        animation: none;
        color: rgba(210, 185, 185, 0.88) !important;
        border-color: rgba(155, 80, 80, 0.36) !important;
        background: rgba(75, 30, 30, 0.22) !important;
    }
}

.cheat-blast {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(5, 8, 12, 0.92);
}

.cheat-blast[hidden] {
    display: none;
}

.cheat-blast-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: min(92vw, 880px);
}

.cheat-blast-img {
    display: block;
    width: 100%;
    max-width: min(90vw, 800px);
    height: auto;
    max-height: min(78vh, 800px);
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.scroll-arrows-container {
    position: fixed;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    z-index: 55;
    opacity: 0;
    transition: opacity var(--transition);
    max-width: min(920px, 92vw);
    pointer-events: none;
}

.scroll-arrows-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-arrow {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--accent);
    cursor: pointer;
    animation: hoverUpDown 2.2s ease-in-out infinite;
    background: none;
    border: none;
    padding: 0 2px;
    font-family: inherit;
    text-shadow: 0 0 18px rgba(94, 234, 212, 0.45);
    transition: color var(--transition), transform var(--transition);
}

.scroll-arrow:hover {
    color: var(--link);
}

.scroll-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

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

.easter-egg {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(5, 8, 12, 0.88);
    color: var(--accent);
    text-align: center;
    padding: 2rem;
}

.easter-egg[hidden] {
    display: none;
}

.easter-egg-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.easter-egg-icon {
    font-size: 4rem;
    line-height: 1;
}

.easter-close {
    margin-top: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--bg-deep);
    cursor: pointer;
    transition: filter var(--transition);
}

.easter-close:hover {
    filter: brightness(1.08);
}

.error-page-container {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-deep);
    color: var(--text);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.error-page-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(94, 234, 212, 0.08), transparent 55%);
    pointer-events: none;
}

.error-page-container h1 {
    font-family: var(--font-display);
    font-size: clamp(5rem, 18vw, 8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-warm);
    position: relative;
    z-index: 1;
    letter-spacing: -0.04em;
}

.error-page-container p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.home-link {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    background: var(--accent);
    color: var(--bg-deep);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: filter var(--transition), transform var(--transition);
}

.home-link:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .section-head {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .section-index {
        font-size: 1.65rem;
    }

    .content-section {
        padding: 1.55rem 1.15rem 1.75rem;
    }

    .job-card {
        padding: 1.25rem 1.1rem;
    }

    .job-dates {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        width: 172px;
        height: 172px;
    }

    .hero video {
        width: 152px;
        height: 152px;
    }

    .video-frame {
        padding: 3px;
    }

    .main-flow {
        gap: 2.5rem;
    }
}
