/* ===== TANNER WAITE EXACT DESIGN SYSTEM ===== */

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

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

/* ===== CSS VARIABLES - EXACT TANNER VALUES ===== */
:root {
    --navy: #0b2740;        /* deep coastal navy */
    --red:  #b22222;        /* coastal red */
    --ink:  #0a0a0a;
    --paper:#f7f7f6;        /* warm off-white */
    
    /* Tanner Typography System */
    --font-display: "Pragmatica Extended", "Anton", Arial Black, Impact, sans-serif;
    --font-body: "Aktiv Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-serif: "Crimson Text", Georgia, serif;
    
    /* Spacing */
    --section-padding: 6rem 0;
    --mobile-padding: 3rem 1rem;
    
    /* Shadows */
    --shadow-light: 0 12px 40px rgba(0,0,0,.06);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE TYPOGRAPHY ===== */
body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

h1, h2 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: .9;
    font-weight: 700;
}

h1 {
    font-size: clamp(48px, 8vw, 112px);
    color: var(--navy);
}

h2 {
    font-size: clamp(32px, 5vw, 64px);
    color: var(--navy);
}

h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.small-serif, blockquote, .lede-serif {
    font-family: var(--font-serif);
    font-style: italic;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink);
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--red);
}

/* ===== NAVIGATION - STICKY LIKE TANNER ===== */
.nav { 
    position: sticky; 
    top: 0; 
    background: var(--paper); 
    border-bottom: 1px solid rgba(0,0,0,.06);
    z-index: 1000;
    padding: 0 2rem;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav a {
    font: 500 13px/1 var(--font-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 1.25rem .9rem;
    color: var(--navy);
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav a.active {
    position: relative;
}

.nav a.active::after {
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: .6rem;
    height: 2px; 
    background: var(--red);
    transition: var(--transition);
}

.nav a:hover::after {
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    bottom: .6rem;
    height: 2px; 
    background: var(--red);
    opacity: 0.7;
}

/* ===== HERO SECTION - EXACT TANNER STYLE ===== */
.hero {
    max-width: 880px;       /* narrower column = punchier */
    margin: 8rem auto 4rem;
    text-align: center;
    padding: 0 2rem;
}

.hero .kicker {
    font: italic 400 16px/1.2 var(--font-serif);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    display: inline-block;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 112px);
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.hero .sub {
    font: italic 400 20px/1.6 var(--font-serif);
    color: rgba(10,10,10,.65);
    margin-top: .75rem;
    margin-bottom: 3rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS - TANNER STYLE ===== */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    padding: .9rem 1.4rem;
    border: 1.5px solid var(--navy);
    border-radius: 8px;
    background: transparent;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.btn--primary { 
    border-color: var(--red); 
    color: var(--red);
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* ===== PORTRAIT IMAGE - TANNER STYLE ===== */
.portrait {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 24px;
    box-shadow: var(--shadow-light);
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    transition: var(--transition);
}

.portrait:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,.1);
}

/* ===== SECTIONS - TALL LIKE TANNER ===== */
.section {
    padding: var(--section-padding);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: .9;
    color: var(--navy);
    text-align: center;
    margin-bottom: 3rem;
}

.rule {
    width: 72px; 
    height: 2px; 
    background: var(--red);
    margin: 12px auto 24px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--ink);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
}

.highlight-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.5rem;
    line-height: .9;
    text-transform: uppercase;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.skill-category {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
    border-color: var(--red);
}

.skill-category h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--navy);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-tag {
    background-color: var(--navy);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 20px;
    transition: var(--transition);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.skill-tag:hover {
    background-color: var(--red);
    transform: scale(1.05);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
    border-color: var(--red);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--navy);
    font-style: italic;
}

.project-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background-color: rgba(11, 39, 64, 0.1);
    color: var(--navy);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.project-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid var(--red);
    display: inline-block;
    padding-bottom: 2px;
    color: var(--red);
    font-weight: 500;
}

.project-link:hover {
    background-color: var(--red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border-bottom: none;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-grid {
    display: grid;
    gap: 3rem;
    margin-top: 4rem;
}

.experience-item {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
    transition: var(--transition);
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
    border-color: var(--red);
}

.experience-item h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 400;
    color: var(--navy);
    font-style: italic;
}

.experience-date {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--red);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
}

.experience-item ul {
    list-style: none;
    padding: 0;
}

.experience-item li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 3rem;
    font-style: italic;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-button {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .9rem 1.4rem;
    border: 1.5px solid var(--red);
    border-radius: 8px;
    background: var(--red);
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.contact-button:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    transform: translateY(-1px);
}

/* ===== SITEMAP SECTION - LIKE TANNER ===== */
.sitemap {
    background: var(--paper);
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    border-top: 1px solid rgba(0,0,0,.06);
}

