html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

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

:root{
    --bg: #f8fafc;
    --text: #000000;
    --topbar-bg: white;
    --border: #e5e7eb;
    --muted-text: #64748b;
    --toggle-bg: white;
    --toggle-border: #000000;
    --grid-line: rgba(36, 184, 91, 0.08);
    --peg-frame: #313a46;
    --peg-surface: #46515f;
    --peg-border: rgba(15, 23, 42, 0.32);
    --peg-hole: #111821;
    --peg-hole-ring: #242d38;
    --peg-hole-highlight: rgba(255, 255, 255, 0.16);
    --lanyard-wall-bg: rgba(226, 232, 240, 0.6);
    --lanyard-rail-bg: #dbe3ea;
    --lanyard-rail-edge: #94a3b8;
    --lanyard-metal: #667586;
    --lanyard-card-bg: #f8fafc;
    --lanyard-sleeve-bg: rgba(203, 213, 225, 0.4);
    --lanyard-shadow: rgba(15, 23, 42, 0.18);
    --lanyard-logo-stage: #71869b;
    --lanyard-logo-border: rgba(255, 255, 255, 0.2);
}

body.dark{
    --bg: #0f172a;
    --text: #f8fafc;
    --topbar-bg: #111827;
    --border: #1e293b;
    --muted-text: #cbd5e1;
    --toggle-bg: #111827;
    --toggle-border: white;
    --grid-line: rgba(148, 163, 184, 0.08);
    --peg-frame: #0b1017;
    --peg-surface: #171d25;
    --peg-border: rgba(148, 163, 184, 0.2);
    --peg-hole: #020407;
    --peg-hole-ring: #080c11;
    --peg-hole-highlight: rgba(255, 255, 255, 0.07);
    --lanyard-wall-bg: rgba(17, 24, 39, 0.58);
    --lanyard-rail-bg: #263244;
    --lanyard-rail-edge: #475569;
    --lanyard-metal: #a8b3c2;
    --lanyard-card-bg: #273244;
    --lanyard-sleeve-bg: rgba(148, 163, 184, 0.22);
    --lanyard-shadow: rgba(2, 6, 23, 0.38);
    --lanyard-logo-stage: #64748b;
    --lanyard-logo-border: rgba(148, 163, 184, 0.28);
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 90px 90px;
    background-position: 0 0;
    color: var(--text); 
}

body.experience-open {
    overflow: hidden;
}

.topbar{
    height: 54px;
    padding: 0 24px; 
    display: flex; 
    align-items: center;
    justify-content: space-between;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border);
    position: fixed; 
    top: 0;
    left: 0;
    right: 0; 
    z-index: 1000; 
}

.left{
    display: flex; 
    align-items: center;
    gap: 24px; 
    font-size: 14px;
    color: var(--muted-text);
    min-width: 0; 
    flex: 1;
    overflow: hidden;
}

.location{ 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto; 
}

.time {
    font-size: 13px; 
    font-weight: 500; 
    color: var(--muted-text);
    letter-spacing: 1px;
    font-family: arial, sans-serif;
    white-space: nowrap;
}

.status {
    position: relative; 
    overflow: hidden;
    display: flex; 
    align-items: center; 
    gap: 14px; 
    background: #24b85b;
    color: white; 
    padding: 7px 14px; 
    border-radius: 999px; 
    font-size: 12px; 
    font-weight: bold; 
    letter-spacing: 2px; 
}

.status::after {
    content: ""; 
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine { 
    0% {
        left: -80%
    }
    50% {
        left: 130%
    }
    100% {
        left: 130%
    }
}

.dot {
    width: 12px; 
    height: 12px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    z-index: 1;
    background-color: white;
    border-radius: 50%;
}

.dot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    animation: pulse 1.8s infinite; 
    z-index: -1;

}


