/* =============================================
   PORTFOLIO — style.css
   Modern Minimal UI/UX Designer Portfolio
   WordPress-ready structure
   ============================================= */

/* =============================================
   0. PAGE LOADER
   ============================================= */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.65s var(--ease-smooth),
        visibility 0.65s var(--ease-smooth);
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Progress bar */
.page-loader__bar {
    width: 160px;
    height: 2px;
    background: rgba(184, 147, 90, 0.18);
    border-radius: 99px;
    overflow: hidden;
}

.page-loader__progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c9963a, var(--color-accent), #e8b96a);
    border-radius: 99px;
    transition: width 0.12s linear;
}

/* =============================================
   1. CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    /* Colors */
    --color-bg: #f8f6f1;
    --color-bg-alt: #efece4;
    --color-dark: #0e0d0b;
    --color-dark-soft: #1a1915;
    --color-text: #0e0d0b;
    --color-text-muted: #6b6860;
    --color-text-faint: #a8a49c;
    --color-accent: #b8935a;
    --color-accent-soft: rgba(184, 147, 90, 0.12);
    --color-white: #ffffff;
    --color-border: rgba(14, 13, 11, 0.1);
    --color-border-dark: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Syne", sans-serif;
    --font-body: "DM Sans", sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 9rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(14, 13, 11, 0.06);
    --shadow-md: 0 8px 32px rgba(14, 13, 11, 0.1);
    --shadow-lg: 0 24px 64px rgba(14, 13, 11, 0.14);
    --shadow-card: 0 4px 24px rgba(14, 13, 11, 0.08);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --transition: 0.35s var(--ease-smooth);

    /* Layout */
    --max-width: 1320px;
    --container-px: 2rem;
    --navbar-h: 72px;
    /* Social float reserved space (right side) — used to prevent overlap */
    --social-float-w: 5rem;
}

@media (max-width: 768px) {
    :root {
        --container-px: 1.25rem;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
        --space-3xl: 5.5rem;
    }
}

/* =============================================
   2. RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Show default cursor on touch devices */
@media (hover: none) {
    body {
        cursor: auto;
    }
    .cursor {
        display: none !important;
    }
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: none;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* =============================================
   3. LAYOUT — CONTAINER
   ============================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

/* =============================================
   4. TYPOGRAPHY UTILITIES
   ============================================= */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}
.section-label--light {
    color: var(--color-accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
.section-title--light {
    color: var(--color-white);
}
.section-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--color-accent);
}

.section-header {
    position: relative;
    margin-bottom: var(--space-xl);
    padding-top: var(--space-sm);
}

.section-bg-text {
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 12rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-border);
    text-stroke: 1.5px var(--color-border);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
    /* Allow text to breathe — individual sections control clipping */
    max-width: none;
    overflow: visible;
}

.section-bg-text--light {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08);
    text-stroke: 1.5px rgba(255, 255, 255, 0.08);
}

.section-header .section-label,
.section-header .section-title {
    position: relative;
    z-index: 1;
}

/* =============================================
   5. BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: none;
    white-space: nowrap;
}

.btn svg {
    transition: transform var(--transition);
    flex-shrink: 0;
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Primary Button */
.btn--primary {
    background: var(--color-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}
.btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-smooth);
}
.btn--primary:hover::before {
    transform: scaleX(1);
}
.btn--primary span,
.btn--primary svg {
    position: relative;
    z-index: 1;
}

/* Ghost Button */
.btn--ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
}
.btn--ghost:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

/* Outline Button */
.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-text);
}
.btn--outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

/* Outline Light */
.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn--outline-light:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

/* CTA Navbar Button — same slide-fill hover as btn--primary */
.btn--cta {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 0.625rem 1.375rem;
    font-size: 0.8125rem;
    overflow: hidden;
    position: relative;
}
.btn--cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-smooth);
    border-radius: inherit;
}
.btn--cta:hover::before {
    transform: scaleX(1);
}
.btn--cta span,
.btn--cta svg {
    position: relative;
    z-index: 1;
}

/* =============================================
   6. CUSTOM CURSOR
   ============================================= */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: normal;
}

.cursor__dot {
    width: 6px;
    height: 6px;
    background: var(--color-dark);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition:
        transform 0.08s var(--ease-smooth),
        width 0.2s var(--ease-smooth),
        height 0.2s var(--ease-smooth);
}

.cursor__ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-dark);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition:
        transform 0.15s var(--ease-smooth),
        width 0.3s var(--ease-bounce),
        height 0.3s var(--ease-bounce),
        border-color 0.3s,
        background 0.3s;
}

.cursor--hover .cursor__ring {
    width: 56px;
    height: 56px;
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.cursor--dark .cursor__dot {
    background: var(--color-white);
}
.cursor--dark .cursor__ring {
    border-color: var(--color-white);
}

/* =============================================
   7. NAVBAR
   ============================================= */
/* ─────────────────────────────────────────
   NAVBAR  — base (shared all breakpoints)
───────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 2.5rem);
    max-width: 860px;
    height: var(--navbar-h);
    border-radius: var(--radius-full);
    border: none;
    /* ── default: transparent (mobile at-top) ── */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition:
        background 0.48s var(--ease-smooth),
        box-shadow 0.48s var(--ease-smooth),
        top 0.48s var(--ease-smooth),
        max-width 0.48s var(--ease-smooth),
        width 0.48s var(--ease-smooth),
        backdrop-filter 0.48s var(--ease-smooth);
}