.sitemap h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--navy);
}

.sitemap ul {
    list-style: none;
    padding: 0;
}

.sitemap li {
    margin-bottom: 0.8rem;
}

.sitemap a {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    transition: var(--transition);
}

.sitemap a:hover {
    color: var(--red);
}

/* ===== FOOTER ===== */
footer {
    background: var(--navy);
    padding: 3rem 2rem 2rem;
    text-align: center;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 0.8rem 1.2rem;
    border: 1.5px solid white;
    border-radius: 8px;
    transition: var(--transition);
    color: white;
    font-weight: 500;
}

.social-link:hover {
    background-color: white;
    color: var(--navy);
    border-color: white;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-easter-egg {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0.5rem 0 0 0;
    font-style: italic;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-easter-egg:hover {
    opacity: 1;
    color: var(--red);
}

/* ===== BLOB ANIMATIONS ===== */
.blob {
    position: absolute; 
    z-index: -1; 
    opacity: .08; 
    filter: blur(2px);
    border-radius: 50%;
    background: var(--red);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 0;
    }
    
    .nav a {
        padding: 1rem 0.5rem;
        font-size: 12px;
    }
    
    .hero {
        padding: 0 1rem;
        margin: 6rem auto 3rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .sitemap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 1rem;
    }
    
    .nav a {
        font-size: 11px;
        padding: 0.8rem 0.3rem;
    }
    
    .hero {
        margin: 5rem auto 2rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Remove focus outlines from nav links */
.nav a:focus {
    outline: none;
}

/* Keep focus outlines for other interactive elements */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* ===== CASE STUDY LAYOUT ===== */
/* Only apply container styles to case study pages */
.case.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

.case {
    display: grid;
    grid-template-columns: 1fr;  /* mobile first */
    gap: 2.5rem;
    align-items: start;           /* DO NOT center items */
    padding: 8rem 0 4rem;
}

/* two-column at tablet/desktop */
@media (min-width: 880px) {
    .case {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 3rem;
    }
}

.case-title {
    font-family: "Anton", Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: .9;
    font-size: clamp(40px, 7vw, 96px); /* slightly tamer */
    max-width: 14ch;                   /* wider than 10–12ch you likely had */
    margin: 0 0 .5rem 0;               /* kill random top margins */
    color: var(--navy);
    text-wrap: balance;                 /* better line breaks */
}

.case .content { 
    padding-top: .25rem;   /* any padding stops margin collapse */
}

.case .section { 
    margin: 0;             /* reset */
    padding: 2rem 0;       /* use padding for vertical rhythm */
}

.case .section + .section { 
    padding-top: 2.75rem; 
}

.case .meta { 
    position: sticky; 
    top: 84px; 
    align-self: start; 
}

.case .meta dt {
    font: 600 12px/1 "Inter", system-ui, sans-serif;
    letter-spacing: .12em; 
    text-transform: uppercase; 
    color: var(--navy);
    margin-top: 1rem;
}

.case .meta dd {
    margin: .35rem 0 0 0; 
    font: 400 15px/1.6 "Inter", system-ui, sans-serif;
    color: rgba(10, 10, 10, .82);
}

.case .kicker {
    font: italic 400 16px/1 "Crimson Text", Georgia, serif;
    text-transform: uppercase; 
    letter-spacing: .12em; 
    color: var(--red);
    margin: .25rem 0 .25rem;
}

.case .rule { 
    width: 72px; 
    height: 2px; 
    background: var(--red); 
    margin: 8px 0 16px; 
}

.case .lede {
    font: italic 400 19px/1.7 "Crimson Text", Georgia, serif;
    color: rgba(10, 10, 10, .7); 
    max-width: 62ch;
}

.case .section-title {
    font-family: "Anton", Impact, sans-serif;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: .96;
    font-size: clamp(22px, 3.3vw, 40px);
    color: var(--navy);
    margin: 2.5rem 0 .75rem;
    position: relative;
}

.case .section-title::after {
    content: ""; 
    position: absolute; 
    left: 0; 
    bottom: -10px;
    width: 64px; 
    height: 2px; 
    background: var(--red);
}

.case p,
.case li {
    font: 400 17px/1.7 "Inter", system-ui, sans-serif;
    color: rgba(10, 10, 10, .84);
    max-width: 68ch;
}

.case ul {
    margin: .75rem 0 1.5rem 1.25rem;
}

.case li {
    margin-bottom: .4rem;
}

.secondary-email-button {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 1rem 2rem;
    border: 2px solid var(--red);
    display: inline-block;
    transition: var(--transition);
    margin-top: 2rem;
    background: var(--red);
    color: white;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 10%;
}

.secondary-email-button:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}