/* TC Design – Design tokens and styles */

:root {
    /* Base colors */
    --color-off-black: #232323;
    --color-grey: #BABABA;
    --color-white: #FFFFFF;
    --color-positive: #07CFE1;
    --color-negative: #C9A100;
    --color-neutral: var(--color-off-black);

    /* Fire scale */
    --color-fire-50: #fcf7f5;
    --color-fire-100: #ECBBAA;
    --color-fire-200: #E29880;
    --color-fire-300: #D97655;
    --color-fire-400: #D0542A;
    --color-fire-500: #C63200;
    --color-fire-600: #A52A00;
    --color-fire-700: #842100;

    /* Semantic text colors */
    --text-header: var(--color-off-black);
    --text-body: var(--color-off-black);
    --text-sub: var(--color-grey);
    --text-accent: var(--color-fire-500);
    --text-accent-light: var(--color-fire-300);
    --text-accent-dark: var(--color-fire-700);
    --text-link: var(--color-fire-500);
    --text-success: var(--color-positive);
    --text-error: var(--color-negative);
    --text-neutral: var(--color-neutral);

    /* Spacing scale (px) */
    --space-0: 0px;
    --space-2: 2px;
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-28: 28px;
    --space-32: 32px;
    --space-36: 36px;
    --space-40: 40px;
    --space-44: 44px;
    --space-48: 48px;
    --space-52: 52px;
    --space-56: 56px;
    --space-60: 60px;
    --space-64: 64px;
    --space-68: 68px;
    --space-72: 72px;
    --space-76: 76px;
    --space-80: 80px;

    /* Radii, shadows, etc. */
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* CSS reset (minimal) */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
    color: var(--text-body);
    background: var(--color-white);
    line-height: 1.6;
}
a { color: var(--text-link); text-decoration: underline; text-underline-offset: 25%; text-decoration-thickness: 12%; }
a:hover { text-decoration-thickness: 17%; }
/* Make all non-navigation links match text-body-lg size */
a:not(.nav-link) { font-size: 18px; }

/* Layout helpers */
.container {
    max-width: none;
    margin-left: 80px;
    margin-right: 80px;
    padding-left: 0;
    padding-right: 0;
}

/* Global 12-column grid utility */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-20);
}

/* Typography scale */
.text-heading-1 { font-size: 48px; line-height: 1.2; font-weight: 800; color: var(--text-header); }
.text-heading-2 { font-size: 40px; line-height: 52px; font-weight: 700; color: var(--text-header); }
.text-heading-3 { font-family: var(--font-primary); font-weight: var(--weight-extrabold); font-size: 32px; line-height: 44px; letter-spacing: var(--tracking-wide); color: var(--text-header); }
.text-heading-4 { font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--text-header); }
.text-body-lg { font-size: 18px; color: var(--text-body); }
.text-body-lg-bold { font-size: 18px; color: var(--text-body); font-weight: 700; }
.text-body-base { font-size: 16px; color: var(--text-body); }
.text-body-base-bold { font-size: 16px; color: var(--text-body); font-weight: 700; }
.text-body-sm { font-size: 14px; color: var(--text-body); }
.text-body-sm-bold { font-size: 14px; color: var(--text-body); font-weight: 700; }
.text-button { font-weight: 600; letter-spacing: 0.3px; }
/* Utility text color */
.text-accent { color: var(--text-accent); }

/* Paragraph defaults → match text-body-base */
p { font-size: 16px; color: var(--text-body); margin-top: 0; margin-bottom: var(--space-12); }

/* Header / Nav */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 10;
}
.nav { padding: var(--space-16) 0; }
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    max-width: 1920px;
    margin: 0 80px;
    padding-left: var(--space-20);
    padding-right: var(--space-20);
}
@media (max-width: 1024px) { .nav .nav-container { margin: 0 var(--space-20) !important; } }
@media (max-width: 640px) { .nav .nav-container { margin: 0 var(--space-20) !important; } }


