/* ============================================================
   SHREYANSH KUMAR — PORTFOLIO
   Inspired by Studio Namma / Awwwards editorial aesthetic
   ============================================================ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --bg:          #EFEFEB;
    --bg-card:     #E8E8E3;
    --text:        #111111;
    --text-muted:  rgba(17, 17, 17, 0.45);
    --border:      rgba(17, 17, 17, 0.1);
    --hover-bg:    #111111;
    --hover-text:  #EFEFEB;
    --tag-bg:      rgba(17, 17, 17, 0.06);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --nav-h: 58px;
    --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg:         #111111;
    --bg-card:    #1A1A1A;
    --text:       #EFEFEB;
    --text-muted: rgba(239, 239, 235, 0.42);
    --border:     rgba(239, 239, 235, 0.1);
    --hover-bg:   #EFEFEB;
    --hover-text: #111111;
    --tag-bg:     rgba(239, 239, 235, 0.07);
}

/* ── Base ───────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    transition: background 0.45s var(--ease), color 0.45s var(--ease);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

/* ── Custom Cursor ─────────────────────────────────────────── */
.cursor {
    width: 7px;
    height: 7px;
    background: var(--text);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.3s var(--ease);
    will-change: transform;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--text);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
    will-change: transform;
}

.cursor.hover {
    width: 14px;
    height: 14px;
}

.cursor-follower.hover {
    width: 52px;
    height: 52px;
    opacity: 0.3;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 44px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--text);
    text-decoration: none;
}

.nav-center {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-left-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 24px;
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.nav-left-link {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

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

.hero-name-link {
    text-decoration: none;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.theme-toggle {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    cursor: none;
    padding: 0;
    transition: color 0.25s var(--ease);
}

.theme-toggle:hover {
    color: var(--text);
}

.nav-resume {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

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

.nav-cta {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--text);
    text-decoration: none;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-cta:hover {
    background: var(--hover-bg);
    color: var(--hover-text);
    border-color: var(--hover-bg);
}

.nav-cta--filled {
    background: var(--hover-bg);
    color: var(--hover-text);
    border-color: var(--hover-bg);
}

.nav-cta--filled:hover {
    background: #FAEA5C;
    color: #111111;
    border-color: #FAEA5C;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    min-height: 100svh;
    padding-top: var(--nav-h);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--nav-h));
}

/* Top row: text left + image right */
.hero-top {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 42%;
    min-height: 0;
}

.hero-left {
    padding: 40px 44px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
}

/* ── Hero image panel ──────────────────────────────────────── */
.hero-image-wrap {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    opacity: 0;
    animation: fadeIn 1s var(--ease) forwards 0.6s;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(100%) contrast(1.15) brightness(0.88);
    mix-blend-mode: normal;
    transition: transform 8s ease, filter 0.45s var(--ease);
    transform-origin: center;
}

.hero-image-wrap:hover .hero-image {
    transform: scale(1.03);
}

/* Grain overlay */
.hero-image-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* SVG noise via data URI */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    mix-blend-mode: overlay;
    opacity: 0.55;
    animation: grainShift 0.12s steps(1) infinite;
}

@keyframes grainShift {
    0%   { background-position: 0 0; }
    10%  { background-position: -5% -10%; }
    20%  { background-position: -15% 5%; }
    30%  { background-position: 7% -25%; }
    40%  { background-position: -5% 25%; }
    50%  { background-position: -15% 10%; }
    60%  { background-position: 15% 0%; }
    70%  { background-position: 0% 15%; }
    80%  { background-position: 3% 35%; }
    90%  { background-position: -10% 10%; }
    100% { background-position: 0 0; }
}

/* Subtle vignette on top of image */
.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.12) 0%,
        transparent 30%,
        transparent 65%,
        rgba(0,0,0,0.35) 100%
    );
    pointer-events: none;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
}

.hero-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(72px, 12.5vw, 196px);
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 40px;
    color: #FAEA5C;
}

.hero-line-wrap {
    display: block;
    overflow: hidden;
}