@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.theme-toggle {
    all: unset;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    border: 1px solid var(--toggle-border);
    background: var(--toggle-bg);
    color: var(--text);
    display: flex; 
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.theme-toggle span {
    position: absolute;
    font-size: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease; 
}

.theme-toggle .dark {
    opacity: 0;
    transform: scale(0.7) rotate(-90deg);
}

body.dark .theme-toggle .light{
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

body.dark .theme-toggle .dark {
    opacity: 1;
    transform: scale(1.2) rotate(0deg);
}

.hero {
    min-height: 100vh;
    width: min(1380px, calc(100% - 72px));
    margin: 0 auto; 
    padding: 120px 0 60px; 
    display: grid; 
    grid-template-columns: minmax(700px,780px) minmax(420px, 520px);
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);

    position: relative;
    overflow: visible;
    isolation: isolate;
}

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

.intro-card { 
    width: 100%;
    min-width: 0;
    background: var(--topbar-bg);
    border: 1px solid color-mix(in srgb, var(--border) 78%, var(--muted-text) 22%);
    border-radius: 28px;
    padding: clamp(34px, 4vw, 55px);
    box-shadow: 0 24px 60px rgba(19, 31, 59, 0.09);
}

.intro-name {
    margin: 0 0 18px;
    color: var(--muted-text);
    font-size: 22px;
    font-weight: 550;
}

.intro-card h1 {
    margin: 0; 
    color: var(--text);
    font-size: clamp(52px, 5.2vw, 82px);
    line-height: 1;
    letter-spacing: clamp(-5px, -0.35vw, -2px);
}

.name-accent {
    display: inline-block;
    max-width: 100%;
}

.name-accent h1 {
    white-space: nowrap;
}

.accent-line {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    margin-top: 1px;
    background: linear-gradient(90deg, #7c94a3, #c7ddd5);
}

.intro-card h2{ 
    min-height: 30px;
    margin: 5px 0 0;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.35;
    color: var(--muted-text);
    font-weight: 450;
}

.typing {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.intro-text {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted-text);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.4;
}

.hero-links{
    display: flex; 
    gap: 14px;
    margin-top: 34px; 
    flex-wrap: wrap; 
}

.hero-links a {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero-links a:hover {
    transform: translateY(-3px);
    background: var(--text);
    color: var(--bg);
}

.profile-area {
    --frame-offset: clamp(14px, 1.4vw, 20px);
    position: relative; 
    display: flex; 
    justify-content: center;
    align-items: center;
    width: min(100%, 500px);
    min-width: 0;
    max-width: 100%;
    height: clamp(500px, 42vw, 610px);
    margin: 0 auto;
}

.image-frame {
    position: absolute;
    width: 85%;
    height: 85%;
    border: 2px solid; 
    z-index: 0;
}

.frame-one {
    border-color: #7c94a3;
    transform: translate(calc(-1 * var(--frame-offset)), calc(-1 * var(--frame-offset)));
}

.frame-two {
    border-color: #c7ddd5;
    transform: translate(var(--frame-offset), var(--frame-offset));
}

.profile-card {
    position: relative;
    width: 85%;
    height: 85%;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 28px 70px rgba(15,23,42,0.22);
    z-index: 1;
    cursor: pointer;
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
}

.profile-card:hover img {
    transform: scale(1.04);
}

.profile-gradient {
    position: absolute;
    inset: 0; 
    background: linear-gradient(
        to top, 
        rgba(2,25,17,0.9),
        rgba(2,25,17,0.15),
        transparent
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2; 
}

.profile-card:hover .profile-gradient {
    opacity: 1;
}

.hover-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column; 
    justify-content: flex-end;
    align-items: flex-start;
    padding: 35px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease; 
    z-index: 3;
}

.hover-label::before {
    content: "";
    width: 48px;
    height: 2px;
    color: #a7e3bf;
    margin-bottom: 14px;
}

.hover-label h3 {
    margin: 0 0 5px;
    line-height: 1.6;
    font-size: 28px;
    color: white;
    font-family: Georgia, serif;
    font-weight: 500;
}

.hover-label p {
    margin: 0;
    color: #a7e3bf;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.profile-card:hover .hover-label {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        width: min(720px, calc(100% - 36px));
        padding: 100px 0 60px; 
        gap: 60px; 
    }

    .intro-card {
        padding: 34px;
    }

    .profile-area {
        --frame-offset: 16px;
        order: -1; 
        max-width: 520px;
        height: 560px;
    }

    .profile-card {
        max-width: min(420px, 86%);
        height: 500px; 
    }

    .image-frame {
        width: min(420px, 85%);
        height: 500px;
    }
}

@media (max-width: 600px) {
    .topbar {
        padding: 0 14px; 
    }

    .location {
        display: none; 
    }

    .time {
        display: none; 
    }

    .hero {
        width: min(100% - 28px, 520px);
        padding: 90px 0 50px;
        gap: 42px
    }

    .intro-card {
        padding: 30px; 
        border-radius: 22px;
    }

    .accent-line {
        width: 100%;
        height: 6px; 
    }

    .profile-area {
        --frame-offset: 12px;
        width: 100%;
        height: 500px;
    }

    .profile-card {
        width: min(360px, 86%); 
        height: 430px; 
    }

    .image-frame {
        width: min(360px, 86%);
        height: 430px;
    }

    .hover-label {
        padding: 26px;
    }

    .hover-label h3 {
        font-size: 24px; 
    }
}


html {
    scroll-behavior: smooth;
}

.about {
    min-height: 100vh;
    padding: clamp(88px, 9vw, 128px) clamp(20px, 5vw, 72px);
    background: transparent;
    color: var(--text);
}

.about-inner {
    width: min(100%, 1320px);
    margin: 0 auto;
}

.about-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-line {
    width: 48px;
    height: 1px;
    background: #24b85b;
}

.about-heading p {
    margin: 0;
    color: #24b85b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
}

.about h2 {
    margin: 0 0 70px;
    max-width: 1100px;
    font-size: clamp(40px, 5.2vw, 72px);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 600;
    text-wrap: balance;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(48px, 7vw, 96px);
    align-items: start;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 18px;
    padding: 26px 30px;
    background: var(--topbar-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(19, 31, 59, 0.07);
}

.about-card span {
    font-size: 20px;
}

.about-card h3 {
    margin: 0 0 7px;
    font-size: 16px;
    color: var(--text);
}

.about-card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted-text);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.about-text {
    width: 100%;
    max-width: 720px;
}

.about-text p {
    margin: 0 0 26px;
    color: var(--muted-text);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.8;
}

.about-text blockquote {
    margin: 38px 0 0;
    padding: 28px 34px;
    border-left: 3px solid #24b85b;
    background: var(--topbar-bg);
    color: var(--text);
    border-radius: 0 16px 16px 0;
    font-size: 19px;
    line-height: 1.7;
    font-style: italic;
    box-shadow: 0 18px 45px rgba(19, 31, 59, 0.06);
}

@media (max-width: 900px) {
    .about {
        padding: 88px clamp(24px, 6vw, 56px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .about-text {
        max-width: 760px;
    }

    .about h2 {
        margin-bottom: 45px;
    }
}

@media (max-width: 600px) {
    .about {
        min-height: auto;
        padding: 72px 20px;
    }

    .about-heading {
        margin-bottom: 22px;
    }

    .about-heading p {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .section-line {
        width: 36px;
    }

    .about h2 {
        margin-bottom: 36px;
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.12;
    }

    .about-content {
        gap: 38px;
    }

    .about-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-card {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .about-text p {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.7;
    }

    .about-text blockquote {
        margin-top: 28px;
        padding: 22px 20px;
        font-size: 17px;
    }
}

@media (max-width: 360px) {
    .hero {
        width: calc(100% - 16px);
    }

    .intro-card {
        padding: 24px;
    }

    .intro-card h1 {
        font-size: clamp(44px, 15vw, 52px);
    }

    .intro-name {
        font-size: 19px;
    }
}

.experience {
    min-height: 70vh;
    padding: clamp(88px, 9vw, 128px) clamp(20px, 5vw, 72px);
    background: transparent;
    color: var(--text);
}

.experience-inner {
    width: min(100%, 1320px);
    margin: 0 auto;
}

.experience-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.experience-heading p {
    margin: 0;
    color: #24b85b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
}

.experience h2 {
    margin: 0 0 56px;
    font-size: clamp(40px, 5.2vw, 72px);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 600;
}

.experience-list {
    width: 100%;
}

.pegboard {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 58vw, 760px);
    padding: clamp(8px, 1vw, 14px);
    overflow: hidden;
    border: 1px solid var(--peg-border);
    border-radius: 8px;
    background-color: var(--peg-frame);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 22%, rgba(255, 255, 255, 0.02) 72%, transparent),
        linear-gradient(rgba(255, 255, 255, 0.025), transparent 35%, rgba(0, 0, 0, 0.08));
    box-shadow:
        0 20px 45px rgba(2, 6, 23, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pegboard::before,
.pegboard::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.pegboard::before {
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 5px;
}

.pegboard::after {
    inset: clamp(8px, 1vw, 14px);
    border: 1px solid rgba(0, 0, 0, 0.62);
    box-shadow: inset 0 12px 22px rgba(0, 0, 0, 0.18);
}

.pegboard-surface {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(clamp(520px, 58vw, 760px) - clamp(16px, 2vw, 28px));
    overflow: hidden;
    background-color: var(--peg-surface);
    background-image:
        radial-gradient(circle, var(--peg-hole) 0 2.5px, var(--peg-hole-ring) 2.8px 3.4px, var(--peg-hole-highlight) 3.7px, transparent 4px),
        linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 42%, rgba(0, 0, 0, 0.08));
    background-size: 28px 28px, 100% 100%;
    background-position: 0 0, 0 0;
    box-shadow:
        inset 0 0 38px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.experience-sticker {
    --sticker-rotation: -5deg;
    position: absolute;
    top: clamp(52px, 9%, 76px);
    left: clamp(32px, 10%, 126px);
    z-index: 3;
    width: clamp(112px, 12vw, 154px);
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transform: rotate(var(--sticker-rotation));
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.experience-sticker:hover,
.experience-sticker:focus-visible {
    transform: rotate(var(--sticker-rotation)) translateY(-5px) scale(1.07);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.4);
    outline: none;
}

.experience-sticker:focus-visible {
    box-shadow: 0 0 0 4px #24b85b, 0 20px 34px rgba(0, 0, 0, 0.4);
}

.experience-sticker img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: contain;
    pointer-events: none;
}

.experience-sticker-square {
    overflow: visible;
    border-radius: 8px;
    background: #000000;
}

.experience-sticker-square img {
    border-radius: 8px;
    object-fit: cover;
}

.experience-sticker-stackhacks {
    --sticker-rotation: 4deg;
    top: clamp(230px, 36%, 275px);
    left: clamp(230px, 42%, 530px);
    width: clamp(112px, 11.5vw, 148px);
}

.experience-sticker-stackhacks .sticker-pin {
    top: 0;
    left: 50%;
    transform: translate(-50%, -45%);
}

.experience-sticker-wide {
    overflow: visible;
    aspect-ratio: auto;
    padding: 16px 8px 8px;
    border-radius: 6px;
    background-color: #231f20;
    background-image:
        repeating-linear-gradient(118deg, transparent 0 48px, rgba(255, 255, 255, 0.025) 48px 82px, transparent 82px 132px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
}

.experience-sticker-wide img {
    height: auto;
    border-radius: 3px;
    object-fit: contain;
    clip-path: inset(1px round 3px);
}

.experience-sticker-motorsports {
    --sticker-rotation: -2deg;
    top: clamp(70px, 12%, 95px);
    right: clamp(42px, 8%, 100px);
    left: auto;
    width: clamp(230px, 25vw, 320px);
}

.experience-sticker-motorsports .sticker-pin {
    top: 0;
    left: 50%;
    transform: translate(-50%, -45%);
}

.experience-sticker-fyri {
    overflow: visible;
}

.experience-sticker-edd {
    --sticker-rotation: 3deg;
    top: 57%;
    left: 12%;
    width: clamp(112px, 11vw, 142px);
    overflow: visible;
}

.experience-sticker-stonybrook {
    --sticker-rotation: -4deg;
    top: 56%;
    right: 12%;
    left: auto;
    width: clamp(160px, 16vw, 205px);
    aspect-ratio: 16 / 9;
    overflow: visible;
    border-radius: 7px;
    background: #a90000;
}

.experience-sticker-stonybrook img {
    border-radius: 7px;
    object-fit: cover;
}

.experience-sticker-stonybrook .sticker-pin {
    top: 0;
}

.experience-sticker-brand {
    --sticker-rotation: -3deg;
    top: 76%;
    left: 50%;
    width: clamp(112px, 11vw, 142px);
    overflow: visible;
    box-shadow: none;
}

.brand-sticker-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    background: #000000;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
    font-size: clamp(38px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.brand-sticker-j,
.brand-sticker-h {
    color: #ffffff;
}

.experience-sticker-brand .sticker-pin {
    top: 0;
}

.sticker-pin {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    width: clamp(16px, 1.7vw, 22px);
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #a7f3d0 0 12%, #24b85b 32%, #08752f 72%);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%);
}

.sticker-pin-blue {
    background: radial-gradient(circle at 35% 30%, #dbeafe 0 12%, #3b82f6 32%, #1d4ed8 72%);
}

.sticker-pin-red {
    background: radial-gradient(circle at 35% 30%, #fee2e2 0 12%, #ef4444 32%, #991b1b 72%);
}

.sticker-pin-yellow {
    background: radial-gradient(circle at 35% 30%, #fef9c3 0 12%, #eab308 32%, #854d0e 72%);
}

.sticker-pin-purple {
    background: radial-gradient(circle at 35% 30%, #f3e8ff 0 12%, #a855f7 32%, #6b21a8 72%);
}

.sticker-pin-brand {
    background: radial-gradient(circle at 35% 30%, #ecfeff 0 12%, #14b8a6 32%, #0f766e 72%);
}

.experience-dialog {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 48px 20px 20px;
    color: var(--text);
}

.experience-dialog.is-open {
    display: grid;
}

.experience-dialog-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(7px);
    cursor: default;
}

.experience-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

.experience-flip-card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 40px));
    height: min(680px, calc(100dvh - 76px));
    perspective: 1400px;
}

.experience-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.experience-dialog.is-open .experience-flip-inner {
    animation: sticker-flip-in 2200ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.experience-flip-front,
.experience-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

.experience-flip-front {
    display: grid;
    place-items: center;
    opacity: 1;
}

.experience-flip-front img {
    width: min(84%, 430px);
    height: auto;
    max-height: min(78%, 540px);
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.42);
}

.experience-flip-front-square img {
    width: min(78%, 400px);
    border-radius: 8px;
}

.experience-flip-front-wide img {
    width: min(96%, 520px);
    height: auto;
    aspect-ratio: auto;
    padding: 20px 10px 10px;
    border-radius: 6px;
    background-color: #231f20;
    background-image:
        repeating-linear-gradient(118deg, transparent 0 70px, rgba(255, 255, 255, 0.025) 70px 120px, transparent 120px 190px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 6px);
    object-fit: contain;
}

.experience-flip-front-stonybrook img {
    width: min(92%, 500px);
    padding: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.42);
}

.experience-flip-front-edd img {
    background: transparent;
}

.experience-flip-front-brand .brand-sticker-mark {
    width: min(78%, 400px);
    height: auto;
    aspect-ratio: 1;
    font-size: clamp(96px, 20vw, 170px);
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.42);
}

.experience-flip-back {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(30px, 6vw, 54px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--topbar-bg);
    color: var(--text);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: none;
    scrollbar-color: #24b85b transparent;
    scrollbar-width: thin;
}

.experience-flip-back::-webkit-scrollbar {
    width: 7px;
}

.experience-flip-back::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #24b85b;
}

.experience-dialog.is-open .experience-flip-front {
    animation: sticker-front-hide 2200ms step-end forwards;
}

.experience-dialog.is-open .experience-flip-back {
    animation: sticker-back-show 2200ms step-end forwards;
}

.experience-sample-label,
.experience-date,
.experience-organization,
.experience-description {
    margin: 0;
}

.experience-sample-label {
    margin-bottom: 24px;
    color: #24b85b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.experience-date {
    color: var(--muted-text);
    font-size: 14px;
}

.experience-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.experience-status span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #24b85b;
    box-shadow: 0 0 0 4px rgba(36, 184, 91, 0.14);
}

.experience-flip-back h3 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.08;
    letter-spacing: 0;
}

.experience-organization {
    color: #24b85b;
    font-size: 16px;
    font-weight: 700;
}

.experience-description {
    margin-top: 8px;
    color: var(--muted-text);
    font-size: 16px;
    line-height: 1.65;
}

.experience-overview-title {
    margin: 28px 0 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.3;
}

.experience-project-overview-title {
    margin-top: 16px;
    font-size: 15px;
}

.experience-eyebrow {
    margin: 0 0 8px;
    color: #24b85b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.experience-flip-back-projects {
    padding: clamp(28px, 4vw, 42px);
}

.experience-flip-back-projects > h3 {
    margin-top: 0;
    font-size: clamp(28px, 5vw, 38px);
}

.experience-project-list {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.experience-project {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.experience-project h4 {
    margin: 9px 0 5px;
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
}

.experience-project-role {
    margin: 0;
    color: #24b85b;
    font-size: 14px;
    font-weight: 700;
}

.experience-project-description {
    margin: 7px 0 0;
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.55;
}

.experience-project .experience-skills {
    margin-top: 16px;
}

.experience-flip-back-case-study {
    padding: clamp(28px, 4vw, 42px);
}

.experience-flip-back-case-study > h3 {
    margin-top: 10px;
}

.experience-case-study {
    display: grid;
    gap: 30px;
    margin-top: 34px;
}

.experience-case-section {
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.experience-case-section h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.25;
}

.experience-case-section > p {
    margin: 0;
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.6;
}

.experience-case-media {
    margin: 20px 0 0;
}

.experience-case-image-button {
    width: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: zoom-in;
}

.experience-case-image-button:focus-visible {
    outline: 3px solid #24b85b;
    outline-offset: 3px;
}

.experience-case-media img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}

.experience-case-media figcaption {
    margin-top: 8px;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.4;
}

.experience-project-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}

.experience-project-link:hover,
.experience-project-link:focus-visible {
    color: var(--accent);
}

.experience-project-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

.experience-project-link i {
    font-size: 11px;
}

.experience-case-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    padding: 56px 20px 24px;
}

.experience-case-lightbox.is-open {
    display: grid;
}

.experience-case-lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(10px);
}

.experience-case-lightbox-content {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100vw - 40px));
    max-height: calc(100dvh - 80px);
    display: grid;
    justify-items: center;
}