.logo { margin: 0; color: var(--text-accent-dark); letter-spacing: 4px; display: inline-flex; align-items: center; gap: var(--space-16); line-height: 1; }
.logo .logo-link { display: inline-flex; align-items: center; gap: var(--space-16); color: inherit; }
.logo .logo-link:hover { text-decoration: none; }
.logo .logo-link,
.logo .logo-link:link,
.logo .logo-link:visited,
.logo .logo-link:hover,
.logo .logo-link:active,
.logo .logo-link:focus { text-decoration: none; }
.logo .logo-mark { height: 40px; max-height: 40px; width: auto; display: block; }
.logo .logo-text { display: inline; }
.nav-menu { list-style: none; display: flex; gap: var(--space-24); padding: 0; margin: 0; }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-positive) 60%, transparent); outline-offset: 2px; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--text-accent); margin: 4px 0; transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-link { color: var(--text-body); opacity: 0.9; }
.nav-link:hover { color: var(--text-accent); opacity: 1; }

/* Hero */
.hero {
    padding: var(--space-64) 0 var(--space-48) ; 
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-20);
    align-items: center;
}
.hero-grid.container { max-width: 1920px; margin: 0 80px; }
@media (max-width: 1024px) { .hero-grid.container { margin: 40px var(--space-40); } }
.hero-content {
    grid-column: span 6;
    padding: 0;
    max-width: 870px;
    text-align: left;
}
.hero-media {
    grid-column: span 5 / -1;
    display: flex;
    justify-content: left;
}
.media-placeholder {
    width: 100%;
    height: 800px;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.media-placeholder img {
    width: 100%;
    height: 100%;
    background: var(--color-white);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.hero .text-heading-1 { margin-top: 0; margin-bottom: var(--space-16); }
.hero .text-body-lg { color: var(--text-body); }
.cta-button {
    margin-top: var(--space-24);
    background: var(--color-fire-500);
    color: var(--color-white);
    border: none;
    padding: var(--space-12) var(--space-20);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.cta-button:hover { background: var(--color-fire-600); }
.cta-button:active { background: var(--color-fire-700); }
.cta-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-positive) 60%, transparent);
    outline-offset: 2px;
}

/* Projects */
.projects { padding: var(--space-48) 0; }
.work { background: var(--color-fire-50); padding: var(--space-48) 0; }
@media (max-width: 1024px) { .projects { margin: 0 var(--space-40); } }
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
}

@media (max-width: 1024px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .project-grid { grid-template-columns: 1fr; }
}
.project-card, .project-card:link, .project-card:visited {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-20);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--color-fire-500) 30%, rgba(0, 0, 0, 0.08));
}
.project-image { height: 160px; border-radius: 10px; overflow: hidden; margin-bottom: var(--space-16); background: var(--color-fire-100); display: grid; place-items: center; }
.project-image .placeholder { color: var(--color-white); font-weight: 700; letter-spacing: 0.5px; }
/* Project badge */
.project-badge { display: inline-block; background: var(--color-off-black); color: var(--color-white); padding: 6px 10px; border-radius: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 8px; }
.project-card .text-body-base { color: var(--text-body); }

/* About Process */
.about { padding: var(--space-48) 0; background: linear-gradient(0deg, rgba(230, 230, 230, 0.15), rgba(230, 230, 230, 0.15)); }
.about p { color: var(--text-body); }

/* Contact 
.contact { padding: var(--space-48) 0; }
.contact-info { display: grid; gap: var(--space-8); }
.contact .text-body-base { color: var(--text-body); }*/

/* Footer */
.footer { background: var(--color-off-black); color: var(--color-white); padding: var(--space-20) 0; }
.footer .text-body-sm { color: rgba(255, 255, 255, 0.85); margin: 0; }
.social-links { display: flex; gap: var(--space-16); margin-bottom: var(--space-24); justify-content: center; }
.social-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--color-white); border: 2px solid rgba(255,255,255,0.4); }
.social-btn:hover { background: var(--color-white); }
.social-btn svg { width: 32px; height: 32px; color: var(--color-white); }
.social-btn img { width: 32px; height: 32px; display: block; }
/* Variant for white backgrounds: add dark stroke */
.social-btn--outlined { border-color: var(--color-accent-default); }
.social-btn--outlined:hover { border-color: var(--text-accent-dark); }

