/*
 * Semiha Paksoy Website - Main Stylesheet
 * Design: Modern, artistic, black & white with creative animations
 * Typography: Space Grotesk (headings), Inter (body), JetBrains Mono (accents)
 */

/* Google Fonts declarations are kept locally so typography no longer waits on
   a render-blocking fonts.googleapis.com stylesheet. Latin + Latin Extended
   cover both the Turkish and English interfaces. */
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
    src: url('https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPx7cwgknk-6nFg.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
    src: url('https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbv2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKwBNntkaToggR7BYRbKPxDcwgknk-4.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url('https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPb94C_k3HqUtEw.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url('https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4C_k3HqU.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-card: #161616;
    --color-bg-elevated: #1a1a1a;
    --color-surface: #1e1e1e;
    --color-border: #2a2a2a;
    --color-border-light: #333333;
    
    --color-text: #f0f0f0;
    --color-text-secondary: #a8a8a8;
    --color-text-muted: #8a8a8a;
    --color-text-dim: #767676;
    
    --color-white: #ffffff;
    --color-black: #000000;
    --color-accent: #e0e0e0;
    
    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 5rem;
    --text-7xl: 7rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --space-section: clamp(4rem, 10vw, 8rem);
    
    /* Layout */
    --container-max: 1280px;
    --container-narrow: 760px;
    --nav-height: 80px;
    --border-radius: 8px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Keep anchor targets clear of the fixed header */
    scroll-padding-top: calc(var(--nav-height) + 1rem);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    cursor: auto;
}

@media (pointer: fine) {
    .custom-cursor-ready body,
    .custom-cursor-ready a,
    .custom-cursor-ready button { cursor: none; }
}

/* Show default cursor on mobile */
@media (pointer: coarse) {
    body { cursor: auto; }
    .custom-cursor, .custom-cursor-dot { display: none !important; }
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

@media (pointer: coarse) {
    a { cursor: pointer; }
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

@media (pointer: coarse) {
    button { cursor: pointer; }
}

ul, ol {
    list-style: none;
}

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

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                border-color 0.3s,
                background-color 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--color-white);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}


/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-section) 0;
}

.main-content {
    min-height: 100vh;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-md) 0;
    transition: background-color 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 101;
}

.logo-text {
    transition: transform 0.3s var(--ease-out-expo);
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--color-white);
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover .logo-text {
    transform: translateX(-2px);
}

.nav-logo:hover .logo-dot {
    transform: scale(1.5);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--duration-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
    z-index: 101;
}

/* Sound Toggle */
.sound-toggle {
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 4px;
    transition: all var(--duration-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sound-toggle:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

.sound-toggle .sound-icon-on {
    display: none;
}

.sound-toggle .sound-icon-off {
    display: block;
}

.sound-toggle.sound-on .sound-icon-on {
    display: block;
}

.sound-toggle.sound-on .sound-icon-off {
    display: none;
}

.sound-toggle.sound-on {
    color: var(--color-white);
    border-color: var(--color-white);
}

.lang-switch {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-xs) var(--space-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--duration-fast);
}

.lang-switch:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Hamburger */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    padding: 10px 6px;
}

/* Switch to the hamburger early so the full nav never crowds the actions */
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .nav-toggle { display: block; }
}

.hamburger {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    position: absolute;
    left: 0;
    transition: all 0.3s var(--ease-out-expo);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.nav-toggle.active .hamburger span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-black);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
}

/* Single content block: centers when it fits, scrolls from the top when it doesn't */
.mobile-menu-content {
    margin: auto 0;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-2xl);
    width: 100%;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    overflow: hidden;
}

.mobile-nav-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 600;
    padding: var(--space-sm) 0;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out-expo), color 0.3s;
    color: var(--color-text-secondary);
}

.mobile-menu-overlay.active .mobile-nav-link {
    transform: translateY(0);
}

.mobile-nav-list li:nth-child(1) .mobile-nav-link { transition-delay: 0.1s; }
.mobile-nav-list li:nth-child(2) .mobile-nav-link { transition-delay: 0.15s; }
.mobile-nav-list li:nth-child(3) .mobile-nav-link { transition-delay: 0.2s; }
.mobile-nav-list li:nth-child(4) .mobile-nav-link { transition-delay: 0.25s; }
.mobile-nav-list li:nth-child(5) .mobile-nav-link { transition-delay: 0.3s; }
.mobile-nav-list li:nth-child(6) .mobile-nav-link { transition-delay: 0.35s; }
.mobile-nav-list li:nth-child(7) .mobile-nav-link { transition-delay: 0.4s; }
.mobile-nav-list li:nth-child(8) .mobile-nav-link { transition-delay: 0.45s; }

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-white);
}