/* ── scrolled state (shared) ── */
.navbar.scrolled {
    background: rgba(248, 246, 241, 0.52);
    backdrop-filter: blur(52px) saturate(220%);
    -webkit-backdrop-filter: blur(52px) saturate(220%);
    border: none;
    /* Clean shadow — zero border/ring */
    box-shadow:
        0 12px 40px rgba(14, 13, 11, 0.1),
        0 3px 8px rgba(14, 13, 11, 0.06);
    top: 1rem;
}

/* ─────────────────────────────────────────
   DESKTOP  (≥901 px)
───────────────────────────────────────── */
@media (min-width: 901px) {
    .navbar {
        max-width: 1160px;
        width: calc(100% - 4rem);
        top: 1.5rem;
        /* at-top: fully transparent, merged with hero */
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .navbar.scrolled {
        max-width: 1160px;
        width: calc(100% - 4rem);
        top: 1.25rem;
        background: rgba(248, 246, 241, 0.52);
        backdrop-filter: blur(60px) saturate(230%);
        -webkit-backdrop-filter: blur(60px) saturate(230%);
        /* Clean shadow — no border, no ring */
        box-shadow:
            0 16px 48px rgba(14, 13, 11, 0.09),
            0 4px 12px rgba(14, 13, 11, 0.05);
    }

    /* Logo — no bg treatment needed, shimmer handles it */
    .navbar:not(.scrolled) .navbar__status {
        background: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* CTA always solid */
    .navbar:not(.scrolled) .btn--cta {
        background: var(--color-dark);
        color: var(--color-white);
    }
}

.navbar__inner {
    max-width: 100%;
    margin-inline: auto;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

/* Status Badge */
/* ── LOGO — replaces old status badge ── */
.navbar__status {
    display: flex;
    align-items: center;
    gap: 0;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
    cursor: none;
}

/* Hide the animated dot — logo doesn't need it */
.status-dot {
    display: none;
}

.status-text {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.01em;
    white-space: nowrap;
    /* Warm gold–bronze gradient */
    background: linear-gradient(110deg, #c9963a 0%, var(--color-accent) 38%, #e8b96a 62%, #a8742a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Subtle shimmer animation */
    background-size: 220% 100%;
    animation: logo-shimmer 4s ease-in-out infinite alternate;
    position: relative;
}

/* Underline accent beneath the last letter cluster */
.status-text::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
    border-radius: 2px;
    opacity: 0.55;
}

@keyframes logo-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Transparent-bg state: logo stays fully visible */
.navbar:not(.scrolled) .navbar__status {
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

/* Center Nav */
.navbar__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: clamp(0.78rem, 1vw, 0.875rem);
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.5rem clamp(0.5rem, 1.2vw, 0.875rem);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 1.5px;
    background: var(--color-accent);
    transition: transform var(--transition);
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--color-bg-alt);
}
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Active nav link on scroll */
.nav-link.active-link {
    color: var(--color-text);
    background: var(--color-bg-alt);
}
.nav-link.active-link::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.35s var(--ease-smooth);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile Overlay (dark + blur backdrop) ─────────── */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 11, 0.55);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    opacity: 0;
    visibility: hidden;
    z-index: 97;
    transition:
        opacity 0.4s var(--ease-smooth),
        visibility 0s linear 0.4s;
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.4s var(--ease-smooth),
        visibility 0s linear 0s;
}

/* ── Mobile Menu Floating Card ─────────────────────── */
.mobile-menu {
    position: fixed;
    top: calc(1.25rem + var(--navbar-h) + 0.75rem);
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(250, 248, 243, 0.97);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: var(--radius-xl);
    box-shadow:
        0 24px 64px rgba(14, 13, 11, 0.22),
        0 4px 16px rgba(14, 13, 11, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px) scale(0.97);
    transform-origin: top center;
    z-index: 99;
    overflow: hidden;
    transition:
        opacity 0.38s var(--ease-bounce),
        transform 0.38s var(--ease-bounce),
        visibility 0s linear 0.38s;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.38s var(--ease-bounce),
        transform 0.38s var(--ease-bounce),
        visibility 0s linear 0s;
}

/* Nav items */
.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 1.125rem 1.625rem;
    border-bottom: 1px solid var(--color-border);
    transition:
        color var(--transition),
        background var(--transition);
    opacity: 0;
    transform: translateY(10px);
    transition:
        color var(--transition),
        background var(--transition),
        opacity 0.35s ease,
        transform 0.35s ease;
}
.mobile-nav-link:last-child {
    border-bottom: none;
}
.mobile-nav-link:hover {
    color: var(--color-accent);
    background: rgba(184, 147, 90, 0.05);
}

.mobile-nav-chevron {
    color: var(--color-text-faint);
    flex-shrink: 0;
    transition:
        transform var(--transition),
        color var(--transition);
}
.mobile-nav-link:hover .mobile-nav-chevron {
    transform: translateX(3px);
    color: var(--color-accent);
}

