/* ==================================
   1. VARIABLES & BASE SETUP
================================== */

:root {
    --sienna: #C84B11;       
    --gold: #E8A838;         
    --avocado: #5A7A42;      
    --cream: #F2DDB4;        
    --espresso: #2C1810;     
    
    --border-heavy: 3px solid var(--espresso);
    --transition-smooth: 0.3s ease-in-out;
    --retro-tan: rgba(232, 168, 56, 0.2);
}

html {
    scroll-behavior: smooth;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;  
}

body {
    background: var(--cream);
    color: var(--espresso);
    font-family: 'Lora', serif;
    overflow-x: hidden;
    border: 12px solid var(--espresso);
}

h1, h2, h3, h4 {
    font-family: 'Abril Fatface', serif;
    font-style: normal;
    font-weight: 400;
}

section { 
    position: relative; 
    padding: 5rem 10%;
    scroll-margin-top: 50px; 
}

/* ==================================
   2. TYPOGRAPHY & UNIVERSAL CLASSES
================================== */

.section-header {
    max-width: 900px;
    margin-bottom: 4rem;
    max-width: 100%;
}

.section-header .label {
    display: block;
    margin-bottom: 1rem;
    color: var(--sienna);
}

.section-header h2 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.05;
    color: var(--espresso);
    max-width: 800px;
}

#community .section-header h2,
#experience .section-header h2,
#skills .section-header h2,
#education .section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important; 
    margin-bottom: 2rem !important;
}

#community .section-header .label,
#experience .section-header .label,
#skills .section-header .label,
#education .section-header .label {
    font-size: 0.85rem !important; 
    margin-bottom: 1rem !important;
}

.label {
    font-family: 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .85rem;
    font-style: normal;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================
   3. CUSTOM CURSOR & UI ELEMENTS
================================== */

.cursor-dot {
    width: 12px; height: 12px; background-color: var(--sienna);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%); pointer-events: none;
    z-index: 9999; transition: background-color 0.3s;
}

.cursor-outline {
    width: 30px; height: 30px; border: 2px solid var(--espresso);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%); pointer-events: none;
    z-index: 9998; transition: transform 0.15s ease-out, border-color 0.3s;
}

.corner-tick { 
    position: absolute; 
    width: 20px; 
    height: 20px; 
    border: 2px solid var(--espresso); 
}

.ct-tl { top: 2rem; left: 2rem; border-right: none; border-bottom: none; }
.ct-tr { top: 2rem; right: 2rem; border-left: none; border-bottom: none; }

/* ==================================
   4. HEADER & NAVIGATION
================================== */

header {
    position: fixed; top: 0; width: 100%; padding: 2rem 4rem;
    display: flex; justify-content: space-between; z-index: 100;
    color: var(--cream);
    pointer-events: none;
    
    transition: background-color 0.3s ease, padding 0.3s ease, border-bottom 0.3s ease;
}

header.scrolled {
    background-color: var(--espresso);
    mix-blend-mode: normal;
    padding: 1rem 4rem;
    border-bottom: 2px solid var(--gold);
}

header nav { display: flex; gap: 2rem; pointer-events: auto; }
header nav a { color: inherit; text-decoration: none; transition: color 0.3s; }
header nav a:hover { color: var(--gold); }

/* ==================================
   5. HERO SECTION
================================== */

#hero{
    position:relative;
    height:91vh;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    background:
        radial-gradient(circle at 50% 15%,
            #8f4421 0%,
            #5e2c1a 45%,
            var(--espresso) 100%);
}

/* ---------- Sun ---------- */
.hero-sun {
    position: absolute;
    width: 780px;
    height: 780px;
    border-radius: 50%;
    top: -280px;
    left: 50%;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(255,255,255,.12) 0px,
            rgba(255,255,255,.12) 2px,
            transparent 2px,
            transparent 26px
        ),
        #C96A2B;
    box-shadow: 0 0 120px rgba(201,106,43,.25);
    
    animation: 
        sunDrop 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        sunDescent 120s linear 2s forwards;
}