.mobile-menu-footer {
    text-align: center;
    margin-top: var(--space-2xl);
}

.lang-switch-mobile {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-lg);
    display: inline-block;
    transition: all var(--duration-fast);
}

.lang-switch-mobile:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, var(--text-7xl));
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.hero-skills {
    margin-bottom: var(--space-2xl);
}

.hero-skills-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero-skill {
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color var(--duration-fast), transform var(--duration-fast), letter-spacing var(--duration-fast), text-shadow var(--duration-fast), opacity var(--duration-fast);
}

.hero-skill:hover,
.hero-skill.is-active,
.hero-skill:focus-visible {
    color: var(--color-white);
    letter-spacing: 0.11em;
    transform: translateY(-1px);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.14);
}

.hero-skill:focus-visible {
    outline: none;
}

.hero-skill-separator {
    color: var(--color-text-dim);
    opacity: 0.75;
}

.hero-skill-stage {
    position: relative;
    margin-top: var(--space-md);
    width: min(240px, 100%);
    height: 44px;
}

.hero-skill-stage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04));
    transform: translateY(-50%);
}

.skill-stage {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(4px) scale(0.98);
    transition: opacity var(--duration-fast), transform var(--duration-fast);
    pointer-events: none;
}

.hero-skills[data-active="composer"] .skill-stage-composer,
.hero-skills[data-active="sound"] .skill-stage-sound,
.hero-skills[data-active="multimedia"] .skill-stage-multimedia {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-stage-composer {
    width: 180px;
}

.stage-staff {
    position: absolute;
    top: 9px;
    left: 0;
    width: 140px;
    height: 24px;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0 3px,
        rgba(255,255,255,0.18) 3px 4px,
        transparent 4px 8px
    );
    mask-image: linear-gradient(90deg, #000 0 78%, transparent 100%);
}

.stage-note {
    position: absolute;
    width: 10px;
    height: 8px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 14px rgba(255,255,255,0.08);
}

.stage-note::after {
    content: '';
    position: absolute;
    left: 8px;
    bottom: 3px;
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.55);
}

.stage-note-a {
    top: 16px;
    left: 34px;
    animation: composerNoteA 1.4s ease-in-out infinite alternate;
}

.stage-note-b {
    top: 8px;
    left: 84px;
    animation: composerNoteB 1.5s ease-in-out infinite alternate;
}

@keyframes composerNoteA {
    0% { transform: translate3d(0, 0, 0) rotate(-6deg); }
    100% { transform: translate3d(9px, -4px, 0) rotate(5deg); }
}

@keyframes composerNoteB {
    0% { transform: translate3d(0, 0, 0) rotate(4deg); }
    100% { transform: translate3d(11px, 3px, 0) rotate(-5deg); }
}

.skill-stage-sound {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    width: 146px;
    height: 100%;
}

.stage-bar {
    width: 4px;
    height: calc(10px + var(--i) * 2px);
    border-radius: 999px;
    background: linear-gradient(to top, rgba(255,255,255,0.12), rgba(255,255,255,0.65));
    transform-origin: bottom center;
    animation: stageBars 1.1s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes stageBars {
    0%, 100% { transform: scaleY(0.48); opacity: 0.22; }
    50% { transform: scaleY(1.2); opacity: 0.82; }
}

.skill-stage-multimedia {
    width: 140px;
    perspective: 800px;
}

.skill-stage-multimedia::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 62px;
    width: 46px;
    height: 20px;
    border: 1px dashed rgba(255,255,255,0.18);
    transform: skewX(-28deg);
    opacity: 0.55;
}

.stage-cube {
    position: absolute;
    top: 9px;
    left: 22px;
    width: 24px;
    height: 24px;
    transform-style: preserve-3d;
    animation: stageCubeTurn 1.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cube-face {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.02);
    box-shadow: 0 0 14px rgba(255,255,255,0.05);
}

.cube-face-front {
    transform: translateZ(12px);
}

.cube-face-side {
    transform: rotateY(90deg) translateZ(12px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(12px);
}

@keyframes stageCubeTurn {
    0% { transform: rotateX(-18deg) rotateY(18deg); }
    50% { transform: rotateX(18deg) rotateY(-78deg); }
    100% { transform: rotateX(-18deg) rotateY(-162deg); }
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
}

/* Equalizer visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 200px;
}

.eq-bar {
    width: 6px;
    background: var(--color-white);
    border-radius: 3px;
    opacity: 0.3;
    height: 20%;
    animation: eqBounce 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes eqBounce {
    0%, 100% { height: 15%; opacity: 0.15; }
    50% { height: calc(30% + var(--i) * 2%); opacity: 0.5; }
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    color: var(--color-text-dim);
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================================
   PAGE HERO (Interior pages)
   ============================================ */
.page-hero {
    padding-top: calc(var(--nav-height) + var(--space-5xl));
    padding-bottom: var(--space-4xl);
}

.page-hero-compact {
    padding-bottom: var(--space-2xl);
}

.page-hero-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-md);
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, var(--text-5xl));
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    margin-bottom: var(--space-3xl);
}

