/* Root Variables */
:root {
    --maroon: #f4f4f4;
    --maroon-dark: #191919;
    --maroon-light: #ffffff;
    --accent: #ffffff;
    --accent-warm: #b8b8b8;
    --text-dark: #f7f7f7;
    --text-gray: #c8c8c8;
    --bg-body: #050505;
    --bg-light: #0d0d0d;
    --bg-white: #171717;
    --surface-strong: #222222;
    --glass: rgba(255, 255, 255, 0.075);
    --glass-strong: rgba(255, 255, 255, 0.11);
    --border: rgba(255, 255, 255, 0.1);
    --nav-bg: linear-gradient(180deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.52) 68%, rgba(5, 5, 5, 0));
    --nav-bg-strong: rgba(5, 5, 5, 0.9);
    --shadow: rgba(0, 0, 0, 0.34);
    --shadow-hover: rgba(0, 0, 0, 0.52);
    --radius-lg: 26px;
    --radius-xl: 38px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background:
        radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.075), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.055), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.045), transparent 30%),
        linear-gradient(180deg, #070707 0%, #050505 48%, #020202 100%);
    color-scheme: dark;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 70%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 70%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    transform: translateY(-150%);
    background: var(--accent);
    color: #050505;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

#main-content:focus {
    outline: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem clamp(1rem, 4vw, 3rem);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    z-index: 5000;
    pointer-events: auto;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav-container.is-scrolled {
    background: rgba(8, 7, 11, 0.9);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

.nav-logo {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.nav-container.is-scrolled .nav-logo {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-gray);
    position: relative;
}

.nav-container.is-scrolled .nav-links a {
    color: rgba(255, 247, 240, 0.74);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.08);
}

.nav-container.is-scrolled .nav-links a:hover,
.nav-container.is-scrolled .nav-links a.active {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.11);
}

.nav-links a::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-container.is-scrolled .mobile-menu-toggle span {
    background: var(--text-dark);
}

/* Hero Section */
.hero {
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.12), transparent 31%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.075), transparent 30%),
        radial-gradient(circle at 56% 84%, rgba(255, 255, 255, 0.045), transparent 26%),
        linear-gradient(145deg, #0a0a0a 0%, #101010 44%, #030303 100%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 96px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero::before {
    inset: 9% auto auto 5%;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    filter: blur(90px);
    opacity: 0.9;
    z-index: -2;
}

.hero::after {
    inset: auto -8rem -10rem auto;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    filter: blur(100px);
    z-index: -2;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 620px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) 2rem 5rem;
    text-align: left;
    width: 100%;
}

.hero-photo-shell {
    position: relative;
    width: min(38vw, 460px);
    min-width: 320px;
    margin: 0;
    padding: 0;
    border-radius: 42px;
    background: transparent;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 255, 255, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hero-photo-shell::before,
.hero-photo-shell::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero-photo-shell::before {
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.11), transparent 18%);
    mix-blend-mode: screen;
    opacity: 0.18;
    z-index: 2;
}

.hero-photo-shell::after {
    display: none;
}

.hero-profile-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.hero-photo-shell picture {
    display: block;
}

.hero-photo-caption {
    position: absolute;
    left: clamp(0.75rem, 2vw, 1rem);
    bottom: clamp(0.75rem, 2vw, 1rem);
    z-index: 3;
    display: grid;
    gap: 0.12rem;
    max-width: calc(100% - 4.8rem);
    padding: 0.62rem 0.78rem;
    border-radius: 14px;
    background: rgba(5, 5, 5, 0.58);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    color: #fff;
    line-height: 1.2;
}

.hero-photo-caption strong {
    font-size: clamp(0.75rem, 1.35vw, 0.88rem);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.hero-photo-caption span {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.62rem, 1.1vw, 0.72rem);
}

.image-download-button {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    background: rgba(8, 7, 11, 0.64);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    color: var(--text-dark);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    transition: opacity 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.hero-photo-shell:hover .image-download-button,
.hero-photo-shell:focus-within .image-download-button,
.about-portrait-card:hover .image-download-button,
.about-portrait-card:focus-within .image-download-button {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.image-download-button:hover,
.image-download-button:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-dark);
}

.hero-copy {
    position: relative;
    padding: clamp(1.4rem, 3.2vw, 2.25rem);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
        rgba(12, 10, 17, 0.54);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
    box-shadow:
        0 30px 95px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.hero-copy::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-xl) - 1px);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 34%);
    pointer-events: none;
}

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

.hero-eyebrow {
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.105);
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.075em;
    line-height: 0.92;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.94);
    max-width: 520px;
    line-height: 1.28;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 570px;
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1.65rem;
    padding: 0;
    list-style: none;
    min-height: 4.2rem;
}

.hero-proof-item {
    display: grid;
    gap: 0.1rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-proof-item strong {
    color: var(--accent);
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1;
}

.hero-proof-item span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0 0 1.65rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.875rem 1.3rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #d8d8d8);
    color: #050505;
    box-shadow: 0 16px 38px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-start;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.13);
}

/* Sections */
.section {
    padding: clamp(4.75rem, 7vw, 7rem) 0;
    position: relative;
}

.section-alt {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008));
}

.section-title {
    font-size: clamp(2.15rem, 4vw, 3.3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    letter-spacing: -0.055em;
}

.section-title::after {
    content: '';
    display: block;
    width: 84px;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon) 0%, var(--accent) 100%);
    border-radius: 999px;
    margin: 1rem auto 0;
}

.section-intro {
    max-width: 860px;
    margin: -1.6rem auto 2.4rem;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.72;
    text-align: center;
}

/* About Section */
.about-content {
    display: grid;
    gap: 2.5rem;
}

.about-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    grid-template-areas: "about-text about-portrait";
    gap: clamp(1.5rem, 3vw, 2.25rem);
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto;
}

.about-text {
    grid-area: about-text;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: none;
    margin: 0;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.025);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.19);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-portrait-card {
    grid-area: about-portrait;
    position: relative;
    align-self: stretch;
    justify-self: center;
    width: min(100%, 390px);
    margin: 0;
    padding: 0.65rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    isolation: isolate;
    animation: portraitDrift 7s ease-in-out infinite;
}

