:root {
    --bg: #f5efe2;
    --surface: #fffaf0;
    --surface-2: #efe5d4;
    --text: #141414;
    --muted: #4f4b43;
    --line: #d4c7af;
    --brand: #1f1f1f;
    --brand-soft: #2f2f2f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 14px;
    --transition: 0.25s ease;
}

:root.dark-mode {
    --bg: #131313;
    --surface: #1d1d1d;
    --surface-2: #222222;
    --text: #f4efe7;
    --muted: #c7bfb3;
    --line: #3a352d;
    --brand: #f3e7d1;
    --brand-soft: #d8c7ab;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 12px;
    transform: translateY(-140%);
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    text-decoration: none;
    z-index: 3000;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand);
    z-index: 2000;
    transition: width 0.1s linear;
}

.container {
    width: min(1150px, 92%);
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

#about.section {
    padding-top: 36px;
}

#experience.section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}

#skills.section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}

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

:root.dark-mode .section-alt {
    background: color-mix(in srgb, var(--surface-2) 95%, var(--text) 5%);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.section-intro {
    max-width: 820px;
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ── About ─────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 22px;
    align-items: start;
}

.about-card,
.about-side {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.about-side {
    align-self: center;
}

.about-intro-lead {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.about-body {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

.about-divider {
    height: 1px;
    background: var(--line);
    margin: 20px 0;
}

.about-edu-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

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

.about-edu-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}

.edu-logo-mark {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
}

.edu-logo-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}

.edu-logo-mark--queens,
.edu-logo-mark--smith {
    background: transparent;
}

.edu-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edu-info strong {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.3;
}

.edu-info span {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
}

.about-interests {
    display: grid;
    gap: 10px;
}

.about-interests-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-interests-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--line);
}

/* Gallery sidebar */
.about-gallery-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.about-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-gallery-view {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.about-gallery-view::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.about-gallery-item {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.about-gallery-item.is-active {
    opacity: 1;
    z-index: 1;
}

.about-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.about-gallery-item.is-active img {
    transform: scale(1.03);
}

.about-gallery-caption {
    position: relative;
    z-index: 3;
    margin: 0 12px 12px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
    letter-spacing: 0.02em;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 36px;
    height: 36px;
        width: 34px;
        height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #111;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.08);
}

.gallery-arrow--prev { left: 10px; }
.gallery-arrow--next { right: 10px; }

.about-gallery-dots {
    display: flex;
    gap: 7px;
    justify-content: center;
    align-items: center;
}

.about-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.25s ease;
}

.about-gallery-dot.is-active {
    width: 20px;
    opacity: 1;
    background: var(--text);
    border-color: var(--text);
}

.quick-stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.stat-card p {
    color: var(--muted);
    font-size: 0.88rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    width: min(1150px, 92%);
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    max-height: 100vh;
    overflow: hidden;
    transition: max-height 0.35s ease, transform 0.35s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

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

.nav-link.active {
    color: var(--text);
    border-bottom: 2px solid var(--brand);
    padding-bottom: 4px;
}

.theme-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
}

.hamburger {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
}

.hero {
    min-height: clamp(460px, 64vh, 620px);
    display: grid;
    align-items: center;
    padding: 20px 0 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--muted);
    margin-top: 10px;
}

.hero-description {
    margin-top: 16px;
    max-width: 650px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.hero-buttons {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--brand);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--brand-soft);
    color: var(--text);
}

.btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px dashed var(--line);
}

.btn-small {
    padding: 10px 12px;
    font-size: 0.88rem;
}

.hero-signature {
    margin-top: 18px;
    font-size: 1.5rem;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    color: var(--text);
    width: max-content;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--text);
    animation: typing 2.4s steps(18) 0.3s both, blink 0.7s step-end infinite;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    display: grid;
    place-items: center;
    background: var(--surface);
}