.section-number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-dim);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, var(--text-4xl));
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

.section-title-vertical {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-cta {
    margin-top: var(--space-3xl);
    text-align: center;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius);
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
}

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

.btn-outline {
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.3s, gap 0.3s var(--ease-out-expo);
}

.link-arrow:hover {
    color: var(--color-white);
    gap: var(--space-md);
}

.link-arrow-sm {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.3s, gap 0.3s var(--ease-out-expo);
}

.link-arrow-sm:hover {
    color: var(--color-white);
    gap: var(--space-sm);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--color-white);
}

/* ============================================
   ABOUT PREVIEW (Home)
   ============================================ */
.about-preview-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-3xl);
}

.about-preview-label {
    border-right: 1px solid var(--color-border);
    padding-right: var(--space-2xl);
}

.large-text {
    font-size: clamp(1.1rem, 2vw, var(--text-xl));
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-4xl);
    align-items: start;
}

.about-intro {
    margin-bottom: var(--space-3xl);
}

.about-intro .large-text {
    margin-bottom: var(--space-lg);
}

.about-philosophy {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    border-left: 2px solid var(--color-border-light);
    padding-left: var(--space-xl);
    margin-top: var(--space-xl);
}

.about-section {
    margin-bottom: var(--space-3xl);
}

.about-section-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.title-number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}

/* Education */
.education-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.education-icon {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.education-info h3 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.education-info p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Interests */
.interests-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.interest-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all 0.3s var(--ease-out-expo);
}

.interest-item:hover {
    border-color: var(--color-border-light);
    background: var(--color-bg-card);
    transform: translateX(8px);
}

.interest-icon {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.interest-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-secondary);
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--color-white);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

/* About visual */
.about-visual {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
}

.about-visual-frame {
    aspect-ratio: 3/4;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.waveform-art {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 60%;
    width: 100%;
}

.wave-line {
    flex: 1;
    background: var(--color-white);
    opacity: 0.1;
    border-radius: 2px;
    height: calc(20% + sin(var(--i) * 0.5) * 60%);
    animation: waveArt 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.08s);
}

@keyframes waveArt {
    0%, 100% { height: 15%; opacity: 0.08; }
    50% { height: calc(20% + 50%); opacity: 0.2; }
}

.visual-label {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
}

.mono-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-dim);
    letter-spacing: 0.1em;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-filter {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-secondary);
    transition: all 0.3s;
    cursor: none;
    background: none;
    text-decoration: none;
    display: inline-block;
}

@media (pointer: coarse) {
    .filter-btn { cursor: pointer; }
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--color-white);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}
.portfolio-grid-single {
    grid-template-columns: minmax(280px, 680px);
    justify-content: start;
}
.portfolio-grid-single .portfolio-card-info { padding: var(--space-xl); }
.portfolio-grid-single .portfolio-card-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    margin-bottom: var(--space-sm);
}

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

.portfolio-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.portfolio-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
}

.portfolio-card-media {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.portfolio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-card-media img {
    transform: scale(1.05);
}

.portfolio-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
}

.mini-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 40px;
}

.mini-waveform span {
    width: 3px;
    background: var(--color-white);
    opacity: 0.15;
    border-radius: 2px;
    animation: miniWave 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes miniWave {
    0%, 100% { height: 8px; }
    50% { height: 30px; }
}

.portfolio-card-overlay {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-sm);
}

.portfolio-card-category,
.portfolio-card-type {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.portfolio-card-info {
    padding: var(--space-lg);
}

.portfolio-card-info h2,
.portfolio-card-info h3 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.portfolio-card-info p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-muted);
    padding: 2px 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

/* Works – project cards in portfolio grid */
.portfolio-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.works-project-card {
    position: relative;
}

.works-featured {
    border-color: var(--color-border-light);
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-elevated));
}

