:root {
    --nav-height: 82px;
    --ink: #0f141b;
    --paper: #f7f4ef;
    --panel: #151b24;
    --panel-strong: #0d1118;
    --text: #f5f7fa;
    --muted: #9aa7b7;
    --line: rgba(255, 255, 255, 0.12);
    --gold: #d4a84f;
    --blue: #5aa8ff;
    --green: #6ad69a;
    --red: #ff6f72;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0d1118;
    color: var(--text);
    letter-spacing: 0;
}

body.view-game {
    overflow: hidden;
}

body:not(.view-game) {
    overflow-y: auto;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

.top-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(13, 17, 24, 0.94);
    backdrop-filter: blur(18px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.nav-brand {
    display: grid;
    gap: 3px;
    min-width: 250px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 4px 0;
    text-align: left;
}

.nav-contact-link {
    cursor: pointer;
}

.nav-contact-link:hover .brand-name,
.nav-contact-link:focus-visible .brand-name {
    color: #fff2c2;
}

.nav-contact-link:focus-visible {
    outline: 2px solid rgba(212, 168, 79, 0.7);
    outline-offset: 6px;
    border-radius: 6px;
}

.brand-name {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 0.95;
}

.brand-role {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.nav-tab {
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #d9e2ee;
    min-height: 42px;
    padding: 0 17px;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 780;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-tab:hover,
.nav-tab:focus-visible {
    outline: none;
    border-color: rgba(212, 168, 79, 0.55);
    background: rgba(212, 168, 79, 0.11);
    color: #fff5d7;
}

.nav-tab.active {
    border-color: rgba(212, 168, 79, 0.72);
    background: #d4a84f;
    color: #16110a;
}

main {
    min-height: 100vh;
}

.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
}

#game-view {
    height: 100vh;
    padding-top: var(--nav-height);
}

#game-container {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    overflow: hidden;
    background: #1b2028;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #efefef;
    image-rendering: auto;
}

#game-hud {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 20;
    display: flex;
    gap: 10px;
    align-items: stretch;
    pointer-events: auto;
}

.hud-restart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 104px;
    min-height: 45px;
    border: 1px solid rgba(212, 168, 79, 0.42);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(18, 15, 10, 0.84);
    color: #fff5d8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    padding: 9px 12px;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hud-restart-button:hover,
.hud-restart-button:focus-visible {
    outline: none;
    border-color: rgba(255, 212, 61, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(33, 25, 11, 0.9);
}

.hud-restart-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.music-toggle {
    border: 1px solid rgba(212, 168, 79, 0.65);
    border-radius: 999px;
    background: rgba(212, 168, 79, 0.18);
    color: #fff5d8;
    position: relative;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    cursor: pointer;
}

.music-toggle::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 9px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 11px solid #fff5d8;
}

.music-toggle.playing::before {
    left: 10px;
    top: 9px;
    width: 4px;
    height: 16px;
    border: 0;
    border-radius: 2px;
    background: #151008;
    box-shadow: 10px 0 0 #151008;
}

.music-toggle.playing {
    background: var(--gold);
    color: #151008;
}

.music-toggle:hover,
.music-toggle:focus-visible {
    outline: none;
    background: rgba(212, 168, 79, 0.3);
}

.music-volume {
    display: block;
    min-width: 112px;
}

.music-volume input {
    width: 100%;
    accent-color: var(--gold);
}

.nav-audio {
    display: grid;
    grid-template-columns: 34px minmax(88px, 120px);
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    padding: 5px 10px 5px 5px;
}

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

.hud-card {
    min-width: 116px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(13, 17, 24, 0.76);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    padding: 10px 12px;
    backdrop-filter: blur(12px);
    pointer-events: none;
}

.hud-score-card {
    min-width: 150px;
    border-color: rgba(212, 168, 79, 0.32);
    background: rgba(18, 15, 10, 0.82);
}

.hud-score-card .hud-row {
    display: grid;
    gap: 7px;
}

.hud-score-card .hud-row strong {
    color: #fff5d8;
    font-size: 1.7rem;
    line-height: 0.95;
}

.hud-score-card .hud-row span {
    color: #e7c978;
}

.hud-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    line-height: 1;
}

.hud-row span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hud-row strong {
    font-size: 0.92rem;
}

.health-meter {
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.health-meter span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 140ms ease, background 140ms ease;
}

#debug-panel {
    position: absolute;
    top: 178px;
    left: 18px;
    z-index: 21;
    display: grid;
    gap: 7px;
    min-width: 158px;
    max-height: calc(100% - 198px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(7, 10, 16, 0.78);
    color: #e5edf6;
    padding: 9px 10px;
    backdrop-filter: blur(12px);
    font-size: 0.75rem;
    font-weight: 800;
    overflow: visible;
}

#debug-panel label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

#debug-panel input {
    accent-color: var(--gold);
}

.sfx-debug-mixer {
    display: grid;
    gap: 8px;
    width: 328px;
    max-height: min(680px, calc(100vh - var(--nav-height) - 138px));
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(105, 215, 255, 0.22);
    border-radius: 8px;
    background: rgba(5, 8, 13, 0.88);
    padding: 9px;
    transform-origin: top left;
    animation: mixer-slide-in 160ms ease-out;
}

.sfx-debug-mixer[hidden] {
    display: none;
}

@keyframes mixer-slide-in {
    from {
        opacity: 0;
        transform: translateX(-10px) scaleX(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
}

.sfx-debug-title {
    color: #dff4ff;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sfx-debug-section-title {
    color: rgba(125, 211, 252, 0.9);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-top: 6px;
    text-transform: uppercase;
}

.sfx-debug-sliders {
    display: grid;
    gap: 7px;
}

.sfx-debug-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 6px;
    align-items: center;
}

#debug-panel .sfx-debug-row label {
    display: grid;
    gap: 4px;
    cursor: default;
}

.sfx-debug-name {
    overflow: visible;
    color: #d7e5f1;
    font-size: 0.64rem;
    text-transform: uppercase;
    white-space: normal;
}