@keyframes sunDrop {
    0% {
        transform: translateX(-50%) translateY(-500px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes sunDescent {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(800px);
    }
}

/* ---------- Paper Grain ---------- */

.hero-grain{

    position:absolute;
    inset:0;
    pointer-events:none;
    opacity:.045;
    mix-blend-mode:soft-light;

    background-image:
        radial-gradient(circle at 25% 35%, rgba(255,255,255,.45) .7px, transparent .8px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.25) .6px, transparent .7px),
        radial-gradient(circle at 60% 10%, rgba(0,0,0,.25) .7px, transparent .8px);

    background-size:
        220px 220px,
        260px 260px,
        180px 180px;
    animation:grainShift .35s steps(3) infinite;
}

@keyframes grainShift{
    0%{transform:translate(0,0);}
    25%{transform:translate(-1px,1px);}
    50%{transform:translate(1px,-1px);}
    75%{transform:translate(-1px,-1px);}
    100%{transform:translate(0,0);}

}

/* ---------- Layout ---------- */
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- Rules ---------- */
.hero-rule {
    width: min(720px, 72vw); 
    height: 4px;
    border-radius: 20px;
    background: var(--cream);
    opacity: .95;
}

.hero-rule:first-child {
    margin-bottom: 2rem;
}

.hero-rule:last-of-type {
    margin-top: 2rem;
}

/* ---------- Title (Split-Flap Display) ---------- */
.split-flap-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.flap-word {
    display: flex;
    gap: 0.5rem;
}

.flap-char {
    width: clamp(3.5rem, 8vw, 6rem);
    height: clamp(5rem, 11vw, 8.5rem);
    background: var(--espresso);
    color: var(--cream);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-family: 'DM Mono', monospace;
    position: relative;
    box-shadow: 
        4px 4px 0 var(--sienna), 
        8px 8px 0 rgba(0,0,0,0.3);
    border: 2px solid var(--gold);
    overflow: hidden;
}

.flap-letter {
    position: relative;
    z-index: 0;
    line-height: 1;
    margin-top: 4px; 
}

/* Mobile Scaling */
@media (max-width: 768px) {
    .flap-word {
        gap: 0.3rem;
    }
    
    .flap-char {
        width: clamp(2.2rem, 10vw, 3.5rem);
        height: clamp(3.5rem, 14vw, 5rem);
        font-size: clamp(2rem, 9vw, 3rem);
        border-width: 1px;
        border-radius: 4px;
        box-shadow: 2px 2px 0 var(--sienna), 4px 4px 0 rgba(0,0,0,0.3);
    }
}

/* ---------- Subtitle ---------- */

.hero-subtitle{
    margin-top:2.25rem;
    color:var(--cream);
    text-transform:uppercase;
    letter-spacing:.28em;
    font-size:.95rem;
    opacity:.95;
}

/* ---------- Location ---------- */

.hero-location{
    margin-top:.9rem;
    color:rgba(242,221,180,.72);
    letter-spacing:.18em;
    text-transform:uppercase;
    font-size:1rem;
}

/* ---------- Responsive ---------- */

@media (max-width:768px){

    .hero-rule{
        width:82vw;
    }
    .hero-title{
        font-size:clamp(4rem,16vw,6rem);
    }
    .hero-subtitle{

        font-size:.72rem;
        letter-spacing:.18em;
        text-align:center;
        padding:0 1.5rem;
    }
    .hero-location{
        font-size:.65rem;
        letter-spacing:.12em;
    }
    .hero-sun{
        width:520px;
        height:520px;
        top:-170px;
    }
}

/* Marquee */
.marquee-wrapper {
    background: var(--gold); overflow: hidden; padding: 1.5rem 0;
    border-top: 3px solid var(--espresso); border-bottom: 3px solid var(--espresso);
}
.marquee {
    white-space: nowrap; animation: marquee 20s linear infinite;
    color: var(--espresso); font-weight: 500;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==================================
   6. ABOUT SECTION & STATS
================================== */

#about { max-width: 1200px; margin: 0 auto; }

#about .section-header {
    margin-bottom: 1.5rem;
}

#about h2 { 
    font-size: clamp(1.8rem, 4vw, 2.8rem); 
    color: var(--sienna); 
    margin-top: 0.5rem; 
    margin-bottom: 2rem; 
    line-height: 1.1; 
    max-width: 800px; 
}

.intro-text { 
    font-size: 1.05rem; 
    line-height: 1.6; 
    max-width: 650px;
    
}

.about-grid-wrapper {
    display: grid;
        grid-template-columns: 110px 1fr; 
        gap: 1.5rem;
        align-items: start; 
    }

.about-image-column {
    height: 100%;
    padding: 0.5rem 0; 
}

.analog-frame {
    height: 100%; 
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 10px; 
    background: var(--cream);
    border: 2px solid var(--espresso);
    box-shadow: 6px 6px 0px var(--sienna); 
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: none;
}

.analog-matte {
    flex-grow: 1; 
    border: 2px solid var(--espresso);
    overflow: hidden;
    background: var(--espresso);
    display: flex;
}

