:root {
    --primary-navy: #163a63;
    --secondary-blue: #2b5c92;
    --premium-gold: #c9a227;
    --background: #fafaf8;
    --surface: #ffffff;
    --heading: #1f2937;
    --paragraph: #4b5563;
    --border: #e5e7eb;
    --muted: #f4f6f8;
    --shadow: 0 22px 60px rgba(22, 58, 99, 0.12);
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--paragraph);
    background: var(--background);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

body.is-loaded .hero-copy {
    animation: fadeUp 780ms ease both;
}

body.is-loaded .hero-visual {
    animation: fadeInScale 860ms ease 120ms both;
}

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

a {
    color: inherit;
}

.container,
.navbar,
.hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    scroll-margin-top: 88px;
}

.header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--border);
    box-shadow: 0 8px 28px rgba(22, 58, 99, 0.08);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 128px;
    text-decoration: none;
}

.brand-logo {
    width: 128px;
    height: 58px;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.65) contrast(0.9);
    transition: filter 220ms ease, mix-blend-mode 220ms ease, transform 220ms ease;
}

.brand:hover .brand-logo {
    transform: translateY(-1px);
}

.header.scrolled .brand-logo,
.nav-menu.open ~ .brand-logo {
    mix-blend-mode: normal;
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.header.scrolled .nav-link {
    color: var(--heading);
}

.nav-link::after {
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--premium-gold);
    content: "";
    transition: width 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--premium-gold);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    transition: transform 180ms ease, opacity 180ms ease;
}

.header.scrolled .nav-toggle {
    border-color: var(--border);
}

.header.scrolled .nav-toggle span {
    background: var(--primary-navy);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 100vh;
    padding: 128px 0 64px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(22, 58, 99, 0.96), rgba(22, 58, 99, 0.88)),
        radial-gradient(circle at 72% 38%, rgba(201, 162, 39, 0.22), transparent 34%),
        var(--primary-navy);
}

.hero-inner {
    min-height: calc(100vh - 192px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: 76px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--premium-gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--heading);
    font-family: var(--font-heading);
    line-height: 1.1;
}

.hero h1 {
    color: #fff;
    font-size: clamp(3.7rem, 7vw, 6.8rem);
    letter-spacing: 0;
}

.hero-role {
    margin: 16px 0 20px;
    color: var(--premium-gold);
    font-size: 1.45rem;
    font-weight: 600;
}

.hero-text {
    max-width: 690px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--primary-navy);
    background: var(--premium-gold);
    box-shadow: 0 12px 28px rgba(201, 162, 39, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px rgba(201, 162, 39, 0.32);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 640px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.highlights div {
    padding: 22px 22px 0 0;
}

.highlights dt {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.highlights dd {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.executive-frame {
    position: relative;
    width: min(420px, 100%);
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    padding: 34px;
    border: 1px solid rgba(201, 162, 39, 0.9);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 248, 0.98));
    box-shadow: var(--shadow);
}

.executive-frame::before {
    position: absolute;
    z-index: -1;
    inset: 32px -34px -34px 34px;
    background: #0f2b4a;
    content: "";
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 320ms ease;
}

.executive-frame:hover .hero-logo {
    transform: scale(1.025);
}

.floating-card {
    position: absolute;
    min-width: 178px;
    padding: 13px 16px;
    border: 1px solid rgba(201, 162, 39, 0.42);
    color: var(--heading);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 34px rgba(15, 43, 74, 0.14);
    font-size: 0.85rem;
    font-weight: 700;
    animation: softFloat 5.5s ease-in-out infinite;
}

.card-one {
    top: 48px;
    left: 0;
}

.card-two {
    right: -8px;
    top: 140px;
    animation-delay: 800ms;
}

.card-three {
    left: 18px;
    bottom: 122px;
    animation-delay: 1400ms;
}

.card-four {
    right: 12px;
    bottom: 52px;
    animation-delay: 2100ms;
}

.about,
.skills,
.education {
    padding: 104px 0;
}

.experience {
    padding: 104px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.42fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-kicker {
    color: var(--premium-gold);
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 1;
}

.about-content h2,
.section-heading h2,
.contact-panel h2 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.about-content p {
    max-width: 780px;
    margin-top: 18px;
    font-size: 1.03rem;
}

.gold-rule {
    width: 76px;
    height: 3px;
    margin: 26px 0;
    background: var(--premium-gold);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.skill-card,
.education-card {
    min-height: 104px;
    display: flex;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--premium-gold);
    color: var(--heading);
    background: #fff;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.skill-card:hover,
.education-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.44);
    box-shadow: 0 18px 40px rgba(22, 58, 99, 0.09);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 22px;
    width: 2px;
    background: var(--primary-navy);
    content: "";
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 28px;
    margin-bottom: 34px;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    margin: 12px 0 0 14px;
    border: 4px solid #fff;
    background: var(--premium-gold);
    box-shadow: 0 0 0 2px var(--premium-gold);
}

.timeline-card {
    padding: 34px;
    border: 1px solid var(--border);
    background: var(--background);
}

.duration {
    color: var(--premium-gold);
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-card h3 {
    margin: 4px 0 6px;
    font-size: 2rem;
}

.company {
    color: var(--primary-navy);
    font-weight: 800;
}

.timeline-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    margin-top: 22px;
    padding-left: 18px;
}

.timeline-card li::marker {
    color: var(--premium-gold);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.education-card {
    min-height: 170px;
    display: block;
}

.education-card span {
    color: var(--premium-gold);
    font-weight: 800;
}

.education-card h3 {
    margin: 18px 0 8px;
    font-size: 1.45rem;
}

.contact {
    padding: 104px 0;
    background: linear-gradient(135deg, var(--primary-navy), #0f2b4a);
}

.contact-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
    padding: 54px;
    color: #fff;
    border: 1px solid rgba(201, 162, 39, 0.28);
}

.contact-panel h2 {
    color: #fff;
}

.contact-intro {
    max-width: 490px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
}

.contact-grid {
    display: grid;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 39, 0.42);
    background: rgba(255, 255, 255, 0.1);
}

.contact-card span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    color: var(--primary-navy);
    background: var(--premium-gold);
    font-weight: 900;
}