.about-portrait-card::before,
.about-portrait-card::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.about-portrait-card::before {
    inset: -38%;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.075), transparent 30%);
    filter: blur(18px);
    opacity: 0.72;
}

.about-portrait-card::after {
    inset: 0.65rem;
    border-radius: calc(var(--radius-lg) - 8px);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(255, 255, 255, 0.04));
    mix-blend-mode: screen;
    opacity: 0.34;
}

.about-portrait-picture {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
}

.about-portrait-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.grid-row-fill {
    grid-column-end: span var(--grid-row-fill-span, 1);
}

.skill-category h3 {
    font-size: 1.25rem;
    color: var(--maroon-light);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    appearance: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.075);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.skill-pill:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.skill-overlay-open,
.project-media-overlay-open {
    overflow: hidden;
}

.skill-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.skill-overlay[hidden] {
    display: none;
}

.skill-overlay-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.09), transparent 34%),
        rgba(4, 3, 7, 0.72);
    backdrop-filter: blur(16px);
}

.skill-overlay-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(720px, 88vh);
    overflow: auto;
    border-radius: 28px;
    padding: clamp(1.35rem, 4vw, 2rem);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055)),
        rgba(14, 14, 20, 0.92);
    color: var(--text-dark);
    box-shadow:
        0 36px 120px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.skill-overlay-panel:focus {
    outline: none;
}

.skill-overlay-close {
    appearance: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    font: inherit;
    font-weight: 800;
    transition: all 0.25s ease;
}

.skill-overlay-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-dark);
}

.skill-overlay-eyebrow,
.skill-overlay-label {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.skill-overlay-title {
    margin: 0.55rem 3rem 0.75rem 0;
    color: var(--text-dark);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.skill-overlay-description {
    color: var(--text-gray);
    line-height: 1.72;
}

.skill-overlay-related {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-overlay-label {
    margin-bottom: 0.7rem;
}

.skill-overlay-work-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.skill-overlay-work-list li {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.skill-overlay-work-list a {
    color: var(--text-dark);
    font-weight: 800;
    text-decoration: none;
}

.skill-overlay-work-list a:hover {
    color: var(--accent);
}

.skill-overlay-work-list span,
.skill-overlay-empty {
    color: var(--text-gray);
    font-size: 0.92rem;
}

.skill-overlay-work-list .skill-overlay-project-name {
    color: var(--text-dark);
    font-weight: 800;
}

.skill-overlay-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #050505;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.skill-overlay-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.project-media-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 3vw, 2rem);
}

.project-media-overlay[hidden] {
    display: none;
}

.project-media-overlay-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.1), transparent 30rem),
        rgba(2, 2, 2, 0.86);
    -webkit-backdrop-filter: blur(20px) saturate(115%);
    backdrop-filter: blur(20px) saturate(115%);
}

.project-media-overlay-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
    width: min(1180px, 100%);
    max-height: min(860px, 92vh);
    overflow: hidden;
    border-radius: clamp(24px, 3vw, 36px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        #090909;
    color: var(--text-dark);
    box-shadow:
        0 42px 140px rgba(0, 0, 0, 0.72),
        inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.project-media-overlay-panel:focus {
    outline: none;
}

.project-media-overlay-visual {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.75rem;
    min-height: min(72vh, 720px);
    padding: clamp(0.75rem, 2vw, 1.4rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.1), transparent 48%),
        #030303;
}

.project-media-overlay-stage {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 0;
    place-items: center;
}

.project-media-overlay-stage > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(68vh, 690px);
    object-fit: contain;
    border-radius: clamp(14px, 2vw, 24px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    transition: opacity 0.28s ease;
}

.project-media-overlay-stage.is-capture {
    height: min(68vh, 690px);
    overflow: hidden;
    border-radius: clamp(14px, 2vw, 24px);
    background: #f4f4f2;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    overscroll-behavior: contain;
}

