/* ═══════════════════════════════════════════════════════════
   Pinak Tilavat — Portfolio Stylesheet · v2
   Mobile-first · Minimal · Precisely composed
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ────────────────────────────────────── */
:root {
    /* Surfaces */
    --bg: #FDFCF8;
    --bg-2: #F5F1EB;
    --bg-3: #EDE8DF;
    --bg-4: #E5DFD2;

    /* Borders */
    --border: rgba(28, 24, 20, 0.08);
    --border-md: rgba(28, 24, 20, 0.12);
    --border-strong: rgba(28, 24, 20, 0.18);

    /* Text */
    --text: #1C1814;
    --text-2: #5C544B;
    --text-3: #948A7E;
    --text-4: #B8AEA1;

    /* Brand */
    --accent: oklch(62% 0.17 38);
    --accent-deep: oklch(54% 0.18 38);
    --accent-soft: oklch(82% 0.10 38);
    --accent-lt: oklch(95% 0.035 40);

    /* Type */
    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Space Grotesk', ui-monospace, 'SF Mono', monospace;
    --hand: 'Architects Daughter', cursive;

    /* Radius */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-2xl: 36px;

    /* Shadow — warm-tinted, layered */
    --shadow-xs: 0 1px 2px rgba(54, 36, 22, 0.04);
    --shadow-sm:
        0 1px 2px rgba(54, 36, 22, 0.04),
        0 2px 6px -2px rgba(54, 36, 22, 0.05);
    --shadow-md:
        0 2px 4px rgba(54, 36, 22, 0.04),
        0 8px 18px -6px rgba(54, 36, 22, 0.08);
    --shadow-lg:
        0 4px 8px rgba(54, 36, 22, 0.04),
        0 18px 36px -10px rgba(54, 36, 22, 0.10),
        0 6px 14px -4px rgba(54, 36, 22, 0.06);
    --shadow-xl:
        0 8px 16px rgba(54, 36, 22, 0.05),
        0 28px 56px -12px rgba(54, 36, 22, 0.16),
        0 12px 28px -8px rgba(54, 36, 22, 0.10);
    --shadow-accent: 0 12px 32px -8px oklch(62% 0.17 38 / 0.28);

    /* Layout */
    --max: 1140px;
    --max-narrow: 720px;
    --nav-h: 64px;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

body {
    font-family: var(--sans);
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

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

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

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

/* Subtle paper grain removed for performance (was opacity: 0.022, invisible on most screens) */

/* ─── SCROLL PROGRESS ───────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
    z-index: 200;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ─── UTILITIES ─────────────────────────────────────────── */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 18px;
}

.section-label::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
}

.section-header {
    margin-bottom: 56px;
    max-width: 720px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(30px, 5.6vw, 52px);
    letter-spacing: -0.02em;
    line-height: 1.04;
    color: var(--text);
    font-weight: 400;
}

.section-title em {
    font-style: italic;
}

.accent-text {
    color: var(--accent);
    font-style: inherit;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 100px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        transform 0.4s var(--ease-out-expo),
        background 0.3s var(--ease-out-quart),
        border-color 0.3s var(--ease-out-quart),
        box-shadow 0.4s var(--ease-out-quart),
        color 0.3s var(--ease-out-quart);
    position: relative;
    white-space: nowrap;
    isolation: isolate;
}

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

.btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    box-shadow: var(--shadow-sm);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-quart);
    z-index: -1;
}

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

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 13px;
}

/* ─── NAVIGATION ────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition:
        background 0.4s var(--ease-out-quart),
        border-color 0.4s var(--ease-out-quart),
        box-shadow 0.4s var(--ease-out-quart);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(253, 252, 248, 0.78);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: opacity 0.3s var(--ease-out-quart);
    font-weight: 400;
}

.nav-logo-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    position: relative;
}

.nav-logo-mark::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.3;
    animation: pulse-mark 2.4s var(--ease-in-out) infinite;
}

@keyframes pulse-mark {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.nav-logo em {
    color: var(--accent);
    font-style: normal;
}

.nav-logo:hover {
    opacity: 0.75;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-2);
    transition: color 0.25s var(--ease-out-quart);
    position: relative;
    padding: 4px 0;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 4px;
    color: var(--bg) !important;
}

.nav-cta:hover {
    color: var(--bg) !important;
}

.nav-cta::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xs);
    transition: background 0.25s;
}

.hamburger:hover {
    background: var(--bg-2);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition:
        transform 0.4s var(--ease-out-expo),
        opacity 0.3s,
        width 0.3s var(--ease-out-quart);
}

.hamburger span:nth-child(2) {
    width: 14px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    width: 20px;
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    width: 20px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(253, 252, 248, 0.96);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    z-index: 99;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.35s var(--ease-out-quart),
        transform 0.35s var(--ease-out-quart);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition:
        color 0.25s,
        padding-left 0.4s var(--ease-out-expo);
    display: flex;
    align-items: baseline;
    gap: 14px;
    letter-spacing: -0.01em;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .mm-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.1em;
}

.mobile-menu a:hover {
    color: var(--accent);
    padding-left: 8px;
}

/* ─── HERO ──────────────────────────────────────────────── */
#hero {
    min-height: 100dvh;
    padding-top: var(--nav-h);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Faint dot grid in hero background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(28, 24, 20, 0.06) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px 20px 80px;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.hero-left {
    order: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 7px 16px 7px 12px;
    background: rgba(253, 252, 248, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-md);
    border-radius: 100px;
    box-shadow: var(--shadow-xs);
}

