:root {
    --bg-color: #000000;
    --bg-elevated: #0d0d12;
    --text-primary: #f6f6f8;
    --text-secondary: #a3a3b0;
    --text-muted: #6b6b78;
    --accent-color: #8b5cf6;
    --accent-2: #3b82f6;
    --accent-3: #ec4899;
    --gold: #f5c451;
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gold-gradient: linear-gradient(135deg, #fde68a, #f5c451 45%, #d97706);
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.08);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--accent-color);
    color: white;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    overflow-wrap: break-word;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.6rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.9rem, 4.6vw, 3.6rem);
    letter-spacing: -0.045em;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

a {
    color: inherit;
}

.highlight {
    padding-bottom: 0.06em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    max-width: 640px;
    margin-bottom: 3rem;
}

.inline-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-2), var(--accent-3));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 200;
}

/* Glass cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, height 0.4s ease;
}

nav.scrolled {
    --nav-h: 64px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-color);
}

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

.nav-links a {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cta-button.primary {
    background: var(--accent-gradient);
    border-color: transparent;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Sections */
section {
    position: relative;
    overflow-x: clip;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 5%;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: currentColor;
}

/* Pinned scenes: the section is tall, the stage sticks while JS scrubs --p */
.pin {
    position: relative;
    height: var(--pin-h, 250vh);
}

.pin-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.pin-anchor {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Hero */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: var(--nav-h) 6% 0;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 7.2vw, 6rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-content > p {
    max-width: 560px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-content .cta-row {
    justify-content: center;
}

/* Title lines slide up on load */
.split-line {
    display: block;
}

/* Padding keeps descenders and accents inside the gradient text box */
.split-line > span {
    display: inline-block;
    padding: 0.08em 0 0.14em;
    opacity: 0;
    transform: translateY(0.45em);
    transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out);
}

.loaded .split-line > span {
    opacity: 1;
    transform: translateY(0);
}

.loaded .split-line:nth-child(2) > span {
    transition-delay: 0.12s;
}

/* Full-size portrait under the hero */
.hero-photo {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-caption {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 12vh;
    padding: 0 6%;
    text-align: center;
}

.hero-caption h2 {
    font-size: clamp(1.9rem, 5.5vw, 4.4rem);
    letter-spacing: -0.045em;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-caption p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 500;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    z-index: 4;
    text-decoration: none;
}

.scroll-hint .mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-hint .mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--text-primary);
    animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    will-change: transform;
}

.shape-1 {
    width: 480px;
    height: 480px;
    background: var(--accent-color);
    top: -15%;
    right: -5%;
}

.shape-2 {
    width: 380px;
    height: 380px;
    background: var(--accent-2);
    bottom: -5%;
    left: -8%;
}

.shape-3 {
    width: 280px;
    height: 280px;
    background: var(--accent-3);
    top: 35%;
    right: 28%;
    opacity: 0.22;
}

/* Statement: words light up as you scroll */
.statement .pin-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.statement-text {
    max-width: 1100px;
    padding: 0 6%;
    font-size: clamp(1.45rem, 3.6vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--text-primary);
}

.statement-text .word {
    opacity: 0.14;
    transition: opacity 0.15s linear;
}

.statement-text .word.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Marquee */
.marquee {
    position: relative;
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    background: var(--bg-elevated);
}