.social-icon:hover,
.social-icon:focus-visible {
    transform: translateY(-2px);
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.hero-photo-wrap {
    width: min(430px, 100%);
    aspect-ratio: 1 / 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.now-strip {
    padding: 10px 0 6px;
}

.now-strip-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    box-shadow: var(--shadow);
    padding: 8px 14px;
}

.now-strip-inner p {
    color: var(--muted);
    font-size: 0.92rem;
}

.now-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.results-strip {
    padding: 8px 0 0;
}

.results-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.result-chip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px 14px;
    display: grid;
    gap: 2px;
}

.result-chip-label {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.result-chip strong {
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-highlights,
.experience-grid,
.projects-grid,
.skills-grid,
.contact-grid {
    display: grid;
    gap: 22px;
}

.about-highlights {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight,
.experience-card,
.project-card,
.skill-category,
.contact-info,
.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.highlight,
.experience-card,
.project-card,
.skill-category,
.contact-info,
.contact-form,
.about-card,
.about-side,
.stat-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.highlight:hover,
.experience-card:hover,
.project-card:hover,
.skill-category:hover,
.about-card:hover,
.about-side:hover,
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), 0 0 0 1px color-mix(in srgb, var(--line) 40%, var(--text));
    border-color: color-mix(in srgb, var(--line) 35%, var(--text));
}

.highlight {
    padding: 20px;
}

.highlight i {
    margin-bottom: 10px;
}

.experience-grid {
    grid-template-columns: repeat(3, 1fr);
}

.experience-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.exp-filter-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition);
}

.exp-filter-btn:hover,
.exp-filter-btn.active {
    color: var(--text);
    border-color: color-mix(in srgb, var(--line) 60%, var(--text));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.exp-filter-btn[data-filter="internships"],
.exp-filter-btn[data-filter="clubs"] {
    font-weight: 800;
    background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--text)));
    border-width: 1.5px;
}

.exp-filter-btn[data-filter="internships"]:hover,
.exp-filter-btn[data-filter="clubs"]:hover,
.exp-filter-btn[data-filter="internships"].active,
.exp-filter-btn[data-filter="clubs"].active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 97%, var(--brand)), color-mix(in srgb, var(--surface) 90%, var(--brand)));
}

.experience-card {
    padding: 22px;
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 97%, var(--text)) 100%);
    border-left: 4px solid color-mix(in srgb, var(--line) 40%, var(--text));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--line);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    word-wrap: break-word;
}

.experience-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 85%, var(--text)) 100%);
    border: 2px solid color-mix(in srgb, var(--line) 70%, transparent);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.experience-logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.experience-card:hover .experience-logo::before {
    left: 100%;
}

.experience-card:hover .experience-logo {
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 75%, var(--text)) 0%, color-mix(in srgb, var(--surface-2) 65%, var(--text)) 100%);
    border-color: color-mix(in srgb, var(--line) 45%, var(--text));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.experience-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-header h3 {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text);
    background: linear-gradient(135deg, var(--text) 0%, color-mix(in srgb, var(--text) 80%, var(--muted)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.date-badge {
    font-size: 0.68rem;
    border: none;
    border-radius: 10px;
    padding: 6px 12px;
    white-space: nowrap;
    color: var(--text);
    font-weight: 800;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 90%, var(--text)) 0%, var(--surface-2) 100%);
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.date-badge:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 70%, var(--text)) 0%, color-mix(in srgb, var(--surface-2) 85%, var(--text)) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.company {
    font-weight: 800;
    margin: 10px 0 12px;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--text);
    letter-spacing: -0.02em;
    opacity: 0.95;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.highlights-list {
    padding-left: 28px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
    letter-spacing: -0.005em;
}

.highlights-list li {
    position: relative;
    padding-left: 4px;
}

.highlights-list li::marker {
    color: color-mix(in srgb, var(--muted) 60%, var(--text));
}

