:root {
    --white:        #FFFFFF;
    --bg:           #F7F6F3;          /* warm off-white page */
    --bg-card:      #FFFFFF;
    --bg-alt:       #F0EEE9;          /* section alternation */

    --navy:         #12274F;          /* primary brand / headings */
    --navy-mid:     #1E3A6E;
    --navy-light:   #2D5299;

    --gold:         #B8892A;          /* accent — accessible on white */
    --gold-light:   #F5E9CF;          /* accent tint backgrounds */
    --gold-border:  #D4A84B;

    --text-primary:   #181A20;
    --text-secondary: #4A4E5A;
    --text-muted:     #7A7D8A;

    --border:         #E2DED6;
    --border-dark:    #C8C3B8;

    --green:    #2D6A4F;
    --green-bg: #D8F3DC;

    /* Typography */
    --font-serif:  'DM Serif Display', Georgia, serif;
    --font-sans:   'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-v: 96px;

    /* Radii */
    --r-sm:  6px;
    --r-md:  12px;
    --r-lg:  20px;
    --r-xl:  28px;

    /* Shadow */
    --shadow-sm:   0 1px 4px rgba(18,39,79,.07), 0 2px 8px rgba(18,39,79,.05);
    --shadow-md:   0 4px 16px rgba(18,39,79,.09), 0 1px 4px rgba(18,39,79,.06);
    --shadow-lg:   0 12px 40px rgba(18,39,79,.12), 0 2px 8px rgba(18,39,79,.06);
}

/* --- 2. Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- 3. Container --- */
.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    height: 66px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: rgba(247,246,243,0.0);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
#navbar.scrolled {
    background: rgba(247,246,243,0.96);
    backdrop-filter: blur(12px);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--navy);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.logo-dot { color: var(--gold); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--r-sm);
    transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--navy);
    background: var(--gold-light);
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    padding: 7px 18px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--navy); color: var(--white); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--r-sm);
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: var(--r-sm);
    border: 2px solid var(--navy);
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--navy);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: var(--r-sm);
    border: 2px solid var(--navy);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn-ghost:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
    white-space: nowrap;
}
.btn-primary-sm:hover { background: var(--navy-mid); transform: translateY(-1px); color: var(--white); }

.btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 15px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border-dark);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}
.btn-ghost-sm:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--gold-light);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    padding-top: 66px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

/* subtle dot grid */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #C8C3B8 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.45;
    pointer-events: none;
}

/* gold accent bar top-left */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

.hero-container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 18px;
}
.hero-name em {
    font-style: italic;
    color: var(--gold);
}

.hero-title {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 22px;
}
.title-sep { margin: 0 8px; color: var(--border-dark); }

.hero-tagline {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.78;
    max-width: 430px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-socials a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border-dark);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: border-color .2s, color .2s, background .2s;
}
.hero-socials a:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--gold-light);
}

/* Hero image */
.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-image-frame {
    width: 360px;
    height: 440px;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s ease;
}
.hero-image-frame:hover .hero-photo { transform: scale(1.04); }

.hero-badge {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow-md);
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.stat-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow-md);
}
.stat-num {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: var(--navy);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}
.stat-card-1 { top: 36px; left: -44px; }
.stat-card-2 { bottom: 80px; right: -40px; }

/* =========================================================
   SHARED SECTION STYLES
   ========================================================= */
.section { padding: var(--section-v) 0; }
.section-alt { background: var(--bg-alt); }
.section-white { background: var(--white); }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 16px;
}
.section-heading em { font-style: italic; color: var(--gold); }

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 56px;
    line-height: 1.75;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 72px;
    align-items: start;
}
.about-text p {
    color: var(--text-secondary);
    line-height: 1.82;
    margin-bottom: 16px;
    font-size: 1.03rem;
}
.about-highlights {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.hi-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.highlight-item strong {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
    font-size: 0.93rem;
}
.highlight-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* About Card */
.about-card {
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
}
.about-img { height: 300px; overflow: hidden; }
.about-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s ease;
}
.about-img:hover img { transform: scale(1.04); }
.about-meta {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}
.meta-k { color: var(--text-muted); font-weight: 500; }
.meta-v { color: var(--text-secondary); font-weight: 500; }
.meta-avail {
    display: flex; align-items: center; gap: 8px;
    color: var(--green);
    font-weight: 600;
}
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
}
.about-cv { margin-top: 6px; width: 100%; justify-content: center; }