/* Brand at bottom */
/* mobile-menu__brand now defined below with social icons layout */
.mobile-menu.open .mobile-menu__brand {
    opacity: 1;
}

.mobile-brand-accent {
    color: var(--color-accent);
}

/* Mobile menu — social icons row (replaces brand text) */
.mobile-menu__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 1.625rem 1.25rem;
    border-top: 1px solid var(--color-border);
    opacity: 0;
    transition: opacity 0.35s ease 0.28s;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: rgba(184, 147, 90, 0.07);
    border: 1.5px solid rgba(184, 147, 90, 0.15);
    transition:
        background 0.3s var(--ease-smooth),
        color 0.3s var(--ease-smooth),
        transform 0.3s var(--ease-bounce),
        box-shadow 0.3s var(--ease-smooth),
        border-color 0.3s var(--ease-smooth);
    cursor: none;
}

.mobile-social-link span {
    /* label hidden — icon only on mobile */
    display: none;
}

.mobile-social-link:hover {
    color: var(--color-white);
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.12);
    box-shadow:
        0 0 0 4px rgba(184, 147, 90, 0.18),
        0 6px 18px rgba(184, 147, 90, 0.3);
}

/* Stagger entrance animation */
.mobile-menu.open .mobile-social-link:nth-child(1) {
    transition-delay: 0.18s;
}
.mobile-menu.open .mobile-social-link:nth-child(2) {
    transition-delay: 0.24s;
}
.mobile-menu.open .mobile-social-link:nth-child(3) {
    transition-delay: 0.3s;
}

@media (max-width: 900px) {
    /* Hide desktop nav links */
    .navbar__nav {
        display: none;
    }

    /* ── Mobile layout: hamburger LEFT · CTA RIGHT ── */
    .navbar__inner {
        justify-content: space-between;
    }

    /* 1 = hamburger goes first (left) */
    .hamburger {
        display: flex;
        order: 1;
    }

    /* 2 = CTA goes last (right) */
    .btn--cta {
        display: flex;
        order: 2;
        /* Slightly smaller on mobile */
        padding: 0.5rem 1.1rem;
        font-size: 0.78rem;
    }

    /* Hide logo/brand on mobile */
    .navbar__status {
        display: none;
    }

    /* Mobile scrolled pill */
    .navbar.scrolled {
        top: 0.75rem;
        width: calc(100% - 2rem);
    }
}

/* =============================================
   8. HERO SECTION
   ============================================= */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--navbar-h) + 2.5rem);
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Desktop: navbar is transparent, add extra breathing room */
@media (min-width: 901px) {
    .hero {
        padding-top: calc(var(--navbar-h) + 4rem);
        padding-bottom: var(--space-2xl);
        min-height: 100svh;
    }
}

/* Subtle background texture */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 65% 50%, rgba(184, 147, 90, 0.06) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 20% 80%, rgba(14, 13, 11, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* Hero Content */
.hero__label {
    margin-bottom: 1.5rem;
}

.label-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
}

.hero__intro {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 4.5rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--color-text);
    position: relative;
    margin-bottom: 2rem;
}

.headline-line {
    display: block;
}
.headline-line--italic {
    font-style: italic;
    font-weight: 300;
    color: var(--color-accent);
}
.headline-line--accent {
    color: var(--color-text);
}

.hero__bg-text {
    position: absolute;
    top: 50%;
    left: -0.25em;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 16rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(14, 13, 11, 0.05);
    text-stroke: 1.5px rgba(14, 13, 11, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: -1;
    line-height: 1;
}

.hero__description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 3.5rem;
    color: var(--color-text-faint);
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
}

.scroll-line {
    width: 40px;
    height: 1.5px;
    background: var(--color-text-faint);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: scroll-line-anim 2s var(--ease-smooth) infinite 1.5s;
}
@keyframes scroll-line-anim {
    0% {
        left: -100%;
    }
    50% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

/* Hero Image */
.hero__image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

/* ── Warm glow — static parent, never follows float animation ── */
.hero__image-wrap::before {
    content: "";
    position: absolute;
    inset: -5% -10%;
    background: radial-gradient(ellipse 70% 65% at 55% 38%, rgba(222, 192, 120, 0.6) 0%, rgba(212, 176, 98, 0.38) 28%, rgba(200, 158, 76, 0.18) 52%, transparent 72%);
    filter: blur(22px);
    pointer-events: none;
    z-index: 0;
}

.hero__image-frame {
    width: min(460px, 100%);
    aspect-ratio: 4 / 5;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
    position: relative;
    z-index: 1;
    animation: float-portrait 7s ease-in-out infinite;
}

/* ── Bottom fade — uses var(--color-bg) via color-mix() so it always matches the page background ── */
.hero__image-frame::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 42%;
    background: linear-gradient(to top, var(--color-bg) 0%, color-mix(in srgb, var(--color-bg) 82%, transparent) 22%, color-mix(in srgb, var(--color-bg) 38%, transparent) 52%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

@keyframes float-portrait {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-12px) rotate(0.4deg);
    }
    66% {
        transform: translateY(-5px) rotate(-0.3deg);
    }
}