.sfx-debug-row input[type="range"] {
    width: 100%;
}

.sfx-debug-value {
    color: #fff5d8;
    font-size: 0.62rem;
    text-align: right;
}

.sfx-debug-number {
    width: 68px;
    min-height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff5d8;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 5px;
}

.sfx-debug-number:focus {
    outline: 1px solid rgba(105, 215, 255, 0.78);
    outline-offset: 1px;
}

.sfx-config-button {
    min-height: 28px;
    border: 1px solid rgba(212, 168, 79, 0.42);
    border-radius: 6px;
    background: rgba(212, 168, 79, 0.16);
    color: #fff5d8;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.sfx-config-button.secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #d7e5f1;
}

.sfx-config-status {
    min-height: 14px;
    color: #9fdcff;
    font-size: 0.62rem;
}

.phase-skip-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 3px;
}

.game-command-strip {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: min(720px, calc(100% - 36px));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(13, 17, 24, 0.76);
    color: #ecf2f7;
    padding: 9px 11px;
    backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 700;
}

.game-command-strip span {
    min-width: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    text-align: center;
}

.game-command-strip b {
    margin-right: 6px;
    color: #c7d1dd;
}

.opening-countdown {
    position: absolute;
    top: 88px;
    left: 50%;
    z-index: 23;
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 210px;
    transform: translateX(-50%);
    border: 1px solid rgba(212, 168, 79, 0.36);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        rgba(7, 10, 16, 0.84);
    color: #f4e3b4;
    padding: 12px 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
    text-align: center;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.opening-countdown[hidden] {
    display: none;
}

.opening-countdown-label,
#opening-countdown-hint {
    color: #cbd6e3;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#opening-countdown-value {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 0.95;
}

.portfolio-view {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 42px) 22px 64px;
    background:
        radial-gradient(circle at 18% 8%, rgba(106, 214, 154, 0.14), transparent 34%),
        linear-gradient(180deg, #111720 0%, #15110e 52%, #0f141b 100%);
}

.portfolio-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.resume-hero,
.section-head {
    max-width: 890px;
    margin-bottom: 32px;
}

.section-head {
    grid-template-columns: 1fr;
}

.resume-hero .eyebrow,
.resume-hero h1,
.resume-hero .hero-actions {
    grid-column: 1;
}

.resume-hero .hero-copy {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.resume-hero h1,
.section-head h1 {
    margin: 0;
    max-width: 940px;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 0.96;
    font-weight: 900;
}

.hero-copy {
    max-width: 760px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.primary-action {
    background: var(--gold);
    color: #171006;
}

.secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #f8fafc;
}

.metric-grid,
.project-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.metric-grid article,
.resume-columns article,
.capability-matrix article,
.timeline article,
.project-grid article,
.contact-grid a {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.062);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.metric-grid article {
    min-height: 156px;
    padding: 20px;
}

.metric-grid strong {
    display: block;
    margin-bottom: 10px;
    color: #fff6d7;
    font-size: 2rem;
    line-height: 1;
}

.metric-grid span,
.resume-columns p,
.timeline p,
.project-grid p {
    color: #c5cfdb;
    line-height: 1.58;
}

.resume-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.resume-columns article {
    padding: 22px;
}

.resume-columns h2,
.capability-matrix h2,
.timeline h2,
.project-grid h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.2rem;
}

.resume-summary-card {
    border-left: 4px solid var(--gold);
}

.capability-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.capability-matrix article {
    padding: 22px;
    border-top: 3px solid rgba(106, 214, 154, 0.74);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(90, 168, 255, 0.12);
    color: #dcecff;
    padding: 7px 10px;
    font-size: 0.86rem;
    font-weight: 750;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline article {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    padding: 22px;
    background:
        linear-gradient(90deg, rgba(212, 168, 79, 0.12), transparent 26%),
        rgba(255, 255, 255, 0.055);
}

.timeline-date {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline p,
.project-grid p,
.resume-columns p {
    margin: 0;
}

.timeline-tags,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.timeline-tags span,
.project-tags span {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dcecff;
    padding: 5px 8px;
    font-size: 0.75rem;
    font-weight: 800;
}

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

.project-grid article {
    padding: 24px;
}

.project-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    border-color: rgba(106, 214, 154, 0.28) !important;
    background:
        linear-gradient(135deg, rgba(106, 214, 154, 0.14), rgba(90, 168, 255, 0.08)),
        rgba(255, 255, 255, 0.06) !important;
}

.project-kicker {
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.project-grid a {
    display: inline-flex;
    margin-top: 18px;
    color: #9fd0ff;
    font-weight: 800;
    text-decoration: none;
}

.project-grid a:hover,
.contact-grid a:hover {
    text-decoration: underline;
}

.music-preview-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.music-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(13, 17, 24, 0.48);
    color: #f8fafc;
    padding: 0 12px;
    cursor: pointer;
    text-align: left;
}

.music-preview:hover,
.music-preview:focus-visible {
    outline: none;
    border-color: rgba(106, 214, 154, 0.72);
    background: rgba(106, 214, 154, 0.12);
}

.music-preview span {
    font-weight: 850;
}

.music-preview strong {
    color: #c7f9dd;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.contact-shell {
    min-height: calc(100vh - var(--nav-height) - 106px);
    display: grid;
    align-content: center;
}

.contact-intro {
    display: grid;
    gap: 16px;
    max-width: 920px;
    margin: -8px 0 18px;
    border-left: 4px solid var(--green);
    padding: 0 0 0 18px;
}

.contact-intro p {
    margin: 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.65;
}

.contact-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-status span {
    border: 1px solid rgba(106, 214, 154, 0.28);
    border-radius: 999px;
    background: rgba(106, 214, 154, 0.1);
    color: #d8ffe9;
    padding: 7px 10px;
    font-size: 0.83rem;
    font-weight: 800;
}

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

.contact-grid a {
    display: grid;
    gap: 8px;
    padding: 22px;
    text-decoration: none;
}

.contact-grid span {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-grid strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.portfolio-view {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-height) + 34px) clamp(18px, 4vw, 54px) 82px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(180deg, #0b1018 0%, #111723 46%, #090d13 100%);
    background-size: 46px 46px, 46px 46px, auto;
}

.portfolio-shell {
    width: min(1180px, 100%);
}

.resume-hero,
.section-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    max-width: none;
    min-height: 0;
    margin: 0 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(212, 168, 79, 0.22), transparent 12px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        rgba(8, 13, 20, 0.78);
    padding: clamp(22px, 3.2vw, 34px);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.22);
}