.analog-matte img {
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: cover; 
    filter: sepia(20%) contrast(110%); 
    transition: transform 0.6s ease, filter 0.4s ease;
}

.analog-frame:hover {
    transform: rotate(0deg) translateY(-4px); 
    box-shadow: 10px 10px 0px var(--gold); 
}

.analog-frame:hover .analog-matte img {
    transform: scale(1.05); 
    filter: sepia(0%) contrast(100%); 
}

/* Stats */
.stats-grid { 
    display: flex; 
    gap: 4rem; 
    margin-top: 3rem; 
    border-top: 2px solid var(--espresso); 
    padding-top: 2rem; 
}

.stat-item h3 { font-size: 4rem; color: var(--avocado); }
.stat-item span { font-family: 'Abril Fatface', serif; font-size: 4rem; color: var(--avocado); }

/* ==================================
   7. COMMUNITY
================================== */

#community {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 10%;
    background: rgba(90, 122, 66, 0.1);
    box-sizing: border-box;
    overflow: hidden; 
}

#community .section-header h2 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.impact-card {
    display: flex;
    background: var(--cream);
    border: 2px solid var(--espresso);
    margin-bottom: 3rem;
    box-shadow: 8px 8px 0 var(--retro-tan);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden; 
}

.impact-card:last-child {
    margin-bottom: 0;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 14px 14px 0 var(--gold);
}

.impact-accent {
    width: 16px; 
    flex-shrink: 0;
}

.impact-accent.green { background: var(--avocado); }
.impact-accent.orange { background: var(--sienna); }

.impact-main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap; 
    gap: 1.5rem;
    align-items: stretch;
}

.impact-info {
    flex: 1 1 55%; 
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.impact-info h3 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.impact-divider {
    height: 3px; 
    background: var(--espresso);
    margin: 1.5rem 0;
    width: 100%;
    max-width: 120px; 
}

.impact-copy {
    line-height: 1.7;
    font-size: 1.1rem;
}

.impact-metrics-scorecard {
    flex: 1 1 200px;
    max-width: 320px;
    background: var(--espresso); 
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 2px solid var(--espresso);
    box-shadow: 8px 8px 0px var(--sienna); 
    position: relative;
}

.impact-metrics-scorecard::before {
    content: '';
    position: absolute;
    top: -2px; 
    right: -2px;
    width: 20px; 
    height: 20px;
    background: var(--gold);
    border-left: 2px solid var(--espresso);
    border-bottom: 2px solid var(--espresso);
    z-index: 2;
}

.scorecard-readout {
    background: var(--cream);
    border: 2px solid var(--espresso);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 4px 4px 0px rgba(44, 24, 16, 0.08); 
    transition: transform 0.2s ease, background 0.3s ease;
}

.scorecard-readout:hover {
    background: #fff;
    transform: scale(1.02);
}

.scorecard-readout .metric-label {
    font-family: 'DM Mono', monospace;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--sienna);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.scorecard-readout .metric-number {
    font-family: 'Abril Fatface', serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--espresso);
    line-height: 1;
}

/* ==================================
   8. EXPERIENCE / ACCORDION
================================== */

.accordion-wrapper {
    border-bottom: var(--border-heavy);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.accordion-item {
    border-top: var(--border-heavy);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: transparent;
}

.accordion-header {
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    text-align: left;
    transition: var(--transition-smooth);
    color: var(--espresso);
}

.accordion-header:hover {
    background-color: var(--retro-tan);
    padding-left: 2rem;
    padding-right: 2rem;
}

.acc-year {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--sienna);
    font-family: 'DM Mono', monospace;
}

.acc-title {
    font-size: 2.5rem;
    font-family: 'Abril Fatface', serif;
}

.acc-company {
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    padding: 0 2rem;
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.accordion-item.active .accordion-content {
    max-height: 800px;
    opacity: 1;
    padding: 2rem;
    background-color: var(--espresso);
    color: var(--cream);
}

.accordion-item.active .accordion-header {
    background-color: var(--espresso);
    color: var(--gold);
}

.accordion-item.active .acc-year {
    color: var(--gold);
}

ul.bullet-list {
    list-style-type: none;
    margin-left: 0;
    font-family: sans-serif;
    font-style: normal;
}

ul.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

ul.bullet-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--sienna);
}

/* ==================================
   9. SKILLS SECTION
================================== */