.hero__portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    will-change: transform;
    filter: grayscale(100%) brightness(0.88) contrast(1.05);
    transition: filter 0.5s var(--ease-smooth);
    display: block;
    position: relative;
    z-index: 1;
}

/* Color clone sits on top, masked by radial-gradient that follows cursor instantly */
.hero__portrait-color {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
    z-index: 2;
    /* mask is set inline by JS — no transition delay, instant brush feel */
    -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, black 55%, transparent 75%);
    mask-image: radial-gradient(circle 0px at 50% 50%, black 55%, transparent 75%);
    transition:
        -webkit-mask-image 0s,
        mask-image 0s;
}

/* When hovering: JS updates --brush-x --brush-y --brush-r via inline style */
/* When color-locked: full reveal */
.hero__image-frame.color-locked .hero__portrait-color {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}
.hero__image-frame.color-locked .hero__portrait {
    filter: grayscale(0%) brightness(1);
}

/* Hint tooltip */
.hero__image-frame::after {
    content: "Hover to reveal · Click to lock";
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(14, 13, 11, 0.65);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    opacity: 0;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    pointer-events: none;
    z-index: 5;
    backdrop-filter: blur(6px);
}
.hero__image-frame:not(.color-locked):hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.hero__image-frame.color-locked::after {
    content: "Click to reset";
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Hero experience badge ── */
.hero__image-badge {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    z-index: 20;
    /* Circle shape */
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Dark frosted glass */
    background: rgba(14, 13, 11, 0.86);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    /* Gold glow shadow */
    box-shadow:
        0 0 0 1.5px rgba(184, 147, 90, 0.35),
        0 0 24px rgba(184, 147, 90, 0.3),
        0 0 56px rgba(184, 147, 90, 0.14),
        0 12px 32px rgba(14, 13, 11, 0.32);
    /* Float animation — offset from portrait float */
    animation: badge-float 6s ease-in-out infinite;
    animation-delay: 0.8s;
    /* No accent bar */
    overflow: visible;
}

@keyframes badge-float {
    0%,
    100% {
        transform: translateY(0px);
    }
    40% {
        transform: translateY(-8px);
    }
    70% {
        transform: translateY(-4px);
    }
}

/* No accent line needed */
.badge__accent-line {
    display: none;
}

/* Inner content — centered column */
.badge__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0;
    text-align: center;
}

.badge-number {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-white);
    position: relative;
}

.badge-plus {
    font-size: 1.1rem;
    vertical-align: super;
    line-height: 0;
    background: linear-gradient(135deg, #e8c47a, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 1px;
}

.badge__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.badge-label-top {
    font-family: var(--font-sans);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
}

.badge-label-bottom {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

/* Social Float */
.social-float {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    z-index: 50;
}

.social-float__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: transparent;
    transition:
        background 0.32s var(--ease-smooth),
        color 0.32s var(--ease-smooth),
        transform 0.32s var(--ease-bounce),
        box-shadow 0.32s var(--ease-smooth);
    position: relative;
}

.social-float__link span {
    position: absolute;
    right: calc(100% + 0.75rem);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--transition);
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    pointer-events: none;
}

.social-float__link:hover {
    color: var(--color-white);
    background: var(--color-accent);
    transform: scale(1.15);
    box-shadow:
        0 0 0 4px rgba(184, 147, 90, 0.18),
        0 6px 18px rgba(184, 147, 90, 0.32);
    border-radius: 50%;
}
.social-float__link:hover span {
    opacity: 1;
    transform: translateX(0);
}

.social-float__line {
    width: 1.5px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-border), transparent);
    margin-top: 0.5rem;
}

@media (max-width: 1100px) {
    .social-float {
        display: none;
    }
}

/* ─── Clear social-float on all sections (>1100px) ───
   Float sits at right:2rem (32px) with 38px width = ~70px from right edge.
   We apply padding-right to every section's inner container via a utility
   class added on the sections so the content never slides under the float.
─────────────────────────────────────────────────────── */
@media (min-width: 1101px) {
    .work .container,
    .achievements .container,
    .services .container,
    .experience .container,
    .contact .container,
    .footer .container,
    .footer__inner {
        padding-right: calc(var(--container-px) + var(--social-float-w));
    }

    /* Hero: the portrait IS the right column — it should breathe but
       not shift. Apply padding only to the content (left) side is handled
       by the grid itself. We just cap the overall hero width. */
    .hero .container {
        padding-right: calc(var(--container-px) + var(--social-float-w));
    }
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--navbar-h) + 3.5rem);
        padding-bottom: var(--space-xl);
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 3rem;
    }
    .hero__description {
        margin-inline: 0;
    }
    .hero__actions {
        justify-content: flex-start;
    }
    .scroll-indicator {
        justify-content: flex-start;
    }
    /* Center photo + glow on mobile */
    .hero__image-wrap {
        order: -1;
        justify-content: center;
        width: 100%;
    }

    .hero__image-frame {
        width: min(300px, 78vw);
        aspect-ratio: 3 / 4;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
        margin: 0 auto;
    }

    /* Center the glow blob on mobile */
    .hero__image-wrap::before {
        inset: -8% -5%;
        background: radial-gradient(ellipse 80% 70% at 50% 42%, rgba(222, 192, 120, 0.65) 0%, rgba(212, 176, 98, 0.4) 28%, rgba(200, 158, 76, 0.18) 52%, transparent 72%);
    }

    .hero__image-badge {
        width: 88px;
        height: 88px;
        left: calc(50% - min(300px, 78vw) / 2 - 10px);
        bottom: 1rem;
        transform: none;
    }
    .badge-number {
        font-size: 1.8rem;
    }
    .badge-label-top,
    .badge-label-bottom {
        font-size: 0.48rem;
    }

    .hero__bg-text {
        font-size: 5rem;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow: hidden;
        max-width: 100vw;
    }

    /* Full color portrait on mobile — no grayscale, no brush reveal */
    .hero__portrait {
        filter: grayscale(0%) brightness(1) contrast(1) !important;
    }
    .hero__portrait-color {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        opacity: 1 !important;
    }
    .hero__image-frame::after {
        display: none !important;
    }
}