.marquee-row {
    display: flex;
    gap: 3rem;
    width: max-content;
    font-size: clamp(1.5rem, 3.6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    will-change: transform;
}

.marquee-row + .marquee-row {
    margin-top: 0.5rem;
}

.marquee-row span {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
}

.marquee-row span::after {
    content: '✦';
    font-size: 0.5em;
    color: var(--accent-color);
}

.marquee-row.outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

/* Scroll-scrubbed elements: JS sets --e (0 → 1) while they enter the screen */
[data-scrub] {
    will-change: transform, opacity;
}

[data-scrub="rise"] {
    opacity: var(--e, 1);
    transform: translate3d(0, calc((1 - var(--e, 1)) * 120px), 0) scale(calc(0.9 + 0.1 * var(--e, 1)));
}

[data-scrub="zoom"] {
    opacity: calc(0.2 + 0.8 * var(--e, 1));
    transform: scale(calc(0.7 + 0.3 * var(--e, 1)));
}

[data-scrub="tilt"] {
    opacity: var(--e, 1);
    transform: perspective(1200px) rotateX(calc((1 - var(--e, 1)) * 28deg)) translate3d(0, calc((1 - var(--e, 1)) * 80px), 0) scale(calc(0.92 + 0.08 * var(--e, 1)));
    transform-origin: 50% 100%;
}

/* Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s var(--ease-out);
    transition-delay: var(--delay, 0s);
}

[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="down"] { transform: translateY(-40px); }
[data-reveal="left"] { transform: translateX(-80px); }
[data-reveal="right"] { transform: translateX(80px); }
[data-reveal="scale"] { transform: scale(0.88); }
[data-reveal="blur"] { filter: blur(12px); transform: translateY(30px); }

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Heading line mask reveal */
.reveal-heading > span {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em);
    transition: transform 1s var(--ease-out), opacity 1s var(--ease-out);
}

.reveal-heading.is-visible > span {
    opacity: 1;
    transform: translateY(0);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.about-text h3,
.skills h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.skill-tags span {
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.12);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Award: pinned scene with a giant "1." that shrinks into place */
#award-scene .pin-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-glow {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 900px;
    height: 900px;
    margin: -450px 0 0 -450px;
    background: radial-gradient(circle, rgba(245, 196, 81, 0.22), transparent 60%);
    pointer-events: none;
    opacity: 0;
    will-change: opacity, transform;
}

.award-stage {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: var(--nav-h) 6% 0;
    text-align: center;
}

.award-stage .section-label {
    color: var(--gold);
}

.award-rank {
    font-size: clamp(4.5rem, 15vh, 8.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}

.award-seq > * {
    will-change: transform, opacity;
}

.award-place {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0.75rem 0 1.25rem;
}

.award-stage h3 {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.award-category {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: rgba(245, 196, 81, 0.1);
    border: 1px solid rgba(245, 196, 81, 0.3);
    color: #fde68a;
    font-weight: 600;
    font-size: 0.9rem;
}

.award-stage p {
    margin: 0 auto 1.5rem;
    max-width: 620px;
}

.award-stage p strong {
    color: var(--text-primary);
}

.cta-button.gold {
    background: rgba(245, 196, 81, 0.1);
    border-color: rgba(245, 196, 81, 0.4);
    color: #fde68a;
}

.cta-button.gold:hover {
    background: var(--gold-gradient);
    color: #1a1204;
    box-shadow: 0 10px 30px rgba(245, 196, 81, 0.3);
}

#press .section-container {
    padding-top: 2rem;
}

.press-title {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Press cards slide sideways forever; hover pauses */
.press-marquee {
    overflow: hidden;
    margin: 0 -5%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.press-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    padding: 0.5rem 0;
    animation: press-slide var(--press-duration, 40s) linear infinite;
}

.press-marquee:hover .press-track,
.press-track:focus-within {
    animation-play-state: paused;
}

@keyframes press-slide {
    to { transform: translateX(calc(-50% - 0.625rem)); }
}

.press-track .press-card {
    width: 340px;
    flex-shrink: 0;
}

/* Ceremony photo: opens up from a narrow window as it scrolls in */
.award-photo {
    margin: 0 0 5rem;
    overflow: hidden;
}

.award-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1657 / 945;
    object-fit: cover;
    border-radius: 28px;
    clip-path: inset(0 calc((1 - var(--e, 1)) * 18%) round 28px);
    transform: scale(calc(1.12 - 0.12 * var(--e, 1)));
    filter: brightness(calc(0.35 + 0.65 * var(--e, 1)));
}

.award-photo figcaption {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: var(--e, 1);
}

.press-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.press-card:hover {
    border-color: rgba(245, 196, 81, 0.4);
}

.press-source {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.press-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.press-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.press-meta .arrow {
    transition: transform 0.3s ease;
}

.press-card:hover .arrow {
    transform: translateX(6px);
}

.press-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Experience timeline */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.timeline-column h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before,
.timeline-fill {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
}

.timeline::before {
    background: var(--glass-border);
}

.timeline-fill {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-2));
    transform-origin: top;
    transform: scaleY(0);
}

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