.experience-case-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 130px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: #ffffff;
    object-fit: contain;
}

.experience-case-lightbox-content p {
    margin: 12px 0 0;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
}

.experience-case-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding-bottom: 4px;
}

.experience-skills span {
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 12px;
}

.community-experience {
    width: 100%;
    padding: 104px clamp(32px, 7vw, 112px) 56px;
}

.community-experience-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.community-experience h2 {
    margin: 0 0 48px;
    color: var(--text);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: 0;
}

.lanyard-wall {
    position: relative;
    min-height: clamp(480px, 52vw, 630px);
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--lanyard-wall-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lanyard-rail {
    position: absolute;
    z-index: 2;
    top: 38px;
    left: 3%;
    width: 94%;
    height: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    place-items: center;
    border: 1px solid var(--lanyard-rail-edge);
    background: var(--lanyard-rail-bg);
    box-shadow: 0 7px 16px var(--lanyard-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lanyard-rail::before,
.lanyard-rail::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lanyard-metal);
    transform: translateY(-50%);
}

.lanyard-rail::before {
    left: 14px;
}

.lanyard-rail::after {
    right: 14px;
}

.lanyard-rail > span {
    width: 12px;
    height: 12px;
    border: 2px solid var(--lanyard-metal);
    border-radius: 50%;
    background: var(--bg);
}

.lanyard-display {
    position: absolute;
    inset: 47px 3% 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    justify-items: center;
}

.lanyard {
    --lanyard-color: #147d64;
    --lanyard-dark: #0d5746;
    position: relative;
    width: clamp(90px, 14vw, 158px);
    height: clamp(350px, 40vw, 500px);
    transform-origin: 50% 10px;
}

.lanyard-red {
    --lanyard-color: #b93742;
    --lanyard-dark: #7f2530;
}

.lanyard-gold {
    --lanyard-color: #c18a27;
    --lanyard-dark: #805b19;
}

.lanyard-hook {
    position: absolute;
    z-index: 4;
    top: -8px;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid var(--lanyard-metal);
    border-radius: 50%;
    background: var(--lanyard-rail-bg);
    box-shadow: 0 2px 3px var(--lanyard-shadow);
    transform: translateX(-50%);
}

.lanyard-hook::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 5px;
    height: 13px;
    border: 2px solid var(--lanyard-metal);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    transform: translateX(-50%);
}

