:root {
    --bg: #020202;
    --surface: #090909;
    --surface-elevated: #111111;
    --surface-glass: rgba(14, 14, 14, 0.5);
    --text-1: #f4f4f5;
    --text-2: #b4b4b8;
    --text-3: #75757b;
    --text-4: #46464b;
    --border: rgba(255, 255, 255, 0.12);
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.22);
    --glow: rgba(255, 255, 255, 0.12);
    --nav-h: 52px;
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
    --space-2xs: 6px;
    --space-xs: 10px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 104px;
    --space-3xl: 164px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.55;
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    text-rendering: optimizeLegibility;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

::selection {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-1);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

img,
svg {
    display: block;
}

.container {
    width: min(980px, 100% - 2 * var(--space-md));
    margin-inline: auto;
}

section {
    scroll-margin-top: calc(var(--nav-h) + 14px);
}

.divider {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent 0%, var(--border-soft) 15%, var(--border-soft) 85%, transparent 100%);
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    z-index: 300;
    transform: scaleX(0);
    transform-origin: left center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
    will-change: transform;
}

/* Navigation */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    height: var(--nav-h);
    border-bottom: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.nav-logo {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-1);
    text-decoration: none;
}

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
    padding-bottom: 2px;
}

.nav-links a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-3);
    transition: color 0.3s var(--ease-premium), opacity 0.3s var(--ease-premium);
}

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

.nav-indicator {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 1px;
    height: 1px;
    border-radius: 999px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.88);
    transform-origin: left center;
    transform: translate3d(var(--indicator-x, 0), 0, 0) scaleX(var(--indicator-w, 0));
    transition: transform 0.45s var(--ease-premium), opacity 0.3s var(--ease-premium);
}

.nav-indicator.visible {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    padding: 4px;
    border: 0;
    color: var(--text-1);
    background: none;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(26px) saturate(120%);
    -webkit-backdrop-filter: blur(26px) saturate(120%);
    transition: opacity 0.45s var(--ease-premium), visibility 0.45s var(--ease-premium);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-panel {
    width: min(92vw, 560px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.88) 0%, rgba(10, 10, 10, 0.82) 100%);
    padding: clamp(26px, 6vw, 42px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translate3d(0, 16px, 0) scale(0.98);
    transition: transform 0.45s var(--ease-premium);
}

.mobile-nav.open .mobile-nav-panel {
    transform: none;
}

.mobile-nav a {
    display: inline-block;
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: clamp(28px, 7vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-2);
    text-decoration: none;
    padding: 8px 0;
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: color 0.24s var(--ease-premium), opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
    transition-delay: calc(var(--index, 0) * 50ms + 60ms);
}

.mobile-nav-panel a:nth-of-type(1) { --index: 0; }
.mobile-nav-panel a:nth-of-type(2) { --index: 1; }
.mobile-nav-panel a:nth-of-type(3) { --index: 2; }
.mobile-nav-panel a:nth-of-type(4) { --index: 3; }
.mobile-nav-panel a:nth-of-type(5) { --index: 4; }
.mobile-nav-panel a:nth-of-type(6) { --index: 5; }
.mobile-nav-panel a:nth-of-type(7) { --index: 6; }

.mobile-nav.open a {
    opacity: 1;
    transform: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
    color: var(--text-1);
}

.mobile-nav-close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-2);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.28s var(--ease-premium), color 0.28s var(--ease-premium), background 0.28s var(--ease-premium);
}

.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

/* Shared reveal motion */
.reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 260ms; }

.heading-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s var(--ease-snap), opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}

.heading-reveal.visible {
    clip-path: inset(0 0 0 0);
}

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--space-2xl) + var(--nav-h)) var(--space-md) calc(var(--space-2xl) + 80px);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: url('atmosphere.png');
    background-size: cover;
    background-position: center 34%;
    filter: grayscale(24%) contrast(1.03) brightness(0.32);
    transform: scale(1.04);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.86) 100%),
        radial-gradient(110% 74% at 50% 35%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 46%, rgba(0, 0, 0, 0.62) 100%),
        radial-gradient(130% 60% at 50% 84%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0) 56%);
}

.hero-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(60px, 14.2vw, 158px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.84;
    margin-bottom: var(--space-md);
    color: var(--text-1);
    text-wrap: balance;
    will-change: transform, opacity;
}

.hero-word {
    display: inline-block;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.72s var(--ease-snap), transform 0.72s var(--ease-snap), filter 0.9s var(--ease-premium);
    transition-delay: calc(var(--char-index, 0) * 38ms + 130ms);
}