.badge-sm {
    font-size: 10px;
    padding: 2px 8px;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

/* ============================================
   BLOG
   ============================================ */
.blog-filter {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

.blog-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.blog-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: var(--space-lg);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.meta-separator {
    color: var(--color-text-dim);
}

.blog-card-content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.blog-card-content h3 a {
    transition: color 0.3s;
}

.blog-card-content h3 a:hover {
    color: var(--color-accent);
}

.blog-card-content > p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.blog-card-tags {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

/* ============================================
   BLOG POST DETAIL
   ============================================ */
.page-hero-post {
    padding-bottom: var(--space-2xl);
}

.post-hero-content {
    max-width: var(--container-narrow);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, var(--text-4xl));
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.post-excerpt {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.post-featured-image {
    margin-bottom: var(--space-3xl);
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Prose (blog content) */
.prose {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.prose h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
}

.prose h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.prose h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.prose p {
    margin-bottom: var(--space-lg);
}

.prose img {
    border-radius: var(--border-radius);
    margin: var(--space-2xl) 0;
}

.prose figure.post-image {
    margin: var(--space-2xl) 0;
    padding: 0;
}

.prose figure.post-image img {
    width: 100%;
    border-radius: var(--border-radius);
    margin: 0;
}

.prose figure.post-image figcaption {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-sm);
    font-style: italic;
}

.prose ul, .prose ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.prose li {
    margin-bottom: var(--space-sm);
}

.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-2xl) 0;
    font-size: var(--text-base);
}

.prose table th,
.prose table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.prose table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    border-bottom-width: 2px;
}

.prose table td {
    color: var(--color-text-secondary);
}

.prose table tr:last-child td {
    border-bottom: none;
}

.prose blockquote {
    border-left: 2px solid var(--color-border-light);
    padding-left: var(--space-xl);
    margin: var(--space-2xl) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-bg-card);
    padding: 2px 6px;
    border-radius: 4px;
}

.prose pre {
    background: var(--color-bg-card);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: var(--space-2xl) 0;
}

.prose pre code {
    background: none;
    padding: 0;
}

.prose a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Share */
.post-share {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-3xl);
}

.share-block {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.share-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.share-links {
    display: flex;
    gap: var(--space-md);
}

.share-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: all 0.3s;
}

.share-link:hover {
    border-color: var(--color-white);
    color: var(--color-white);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.project-item:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
}

.project-featured {
    border-color: var(--color-border-light);
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-elevated));
}

.project-badge-wrap {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
}

.project-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.project-item-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
}

.project-item-title a {
    transition: color 0.3s;
}

.project-item-title a:hover {
    color: var(--color-accent);
}

.project-item-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--color-text-muted);
}

.project-item-actions {
    display: flex;
    gap: var(--space-xl);
}

.project-item-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.project-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-item-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border: 1px solid var(--color-border);
    animation: orbFloat 4s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Project detail */
.project-info-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-2xl);
    align-items: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.info-item-action {
    align-self: center;
    justify-self: end;
}

.info-item-action .btn {
    white-space: nowrap;
}

.info-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.info-value {
    font-size: var(--text-sm);
    color: var(--color-text);
}

/* Development Journal (Project Detail) */
.project-devlog {
    margin-top: var(--space-4xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.project-devlog h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.devlog-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.devlog-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.devlog-entry {
    display: grid;
    grid-template-columns: 36px 120px 1fr 20px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.devlog-entry:first-child {
    border-top: 1px solid var(--color-border);
}

.devlog-entry:hover {
    color: var(--color-text);
}

.devlog-entry:hover .devlog-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.devlog-number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.devlog-date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.devlog-title {
    font-size: var(--text-base);
    font-weight: 500;
}

.devlog-arrow {
    opacity: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    color: var(--color-text-muted);
}

/* ============================================
   GRADUATION SECTION (Home)
   ============================================ */
.graduation-banner {
    display: grid;
    grid-template-columns: 170px 1fr minmax(320px, 420px);
    gap: var(--space-2xl);
    padding: var(--space-3xl);
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-elevated));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    align-items: center;
}

.graduation-label {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.graduation-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.graduation-desc {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.graduation-meta {
    margin-bottom: var(--space-lg);
}

.graduation-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.graduation-visual-card {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 16 / 10;
}

.graduation-visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 38%),
        radial-gradient(circle at 85% 78%, rgba(255,255,255,0.05), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}

.graduation-visual-frame {
    position: absolute;
    inset: 18px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.05), rgba(255,255,255,0.015) 58%, rgba(255,255,255,0.01) 100%),
        linear-gradient(180deg, rgba(9, 9, 12, 0.45), rgba(9, 9, 12, 0.15));
    border: 1px solid rgba(255,255,255,0.08);
}

.graduation-visual-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
    pointer-events: none;
}

.graduation-visual-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    filter: saturate(1.02) contrast(1.04) brightness(0.96);
}