.lanyard-straps {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 100%;
    height: clamp(185px, 22vw, 270px);
    filter: drop-shadow(0 3px 3px var(--lanyard-shadow));
    transform: translateX(-50%);
}

.lanyard-straps span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--lanyard-color);
}

.lanyard-straps span:first-child {
    clip-path: polygon(47% 0, 53% 0, 36% 23%, 53% 100%, 45% 100%, 27% 19%);
}

.lanyard-straps span:last-child {
    background: var(--lanyard-color);
    filter: brightness(0.72);
    clip-path: polygon(46% 0, 54% 0, 74% 19%, 56% 100%, 46% 100%, 63% 23%);
}

.lanyard-clip {
    position: absolute;
    z-index: 3;
    top: clamp(188px, 22.5vw, 275px);
    left: 50%;
    width: 24px;
    height: 34px;
    border: 3px solid var(--lanyard-metal);
    border-radius: 5px;
    background: var(--lanyard-rail-bg);
    transform: translateX(-50%);
}

.lanyard-sleeve {
    position: absolute;
    top: clamp(214px, 25vw, 307px);
    left: 50%;
    width: 100%;
    aspect-ratio: 0.76;
    padding: clamp(7px, 1vw, 11px);
    border: 1px solid rgba(148, 163, 184, 0.75);
    border-radius: 6px;
    background: var(--lanyard-sleeve-bg);
    box-shadow: 0 16px 26px var(--lanyard-shadow);
    transform: translateX(-50%);
}

.lanyard-sleeve::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 28%;
    height: 5px;
    border: 1px solid rgba(100, 116, 139, 0.7);
    border-radius: 999px;
    transform: translateX(-50%);
}

.lanyard-card-blank {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--lanyard-card-bg);
}

.lanyard-card-blank span {
    width: 32%;
    aspect-ratio: 1;
    border: 2px solid var(--lanyard-color);
    transform: rotate(45deg);
    opacity: 0.55;
}

.lanyard-card-logo {
    position: relative;
    padding: clamp(7px, 1vw, 10px);
    overflow: hidden;
    border-color: var(--lanyard-logo-border);
    background: var(--lanyard-logo-stage);
}

.lanyard-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.lanyard-card-logo-watson img,
.lanyard-detail-front-watson img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    clip-path: none;
}

.lanyard-card-logo-elp img,
.lanyard-detail-front-elp img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    clip-path: none;
}

.experience-recognitions {
    display: grid;
    gap: 8px;
    margin: 22px 0;
}

.experience-recognitions p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.experience-recognitions i {
    width: 18px;
    color: #24b85b;
    text-align: center;
}

.lanyard-badge-button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.lanyard-badge-button:hover {
    box-shadow: 0 22px 34px var(--lanyard-shadow);
    transform: translateX(-50%) translateY(-6px) scale(1.035);
}

.lanyard-badge-button:focus-visible {
    outline: 3px solid #24b85b;
    outline-offset: 4px;
}

.lanyard-placeholder {
    opacity: 0.78;
}

.lanyard-placeholder-sleeve {
    cursor: default;
}

.lanyard-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    place-items: center;
    padding: 56px 18px 24px;
}

.lanyard-dialog.is-open {
    display: grid;
}

.lanyard-dialog-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(9px);
}