.resume-hero::before,
.section-head::before {
    content: none;
}

.resume-hero h1,
.section-head h1 {
    max-width: 980px;
    font-family: "Segoe UI Variable Display", "Aptos Display", "Inter", "Segoe UI", sans-serif;
    font-size: clamp(1.9rem, 3vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 820;
}

.section-head h1 {
    font-size: clamp(1.75rem, 2.45vw, 2.65rem);
}

.resume-hero .eyebrow,
.section-head .eyebrow {
    color: #e9c772;
    letter-spacing: 0;
    font-size: 0.78rem;
}

.section-copy {
    display: grid;
    align-content: center;
    gap: 10px;
}

.section-copy p:not(.eyebrow) {
    max-width: 720px;
    margin: 0;
    color: #d6e0ec;
    font-size: clamp(1rem, 1.22vw, 1.1rem);
    line-height: 1.62;
}

.hero-copy,
.section-head + p {
    max-width: 560px;
    color: #c7d3e1;
    font-size: 1.02rem;
    line-height: 1.65;
}

.resume-hero .hero-copy {
    grid-column: 1;
    grid-row: auto;
    align-self: end;
}

.experience-head {
    grid-template-columns: minmax(420px, 560px) minmax(0, 1fr);
    align-items: center;
    padding: clamp(18px, 2.8vw, 28px);
}

.experience-reel {
    position: relative;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #05070a;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.experience-reel-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #05070a;
    object-fit: cover;
}

.reel-arrow {
    position: absolute;
    top: calc(50% + 22px);
    z-index: 2;
    width: 34px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(3, 7, 12, 0.68);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.reel-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff5d8;
    border-left: 2px solid #fff5d8;
    transform: translate(-35%, -50%) rotate(-45deg);
}

.reel-next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.reel-prev {
    left: 10px;
}

.reel-next {
    right: 10px;
}

.reel-arrow:hover,
.reel-arrow:focus-visible {
    border-color: rgba(212, 168, 79, 0.58);
    background: rgba(10, 16, 24, 0.88);
}

.reel-caption {
    position: static;
    min-height: 28px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0;
    background: rgba(8, 13, 20, 0.9);
    color: #f8fafc;
    padding: 10px 12px;
    font-size: 0.84rem;
    font-weight: 850;
    letter-spacing: 0;
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.metric-grid article,
.resume-columns article,
.capability-matrix article,
.timeline article,
.project-grid article,
.contact-grid a {
    border: 1px solid rgba(255, 255, 255, 0.115);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.045)),
        rgba(8, 13, 20, 0.74);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.metric-grid article {
    min-height: 144px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(8, 13, 20, 0.86);
}

.metric-grid strong {
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.7rem);
}

.resume-columns,
.capability-matrix {
    gap: 16px;
    margin-top: 16px;
}

.resume-columns article,
.capability-matrix article {
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.resume-summary-card {
    border-left: 0;
}

.resume-summary-card::before,
.capability-matrix article::before,
.timeline article::before,
.project-grid article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), rgba(90, 168, 255, 0.78), transparent);
}

.capability-matrix article {
    border-top: 0;
}

.tag-cloud span,
.timeline-tags span,
.project-tags span {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.075);
}

.timeline {
    gap: 14px;
}

.timeline article {
    position: relative;
    grid-template-columns: minmax(126px, 0.28fr) 1fr;
    align-items: start;
    padding: 24px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.timeline article:hover,
.project-grid article:hover,
.contact-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 168, 79, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052)),
        rgba(10, 16, 24, 0.86);
}

.timeline-date {
    color: #e9c772;
    line-height: 1.35;
}

.project-grid {
    gap: 16px;
}

.project-grid article {
    position: relative;
    overflow: hidden;
    min-height: 278px;
    padding: 26px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-featured {
    min-height: 310px;
    padding: 34px !important;
    border-color: rgba(212, 168, 79, 0.34) !important;
    background:
        linear-gradient(135deg, rgba(212, 168, 79, 0.16), rgba(90, 168, 255, 0.09)),
        rgba(8, 13, 20, 0.82) !important;
}

.project-featured h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.music-project-card {
    grid-column: 1 / -1;
}

.project-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #05070a;
    object-fit: cover;
}

.music-preview-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
}

.song-preview-block {
    display: grid;
    align-content: start;
    gap: 10px;
}

.song-video {
    display: block;
    width: min(100%, 260px);
    aspect-ratio: 9 / 16;
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: #05070a;
    object-fit: cover;
}

.track-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    min-height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(12, 18, 26, 0.86), rgba(5, 8, 13, 0.72)),
        rgba(4, 8, 13, 0.52);
    padding: 10px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.track-play,
.track-volume-button {
    border: 1px solid rgba(212, 168, 79, 0.55);
    border-radius: 999px;
    background: rgba(212, 168, 79, 0.17);
    color: #fff5d8;
    cursor: pointer;
    font-weight: 900;
}

.track-play {
    position: relative;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    font-size: 0;
}

.track-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff5d8;
    transform: translate(-38%, -50%);
}

.track-player.playing .track-play::before {
    width: 12px;
    height: 14px;
    border: 0;
    background:
        linear-gradient(90deg, #151008 0 4px, transparent 4px 8px, #151008 8px 12px);
    transform: translate(-50%, -50%);
}

.track-volume-button {
    display: inline-grid;
    place-items: center;
    position: relative;
    min-width: 34px;
    width: 34px;
    min-height: 34px;
    height: 34px;
    padding: 0;
    font-size: 0;
}

.volume-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.track-volume.muted .track-volume-button::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 16px;
    width: 17px;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: #fff5d8;
    opacity: 0.95;
    transform: rotate(-42deg);
}