.timeline-date {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 1rem;
}

.timeline-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-list li {
    margin-bottom: 0.5rem;
}

/* Portfolio */
.portfolio-head {
    text-align: left;
}

.portfolio-nav {
    position: sticky;
    top: calc(var(--nav-h) + 0.75rem);
    z-index: 50;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 5rem;
    padding: 0.5rem;
    border-radius: 50px;
    background: rgba(18, 18, 25, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
}

.nav-btn {
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
    color: white;
    background: var(--accent-gradient);
}

.portfolio-category {
    margin-bottom: 3rem;
    scroll-margin-top: calc(var(--nav-h) + 6rem);
}

.portfolio-category h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.ig-embed {
    width: 100%;
    max-width: 340px;
    height: 600px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.app-card:hover {
    border-color: var(--accent-color);
}

.app-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--accent-gradient);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    transition: transform 0.4s var(--ease-out);
}

.app-card:hover .app-icon {
    transform: rotate(-8deg) scale(1.08);
}

.app-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.app-info p {
    font-size: 0.9rem;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 5rem 0;
}

/* Horizontal scroll gallery */
.hscroll {
    position: relative;
    margin-bottom: 0;
    scroll-margin-top: 0;
}

.hscroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hscroll-head {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 1rem) 5% 0;
}

.hscroll-head .subtitle {
    margin-bottom: 2rem;
}

.hscroll-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 0 5vw;
    will-change: transform;
}

.gallery-item {
    position: relative;
    height: 58vh;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.gallery-item img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 16, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.view-text {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .view-text {
    transform: translateY(0);
}

.hscroll-counter {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto 0;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hscroll-bar {
    flex: 1;
    max-width: 240px;
    height: 2px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.hscroll-bar span {
    display: block;
    height: 100%;
    background: var(--accent-gradient);
    transform-origin: left;
    transform: scaleX(0);
}

/* Contact */
#contact .section-container {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

.contact-card {
    position: relative;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2.5rem;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: auto -20% -60% -20%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.25), transparent 60%);
    pointer-events: none;
}

.contact-card h2 {
    font-size: clamp(2rem, 5.5vw, 4.2rem);
    letter-spacing: -0.05em;
}

.contact-card p {
    position: relative;
    margin-bottom: 1rem;
}

.contact-email {
    font-weight: 600;
    color: var(--text-primary) !important;
    font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
    word-break: break-all;
}

.contact-card .cta-row {
    position: relative;
    justify-content: center;
    margin-top: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
}

footer p {
    font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 92%;
    max-height: 85vh;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.4s var(--ease-out);
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #f1f1f1;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus-visible {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 968px) {
    .scroll-hint {
        display: none;
    }

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

    .timeline-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 5rem 6%;
    }

    .hero-content .cta-row {
        margin-top: 1.5rem;
    }

    /* Stacked buttons share one width so they line up in the middle */
    .cta-row {
        flex-direction: column;
        align-items: center;
    }

    .cta-row .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .hero-caption {
        bottom: 9vh;
    }

    .award-stage p {
        font-size: 1rem;
    }

    .award-place {
        margin: 0.5rem 0 0.75rem;
    }

    .glass-card {
        padding: 1.75rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: -1;
    }

    .nav-links a {
        font-size: 1.6rem;
        font-weight: 600;
    }

    nav.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
    }

    nav.menu-open {
        background: transparent;
        border-bottom-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .stat {
        padding: 1rem 0.75rem;
    }

    .stat strong {
        font-size: 1.5rem;
    }

    .press-track .press-card {
        width: 270px;
    }

    .award-photo {
        margin-bottom: 3rem;
    }

    .award-photo img {
        border-radius: 18px;
    }

    .portfolio-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        border-radius: 18px;
    }

    .portfolio-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-btn {
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

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

    .gallery-item {
        height: 50vh;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }
}