.lanyard-dialog-close {
    position: absolute;
    z-index: 3;
    top: max(22px, env(safe-area-inset-top));
    right: max(22px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

.lanyard-detail-card {
    position: relative;
    z-index: 2;
    width: min(460px, calc(100vw - 36px));
    height: min(620px, calc(100dvh - 90px));
    perspective: 1400px;
}

.lanyard-detail-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.lanyard-dialog.is-open .lanyard-detail-inner {
    animation: lanyard-badge-open 1450ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.lanyard-dialog.is-open .lanyard-detail-front {
    animation: lanyard-front-hide 1450ms step-end forwards;
}

.lanyard-dialog.is-open .lanyard-detail-back {
    animation: lanyard-back-show 1450ms step-end forwards;
}

.lanyard-detail-front,
.lanyard-detail-back {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
}

.lanyard-detail-front {
    display: grid;
    place-items: center;
    padding: clamp(32px, 8vw, 54px);
    border-color: var(--lanyard-logo-border);
    background: var(--lanyard-logo-stage);
}

.lanyard-detail-front img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.lanyard-detail-back {
    overflow-y: auto;
    padding: clamp(30px, 6vw, 48px);
    padding-bottom: clamp(42px, 8vw, 64px);
    background: var(--bg);
    color: var(--text);
    opacity: 0;
}

.lanyard-detail-back h3 {
    margin: 12px 0 8px;
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.05;
    letter-spacing: 0;
}

@keyframes lanyard-badge-open {
    0% {
        opacity: 0;
        transform: translateY(130px) scale(0.18) rotateY(0deg);
    }
    38% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    58% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    72% {
        opacity: 1;
        transform: translateY(0) scaleX(0.025) scaleY(1);
    }
    73% {
        opacity: 1;
        transform: translateY(0) scaleX(0.025) scaleY(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes lanyard-front-hide {
    0%, 72% {
        opacity: 1;
    }
    73%, 100% {
        opacity: 0;
    }
}

@keyframes lanyard-back-show {
    0%, 72% {
        opacity: 0;
    }
    73%, 100% {
        opacity: 1;
    }
}

@keyframes sticker-flip-in {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.3) rotateY(0deg);
    }
    24% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
    71% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
    72% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(90deg);
    }
    73% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
}

@keyframes sticker-front-hide {
    0%, 72% {
        opacity: 1;
    }
    73%, 100% {
        opacity: 0;
    }
}

@keyframes sticker-back-show {
    0%, 72% {
        opacity: 0;
    }
    73%, 100% {
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .experience {
        padding: 88px clamp(24px, 6vw, 56px);
    }

    .community-experience {
        padding: 88px clamp(24px, 6vw, 56px) 104px;
    }
}

@media (max-width: 600px) {
    .experience {
        min-height: 60vh;
        padding: 72px 20px;
    }

    .experience-heading {
        margin-bottom: 22px;
    }

    .experience-heading p {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .experience h2 {
        margin-bottom: 36px;
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.12;
    }

    .pegboard {
        min-height: 640px;
        padding: 8px;
    }

    .pegboard::after {
        inset: 8px;
    }

    .pegboard-surface {
        min-height: 624px;
        background-size: 24px 24px, 100% 100%;
    }

    .experience-sticker {
        width: 112px;
    }

    .experience-sticker-fyri {
        top: 48px;
        left: 28px;
        width: 112px;
    }

    .experience-sticker-stackhacks {
        top: 350px;
        right: auto;
        left: 34px;
        width: 108px;
    }

    .experience-sticker-motorsports {
        top: 205px;
        right: auto;
        left: 38px;
        width: 239px;
    }

    .experience-sticker-edd {
        top: 48px;
        right: 28px;
        left: auto;
        width: 112px;
    }

    .experience-sticker-stonybrook {
        top: 488px;
        right: 22px;
        left: auto;
        width: 154px;
    }

    .experience-sticker-brand {
        top: 352px;
        right: 35px;
        left: auto;
        width: 112px;
    }

    .experience-dialog {
        padding: 48px 10px 10px;
    }

    .experience-flip-card {
        width: calc(100vw - 24px);
        height: min(562px, calc(100dvh - 66px));
    }

    .experience-flip-back {
        padding: 28px 24px;
    }

    .experience-description {
        margin-top: 8px;
        font-size: 15px;
    }

    .experience-overview-title {
        margin-top: 22px;
    }

    .experience-project-overview-title {
        margin-top: 16px;
    }

    .experience-skills {
        margin-top: 22px;
    }

    .community-experience {
        padding: 72px 20px 48px;
    }

    .community-experience h2 {
        margin-bottom: 34px;
        font-size: clamp(34px, 10vw, 46px);
    }

    .lanyard-wall {
        min-height: 430px;
    }

    .lanyard-rail {
        top: 28px;
        left: 1%;
        width: 98%;
    }

    .lanyard-display {
        inset: 34px 1% 12px;
    }

    .lanyard {
        width: clamp(68px, 22vw, 92px);
        height: 340px;
    }

    .lanyard-straps {
        height: 178px;
    }

    .lanyard-straps span {
        width: 100%;
    }

    .lanyard-clip {
        top: 178px;
        width: 20px;
        height: 29px;
    }

    .lanyard-sleeve {
        top: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .experience-sticker {
        transition: none;
    }

    .experience-dialog.is-open .experience-flip-inner {
        animation-duration: 1ms;
    }

    .experience-dialog.is-open .experience-flip-front,
    .experience-dialog.is-open .experience-flip-back {
        animation-duration: 1ms;
    }

    .lanyard-badge-button {
        transition: none;
    }

    .lanyard-dialog.is-open .lanyard-detail-inner {
        animation-duration: 1ms;
    }
}

/* Expandable academic-year circuit */

.education-board {
    min-height: 0;
}

.education-processor::after {
    top: auto;
    right: auto;
    bottom: -56px;
    left: 38px;
    width: 2px;
    height: 56px;
}

.education-year-circuit {
    position: relative;
    margin-top: 56px;
    padding: 0 0 0 22px;
}

.education-backbone {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 16px;
    left: 38px;
    width: 2px;
    background: var(--circuit-accent);
    box-shadow: 0 0 9px var(--circuit-glow);
}

.education-year-row {
    position: relative;
    min-height: 76px;
    transition: min-height 420ms ease;
}

.education-year-row.is-active {
    min-height: 210px;
}

.education-year-row.is-active.has-detail {
    min-height: 390px;
}

.education-year-switch {
    position: relative;
    z-index: 4;
    width: 100px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.education-year-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.education-year-label small {
    color: var(--muted-text);
    font-family: Consolas, "Courier New", monospace;
    font-size: 8px;
    font-weight: 700;
}

.education-year-label-current small {
    color: var(--circuit-accent);
}

.education-year-core {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 2px solid var(--circuit-accent);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--circuit-accent) 11%, transparent), 0 0 12px var(--circuit-glow);
    transition: background-color 180ms ease, transform 180ms ease;
}

.education-year-switch:hover .education-year-core,
.education-year-switch:focus-visible .education-year-core,
.education-year-row.is-active .education-year-core {
    background: var(--circuit-accent);
    transform: scale(1.08);
}

.education-year-switch:focus-visible {
    outline: 2px solid var(--circuit-accent);
    outline-offset: 5px;
    border-radius: 4px;
}

.education-year-switch:disabled {
    cursor: not-allowed;
}

.education-year-switch:disabled .education-year-core {
    background: var(--bg);
    transform: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--circuit-accent) 7%, transparent);
    opacity: 0.65;
}

.education-year-route {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 10px;
    left: 35px;
    height: 170px;
    visibility: hidden;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 160ms ease, visibility 0s linear 420ms;
}

.education-year-row.is-active .education-year-route {
    visibility: visible;
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 0s;
}

.education-year-row.is-active.has-detail .education-year-route {
    height: 350px;
}

.education-route-trace {
    position: absolute;
    inset: 0;
    border-top: 2px solid var(--circuit-accent);
    border-right: 2px solid var(--circuit-accent);
    border-bottom: 2px solid var(--circuit-accent);
    border-radius: 0 24px 24px 0;
    box-shadow: 4px 0 8px -4px var(--circuit-glow), 0 4px 8px -5px var(--circuit-glow);
}

.education-route-trace::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: -19px;
    width: 19px;
    height: 2px;
    background: var(--circuit-accent);
    box-shadow: 0 0 8px var(--circuit-glow);
}

.education-year-row.is-upcoming .education-year-core,
.education-year-row.is-upcoming .education-route-nodes i {
    border-style: dashed;
}

.education-year-row.is-upcoming .education-route-trace {
    border-style: dashed;
    opacity: 0.68;
}

.education-route-nodes {
    position: absolute;
    top: -13px;
    right: 42px;
    left: 90px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.education-route-nodes > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.education-route-node {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    font: inherit;
    cursor: pointer;
}

.education-route-node:hover i,
.education-route-node:focus-visible i,
.education-route-node[aria-expanded="true"] i {
    background: var(--circuit-accent);
    transform: scale(1.12);
}

.education-route-node:focus-visible {
    outline: 2px solid var(--circuit-accent);
    outline-offset: 5px;
    border-radius: 4px;
}

.education-route-nodes i {
    width: 26px;
    height: 26px;
    margin-bottom: 13px;
    border: 2px solid var(--circuit-accent);
    border-radius: 50%;
    background: var(--topbar-bg);
    box-shadow: 0 0 9px var(--circuit-glow);
    transition: background-color 160ms ease, transform 160ms ease;
}

.education-route-nodes strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
}

.education-route-nodes small {
    max-width: 180px;
    margin-top: 6px;
    color: var(--muted-text);
    font-size: 11px;
    line-height: 1.35;
}

.education-route-details {
    position: absolute;
    top: 104px;
    right: 42px;
    left: 90px;
}

.education-route-detail {
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--circuit-accent) 45%, var(--border));
    border-radius: 5px;
    background: color-mix(in srgb, var(--topbar-bg) 96%, var(--circuit-accent));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
}