.graduation-visual-ping {
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 18px rgba(255,255,255,0.08);
    animation: visualPing 3.8s ease-in-out infinite;
}

.graduation-visual-ping-a {
    top: 38px;
    right: 18px;
    width: 10px;
    height: 10px;
}

.graduation-visual-ping-b {
    bottom: 28px;
    left: 18px;
    width: 7px;
    height: 7px;
    animation-delay: -1.2s;
}

.graduation-visual-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.08), transparent 24%, transparent 76%, rgba(0,0,0,0.2)),
        linear-gradient(90deg, rgba(0,0,0,0.08), transparent 18%, transparent 82%, rgba(0,0,0,0.08));
    pointer-events: none;
}

.graduation-visual-frame-inner-ring {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.graduation-visual-frame-inner-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    transform: translate(-50%, -50%);
}

.graduation-visual-frame-anomaly {
    position: absolute;
    bottom: 26px;
    left: 50%;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(39, 174, 96, 0.88);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.35);
    transform: translateX(-50%) rotate(6deg);
}

.graduation-visual-fallback::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
}

.graduation-fallback-belt {
    position: absolute;
    left: 44px;
    right: 92px;
    bottom: 82px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18));
}

.graduation-fallback-cube {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(255,255,255,0.08);
    animation: orbFloat 4.8s ease-in-out infinite;
}

.graduation-fallback-cube-red {
    left: 72px;
    bottom: 96px;
    background: rgba(192, 57, 43, 0.75);
}

.graduation-fallback-cube-blue {
    left: 122px;
    bottom: 96px;
    background: rgba(41, 128, 185, 0.78);
    animation-delay: -1.1s;
}

.graduation-fallback-cube-green {
    left: 172px;
    bottom: 116px;
    width: 30px;
    height: 30px;
    background: rgba(39, 174, 96, 0.82);
    animation-delay: -0.6s;
}

.graduation-fallback-cube-yellow {
    right: 54px;
    top: 88px;
    background: rgba(241, 196, 15, 0.72);
    animation-delay: -1.8s;
}

.graduation-fallback-arrow {
    position: absolute;
    left: 220px;
    bottom: 126px;
    width: 42px;
    height: 2px;
    background: rgba(255,255,255,0.26);
}

.graduation-fallback-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255,255,255,0.26);
    border-right: 2px solid rgba(255,255,255,0.26);
    transform: rotate(45deg);
}

@keyframes visualPing {
    0%, 100% { transform: scale(1); opacity: 0.18; }
    50% { transform: scale(1.55); opacity: 0.6; }
}

/* ============================================
   BADGES & STATUS
   ============================================ */
.badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    display: inline-block;
}

.badge-sm {
    font-size: 9px;
    padding: 2px 6px;
}

.badge-accent {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-planning { color: var(--color-text-muted); }
.status-planning::before { background: var(--color-text-muted); }
.status-progress, .status-in-progress { color: var(--color-text); }
.status-progress::before, .status-in-progress::before { background: var(--color-white); animation: pulse 2s infinite; }
.status-completed { color: var(--color-text-secondary); }
.status-completed::before { background: var(--color-accent); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   EVENTS
   ============================================ */
.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.event-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.event-card:hover {
    border-color: var(--color-border-light);
}

.event-upcoming {
    border-color: var(--color-border-light);
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-elevated));
}

.event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding-top: var(--space-sm);
}

.event-month {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1;
}

.event-year {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.event-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.event-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
}

.event-meta-item svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .event-date-block {
        flex-direction: row;
        gap: var(--space-sm);
        align-items: baseline;
    }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-4xl);
}

/* Form */
.form-group {
    margin-bottom: var(--space-xl);
    position: relative;
}

.form-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: var(--space-md) 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--color-white);
}

.form-input::placeholder {
    color: var(--color-text-dim);
}

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

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-white);
    transition: width 0.4s var(--ease-out-expo);
}

.form-input:focus ~ .form-line {
    width: 100%;
}

.btn-submit {
    margin-top: var(--space-md);
}

/* Contact info */
.contact-info-block {
    margin-bottom: var(--space-2xl);
}

.contact-info-block h3 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.contact-detail a {
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--color-white);
}

.contact-social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: all 0.3s;
}

.contact-social-link:hover {
    color: var(--color-white);
    transform: translateX(4px);
}

.contact-visual {
    margin-top: var(--space-3xl);
    display: flex;
    justify-content: center;
}

.sound-rings {
    width: 120px;
    height: 120px;
    position: relative;
}

.sound-rings span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    animation: soundRing 3s ease-out infinite;
}

