/* ============================================
       VARIABLES & THEMES
    ============================================ */
:root {
    --bg: #0C0C0B;
    --bg2: #141413;
    --fg: #EDEDE8;
    --muted: #93938F;
    --border: rgba(237, 237, 232, 0.09);
    --border-hover: rgba(237, 237, 232, 0.38);
    --accent: #FF3D00;
    --accent2: #FF7A5C;
    --radius: 14px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] {
    --bg: #F0EDE5;
    --bg2: #E8E5DD;
    --fg: #0C0C0B;
    --muted: #5B5A57;
    --border: rgba(12, 12, 11, 0.1);
    --border-hover: rgba(12, 12, 11, 0.38);
    --accent: #FF3D00;
    --accent2: #D93300;
}

/* ============================================
       RESET
    ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    cursor: auto;
    transition: background var(--transition), color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* Suppress browser default cursor everywhere so the custom one is always on top */
*,
*::before,
*::after {
    cursor: auto !important;
}

/* Touch devices: restore default cursor, hide custom cursor element */
@media (pointer: coarse) {

    *,
    *::before,
    *::after {
        cursor: auto !important;
    }

    body {
        cursor: auto;
    }

    .cursor {
        display: none !important;
    }
}

/* ============================================
       NOISE OVERLAY
    ============================================ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9997;
}

/* ============================================
       CURSOR - MIRO STYLE
    ============================================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    /* tip of the arrow is the reference point */
    will-change: transform;
    opacity: 0;
}

/* Arrow SVG */
.cursor-arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 26px;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.cursor-arrow svg {
    display: block;
}

/* Guest label pill */
.cursor-label {
    position: absolute;
    /* align with tip: offset right of the arrow and slightly below */
    top: 18px;
    left: 16px;
    background: #1A1A19;
    color: #EDEDE8;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px 4px 8px;
    border-radius: 100px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    transition: background 0.25s ease, transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* keep legible in light mode too */
}

.cursor-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF3D00;
    flex-shrink: 0;
}

@keyframes pill-bounce {
    0% {
        transform: scale(1, 1);
    }

    18% {
        transform: scale(1.14, 0.86);
    }

    38% {
        transform: scale(0.93, 1.07);
    }

    58% {
        transform: scale(1.05, 0.96);
    }

    78% {
        transform: scale(0.98, 1.02);
    }

    100% {
        transform: scale(1, 1);
    }
}

#cursorLabelText {
    transition: opacity 0.12s ease;
}

/* Hover state - arrow tilts, pill bounces red */
body.is-hovering .cursor-arrow {
    transform: rotate(-12deg) scale(0.92);
}

body.is-hovering .cursor-label {
    background: #FF3D00;
    color: #fff;
    animation: pill-bounce 0.42s cubic-bezier(.36, .07, .19, .97);
}

body.is-hovering .cursor-label-dot {
    background: rgba(255, 255, 255, 0.6);
}

/* ============================================
       PRELOADER
    ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.pl-name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.045em;
    overflow: hidden;
    text-align: center;
}

.pl-name span {
    display: inline-block;
    transform: translateY(110%);
}

.pl-bar-wrap {
    width: 160px;
    height: 1px;
    background: var(--border);
    overflow: hidden;
}

.pl-bar {
    height: 100%;
    width: 0;
    background: var(--fg);
    transition: width 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ============================================
       NAVIGATION
    ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 22px 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition:
        padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        left 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        right 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease;
}

nav.scrolled {
    top: 16px;
    left: 22%;
    right: 22%;
    gap: 48px;
    padding: 14px 36px;
    border-radius: 100px;
    background: rgba(12, 12, 11, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] nav.scrolled {
    background: rgba(240, 237, 229, 0.85);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    /* opacity set via gsap.set() in heroIn() */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 36px;
    /* opacity set via gsap.set() in heroIn() */
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--fg);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Theme Toggle */
.theme-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 15px;
    cursor: auto;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.theme-btn .t-icon {
    font-size: 13px;
}

/* ============================================
       HERO
    ============================================ */
#hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 44px max(56px, calc(56px + env(safe-area-inset-bottom)));
    position: relative;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
    overflow: hidden;
}

