:root {
    --bg: #0f0f0f;
    --surface: rgba(26, 26, 26, 0.72);
    --surface-strong: rgba(26, 26, 26, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.03);
    --text: #f5f5f5;
    --muted: #b9b9b9;
    --primary: #c8a96a;
    --primary-dark: #b99655;
    --gold-1: #9d8452;
    --gold-2: #c8a96a;
    --gold-3: #d4b896;
    --gold-4: #e8d4b8;
    --border: rgba(200, 169, 106, 0.16);
    --border-strong: rgba(200, 169, 106, 0.3);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.42);
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --container: 1120px;
    --header-height: 80px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 220ms var(--ease-out);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    min-height: 100vh;
    padding-top: var(--header-height);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(200, 169, 106, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(200, 169, 106, 0.1), transparent 28%),
        var(--bg);
    overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #111;
    font-weight: 700;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    min-height: var(--header-height);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(200, 169, 106, 0.08);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.logo-link {
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 2px solid var(--primary);
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.9);
    box-shadow: 0 8px 24px rgba(200, 169, 106, 0.22);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.logo-link:hover .brand-mark,
.logo-link:focus-visible .brand-mark {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 12px 28px rgba(200, 169, 106, 0.32);
    border-color: var(--gold-3);
}

.brand-mark img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    filter: brightness(1.05);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary);
    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.hamburger:hover,
.hamburger:focus-visible {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.hamburger:active {
    transform: scale(0.98);
}

.hamburger-box {
    position: relative;
    width: 1.25rem;
    height: 1rem;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
        transform var(--transition),
        opacity var(--transition),
        top var(--transition);
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: calc(50% - 1px);
}

.hamburger-line:nth-child(3) {
    top: calc(100% - 2px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
}

/* ===== NAV MENU ===== */
.nav-menu {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition);
}

.site-header.menu-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-menu a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    color: #d6d6d6;
    font-size: 0.95rem;
    font-weight: 600;
    transition:
        color var(--transition),
        background var(--transition);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
    position: relative;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
    width: min(60%, 720px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 106, 0.85), transparent);
    opacity: 0.65;
}

/* ===== HERO ===== */
.hero {
    padding-top: 1.5rem;
}

.hero-grid {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile-photo {
    width: 8rem;
    height: 8rem;
    min-width: 8rem;
    min-height: 8rem;
    max-width: 8rem;
    max-height: 8rem;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border: 2px solid var(--primary);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    object-position: center;
    display: block;
    overflow: hidden;
}

.hero-copy {
    max-width: 42rem;
    margin-inline: auto;
}

.eyebrow,
.section-kicker {
    margin: 0 0 0.9rem;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
}

h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg,
            var(--gold-1) 0%,
            var(--gold-2) 30%,
            var(--gold-3) 60%,
            var(--gold-4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: clamp(2.25rem, 7vw, 4.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.hero-text,
.hero-subtext,
.hero-emphasis,
.section-copy,
.section-lead,
.section-heading,
.contact-copy,
.contact-list,
.footer-inner {
    max-width: 70ch;
}

.hero-text {
    margin: 0 auto 1rem;
    color: #d4d4d4;
    font-size: 1.05rem;
}

.hero-subtext,
.section-copy,
.contact-copy {
    color: var(--muted);
}

.hero-subtext,
.section-copy {
    margin: 0 auto 1rem;
}

.section-copy-last {
    margin-bottom: 0;
}

.hero-emphasis,
.section-lead {
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* ===== SECTION SHELLS ===== */
.section-shell,
.contact-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.info-grid {
    display: grid;
    gap: 0.85rem;
    margin: 2rem 0;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.info-grid li {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
}

.info-grid-neutral li {
    color: var(--text);
    font-weight: 500;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(200, 169, 106, 0.12);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition:
        transform 180ms var(--ease-out),
        border-color 180ms var(--ease-out),
        box-shadow 180ms var(--ease-out),
        background 180ms var(--ease-out);
}

.card p {
    margin: 0;
    color: #d0d0d0;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-4px);
        border-color: var(--border-strong);
        box-shadow: var(--shadow-md);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    }
}

.card:focus-within {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

/* ===== EXPERIENCE LOGO MARQUEE ===== */
.logo-marquee {
    overflow: hidden;
    width: 100%;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    width: max-content;
    animation: logo-scroll 26s linear infinite;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
    animation-play-state: paused;
}

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    transition: color var(--transition), text-shadow var(--transition);
}

.logo-item:hover {
    color: var(--primary);
    text-shadow: 0 0 18px rgba(200, 169, 106, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .logo-item[aria-hidden="true"] {
        display: none;
    }
}

@media (min-width: 900px) {
    .logo-marquee {
        margin: 2.5rem 0;
        padding: 1.5rem 0;
    }
}

/* ===== BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    color: #0b0b0b;
    background: linear-gradient(90deg,
            var(--gold-1) 0%,
            var(--gold-2) 30%,
            var(--gold-3) 60%,
            var(--gold-4) 100%);
    box-shadow: 0 14px 30px rgba(200, 169, 106, 0.28);
}

.button-secondary {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    background: transparent;
}

/* ===== CONTACT ===== */
.contact-card {
    display: grid;
    gap: 1.5rem;
}

.contact-actions {
    display: grid;
    gap: 1rem;
}

.contact-list {
    display: grid;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--muted);
}

.contact-list a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    gap: 1rem;
    color: #8a8a8a;
    font-size: 0.95rem;
}

.footer-linkedin {
    width: fit-content;
}

.linkedin-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--primary);
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
    opacity: 1;
    transform: none;
}

@supports (animation-timeline: view()) {
    @keyframes reveal-up {
        from {
            opacity: 0;
            transform: translateY(24px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .reveal {
        animation: reveal-up linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ===== RESPONSIVE — MIN-WIDTH ONLY ===== */
@media (min-width: 700px) {
    .section {
        padding: 5rem 0;
    }

    .section-heading {
        margin-inline: auto;
    }

    .section-shell,
    .contact-card {
        padding: 2rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
        margin-inline: auto;
        padding-inline: 3rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .profile-photo {
        width: clamp(7.5rem, 20vw, 10rem);
    }
}

@media (min-width: 900px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        height: stretch;
    }

    .nav-menu a {
        padding: 0;
        background: transparent;
        display: flex;
        align-items: center;
        padding-inline: 0.5rem;
        height: 100%;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: minmax(180px, 25rem) minmax(0, 1fr);
        text-align: left;
        gap: 2.5rem;
    }

    .hero-copy {
        margin-inline: 0;
    }

    .hero-text,
    .hero-subtext,
    .hero-emphasis {
        margin-inline: 0;
    }

    .hero-media {
        justify-content: center;
        align-items: flex-start;
        height: 100%;
    }

    .profile-photo {
        width: clamp(7.5rem, 25vw, 30rem);
        max-width: 20rem;
        max-height: 20rem;
        height: auto;
    }

    .contact-card {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
        gap: 2rem;
    }
}

@media (min-width: 1080px) {
    .section {
        padding: 6rem 0;
    }

    .section.hero {
        padding: 2.5rem 0;
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-inner {
        gap: 2rem;
    }

    .contact-actions {
        height: 100%;
        align-content: center;
    }
}