/* =============================================================================
   GLOBAL.CSS — Safin Hasan Portfolio v2
   Single source of truth for all tokens, resets, and shared components.
   No page-specific rules live here.
   =============================================================================

   TABLE OF CONTENTS
    1. Tokens (:root)
    2. Reset
    3. Typography
    4. Layout primitives
    5. Navigation
    6. Buttons
    7. Hero
    8. Work Panels
    9. About
   10. Contact Form
   11. Footer
   12. About Page (about-v2.html — sticky portrait + scrolling bio/resume)
   13. Resume Card (rv-card — reusable)
   ============================================================================= */


/* =============================================================================
   1. TOKENS
   ============================================================================= */

:root {
    /* Colors */
    --bg:      #0a0a0a;
    --fg:      #e8e4df;
    --fg-dim:  #95918b;
    --accent:  #d4c5a9;

    /* Fonts */
    --display: 'Instrument Serif', serif;   /* H1, hero headlines */
    --mono:    'Space Mono', monospace;     /* nav, labels, buttons, meta */
    --sans:    'Instrument Sans', sans-serif; /* body text */
    --serif:   'EB Garamond', serif;        /* secondary serif — subheadings, pull quotes */

    /* Borders */
    --border: 1px solid rgba(255, 255, 255, 0.08);

    /* Radius */
    --radius: 4px;

    /* Spacing / gutter */
    --gutter:       2.5rem;   /* 40px — progressive, see breakpoints */
    --panel-gutter: 2.5rem;   /* fixed, never changes */

    /* Work panel */
    --panel-label-size: 80px;
}

@media (min-width: 1800px) {
    :root {
        --gutter: 7.5rem; /* 120px — nav, hero, about, footer only */
    }
}


/* =============================================================================
   2. RESET
   ============================================================================= */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    line-height: 1.7;
}

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

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}


/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

/* Minimum font size across the entire site: 14px (0.875rem). Nothing goes smaller. */

h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(3.5rem, 7.5vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--accent);
}

/* h1 display variant — floor raised to 5rem, never scales below 80px.
   Use for large name / title displays (about page, hero variants).
   Apply alongside h1: <h1 class="h1-display"> */
.h1-display {
    font-size: clamp(5rem, 7.5vw, 6.5rem);
}

h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg);
}

h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--fg);
}

h4 {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-dim);
}


/* =============================================================================
   4. LAYOUT PRIMITIVES
   ============================================================================= */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}


/* =============================================================================
   5. NAVIGATION
   ============================================================================= */

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--gutter);
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: var(--border);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-name {
    font-family: 'Syne Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.nav-links a:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.08);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--fg);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    transform-origin: center;
}
nav.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
    nav { padding: 1rem 1.25rem; }

    .nav-hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.25rem 1rem;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: var(--border);
    }
    nav.menu-open .nav-links { display: flex; }
    .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 0.85rem 0.25rem;
        border-radius: 0;
        border: none;
        background: none !important;
    }
    .nav-links a.active { color: var(--accent); }
}


/* =============================================================================
   6. BUTTONS
   ============================================================================= */

/* .btn — accent-bordered, used on solid dark backgrounds (about, form submit) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--mono);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid rgba(212, 197, 169, 0.3);
    border-radius: var(--radius);
    padding: 0.85rem 1.75rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s,
                color 0.3s;
}
.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}
.btn:active {
    background: rgba(212, 197, 169, 0.85);
    border-color: var(--accent);
    color: var(--bg);
}


/* =============================================================================
   7. HERO
   ============================================================================= */

.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--gutter);
    position: relative;
    overflow: clip; /* clip instead of hidden — hidden breaks backdrop-filter in Safari */
}

/* ── Slideshow ── */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #111;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.55) saturate(0.65);
}
.hero-slide.active { opacity: 1; }

/* ── Overlay + grain ── */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.72) 28%, rgba(10,10,10,0.06) 55%, rgba(10,10,10,0.28) 100%),
        linear-gradient(135deg, rgba(10,10,10,0.38) 0%, transparent 60%);
}
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

/* ── Headline ── */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    line-height: 1.0;
    letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--accent); }

/* ── Subtitle row: text left | buttons right ── */
.hero-subtitle-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    margin-top: 1.2rem;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--fg);
    max-width: 600px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
    padding-left: 2rem;
    align-self: flex-start;
    padding-top: 0.1rem;
}