.sound-rings span:nth-child(1) { width: 30px; height: 30px; animation-delay: 0s; }
.sound-rings span:nth-child(2) { width: 60px; height: 60px; animation-delay: 0.5s; }
.sound-rings span:nth-child(3) { width: 90px; height: 90px; animation-delay: 1s; }
.sound-rings span:nth-child(4) { width: 120px; height: 120px; animation-delay: 1.5s; }

@keyframes soundRing {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

/* Alert */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
    font-size: var(--text-sm);
    border: 1px solid var(--color-border);
}

.alert-success {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border-color: var(--color-border-light);
}

.alert-error {
    background: rgba(255, 50, 50, 0.05);
    color: #ff6b6b;
    border-color: rgba(255, 50, 50, 0.2);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-block {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, var(--text-4xl));
    font-weight: 600;
    margin-bottom: var(--space-2xl);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-state.large {
    padding: var(--space-5xl) var(--space-2xl);
}

.empty-state p {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-lg);
}

.empty-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 50px;
}

.empty-waveform span {
    display: block;
    width: 3px;
    background: var(--color-text-dim);
    border-radius: 2px;
    animation: emptyWave 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes emptyWave {
    0%, 100% { height: 8px; }
    50% { height: 30px; }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color 0.3s;
}

.pagination-link:hover {
    color: var(--color-white);
}

.pagination-info {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-visual {
    margin-bottom: var(--space-2xl);
}

.glitch-404 {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    position: relative;
    color: var(--color-text-dim);
}

.error-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-top: var(--space-lg);
}

.error-waveform span {
    display: block;
    width: 3px;
    background: var(--color-text-dim);
    border-radius: 2px;
    animation: emptyWave 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.12s);
}

.error-page h1 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.error-page p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-credit {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

.heart {
    display: inline-block;
    animation: heartBeat 2s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .about-visual-frame {
        aspect-ratio: 16/9;
        max-height: 300px;
    }
    
    .portfolio-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-item {
        grid-template-columns: 1fr;
    }
    
    .project-item-image,
    .project-item-visual {
        display: none;
    }
    
    .graduation-banner {
        grid-template-columns: 1fr;
    }
    
    .graduation-visual {
        order: -1;
        min-height: 0;
    }

    .graduation-visual-card {
        width: min(100%, 520px);
    }

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

    .info-item-action {
        grid-column: 1 / -1;
        justify-self: start;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-name {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .about-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .about-preview-label {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-right: 0;
        padding-bottom: var(--space-lg);
    }
    
    .portfolio-grid,
    .portfolio-grid-full {
        grid-template-columns: 1fr;
    }
    
    .blog-grid,
    .blog-grid-full {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav-link {
        font-size: var(--text-3xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 var(--space-md);
    }
    
    .hero-greeting {
        font-size: var(--text-xs);
    }
    
    .hero-subtitle,
    .hero-skill {
        font-size: var(--text-xs);
    }

    .hero-skill-stage {
        width: min(180px, 100%);
        height: 38px;
    }

    .skill-stage-composer {
        width: 150px;
    }

    .stage-staff {
        width: 118px;
    }
}

/* ============================================
   GAME CTA SECTION (Home Page + Project Detail)
   ============================================ */
.project-game-cta {
    margin-top: var(--space-3xl);
}
.game-cta-block {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    padding: var(--space-3xl);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.game-cta-block::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.game-cta-visual {
    flex-shrink: 0;
    width: 120px; height: 120px;
    position: relative;
}
.game-cta-notes {
    width: 100%; height: 100%;
    position: relative;
}
.cta-note {
    position: absolute; font-size: 2rem;
    opacity: 0.15;
    animation: ctaNoteFloat 5s ease-in-out infinite;
    animation-delay: calc(var(--d) * 1.2s);
}
.cta-note:nth-child(1) { top: 10%; left: 20%; }
.cta-note:nth-child(2) { top: 50%; left: 60%; }
.cta-note:nth-child(3) { top: 20%; left: 70%; }
.cta-note:nth-child(4) { top: 65%; left: 15%; }
@keyframes ctaNoteFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
    50% { transform: translateY(-12px) scale(1.15); opacity: 0.35; }
}
.game-cta-content {
    flex: 1;
}
.game-cta-content .section-number {
    margin-bottom: var(--space-sm);
}
.game-cta-content .section-title {
    margin-bottom: var(--space-sm);
}
.game-cta-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}
@media (max-width: 768px) {
    .game-cta-block { flex-direction: column; text-align: center; gap: var(--space-xl); }
    .game-cta-visual { width: 80px; height: 80px; }
    .devlog-entry {
        grid-template-columns: 28px 1fr 16px;
    }
    .devlog-date {
        display: none;
    }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0.75rem var(--space-md);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
}
.cookie-consent-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}
.cookie-consent-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}
.btn-cookie {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}
.btn-cookie-accept {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}
.btn-cookie-accept:hover {
    filter: brightness(1.15);
}
.btn-cookie-reject {
    background: transparent;
    color: var(--color-text-secondary);
}
.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}
@media (max-width: 600px) {
    .cookie-consent-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
        text-align: left;
        min-width: 0;
    }
    .cookie-consent-buttons {
        width: 100%;
        min-width: 0;
    }
    .cookie-consent-text { min-width: 0; font-size: 0.75rem; line-height: 1.35; }
    .btn-cookie { flex: 1; min-height: 40px; padding: 0.4rem 1rem; }
}

