:root {
    --gold: #f6b21a;
    --gold-dark: #c98200;
    --charcoal: #2f3135;
    --ink: #222222;
    --muted: #686868;
    --paper: #f3f3f0;
    --line: #dfdfda;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(31, 31, 31, 0.14);
    --soft-shadow: 0 14px 34px rgba(47, 49, 53, 0.08);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(18px, 5vw, 72px);
    border-bottom: 1px solid rgba(47, 49, 53, 0.12);
    background: rgba(243, 243, 240, 0.9);
    backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; position: relative; z-index: 70; }
.brand-dot { width: 16px; height: 16px; border-radius: 999px; display: inline-block; }
.brand-dot-dark { background: var(--charcoal); }
.brand-dot-gold { margin-left: -8px; background: var(--gold); }
.brand-name { margin-left: 8px; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--charcoal);
    font-size: 0.92rem;
    font-weight: 800;
    transition: background 160ms ease, transform 160ms ease;
}
.site-nav a:hover { background: var(--white); transform: translateY(-1px); }
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(47, 49, 53, 0.14);
    border-radius: 999px;
    background: var(--white);
    cursor: pointer;
    position: relative;
    z-index: 70;
    box-shadow: 0 10px 24px rgba(47, 49, 53, 0.08);
}
.nav-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--charcoal);
    transition: transform 200ms ease, opacity 200ms ease;
}
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