.track-player.playing .track-play {
    background: var(--gold);
    color: #151008;
}

.track-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
    align-items: center;
    gap: 10px;
}

.track-controls {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.track-title {
    color: #f8fafc;
    font-weight: 850;
    min-width: 0;
}

.track-scrub,
.track-volume-slider {
    width: 100%;
    accent-color: var(--gold);
    cursor: pointer;
}

.track-volume {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    justify-items: stretch;
    z-index: 4;
}

.track-volume-slider {
    position: static;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

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

.song-links a,
.spotify-artist-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #dbeafe;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
}

.spotify-artist-link {
    margin-top: 14px;
}

.song-links a:hover,
.spotify-artist-link:hover {
    border-color: rgba(212, 168, 79, 0.48);
    color: #fff5d8;
}

.contact-shell {
    align-content: start;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 26px;
    align-items: stretch;
    margin: 0 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(212, 32, 42, 0.13), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
        rgba(8, 13, 20, 0.82);
    padding: clamp(18px, 3vw, 30px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.contact-intro {
    display: grid;
    align-content: center;
    gap: 20px;
    border-left: 0;
    border-top: 0;
    margin: 0;
    padding: 0;
}

.contact-intro p {
    max-width: 820px;
    color: #dbe4ef;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.65;
}

.contact-status {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.contact-status span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(106, 214, 154, 0.34);
    border-radius: 7px;
    background: rgba(106, 214, 154, 0.11);
    color: #d8ffe9;
    padding: 7px 10px;
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}

.contact-portrait {
    overflow: hidden;
    min-height: 280px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(212, 168, 79, 0.11)),
        rgba(8, 13, 20, 0.72);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.contact-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}

.contact-grid a {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028)),
        rgba(8, 13, 20, 0.7);
}

.contact-grid a::after {
    content: "";
    position: absolute;
    inset: auto 18px 15px 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 32, 42, 0.65), transparent);
}

.resume-hero,
.section-head {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(212, 32, 42, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016));
    box-shadow: none;
    padding: clamp(24px, 4vw, 44px) clamp(18px, 3.5vw, 42px);
}

.resume-hero::before,
.section-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: clamp(24px, 4vw, 44px);
    bottom: clamp(24px, 4vw, 44px);
    width: 4px;
    background: linear-gradient(180deg, #d4202a, #f0c75e 64%, rgba(45, 212, 191, 0.55));
}

.resume-hero h1,
.section-head h1 {
    max-width: 1080px;
    font-family: "Bahnschrift", "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
    color: #f8fafc;
    font-size: clamp(2.05rem, 3.85vw, 4.1rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0;
}

.resume-hero h1 {
    font-size: clamp(2.05rem, 3.25vw, 3.35rem);
}

.section-head h1 {
    max-width: 1000px;
    font-size: clamp(1.9rem, 3.05vw, 3.25rem);
}

.resume-hero .eyebrow,
.section-head .eyebrow,
.reel-caption {
    letter-spacing: 0;
}

.resume-hero .eyebrow,
.section-head .eyebrow {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    border-left: 2px solid #d4202a;
    background: rgba(212, 32, 42, 0.12);
    color: #f2c65d;
    padding: 5px 9px;
    line-height: 1;
}

.hero-copy,
.section-head + p {
    max-width: 900px;
    color: #d6e0ec;
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.contact-layout {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(90deg, rgba(212, 32, 42, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
        rgba(8, 13, 20, 0.82);
}

.contact-status span {
    border-radius: 6px;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.065);
    color: #edf5ff;
}

.contact-status span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 999px;
    background: #6ad69a;
    box-shadow: 0 0 12px rgba(106, 214, 154, 0.6);
}

@media (min-width: 900px) {
    .resume-hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
        align-items: center;
        column-gap: clamp(28px, 5vw, 72px);
    }

    .resume-hero .eyebrow,
    .resume-hero h1 {
        grid-column: 1;
    }

    .resume-hero .hero-copy,
    .resume-hero .hero-actions {
        grid-column: 2;
    }

    .resume-hero .hero-copy {
        margin: 0;
    }

    .resume-hero .hero-actions {
        margin-top: 6px;
    }
}

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1118;
    transition: opacity 220ms ease;
}

.loading-content {
    width: min(420px, calc(100% - 42px));
    color: #f8fafc;
    text-align: center;
}

.loading-content h2 {
    margin: 0 0 22px;
    font-size: 1.2rem;
}

.loading-bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.loading-progress {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
}