.highlights-list li + li {
    margin-top: 10px;
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.projects-grid .project-card:first-child,
.projects-grid .project-card:nth-child(2) {
    grid-column: span 1;
}

.projects-tools {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.project-search {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 10px;
    padding: 11px 12px;
}

.project-search:focus {
    outline: none;
    border-color: var(--text);
}

.projects-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--text);
    color: var(--text);
}

.filter-btn.filter-active {
    background: var(--brand);
    color: var(--bg);
    border-color: var(--brand);
}

.projects-empty {
    margin-top: 12px;
    color: var(--muted);
    font-weight: 600;
}

.project-card {
    padding: 0;
    display: grid;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 97%, var(--text)) 100%);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    word-wrap: break-word;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 8px;
    padding: 28px 28px 0 28px;
}

.project-header h3 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    background: linear-gradient(135deg, var(--text) 0%, color-mix(in srgb, var(--text) 75%, var(--muted)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 0;
    padding: 0 28px 28px 28px;
}

.project-tags span {
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 85%, var(--text)) 0%, var(--surface-2) 100%);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-media {
    aspect-ratio: 16 / 9;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 70%, var(--surface-2)), var(--surface));
    display: grid;
    place-items: center;
    margin: 0 28px 14px 28px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.project-media-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
    position: relative;
}

.project-media-link::after {
    content: 'View Project →';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

:root.dark-mode .project-media-link::after {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.project-media-link:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

:root.dark-mode .filter-btn.filter-active {
    background: var(--brand);
    color: #141414;
}

.project-media-link:hover {
    transform: translateY(-2px);
}

.project-media-link:hover .project-media {
    border-color: color-mix(in srgb, var(--line) 60%, var(--text));
}

.project-media-link:hover .project-media img {
    opacity: 0.85;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.project-media::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -30%;
    width: 60%;
    height: 200%;
    transform: rotate(28deg);
    background: rgba(255, 255, 255, 0.12);
}

.project-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 0 28px;
}

.featured-badge,
.status-badge {
    font-size: 0.7rem;
    border-radius: 10px;
    padding: 7px 16px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.featured-badge {
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 75%, var(--text)) 0%, var(--surface-2) 100%);
    color: var(--text);
}