.hero-eyebrow span {
    display: inline-block;
    transform: translateY(110%);
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(72px, 12vw, 176px);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.hero-title .tl {
    overflow: hidden;
    display: block;
}

.hero-title .tl span {
    display: block;
    transform: translateY(110%);
}

.s-title .tl {
    overflow: hidden;
    display: block;
}

.s-title .tl span {
    display: block;
    transform: translateY(110%);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.hero-desc {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 300;
    overflow: hidden;
}

/* .hero-desc initial state set via gsap.set() — keeps element visible for LCP before JS runs */

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 100px;
    color: var(--muted);
    /* transform + opacity set via gsap.set() in heroIn() */
}

.pill.available {
    border-color: rgba(0, 220, 100, 0.28);
    color: rgba(0, 220, 100, 0.85);
}

[data-theme="light"] .pill.available {
    color: #006E2D;
    border-color: rgba(0, 110, 45, 0.35);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 2.2s ease infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

/* Scroll line */
.scroll-hint {
    position: absolute;
    top: 110px;
    right: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.scroll-hint span {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    writing-mode: vertical-lr;
}

.sh-line {
    width: 1px;
    height: 64px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.sh-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: shline 2.4s ease infinite;
}

@keyframes shline {
    0% {
        top: -100%
    }

    100% {
        top: 100%
    }
}

/* ============================================
       MARQUEE
    ============================================ */
.marquee-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 20px
}

.marquee-track {
    display: inline-flex;
    animation: mq 28s linear infinite;
}

.marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

.mq-item {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    gap: 56px;
}

.mq-item::after {
    content: '✦';
    font-size: 7px;
}

@keyframes mq {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* ============================================
       SECTION COMMON
    ============================================ */
.s-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 64px;
}

.s-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.s-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(52px, 8vw, 110px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.88;
}

.s-count {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-end;
    background: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 15px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: auto;
}

.cv-btn:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.cv-btn:hover svg {
    stroke: var(--bg);
    transform: translateX(3px);
}

.cv-btn svg {
    flex-shrink: 0;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

/* ============================================
       WORK
    ============================================ */
#work {
    padding: 120px 44px;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pcard {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: auto;
    /* opacity + transform set via gsap.set() in initScroll() */
    transition: border-color 0.4s ease;
}

.pcard:hover {
    border-color: var(--border-hover);
}

.pcard--wip {
    pointer-events: none;
}

.pcard--wip .p-arrow {
    display: none;
}

.wip-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 100px;
    padding: 5px 12px;
}

.wip-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F59E0B;
    flex-shrink: 0;
    animation: blink 2.2s ease infinite;
}

.pcard-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.pcard-info {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.pcard-top {
    display: flex;
    align-items: flex-start;
}

.pnum {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 11px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--muted);
}

.pcard-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 4px 0;
}