body:not(.is-preload) .hero-char {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

.hero-load {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

body:not(.is-preload) .hero-load {
    opacity: 1;
    transform: none;
}

.hero-sub.hero-load { transition-delay: 90ms; }
.hero-line.hero-load { transition-delay: 170ms; }
.hero-data-strip.hero-load { transition-delay: 250ms; }

.hero-sub {
    font-size: clamp(17px, 2.5vw, 22px);
    color: rgba(244, 244, 245, 0.78);
    line-height: 1.48;
    max-width: 760px;
    letter-spacing: -0.01em;
    text-wrap: balance;
    will-change: transform, opacity;
}

.hero-sub-proof {
    display: block;
    margin-top: var(--space-sm);
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(12px, 1.35vw, 14px);
    line-height: 1.7;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.58);
}

.hero-line {
    margin-top: var(--space-lg);
    width: 54px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.72) 52%, rgba(255, 255, 255, 0.08) 100%);
}

.hero-data-strip {
    position: relative;
    margin-top: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.hero-data-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 10%, rgba(255, 255, 255, 0.08) 50%, transparent 90%);
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
}

.hero-data-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.68);
}

.hero-data-strip span:last-child {
    border-right: 0;
}

.hero-data-strip strong {
    font-weight: 500;
    color: rgba(244, 244, 245, 0.95);
}

.scroll-hint {
    position: absolute;
    bottom: clamp(18px, 6vh, 44px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    opacity: 0.56;
    transition: opacity 0.4s var(--ease-premium);
}

.scroll-hint span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.5);
}

.scroll-glyph {
    width: 16px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: start center;
    padding-top: 4px;
}

.scroll-dot {
    width: 3px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    animation: dotPulse 1.8s var(--ease-premium) infinite;
}

.scroll-hint svg {
    width: 13px;
    height: 13px;
    color: rgba(244, 244, 245, 0.42);
    animation: hintArrow 1.8s var(--ease-premium) infinite;
}

@keyframes dotPulse {
    0% { opacity: 0.18; transform: translate3d(0, 0, 0); }
    50% { opacity: 0.9; transform: translate3d(0, 5px, 0); }
    100% { opacity: 0.18; transform: translate3d(0, 10px, 0); }
}

@keyframes hintArrow {
    0%, 100% { opacity: 0.25; transform: translate3d(0, 0, 0); }
    50% { opacity: 0.68; transform: translate3d(0, 4px, 0); }
}

/* About */
.about {
    padding: var(--space-3xl) 0;
}

.about-layout {
    max-width: 820px;
}

.about-text {
    font-size: clamp(26px, 3.7vw, 44px);
    font-weight: 600;
    line-height: 1.26;
    letter-spacing: -0.03em;
    color: var(--text-1);
    text-wrap: balance;
}

.about-text .muted {
    color: var(--text-4);
}

.about-meta {
    margin-top: var(--space-xl);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
}

.about-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 500;
    color: var(--text-4);
}

.meta-value {
    font-size: 15px;
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Statement */
.statement {
    padding: calc(var(--space-2xl) + 6px) 0;
}

.statement .container {
    max-width: 940px;
}

.statement-text {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: clamp(34px, 5vw, 66px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-1);
    border-left: 1px solid rgba(255, 255, 255, 0.34);
    padding-left: clamp(20px, 4vw, 34px);
    text-wrap: balance;
}

.statement-text em {
    font-style: normal;
}

.statement-attr {
    margin-top: var(--space-md);
    padding-left: clamp(20px, 4vw, 34px);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--text-4);
}

/* Shared section heading */
.section-header {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.section-overline {
    margin-bottom: var(--space-sm);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-4);
}

.section-heading {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: clamp(36px, 5.6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.036em;
    line-height: 0.97;
    color: var(--text-1);
}

/* Experience */
.exp-list {
    position: relative;
}

.exp-list::before {
    content: '';
    position: absolute;
    left: 196px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.exp-item {
    position: relative;
    padding: 44px 0;
    border-top: 1px solid var(--border-soft);
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(22px, 4vw, 56px);
    transition: transform 0.4s var(--ease-premium), opacity 0.4s var(--ease-premium);
}

.exp-item:last-child {
    border-bottom: 1px solid var(--border-soft);
}

.exp-item::before {
    content: '';
    position: absolute;
    left: 191px;
    top: 54px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.56);
    background: var(--bg);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.exp-item:hover {
    transform: translate3d(5px, 0, 0);
}

.exp-when {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-4);
    padding-top: 2px;
    padding-right: 24px;
}

.exp-details h3 {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.016em;
    color: var(--text-1);
    margin-bottom: 6px;
}

.exp-details .role {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: var(--space-sm);
}

.exp-details p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 68ch;
}