.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 2.5px oklch(62% 0.17 38 / 0.18);
    animation: pulse-eyebrow 2.4s var(--ease-in-out) infinite;
}

@keyframes pulse-eyebrow {

    0%,
    100% {
        box-shadow: 0 0 0 2.5px oklch(62% 0.17 38 / 0.18);
    }

    50% {
        box-shadow: 0 0 0 4.5px oklch(62% 0.17 38 / 0.06);
    }
}

.hero-eyebrow-text {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-2);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-name {
    font-family: var(--serif);
    font-size: clamp(48px, 12vw, 92px);
    line-height: 0.93;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 22px;
    font-weight: 400;
}

.hero-name em {
    color: var(--accent);
    font-style: italic;
    display: inline-block;
}

.hero-name-period {
    color: var(--accent);
    display: inline-block;
    margin-left: -0.05em;
}

.hero-tagline {
    font-size: clamp(17px, 2.4vw, 21px);
    color: var(--text-2);
    font-weight: 300;
    max-width: 480px;
    margin-bottom: 18px;
    line-height: 1.5;
    letter-spacing: -0.005em;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-subtitle-text {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text-3);
    text-decoration: line-through;
    text-decoration-color: var(--border-strong);
    text-decoration-thickness: 1px;
    letter-spacing: 0.01em;
}

.hero-subtitle svg {
    flex-shrink: 0;
    color: var(--text-3);
}

.hero-subtitle-new {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: all 0.4s var(--ease-out-expo);
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text);
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 0;
}

.social-link svg {
    width: 15px;
    height: 15px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.social-link:hover {
    border-color: var(--text);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover svg {
    color: var(--bg);
}

/* Hero photo */
.hero-photo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    order: 1;
    max-width: 280px;
    margin: 0 auto;
    /* will-change managed via JS during parallax only */
}

.hero-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 30%, oklch(82% 0.10 38 / 0.4) 0%, transparent 55%),
        radial-gradient(circle at 70% 70%, oklch(62% 0.17 38 / 0.18) 0%, transparent 55%);
    filter: blur(60px);
    transition: opacity 0.6s var(--ease-out-quart);
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid var(--border-md);
    background: var(--bg-2);
    box-shadow: var(--shadow-lg);
    transition:
        box-shadow 0.6s var(--ease-out-quart),
        transform 0.6s var(--ease-out-quart);
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 1.2s var(--ease-out-expo);
    filter: contrast(1.02) saturate(1.02);
}

/* Hero photo grain removed for performance (was opacity: 0.04, saves a compositing layer) */

.hero-photo-wrap:hover .hero-photo-frame {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.hero-photo-wrap:hover .hero-photo-frame img {
    transform: scale(1.04);
}

.hero-badge {
    position: absolute;
    bottom: -14px;
    left: -10px;
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--border-md);
    border-radius: 100px;
    padding: 9px 16px 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.hero-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.04);
    }
}

.hero-badge-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.hero-badge-sub {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* Hero scroll cue — desktop only */
.hero-scroll-cue {
    display: none;
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.3s, transform 0.4s var(--ease-out-expo);
    z-index: 5;
}

.hero-scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--text-3) 30%, transparent);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -60%;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scroll-cue 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-cue {
    0% {
        top: -60%;
    }

    100% {
        top: 100%;
    }
}

.hero-scroll-cue:hover {
    color: var(--text);
    transform: translateX(-50%) translateY(-2px);
}

/* ─── STATS ─────────────────────────────────────────────── */
#stats {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 44px 0;
    position: relative;
}

#stats::before,
#stats::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 24px;
    pointer-events: none;
}