.project-media-overlay-stage.is-capture > img {
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.project-media-overlay-stage.is-capture-ready > img {
    opacity: 0;
    pointer-events: none;
}

.project-media-overlay-capture {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.project-media-overlay-capture[hidden] {
    display: none;
}

.project-media-overlay-stage.is-capture-ready .project-media-overlay-capture {
    opacity: 1;
    pointer-events: auto;
}

.project-media-overlay-capture-status {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    background: rgba(4, 4, 4, 0.76);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    pointer-events: none;
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
}

.project-media-overlay-capture-status[hidden] {
    display: none;
}

.project-media-overlay-nav {
    appearance: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(4, 4, 4, 0.72);
    color: #fff;
    cursor: pointer;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-media-overlay-nav[hidden] {
    display: none;
}

.project-media-overlay-previous {
    left: 0.9rem;
}

.project-media-overlay-next {
    right: 0.9rem;
}

.project-media-overlay-nav:hover,
.project-media-overlay-nav:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    color: #050505;
    transform: translateY(-50%) scale(1.06);
}

.project-media-overlay-nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.project-media-overlay-count {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 2;
    margin: 0;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    background: rgba(4, 4, 4, 0.72);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.project-media-overlay-thumbnails {
    display: flex;
    width: 100%;
    gap: 0.5rem;
    padding: 0.1rem 0.15rem 0.35rem;
    overflow-x: auto;
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.project-media-overlay-thumbnails[hidden] {
    display: none;
}

.project-media-overlay-thumbnail {
    appearance: none;
    flex: 0 0 5.5rem;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #080808;
    cursor: pointer;
    opacity: 0.52;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-media-overlay-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-media-overlay-thumbnail:hover,
.project-media-overlay-thumbnail.is-active {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.92),
        0 8px 20px rgba(0, 0, 0, 0.35);
}

.project-media-overlay-thumbnail:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.project-media-overlay-copy {
    align-self: center;
    padding: clamp(2rem, 4vw, 3.6rem);
}

.project-media-overlay-project {
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-media-overlay-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.project-media-overlay-description {
    margin: 0;
    color: var(--text-gray);
    font-size: clamp(0.98rem, 1.5vw, 1.1rem);
    line-height: 1.72;
}

.project-media-overlay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.55rem;
}

.project-media-overlay-action {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-media-overlay-action[hidden] {
    display: none;
}

.project-media-overlay-action-primary {
    background: #fff;
    color: #050505;
}

.project-media-overlay-action:hover,
.project-media-overlay-action:focus-visible {
    background: rgba(255, 255, 255, 0.94);
    color: #050505;
    transform: translateY(-2px);
}

.project-media-overlay-action:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.project-media-overlay-close {
    appearance: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.72);
    color: #fff;
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.project-media-overlay-close:hover,
.project-media-overlay-close:focus-visible {
    background: rgba(255, 255, 255, 0.94);
    color: #050505;
}

.project-media-overlay-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .project-media-overlay {
        align-items: start;
        overflow-y: auto;
    }

    .project-media-overlay-panel {
        grid-template-columns: 1fr;
        max-height: none;
        overflow: visible;
    }

    .project-media-overlay-visual {
        min-height: 0;
        padding: 0.65rem;
    }

    .project-media-overlay-stage > img {
        max-height: 50vh;
    }

    .project-media-overlay-stage.is-capture {
        height: min(58svh, 620px);
        min-height: 24rem;
    }

    .project-media-overlay-stage.is-capture > img {
        max-height: none;
    }

    .project-media-overlay-capture-status {
        top: 0.55rem;
        left: 0.55rem;
        max-width: calc(100% - 7rem);
        font-size: 0.65rem;
    }

    .project-media-overlay-nav {
        width: 2.45rem;
        height: 2.45rem;
    }

    .project-media-overlay-previous {
        left: 0.55rem;
    }

    .project-media-overlay-next {
        right: 0.55rem;
    }

    .project-media-overlay-count {
        right: 0.55rem;
        bottom: 0.55rem;
    }

    .project-media-overlay-thumbnail {
        flex-basis: 4.7rem;
    }

    .project-media-overlay-copy {
        padding: 1.7rem 1.4rem 2rem;
    }

    .project-media-overlay-close {
        top: 0.8rem;
        right: 0.8rem;
    }
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    display: none;
}

.timeline-content {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.024)),
        rgba(255, 255, 255, 0.018);
    padding: clamp(1.35rem, 2.5vw, 1.8rem);
    border-radius: var(--radius-lg);
    border: none;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.timeline-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-company {
    color: var(--maroon-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
}

.timeline-list li {
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 0.5rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--maroon-light) 0%, var(--accent) 100%);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.024)),
        rgba(255, 255, 255, 0.018);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-6px);
}