.status-badge.in-progress {
    background: linear-gradient(135deg, #f8eacc 0%, #fef5e0 100%);
    color: #5a4522;
    font-weight: 900;
}

:root.dark-mode .status-badge.in-progress {
    background: linear-gradient(135deg, #5a4522 0%, #6b5228 100%);
    color: #f8eacc;
    font-weight: 900;
}

.status-badge.production {
    background: linear-gradient(135deg, #dcefe2 0%, #ebf7ef 100%);
    color: #23462f;
    font-weight: 900;
}

.featured-badge:hover,
.status-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

:root.dark-mode .status-badge.production {
    background: linear-gradient(135deg, #23462f 0%, #2d5739 100%);
    color: #dcefe2;
    font-weight: 900;
}

.project-card.featured {
    border-color: color-mix(in srgb, var(--line) 30%, var(--text));
    border-width: 2px;
    border-top: 3px solid color-mix(in srgb, var(--line) 25%, var(--text));
}

.project-media span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.project-content h3 {
    margin: 0;
}

.project-content p {
    color: var(--text);
    margin: 0 0 6px 0;
    font-weight: 500;
    line-height: 1.8;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    padding: 0 28px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-link {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid color-mix(in srgb, var(--line) 50%, var(--text));
    transition: all 0.25s ease;
}

.project-link:hover {
    border-bottom-color: var(--text);
    opacity: 0.9;
}

.hack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.hack-card {
    background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 97%, var(--text)) 100%);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 24px;
    display: grid;
    gap: 14px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid color-mix(in srgb, var(--line) 45%, var(--text));
    overflow: hidden;
    word-wrap: break-word;
}

.hack-media {
    --hack-media-fit: cover;
    --hack-media-position: center;
    --hack-media-scale: 1;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 85%, var(--text)) 0%, var(--surface-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.hack-media-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
    position: relative;
}

.hack-media-link::after {
    content: 'View Repo →';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

:root.dark-mode .hack-media-link::after {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hack-media-link:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hack-media-link:hover {
    transform: translateY(-3px);
}

.hack-media-link:hover .hack-media {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.hack-media-link:hover .hack-media img {
    opacity: 0.85;
}

.hack-media img {
    width: 100%;
    height: 100%;
    object-fit: var(--hack-media-fit);
    object-position: var(--hack-media-position);
    display: block;
    transition: opacity 0.35s ease;
}

.hack-media--arizona {
    --hack-media-fit: cover;
    --hack-media-position: center 42%;
}

.hack-media--voice {
    --hack-media-fit: cover;
    --hack-media-position: center 50%;
}

.hack-media--miami {
    --hack-media-fit: cover;
    --hack-media-position: center 45%;
}

.hack-media--landlord {
    --hack-media-fit: cover;
    --hack-media-position: center;
    --hack-media-scale: 1;
}

.hack-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 24px;
    row-gap: 0;
    margin-bottom: 8px;
}

.hack-header > div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.hack-card h3 {
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.25;
    min-height: auto;
    font-weight: 800;
    color: var(--text);
    background: linear-gradient(135deg, var(--text) 0%, color-mix(in srgb, var(--text) 75%, var(--muted)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hack-body {
    display: grid;
    gap: 14px;
}

.hack-meta {
    color: var(--text);
    font-size: 0.98rem;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    font-size: 0.7rem;
}

.hack-highlight {
    color: var(--text);
    font-weight: 500;
    line-height: 1.7;
    font-size: 0.92rem;
    margin: 0;
    letter-spacing: -0.01em;
    opacity: 0.95;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.hack-tags span,
.article-tags span,
.skill-tags span {
    border: none;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.74rem;
    color: var(--text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 85%, var(--text)) 0%, var(--surface-2) 100%);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hack-tags span:hover,
.article-tags span:hover,
.skill-tags span:hover,
.project-tags span:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 65%, var(--text)) 0%, color-mix(in srgb, var(--surface-2) 75%, var(--text)) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.hack-list {
    color: var(--muted);
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.hack-link {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid color-mix(in srgb, var(--line) 50%, var(--text));
    width: fit-content;
    transition: all 0.25s ease;
}

.hack-link:hover {
    border-bottom-color: var(--text);
    opacity: 0.9;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 80%, var(--text)) 0%, var(--surface-2) 100%);
    color: var(--text);
    font-weight: 900;
    font-size: 0.72rem;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
}

.link-pill:hover {
    transform: translateY(-4px) scale(1.03);
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 60%, var(--text)) 0%, color-mix(in srgb, var(--surface-2) 75%, var(--text)) 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.article-card {
    background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 97%, var(--text)) 100%);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-top: 3px solid color-mix(in srgb, var(--line) 45%, var(--text));
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(210px, 240px) 1fr;
    gap: 20px;
    align-items: start;
}

.article-media {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    background: var(--surface-2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.article-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 14px;
    z-index: 1;
    pointer-events: none;
}

.article-media::after {
    content: 'View Repo →';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

:root.dark-mode .article-media::after {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.article-media-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.article-media-link:hover .article-media::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.article-media-link:hover .article-media img {
    opacity: 0.95;
}

.article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.article-body {
    display: grid;
    gap: 12px;
}

.article-body a {
    text-decoration: underline;
    color: var(--brand);
}

.article-header h3 {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1.3;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.article-meta {
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.article-summary {
    color: var(--muted);
    line-height: 1.7;
}

.article-link {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed var(--line);
    width: fit-content;
}

.article-link:hover {
    border-bottom-color: var(--text);
}

@media (max-width: 720px) {
    .article-card {
        grid-template-columns: 1fr;
    }

    .article-media {
        min-height: 180px;
    }
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-category {
    padding: 18px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-2) 50%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}

.skill-category h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

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

.skills-grid.modern {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.skills-hero {
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
}

.skills-hero h3 {
    margin-bottom: 4px;
}

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

.skill-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.skill-head span {
    font-size: 0.68rem;
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--surface-2);
}

.skill-meter + .skill-meter {
    margin-top: 8px;
}

.skill-meter label {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.skill-meter-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-2) 85%, var(--text));
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    overflow: hidden;
}

.skill-meter-fill {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--text), color-mix(in srgb, var(--text) 55%, var(--surface)));
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-category.in-view .skill-meter-fill {
    width: var(--level);
    animation: fillBounce 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tags span {
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.74rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 85%, var(--text)) 100%);
    font-weight: 600;
}

.skill-list {
    color: var(--muted);
    padding-left: 18px;
}

.skill-list li + li {
    margin-top: 6px;
}

.skills-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-grid {
    grid-template-columns: 1fr 1.15fr;
}

.contact-info {
    padding: 20px;
}

.contact-info h3 {
    margin-bottom: 8px;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 14px;
}

.contact-points {
    list-style: none;
    display: grid;
    gap: 10px;
}

.contact-points li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
}

.contact-points i {
    width: 20px;
    color: var(--text);
}

.contact-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info p + p {
    margin-top: 10px;
}

.contact-info a {
    color: var(--text);
}

.contact-form {
    padding: 20px;
    display: grid;
    gap: 10px;
}

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

.form-input,
.form-textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 12px;
    border-radius: 10px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

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

.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: none;
}

.form-input.has-error,
.form-textarea.has-error {
    border-color: #b53030;
}

.form-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-status.success {
    color: #226139;
    animation: slideSuccess 0.5s ease;
}

.form-status.error {
    color: #912d2d;
}

@keyframes slideSuccess {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    min-height: 120px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
    align-content: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column.footer-center {
    align-items: center;
}

.footer-column.footer-right {
    align-items: flex-end;
}

.footer-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.25s ease;
}

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

.footer-nav a:hover::after {
    width: 100%;
}

.footer-nav a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.footer-links {
    display: flex;
    gap: 8px;
}

.footer-links a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    display: grid;
    place-items: center;
    color: var(--text);
    transition: var(--transition);
}

.footer-links a:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.footer-credit {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
}

.resume-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 1500;
    padding: 18px;
}

.resume-modal.open {
    display: flex;
}

.resume-modal-content {
    width: min(980px, 96vw);
    height: min(82vh, 820px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto 1fr;
}

.resume-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.resume-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.resume-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

#scrollTopBtn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    display: inline-grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1200;
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

    .reveal,
    .hero-signature,
    .btn,
    .project-card,
    .experience-card {
        transition: none;
        animation: none;
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 13ch; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes fillBounce {
    0% {
        width: 0;
    }
    100% {
        width: var(--level);
    }
}

@media (max-width: 1200px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

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

    .hero-photo-wrap {
        width: min(340px, 100%);
    }

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

    .now-strip-inner {
        border-radius: 14px;
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

@media (max-width: 840px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        right: 4%;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        min-width: 200px;
        max-height: 0;
        overflow: hidden;
        transform: scaleY(0);
        transform-origin: top;
    }

    .nav-menu.open {
        max-height: 500px;
        transform: scaleY(1);
    }

    .hero-buttons {
        gap: 8px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        padding: 14px 0;
    }
}

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

    #about.section {
        padding-top: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-signature {
        font-size: 1.25rem;
    }

    .projects-tools {
        flex-direction: column;
    }

    .experience-grid,
    .projects-grid,
    .hack-grid {
        grid-template-columns: 1fr;
    }

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

    .resume-modal-content {
        height: 88vh;
    }

    .resume-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 0;
        min-height: auto;
    }

    .footer-column,
    .footer-column.footer-center,
    .footer-column.footer-right {
        align-items: flex-start;
    }

    .footer-nav {
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
    }

    .footer-nav a {
        font-size: 0.88rem;
    }

    .footer-links {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-buttons {
        gap: 8px;
    }
}