.hero-line {
    display: block;
    transform: translateY(105%);
    opacity: 0;
    animation: lineReveal 0.95s var(--ease-spring) forwards;
    animation-delay: 0.05s;
}

@keyframes lineReveal {
    to { transform: translateY(0); opacity: 1; }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) forwards 0.55s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 44px;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeIn 0.6s var(--ease) forwards 0.85s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-footer-left,
.hero-footer-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-footer-right {
    text-align: right;
}

.hero-footer-left span,
.hero-footer-right span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-scroll span {
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.scroll-bar {
    width: 1px;
    height: 48px;
    background: var(--text-muted);
    transform-origin: top;
    animation: scrollPulse 1.8s ease-in-out infinite 1.2s;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.4); }
    50%       { opacity: 0.8; transform: scaleY(1); }
}

/* ── Sections — common ─────────────────────────────────────── */
section {
    padding: 100px 44px;
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: var(--text-muted);
    margin-bottom: 64px;
}

/* ── Reveal animation ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-spring), transform 0.75s var(--ease-spring);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── About ─────────────────────────────────────────────────── */
.about {
    padding-top: 60px;
    padding-bottom: 60px;
}
.about-body {
    max-width: 1300px;
}

.about-lead {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.8vw, 40px);
    font-weight: 400;
    line-height: 1.38;
    letter-spacing: -0.015em;
    color: var(--text);
    max-width: 880px;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
}

.about-lead.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
}

.meta-item {
    padding: 32px 0 0;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
}

.meta-item:last-child {
    border-right: none;
    padding-left: 24px;
    padding-right: 0;
}

.meta-item:nth-child(2),
.meta-item:nth-child(3) {
    padding-left: 24px;
}

.meta-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.meta-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--text-muted);
}

.meta-value {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
}

.meta-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* About: text full-width, meta row below */
.about-cols {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 32px;
}

.about-col-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
}

.about-col-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Meta: horizontal 4-column row */
.about-cols .about-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: none;
    padding-top: 0;
}

.about-cols .meta-item {
    padding: 0 32px 0 0;
    border-right: none;
    border-bottom: none;
    border-top: none;
    padding-left: 0;
    margin-top: 0;
    gap: 8px;
    align-items: flex-start;
}

.about-cols .meta-value {
    font-size: 13.5px;
    white-space: nowrap;
    line-height: 1;
}

.about-cols .meta-value a {
    display: inline;
    line-height: 1;
}

/* ── Interests ──────────────────────────────────────────────── */
.interests-grid {
    display: flex;
    flex-direction: column;
}

.interest-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.35s var(--ease);
}

.interest-item:first-child {
    border-top: 1px solid var(--border);
}

.interest-item:hover {
    padding-left: 16px;
}

.interest-num {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding-top: 4px;
}

.interest-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.interest-desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 640px;
}

/* ── Film / Option C ────────────────────────────────────────── */
.film-feature {
    margin-top: 40px;
    padding: 44px 48px;
    border-radius: 10px;
    background: #FAEA5C;
    margin-bottom: 0;
    border-bottom: none;
}

.film-feature-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(17, 17, 17, 0.45);
    display: block;
    margin-bottom: 16px;
}

.film-hero {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(52px, 8vw, 120px);
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
}

[data-theme="dark"] .film-hero {
    color: #111111;
}

.film-feature-meta {
    font-size: 13px;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.5);
    letter-spacing: 0.05em;
}


.film-list {
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.film-list-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.3s var(--ease);
}

.film-list-item:hover {
    padding-left: 12px;
}

.film-list-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.film-list-meta {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ── Music ticker ───────────────────────────────────────────── */
.music-ticker {
    overflow: hidden;
    width: 100vw;
    /* Pull left by: 44px section padding + 80px num column + 40px gap = 164px */
    margin-left: -164px;
    margin-top: 36px;
    margin-bottom: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    cursor: default;
}

.music-ticker:hover .music-ticker-inner {
    animation-play-state: paused;
}

.music-ticker-inner {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker 22s linear infinite;
}

.music-ticker-inner span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 52px);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0 20px;
}