.contact-card svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-card small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
}

.contact-card strong {
    overflow-wrap: anywhere;
}

.footer {
    padding: 42px 20px;
    color: var(--paragraph);
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-rule {
    width: 76px;
    height: 2px;
    margin: 0 auto 22px;
    background: var(--premium-gold);
}

.footer-logo-wrap {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid rgba(201, 162, 39, 0.24);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(22, 58, 99, 0.1);
    overflow: hidden;
}

.footer-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 50%;
}

.footer small {
    display: block;
    margin-top: 8px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 720ms ease, transform 720ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes softFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

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

@media (max-width: 1020px) {
    .hero-inner,
    .about-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        gap: 48px;
    }

    .hero-visual {
        min-height: 500px;
    }

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

    .education-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .header {
        background: rgba(255, 255, 255, 0.98);
        border-color: var(--border);
        box-shadow: 0 8px 28px rgba(22, 58, 99, 0.08);
        backdrop-filter: blur(12px);
    }

    .navbar {
        min-height: 72px;
    }

    .brand,
    .brand-logo {
        width: 108px;
    }

    .brand-logo {
        height: 50px;
        mix-blend-mode: normal;
        filter: none;
    }

    .nav-toggle {
        display: block;
        border-color: var(--border);
    }

    .nav-toggle span {
        background: var(--primary-navy);
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        right: 20px;
        left: 20px;
        display: grid;
        gap: 4px;
        padding: 16px;
        border: 1px solid var(--border);
        background: #fff;
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

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

    .nav-link {
        color: var(--heading);
        padding: 12px;
    }

    .hero {
        min-height: auto;
        padding: 104px 0 56px;
    }

    .hero-inner {
        min-height: auto;
        gap: 36px;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.35rem);
    }

    .hero-text {
        font-size: 1rem;
    }

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

    .highlights div {
        padding: 18px 12px 0 0;
    }

    .highlights dt {
        font-size: 1.72rem;
    }

    .highlights dd {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .hero-visual {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-bottom: 0;
    }

    .executive-frame {
        grid-column: 1 / -1;
        width: min(360px, 100%);
        margin: 0 auto 8px;
        padding: 24px;
    }

    .floating-card {
        position: static;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 11px 12px;
        text-align: center;
        animation: none;
    }

    .executive-frame::before {
        inset: 24px -20px -20px 20px;
    }

    .timeline-card ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container,
    .navbar,
    .hero-inner {
        width: min(100% - 28px, 1180px);
    }

    .section {
        scroll-margin-top: 76px;
    }

    .hero {
        padding: 94px 0 48px;
    }

    .eyebrow {
        margin-bottom: 10px;
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 15vw, 3.7rem);
    }

    .hero-role {
        margin: 10px 0 14px;
        font-size: 1.18rem;
    }

    .hero-text {
        line-height: 1.62;
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .hero-actions {
        gap: 10px;
        margin: 26px 0;
    }

    .btn {
        min-height: 46px;
    }

    .highlights div {
        padding: 14px 8px 0 0;
    }

    .highlights dt {
        font-size: 1.42rem;
    }

    .highlights dd {
        font-size: 0.74rem;
    }

    .executive-frame {
        width: min(300px, 100%);
        padding: 18px;
    }

    .executive-frame::before {
        inset: 18px -12px -12px 12px;
    }

    .floating-card {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about,
    .skills,
    .experience,
    .education,
    .contact {
        padding: 72px 0;
    }

    .timeline-item {
        grid-template-columns: 32px 1fr;
        gap: 14px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        margin-left: 7px;
    }

    .timeline-card,
    .contact-panel {
        padding: 24px;
    }

    .timeline-card h3 {
        font-size: 1.55rem;
    }

    .skill-card,
    .education-card {
        min-height: auto;
        padding: 20px;
    }

    .contact-panel {
        gap: 30px;
    }

    .contact-card {
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .contact-card span {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .footer {
        padding: 34px 20px;
    }

    .footer-logo-wrap {
        width: 84px;
        height: 84px;
        margin-bottom: 14px;
    }

    .footer-logo {
        width: 70px;
        height: 70px;
    }

    .footer p {
        max-width: 260px;
        margin: 0 auto;
        line-height: 1.55;
    }
}