.project-card-case-study {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 46%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.028)),
        rgba(255, 255, 255, 0.024);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.project-header-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.project-type {
    color: var(--maroon-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-case-study-outcome {
    margin-bottom: 1.35rem;
    color: var(--text-dark);
    line-height: 1.65;
    font-weight: 600;
}

.project-highlights {
    display: grid;
    gap: 0.45rem;
    margin: -0.35rem 0 1.35rem;
    padding: 0;
    list-style: none;
}

.project-highlights li {
    position: relative;
    padding-left: 1.05rem;
    color: var(--text-gray);
    font-size: 0.94rem;
    line-height: 1.5;
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68rem;
    width: 0.45rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.075);
    color: var(--text-gray);
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.project-tag:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.education-card {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.024)),
        rgba(255, 255, 255, 0.018);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-align: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-6px);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.education-honors {
    color: var(--maroon-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--maroon-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.education-location {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-gpa {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.education-honors-list {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Contact */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.065);
    border: none;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.075));
    color: var(--text-dark);
    transform: translateX(5px);
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item span {
    font-weight: 500;
}

/* Footer */
.footer {
    background: #06050a;
    color: var(--text-gray);
    border-top: none;
    padding: 2rem 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (hover: none), (max-width: 768px) {
    .image-download-button {
        opacity: 1;
        transform: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.25rem);
        left: 1rem;
        right: 1rem;
        background: var(--nav-bg-strong);
        -webkit-backdrop-filter: blur(22px);
        backdrop-filter: blur(22px);
        border: none;
        border-radius: 24px;
        flex-direction: column;
        padding: 0.75rem;
        box-shadow: 0 24px 70px var(--shadow);
        gap: 0.25rem;
    }

    .nav-container.is-scrolled .nav-links {
        background: rgba(8, 7, 11, 0.94);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .hero-photo-shell {
        grid-row: auto;
        width: clamp(300px, 62vw, 360px);
        min-width: 0;
        margin: 0 auto;
        border-radius: 38px;
    }

    .hero-profile-image {
        border-radius: inherit;
    }

    .hero-copy {
        text-align: center;
        padding: 1.35rem;
        border-radius: 30px;
    }

    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.72rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 360px;
        margin: 0 auto 2rem;
    }

    .hero-proof {
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 360px;
        margin: 0 auto 2rem;
    }

    .hero-social {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .about-feature {
        grid-template-columns: 1fr;
        grid-template-areas:
            "about-portrait"
            "about-text";
    }

    .about-text {
        order: 2;
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-portrait-card {
        order: 1;
        align-self: center;
        width: min(100%, 380px);
        min-height: auto;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
    }

    .about-portrait-picture {
        height: 100%;
    }

    .about-portrait-image {
        height: 100%;
        object-fit: cover;
        min-height: 0;
    }

    .image-download-button {
        opacity: 1;
        transform: none;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content,
    .project-card,
    .education-card {
        padding: 1.5rem;
    }

    .project-header {
        align-items: flex-start;
    }

    .project-header h3 {
        font-size: 1.3rem;
    }
    
    .skills-grid,
    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        justify-content: flex-start;
        text-align: left;
    }
}

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

    .nav-logo {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.45rem;
    }

    .hero-photo-shell {
        width: clamp(270px, 72vw, 300px);
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-content {
        padding: 2.5rem 1rem;
    }

    .skill-overlay {
        align-items: end;
        padding: 0.75rem;
    }

    .skill-overlay-panel {
        max-height: 86vh;
        border-radius: 24px;
        padding: 1.35rem;
    }

    .skill-overlay-title {
        margin-right: 2.5rem;
    }

    .hero-description,
    .hero-buttons,
    .hero-proof {
        max-width: 330px;
    }

    .hero-proof {
        grid-template-columns: 1fr;
        min-height: 10rem;
    }

    .hero-copy {
        padding: 1.1rem;
        border-radius: 26px;
    }
    
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.25rem;
    }

    .timeline-content,
    .project-card,
    .education-card,
    .about-text {
        padding: 1.25rem;
    }

    .about-portrait-card {
        border-radius: 24px;
    }

    .about-portrait-picture,
    .about-portrait-image {
        border-radius: 18px;
    }

    .project-header {
        gap: 0.75rem;
    }

    .project-header h3,
    .education-card h3,
    .timeline-header h3 {
        font-size: 1.1rem;
    }

    .skill-tags {
        gap: 0.4rem;
    }

    .skill-pill,
    .project-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .contact-item {
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .contact-item span {
        font-size: 0.95rem;
    }
}

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

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

/* 2026 editorial product refresh */
:root {
    --page-max: 1280px;
    --hairline: rgba(255, 255, 255, 0.14);
    --muted: rgba(255, 255, 255, 0.64);
    --muted-strong: rgba(255, 255, 255, 0.78);
    --glass-panel: rgba(255, 255, 255, 0.055);
}

body {
    background: #030303;
}

body::before {
    background: none;
}

.container {
    max-width: var(--page-max);
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.nav-container {
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.nav-container.is-scrolled {
    background: rgba(3, 3, 3, 0.84);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    backdrop-filter: blur(28px) saturate(150%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.nav-logo {
    font-size: 1.08rem;
    letter-spacing: -0.035em;
}

.nav-links {
    gap: 0.15rem;
}

.nav-links a {
    min-height: 2.75rem;
    padding: 0.55rem 0.78rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.86rem;
}

.nav-links a:hover,
.nav-links a.active,
.nav-container.is-scrolled .nav-links a:hover,
.nav-container.is-scrolled .nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.hero {
    min-height: 100svh;
    padding-top: 84px;
    background: #050505;
}

.hero::before {
    display: none;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.11), transparent 25rem),
        radial-gradient(circle at 8% 76%, rgba(255, 255, 255, 0.04), transparent 22rem),
        linear-gradient(145deg, #030303 0%, #090909 58%, #020202 100%);
}

.hero::after {
    display: none;
}

.hero-content {
    grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.2fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    max-width: 1380px;
    padding: clamp(2.5rem, 6vh, 5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 7vh, 5rem);
}

.hero-copy {
    padding: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    overflow: visible;
}

.hero-copy::before {
    display: none;
}

.hero-kicker,
.section-kicker {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-kicker {
    margin-bottom: 1.35rem;
}

.hero-title {
    max-width: 720px;
    margin-bottom: 1rem;
    font-size: clamp(4rem, 7.2vw, 7.4rem);
    font-weight: 600;
    letter-spacing: -0.085em;
    line-height: 0.88;
    text-shadow: none;
}

.hero-subtitle {
    max-width: 590px;
    margin-bottom: 1rem;
    font-size: clamp(1.65rem, 2.8vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.hero-description {
    max-width: 540px;
    margin-bottom: 1.75rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.7;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.btn {
    min-height: 3.25rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-size: 0.94rem;
}

.btn-primary {
    background: #fff;
    color: #050505;
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    background: #e8e8e8;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.11);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.065);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    min-height: 0;
    margin-bottom: 1.5rem;
    border-block: 1px solid var(--hairline);
}

.hero-proof-item {
    padding: 1rem 0.8rem 1rem 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.hero-proof-item + .hero-proof-item {
    padding-left: 0.8rem;
    border-left: 1px solid var(--hairline);
}

.hero-proof-item strong {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.hero-proof-item span {
    color: var(--muted);
    font-size: 0.7rem;
}

.hero-social a {
    width: 2.75rem;
    height: 2.75rem;
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.hero-collage {
    display: grid;
    grid-template-columns: minmax(300px, 1.6fr) minmax(155px, 0.82fr);
    align-items: center;
    gap: clamp(0.9rem, 2vw, 1.35rem);
    min-width: 0;
}

.hero-photo-shell {
    width: 100%;
    min-width: 0;
    border-radius: clamp(26px, 3vw, 40px);
    background: rgba(255, 255, 255, 0.025);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-photo-shell::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 26%);
    opacity: 0.14;
}

.hero-profile-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-focus-stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-self: stretch;
    gap: clamp(0.9rem, 2vw, 1.35rem);
}

.hero-focus-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 0;
    padding: clamp(1.15rem, 2vw, 1.55rem);
    border-radius: 24px;
    background: #101010;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.hero-focus-card::before {
    display: none;
}

.hero-focus-card-strong {
    background: #111111;
}

.hero-workflow-card {
    gap: 0.55rem;
}

.hero-workflow-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-workflow-heading .hero-focus-label {
    margin: 0;
}

.hero-workflow-graphic {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-height: 104px;
    overflow: visible;
}

.hero-workflow-path,
.hero-workflow-surge,
.hero-workflow-output-connector,
.hero-workflow-output-mark {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-workflow-path {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
}

.hero-workflow-surge {
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 2.6;
    stroke-dasharray: 0.18 1;
    stroke-dashoffset: 0.18;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.82));
    animation-duration: 7.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.hero-workflow-surge-in {
    animation-name: hero-workflow-surge-in;
}

.hero-workflow-surge-out {
    animation-name: hero-workflow-surge-out;
}

.hero-workflow-surge-final {
    animation-name: hero-workflow-surge-final;
}

.hero-workflow-surge-entry {
    stroke: #080808;
    filter: none;
    animation-name: hero-workflow-surge-entry;
}

.hero-workflow-node {
    fill: rgba(255, 255, 255, 0.055);
    stroke: rgba(255, 255, 255, 0.58);
    stroke-width: 2;
}

.hero-workflow-avatar {
    filter: saturate(0.92) contrast(1.04);
}

.hero-workflow-chatgpt-mark,
.hero-workflow-grok-mark,
.hero-workflow-spark {
    opacity: 0.38;
    transform-box: fill-box;
    transform-origin: center;
    animation: hero-workflow-logo-activate 7.5s ease-in-out infinite both;
}

.hero-workflow-spark {
    fill: #fff;
}

.hero-workflow-branch-grok {
    animation-delay: 2.5s;
}

.hero-workflow-branch-chatgpt {
    animation-delay: 5s;
}

.hero-workflow-output {
    fill: #fff;
    stroke: rgba(255, 255, 255, 0);
    stroke-width: 0;
    animation: hero-workflow-output-glow 2.5s ease-in-out 2.55s infinite both;
}

.hero-workflow-output-connector {
    stroke: rgba(8, 8, 8, 0.28);
    stroke-width: 2.4;
}

.hero-workflow-output-mark {
    stroke: #080808;
    stroke-width: 4;
}

.hero-workflow-delivery {
    transform-box: fill-box;
    transform-origin: center;
    animation: hero-workflow-delivery-activate 2.5s ease-in-out 2.55s infinite both;
    will-change: filter, transform;
}

@keyframes hero-workflow-surge-in {
    0% {
        opacity: 0;
        stroke-dashoffset: 0.18;
    }

    2% {
        opacity: 1;
    }

    12% {
        opacity: 1;
        stroke-dashoffset: -0.82;
    }

    14%,
    100% {
        opacity: 0;
        stroke-dashoffset: -0.82;
    }
}

@keyframes hero-workflow-surge-out {
    0%,
    18% {
        opacity: 0;
        stroke-dashoffset: 0.18;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 1;
        stroke-dashoffset: -0.82;
    }

    27%,
    100% {
        opacity: 0;
        stroke-dashoffset: -0.82;
    }
}

@keyframes hero-workflow-surge-final {
    0%,
    23% {
        opacity: 0;
        stroke-dashoffset: 0.18;
    }

    25% {
        opacity: 1;
    }

    31% {
        opacity: 1;
        stroke-dashoffset: -0.82;
    }

    33%,
    100% {
        opacity: 0;
        stroke-dashoffset: -0.82;
    }
}

@keyframes hero-workflow-logo-activate {
    0%,
    10%,
    20%,
    100% {
        opacity: 0.38;
        filter: none;
        transform: scale(0.94);
    }

    12%,
    17% {
        opacity: 1;
        filter:
            drop-shadow(0 0 3px rgba(255, 255, 255, 0.98))
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.76));
        transform: scale(1.13);
    }
}

@keyframes hero-workflow-surge-entry {
    0%,
    29% {
        opacity: 0;
        stroke-dashoffset: 0.18;
    }

    31% {
        opacity: 1;
    }

    34% {
        opacity: 1;
        stroke-dashoffset: -0.82;
    }

    36%,
    100% {
        opacity: 0;
        stroke-dashoffset: -0.82;
    }
}

@keyframes hero-workflow-delivery-activate {
    0%,
    100% {
        filter: none;
        transform: scale(1);
    }

    18% {
        filter:
            drop-shadow(0 0 5px rgba(255, 255, 255, 0.98))
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.72));
        transform: scale(1.08);
    }

    34% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.48));
        transform: scale(1.04);
    }

    54% {
        filter: none;
        transform: scale(1);
    }
}

@keyframes hero-workflow-output-glow {
    0%,
    100% {
        stroke: rgba(255, 255, 255, 0);
        stroke-width: 0;
    }

    18% {
        stroke: rgba(255, 255, 255, 0.96);
        stroke-width: 4;
    }

    34% {
        stroke: rgba(255, 255, 255, 0.42);
        stroke-width: 3;
    }

    54% {
        stroke: rgba(255, 255, 255, 0);
        stroke-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-workflow-surge {
        display: none;
    }

    .hero-workflow-chatgpt-mark,
    .hero-workflow-grok-mark,
    .hero-workflow-spark,
    .hero-workflow-output,
    .hero-workflow-delivery {
        animation: none;
        filter: none;
        transform: none;
    }

    .hero-workflow-chatgpt-mark,
    .hero-workflow-grok-mark,
    .hero-workflow-spark {
        opacity: 0.9;
    }
}

.hero-focus-index,
.hero-focus-card > div {
    position: relative;
    z-index: 1;
}

.hero-focus-index {
    color: rgba(255, 255, 255, 0.72);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero-focus-label {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-focus-label-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 180ms ease;
}

.hero-focus-label-link svg,
.hero-focus-list a svg {
    flex: 0 0 auto;
    opacity: 0.42;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.hero-focus-label-link:hover,
.hero-focus-label-link:focus-visible {
    color: #fff;
}

.hero-focus-label-link:hover svg,
.hero-focus-label-link:focus-visible svg,
.hero-focus-list a:hover svg,
.hero-focus-list a:focus-visible svg {
    opacity: 1;
    transform: translateX(2px);
}

.hero-focus-label-link:focus-visible,
.hero-focus-list a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.88);
    outline-offset: 3px;
}

.hero-focus-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-focus-list li {
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #fff;
    font-size: clamp(0.78rem, 1vw, 0.94rem);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.hero-focus-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.48rem 0;
    color: inherit;
    text-decoration: none;
}

.hero-focus-list a span {
    transition: transform 180ms ease;
}

.hero-focus-list a:hover span,
.hero-focus-list a:focus-visible span {
    transform: translateX(3px);
}

.hero-focus-card strong {
    display: block;
    color: #fff;
    font-size: clamp(1rem, 1.45vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.section {
    padding: clamp(5.5rem, 9vw, 9rem) 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.012);
}

.section-heading {
    max-width: 960px;
    margin-bottom: clamp(2.5rem, 5vw, 4.75rem);
}

.section-kicker {
    margin-bottom: 1rem;
}

.section-title {
    max-width: 1000px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.7rem, 5.6vw, 5.4rem);
    font-weight: 600;
    letter-spacing: -0.072em;
    line-height: 0.98;
    text-align: left;
}

.section-title::after {
    display: none;
}

.section-intro {
    max-width: 760px;
    margin: -2.8rem 0 3.5rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72;
    text-align: left;
}

.about-feature {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
    grid-template-areas: "about-portrait about-text";
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
    max-width: 1180px;
}

.about-portrait-card {
    width: 100%;
    max-width: 430px;
    padding: 0;
    border-radius: 32px;
    background: transparent;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: none;
}

.about-portrait-card::before,
.about-portrait-card::after {
    display: none;
}

.about-portrait-picture {
    height: 100%;
    border-radius: inherit;
}

.about-portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.about-text {
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--muted-strong);
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    line-height: 1.75;
}

.about-text p {
    margin-bottom: 1.75rem;
}

.timeline {
    border-bottom: 1px solid var(--hairline);
}

.timeline-item {
    margin: 0;
}

.timeline-content {
    display: grid;
    grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.4fr);
    grid-template-rows: auto 1fr;
    gap: 0.45rem clamp(2rem, 6vw, 6rem);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    border-top: 1px solid var(--hairline);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.timeline-content:hover {
    transform: none;
    box-shadow: none;
}

.timeline-header {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.timeline-header h3 {
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    letter-spacing: -0.035em;
}

.timeline-date {
    color: var(--muted);
}

.timeline-company {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted-strong);
    line-height: 1.55;
}

.timeline-links {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.timeline-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.timeline-links a:hover,
.timeline-links a:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
}

.timeline-links svg {
    flex: 0 0 auto;
}

.timeline-list {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.timeline-list li {
    margin-bottom: 0.8rem;
    color: var(--muted);
    line-height: 1.65;
}

.timeline-list li::before {
    background: rgba(255, 255, 255, 0.7);
}

.projects-grid {
    display: block;
}

.project-showcase {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.15rem, 2.2vw, 2rem);
}

.project-card {
    min-width: 0;
    scroll-margin-top: 7rem;
}

.project-card-selected {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        #090909;
    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.project-card-selected:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
}

.project-card:hover,
.project-card-case-study:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 78px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.project-media {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    aspect-ratio: 16 / 10;
    background: #0a0a0a;
}

.project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.project-media > .project-media-frame {
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
}

.project-media-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.project-media-frame:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

.project-media-view-cue {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2.25rem;
    padding: 0.52rem 0.78rem;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.72);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 10px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
}

.project-media-frame:hover .project-media-view-cue,
.project-media-frame:focus-visible .project-media-view-cue {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .project-media-view-cue {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.project-media .project-media-frame-fit-contain .project-media-frame-image {
    object-fit: contain;
    object-position: center;
    padding: clamp(0.55rem, 1vw, 0.9rem);
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.065), transparent 48%),
        #070707;
}

.project-media .project-media-responsive .project-media-frame-image {
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: none;
}

.project-media-gallery {
    isolation: isolate;
}

.project-media-gallery .project-media-frame {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-media-gallery .project-media-frame.is-active {
    opacity: 1;
    pointer-events: auto;
}

.project-gallery-controls {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.3rem 0.25rem 0.72rem;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.72);
    color: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 10px 28px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    pointer-events: auto;
}

.project-gallery-count {
    font-size: 0.67rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.project-gallery-dots {
    display: flex;
    align-items: center;
    gap: 0;
}

.project-gallery-dot {
    appearance: none;
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.project-gallery-dot::before {
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    content: "";
    transition: width 0.3s ease, background-color 0.3s ease;
}

.project-gallery-dot.is-active::before {
    width: 0.72rem;
    background: #fff;
}

.project-gallery-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 0;
    border-radius: 999px;
}

.project-gallery-toggle {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.project-gallery-toggle:hover,
.project-gallery-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.project-gallery-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.project-gallery-play-icon,
.project-media-gallery.is-paused .project-gallery-pause-icon {
    display: none;
}

.project-media-gallery.is-paused .project-gallery-play-icon {
    display: block;
}

.project-card-selected:first-child .project-media {
    min-height: 100%;
    aspect-ratio: auto;
}

.project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.35rem);
}

.project-header {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.project-header h3 {
    font-size: clamp(1.65rem, 2.8vw, 2.5rem);
    letter-spacing: -0.05em;
}

.project-type {
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.45;
    text-transform: uppercase;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.project-action,
.project-private {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.project-card-selected:first-child .project-header {
    flex-direction: column;
}

.project-card-selected:first-child .project-actions {
    justify-content: flex-start;
}

.project-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.project-description {
    color: var(--muted);
    line-height: 1.7;
}

.project-case-study-outcome {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.96rem;
    line-height: 1.65;
}

.project-highlights {
    margin-top: 0;
}

.project-highlights li {
    color: var(--muted);
    line-height: 1.6;
}

.project-tags {
    margin-top: auto;
    padding-top: 0.3rem;
}

.project-tag,
.skill-pill {
    min-height: 2.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
    color: var(--muted-strong);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.085);
}

.project-tag:hover,
.skill-pill:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.project-media-local-ai {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background:
        radial-gradient(circle at 75% 16%, rgba(255, 255, 255, 0.12), transparent 12rem),
        linear-gradient(145deg, #151515, #050505);
}

.local-ai-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.local-ai-status span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.local-ai-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.25rem, 0.7vw, 0.5rem);
    height: 7.5rem;
}

.local-ai-waveform span {
    width: clamp(0.18rem, 0.45vw, 0.32rem);
    height: var(--wave-height);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.2));
}

.local-ai-flow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.local-ai-flow strong,
.local-ai-flow span {
    padding: 0.5rem 0.65rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.local-ai-flow strong {
    color: #050505;
    background: #fff;
}

.project-media-local-ai p {
    color: var(--muted);
    font-size: 0.78rem;
}

.project-more {
    margin-top: clamp(5rem, 9vw, 8rem);
}

.project-more-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.project-more-heading .section-kicker {
    margin: 0;
}

.project-more-heading h3 {
    max-width: 560px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    letter-spacing: -0.045em;
    text-align: right;
}

.project-more-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.project-card-additional {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
        #080808;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.26),
        inset 0 0 0 1px rgba(255, 255, 255, 0.085);
}

.project-card-additional:hover {
    transform: translateY(-4px);
    box-shadow:
        0 26px 66px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.project-card-additional .project-media {
    position: relative;
    inset: auto;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.07), transparent 48%),
        #050505;
    opacity: 1;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
    pointer-events: auto;
}

.project-card-additional .project-media img {
    object-fit: contain;
    object-position: center;
    padding: clamp(0.55rem, 1vw, 0.85rem);
    filter: saturate(0.9) contrast(1.035);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.project-card-additional .project-media .project-media-responsive .project-media-frame-image {
    object-fit: cover;
    padding: 0;
}

.project-card-additional:hover .project-media img {
    filter: saturate(1) contrast(1.04);
    transform: scale(1.018);
}

.project-card-additional .project-body {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: clamp(1.4rem, 2.5vw, 2rem);
}

.project-card-additional .project-header h3 {
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.project-card-additional .project-description {
    font-size: 0.94rem;
}

.project-card-additional .project-media-local-ai {
    display: flex;
}

@media (min-width: 769px) {
    .project-more-grid .project-card-additional.grid-row-fill {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    }

    .project-more-grid .project-card-additional.grid-row-fill .project-media {
        min-height: 0;
        aspect-ratio: 4 / 5;
        border-right: 1px solid rgba(255, 255, 255, 0.075);
        border-bottom: 0;
    }
}

.skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(1.5rem, 4vw, 4rem);
    border-bottom: 1px solid var(--hairline);
}

.skill-category {
    padding: 2rem 0;
    border-top: 1px solid var(--hairline);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.skill-category h3 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.education-grid {
    display: block;
    border-bottom: 1px solid var(--hairline);
}

.education-card {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) minmax(210px, 0.72fr) minmax(260px, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
    padding: clamp(2rem, 4vw, 3.25rem) 0;
    border-top: 1px solid var(--hairline);
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: left;
}

.education-card:hover {
    transform: none;
    box-shadow: none;
}

.education-card h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.3rem, 2.1vw, 1.75rem);
    letter-spacing: -0.035em;
}

.education-school,
.education-honors {
    color: var(--muted-strong);
}

.education-meta p,
.education-details p {
    color: var(--muted);
    line-height: 1.7;
}

.contact-content {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 1180px;
    padding: clamp(2rem, 6vw, 5.5rem);
    border-radius: 44px;
    background: #111111;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: left;
}

.contact-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.12), transparent 20rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.028));
}