/* =============================================
   9. WORK / PORTFOLIO SECTION
   ============================================= */
.work {
    padding-block: var(--space-3xl);
    background: var(--color-bg-alt);
}

.work__filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    transition: all var(--transition);
    cursor: none;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

/* Portfolio Grid */
.work__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: var(--space-xl);
}

@media (max-width: 680px) {
    .work__grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Card */
.portfolio-card {
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    /* will-change harus ada SEBELUM hover — ini kunci utama.
       Tanpa ini, browser baru buat compositor layer saat hover pertama,
       yang menyebabkan stacking context baru terbentuk di tengah animasi
       dan memaksa semua child (termasuk image) di-repaint ulang → zoom patah.
       Dengan will-change di sini, layer sudah siap sebelum interaksi. */
    will-change: transform;
    transition:
        transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card[data-hidden] {
    display: none;
}

.portfolio-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg);
}

.portfolio-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    /* Rounded corners mengikuti card — hanya sudut atas karena info ada di bawah */
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* Dedicated GPU compositor layer — image zoom berjalan terpisah dari card lift */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.portfolio-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: scale(1) translateZ(0);
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-card:hover .portfolio-card__image,
.portfolio-card.is-touch-active .portfolio-card__image {
    transform: scale(1.08) translateZ(0);
}

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 13, 11, 0.4);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}
.portfolio-card:hover .portfolio-card__overlay,
.portfolio-card.is-touch-active .portfolio-card__overlay {
    opacity: 1;
}

/* GitHub button */
.portfolio-card__github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-sans);
    transform: translateY(16px) scale(0.8);
    transition: transform 0.4s var(--ease-bounce), background 0.25s, color 0.25s;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    white-space: nowrap;
}
.portfolio-card:hover .portfolio-card__github-btn,
.portfolio-card.is-touch-active .portfolio-card__github-btn {
    transform: translateY(0) scale(1);
    transition-delay: 0.05s;
}
.portfolio-card__github-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}
.portfolio-card__github-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
}

/* View button */
.portfolio-card__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transform: translateY(16px) scale(0.85);
    transition: transform 0.4s var(--ease-bounce), background 0.25s, color 0.25s;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.portfolio-card:hover .portfolio-card__view-btn,
.portfolio-card.is-touch-active .portfolio-card__view-btn {
    transform: translateY(0) scale(1);
}
.portfolio-card__view-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}
.portfolio-card__view-label {
    line-height: 1;
}

.portfolio-card__info {
    padding: 1.5rem;
}

.portfolio-card__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.tag {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
}

.portfolio-card__title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-text);
}

/* CTA */
.work__cta {
    text-align: center;
}

/* =============================================
   10. ACHIEVEMENTS SECTION
   ============================================= */
.achievements {
    padding-block: var(--space-3xl);
    background: var(--color-bg);
    position: relative;
}

.achievements__list {
    display: flex;
    flex-direction: column;
}

/* Each achievement row — link */
a.achievement-item {
    text-decoration: none;
    color: inherit;
    display: grid;
}

.achievement-item {
    display: grid;
    grid-template-columns: 3rem 1fr 2fr 2rem;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    transition: all var(--transition);
    cursor: none;
}

.achievement-item:last-child {
    border-bottom: 1px solid var(--color-border);
}

/* Hover fill */
.achievement-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(184, 147, 90, 0.05) 0%, transparent 80%);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-md);
    margin-inline: -1.5rem;
}

.achievement-item:hover::before {
    opacity: 1;
}

.achievement-item__number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.achievement-item:hover .achievement-item__number {
    opacity: 1;
}

.achievement-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.achievement-item__title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.achievement-item:hover .achievement-item__title {
    color: var(--color-accent);
}

.achievement-item__meta {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-faint);
}

.achievement-item__desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.achievement-item:hover .achievement-item__desc {
    color: var(--color-text);
}

.achievement-item__arrow {
    color: var(--color-text-faint);
    transition:
        color var(--transition),
        transform var(--transition);
    transform: rotate(0deg);
    justify-self: center;
}

.achievement-item:hover .achievement-item__arrow {
    color: var(--color-accent);
    transform: rotate(45deg) scale(1.1);
}