.hero-action-btn {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 0.7rem 1.4rem;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s,
                box-shadow 0.3s,
                color 0.3s;
}
.hero-action-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
    color: var(--bg);
}
.hero-action-btn:active {
    background: rgba(212, 197, 169, 0.85);
    border-color: var(--accent);
    box-shadow: none;
    color: var(--bg);
}

/* ── Scroll indicator ── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.45;
    transition: opacity 0.3s;
}
.hero-scroll-indicator:hover { opacity: 0.75; }

.hero-scroll-indicator svg {
    display: block;
    width: 20px;
    height: auto;
    fill: var(--fg);
    animation: scroll-hint 2.4s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%   { transform: translateY(0);   opacity: 1; }
    45%  { transform: translateY(7px); opacity: 0; }
    46%  { transform: translateY(0);   opacity: 0; }
    70%  { opacity: 1; }
    100% { transform: translateY(0);   opacity: 1; }
}

/* ── Load animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-content      { animation: fadeUp 0.9s ease-out 0.1s both; }
.hero-subtitle-row { animation: fadeUp 0.9s ease-out 0.25s both; }

/* ── Hero responsive ── */
@media (min-width: 1800px) {
    .hero { padding-bottom: 4rem; }
}

@media (max-width: 768px) {
    .hero { padding: 1.5rem; }
    .hero-subtitle-row { flex-direction: column; gap: 1rem; margin-bottom: 0; }
    .hero-actions { padding-left: 0; padding-top: 1rem; }
    .hero-action-btn { background: rgba(255, 255, 255, 0.05); }
    .hero-scroll-indicator { display: none; }
}


/* =============================================================================
   8. WORK PANELS
   ============================================================================= */

.work-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2.5rem var(--gutter);
    border-top: var(--border);
}

.work-panel {
    position: relative;
    aspect-ratio: 5 / 3;
    width: 100%;
    overflow: hidden;
    display: block;
    cursor: pointer;
    border-radius: var(--radius);
    border: 1px solid var(--fg-dim);
}

@media (min-width: 1200px) {
    .work-panel { max-height: 60dvh; }
}

.work-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.52) saturate(0.65);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
}

.work-panel:hover .work-panel-bg {
    filter: brightness(0.62) saturate(0.8);
}

.work-panel-content {
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    left:   3rem;
    right:  3rem;
    bottom: 3rem;
}

@media (min-width: 1800px) {
    .work-panel-content {
        left:   4rem;
        right:  4rem;
        bottom: 4rem;
    }
}

.work-panel-label {
    font-family: var(--display);
    font-size: var(--panel-label-size);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--fg);
    transition: color 0.35s;
}

.work-panel:hover .work-panel-label { color: var(--accent); }

.work-panel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width:  calc(var(--panel-label-size) * 0.8);
    height: calc(var(--panel-label-size) * 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: var(--fg);
    font-size: calc(var(--panel-label-size) * 0.3);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s,
                box-shadow 0.3s,
                color 0.3s;
}

.work-panel:hover .work-panel-cta {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
    color: var(--bg);
}

@media (max-width: 650px) {
    :root { --panel-label-size: 60px; }
    .work-section { padding: 2.5rem 1.25rem; }
    .work-panel {
        aspect-ratio: auto;
        height: 50vh;
        max-height: none;
    }
    .work-panel-content {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 1.5rem;
    }
}


/* =============================================================================
   9. ABOUT
   ============================================================================= */

/* Reusable eyebrow label — mono, uppercase, dimmed */
.section-eyebrow {
    display: block;
    font-family: var(--mono);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 2rem;
}

.about-strip {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-top: var(--border);
    padding: 4rem var(--gutter);
    gap: 4rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .about-strip {
        grid-template-columns: 280px 1fr 1fr;
    }
    .about-contact {
        border-left: var(--border);
        padding-left: 4rem;
    }
}

.about-image {
    width: 280px;
    height: 370px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(40%);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem;
    height: 370px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 2.5rem;
    color: var(--fg);
}

.about-btns {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: auto;
}

@media (max-width: 768px) {
    .about-strip {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem;
        gap: 2rem;
    }
    .about-image {
        width: 100%;
        height: 280px;
    }
    .about-image img {
        object-position: center center;
    }
    .about-text {
        height: auto;
    }
}


/* =============================================================================
   10. CONTACT FORM
   ============================================================================= */

.about-contact {
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.9rem 0;
    outline: none;
    border-radius: 0;
    transition: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.25rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--fg-dim);
}