.contact-content .section-title {
    max-width: 820px;
    margin-bottom: 1.5rem;
}

.contact-intro {
    max-width: 760px;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--hairline);
}

.contact-item {
    min-height: 2.75rem;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--muted);
}

.contact-item:hover {
    transform: none;
    background: none;
    color: #fff;
}

.contact-item svg {
    width: 1.1rem;
    height: 1.1rem;
}

.footer {
    background: #030303;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.footer-links a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 0.24em;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration-color: currentColor;
}

/* Policy pages */
.policy-page {
    min-height: 100vh;
    background: #030303;
}

.policy-nav {
    background: rgba(3, 3, 3, 0.92);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    backdrop-filter: blur(28px) saturate(150%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.policy-back-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: var(--text-gray);
    font-size: 0.88rem;
    font-weight: 700;
}

.policy-back-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.policy-main {
    padding: clamp(8.5rem, 14vw, 11rem) 0 clamp(5rem, 9vw, 8rem);
}

.policy-hero {
    max-width: 960px;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.policy-kicker {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.policy-title {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.94;
}

.policy-summary {
    max-width: 760px;
    margin: 1.4rem 0 0;
    color: var(--text-gray);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.72;
}

.policy-updated {
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.policy-content {
    display: grid;
    gap: 1px;
    max-width: 980px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(24px, 4vw, 36px);
    background: rgba(255, 255, 255, 0.12);
}

.policy-section {
    padding: clamp(1.5rem, 4vw, 2.6rem);
    background: #0b0b0b;
}

.policy-section h2 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.policy-section h3 {
    margin: 1.4rem 0 0.55rem;
    color: #fff;
    font-size: 1.05rem;
}

.policy-section p,
.policy-section li {
    color: var(--text-gray);
    line-height: 1.78;
}

.policy-section p + p {
    margin-top: 0.85rem;
}

.policy-section ul {
    display: grid;
    gap: 0.7rem;
    margin: 0.9rem 0 0;
    padding-left: 1.25rem;
}

.policy-section a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.policy-section a:hover {
    text-decoration-thickness: 0.14em;
}

.policy-contact {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: #050505 !important;
    text-decoration: none !important;
}

.policy-note {
    padding: 1rem 1.1rem;
    border-left: 3px solid #fff;
    background: rgba(255, 255, 255, 0.06);
}

.section[id],
.project-card[id],
#main-content,
#resume-content {
    scroll-margin-top: 6rem;
}

iframe:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .policy-main {
        padding-top: 7.5rem;
    }

    .policy-nav {
        padding: 0.85rem 1rem;
    }
}

@media (prefers-contrast: more) {
    :root {
        --muted: rgba(255, 255, 255, 0.82);
        --muted-strong: rgba(255, 255, 255, 0.94);
        --hairline: rgba(255, 255, 255, 0.42);
    }

    .hero-kicker,
    .section-kicker,
    .policy-kicker {
        color: rgba(255, 255, 255, 0.88);
    }
}

@media (forced-colors: active) {
    .nav-container,
    .policy-nav,
    .hero-focus-card,
    .project-card,
    .skill-category,
    .education-card,
    .policy-content,
    .policy-section {
        border: 1px solid CanvasText;
        forced-color-adjust: auto;
    }

    .project-gallery-dot::before {
        background: ButtonText;
    }
}

@media (max-width: 1279px) {
    .project-card-selected:first-child {
        display: flex;
    }

    .project-card-selected:first-child .project-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 1100px) {
    .nav-links a {
        padding-inline: 0.55rem;
        font-size: 0.8rem;
    }

    .hero-content {
        grid-template-columns: minmax(280px, 0.82fr) minmax(430px, 1.18fr);
        gap: 2.5rem;
    }

    .hero-collage {
        grid-template-columns: minmax(270px, 1.6fr) minmax(130px, 0.75fr);
    }

    .project-media,
    .project-card-additional .project-media,
    .project-card-selected:first-child .project-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .project-more-grid .project-card-additional.grid-row-fill .project-media {
        aspect-ratio: 4 / 5;
    }

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

@media (max-width: 1000px) {
    .about-feature {
        grid-template-columns: 1fr;
        grid-template-areas:
            "about-portrait"
            "about-text";
        gap: 2.5rem;
    }

    .about-portrait-card {
        align-self: auto;
        width: min(100%, 720px);
        max-width: none;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 74px;
    }

    .nav-container {
        padding: 0.85rem 1rem;
        background: transparent;
    }

    .nav-container.is-scrolled {
        padding: 0.85rem 1rem;
        background: rgba(3, 3, 3, 0.88);
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
    }

    .nav-links {
        top: 4.45rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        padding: 0.7rem;
        border-radius: 22px;
        background: rgba(10, 10, 10, 0.94);
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px var(--hairline);
    }

    .nav-links a {
        width: 100%;
        min-height: 2.75rem;
        padding: 0.65rem 0.85rem;
    }

    .hero {
        min-height: auto;
        padding-top: 76px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1.25rem 1rem 4.5rem;
    }

    .hero-collage {
        display: contents;
    }

    .hero-photo-shell {
        grid-row: 1;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        border-radius: 30px;
    }

    .hero-focus-stack {
        grid-row: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .hero-focus-card {
        min-height: 220px;
        border-radius: 20px;
    }

    .hero-copy {
        grid-row: 2;
        max-width: 620px;
        padding: 0;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(3.6rem, 16vw, 5.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1.65rem, 7vw, 2.25rem);
    }

    .hero-buttons {
        max-width: none;
        margin: 0 0 2rem;
    }

    .hero-buttons .btn {
        width: auto;
        flex: 1 1 13rem;
    }

    .hero-description,
    .hero-proof {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

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

    .section {
        padding: 5.5rem 0;
    }

    .section-heading {
        margin-bottom: 2.75rem;
    }

    .section-title {
        font-size: clamp(2.7rem, 11vw, 4.25rem);
    }

    .section-intro {
        margin: -1.4rem 0 2.75rem;
    }

    .about-feature {
        grid-template-columns: 1fr;
        grid-template-areas:
            "about-portrait"
            "about-text";
        gap: 2.5rem;
    }

    .about-portrait-card {
        width: min(100%, 500px);
        max-width: none;
        aspect-ratio: 1 / 1;
    }

    .about-portrait-picture,
    .about-portrait-image {
        width: 100%;
        height: 100%;
    }

    .about-portrait-image {
        object-fit: cover;
    }

    .about-text {
        font-size: 1.06rem;
    }

    .timeline-content {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 2.25rem 0;
    }

    .timeline-header,
    .timeline-company,
    .timeline-links,
    .timeline-list {
        grid-column: 1;
        grid-row: auto;
    }

    .timeline-company {
        margin-bottom: 0.65rem;
    }

    .project-showcase {
        grid-template-columns: 1fr;
    }

    .project-card-selected,
    .project-card-selected:first-child {
        grid-column: 1;
        display: flex;
    }

    .project-card-selected:first-child .project-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .project-media,
    .project-card-additional .project-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .project-header {
        flex-direction: column;
    }

    .project-actions {
        justify-content: flex-start;
    }

    .project-more-heading {
        display: grid;
        gap: 0.8rem;
    }

    .project-more-heading h3 {
        text-align: left;
    }

    .project-more-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        padding: 2rem 1.35rem;
        border-radius: 30px;
    }

    .contact-content .section-title {
        font-size: clamp(2.75rem, 12vw, 4.2rem);
    }
}

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

    .hero-content {
        padding-top: 0.8rem;
    }

    .hero-focus-stack {
        gap: 0.7rem;
    }

    .hero-focus-card {
        min-height: 195px;
        padding: 1rem;
    }

    .hero-focus-card strong {
        font-size: 0.95rem;
    }

    .hero-focus-list li {
        padding-block: 0;
        font-size: 0.76rem;
    }

    .hero-focus-list a {
        padding-block: 0.38rem;
    }

    .hero-title {
        font-size: clamp(3.35rem, 17.5vw, 4.5rem);
    }

    .hero-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 0;
    }

    .hero-proof-item {
        padding: 0.85rem 0.5rem 0.85rem 0;
    }

    .hero-proof-item + .hero-proof-item {
        padding-left: 0.5rem;
    }

    .hero-proof-item strong {
        font-size: 1.25rem;
    }

    .hero-proof-item span {
        font-size: 0.62rem;
    }

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

    .hero-buttons .btn,
    .contact-actions .btn {
        width: 100%;
    }

    .project-card-selected {
        border-radius: 25px;
    }

    .project-media,
    .project-card-additional .project-media,
    .project-card-selected:first-child .project-media {
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .project-body {
        padding: 1.35rem;
    }

    .project-header h3 {
        font-size: 1.65rem;
    }

    .project-action,
    .project-private {
        min-height: 2.75rem;
    }

    .local-ai-flow {
        flex-wrap: wrap;
    }

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

    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem 0.8rem;
    }

    .contact-item {
        min-width: 0;
    }

    .contact-item span {
        overflow-wrap: anywhere;
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-media-gallery .project-media-frame,
    .project-media-view-cue,
    .project-gallery-dot::before,
    .project-tag,
    .skill-pill,
    .btn {
        transition: none !important;
    }

    .project-gallery-toggle {
        display: none;
    }
}