@media (max-width: 900px) {
    :root {
        --nav-height: 124px;
    }

    .top-nav {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
        padding: 12px 14px;
    }

    .nav-left {
        justify-content: center;
    }

    .nav-brand {
        min-width: 0;
        text-align: center;
        justify-items: center;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .nav-tabs {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-tab {
        min-width: max-content;
        padding: 0 14px;
        font-size: 0.94rem;
    }

    #game-hud {
        top: 10px;
        left: 10px;
        flex-wrap: wrap;
    }

    .hud-card {
        min-width: 98px;
        padding: 8px 9px;
    }

    .game-command-strip {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .metric-grid,
    .resume-columns,
    .capability-matrix,
    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .resume-hero,
    .section-head,
    .experience-head,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .resume-hero .hero-copy {
        grid-column: 1;
        grid-row: auto;
    }

    .experience-reel {
        max-width: 520px;
    }

    .music-preview-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .portfolio-view {
        padding-inline: 14px;
    }

    .resume-hero h1,
    .section-head h1 {
        font-size: 2.15rem;
        line-height: 1.02;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .metric-grid article,
    .resume-columns article,
    .timeline article,
    .project-grid article,
    .contact-grid a {
        padding: 18px;
    }

    .nav-left {
        flex-wrap: wrap;
    }

    .nav-audio {
        width: min(100%, 220px);
    }
}

/* Studio dossier redesign */
:root {
    --studio-bg: #070b10;
    --studio-bg-2: #0b1118;
    --studio-panel: rgba(11, 17, 24, 0.84);
    --studio-panel-strong: rgba(15, 23, 32, 0.94);
    --studio-line: rgba(206, 224, 244, 0.14);
    --studio-line-strong: rgba(206, 224, 244, 0.24);
    --studio-text: #f6f8fb;
    --studio-muted: #a8b7c7;
    --studio-accent: #69d7ff;
    --studio-gold: #d8b25d;
    --studio-green: #78e0aa;
}

.portfolio-view {
    padding: calc(var(--nav-height) + 44px) clamp(20px, 4.4vw, 68px) 92px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(115deg, rgba(105, 215, 255, 0.105), transparent 38%),
        linear-gradient(180deg, #070b10 0%, #0b1118 54%, #05070b 100%);
    background-size: 44px 44px, 44px 44px, auto, auto;
}

.portfolio-shell {
    width: min(1240px, 100%);
}

.resume-hero,
.section-head {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--studio-line);
    border-radius: 4px;
    background:
        linear-gradient(90deg, rgba(105, 215, 255, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
        rgba(7, 11, 16, 0.82);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
    padding: clamp(26px, 4.2vw, 54px);
}

.resume-hero::before,
.section-head::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--studio-accent), var(--studio-gold) 58%, var(--studio-green));
}

.resume-hero::after,
.section-head::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, transparent 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 76px 76px;
    opacity: 0.32;
}

.resume-hero > *,
.section-head > * {
    position: relative;
    z-index: 1;
}

.resume-hero h1,
.section-head h1 {
    max-width: 1080px;
    color: var(--studio-text);
    font-family: "Aptos Display", "Segoe UI Variable Display", "Bahnschrift", "Segoe UI", sans-serif;
    font-size: clamp(2.4rem, 5.3vw, 5.7rem);
    font-weight: 760;
    line-height: 0.95;
    letter-spacing: 0;
}

.resume-hero h1 {
    font-size: clamp(2.35rem, 4.4vw, 5rem);
}

.section-head h1 {
    font-size: clamp(2rem, 3.45vw, 4rem);
}

.resume-hero .eyebrow,
.section-head .eyebrow,
.project-kicker {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(105, 215, 255, 0.28);
    border-radius: 4px;
    background: rgba(105, 215, 255, 0.09);
    color: #bdeeff;
    padding: 6px 9px;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 850;
    text-transform: uppercase;
}

.hero-copy,
.section-copy p:not(.eyebrow),
.contact-intro p {
    color: #d6e0eb;
    font-size: clamp(1.02rem, 1.35vw, 1.22rem);
    line-height: 1.68;
}

.primary-action,
.secondary-action,
.song-links a,
.spotify-artist-link {
    border-radius: 4px;
}

.primary-action {
    background: var(--studio-gold);
    color: #0b0d10;
}

.secondary-action {
    border-color: var(--studio-line-strong);
    background: rgba(255, 255, 255, 0.065);
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 22px;
    border: 1px solid var(--studio-line);
    border-radius: 4px;
    background: rgba(7, 11, 16, 0.64);
    box-shadow: none;
    padding: 4px;
}

.metric-grid article {
    min-height: 132px;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    padding: 20px 16px;
}

.metric-grid strong {
    color: var(--studio-text);
    font-size: clamp(1.45rem, 2.5vw, 2.4rem);
    font-weight: 780;
    line-height: 1.02;
}

.metric-grid span {
    color: var(--studio-muted);
    font-size: 0.94rem;
}

.resume-columns {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 18px;
    margin-top: 18px;
}

.resume-columns article,
.capability-matrix article,
.timeline article,
.project-grid article,
.contact-grid a {
    border: 1px solid var(--studio-line);
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)),
        var(--studio-panel);
    box-shadow: none;
}

.resume-columns article,
.capability-matrix article {
    padding: clamp(22px, 2.4vw, 32px);
}

.resume-columns h2,
.capability-matrix h2,
.timeline h2,
.project-grid h2 {
    color: var(--studio-text);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    font-weight: 760;
}

.resume-columns p,
.timeline p,
.project-grid p {
    color: #c5d1de;
}

.resume-summary-card::before,
.capability-matrix article::before,
.timeline article::before,
.project-grid article::before {
    background: linear-gradient(90deg, var(--studio-accent), rgba(216, 178, 93, 0.76), transparent);
    height: 2px;
}

.capability-matrix {
    counter-reset: capability;
    gap: 18px;
}

.capability-matrix article {
    counter-increment: capability;
}

.capability-matrix article::after {
    content: "0" counter(capability);
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(105, 215, 255, 0.2);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.tag-cloud span,
.timeline-tags span,
.project-tags span,
.contact-status span {
    border: 1px solid rgba(105, 215, 255, 0.18);
    border-radius: 4px;
    background: rgba(105, 215, 255, 0.07);
    color: #dcecff;
}

.timeline {
    gap: 10px;
}

.timeline article {
    grid-template-columns: minmax(132px, 0.22fr) minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 34px);
    padding: 24px 26px;
}

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

.timeline article:hover,
.project-grid article:hover,
.contact-grid a:hover {
    border-color: rgba(105, 215, 255, 0.36);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.028)),
        var(--studio-panel-strong);
    transform: translateY(-2px);
}

.project-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(310px, 36vw);
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 10px 0 18px;
    animation: project-drift 38s linear infinite alternate;
}