.contact-form textarea {
    resize: none;
    height: 96px;
    line-height: 1.7;
    margin-top: 0.25rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--accent);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-form button:focus-visible {
    outline: none;
}

.contact-form .btn {
    margin-top: 1.75rem;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .about-contact {
        padding-top: 2.5rem;
        border-top: var(--border);
        border-left: none;
        padding-left: 0;
    }
}


/* =============================================================================
   11. FOOTER
   ============================================================================= */

footer {
    background: #000;
    border-top: 1px solid var(--accent);
    padding: 3rem var(--gutter) 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 1.25rem;
}

.footer-col a,
.footer-col p {
    display: block;
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--fg);
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    grid-column: 1 / -1;
    border-top: var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

/* Only the © glyph switches to Instrument Sans — Space Mono renders it too small */
.footer-copyright-symbol {
    font-family: var(--sans);
    font-weight: 600;
}

@media (max-width: 768px) {
    footer {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem;
    }
}


/* =============================================================================
   12. ABOUT PAGE — STICKY PORTRAIT + SCROLLING BIO/RESUME (about-v2.html)
   Prefix: av3-
   Two-column grid: sticky left (portrait · name · role) | scrolling right
   (bio · embedded resume card). Page scroll drives everything; ghosts align
   the bio top with the portrait top. Progress bar fills as the container scrolls.
   ============================================================================= */

/* Outer container — gutter margins only, page scroll handles the rest */
.av3-container {
    margin: 4.25rem var(--gutter) 0;
}

/* Grid wrapper */
.av3-wrap {
    display: grid;
    grid-template-columns: min(30vw, 500px) 1fr;
    width: 100%;
    align-items: start;
}

/* Left ghost — flex: 1 fills all space above the portrait */
.av3-left-ghost {
    flex: 1;
    width: 100%;
}

/* Right ghost — height stamped by JS to match left ghost */
.av3-right-ghost {
    flex-shrink: 0;
    width: 100%;
}

/* ── Left column — sticky, full grid height ── */
.av3-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 2rem 2.5rem 0;
    overflow: hidden;
    position: sticky;
    top: 4.25rem;
    height: calc(100dvh - 4.25rem);
}

/* Portrait — width fixed per breakpoint, height follows 2:3 ratio */
.av3-portrait {
    width: 278px;           /* ≥1800px */
    height: auto;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    border: 1px solid var(--fg-dim);
    border-radius: var(--radius);
    overflow: hidden;
}

@media (max-width: 1799px) {
    .av3-portrait { width: 230px; }
}

@media (max-width: 1200px) {
    .av3-portrait { width: 200px; }
}

.av3-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Name — inherits h1 + .h1-display from global typography */
.av3-name {
    margin-top: 24px;
}

/* Role — Space Mono, dimmed */
.av3-role {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: var(--fg-dim);
    margin-top: 24px;
}

/* ── Right column — scrolling content ── */
.av3-right {
    display: flex;
    flex-direction: column;
}

/* Bio section */
.av3-bio {
    padding: 0 0 6rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Eyebrow + body share the same measure, centered together */
.av3-bio .section-eyebrow,
.av3-bio-body {
    max-width: 640px;
    width: 100%;
}

.av3-bio-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.av3-bio-body p {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--fg);
    margin: 0;
}

.av3-bio-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 197, 169, 0.3);
    transition: border-bottom-color 0.2s ease, color 0.2s ease;
}

.av3-bio-link:hover {
    color: var(--fg);
    border-bottom-color: rgba(232, 228, 223, 0.5);
}

/* Resume section — container for the embedded rv-card */
.av3-resume {
    padding: 6rem 0 2.5rem 0;
    container-type: inline-size;
    container-name: resume;
}

/* ── Progress bar — fixed bottom, fills as the container scrolls ── */
.av3-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 100;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* ── Mobile ≤800px — single column, full page scroll ── */
@media (max-width: 800px) {

    .av3-container {
        height: auto;
        overflow: visible;
    }

    .av3-wrap {
        grid-template-columns: 1fr;
        overflow: visible;
        padding-top: 2rem;
    }

    /* Left col: un-sticky, divider moves to bottom */
    .av3-left {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        overflow: visible;
        padding: 0 0 2.5rem 0;
    }

    /* Ghosts have no purpose stacked */
    .av3-left-ghost,
    .av3-right-ghost {
        display: none;
    }

    .av3-bio {
        padding: 2.5rem 0 3rem;
        align-items: flex-start;
    }

    .av3-bio .section-eyebrow,
    .av3-bio-body {
        max-width: none;
    }

    .av3-resume {
        padding: 3rem 0 5rem;
    }
}