/* ===== Privacy Policy Page ===== */
.section-privacy {
    padding: var(--space-3xl) 0;
}
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--color-text-secondary);
}
.privacy-content h2 {
    color: var(--color-text);
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}
.privacy-content p {
    margin-bottom: var(--space-md);
}
.privacy-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}
.privacy-content li {
    margin-bottom: var(--space-xs);
}
.privacy-content a {
    color: var(--color-accent);
    text-decoration: none;
}
.privacy-content a:hover {
    text-decoration: underline;
}
.privacy-last-updated {
    font-size: 0.85rem;
    color: var(--color-text-muted, rgba(255,255,255,0.4));
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== Footer Bottom Links ===== */
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.game-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}
.game-audio-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.8rem;
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    font: inherit;
    font-size: 0.78rem;
}
.game-audio-toggle:hover,
.game-audio-toggle:focus-visible { color: #fff; border-color: rgba(255,255,255,0.5); }
#factory-canvas:focus-visible,
#playground-canvas:focus-visible,
#metro-canvas:focus-visible,
#concert-canvas:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.footer-bottom-links a:hover {
    opacity: 1;
}
.footer-cookie-settings {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    opacity: 1;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible { color: var(--color-text); opacity: 1; }
.cookie-policy-link { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================
   THE SHIFT — LANDING PAGE
   ============================================ */

/* Hero */
.ts-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ts-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ts-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.ts-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,12,0.62) 0%,
        rgba(10,10,12,0.5) 40%,
        rgba(10,10,12,0.7) 80%,
        rgba(10,10,12,1) 100%
    );
}
.ts-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 800px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.ts-hero-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}
.ts-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}
.ts-hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 550px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}
.ts-hero-meta {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.ts-meta-dot {
    color: var(--color-text-dim);
}
.ts-hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}
.ts-hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}
.ts-hero-scroll span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

/* Sections */
.ts-section {
    padding: var(--space-section) 0;
}
.ts-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}
.ts-section-num {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    min-width: 2ch;
}
.ts-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* About Section */
.ts-about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}
.ts-lead {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}
.ts-about-text p:last-child {
    color: var(--color-text-secondary);
    line-height: 1.8;
}
.ts-about-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.ts-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ts-detail-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}
.ts-detail-value {
    font-size: var(--text-sm);
    color: var(--color-text);
}

/* Scenes Section */
.ts-scenes-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: var(--space-3xl);
}
.ts-scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-2xl);
}
.ts-scene-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.ts-scene-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ts-scene-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: 4px 12px;
    background: rgba(10,10,12,0.85);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}
.ts-badge-colorful {
    border-color: rgba(46,204,113,0.4);
    color: #2ecc71;
}
.ts-scene-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.ts-scene-tagline {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}
.ts-scene-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.ts-scene-features li {
    position: relative;
    padding-left: var(--space-xl);
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
}
.ts-scene-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-text-dim);
}

/* Transition Arrow */
.ts-transition-arrow {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-2xl);
}
.ts-arrow-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}
.ts-arrow-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Contrast Table */
.ts-contrast {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.ts-contrast-col h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}
.ts-contrast-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.ts-contrast-col li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}
.ts-contrast-dark h4 { color: var(--color-text-muted); }
.ts-contrast-bright h4 { color: #2ecc71; }
.ts-contrast-vs {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-dim);
    padding-top: var(--space-xl);
}