/* =========================================================
   SKILLS
   ========================================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.skill-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 26px;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.skill-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.skill-card-wide { grid-column: 1 / -1; }

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.sk-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--gold);
    flex-shrink: 0;
}
.skill-card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 100px;
    transition: color .2s, border-color .2s, background .2s;
}
.tag:hover {
    color: var(--navy);
    border-color: var(--navy);
    background: var(--gold-light);
}
.tag-accent {
    color: var(--gold);
    background: var(--gold-light);
    border-color: var(--gold-border);
    font-weight: 600;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.project-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 380px;
}
.project-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, box-shadow .25s, transform .3s ease;
}
.project-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.project-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.project-featured .project-img-wrap {
    height: 100%;
}
.project-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.05); }

.project-content {
    padding: 26px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}
.p-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-light);
    background: #EBF0FA;
    border: 1px solid #C5D2EE;
    padding: 3px 10px;
    border-radius: 100px;
}
.project-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 10px;
}
.project-content p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.72;
    flex: 1;
    margin-bottom: 20px;
}
.project-content p strong { color: var(--gold); font-weight: 700; }

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}
.project-stack span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: var(--r-sm);
    letter-spacing: 0.02em;
}
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.contact-info > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
}
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-link:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}
.cl-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: var(--gold);
    flex-shrink: 0;
}
.contact-link strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1px;
}
.contact-link span { font-size: 0.78rem; color: var(--text-muted); }

/* Form */
.contact-form {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 38px;
    box-shadow: var(--shadow-sm);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.contact-form label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 13px 15px;
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(18,39,79,.09);
}
.form-submit {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 15px;
    margin-top: 4px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 36px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--white);
}
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,.55); }
.footer-socials { display: flex; align-items: center; gap: 14px; }
.footer-socials a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: rgba(255,255,255,.6);
    font-size: 0.85rem;
    transition: color .2s, border-color .2s;
}
.footer-socials a:hover { color: var(--white); border-color: var(--white); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--navy);
    border: 1px solid transparent;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    z-index: 8000;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.back-to-top:hover { background: var(--navy-mid); color: var(--white); }

/* =========================================================
   SCROLL REVEAL — default VISIBLE (opacity: 1)
   Only animate when JS adds .will-animate
   ========================================================= */
.reveal { transition: opacity .55s ease, transform .55s ease; }
.reveal.hidden { opacity: 0; transform: translateY(24px); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 52px;
        padding: 72px 20px 60px;
        text-align: center;
    }
    .hero-tagline { margin: 0 auto 36px; }
    .hero-actions, .hero-socials { justify-content: center; }
    .hero-image-wrap { justify-content: center; }
    .stat-card-1 { left: 0; }
    .stat-card-2 { right: 0; }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-card { max-width: 480px; margin: 0 auto; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .skill-card-wide { grid-column: 1 / -1; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-featured { grid-template-columns: 1fr; display: flex; flex-direction: column; min-height: auto; }
    .project-featured .project-img-wrap { height: 220px; }

    .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 768px) {
    :root { --section-v: 72px; }

    .nav-links {
        display: none;
        position: fixed;
        top: 66px; left: 0; right: 0;
        background: rgba(247,246,243,.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-link { width: 100%; padding: 13px 16px; font-size: 1rem; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }

    .hero-image-frame { width: 280px; height: 340px; }
    .stat-card-1, .stat-card-2 { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 20px; }

    .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
    .back-to-top { bottom: 18px; right: 18px; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2.6rem; }
    .hero-image-frame { width: 240px; height: 290px; }
    .project-content { padding: 20px 18px 22px; }
    .skills-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible {
    outline: 2.5px solid var(--gold);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal.hidden { opacity: 1 !important; transform: none !important; }
}