#skills { background: var(--espresso); color: var(--cream); }
#skills h2 { color: var(--gold); font-size: 3.5rem; margin-top: 1rem; }
.skills-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.skill-row { margin-bottom: 1.5rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.skill-bar-bg { height: 12px; background: rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden;}
.skill-fill { width: 0; height: 100%; background: var(--avocado); transition: 1.5s ease-out; }
.skill-fill.alt { background: var(--sienna); }
.skill-fill.gold { background: var(--gold); }

.tags-section { margin-top: 4rem; }
.tags { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.tag { border: 1px solid var(--cream); padding: 0.5rem 1.2rem; border-radius: 30px; }

/* ==================================
   10. EDUCATION & TIMELINE
================================== */

.education-card {
    max-width: 800px;
    margin: 0 auto 6rem auto;
    padding: 4.5rem 3rem;
    border: 3px solid var(--sienna);
    background: var(--cream);
    box-shadow: 16px 16px 0 var(--gold);
    text-align: center;
    transition: transform 0.1s; 
    transform-style: preserve-3d;
}

.education-content {
    transform: translateZ(60px); 
}

.edu-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--sienna);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.edu-rule {
    height: 2px;
    width: 40px;
    background-color: var(--gold);
}

.edu-school {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    color: var(--espresso, #3A1C10);/
    line-height: 1.1;
    margin: 0;
    font-weight: 700;
}

.edu-degree {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--sienna);
    font-weight: 400;
    font-style: italic; 
    margin: 1rem 0 3rem 0;
}

.education-card .tags { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 0.75rem;
}

.education-card .tag { 
    border: 2px solid var(--sienna); 
    color: var(--sienna); 
    background: rgba(200, 75, 17, 0.04); 
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.career-timeline {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 3rem;
    position: relative;
    border-top: 3px solid var(--espresso);
}

.timeline-scale {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--espresso);
    font-family: 'DM Mono', monospace;
    font-size: .9rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: 280px 1fr 110px;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timeline-label { text-align: right; }
.timeline-label h4 { font-family: 'Abril Fatface', serif; font-size: 1.2rem; color: var(--sienna); margin-bottom: .25rem; line-height: 1.1; }
.timeline-label p { font-family: 'DM Mono', monospace; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; line-height: 1.1; }

.timeline-bar-container { position: relative; height: 22px; background: rgba(44,24,16,.08); border-radius: 20px; }
.timeline-bar { position: absolute; top: 0; height: 100%; border-radius: 20px; background: var(--sienna); transition: transform .3s ease; }
.timeline-bar.gold { background: var(--gold); }
.timeline-bar.long { background: var(--avocado); }
.timeline-bar:hover { transform: scaleY(1.2); }
.timeline-years { text-align: left; }

/* ==================================
   11. CONTACT & FOOTER
================================== */

#contact { 
    background: var(--sienna); 
    color: var(--cream); 
    padding: 5rem 10%;
}

.contact-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

/* Contact Typography */
#contact .section-header { margin-bottom: 1rem; }
#contact h2.contact-heading { 
    font-size: clamp(2rem, 5vw, 3.2rem); 
    color: var(--cream); 
    margin-top: 0.5rem;
}

.contact-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-form { 
    width: 100%; 
    text-align: left; 
}

.contact-form .row { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-form .col-6 { flex: 1 1 calc(50% - 0.5rem); }
.contact-form .col-12 { flex: 1 1 100%; }

.contact-form input, .contact-form textarea {
    width: 100%; 
    padding: 0.8rem 1rem; 
    border: 2px solid var(--espresso);
    background: var(--cream); 
    color: var(--espresso);
    font-family: 'DM Mono', monospace; 
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    box-shadow: 4px 4px 0px var(--espresso);
}

.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(44, 24, 16, 0.6); }
.contact-form textarea { resize: vertical; }

.contact-form input[type="submit"] {
    background: var(--gold); 
    border: 2px solid var(--espresso);
    font-family: 'Abril Fatface', serif; 
    font-size: 1.25rem; /* Scaled down button */
    padding: 0.8rem 2rem;
    transition: all 0.2s ease;
}

.contact-form input[type="submit"]:hover { 
    background: var(--avocado); 
    color: var(--cream); 
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--espresso);
}

/* Tidy Footer */
footer {
    background: var(--espresso); 
    color: var(--cream); 
    padding: 1.5rem 10%; 
    font-family: 'DM Mono', monospace; 
    font-size: 0.85rem;
    letter-spacing: 0.05em; 
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links { display: flex; gap: 1rem; align-items: center; }
.footer-links a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--sienna); }
.separator { color: var(--avocado); }