#stats::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(253, 252, 248, 0.5), transparent);
}

#stats::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(253, 252, 248, 0.5), transparent);
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 12px 16px;
    position: relative;
    transition: transform 0.4s var(--ease-out-expo);
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-md), transparent);
}

.stat-num {
    font-family: var(--serif);
    font-size: clamp(36px, 5.5vw, 52px);
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.035em;
    margin-bottom: 10px;
    font-weight: 400;
    display: inline-flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
}

.stat-plus {
    color: var(--accent);
    margin-left: 1px;
}

.stat-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ─── SECTIONS ──────────────────────────────────────────── */
section.content-section {
    padding: 88px 0;
    position: relative;
    contain: content;
}

/* ─── ABOUT ─────────────────────────────────────────────── */
.about-body {
    max-width: var(--max-narrow);
}

.about-quote {
    position: relative;
    margin: 32px 0;
    padding: 28px 28px 24px 56px;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.about-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-deep));
}

.about-quote-mark {
    position: absolute;
    top: 8px;
    left: 18px;
    font-family: var(--serif);
    font-size: 56px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.55;
    font-style: italic;
}

.about-quote p {
    font-family: var(--hand);
    font-size: 19px;
    font-style: normal;
    color: var(--text);
    line-height: 1.55;
    margin: 0 0 12px;
}

.about-quote cite {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
    font-style: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

.skills-section {
    margin-top: 48px;
}

.skills-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
    font-weight: 500;
}

.skills-label-line {
    width: 24px;
    height: 1px;
    background: var(--text-4);
}

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

.skill-tag {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg);
    transition: all 0.35s var(--ease-out-expo);
    cursor: default;
    position: relative;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-lt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ─── EXPERIENCE ────────────────────────────────────────── */
#experience {
    background: var(--bg-2);
    position: relative;
}

#experience::before,
#experience::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

#experience::before {
    top: 0;
}

#experience::after {
    bottom: 0;
}

.exp-list {
    display: flex;
    flex-direction: column;
    position: relative;
}

.exp-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    position: relative;
    transition: opacity 0.3s;
}

.exp-marker {
    display: none;
}

.exp-item:first-child {
    padding-top: 8px;
}

.exp-item:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.exp-dates {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.exp-company {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 400;
    line-height: 1.4;
}

.exp-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 9px;
    border-radius: 100px;
    background: oklch(94% 0.06 150);
    color: oklch(38% 0.14 150);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.exp-current::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: oklch(58% 0.18 150);
    box-shadow: 0 0 0 2px oklch(58% 0.18 150 / 0.2);
    animation: pulse-current 2s var(--ease-in-out) infinite;
}

@keyframes pulse-current {

    0%,
    100% {
        box-shadow: 0 0 0 2px oklch(58% 0.18 150 / 0.2);
    }

    50% {
        box-shadow: 0 0 0 4px oklch(58% 0.18 150 / 0.05);
    }
}

.exp-title {
    font-family: var(--serif);
    font-size: clamp(24px, 3.4vw, 30px);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.12;
    font-weight: 400;
}

.exp-desc {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 22px;
    max-width: 600px;
}

.exp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.exp-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 100px;
    background: var(--bg);
    border: 1px solid var(--border-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    font-family: var(--sans);
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-xs);
}

.exp-doc-link svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.exp-doc-link:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.exp-doc-link:hover svg {
    transform: translate(2px, -2px);
}

/* ─── PROJECTS ──────────────────────────────────────────── */
.projects-tabs {
    display: inline-flex;
    position: relative;
    gap: 0;
    margin-bottom: 48px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px;
    box-shadow: var(--shadow-xs);
}

.proj-tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: var(--bg);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.5s var(--ease-out-expo),
        width 0.5s var(--ease-out-expo);
    z-index: 0;
    pointer-events: none;
}

.proj-tab {
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: var(--sans);
    transition: color 0.4s var(--ease-out-quart);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.proj-tab.active {
    color: var(--text);
}

.proj-tab:hover:not(.active) {
    color: var(--text-2);
}

/* ─── Experience tabs (Title styled) ─────────── */
.exp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 8px;
}

.exp-tab {
    font-family: var(--serif);
    font-size: clamp(30px, 5.6vw, 52px);
    letter-spacing: -0.02em;
    line-height: 1.04;
    font-weight: 400;
    color: var(--text-4);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: color 0.4s var(--ease-out-quart), transform 0.3s;
    padding: 0;
    text-align: left;
}

.exp-tab.active {
    color: var(--text);
}

.exp-tab:hover:not(.active) {
    color: var(--text-2);
}