.ticker-dot {
    font-size: 25px !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    padding: 0 4px !important;
    letter-spacing: 0 !important;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Album list */
.album-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.album-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.3s var(--ease);
}

.album-item:first-child {
    border-top: 1px solid var(--border);
}

.album-item:hover {
    padding-left: 12px;
}

.album-left {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.album-num {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.album-title {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.album-meta {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ── F1 Driver Card ─────────────────────────────────────────── */
.f1-card {
    margin-top: 36px;
    background: #001830;
    border-radius: 10px;
    padding: 44px 48px 0;
    overflow: hidden;
    position: relative;
}

.f1-watermark {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-60%);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(180px, 22vw, 320px);
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
}

.f1-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 44px;
}

.f1-card-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.f1-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: #E8002D;
}

.f1-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 7vw, 96px);
    letter-spacing: -0.04em;
    line-height: 0.88;
    text-transform: uppercase;
    color: #ffffff;
}

.f1-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding-top: 6px;
}

.f1-champ-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.35);
}

.f1-years {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.f1-years span {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #FAEA5C;
    line-height: 1;
}

/* Stats bar */
.f1-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 -48px;
    padding: 0 48px;
}

.f1-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 24px;
}

.f1-stat:last-child {
    border-right: none;
}

.f1-stat:not(:first-child) {
    padding-left: 24px;
}

.f1-stat-val {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1;
}

.f1-stat-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.3);
}

/* Wide interest item — same grid as others, gallery spans the body col */
.interest-item--wide {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.35s var(--ease);
}

.interest-item--wide:first-child {
    border-top: 1px solid var(--border);
}

.interest-item--wide:hover {
    padding-left: 16px;
}

/* Art gallery grid */
.art-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.art-item {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
    position: relative;
    cursor: none;
    border-radius: 14px;
}

/* The actual image/video */
.art-item img,
.art-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.3) brightness(0.75);
    transition: filter 0.55s var(--ease), transform 0.7s var(--ease);
    position: relative;
    z-index: 1;
}

/* Heavy animated grain — dedicated element like hero portrait */
.art-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
    mix-blend-mode: screen;
    opacity: 0.88;
    animation: grainShift 0.1s steps(1) infinite;
    transition: opacity 0.5s var(--ease);
    border-radius: 14px;
}

/* Second grain pass via pseudo — adds depth */
.art-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 140px 140px;
    mix-blend-mode: overlay;
    opacity: 0.75;
    animation: grainShift 0.15s steps(1) infinite reverse;
    transition: opacity 0.5s var(--ease);
    border-radius: 14px;
}

.art-item::after { display: none; }

/* Overlay card — large white card covering most of the image */
.art-card {
    position: absolute;
    z-index: 4;
    inset: 15%;
    background: #EFEFEB;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    pointer-events: none;
    overflow: hidden;
}

.art-card-type {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: rgba(17, 17, 17, 0.4);
    text-transform: uppercase;
    display: block;
}

.art-card-title {
    font-family: var(--font-display);
    font-size: clamp(13px, 1.8vw, 22px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: #111111;
    text-transform: uppercase;
    align-self: flex-start;
    margin-top: auto;
}

/* Hover: fully normal — color, no grain */
.art-item:hover img,
.art-item:hover video {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.03);
}

.art-item:hover .art-grain {
    opacity: 0;
}

.art-item:hover::before {
    opacity: 0;
}

.art-item:hover .art-card {
    opacity: 0;
    transform: translateY(6px);
}

/* ── Art card variants ──────────────────────────────────────── */

/* 1. Pink title — Florals in Ink */
.art-item--pink .art-card-title {
    color: #C8788A;
}

/* 2. Red card — Pen & Paper */
.art-item--red .art-card {
    background: #A83232;
}
.art-item--red .art-card-type {
    color: rgba(255, 255, 255, 0.5);
}
.art-item--red .art-card-title {
    color: #ffffff;
}