/* ==================================
   12. MEDIA QUERIES 
================================== */

@media (min-width: 768px) {
    .about-grid-wrapper {
        grid-template-columns: 280px 1fr; 
        gap: 4rem;   
    }
    #community .section-header h2 {
        white-space: nowrap;
    }
    
}

@media (max-width: 1024px) {
    section { padding: 5rem 7%; }
    .hero-title { font-size: clamp(4rem, 12vw, 8rem); }
    #contact h2, #skills h2, #education h2, #development h2 { font-size: 3rem; }
    .acc-title { font-size: 2rem; }
    .impact-metrics-scorecard {
        flex-direction: row;
        max-width: 100%;
        padding: 1rem;
        box-shadow: 6px 6px 0px var(--sienna); 
    }
    
    .scorecard-readout {
        flex: 1;
        padding: 1.25rem 0.5rem;
    }
}

@media (max-width: 768px) {
    body { border-width: 6px; }
    section { 
        padding: 4rem 5%; 
        scroll-margin-top: 150px;    
            }
    
    .hero-title { font-size: clamp(3.5rem, 12vw, 5rem); }
    .hero-subtitle { text-align: center; padding: 0 1rem; }
    
   header {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

#mainNav, header nav, header nav a {
        animation: none !important;
    }

   header nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    header .nav-name {
        color: #C96A2B;
        font-weight: bold;
        font-size: x-large;
    }

    header nav a {
        background: var(--cream);
        color: var(--espresso);
        border: 2px solid var(--espresso);
        padding: 0.5rem;
        text-align: center;
        font-weight: bold;
        box-shadow: 4px 4px 0 var(--sienna);
        font-size: 0.85rem; 
        transition: transform 0.1s, box-shadow 0.1s;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.1s, box-shadow 0.1s !important;
    }

    header nav a:active {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0 var(--sienna);
    }

    header nav a:not(:last-child)::after {
        margin-left: 0.75rem;
        color: var(--gold);
    }
    
    #about h2 { 
        font-size: 2.5rem;
        margin-bottom: 0; 
    }
    .intro-text { font-size: 1.1rem; }
    
    .about-grid-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-text-column {
        display: contents;
    }

    .about-text-column .section-header {
        grid-row: 2;
        grid-column: 1;
        margin-bottom: 0;
    }

    .about-image-column {
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        height: auto; 
        aspect-ratio: 1 / 1;
        padding: 0;
    }

    .about-text-column .intro-text {
        grid-row: 3;
        grid-column: 1;
        margin-top: 0;
    }

    .impact-card {
        flex-direction: column;
    }

    .impact-accent {
        width: 100%;
        height: 16px;
    }

    .impact-main {
        width: 100%;
        padding: 1.5rem 0 0 0;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        box-sizing: border-box;
    }

    .impact-info {
        width: 100%;
        min-width: 0; 
        padding: 0 1.5rem;
        box-sizing: border-box;
    }
    
    .impact-metrics-scorecard {
        flex-direction: row;
        max-width: 100%;
        margin-left: 0;
        padding: .5rem;
        box-shadow: 0px 0px 0px var(--sienna);
        border-width: 1px;
        border-left: none;
        border-right: none;
        box-sizing: border-box;
        margin-top: auto;
    }
    
    .impact-metrics-scorecard::before {
        display: none;
    }
    
    .scorecard-readout {
        flex: 1; 
        padding: 1rem 0.5rem;
        border-width: 1px;
    }

    .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .stat-item { text-align: center; }
    .stat-item h3, .stat-item span { font-size: clamp(2rem, 8vw, 3rem); }
    
    .skills-container { grid-template-columns: 1fr; }
    
    .acc-year, .acc-company { font-size: .85rem; }
    .acc-title { font-size: 1.8rem; line-height: 1.1; }
    
    .timeline-scale { display: none; }
    .timeline-row { grid-template-columns: 1fr; gap: .5rem; margin-bottom: 2rem; }
    .timeline-label, .timeline-years { text-align: left; }
    .timeline-bar-container { height: 18px; }
    
    .education-card { padding: 2rem; }
    .education-card h1 { font-size: 2.5rem; }
    .tilt-card { padding: 2rem; }
    .tilt-content h1 { font-size: 4rem; }
    
    .contact-form .col-6 { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    #contact h2, #skills h2, #education h2, #development h2 { font-size: 2rem; }
    .acc-title { font-size: 1.6rem; }
    .dev-card { height: auto; min-height: 220px; }
}

@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}