main { overflow: hidden; }
.section-band, .skills, .cv-section, .section-grid { padding: clamp(56px, 8vw, 96px) clamp(18px, 6vw, 86px); }
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.78fr);
    align-items: center;
    min-height: calc(100svh - 76px);
    gap: clamp(28px, 6vw, 72px);
}
.hero::before {
    content: "01";
    position: absolute;
    left: -24px;
    bottom: -58px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(47, 49, 53, 0.08);
    font-family: "Archivo Black", Impact, sans-serif;
    font-size: clamp(9rem, 20vw, 18rem);
    line-height: 1;
    pointer-events: none;
}
.eyebrow { margin: 0 0 10px; color: var(--gold-dark); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--charcoal); font-family: "Archivo Black", Impact, sans-serif; letter-spacing: -0.055em; line-height: 0.94; }
h1 { max-width: 780px; margin-bottom: 20px; font-size: clamp(4.4rem, 13vw, 10rem); overflow-wrap: anywhere; }
h2 { margin-bottom: 20px; font-size: clamp(2.55rem, 6vw, 5.3rem); overflow-wrap: anywhere; }
h1 span, h2 span { color: var(--gold); }
.hero-lead { max-width: 640px; color: var(--charcoal); font-size: clamp(1rem, 2vw, 1.26rem); font-weight: 650; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 22px; }
.hero-meta a { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 14px; border: 1px solid rgba(47,49,53,.1); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--charcoal); font-size: .95rem; font-weight: 800; transition: transform 160ms ease, background 160ms ease; }
.hero-meta a:hover { background: var(--white); transform: translateY(-1px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.bubble-button, .ghost-button, .download-button, .submit-button, .project-link {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    font: inherit;
    font-weight: 900;
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.bubble-button { position: relative; isolation: isolate; overflow: hidden; background: var(--gold); color: var(--charcoal); box-shadow: 0 12px 0 rgba(47,49,53,.92), 0 28px 45px rgba(246,178,26,.26); }
.bubble-button::before, .bubble-button::after { content: ""; position: absolute; z-index: -1; border-radius: 999px; background: rgba(255,255,255,.42); animation: floatBubble 3.4s ease-in-out infinite; }
.bubble-button::before { width: 36px; height: 36px; left: 20px; top: -16px; }
.bubble-button::after { width: 22px; height: 22px; right: 22px; bottom: -8px; animation-delay: 650ms; }
.bubble-button:hover { transform: translateY(-4px); box-shadow: 0 16px 0 rgba(47,49,53,.94), 0 32px 54px rgba(246,178,26,.36); }
.bubble-icon { width: 18px; height: 18px; border-radius: 50%; background: var(--charcoal); box-shadow: 9px 0 0 rgba(47,49,53,.75), 4px 9px 0 rgba(47,49,53,.45); }
.ghost-button { border: 2px solid var(--charcoal); background: transparent; color: var(--charcoal); }
.ghost-button:hover { background: var(--charcoal); color: var(--white); }
.secondary-link { background: rgba(255,255,255,.68); }
.secondary-link { background: rgba(255,255,255,.68); }
.hero-visual { position: relative; min-height: 430px; }
.portrait-card { position: absolute; inset: 24px 0 0 auto; width: min(360px, 100%); min-height: 420px; border: 2px solid var(--charcoal); border-radius: 180px 180px 24px 24px; background: linear-gradient(90deg, transparent 0 30%, var(--gold) 30% 100%); box-shadow: var(--shadow); }
.portrait-ring { position: absolute; top: -20px; left: -36px; width: 240px; height: 240px; border: 3px solid var(--charcoal); border-radius: 50%; }
.portrait-photo { position: absolute; top: 78px; left: 50%; transform: translateX(-50%); width: 188px; height: 188px; border-radius: 50%; object-fit: cover; object-position: center top; border: 6px solid var(--white); box-shadow: 0 18px 36px rgba(47,49,53,.18); }
.portrait-label { position: absolute; left: 22px; right: 22px; bottom: 24px; border-radius: 16px; padding: 18px; background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(47,49,53,.14); }
.portrait-label span, .portrait-label strong { display: block; }
.portrait-label span { color: var(--muted); font-size: .9rem; font-weight: 800; }
.portrait-label strong { color: var(--charcoal); font-size: 1.15rem; }
.floating-tag { position: absolute; border-radius: 999px; padding: 10px 16px; background: var(--white); color: var(--charcoal); font-weight: 900; box-shadow: var(--shadow); animation: drift 5s ease-in-out infinite; }
.tag-one { top: 38px; right: 250px; }
.tag-two { right: 12px; top: 210px; animation-delay: 450ms; }
.tag-three { left: 20px; bottom: 70px; animation-delay: 900ms; }
.section-grid { display: grid; grid-template-columns: minmax(180px, .34fr) minmax(0, .66fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.content-panel { border-left: 10px solid var(--gold); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); background: var(--white); box-shadow: var(--shadow); }
.content-panel p:last-child { margin-bottom: 0; }
.split-section { display: grid; grid-template-columns: minmax(220px, .42fr) minmax(0, .58fr); gap: clamp(24px, 5vw, 64px); background: var(--charcoal); color: var(--white); }
.split-section h2, .split-section .eyebrow { color: var(--white); }
.split-section h2 span { color: var(--gold); }
.timeline { display: grid; gap: 14px; }
.timeline-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.timeline-item span { width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(246,178,26,.16); }
.timeline-item p { margin-bottom: 0; color: rgba(255,255,255,.9); font-weight: 700; }
.section-heading { max-width: 780px; margin-bottom: 34px; }
.section-heading.compact { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; }
.skill-grid, .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill-card, .project-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--soft-shadow); }
.skill-card { padding: 26px; }
.skill-card h3, .project-card h3 { color: var(--charcoal); font-size: 1.25rem; line-height: 1.25; }
.skill-tags, .project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span, .project-tags span { border-radius: 999px; padding: 8px 10px; background: var(--paper); color: var(--charcoal); font-size: .82rem; font-weight: 800; }
.projects { background: #e9e9e5; }
.project-card { position: relative; overflow: hidden; padding: 28px; min-height: 310px; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity 420ms ease var(--delay), transform 420ms ease var(--delay); }
.projects.is-visible .project-card { opacity: 1; transform: translateY(0) scale(1); }
.project-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--gold); }
.project-card:hover { transform: translateY(-6px); }
.project-number { color: rgba(47,49,53,.12); font-family: "Archivo Black", Impact, sans-serif; font-size: 5rem; line-height: .8; }
.project-type { color: var(--gold-dark); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.project-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 44px; width: fit-content; background: var(--charcoal); color: var(--white); font-size: .9rem; }
.project-link:hover { transform: translateY(-2px); background: #1f2023; }
.cv-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; background: var(--gold); }
.cv-section h2 { margin-bottom: 12px; }
.cv-section p:not(.eyebrow) { max-width: 690px; margin-bottom: 0; color: var(--charcoal); font-weight: 700; }
.download-button { min-width: 210px; min-height: 76px; background: var(--charcoal); color: var(--white); box-shadow: 0 14px 0 rgba(255,255,255,.45); }
.download-button strong { border-radius: 999px; padding: 5px 9px; background: var(--gold); color: var(--charcoal); font-size: .76rem; }
.download-button:hover { transform: translateY(-5px); box-shadow: 0 19px 0 rgba(255,255,255,.48); }
.contact-info-grid { display: grid; gap: 12px; margin-top: 22px; }
.contact-info-card { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--soft-shadow); }
.contact-info-card small { color: var(--muted); font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.contact-info-card strong { color: var(--charcoal); font-size: 1rem; line-height: 1.35; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; color: var(--charcoal); font-weight: 900; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; background: var(--white); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(246,178,26,.35); border-color: var(--gold-dark); }
.contact-form textarea { resize: vertical; }
.submit-button { justify-self: start; background: var(--charcoal); color: var(--white); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px clamp(18px, 6vw, 86px); border-top: 1px solid var(--line); color: var(--muted); }
.site-footer div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.site-footer strong, .site-footer a { color: var(--charcoal); font-weight: 900; }
.message-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.message-card { width: min(680px, 100%); border-radius: var(--radius); padding: clamp(28px, 5vw, 54px); background: var(--white); box-shadow: var(--shadow); }
.message-card h1 { margin-bottom: 16px; font-size: clamp(2.6rem, 8vw, 5.6rem); }

@keyframes floatBubble { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(10px) scale(1.14); } }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 1100px) {
    .skill-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .hero, .section-grid, .split-section, .cv-section { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 72px; }
    .hero-visual { min-height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
    .portrait-card { left: 50%; right: auto; transform: translateX(-50%); }
    .cv-section { text-align: left; }
    .download-button { justify-self: start; }
}

@media (max-width: 720px) {
    html { scroll-padding-top: 76px; }
    .site-header { min-height: 68px; padding: 12px 18px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        top: 76px;
        left: 14px;
        right: 14px;
        z-index: 60;
        display: grid;
        gap: 8px;
        border: 1px solid rgba(47,49,53,.12);
        border-radius: 24px;
        padding: 14px;
        background: rgba(255,255,255,.96);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(.98);
        pointer-events: none;
        transition: opacity 190ms ease, transform 190ms ease, visibility 190ms ease;
    }
    .site-nav::before {
        content: "Menu";
        color: var(--muted);
        font-size: .78rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
        padding: 5px 12px 2px;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
    .site-nav a { padding: 15px 16px; border-radius: 16px; background: var(--paper); font-size: 1rem; }
    .section-band, .skills, .cv-section, .section-grid { padding: 52px 18px; }
    .hero { padding-top: 48px; gap: 34px; }
    .hero::before { left: -10px; bottom: 360px; font-size: 8rem; }
    h1 { font-size: clamp(3.55rem, 19vw, 5.4rem); line-height: .92; letter-spacing: -0.065em; }
    h2 { font-size: clamp(2.25rem, 13vw, 3.65rem); letter-spacing: -0.06em; }
    .hero-lead { font-size: 1rem; }
    .hero-meta { flex-direction: column; align-items: stretch; }
    .hero-meta a { justify-content: center; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .bubble-button, .ghost-button, .download-button, .submit-button { width: 100%; min-height: 54px; }
    .bubble-button { box-shadow: 0 8px 0 rgba(47,49,53,.92), 0 20px 34px rgba(246,178,26,.22); }
    .hero-visual { min-height: 360px; max-width: 360px; }
    .portrait-card { width: min(300px, 92vw); min-height: 340px; border-radius: 150px 150px 22px 22px; }
    .portrait-ring { width: 170px; height: 170px; left: -18px; top: -8px; }
    .portrait-photo { top: 78px; width: 150px; height: 150px; }
    .portrait-label { left: 16px; right: 16px; bottom: 18px; padding: 15px; }
    .portrait-label strong { font-size: 1rem; }
    .floating-tag { display: none; }
    .content-panel { border-left-width: 0; border-top: 8px solid var(--gold); }
    .section-heading.compact { align-items: start; flex-direction: column; }
    .skill-grid, .project-grid { grid-template-columns: 1fr; gap: 14px; }
    .skill-card, .project-card { border-radius: 20px; }
    .skill-card, .project-card { padding: 22px; }
    .project-card { min-height: auto; }
    .project-number { font-size: 3.8rem; }
    .cv-section { text-align: center; }
    .download-button { justify-self: stretch; min-width: 0; }
    .submit-button { justify-self: stretch; }
    .site-footer { align-items: start; flex-direction: column; padding: 26px 18px; }
}

@media (max-width: 390px) {
    .brand-name { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .section-band, .skills, .cv-section, .section-grid { padding-left: 14px; padding-right: 14px; }
    h1 { font-size: 3.25rem; }
    .portrait-card { width: min(280px, 92vw); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