/* 4. Boston — solid yellow text */
.art-item--boston .art-card {
    inset: 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    justify-content: flex-end;
    padding: 14px 16px;
}
.art-item--boston .art-card-type {
    color: rgba(255, 255, 255, 0.55);
    align-self: flex-start;
}
.art-item--boston .art-card-title {
    color: #FAEA5C;
    font-size: clamp(22px, 3vw, 38px);
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: uppercase;
    align-self: flex-start;
    margin-top: 0;
}

/* 3. Knockout text — NEW YORK */
.art-item--knockout .art-card {
    inset: 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.42);
    justify-content: flex-end;
    padding: 14px 16px;
}
.art-item--knockout .art-card-type {
    color: rgba(255, 255, 255, 0.55);
    align-self: flex-start;
}
.art-item--knockout .art-card-title {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.92);
    font-size: clamp(22px, 3vw, 38px);
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: uppercase;
    align-self: flex-start;
    margin-top: 0;
}

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

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

/* ── Resume page ────────────────────────────────────────────── */
.resume-header {
    padding-top: var(--nav-h);
    border-bottom: 1px solid var(--border);
}

.resume-header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 44px 52px;
    border-bottom: 1px solid var(--border);
    align-items: end;
}

.resume-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 7vw, 100px);
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    overflow: hidden;
    color: #FAEA5C;
}

.resume-summary {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 480px;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--text);
    text-decoration: none;
    padding: 13px 24px;
    border: 1px solid var(--text);
    border-radius: 2px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.resume-download:hover {
    background: var(--hover-bg);
    color: var(--hover-text);
    border-color: var(--hover-bg);
}

.resume-header-meta {
    display: flex;
    gap: 40px;
    padding: 18px 44px;
}

.resume-header-meta span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-muted);
}

.resume-header-meta .meta-link {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-muted);
}

.resume-header-meta .meta-link:hover {
    color: var(--text);
}

/* Footer back link */
.footer-back {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ── Experience ─────────────────────────────────────────────── */
.exp-list {
    display: flex;
    flex-direction: column;
}

.exp-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
    gap: 32px;
    transition: padding-left 0.4s var(--ease);
}

.exp-item:first-child {
    border-top: 1px solid var(--border);
}

.exp-item:hover {
    padding-left: 16px;
}

.exp-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 5px;
}