/* Education */
#education {
    padding-bottom: var(--space-xl);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.edu-item {
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.92), rgba(10, 10, 10, 0.95));
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: clamp(26px, 4vw, 34px);
    transition: transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium), border-color 0.45s var(--ease-premium);
}

.edu-item:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 34px rgba(0, 0, 0, 0.34);
}

.edu-item h3 {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.016em;
    color: var(--text-1);
    margin-bottom: 6px;
}

.edu-item .degree {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: var(--space-xs);
}

.edu-item .when {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--text-4);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.edu-item p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.66;
}

/* Skills */
#skills {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.skill-col {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: clamp(22px, 4vw, 30px);
    transition: transform 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
}

.skill-col:hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(255, 255, 255, 0.18);
}

.skill-title {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.skill-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
}

.skill-count {
    margin-left: auto;
    font-size: 10px;
    color: var(--text-4);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 3px 8px;
    letter-spacing: 0.08em;
}

.skill-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-col li {
    position: relative;
    padding-left: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: -0.005em;
    transition: transform 0.28s var(--ease-premium), color 0.28s var(--ease-premium), opacity 0.28s var(--ease-premium);
}

.skill-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.48);
}

.skill-col li:hover {
    color: var(--text-1);
    transform: translate3d(4px, 0, 0);
}

/* Languages */
#languages {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
}

.lang-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.lang-item {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.94), rgba(9, 9, 9, 0.95));
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.36s var(--ease-premium), border-color 0.36s var(--ease-premium);
    --meter: 0;
}

.lang-item:hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-item .level {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: 6px;
}

.lang-item .name {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-1);
    margin-bottom: 5px;
}

.lang-item .desc {
    font-size: 13px;
    color: var(--text-4);
}

.lang-meter {
    margin-top: 14px;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.lang-meter-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.86));
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.95s var(--ease-premium);
}

.lang-row.visible .lang-meter-fill {
    transform: scaleX(var(--meter));
}

/* Interests marquee */
.interests-section {
    padding: var(--space-xl) 0 var(--space-2xl);
    overflow: hidden;
}

.marquee-shell {
    position: relative;
    overflow: hidden;
}

.marquee-shell::before,
.marquee-shell::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(15vw, 180px);
    z-index: 2;
    pointer-events: none;
}

.marquee-shell::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 6%, rgba(2, 2, 2, 0) 100%);
}

.marquee-shell::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 6%, rgba(2, 2, 2, 0) 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 34s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    gap: 12px;
    padding-right: 12px;
}

.interest-tag {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--text-2);
    white-space: nowrap;
    transition: transform 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium), color 0.3s var(--ease-premium), background 0.3s var(--ease-premium);
}

.interest-tag:hover {
    color: var(--text-1);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    transform: translate3d(0, -2px, 0);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0); }
}

/* Philosophy */
#philosophy {
    padding-bottom: var(--space-2xl);
}

.philo-list {
    display: flex;
    flex-direction: column;
}

.philo-item {
    position: relative;
    border-top: 1px solid var(--border-soft);
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: var(--space-md);
    padding: 42px 0;
}

.philo-item:last-child {
    border-bottom: 1px solid var(--border-soft);
}

.philo-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.14);
    transform: translateY(2px);
}

.philo-item h3 {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-1);
    margin-bottom: 8px;
}

.philo-item p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.68;
    max-width: 68ch;
}

/* Contact */
.contact-section {
    position: relative;
    isolation: isolate;
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}

.contact-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(780px, 92vw);
    height: min(430px, 60vw);
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
    z-index: -1;
    animation: contactAura 6s ease-in-out infinite;
}

@keyframes contactAura {
    0%, 100% { opacity: 0.44; transform: translate3d(-50%, -50%, 0) scale(1); }
    50% { opacity: 0.76; transform: translate3d(-50%, -50%, 0) scale(1.06); }
}

.contact-heading {
    display: inline-block;
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: var(--space-lg);
    color: var(--text-1);
}

.contact-heading .gradient {
    color: rgba(255, 255, 255, 0.78);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cta-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: transform 0.35s var(--ease-premium), color 0.35s var(--ease-premium), background 0.35s var(--ease-premium), border-color 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
}

