:root {
    --primary: #1A1A1A;
    --secondary: #F7F7F7;
    --accent: #0A3A66;
    --highlight: #C2A878;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--primary);
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--highlight);
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--primary);
}

.subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-spacing {
    padding: var(--spacing-xl) 0;
}

.bg-offwhite {
    background-color: var(--secondary);
}

.bg-charcoal {
    background-color: var(--primary);
}

.bg-deepblue {
    background-color: var(--accent);
}

.text-white {
    color: #FFFFFF;
}

.text-light {
    color: rgba(255, 255, 255, 0.7);
}

.text-muted {
    color: #666;
}

.gold-text {
    color: var(--highlight);
}

.impact-text {
    font-size: 1.4em;
    line-height: 1.4;
}

.text-center {
    text-align: center;
}

.mt-small {
    margin-top: 1rem;
}

.mt-medium {
    margin-top: 2.5rem;
}

.mt-large {
    margin-top: 5rem;
}

.mb-medium {
    margin-bottom: 2.5rem;
}

.mb-large {
    margin-bottom: 5rem;
}

.italic {
    font-style: italic;
}

.highlight-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

.gap-large {
    gap: var(--spacing-xl) !important;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -0.05em;
}

.nav-links {
    display: none;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--highlight);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 1rem;
    }
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    margin-bottom: 5px;
    transition: var(--transition);
}

.mobile-toggle span:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 5rem;
    }
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-performance {
    color: var(--highlight);
}

.text-operations {
    color: var(--accent);
}

.text-uplift {
    font-size: 1.3em;
    /* Increase size relative to the rest of the heading */
    display: inline-block;
    margin-top: 0.2rem;
}

.hero-badges {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 1rem;
}

.hero-badge {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
    transition: var(--transition);
}

.hero-badge:hover {
    transform: translateX(10px);
}

.badge-primary {
    background-color: var(--primary);
    color: #fff;
}

.badge-accent {
    background-color: var(--accent);
    color: #fff;
}

.badge-secondary {
    background-color: #E6E6E6;
    /* Darkened from var(--secondary) so it is distinct from #FFF background */
    color: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.badge-highlight {
    background-color: var(--highlight);
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: #333;
}

.hero-note {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--highlight);
    border-left: 2px solid var(--highlight);
    padding-left: 1rem;
}

.hero-bg-shape {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 50vw;
    height: 50vw;
    max-width: 800px;
    max-height: 800px;
    border: 1px solid rgba(26, 26, 26, 0.05);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-bg-shape::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 30%;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(194, 168, 120, 0.2);
    border-radius: 50%;
}

.hero-bg-shape::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -20%;
    width: 60%;
    height: 60%;
    border: 1px solid rgba(10, 58, 102, 0.1);
    border-radius: 50%;
}

@media (max-width: 767px) {
    .hero-bg-shape {
        display: none;
    }
}

/* Section Headings */
.section-heading {
    margin-bottom: var(--spacing-lg);
}

/* About Section */
.headshot-wrapper {
    position: relative;
    max-width: 320px;
    margin-top: 3rem;
    padding-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.headshot-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    z-index: 0;
    pointer-events: none;
}

.headshot-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: grayscale(20%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services / What I Do */
.services-grid {
    margin-top: var(--spacing-lg);
}

.service-card {
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.card-line {
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card p {
    font-size: 1.125rem;
    margin: 0;
}

/* Framework */
.framework-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

@media (min-width: 992px) {
    .framework-steps {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

.step {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--highlight);
    margin-bottom: 1rem;
    line-height: 1;
}

.step h3 {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    white-space: nowrap;
}

.step p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Lists */
.process-list,
.bullet-list,
.cross-list {
    list-style: none;
}

.process-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.process-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.bullet-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
}

.cross-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    text-decoration: line-through;
}

.cross-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #999;
    top: 0;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* Cases */
.case-card {
    background-color: var(--secondary);
    padding: 3rem;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--highlight);
}

.case-industry {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* Contact Section */
.contact-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.contact-wrap h2::after {
    background-color: var(--highlight);
}

.contact-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--highlight);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.contact-link:hover {
    border-color: var(--highlight);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.divider {
    display: none;
}

@media (min-width: 768px) {

    .location-info {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .divider {
        display: inline;
        color: rgba(255, 255, 255, 0.3);
    }
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo {
    color: #FFFFFF;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.footer-legal {
    text-align: left;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .footer-legal {
        text-align: right;
        justify-content: flex-end;
    }
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav Structure */
.mobile-nav-active {
    overflow: hidden;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 2rem 0;
}

.mobile-menu a {
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--highlight);
}

.header.mobile-active .mobile-toggle span {
    background-color: #FFF;
}

.header.mobile-active .mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header.mobile-active .mobile-toggle span:nth-child(2) {
    opacity: 0;
}

.header.mobile-active .mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
    .section-spacing {
        padding: 5rem 0;
    }

    .grid-2,
    .grid-3 {
        gap: 3rem;
    }
}