/* Left-align social buttons when used inside hero/content sections */
.hero .social-links { justify-content: flex-start; }

/* Utility states */
.is-success { color: var(--text-success); }
.is-error { color: var(--text-error); }
.is-neutral { color: var(--text-neutral); }

/* Responsive tweaks */
@media (max-width: 640px) {
    .text-heading-1 { font-size: 36px; }
    .text-heading-2 { font-size: 26px; line-height: 36px; }
    .text-heading-3 { font-size: 22px; line-height: 32px; }
    .logo .logo-text { display: none; }
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .logo .logo-text { display: none; }
    .nav-menu { display: none; }
    .nav-toggle { display: inline-block; }
    /* Tablet sizes */
    .text-heading-2 { font-size: 26px; line-height: 36px; }
    .text-heading-3 { font-size: 22px; line-height: 32px; }
}

/* Responsive layout adjustments */
@media (max-width: 1024px) {
    .container { margin-left: var(--space-40); margin-right: var(--space-40); }
    .hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .hero-content { grid-column: 1 / -1; max-width: 100%; }
    .hero-media { 
        grid-column: 1 / -1; 
        display: flex;
        justify-content: center;
    }
    .media-placeholder {
        width: 60%;
        height: 480px; /* 60% of 800px */
    }
    /* Match work section container margin to hero container */
    .work .container { margin: 0 var(--space-40); }
}

@media (max-width: 640px) {
    .container { margin-left: var(--space-40); margin-right: var(--space-40); }
    .hero-media { 
        display: flex;
        justify-content: center;
    }
    .media-placeholder {
        width: 60%;
        height: 480px; /* 60% of 800px */
    }
    /* Match work section container margin to hero container */
    .work .container { margin: 0 var(--space-40); }
}

/* Mobile full-screen menu */
.mobile-menu { position: fixed; inset: 0; background: var(--color-fire-50); display: none; place-items: center; z-index: 999; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.mobile-menu.is-open { display: grid; opacity: 1; pointer-events: auto; }
.mobile-menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; text-align: center; }
.mobile-menu-link { color: var(--color-fire-500); font-weight: 800; font-size: 40px; text-decoration: none; }
.mobile-menu-link:hover { text-decoration: underline; text-underline-offset: 25%; text-decoration-thickness: 17%; }
.menu-close { display: none; }

/* Hard override to ensure desktop links are hidden on tablet/mobile */
@media (max-width: 1024px) {
    .nav-menu { display: none !important; }
    .nav-toggle { display: inline-block !important; }
}

/* Ensure overlay is hidden above tablet breakpoint */
@media (min-width: 1025px) {
    .mobile-menu { display: none !important; opacity: 0 !important; pointer-events: none !important; }
}