/* Mobile */
@media (max-width: 768px) {
    a.achievement-item {
        display: grid;
    }
    .achievement-item {
        grid-template-columns: 2.5rem 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 1rem;
        padding: 1.5rem 0;
    }
    .achievement-item__body {
        grid-column: 2;
        grid-row: 1;
    }
    .achievement-item__desc {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 0.25rem;
    }
    .achievement-item__arrow {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        margin-top: 0.2rem;
    }
    .achievement-item__number {
        grid-row: 1;
        align-self: start;
        padding-top: 0.1rem;
    }
}

/* =============================================
   10. SERVICES SECTION
   ============================================= */
.services {
    padding-block: var(--space-3xl);
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.services__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
}

/* Service Item */
.service-item {
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

.service-item__header {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 0;
    cursor: none;
    transition: all var(--transition);
}

.service-item__number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    opacity: 0.7;
    transition: opacity var(--transition);
}

.service-item:hover .service-item__number {
    opacity: 1;
}

.service-item__name {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--color-text);
    transition: color var(--transition);
}

.service-item__arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.4s var(--ease-smooth);
    flex-shrink: 0;
}

.service-item:hover .service-item__name {
    color: var(--color-accent);
}

.service-item:hover .service-item__arrow,
.service-item.open .service-item__arrow {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
    transform: rotate(45deg);
}

/* Accordion Body */
.service-item__body {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.6s var(--ease-smooth),
        padding 0.4s var(--ease-smooth);
}

.service-item.open .service-item__body {
    max-height: 500px;
}

.service-item__body-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    padding-bottom: 2rem;
    padding-left: calc(60px + 1.5rem);
}

.service-item__desc p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    max-width: 500px;
}

.service-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.service-item__tags li {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-white);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-border);
}

.service-item__preview {
    width: 180px;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(20px) scale(0.95);
    transition:
        opacity 0.5s var(--ease-smooth) 0.15s,
        transform 0.5s var(--ease-smooth) 0.15s;
}
.service-item.open .service-item__preview {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.service-item__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (max-width: 768px) {
    .service-item__header {
        grid-template-columns: 40px 1fr auto;
        gap: 1rem;
        padding: 1.25rem 0;
    }
    .service-item__body-inner {
        grid-template-columns: 1fr;
        padding-left: 0;
        gap: 1.5rem;
    }
    .service-item__preview {
        display: none;
    }
    .service-item__name {
        font-size: 1.5rem;
    }
}

/* =============================================
   11. EXPERIENCE SECTION
   ============================================= */
.experience {
    padding-block: var(--space-3xl);
    background: var(--color-bg);
    position: relative;
    overflow: clip;
}

.experience::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(184, 147, 90, 0.06) 0%, transparent 60%), radial-gradient(ellipse 40% 50% at 10% 80%, rgba(184, 147, 90, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.experience__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.experience__header > div:first-child {
    position: relative;
    overflow: visible;
}

/* Experience bg-text: escape the container, pin to section left edge */
.experience .section-bg-text {
    /* Escape padding-right constraint by going left from section edge */
    left: 0;
    right: 0;
    width: max-content;
    /* Stretch the font to read edge-to-edge at large sizes */
    font-size: clamp(5rem, 14vw, 14rem);
}

.experience__years {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.years-number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
}

.years-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.experience,
.education {
    cursor: none;
}

.experience .timeline-item,
.education .timeline-item {
    cursor: none;
}

/* Education section — same as experience */
.education.experience {
    background: var(--color-bg);
    padding-top: var(--space-lg);
}

/* Timeline */
.experience__timeline {
    position: relative;
    z-index: 1;
}

/* timeline-item is now a plain div */

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    transition: all var(--transition);
    cursor: none;
}

.timeline-item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.timeline-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(14, 13, 11, 0.03);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.25s ease;
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
}

.timeline-item:hover::before {
    opacity: 1;
}

.timeline-item__date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-text-faint);
    white-space: nowrap;
    transition: color 0.22s ease;
}

.timeline-item:hover .timeline-item__date {
    color: var(--color-accent);
}

.timeline-item__company {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--color-text);
    transition: color 0.22s ease;
    margin-bottom: 0.3rem;
}

.timeline-item:hover .timeline-item__company {
    color: var(--color-accent);
}

.timeline-item__role {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color 0.22s ease;
}

.timeline-item__preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.85) translateX(10px);
    transition:
        opacity 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-md);
}
.timeline-item:hover .timeline-item__preview {
    opacity: 1;
    transform: scale(1) translateX(0);
}
.timeline-item__arrow {
    color: var(--color-text-faint);
    flex-shrink: 0;
    transition:
        color 0.22s ease,
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(0deg);
}

.timeline-item:hover .timeline-item__arrow {
    color: var(--color-accent);
    transform: rotate(45deg) scale(1.1);
}

.timeline-item__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .experience__header {
        flex-direction: column;
        align-items: flex-start;
    }
    a.timeline-item {
        display: grid;
    }
    .timeline-item {
        grid-template-columns: 1fr auto;
        gap: 0.375rem 1rem;
        padding: 1.25rem 0;
    }
    .timeline-item__date {
        grid-column: 1 / -1;
    }
    .timeline-item__arrow {
        align-self: center;
    }
    .timeline-item__preview {
        display: none;
    }
    .timeline-item__date {
        order: -1;
    }
}