.project-grid article {
    scroll-snap-align: center;
    min-height: 0;
    padding: clamp(22px, 2.4vw, 32px);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.project-featured,
.music-project-card {
    grid-column: auto;
    grid-row: auto;
    min-width: min(620px, 70vw);
    transform: scale(1.025);
    border-color: rgba(105, 215, 255, 0.24) !important;
    background:
        linear-gradient(110deg, rgba(105, 215, 255, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)),
        var(--studio-panel) !important;
}

.project-featured h2 {
    max-width: 820px;
    font-size: clamp(1.8rem, 3.6vw, 3.35rem);
}

@keyframes project-drift {
    from {
        scroll-snap-type: x mandatory;
        transform: translateX(0);
    }
    to {
        transform: translateX(-22px);
    }
}

.project-grid:hover,
.project-grid:focus-within {
    animation-play-state: paused;
}

.project-video,
.song-video,
.experience-reel,
.track-player,
.contact-portrait {
    border-radius: 4px;
    border-color: var(--studio-line-strong);
}

.track-play,
.track-volume-button,
.music-toggle {
    border-color: rgba(105, 215, 255, 0.35);
    background: rgba(105, 215, 255, 0.1);
}

.track-player.playing .track-play,
.music-toggle.playing {
    background: var(--studio-accent);
}

.contact-layout {
    border-radius: 4px;
    border-color: var(--studio-line);
    background:
        linear-gradient(110deg, rgba(105, 215, 255, 0.1), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        var(--studio-panel);
    box-shadow: none;
}

.contact-status span {
    color: #e9f6ff;
}

.contact-status span::before {
    background: var(--studio-green);
    box-shadow: none;
}

.contact-grid a::after {
    background: linear-gradient(90deg, var(--studio-accent), transparent);
}

.contact-note {
    color: var(--studio-muted);
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.45;
}

@media (min-width: 900px) {
    .resume-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
        gap: clamp(28px, 5vw, 82px);
    }
}

@media (max-width: 900px) {
    .metric-grid,
    .resume-columns,
    .capability-matrix,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        grid-template-columns: 1fr;
        overflow-x: visible;
        animation: none;
    }

    .metric-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--studio-line);
    }

    .metric-grid article:last-child {
        border-bottom: 0;
    }

    .resume-hero h1,
    .section-head h1 {
        font-size: clamp(2rem, 10vw, 3.4rem);
    }
}

/* Studio presentation v2 */
:root {
    --ink-bg: #05080d;
    --ink-panel: rgba(13, 18, 25, 0.88);
    --ink-panel-2: rgba(18, 24, 32, 0.92);
    --ink-line: rgba(223, 232, 242, 0.14);
    --ink-line-strong: rgba(223, 232, 242, 0.28);
    --ink-text: #f5f7fa;
    --ink-muted: #aeb8c5;
    --ink-cyan: #62d5ff;
    --ink-red: #d83b42;
    --ink-gold: #d2aa56;
    --ink-green: #72dca6;
}

.portfolio-view {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 42px) clamp(18px, 4vw, 72px) 94px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(118deg, rgba(216, 59, 66, 0.12) 0%, transparent 26%),
        linear-gradient(180deg, #070a0f 0%, #0a1017 48%, #05080d 100%);
    background-size: 56px 56px, 56px 56px, auto, auto;
    color: var(--ink-text);
}

.portfolio-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.resume-hero,
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 3vw, 34px);
    border: 1px solid var(--ink-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018) 54%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 13px),
        var(--ink-panel);
    box-shadow: none;
    padding: clamp(30px, 5vw, 72px);
}

.resume-hero::before,
.section-head::before {
    width: 4px;
    background: linear-gradient(180deg, var(--ink-red), var(--ink-gold) 48%, var(--ink-cyan));
}

.resume-hero::after,
.section-head::after {
    opacity: 0.16;
}

.resume-hero .eyebrow,
.section-head .eyebrow,
.project-kicker {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink-gold);
    padding: 0;
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.resume-hero h1,
.section-head h1 {
    max-width: 980px;
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0;
    color: var(--ink-text);
}

.resume-hero h1 {
    font-size: clamp(3.2rem, 8vw, 8rem);
    max-width: 860px;
}

.section-head h1 {
    font-size: clamp(2.35rem, 4.8vw, 5.2rem);
}

.hero-copy,
.section-copy p:not(.eyebrow),
.contact-intro p {
    max-width: 900px;
    color: #d7dee8;
    font-size: clamp(1rem, 1.28vw, 1.26rem);
    line-height: 1.58;
}

.metric-grid,
.resume-columns,
.capability-matrix,
.timeline,
.project-grid,
.contact-layout,
.contact-grid {
    margin-top: clamp(18px, 2.5vw, 34px);
}

.metric-grid {
    border-radius: 8px;
    overflow: hidden;
}

.metric-grid article,
.resume-columns article,
.capability-matrix article,
.timeline article,
.project-grid article,
.contact-grid a {
    border: 1px solid var(--ink-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02)),
        var(--ink-panel);
    box-shadow: none;
}

.metric-grid {
    gap: 4px;
    padding: 4px;
    overflow: visible;
}

.metric-grid article {
    border: 0;
    padding: 20px 16px;
}

.project-shell {
    width: min(1640px, 100%);
}

.project-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.12fr) repeat(2, minmax(250px, 0.72fr));
    grid-auto-flow: dense;
    grid-auto-columns: unset;
    gap: clamp(16px, 1.7vw, 26px);
    overflow: visible;
    overscroll-behavior: auto;
    scroll-snap-type: none;
    padding: 0;
    animation: none;
}

.project-grid article {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 360px;
    flex-direction: column;
    gap: 16px;
    scroll-snap-align: unset;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    padding: clamp(22px, 2vw, 34px);
    transform: none;
}

.project-grid article:hover {
    transform: translateY(-4px);
}