.education-route-detail[hidden] {
    display: none;
}

.education-route-detail > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--circuit-accent);
    font-size: 13px;
}

.education-route-detail-ongoing > strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-route-detail-ongoing > strong span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--circuit-accent);
    box-shadow: 0 0 9px var(--circuit-glow);
}

.education-route-detail-ongoing p {
    margin: 0;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.55;
}

.education-route-detail ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-route-detail li {
    position: relative;
    padding-left: 13px;
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.4;
}

.education-route-detail li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--circuit-accent);
}

.education-detail-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.education-project-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.education-project-links a {
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.education-project-links a:hover,
.education-project-links a:focus-visible {
    border-color: var(--circuit-accent);
    background: color-mix(in srgb, var(--circuit-accent) 8%, transparent);
    color: var(--circuit-accent);
    outline: none;
}

.experience-sticker.is-highlighted {
    animation: education-sticker-highlight 1.6s ease;
}

@keyframes education-sticker-highlight {
    0%, 100% { filter: none; }
    35%, 65% { filter: drop-shadow(0 0 14px #24b85b) drop-shadow(0 0 5px #ffffff); }
}

.education-graduation-node {
    position: relative;
    z-index: 3;
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px auto;
    grid-template-rows: auto auto;
    column-gap: 15px;
    align-items: center;
}

.education-graduation-node > span {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    border: 2px solid var(--circuit-accent);
    border-radius: 50%;
    background: var(--circuit-accent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--circuit-accent) 13%, transparent), 0 0 15px var(--circuit-glow);
}

.education-graduation-node strong {
    align-self: end;
    font-size: 16px;
}

.education-graduation-node small {
    align-self: start;
    color: var(--muted-text);
    font-size: 12px;
}

.education-current-signal {
    position: static;
    margin: 30px 0 0;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--circuit-accent) 24%, var(--border));
    text-align: right;
}

@media (max-width: 720px) {
    .education-board {
        min-height: 0;
    }

    .education-year-circuit {
        margin-top: 52px;
        padding-left: 10px;
    }

    .education-backbone,
    .education-processor::after {
        left: 26px;
    }

    .education-year-row {
        min-height: 70px;
    }

    .education-year-row.is-active {
        min-height: 300px;
    }

    .education-year-row.is-active.has-detail {
        min-height: 610px;
    }

    .education-year-switch {
        width: 92px;
    }

    .education-year-core,
    .education-graduation-node > span {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .education-year-route {
        top: 15px;
        right: 0;
        left: 26px;
        height: 255px;
    }

    .education-year-row.is-active.has-detail .education-year-route {
        height: 565px;
    }

    .education-route-trace::after {
        left: -10px;
        width: 10px;
    }

    .education-route-nodes {
        top: 48px;
        right: 28px;
        left: 58px;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .education-route-nodes > span {
        min-height: 52px;
        display: grid;
        grid-template-columns: 20px 1fr;
        grid-template-rows: auto auto;
        column-gap: 10px;
        text-align: left;
        align-items: start;
    }

    .education-route-node {
        min-height: 52px;
        display: grid;
        grid-template-columns: 20px 1fr;
        grid-template-rows: auto auto;
        column-gap: 10px;
        text-align: left;
        align-items: start;
    }

    .education-route-node i {
        grid-row: 1 / 3;
    }

    .education-route-nodes i {
        grid-row: 1 / 3;
        width: 18px;
        height: 18px;
        margin: 2px 0 0;
    }

    .education-route-nodes strong,
    .education-route-nodes small {
        max-width: none;
        margin-top: 0;
    }

    .education-route-details {
        top: 235px;
        right: 28px;
        left: 58px;
    }

    .education-route-detail {
        padding: 14px;
    }

    .education-route-detail ul,
    .education-detail-chips,
    .education-project-links {
        grid-template-columns: 1fr !important;
    }

    .education-graduation-node {
        grid-template-columns: 32px auto;
    }

    .education-current-signal {
        line-height: 1.65;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .education-year-row,
    .education-year-route,
    .education-year-core {
        transition: none;
    }
}

/* Education circuit */

.education-section {
    padding: 96px clamp(24px, 6vw, 72px) 120px;
}

.education-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.education-section h2 {
    margin: 12px 0 42px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

.education-board {
    --circuit-accent: #24b85b;
    --circuit-glow: rgba(36, 184, 91, 0.52);
    position: relative;
    min-height: 570px;
    padding: clamp(22px, 4vw, 42px);
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--topbar-bg) 93%, var(--circuit-accent));
    background-image:
        linear-gradient(rgba(36, 184, 91, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 184, 91, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

body.dark .education-board {
    --circuit-accent: #46e786;
    --circuit-glow: rgba(70, 231, 134, 0.55);
    background-color: #121b2b;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.38);
}

.education-board::before,
.education-board::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.education-board::before {
    top: 84px;
    right: 0;
    width: 14%;
    height: 70px;
    border-top: 1px solid color-mix(in srgb, var(--circuit-accent) 48%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--circuit-accent) 48%, transparent);
}

.education-board::after {
    bottom: 66px;
    left: 0;
    width: 112px;
    height: 56px;
    border-top: 1px solid color-mix(in srgb, var(--circuit-accent) 48%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--circuit-accent) 48%, transparent);
}

.education-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    color: var(--muted-text);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 0;
}

.education-board-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.education-board-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--circuit-accent);
    box-shadow: 0 0 12px var(--circuit-glow);
}