/* =============================================
   12. CONTACT SECTION
   ============================================= */
.contact {
    padding-block: var(--space-3xl);
    background: var(--color-dark-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-inline: auto;
}

.contact__label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.contact__headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}
.contact__headline em {
    font-style: italic;
    font-weight: 300;
    color: var(--color-accent);
}

.contact__subtext {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2.5rem;
}

.contact__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact__email {
    margin-bottom: 2.5rem;
}
.contact__email a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: transparent;
}
.contact__email a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

.contact__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-social-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    transition: color var(--transition);
    position: relative;
}
.contact-social-link::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.contact-social-link:hover {
    color: var(--color-white);
}
.contact-social-link:hover::after {
    transform: scaleX(1);
}

/* Floating decorations */
.contact__float-1,
.contact__float-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.contact__float-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 147, 90, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: float-blob 10s ease-in-out infinite;
}
.contact__float-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 147, 90, 0.06) 0%, transparent 70%);
    bottom: -80px;
    right: 5%;
    animation: float-blob 12s ease-in-out infinite 3s;
}

@keyframes float-blob {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-15px, 15px) scale(0.97);
    }
}

/* =============================================
   13. FOOTER
   ============================================= */
.footer {
    background: var(--color-dark);
    border-top: 1px solid var(--color-border-dark);
    padding-block: 2rem;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
}

.footer__copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.footer-social-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    transition: color var(--transition);
}
.footer-social-link:hover {
    color: var(--color-accent);
}

@media (max-width: 600px) {
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   14. SCROLL ANIMATIONS
   ============================================= */

/* Fade Up */
.animate-fade-up,
.reveal-fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.75s var(--ease-out),
        transform 0.75s var(--ease-out);
}

/* Fade Right */
.animate-fade-right,
.reveal-fade-right {
    opacity: 0;
    transform: translateX(-32px);
    transition:
        opacity 0.75s var(--ease-out),
        transform 0.75s var(--ease-out);
}

/* Fade Left */
.animate-fade-left,
.reveal-fade-left {
    opacity: 0;
    transform: translateX(32px);
    transition:
        opacity 0.75s var(--ease-out),
        transform 0.75s var(--ease-out);
}

/* Scale In */
.animate-scale-in,
.reveal-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-bounce);
}

/* Stagger Children */
.reveal-stagger {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

/* Visible State */
.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Delay utilities */
[data-delay="0"] {
    transition-delay: 0ms;
}
[data-delay="100"] {
    transition-delay: 100ms;
}
[data-delay="200"] {
    transition-delay: 200ms;
}
[data-delay="250"] {
    transition-delay: 250ms;
}
[data-delay="380"] {
    transition-delay: 380ms;
}
[data-delay="500"] {
    transition-delay: 500ms;
}

/* =============================================
   15. NOISE / GRAIN TEXTURE OVERLAY
   ============================================= */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* =============================================
   16. SCROLLBAR STYLING
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* =============================================
   17. SELECTION
   ============================================= */
::selection {
    background: var(--color-accent);
    color: var(--color-white);
}

/* =============================================
   18. FOCUS STYLES (Accessibility)
   ============================================= */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =============================================
   19. PRINT STYLES
   ============================================= */
@media print {
    .navbar,
    .social-float,
    .cursor,
    .hamburger {
        display: none !important;
    }
    body {
        cursor: auto;
    }
    * {
        animation: none !important;
        transition: none !important;
    }
    .animate-fade-up,
    .reveal-fade-up,
    .animate-scale-in,
    .reveal-scale-in,
    .animate-fade-right,
    .reveal-fade-right,
    .reveal-stagger {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   MOBILE TOUCH ACTIVE STATES
   Mirrors all :hover effects for touch devices
   Class .is-touch-active applied via JS on touchstart/swipe
   ============================================= */

/* ── Portfolio Cards ── */
.portfolio-card.is-touch-active {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ── Achievement Items ── */
.achievement-item.is-touch-active::before {
    opacity: 1;
}
.achievement-item.is-touch-active .achievement-item__number {
    opacity: 1;
}
.achievement-item.is-touch-active .achievement-item__title {
    color: var(--color-accent);
}
.achievement-item.is-touch-active .achievement-item__desc {
    color: var(--color-text);
}
.achievement-item.is-touch-active .achievement-item__arrow {
    color: var(--color-accent);
    transform: rotate(45deg) scale(1.1);
}

/* ── Timeline Items (Experience / Education) ── */
.timeline-item.is-touch-active::before {
    opacity: 1;
}
.timeline-item.is-touch-active .timeline-item__date {
    color: var(--color-accent);
}
.timeline-item.is-touch-active .timeline-item__company {
    color: var(--color-accent);
}
.timeline-item.is-touch-active .timeline-item__preview {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.timeline-item.is-touch-active .timeline-item__arrow {
    color: var(--color-accent);
    transform: rotate(45deg) scale(1.1);
}

/* ── Service/Skill Items ── */
.service-item.is-touch-active .service-item__name {
    color: var(--color-accent);
}
.service-item.is-touch-active .service-item__arrow,
.service-item.is-touch-active .service-item__number {
    color: var(--color-accent);
}

/* Smooth transition for touch activate/deactivate */
.portfolio-card,
.achievement-item,
.timeline-item {
    -webkit-tap-highlight-color: transparent;
}
/* ═══════════════════════════════════════════
               WORK PAGE — page-specific styles
               Shares all tokens from style.css
            ═══════════════════════════════════════════ */

/* ── Page header ── */
.work-page__hero {
    padding-top: calc(var(--navbar-h) + 5rem);
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.work-page__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 45% at 80% 0%, rgba(184, 147, 90, 0.07) 0%, transparent 65%), radial-gradient(ellipse 40% 60% at 10% 100%, rgba(184, 147, 90, 0.04) 0%, transparent 55%);
    pointer-events: none;
}

.work-page__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.work-page__title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.work-page__title em {
    font-style: italic;
    font-weight: 300;
    color: var(--color-accent);
}

.work-page__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 52ch;
}

.work-page__bg-text {
    position: absolute;
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(8rem, 18vw, 18rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-border);
    text-stroke: 1.5px var(--color-border);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

.work-page__hero .container {
    position: relative;
    z-index: 1;
}

/* ── Stats row ── */
.work-page__stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.work-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.work-stat__number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #c9963a, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-stat__label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-faint);
}

/* ── Filter bar ── */
.work-page__filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-block: 2.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 3rem;
}

.work-page__filter-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin-right: 0.5rem;
}

/* ── Portfolio masonry grid ── */
.work-page__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--space-2xl);
}