.cta-primary {
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: rgba(245, 245, 246, 0.95);
    color: #060606;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    will-change: transform;
}

.cta-primary::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    opacity: 0;
    transform: scale(0.92);
    animation: ctaPulse 2.8s var(--ease-premium) infinite;
    pointer-events: none;
}

@keyframes ctaPulse {
    0% { opacity: 0; transform: scale(0.92); }
    34% { opacity: 0.56; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.07); }
}

.cta-primary:hover,
.cta-primary:focus-visible {
    transform: translate3d(0, -1px, 0) scale(1.015);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.cta-secondary {
    border: 1px solid var(--border);
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.01);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
    color: var(--text-1);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
    transform: translate3d(0, -1px, 0);
}

/* Impressum */
.impressum {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--border-soft);
}

.impressum-toggle {
    border: 0;
    background: none;
    color: var(--text-4);
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.24s var(--ease-premium), opacity 0.24s var(--ease-premium);
}

.impressum-toggle:hover,
.impressum-toggle:focus-visible {
    color: var(--text-2);
}

.impressum-toggle::after {
    content: ' +';
}

.impressum-toggle.open::after {
    content: ' -';
}

.impressum-content {
    display: none;
    opacity: 0;
    transform: translate3d(0, -8px, 0);
}

.impressum-content.open {
    display: block;
    animation: impressumIn 0.35s var(--ease-premium) forwards;
}

@keyframes impressumIn {
    from {
        opacity: 0;
        transform: translate3d(0, -8px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.impressum-content p {
    margin-top: var(--space-sm);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    line-height: 2;
    color: var(--text-4);
}

.impressum-content a {
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.25s var(--ease-premium);
}

.impressum-content a:hover,
.impressum-content a:focus-visible {
    color: var(--text-1);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-soft);
    padding: var(--space-lg) 0;
}

footer .container {
    display: grid;
    justify-items: center;
    gap: var(--space-sm);
}

.footer-rule {
    width: min(220px, 44vw);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.46) 50%, transparent 100%);
}

footer p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--text-4);
}

/* Layout rhythm */
#experience,
#education,
#skills,
#languages,
#interests,
#philosophy {
    padding-top: var(--space-md);
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --space-3xl: 140px;
        --space-2xl: 92px;
    }

    .about-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-lg) var(--space-md);
    }

    .exp-list::before {
        left: 174px;
    }

    .exp-item::before {
        left: 169px;
    }

    .exp-item {
        grid-template-columns: 184px minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-md: 20px;
        --space-xl: 54px;
        --space-2xl: 82px;
        --space-3xl: 120px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero::before {
        background-position: 38% center;
        filter: grayscale(23%) contrast(1.03) brightness(0.29);
    }

    .hero-data-strip {
        width: min(100%, 520px);
        border-radius: 18px;
    }

    .hero-data-strip span {
        width: 100%;
        justify-content: center;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-data-strip span:last-child {
        border-bottom: 0;
    }

    .about {
        padding-top: var(--space-2xl);
    }

    .about-meta {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .statement-text,
    .statement-attr {
        padding-left: 18px;
    }

    .exp-list {
        padding-left: 0;
    }

    .exp-list::before {
        left: 7px;
        top: 18px;
        bottom: 18px;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 30px 0 30px 28px;
    }

    .exp-item::before {
        left: 2px;
        top: 37px;
    }

    .edu-grid,
    .skills-grid,
    .lang-row {
        grid-template-columns: 1fr;
    }

    .philo-item {
        grid-template-columns: 58px 1fr;
        gap: var(--space-sm);
    }

    .philo-num {
        font-size: clamp(30px, 10vw, 44px);
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .cta-link {
        width: min(100%, 280px);
    }
}

@media (max-width: 520px) {
    .hero {
        padding-inline: 16px;
    }

    .section-heading {
        line-height: 1.02;
    }

    .statement-text {
        font-size: clamp(28px, 8vw, 42px);
    }

    .mobile-nav-panel {
        border-radius: 24px;
        padding: 22px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .reveal,
    .heading-reveal,
    .hero-load,
    .hero-char {
        opacity: 1 !important;
        transform: none !important;
        clip-path: inset(0 0 0 0) !important;
        filter: none !important;
    }

    .marquee-track {
        animation: none !important;
        flex-wrap: wrap;
        width: auto;
        justify-content: center;
        padding-inline: var(--space-md);
        gap: 8px;
    }

    .marquee-group[aria-hidden='true'] {
        display: none;
    }
}