.education-processor {
    position: relative;
    width: min(470px, 100%);
    padding: 24px 28px;
    border: 1px solid color-mix(in srgb, var(--circuit-accent) 65%, var(--border));
    border-radius: 5px;
    background: var(--bg);
    box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--circuit-accent) 7%, transparent), 0 12px 24px rgba(15, 23, 42, 0.08);
}

.education-processor::after {
    content: "";
    position: absolute;
    right: -66px;
    top: 50%;
    width: 66px;
    height: 2px;
    background: var(--circuit-accent);
    box-shadow: 0 0 9px var(--circuit-glow);
}

.education-chip-label {
    display: block;
    margin-bottom: 12px;
    color: var(--circuit-accent);
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
}

.education-processor h3 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: 0;
}

.education-processor p,
.education-processor > span:last-child {
    margin: 0;
    color: var(--muted-text);
    font-size: 16px;
    line-height: 1.55;
}

.education-path-wrap {
    position: relative;
    margin-top: 70px;
    padding: 0 18px;
}

.education-path {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-path::before,
.education-path::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 10%;
    width: 80%;
    height: 2px;
}

.education-path::before {
    background: color-mix(in srgb, var(--circuit-accent) 30%, var(--border));
}

.education-path::after {
    background: linear-gradient(90deg, transparent 0%, var(--circuit-accent) 48%, #ffffff 50%, var(--circuit-accent) 52%, transparent 100%);
    background-size: 45% 100%;
    filter: drop-shadow(0 0 5px var(--circuit-glow));
    animation: education-signal 3.2s linear infinite;
}

.education-stop {
    position: relative;
    min-width: 0;
    text-align: center;
}

.education-node {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 5px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.education-node-core {
    width: 26px;
    height: 26px;
    border: 2px solid var(--circuit-accent);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--circuit-accent) 12%, transparent), 0 0 13px var(--circuit-glow);
    transition: transform 180ms ease, background-color 180ms ease;
}

.education-node-label {
    min-height: 34px;
    display: grid;
    place-items: start center;
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 700;
    line-height: 1.2;
}

.education-node:hover .education-node-core,
.education-node:focus-visible .education-node-core,
.education-stop.is-active .education-node-core {
    background: var(--circuit-accent);
    transform: scale(1.18);
}

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