.exp-num {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.exp-period {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    line-height: 1.5;
}

.exp-top {
    margin-bottom: 14px;
}

.exp-role {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 32px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.exp-company {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.exp-desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 22px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.exp-tags span {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 5px 13px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.exp-item:hover .exp-tags span {
    border-color: rgba(17, 17, 17, 0.3);
    color: var(--text);
}

[data-theme="dark"] .exp-item:hover .exp-tags span {
    border-color: rgba(239, 239, 235, 0.35);
}

/* ── Projects ───────────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5px;
    background: var(--border);
}

.project-card {
    background: var(--bg);
    overflow: hidden;
    position: relative;
    cursor: none;
}

.project-inner {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hover-bg);
    transform: translateY(101%);
    transition: transform 0.55s var(--ease-spring);
    z-index: 0;
}

.project-card:hover::after {
    transform: translateY(0);
}

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

.project-num {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 28px;
    transition: color 0.4s var(--ease);
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 18px;
    transition: color 0.4s var(--ease);
}

.project-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 26px;
    flex: 1;
    transition: color 0.4s var(--ease);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 36px;
}

.project-tags span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    padding: 4px 11px;
    background: var(--tag-bg);
    border-radius: 100px;
    color: var(--text);
    transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.project-card:hover .project-num,
.project-card:hover .project-title {
    color: var(--hover-text);
}

.project-card:hover .project-desc {
    color: rgba(239, 239, 235, 0.6);
}

.project-card:hover .project-tags span {
    background: rgba(239, 239, 235, 0.12);
    color: var(--hover-text);
}

.project-stat {
    display: flex;
    gap: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    transition: border-color 0.4s var(--ease);
}

.project-card:hover .project-stat {
    border-color: rgba(239, 239, 235, 0.18);
}

.project-stat > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-val {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
    transition: color 0.4s var(--ease);
    display: block;
}

.stat-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: color 0.4s var(--ease);
    display: block;
}

.project-card:hover .stat-val {
    color: var(--hover-text);
}

.project-card:hover .stat-label {
    color: rgba(239, 239, 235, 0.5);
}

/* ── Skills ─────────────────────────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px 100px;
}

.skill-group-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.skill-tags span {
    font-size: 13px;
    font-weight: 400;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    cursor: default;
}

.skill-tags span:hover {
    background: var(--hover-bg);
    color: var(--hover-text);
    border-color: var(--hover-bg);
}

/* ── Certifications ─────────────────────────────────────────── */
.certs-list {
    display: flex;
    flex-direction: column;
}

.cert-item {
    display: flex;
    align-items: baseline;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.35s var(--ease);
}

.cert-item:first-child {
    border-top: 1px solid var(--border);
}

.cert-item:hover {
    padding-left: 12px;
}

.cert-issuer {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    width: 120px;
    flex-shrink: 0;
}

.cert-name {
    font-family: var(--font-display);
    font-size: clamp(15px, 1.5vw, 20px);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* ── Contact ────────────────────────────────────────────────── */
.contact {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 8.5vw, 120px);
    letter-spacing: -0.04em;
    line-height: 0.92;
    text-transform: uppercase;
    max-width: 1000px;
    margin-bottom: 80px;
}

.contact-links {
    display: flex;
    flex-direction: column;
}

.contact-link {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: padding-left 0.3s var(--ease), color 0.2s ease;
}

.contact-link:first-child {
    border-top: 1px solid var(--border);
}

.contact-link:hover {
    padding-left: 20px;
}

.cl-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--text-muted);
}

.cl-value {
    font-family: var(--font-display);
    font-size: clamp(16px, 2.2vw, 30px);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.cl-arrow {
    font-size: 22px;
    color: var(--text-muted);
    transition: transform 0.25s var(--ease), color 0.2s ease;
}

.contact-link:hover .cl-arrow {
    transform: translate(5px, -5px);
    color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    padding: 28px 44px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .nav { padding: 0 24px; }
    .nav-center { display: none; }
    .nav-left-links { display: none; }
    .nav-left { gap: 0; }

    .hero-top {
        grid-template-columns: 1fr;
        grid-template-rows: auto 55vw;
    }

    .hero-left {
        border-right: none;
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    section { padding-left: 24px; padding-right: 24px; }

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

    .meta-item:nth-child(2) {
        border-right: none;
        padding-left: 24px;
    }

    .meta-item:nth-child(3) {
        border-right: 1px solid var(--border);
        padding-left: 0;
        padding-right: 24px;
    }

    .meta-item:last-child {
        padding-left: 24px;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .exp-meta {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

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

    .project-inner {
        padding: 44px 32px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .contact-heading {
        font-size: clamp(40px, 10vw, 80px);
    }

    .contact-link {
        grid-template-columns: 80px 1fr auto;
    }

    .interest-item {
        grid-template-columns: 48px 1fr;
        gap: 20px;
    }

    .music-ticker {
        /* Mobile: 24px section padding + 48px num col + 20px gap = 92px */
        margin-left: -92px;
    }

    .resume-header-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px 32px;
    }

    .resume-header-meta {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer {
        padding: 24px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .nav-right { gap: 16px; }
    .theme-toggle { display: none; }

    .hero-name {
        font-size: clamp(60px, 16vw, 100px);
    }

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

    .meta-item,
    .meta-item:nth-child(2),
    .meta-item:nth-child(3),
    .meta-item:last-child {
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .contact-link {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .cl-label { display: none; }
}

/* ── Selection color ────────────────────────────────────────── */
::selection {
    background: var(--text);
    color: var(--bg);
}