.exp-group[data-exp-group] {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.45s var(--ease-out-quart),
        transform 0.45s var(--ease-out-quart);
}

.exp-group[data-exp-group].visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.projects-group[data-group] {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.45s var(--ease-out-quart),
        transform 0.45s var(--ease-out-quart);
}

.projects-group[data-group].visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.projects-group-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.group-label-line {
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.group-label-count {
    margin-left: auto;
    color: var(--text-4);
    font-size: 10.5px;

}


/* ─── Event Photo Masonry ─────────────────────────────────── */
.event-photos {
    margin-top: 0;
    margin-bottom: 22px;
    /* same gap as .exp-desc margin-bottom so button sits right */
}

.event-masonry {
    columns: 3 110px;
    column-gap: 5px;
}

.event-photo {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    border-radius: 7px;
    object-fit: cover;
    cursor: zoom-in;
    break-inside: avoid;
    background: var(--bg);
    transition: transform 0.22s var(--ease-out-expo, ease),
        opacity 0.22s ease,
        box-shadow 0.22s ease;
}

.event-photo:hover {
    opacity: 0.88;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

/* ─── Lightbox ───────────────────────────────────────────── */
#photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#photo-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

#lightbox-img {
    max-width: min(88vw, 960px);
    max-height: 86vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.15s ease;
    transform: scale(0.9);
}

#photo-lightbox.open #lightbox-img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    backdrop-filter: blur(4px);
    line-height: 1;
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    backdrop-filter: blur(4px);
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow.prev {
    left: 18px;
}

.lightbox-arrow.next {
    right: 18px;
}

#lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

/* Project Cards */
.proj-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.5s var(--ease-out-expo),
        border-color 0.4s var(--ease-out-quart),
        box-shadow 0.5s var(--ease-out-quart);
    isolation: isolate;
}

.proj-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.proj-header {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    align-items: center;
}

.proj-logo,
.proj-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.5s var(--ease-out-expo),
        box-shadow 0.5s var(--ease-out-quart);
    font-size: 24px;
    box-shadow: var(--shadow-xs);
}


.proj-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-title-wrap {
    flex: 1;
    min-width: 0;
}

.proj-name {
    font-family: var(--serif);
    font-size: 23px;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    line-height: 1.15;
    font-weight: 400;
}

.proj-meta-line {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
}

.proj-desc {
    font-size: 14.5px;
    color: var(--text-2);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 22px;
    flex: 1;
}

.proj-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.tech-pill {
    padding: 4px 11px;
    border-radius: 100px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease-out-quart);
}

.proj-card:hover .tech-pill {
    background: var(--bg-3);
    border-color: var(--border-md);
}

.proj-footer {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.proj-private {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

/* Project Links */
.proj-link-animated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    font-family: var(--sans);
    transition: all 0.4s var(--ease-out-expo);
}

.proj-link-animated svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.proj-link-animated:hover {
    color: var(--accent);
    gap: 12px;
}

.proj-link-animated:hover svg {
    transform: translateX(4px);
}

/* ─── CONTACT ───────────────────────────────────────────── */
#contact {
    background: var(--text);
    color: var(--bg);
    overflow: hidden;
    position: relative;
    padding: 96px 0 0;
}

.contact-glow-1,
.contact-glow-2 {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(90px);
}

.contact-glow-1 {
    top: -30%;
    left: -15%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.10;
}

.contact-glow-2 {
    bottom: -40%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, oklch(72% 0.14 38) 0%, transparent 60%);
    opacity: 0.06;
}

.contact-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px 88px;
    position: relative;
    z-index: 2;
}

.contact-label {
    color: rgba(253, 252, 248, 0.4) !important;
}

.contact-label::before {
    background: rgba(253, 252, 248, 0.25) !important;
}

.contact-title {
    font-family: var(--serif);
    font-size: clamp(40px, 8vw, 72px);
    letter-spacing: -0.035em;
    line-height: 1.02;
    color: var(--bg);
    margin: 18px 0 32px;
    font-weight: 400;
}

.contact-title em {
    color: var(--accent);
    font-style: italic;
}

.contact-email {
    font-size: 17px;
    color: rgba(253, 252, 248, 0.55);
    margin-bottom: 44px;
    font-weight: 300;
    line-height: 1.6;
}

.contact-email a {
    color: var(--accent);
    position: relative;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}

.contact-email a svg {
    transition: transform 0.4s var(--ease-out-expo);
    opacity: 0.7;
}

.contact-email a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.contact-email a:hover {
    color: oklch(72% 0.16 38);
}