.education-node-panel {
    position: absolute;
    z-index: 5;
    top: 82px;
    left: 50%;
    width: min(230px, 22vw);
    min-width: 180px;
    padding: 15px 16px;
    border: 1px solid color-mix(in srgb, var(--circuit-accent) 52%, var(--border));
    border-radius: 5px;
    background: var(--topbar-bg);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.education-node-panel strong,
.education-node-panel span {
    display: block;
}

.education-node-panel strong {
    margin-bottom: 6px;
    color: var(--circuit-accent);
    font-size: 13px;
}

.education-node-panel span {
    color: var(--muted-text);
    font-size: 12px;
    line-height: 1.45;
}

.education-stop:hover .education-node-panel,
.education-stop:focus-within .education-node-panel,
.education-stop.is-active .education-node-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.education-stop:first-child .education-node-panel {
    left: 0;
    transform: translate(0, 8px);
}

.education-stop:first-child:hover .education-node-panel,
.education-stop:first-child:focus-within .education-node-panel,
.education-stop:first-child.is-active .education-node-panel {
    transform: translate(0, 0);
}

.education-stop:last-child .education-node-panel {
    right: 0;
    left: auto;
    transform: translate(0, 8px);
}

.education-stop:last-child:hover .education-node-panel,
.education-stop:last-child:focus-within .education-node-panel,
.education-stop:last-child.is-active .education-node-panel {
    transform: translate(0, 0);
}

.education-current-signal {
    position: absolute;
    right: clamp(22px, 4vw, 42px);
    bottom: 22px;
    margin: 0;
    color: var(--muted-text);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.education-current-signal span {
    color: var(--circuit-accent);
    font-weight: 700;
}

.education-current-signal i {
    color: var(--circuit-accent);
    font-style: normal;
}

@keyframes education-signal {
    from { background-position: -70% 0; }
    to { background-position: 170% 0; }
}

@media (max-width: 720px) {
    .education-section {
        padding: 72px 20px 88px;
    }

    .education-section h2 {
        margin-bottom: 32px;
        font-size: clamp(38px, 12vw, 52px);
    }

    .education-board {
        min-height: 850px;
        padding: 22px 20px 32px;
        overflow: hidden;
    }

    .education-board-header {
        align-items: flex-start;
        font-size: 10px;
    }

    .education-processor {
        padding: 20px;
    }

    .education-processor::after {
        top: auto;
        right: auto;
        bottom: -52px;
        left: 26px;
        width: 2px;
        height: 52px;
    }

    .education-path-wrap {
        margin-top: 48px;
        padding: 0;
    }

    .education-path {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 0;
    }

    .education-path::before,
    .education-path::after {
        top: 13px;
        left: 25px;
        width: 2px;
        height: calc(100% - 28px);
    }

    .education-path::after {
        background: linear-gradient(180deg, transparent 0%, var(--circuit-accent) 48%, #ffffff 50%, var(--circuit-accent) 52%, transparent 100%);
        background-size: 100% 45%;
        animation-name: education-signal-mobile;
    }

    .education-stop {
        min-height: 78px;
        text-align: left;
    }

    .education-node {
        width: 100%;
        min-height: 54px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        padding: 0 0 0 13px;
        text-align: left;
    }

    .education-node-core {
        flex: 0 0 26px;
    }

    .education-node-label {
        min-height: 0;
        place-items: center start;
        font-size: 15px;
    }

    .education-node-panel,
    .education-stop:first-child .education-node-panel,
    .education-stop:last-child .education-node-panel {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: auto;
        min-width: 0;
        max-height: 0;
        margin: 0 0 0 55px;
        padding: 0 14px;
        overflow: hidden;
        opacity: 0;
        transform: none;
        transition: max-height 200ms ease, opacity 180ms ease, padding 200ms ease;
    }

    .education-stop:hover .education-node-panel,
    .education-stop:focus-within .education-node-panel,
    .education-stop.is-active .education-node-panel,
    .education-stop:first-child:hover .education-node-panel,
    .education-stop:first-child:focus-within .education-node-panel,
    .education-stop:first-child.is-active .education-node-panel,
    .education-stop:last-child:hover .education-node-panel,
    .education-stop:last-child:focus-within .education-node-panel,
    .education-stop:last-child.is-active .education-node-panel {
        max-height: 150px;
        padding: 12px 14px;
        opacity: 1;
        transform: none;
    }

    .education-current-signal {
        right: 20px;
        bottom: 20px;
        left: 20px;
        line-height: 1.6;
    }
}

@keyframes education-signal-mobile {
    from { background-position: 0 -70%; }
    to { background-position: 0 170%; }
}

@media (prefers-reduced-motion: reduce) {
    .education-path::after {
        animation: none;
    }

    .education-node-core,
    .education-node-panel {
        transition: none;
    }
}

/* Final education circuit geometry overrides */

.education-board {
    min-height: 0;
}

.education-processor::after {
    top: auto;
    right: auto;
    bottom: -56px;
    left: 38px;
    width: 2px;
    height: 56px;
}

.education-board .education-current-signal {
    position: static;
    inset: auto;
    margin: 30px 0 0;
    padding-top: 20px;
    text-align: right;
}

@media (max-width: 720px) {
    .education-board {
        min-height: 0;
    }

    .education-processor::after {
        left: 26px;
    }

    .education-board .education-current-signal {
        margin-top: 34px;
        text-align: left;
    }
}

/* Seamless education trace cleanup */

.education-backbone,
.education-processor::after,
.education-route-trace,
.education-route-trace::after {
    box-shadow: none;
}

.education-route-trace::after {
    bottom: 0;
    left: -21px;
    width: 21px;
}

.education-year-core::before,
.education-year-core::after {
    content: none;
}

.education-year-switch {
    isolation: isolate;
}

.education-year-switch::before,
.education-year-switch::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 16px;
    width: 2px;
    height: 12px;
    background: var(--circuit-accent);
}

.education-year-switch::before {
    top: -6px;
}

.education-year-switch::after {
    top: 38px;
}

.education-year-core {
    position: relative;
    z-index: 2;
}

.education-year-switch > span:not(.education-year-core) {
    position: relative;
    z-index: 5;
    white-space: nowrap;
    transform: translateY(-20px);
}

.education-year-switch:hover .education-year-label,
.education-year-switch:focus-visible .education-year-label,
.education-year-row.is-active .education-year-label {
    transform: translateY(-20px);
}

@media (max-width: 720px) {
    .education-route-trace::after {
        left: -12px;
        width: 12px;
    }
}

/* One continuous vertical trace from the processor through every year node. */
.education-processor::after {
    content: none;
}

.education-backbone {
    top: -56px;
}

.education-year-switch::before,
.education-year-switch::after {
    content: none;
}

/* Let the route border meet the backbone directly without a joining segment. */
.education-year-route {
    left: 16px;
}

.education-route-trace::after {
    content: none;
}

@media (max-width: 720px) {
    .education-year-route {
        left: 16px;
    }
}

/* Responsive education route geometry and inline detail panels */

.education-board {
    --education-board-bg: color-mix(in srgb, var(--topbar-bg) 93%, var(--circuit-accent));
    background-color: var(--education-board-bg);
}

body.dark .education-board {
    --education-board-bg: #121b2b;
}

.education-year-row,
.education-year-row.is-active,
.education-year-row.is-active.has-detail {
    min-height: 76px;
}

.education-year-row.is-active {
    padding-bottom: 22px;
}

.education-year-route {
    display: none;
}

.education-year-row.is-active .education-year-route,
.education-year-row.is-active.has-detail .education-year-route {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: block;
    width: auto;
    height: auto;
    min-height: 170px;
    margin: -22px 10px 0 17px;
    padding: 0 42px 28px 90px;
    visibility: visible;
    opacity: 1;
    transform: none;
}

.education-route-nodes {
    position: relative;
    top: -13px;
    right: auto;
    left: auto;
}

.education-route-item {
    min-width: 0;
}

.education-route-detail {
    margin-top: 18px;
}

.education-route-detail ul,
.education-detail-chips,
.education-project-links {
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .education-year-row.is-active.has-detail .education-year-route {
        min-height: 340px;
    }

    .education-route-detail {
        position: absolute;
        top: 108px;
        right: 0;
        left: 0;
        width: auto;
        margin: 0;
    }

    .education-route-detail ul,
    .education-detail-chips,
    .education-project-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.education-year-switch > span:not(.education-year-core),
.education-year-switch:hover .education-year-label,
.education-year-switch:focus-visible .education-year-label,
.education-year-row.is-active .education-year-label {
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--education-board-bg);
    transform: none;
}

.education-backbone {
    top: -55px;
}

@media (max-width: 959px) {
    .education-year-row,
    .education-year-row.is-active,
    .education-year-row.is-active.has-detail {
        min-height: 70px;
    }

    .education-year-row.is-active {
        padding-bottom: 20px;
    }

    .education-year-row.is-active .education-year-route,
    .education-year-row.is-active.has-detail .education-year-route {
        min-height: 255px;
        margin-top: -21px;
        margin-right: 0;
        margin-left: 16px;
        padding: 48px 28px 28px 58px;
    }

    .education-route-nodes {
        top: 0;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .education-route-item {
        width: 100%;
    }

    .education-route-detail {
        margin: 12px 0 8px;
    }
}

@media (max-width: 720px) {
    .education-backbone {
        left: 25px;
    }
}

/* Footer */

.contact-cta {
    width: 100%;
    padding: clamp(32px, 4vw, 48px) clamp(24px, 7vw, 112px) 28px;
}

.contact-cta-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-cta-eyebrow {
    margin: 0;
    color: #16834f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    white-space: nowrap;
}

.contact-cta-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 3vw, 38px);
}

.contact-cta-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(22, 131, 79, 0.55);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.contact-cta-link i {
    width: 15px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 15px;
}

.contact-cta-link:not(.contact-cta-link-disabled):hover,
.contact-cta-link:not(.contact-cta-link-disabled):focus-visible {
    border-bottom-color: #24b85b;
    color: #16834f;
    transform: translateY(-2px);
    outline: none;
}

.contact-cta-link-primary {
    color: var(--text);
}

.contact-cta-link-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

@media (max-width: 720px) {
    .contact-cta {
        padding: 46px 20px 24px;
    }

    .contact-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .contact-cta-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .contact-cta-link {
        min-height: 48px;
        justify-content: flex-start;
    }
}

.site-footer {
    width: 100%;
    padding: 20px clamp(24px, 7vw, 112px) clamp(42px, 5vw, 62px);
    border-top: 0;
    background: transparent;
    color: var(--text);
}

.site-footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-name {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.site-footer-built {
    margin: 0;
    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .site-footer {
        padding: 24px 20px 42px;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