.project-featured {
    grid-row: span 2;
    min-width: 0;
    min-height: 740px;
    transform: translateY(-6px) scale(1.012);
    background:
        linear-gradient(128deg, rgba(216, 59, 66, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        var(--ink-panel-2) !important;
}

.project-featured:hover {
    transform: translateY(-10px) scale(1.016);
}

.music-project-card {
    grid-column: span 2;
    min-width: 0;
    min-height: 520px;
    transform: none;
}

.project-grid h2 {
    color: var(--ink-text);
    font-family: "Bahnschrift", "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.04;
}

.project-featured h2 {
    font-size: clamp(2.4rem, 4.6vw, 5rem);
}

.project-grid p {
    color: var(--ink-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.project-tags,
.timeline-tags,
.tag-cloud,
.contact-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags {
    margin-top: auto;
}

.project-tags span,
.timeline-tags span,
.tag-cloud span,
.contact-status span {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 0;
    align-items: center;
    border: 1px solid rgba(98, 213, 255, 0.24);
    border-radius: 999px;
    background: rgba(98, 213, 255, 0.075);
    color: #e3f5ff;
    padding: 6px 10px;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
}

.project-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 310px;
    object-fit: cover;
    margin-top: auto;
    border-radius: 8px;
    border: 1px solid var(--ink-line-strong);
    background: #05080d;
}

.music-preview-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
}

.song-preview-block {
    display: grid;
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid var(--ink-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    padding: 12px;
}

.song-video {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 330px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--ink-line-strong);
    background: #05080d;
}

.track-player {
    min-width: 0;
    border-radius: 8px;
    border: 1px solid var(--ink-line);
    background: rgba(5, 8, 13, 0.56);
}

.contact-layout {
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(216, 59, 66, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02)),
        var(--ink-panel);
}

.contact-status span::before {
    width: 7px;
    height: 7px;
    background: var(--ink-green);
}

@media (min-width: 1050px) {
    .resume-hero {
        grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
        align-items: end;
    }

    .resume-hero .eyebrow,
    .resume-hero h1,
    .resume-hero .hero-actions {
        grid-column: 1;
    }

    .resume-hero .hero-copy {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
    }

    .section-head {
        grid-template-columns: minmax(170px, 0.2fr) minmax(0, 1fr);
        align-items: end;
    }

    .section-head .eyebrow {
        grid-column: 1;
        align-self: start;
    }

    .section-head h1,
    .section-copy,
    .section-head > .experience-reel {
        grid-column: 2;
    }
}

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

    .project-featured {
        grid-column: span 2;
        min-height: 520px;
    }
}

@media (max-width: 760px) {
    .portfolio-view {
        padding-inline: 16px;
    }

    .project-grid,
    .music-preview-list,
    .song-preview-block {
        grid-template-columns: 1fr;
    }

    .project-featured,
    .music-project-card {
        grid-column: auto;
        min-height: 0;
        transform: none;
    }

    .resume-hero h1,
    .section-head h1 {
        font-size: clamp(2.6rem, 14vw, 4.4rem);
    }
}

/* Final polish pass: game win state, Experience layout, music controls, and nav texture. */
.top-nav {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
        radial-gradient(circle at 18% 0%, rgba(212, 168, 79, 0.12), transparent 34%),
        rgba(9, 14, 21, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.win-overlay {
    position: absolute;
    inset: 0;
    z-index: 32;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 38%, rgba(212, 168, 79, 0.16), transparent 28%),
        rgba(3, 6, 10, 0.72);
    backdrop-filter: blur(7px);
}

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

.win-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(210px, 0.72fr);
    gap: clamp(18px, 4vw, 36px);
    align-items: stretch;
    width: min(840px, 94vw);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
        rgba(8, 13, 20, 0.94);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
    padding: clamp(24px, 5vw, 42px);
    text-align: left;
}

.win-card h2 {
    margin: 8px 0 18px;
    color: #fff;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.result-panel {
    min-width: 0;
}

.result-panel-left {
    display: grid;
    align-content: center;
}

.win-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.win-stats span {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    padding: 14px;
    font-size: 0.83rem;
    text-transform: uppercase;
}

.win-stats strong {
    color: #fff;
    font-size: 1.7rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-actions .primary-action,
.result-actions .secondary-action {
    min-height: 42px;
    border-radius: 8px;
    cursor: pointer;
}

.result-divider {
    position: relative;
    display: grid;
    place-items: center;
    color: #d7e2ef;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.result-divider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.result-divider span {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 13, 20, 0.94);
}

.result-links {
    display: grid;
    align-content: center;
    gap: 10px;
}

.result-links button {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(212, 168, 79, 0.13), transparent),
        rgba(255, 255, 255, 0.055);
    color: #f8fbff;
    font: inherit;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    padding: 0 16px;
    cursor: pointer;
}

.result-links button:hover,
.result-links button:focus-visible {
    outline: none;
    border-color: rgba(212, 168, 79, 0.5);
    background:
        linear-gradient(90deg, rgba(212, 168, 79, 0.2), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.07);
}

/* Final section-header cleanup: remove the tiny-label/huge-headline pattern. */
.resume-hero,
.section-head {
    grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(22px, 3.8vw, 56px);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018) 62%),
        linear-gradient(90deg, rgba(216, 178, 93, 0.105), transparent 42%),
        var(--ink-panel);
    padding: clamp(28px, 4vw, 58px);
}

.resume-hero .eyebrow,
.section-head .eyebrow,
.project-kicker {
    width: auto;
    max-width: 220px;
    border-left: 3px solid var(--ink-gold);
    color: #f0cf7a;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 1.18;
    text-transform: none;
    padding-left: 13px;
}

.resume-hero h1,
.section-head h1 {
    max-width: 1050px;
    font-size: clamp(2.05rem, 4.2vw, 4.65rem);
    line-height: 1.02;
    font-weight: 780;
}

.resume-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 5.2rem);
}

.hero-copy,
.section-copy p:not(.eyebrow),
.contact-intro p {
    grid-column: 2;
    max-width: 980px;
}

.resume-hero .hero-actions {
    grid-column: 2;
}

.win-card {
    width: min(780px, 94vw);
    grid-template-columns: minmax(0, 1fr) 58px minmax(190px, 0.62fr);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.028)),
        rgba(9, 14, 21, 0.96);
}

.win-card h2 {
    margin: 6px 0 18px;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    line-height: 1.02;
}

.win-card .eyebrow {
    color: #e6bd5b;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .resume-hero,
    .section-head {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .section-copy p:not(.eyebrow),
    .contact-intro p,
    .resume-hero .hero-actions {
        grid-column: 1;
    }

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

    .result-divider {
        min-height: 48px;
    }

    .result-divider::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    }
}