/* Featured card — full width */
.pcard--featured {
    grid-column: span 12;
}

/* Half cards */
.pcard--half {
    grid-column: span 6;
}

/* Third cards */
.pcard--third {
    grid-column: span 4;
}

/* Wide card */
.pcard--wide {
    grid-column: span 8;
}

/* Narrow card */
.pcard--narrow {
    grid-column: span 4;
}

/* Mobile: all full width */
@media (max-width: 768px) {
    .pcard--featured,
    .pcard--half,
    .pcard--third,
    .pcard--wide,
    .pcard--narrow {
        grid-column: span 12;
    }

    .pcard--featured .pcard__image-wrap {
        aspect-ratio: 16 / 9;
    }

    .work-page__stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 1000px) {
    .pcard--third {
        grid-column: span 6;
    }
    .pcard--wide {
        grid-column: span 12;
    }
    .pcard--narrow {
        grid-column: span 12;
    }
}

/* ── Portfolio Card ── */
.pcard {
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    will-change: transform;
    transition:
        transform 0.5s var(--ease-smooth),
        box-shadow 0.5s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.pcard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pcard__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
    /* Dedicated GPU layer — image zoom compositor-only, tidak terganggu card lift */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.pcard__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: scale(1) translateZ(0);
    transform-origin: center center;
    transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcard:hover .pcard__image {
    transform: scale(1.06) translateZ(0);
}

/* Overlay with link button */
.pcard__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(14, 13, 11, 0.55) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.5rem;
    transition: opacity 0.4s var(--ease-smooth);
}

.pcard:hover .pcard__overlay {
    opacity: 1;
}

.pcard__year {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.pcard__link-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(12px) scale(0.85);
    transition:
        transform 0.4s var(--ease-bounce),
        background 0.3s var(--ease-smooth),
        color 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.pcard:hover .pcard__link-btn {
    transform: translateY(0) scale(1);
}

.pcard__link-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Card body */
.pcard__info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.pcard__tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pcard__tag {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.65rem;
}

.pcard__title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -0.01em;
    transition: color 0.3s var(--ease-smooth);
}

.pcard:hover .pcard__title {
    color: var(--color-accent);
}

.pcard__desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Featured card — horizontal layout on desktop */
.pcard--featured .pcard__info {
    padding: 2rem 2.5rem;
}

.pcard--featured .pcard__title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

/* ── Featured card: cinematic Ken-Burns zoom ── */
/* Longer duration + deeper zoom + subtle pan for the hero featured card */
.pcard--featured .pcard__image-wrap {
    aspect-ratio: 21 / 8;
}

.pcard--featured .pcard__image {
    transform-origin: center 40%;
    transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pcard--featured:hover .pcard__image {
    /* Deeper zoom + subtle upward pan — cinematic Ken-Burns feel */
    transform: scale(1.1) translateY(-1.5%) translateZ(0);
}

/* ── CTA strip ── */
.work-page__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 3.5rem;
    border-radius: var(--radius-xl);
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-2xl);
}

.work-page__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(184, 147, 90, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.work-page__cta-text {
    position: relative;
    z-index: 1;
}

.work-page__cta-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.work-page__cta-text h3 em {
    font-style: italic;
    font-weight: 300;
    color: var(--color-accent);
}

.work-page__cta-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.work-page__cta .btn--primary {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .work-page__cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
}

/* ── Back link in navbar ── */
.navbar__back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.navbar__back:hover {
    color: var(--color-accent);
}

.navbar__back svg {
    transition: transform 0.3s var(--ease-smooth);
}

.navbar__back:hover svg {
    transform: translateX(-3px);
}

/* ── Filtered hidden state ── */
.pcard[data-hidden] {
    display: none;
}