.pcompany {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.pname {
    font-family: 'Inter', sans-serif;
    font-size: clamp(22px, 2.8vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.pyear {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
}

.pcases {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    /* margin-bottom: 8px; */
}



.pcases li {
    margin: 10px 0px;
}

.pcases span {
    font-weight: 600;
    color: var(--muted);
}

[data-theme="light"].pcases span {
    color: var(--bg);
}

.pmetrics {
    display: flex;
    gap: 32px;
}

.pmetric {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pm-val {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--muted);
}

.pm-label {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
    max-width: 130px;
}

/* Card Visual */
.pcard-vis {
    position: relative;
    overflow: hidden;
}

.pcard-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pcard:hover .pcard-bg {
    transform: scale(1.06);
}

/* Project gradients */
.p-caixabank .pcard-bg {
    background: linear-gradient(145deg, #000B35 0%, #001F82 55%, #0050FF 100%);
}

.p-gymondo1 .pcard-bg {
    background: linear-gradient(145deg, #001209 0%, #003A16 55%, #006B28 100%);
}

.p-gymondo2 .pcard-bg {
    background: linear-gradient(145deg, #1A0400 0%, #4A1000 55%, #7A1E00 100%);
}

.p-zattoo .pcard-bg {
    background: linear-gradient(145deg, #1A0A00 0%, #4A2000 55%, #CC5500 100%);
}

.p-nt-onboarding .pcard-bg {
    background: linear-gradient(145deg, #1A0500 0%, #7A2800 55%, #D44A0A 100%);
}

.p-nt-quests .pcard-bg {
    background: linear-gradient(145deg, #001A0A 0%, #004A20 55%, #00A854 100%);
}

.p-nt-referral .pcard-bg {
    background: linear-gradient(145deg, #001209 0%, #003D1A 55%, #00C96B 100%);
}

.pcard-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.pcard:hover .pcard-img {
    transform: scale(1.06);
}

.pcard-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 2;
}

/* Decorative blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.22;
    filter: blur(0px);
    transition: transform 0.9s ease, opacity 0.9s ease;
}

.pcard:hover .blob {
    opacity: 0.38;
    transform: scale(1.2) rotate(20deg);
}

.p-caixabank .blob1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -60px;
    background: #3B82F6;
}

.p-caixabank .blob2 {
    width: 200px;
    height: 200px;
    bottom: 20px;
    right: 80px;
    background: #93C5FD;
    opacity: 0.12;
}

.p-gymondo1 .blob1 {
    width: 300px;
    height: 300px;
    top: -60px;
    right: -50px;
    background: #22C55E;
}

.p-gymondo1 .blob2 {
    width: 180px;
    height: 180px;
    bottom: 40px;
    right: 60px;
    background: #86EFAC;
    opacity: 0.1;
}

.p-gymondo2 .blob1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -70px;
    background: #EF4444;
}

.p-gymondo2 .blob2 {
    width: 200px;
    height: 200px;
    bottom: 30px;
    right: 70px;
    background: #FCA5A5;
    opacity: 0.1;
}

.p-zattoo .blob1 {
    width: 310px;
    height: 310px;
    top: -70px;
    right: -60px;
    background: #F97316;
}

.p-zattoo .blob2 {
    width: 190px;
    height: 190px;
    bottom: 40px;
    right: 80px;
    background: #FED7AA;
    opacity: 0.1;
}

.p-nt-onboarding .blob1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -60px;
    background: #FF6B35;
}

.p-nt-onboarding .blob2 {
    width: 200px;
    height: 200px;
    bottom: 30px;
    right: 70px;
    background: #FDBA74;
    opacity: 0.1;
}

.p-nt-quests .blob1 {
    width: 300px;
    height: 300px;
    top: -60px;
    right: -50px;
    background: #00C96B;
}

.p-nt-quests .blob2 {
    width: 180px;
    height: 180px;
    bottom: 40px;
    right: 60px;
    background: #6EE7B7;
    opacity: 0.1;
}

.p-nt-referral .blob1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -70px;
    background: #00C96B;
}

.p-nt-referral .blob2 {
    width: 200px;
    height: 200px;
    bottom: 30px;
    right: 70px;
    background: #6EE7B7;
    opacity: 0.1;
}

/* Corner arrow */
.p-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.pcard:hover .p-arrow {
    background: #fff;
    border-color: #fff;
    transform: rotate(45deg);
}

.pcard:hover .p-arrow svg path {
    stroke: #000;
}

/* ============================================
       ABOUT
    ============================================ */
#about {
    padding: 120px 44px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    margin-top: 80px;
}

.about-bio p {
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.62;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 24px;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

.about-bio strong {
    font-weight: 300;
    color: var(--fg);
}

.about-bio em {
    font-style: normal;
    color: var(--accent);
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.detail-h {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.exp-list {
    display: flex;
    flex-direction: column;
}

.exp-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.ei-l {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ei-co {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ei-role {
    font-size: 12px;
    color: var(--muted);
}

.ei-yr {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* .pdf-strip and .about-bio .cv-btn initial states set via gsap.set() — see initScroll() */

.awards-list {
    display: flex;
    flex-direction: column;
}

.award-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.aw-l {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aw-title {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.aw-title:hover {
    color: var(--accent);
}

.aw-issuer {
    font-size: 12px;
    color: var(--muted);
}

.aw-yr {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Skills row */
.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-pill {
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--muted);
}

/* ============================================
       CONTACT
    ============================================ */
#contact {
    padding: 120px 44px 80px;
}

.contact-headline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(52px, 6vw, 130px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.88;
    margin: 56px 0 72px;
    overflow: hidden;
}

.contact-headline .tl {
    overflow: hidden;
    display: block;
}

.contact-headline .tl span {
    display: block;
}

.contact-headline a {
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}

.contact-headline a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent);
    transition: width 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-headline a:hover {
    color: var(--accent);
}

.contact-headline a:hover::after {
    width: 100%;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 36px;
}

.cf-left {
    display: flex;
    flex-direction: column;
}

.cf-email-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cf-left p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 2px;
    cursor: auto;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.cf-email-row:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    color: var(--fg);
}

.copy-btn.copied {
    color: #00C96B;
    opacity: 1;
}

.cf-right {
    display: flex;
    gap: 24px;
}

.cf-right a {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s;
}

.cf-right a:hover {
    color: var(--fg);
}

.copy {
    font-size: 11px;
    color: var(--muted);
    margin-top: 32px;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* ============================================
       UTILITIES
    ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
       RESPONSIVE
    ============================================ */
@media (max-width: 900px) {
    nav {
        padding: 18px 24px;
    }

    nav.scrolled {
        top: 12px;
        left: 16px;
        right: 16px;
        padding: 12px 20px;
    }

    #hero {
        padding: 0 24px max(40px, calc(40px + env(safe-area-inset-bottom)));
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-right {
        align-items: flex-start;
    }

    .scroll-hint {
        top: auto;
        bottom: 56px;
    }

    #work,
    #about,
    #contact {
        padding: 80px 24px;
    }

    .s-header {
        margin-bottom: 40px;
    }

    .pcard-inner {
        grid-template-columns: 1fr;
    }

    .pcard-vis {
        height: 220px;
        order: -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-top: 48px;
    }

    .contact-footer {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 12vw;
        hyphens: manual;
        overflow-wrap: break-word;
    }

    .s-title {
        font-size: 14vw;
    }

    .pname {
        font-size: 7vw;
    }

    .pcard-info {
        padding: 28px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    .sh-line::after {
        animation: none;
    }

    .pill-dot,
    .wip-badge-dot {
        animation: none;
    }
}