/* Archivo Font Face Declarations */
@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties for Typography */
:root {
    /* Font Families */
    --font-primary: 'Archivo', 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --weight-black: 900;
    
    /* Font Sizes */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 40px;
    --text-5xl: 52px;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: var(--leading-normal);
    color: #333;
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Classes based on your type ramp */
.text-heading-1 {
    font-family: var(--font-primary);
    font-weight: var(--weight-black);
    font-size: var(--text-5xl);
    line-height: 64px;
    letter-spacing: var(--tracking-wide);
}

.text-heading-2 {
    font-family: var(--font-primary);
    font-weight: var(--weight-black);
    font-size: var(--text-4xl);
    line-height: 52px;
    letter-spacing: var(--tracking-wide);
}

/* Removed duplicate override for .text-heading-3 to keep a single global definition above */

.text-heading-4 {
    font-family: var(--font-primary);
    font-weight: var(--weight-bold);
    font-size: var(--text-2xl);
    line-height: 32px;
    letter-spacing: var(--tracking-wide);
}

.text-heading-5 {
    font-family: var(--font-primary);
    font-weight: var(--weight-semibold);
    font-size: var(--text-xl);
    line-height: 28px;
    letter-spacing: var(--tracking-wide);
}

.text-button {
    font-family: var(--font-primary);
    font-weight: var(--weight-bold);
    font-size: var(--text-base);
    line-height: 24px;
    letter-spacing: var(--tracking-wider);
}

.text-body-stat {
    font-family: var(--font-primary);
    font-weight: var(--weight-black);
    font-size: var(--text-base);
    line-height: 22px;
    letter-spacing: var(--tracking-normal);
    color: #666;
}

.text-body-lg {
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: var(--text-2xl);
    line-height: 34px;
    letter-spacing: var(--tracking-wider);
}

.text-body-base {
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: var(--text-base);
    line-height: 24px;
    letter-spacing: var(--tracking-wider);
}

.text-body-sm {
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    line-height: 16px;
    letter-spacing: var(--tracking-wider);
}

.text-body-xs {
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: var(--text-xs);
    line-height: 12px;
    letter-spacing: var(--tracking-wider);
}

/* Header and Navigation */
.header {
    background: #fff;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-primary);
    font-weight: var(--weight-black);
    font-size: 1.8rem;
    color: #2c3e50;
    letter-spacing: var(--tracking-wide);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-link);
    font-weight: var(--weight-medium);
    font-size: 18px;
    transition: color 0.3s ease;
    letter-spacing: var(--tracking-wide);
}

.nav-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 17%;
    text-underline-offset: 25%;
    color: var(--text-link);
}

/* Hero Section */
.hero {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    text-align: left;
    padding: 120px 20px 80px;
    min-height: 100vh;
    display: grid;
}

.hero-content h2 {
    font-family: var(--font-primary);
    font-weight: var(--weight-black);
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: var(--tracking-wide);
}

.hero-content p {
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    letter-spacing: var(--tracking-wider);
}

/* Ensure explicit text size utilities can override hero paragraph size */
.hero-content p.text-body-xs { font-size: var(--text-xs); }
.hero-content p.text-body-sm { font-size: var(--text-sm); }
.hero-content p.text-body-base { font-size: var(--text-base); }

.cta-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-primary);
    font-weight: var(--weight-bold);
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    letter-spacing: var(--tracking-wider);
}

.cta-button:hover {
    background: #c0392b;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: var(--color-fire-50);
}

.projects h2 {
    text-align: center;
    font-family: var(--font-primary);
    font-weight: var(--weight-black);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    letter-spacing: var(--tracking-wide);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24);
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .project-grid { grid-template-columns: 1fr; }
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder {
    color: #7f8c8d;
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: 1.2rem;
    letter-spacing: var(--tracking-wide);
}

.project-card h3 {
    margin: 8px 0 6px;
    color: #2c3e50;
    font-family: var(--font-primary);
    font-weight: var(--weight-bold);
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-wide);
}

.project-card p {
    margin: 0;
    color: #7f8c8d;
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: var(--text-base);
    letter-spacing: var(--tracking-wide);
}

/* About Section */
.about {
    padding: 48px 0px;
    min-height: 65vh;
    background: white;
}
.about .container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: inherit; text-align: center; gap: var(--space-0); }
.about h3 { max-width: 870px; margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0; }
.about .text-body-lg { max-width: 870px; margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0; }

.about h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    letter-spacing: var(--tracking-wide);
}

.about p {
    text-align: center;
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    letter-spacing: var(--tracking-wider);
}

/* Contact Section
.contact {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
}

.contact h2 {
    text-align: center;
    font-family: var(--font-primary);
    font-weight: var(--weight-black);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: var(--tracking-wide);
}

.contact p {
    text-align: center;
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    letter-spacing: var(--tracking-wide);
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
}*/