/* Sound Design */
.ts-sound-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 650px;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}
.ts-cubes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}
.ts-cube-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.ts-cube-card:hover {
    border-color: var(--cube-color);
    transform: translateY(-4px);
}
.ts-cube-visual {
    width: 48px;
    height: 48px;
    background: var(--cube-color);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--cube-color) 30%, transparent);
    transition: transform 0.3s ease;
}
.ts-cube-card:hover .ts-cube-visual {
    transform: rotate(15deg) scale(1.1);
}
.ts-cube-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text);
    margin-bottom: 4px;
}
.ts-cube-sound {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Demo CTA Section */
.ts-demo-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    padding: var(--space-3xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.ts-demo-content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}
.ts-demo-content .ts-section-num {
    display: block;
    margin-bottom: var(--space-md);
}
.ts-demo-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 480px;
}
.ts-demo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ts-demo-cubes {
    position: relative;
    width: 150px;
    height: 150px;
}
.ts-floating-cube {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--cube-color);
    border-radius: 8px;
    animation: ts-float 3s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--cube-color) 30%, transparent);
}
.ts-floating-cube:nth-child(1) { top: 0; left: 20px; }
.ts-floating-cube:nth-child(2) { top: 50px; left: 80px; }
.ts-floating-cube:nth-child(3) { top: 90px; left: 40px; }

@keyframes ts-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* Development Journal Timeline */
.ts-journal-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}
.ts-timeline {
    position: relative;
    padding-left: var(--space-3xl);
}
.ts-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-border);
}
.ts-timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
}
.ts-timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-3xl));
    top: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.ts-timeline-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--color-border-light);
    background: var(--color-bg);
    flex-shrink: 0;
}
.ts-timeline-item:first-child .ts-timeline-dot {
    border-color: var(--color-text-secondary);
    background: var(--color-text-muted);
}
.ts-timeline-date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-dim);
    white-space: nowrap;
}
.ts-timeline-card {
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.3s ease;
}
.ts-timeline-card:hover {
    border-color: var(--color-border-light);
}
.ts-timeline-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}
.ts-timeline-card h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.ts-timeline-card h3 a:hover {
    color: var(--color-accent);
}
.ts-timeline-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.ts-timeline-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

/* CTA Grid */
.ts-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
.ts-cta-card {
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.ts-cta-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
}
.ts-cta-card svg {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}
.ts-cta-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.ts-cta-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .ts-about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .ts-scene {
        grid-template-columns: 1fr;
    }
    .ts-scene-colorful {
        direction: ltr;
    }
    .ts-scene-colorful .ts-scene-content {
        order: 2;
    }
    .ts-scene-colorful .ts-scene-visual {
        order: 1;
    }
    .ts-cubes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ts-demo-card {
        grid-template-columns: 1fr;
        padding: var(--space-xl);
    }
    .ts-demo-visual {
        display: none;
    }
    .ts-contrast {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .ts-contrast-vs {
        text-align: center;
        padding-top: 0;
    }
    .ts-cta-grid {
        grid-template-columns: 1fr;
    }
    .ts-hero-content {
        padding: var(--space-2xl) var(--space-md);
        max-width: 620px;
    }
    .ts-hero-bg img { opacity: 0.6; transform: scale(1.12); }
    .ts-hero-tag { font-size: 0.65rem; line-height: 1.5; }
    .ts-hero-subtitle { font-size: 1rem; max-width: 34rem; }
    .ts-hero-meta { font-size: 0.72rem; margin-bottom: var(--space-xl); }
    .ts-timeline {
        padding-left: var(--space-2xl);
    }
    .ts-timeline-marker {
        left: calc(-1 * var(--space-2xl));
    }
}

/* Play nav link accent (Mind Palace mini-game) */
.nav-link-play {
    color: #2ecc71 !important;
    font-weight: 600;
}
.nav-link-play::after { background: #2ecc71 !important; }
.nav-link-play:hover { color: #27ae60 !important; }

/* ============================================
   ACCESSIBILITY
   ============================================ */
/* Screen-reader-only utility */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content */
.skip-link {
    position: fixed;
    top: 0; left: 50%;
    transform: translate(-50%, -120%);
    z-index: 10000;
    background: #fff;
    color: #0a0a0a;
    padding: 0.7rem 1.4rem;
    border-radius: 0 0 10px 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.skip-link:focus {
    transform: translate(-50%, 0);
    outline: 3px solid #2ecc71;
    outline-offset: 2px;
}

/* Global keyboard focus ring — visible even though the site hides the cursor.
   :focus-visible only triggers for keyboard/AT, so mouse clicks stay clean. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 3px !important;
    border-radius: 3px;
}
/* On the (light) skip link and white buttons, use a dark/green ring for contrast */
.btn-primary:focus-visible,
.skip-link:focus-visible {
    outline-color: #2ecc71 !important;
}
/* The skip-link target is a programmatic focus stop — don't draw a full-page ring */
#main-content:focus,
#main-content:focus-visible {
    outline: none !important;
}