/* =============================================================================
   13. RESUME CARD (rv-card — reusable)
   Black card with accent border. Header (name + PDF download) over a two-column
   body: left = bio · skills · contact | right = education · experience.
   Width logic is %-based so it responds to its container, not the viewport
   (driven by the @container query below — its parent sets container-type).
   ============================================================================= */

.rv-card {
    background: #000;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 0 2rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Header ── */
.rv-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--fg-dim);
}

.rv-header .section-eyebrow {
    margin-bottom: 1rem;
    display: block;
}

.rv-name {
    font-family: var(--display);
    font-size: 3.75rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.rv-subtitle {
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
    line-height: 1.6;
    margin: 0;
}

/* Download button — glass treatment matching .hero-action-btn */
.rv-download {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 0.5px solid var(--fg);
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-download:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.rv-download:active {
    background: rgba(212, 197, 169, 0.85);
}

/* ── Body — two columns ── */
.rv-body {
    display: flex;
    gap: 3.75rem;
    align-items: flex-start;
}

/* Left col — % width relative to rv-body, not vw */
.rv-left {
    width: clamp(220px, 35%, 320px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

.rv-bio-text {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.714;
    color: var(--fg-dim);
    margin: 0;
}

.rv-block-label {
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin: 0 0 2rem;
}

.rv-skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rv-skills-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--fg-dim);
    line-height: 1.4;
}

.rv-skills-list li::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--fg-dim);
    flex-shrink: 0;
}

.rv-contact-block {
    display: flex;
    flex-direction: column;
}

.rv-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rv-contact-item:hover { color: var(--accent); }

.rv-contact-arrow {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--fg-dim);
    transform: rotate(-45deg);
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rv-contact-item:hover .rv-contact-arrow {
    color: var(--accent);
    transform: rotate(-45deg) translate(1px, -1px);
}

/* ── Right col — education · experience ── */
.rv-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rv-section {
    display: flex;
    flex-direction: column;
    gap: 2.375rem;
    padding: 2.5rem 0;
}

.rv-section + .rv-section { padding-top: 0; }

.rv-section-header {
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

/* Education */
.rv-edu-entry {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.rv-edu-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.rv-edu-logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.rv-entry-name {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.714;
    color: var(--accent);
    margin: 0;
}

.rv-entry-year {
    font-weight: 400;
    color: var(--fg-dim);
}

.rv-edu-details {
    font-family: var(--sans);
    font-size: 0.875rem;
    line-height: 1.714;
    color: var(--fg-dim);
    margin: 0;
}

/* Experience */
.rv-exp-entries {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rv-exp-entry {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rv-exp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.625rem;
}

.rv-exp-company {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.714;
    color: var(--accent);
    margin: 0;
}

.rv-exp-role {
    font-family: var(--mono);
    font-size: 0.875rem;
    line-height: 1.714;
    color: var(--fg-dim);
    margin: 0;
}

.rv-exp-time { text-align: right; flex-shrink: 0; }

.rv-exp-date {
    font-family: var(--sans);
    font-size: 0.875rem;
    line-height: 1.714;
    color: var(--fg);
    margin: 0;
    white-space: nowrap;
}

.rv-exp-type {
    font-family: var(--sans);
    font-size: 0.875rem;
    line-height: 1.714;
    color: var(--fg-dim);
    margin: 0;
    white-space: nowrap;
}

.rv-exp-bullets {
    list-style: disc;
    padding-left: 1.3125rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.rv-exp-bullets li {
    font-family: var(--sans);
    font-size: 0.875rem;
    line-height: 1.714;
    color: var(--fg-dim);
}

.rv-exp-divider {
    border: none;
    border-top: var(--border);
    margin: 0;
}

/* ── Container query — single col when the resume container ≤ 768px ── */
@container resume (max-width: 768px) {
    .rv-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    .rv-name { font-size: 2.5rem; }
    .rv-download { align-self: flex-start; }
    .rv-body {
        flex-direction: column;
        gap: 0;
    }
    .rv-left {
        width: 100%;
        max-width: none;
        padding-bottom: 0;
        border-bottom: var(--border);
    }
    .rv-exp-header {
        flex-direction: column;
        gap: 0.25rem;
    }
    .rv-exp-time { text-align: left; }
    .rv-exp-date,
    .rv-exp-type { white-space: normal; }
}