/* Footer */
.footer {
    background: var(--color-fire-700);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.footer p {
    font-family: var(--font-secondary);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .text-heading-1 {
        font-size: 2.5rem;
        line-height: 3rem;
    }
    
    .text-heading-2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }
}

/* Enforce large link size in mobile menu on tablet/mobile */
@media (max-width: 1024px) {
    .mobile-menu .mobile-menu-link { font-size: 40px !important; }
}

/* Tablet typography: match current mobile header sizes */
@media (max-width: 1024px) {
    .text-heading-1 { font-size: 2.5rem; line-height: 3rem; }
    .text-heading-2 { font-size: 26px; line-height: 36px; }
    .hero-content h2 { font-size: 26px; line-height: 36px; }
}

/* Final layout overrides: match Work/About width to Hero */
.container { max-width: 1920px; margin: 0 80px; padding: 0;}
.nav-container { margin: 0 80px; }
.work .container, .about .container, .hero-grid.container { max-width: 1920px; }

/* Global case page two-column layout */
.case-overview .container,
.case-metrics .container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-64);
    align-items: start;
    max-width: 1920px;
}

/* Left and right column widths: left spans 6 (narrower), right spans 5 */
.case-overview .case-content { grid-column: span 6; }
.case-overview .case-details { grid-column: span 5 / -1; }
.case-metrics .metrics-left { grid-column: span 6; }
.case-metrics .metrics-right { grid-column: span 5 / -1; }

/* Responsive stacking */
@media (max-width: 1024px) {
    .case-overview .container,
    .case-metrics .container { grid-template-columns: 1fr; gap: var(--space-48); }
    .case-overview .case-content,
    .case-overview .case-details,
    .case-metrics .metrics-left,
    .case-metrics .metrics-right { grid-column: 1 / -1; }
}

/* Responsive section spacing: reduce to 40% on tablet/mobile */
@media (max-width: 1024px) {
    /* Generic hero spacing - 40% of original */
    .hero { padding: calc(var(--space-64) * 0.4) 0 calc(var(--space-48) * 0.4) !important; }
    /* Site sections - 40% of original */
    .projects, .work, .about { padding-top: calc(var(--space-48) * 0.4) !important; padding-bottom: calc(var(--space-48) * 0.4) !important; }
    /* Case study sections (inline styles exist; force override) - 40% of original */
    .case-overview, .case-metrics, .case-quote, .design-section, .impact-stats, .project-nav,
    .discovery-media { padding-top: calc(var(--space-64) * 0.4) !important; padding-bottom: calc(var(--space-64) * 0.4) !important; }
    .discovery-images, .solution-images { padding-top: calc(var(--space-48) * 0.4) !important; padding-bottom: calc(var(--space-64) * 0.4) !important; }
}
@media (max-width: 640px) {
    .hero { padding: calc(var(--space-64) * 0.4) 0 calc(var(--space-48) * 0.4) !important; }
    .projects, .work, .about { padding-top: calc(var(--space-48) * 0.4) !important; padding-bottom: calc(var(--space-48) * 0.4) !important; }
    .case-overview, .case-metrics, .case-quote, .design-section, .impact-stats, .project-nav,
    .discovery-media { padding-top: calc(var(--space-64) * 0.4) !important; padding-bottom: calc(var(--space-64) * 0.4) !important; }
    .discovery-images, .solution-images { padding-top: calc(var(--space-48) * 0.4) !important; padding-bottom: calc(var(--space-64) * 0.4) !important; }
}

/* Offset content for fixed header on tablet/mobile to prevent hero cut-off */
@media (max-width: 1024px) {
    main { margin-top: 80px; }
    #home { scroll-margin-top: 80px; }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}


/* Project badges container */
.project-badges {
    display: flex;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
}

/* Secondary badge styling */
.project-badge--secondary {
    background: var(--color-grey);
    color: var(--color-off-black);
}
@media (max-width: 640px) {
    main { margin-top: 88px; }
    #home { scroll-margin-top: 88px; }
}