.contact-email a:hover svg {
    transform: translate(2px, -2px);
    opacity: 1;
}

.contact-email a:hover::after {
    opacity: 0.8;
}

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

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 100px;
    border: 1px solid rgba(253, 252, 248, 0.10);
    background: rgba(253, 252, 248, 0.025);
    font-size: 13px;
    color: rgba(253, 252, 248, 0.65);
    transition: all 0.4s var(--ease-out-expo);
}

.contact-social-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.contact-social-link:hover {
    border-color: rgba(253, 252, 248, 0.35);
    color: var(--bg);
    background: rgba(253, 252, 248, 0.07);
    transform: translateY(-2px);
}

.contact-social-link:hover svg {
    opacity: 1;
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
    background: var(--text);
    border-top: 1px solid rgba(253, 252, 248, 0.06);
    padding: 26px 20px;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: center;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 18px;
    color: rgba(253, 252, 248, 0.45);
    letter-spacing: -0.015em;
}

.footer-logo em {
    color: var(--accent);
    font-style: normal;
}

.footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(253, 252, 248, 0.45);
    letter-spacing: 0.08em;
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: oklch(72% 0.18 150);
    box-shadow: 0 0 0 2px oklch(72% 0.18 150 / 0.18);
    animation: pulse-dot 2s var(--ease-in-out) infinite;
}

.footer-copy {
    font-family: var(--mono);
    font-size: 10.5px;
    color: rgba(253, 252, 248, 0.28);
    letter-spacing: 0.08em;
}

/* ─── REVEAL ────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.9s var(--ease-out-expo),
        transform 0.9s var(--ease-out-expo);
}

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

/* ─── RESPONSIVE: TABLET (≥768) ─────────────────────────── */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }

    .nav-inner {
        padding: 0 32px;
    }

    .mobile-menu {
        padding: 24px 32px 32px;
    }

    .hero-inner {
        padding: 72px 32px 96px;
        gap: 56px;
    }

    .hero-photo-wrap {
        max-width: 320px;
    }

    .hero-badge {
        left: -14px;
        bottom: -16px;
    }

    .stats-inner {
        padding: 0 32px;
    }

    .stat-item {
        padding: 18px 24px;
        min-width: 160px;
    }

    section.content-section {
        padding: 112px 0;
    }

    .section-header {
        margin-bottom: 64px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .contact-inner {
        padding: 0 32px 104px;
    }

    #contact {
        padding-top: 112px;
    }

    .footer-inner {
        flex-direction: row;
        text-align: left;
    }

    footer {
        padding: 26px 32px;
    }
}

/* ─── RESPONSIVE: DESKTOP (≥1024) ───────────────────────── */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .hero-inner {
        grid-template-columns: 1fr 380px;
        gap: 80px;
        padding: 96px 32px 112px;
        align-items: center;
    }

    .hero-left {
        order: 1;
    }

    .hero-photo-wrap {
        order: 2;
        max-width: 380px;
        margin: 0;
    }

    .hero-badge {
        left: -22px;
        bottom: -18px;
        padding: 10px 18px 10px 14px;
    }

    .hero-scroll-cue {
        display: flex;
    }

    .exp-list {
        padding-left: 28px;
    }

    .exp-list::before {
        content: '';
        position: absolute;
        left: 4px;
        top: 12px;
        bottom: 12px;
        width: 1px;
        background: linear-gradient(to bottom, transparent, var(--border-md) 8%, var(--border-md) 92%, transparent);
    }

    .exp-item {
        grid-template-columns: 200px 1fr;
        gap: 48px;
        padding: 40px 0;
    }

    .exp-marker {
        display: block;
        position: absolute;
        left: -28px;
        top: 46px;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--bg-2);
        border: 1.5px solid var(--text-3);
        transition:
            background 0.4s var(--ease-out-quart),
            border-color 0.4s var(--ease-out-quart),
            transform 0.4s var(--ease-out-expo);
    }

    .exp-item:first-child .exp-marker {
        background: var(--accent);
        border-color: var(--accent);
        box-shadow: 0 0 0 4px oklch(62% 0.17 38 / 0.12);
    }

    .exp-item:hover .exp-marker {
        transform: scale(1.3);
    }

    .exp-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 28px;
    }

    .proj-tab {
        padding: 9px 22px;
    }

    .exp-tab {
        padding: 9px 22px;
    }
}

@media (min-width: 1200px) {
    .hero-inner {
        grid-template-columns: 1fr 420px;
        gap: 96px;
    }
}

/* ─── ACCESSIBILITY ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}