.experience-head {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
    padding: clamp(22px, 3.4vw, 38px);
    background:
        linear-gradient(90deg, rgba(212, 168, 79, 0.12), transparent 36%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 11px),
        rgba(9, 14, 21, 0.72);
}

.experience-media-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.experience-media-panel .eyebrow {
    margin: 0;
}

.experience-head .experience-media-panel,
.experience-head .section-copy {
    grid-column: auto;
}

.experience-head .section-copy {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 760px;
}

.experience-head .section-copy h1 {
    grid-column: 1;
    font-size: clamp(2.8rem, 4.7vw, 5.05rem);
    line-height: 0.94;
    max-width: 720px;
}

.experience-head .section-copy p {
    grid-column: 1;
    max-width: 660px;
    color: #d7e2ef;
    font-size: clamp(1.02rem, 1.4vw, 1.25rem);
}

.experience-reel {
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        #05070a;
}

.experience-reel-video {
    aspect-ratio: 16 / 9;
    max-height: 260px;
    object-fit: cover;
}

.reel-caption {
    min-height: 0;
    background:
        linear-gradient(90deg, rgba(212, 168, 79, 0.18), transparent),
        rgba(8, 13, 20, 0.94);
}

.music-preview-list {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.music-preview-list .song-preview-block {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.music-project-card .song-video {
    width: min(100%, 220px);
    height: auto;
    max-height: none;
    aspect-ratio: 9 / 16;
    justify-self: center;
    object-fit: cover;
}

.hud-stack {
    display: grid;
    gap: 10px;
}

.hud-sfx-card {
    min-width: 178px;
    padding: 9px 10px 10px;
    pointer-events: auto;
}

.sfx-title {
    display: block;
    color: #dff4ff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.sfx-controls {
    display: grid;
    grid-template-columns: 30px minmax(92px, 1fr);
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.sfx-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(105, 215, 255, 0.46);
    border-radius: 999px;
    background: rgba(105, 215, 255, 0.11);
    color: #dff4ff;
    cursor: pointer;
}

.sfx-toggle:hover,
.sfx-toggle:focus-visible {
    outline: none;
    border-color: rgba(105, 215, 255, 0.76);
    background: rgba(105, 215, 255, 0.2);
}

.sfx-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sfx-toggle.muted::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 14px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #ffd6d6;
    transform: rotate(-42deg);
}

.sfx-volume input {
    width: 100%;
    accent-color: var(--studio-accent, var(--gold));
}

.track-head {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 8px;
}

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

.track-volume {
    grid-template-columns: 30px 82px;
    gap: 6px;
    justify-self: end;
    width: 118px;
}

.track-volume-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
}

.track-volume-slider {
    max-width: 82px;
}

.song-spotify-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    color: #c7fff6;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.song-spotify-link:hover,
.song-spotify-link:focus-visible {
    border-color: rgba(45, 212, 191, 0.55);
    background: rgba(45, 212, 191, 0.13);
}

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

    .experience-reel-video {
        max-height: none;
    }
}

@media (max-width: 720px) {
    .win-stats,
    .music-preview-list {
        grid-template-columns: 1fr;
    }

    .track-head {
        grid-template-columns: 1fr;
    }

    .track-volume {
        justify-self: start;
    }
}

/* Final visual direction: compact studio headers instead of label-tile + huge-type blocks. */
.resume-hero,
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(14px, 2vw, 22px);
    max-width: 1180px;
    border: 1px solid rgba(210, 226, 243, 0.13);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.018) 56%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 10px),
        radial-gradient(circle at 100% 0%, rgba(216, 178, 93, 0.16), transparent 31%),
        rgba(8, 13, 20, 0.92);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
    padding: clamp(28px, 4.6vw, 64px);
}

.resume-hero::before,
.section-head::before {
    inset: 0 0 auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, var(--ink-red), var(--ink-gold), var(--ink-blue), transparent 78%);
}

.resume-hero::after,
.section-head::after {
    opacity: 0.18;
}

.resume-hero .eyebrow,
.section-head .eyebrow,
.project-kicker {
    display: block;
    width: auto;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(231, 190, 94, 0.98);
    padding: 0;
    font-size: clamp(0.88rem, 1.1vw, 1.05rem);
    font-weight: 900;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.resume-hero h1,
.section-head h1 {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 1040px;
    font-family: "Segoe UI Variable Display", "Aptos Display", "Bahnschrift", "Segoe UI", sans-serif;
    font-size: clamp(2.15rem, 3.6vw, 4.15rem);
    font-weight: 780;
    line-height: 1.04;
    text-wrap: balance;
}

.hero-copy,
.section-copy p:not(.eyebrow),
.contact-intro p,
.resume-hero .hero-actions {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
}

.hero-copy,
.section-copy p:not(.eyebrow),
.contact-intro p {
    max-width: 920px;
    color: rgba(219, 230, 241, 0.88);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.68;
}

.resume-hero h1 {
    text-wrap: normal;
}

.win-card {
    width: min(760px, 94vw);
    grid-template-columns: minmax(0, 1fr) 54px minmax(190px, 0.66fr);
    gap: clamp(16px, 3.5vw, 30px);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.026)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 11px),
        rgba(9, 14, 21, 0.97);
    padding: clamp(24px, 4vw, 38px);
}

.win-card .eyebrow {
    color: rgba(231, 190, 94, 0.98);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.win-card h2 {
    margin: 8px 0 20px;
    font-size: clamp(1.8rem, 2.65vw, 2.55rem);
    line-height: 1.08;
    text-wrap: balance;
}

.win-stats span {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.047);
}

.result-divider span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(12, 18, 27, 0.98);
}

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

.portfolio-shell > .resume-hero {
    grid-template-columns: minmax(0, 1fr) !important;
}

.portfolio-shell > .resume-hero > .eyebrow,
.portfolio-shell > .resume-hero > h1,
.portfolio-shell > .resume-hero > .hero-copy,
.portfolio-shell > .resume-hero > .hero-actions {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    align-self: auto !important;
}

.portfolio-shell > .resume-hero > h1 {
    width: min(100%, 1040px);
}
