/* ══════════════════════════════════════════════════
   iVolved — Main Stylesheet
   ivolved.net
══════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
    --cream:         #F5F3ED;
    --charcoal:      #1C1C1A;
    --amber:         #E8960A;
    --amber-dark:    #CF8409;
    --dark:          #0F0F0E;
    --dark-mid:      #181816;
    --text-mid:      #6A6860;
    --rule:          #DDD9D0;
    --rule-dark:     #262623;
    --font-display:  'Cormorant Garamond', Georgia, serif;
    --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; }
p { line-height: 1.75; }

/* ── Visually hidden (screen-reader only) ── */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    background: var(--amber);
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Logo ── */
.logo {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: -0.015em;
    color: var(--charcoal);
    text-decoration: none;
}
.logo-i {
    position: relative;
    display: inline-block;
}
.logo-dot {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
}
.logo--light { color: var(--cream); }

/* ── Navigation / Header ── */
header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem 2.75rem;
    transition: background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
nav.scrolled {
    background: rgba(245, 243, 237, 0.96);
    border-bottom-color: var(--rule);
    backdrop-filter: blur(10px);
}
.nav-cta {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    padding: 0.55rem 1.2rem;
    border: 1px solid currentColor;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--amber); border-color: var(--amber); color: var(--charcoal); }

/* ── Focus Styles (WCAG 2.1 SC 2.4.7 / 2.4.11) ── */
:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.1rem;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}
.btn-amber { background: var(--amber); color: var(--charcoal); }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-dark  { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover  { background: var(--dark); transform: translateY(-1px); }

/* ── Section Label ── */
.lbl {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.1rem;
}

/* ── Scroll Reveal Animations ── */
.r { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.r.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    .r { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .btn-amber:hover, .btn-dark:hover { transform: none; }
    .problem-item:hover { padding-left: 0; }
    .svc::after, .diff::after { transition: none; }
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9rem 2.75rem 6rem;
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(180, 175, 165, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 175, 165, 0.35) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 2rem;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--amber);
    flex-shrink: 0;
}
.hero-eyebrow span {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mid);
}
.hero h1 {
    font-size: clamp(2.6rem, 4.8vw, 4.4rem);
    margin-bottom: 1.6rem;
}
.hero-sub {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
    line-height: 1.65;
}
.hero-body {
    font-size: 0.93rem;
    font-weight: 300;
    color: var(--charcoal);
    opacity: 0.8;
    margin-bottom: 2.75rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.hero-visual { display: none; }

/* ══════════════════════════════════════════════════
   PROBLEM
══════════════════════════════════════════════════ */
.problem {
    background: var(--dark);
    padding: 7rem 2.75rem;
}
.problem-inner { max-width: 860px; margin: 0 auto; }
.problem h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    color: var(--cream);
    max-width: 600px;
    margin-bottom: 4rem;
}
.problem-list { list-style: none; border-top: 1px solid var(--rule-dark); }
.problem-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--rule-dark);
    transition: padding-left 0.3s ease;
}
.problem-item:hover { padding-left: 0.6rem; }
.problem-num {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--amber);
    flex-shrink: 0;
    width: 2rem;
}
.problem-text {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(245, 243, 237, 0.82);
}
.problem-close {
    margin-top: 3.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-style: italic;
    /* 0.55 opacity achieves ~3.5:1 on #0F0F0E — WCAG AA for large text */
    color: rgba(245, 243, 237, 0.55);
    max-width: 580px;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════ */
.how { padding: 7rem 2.75rem; }
.how-inner { max-width: 900px; margin: 0 auto; }
.how h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin-bottom: 4.5rem;
}
.phases {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.phase {
    padding: 3rem;
    border: 1px solid var(--rule);
}
.phase + .phase { border-left: none; }
.phase-num {
    display: block;
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 600;
    color: var(--amber);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.phase-tag {
    display: block;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.6rem;
}
.phase h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.phase p {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-mid);
}

/* ══════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════ */
.services { background: var(--dark-mid); padding: 7rem 2.75rem; }
.services-inner { max-width: 1020px; margin: 0 auto; }
.services h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    color: var(--cream);
    margin-bottom: 3.5rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--rule-dark);
}
.svc {
    background: var(--dark-mid);
    padding: 2.2rem 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.25s;
    grid-column: span 2;
}
.svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
.svc::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.svc:hover { background: #1E1D1B; }
.svc:hover::after { transform: scaleX(1); }
.svc-num {
    display: block;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--amber);
    opacity: 0.6;
    margin-bottom: 0.9rem;
}
.svc h3 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--cream);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   WHO THIS IS FOR
══════════════════════════════════════════════════ */
.for-who-wrap { padding: 7rem 2.75rem; }
.for-who {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.for-who h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.for-who-desc {
    font-size: 0.93rem;
    font-weight: 300;
    color: var(--text-mid);
    margin-top: 1.25rem;
    line-height: 1.8;
}
.for-list { list-style: none; margin-top: 1rem; }
.for-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.93rem;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.5;
}
.for-list li::before {
    content: '→';
    color: var(--amber);
    flex-shrink: 0;
    font-size: 0.85rem;
    margin-top: 0.08rem;
}

/* ══════════════════════════════════════════════════
   WHAT MAKES IVOLVED DIFFERENT
══════════════════════════════════════════════════ */
.different { padding: 0 2.75rem 7rem; }
.different-inner { max-width: 900px; margin: 0 auto; }
.different h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 3.5rem;
}
.diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.diff {
    padding: 2.4rem 1.75rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: relative;
    overflow: hidden;
}
.diff::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1.75rem; right: 1.75rem;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.diff:hover::after { transform: scaleX(1); }
.diff-lbl {
    display: block;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.65rem;
}
.diff h3 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   CTA
══════════════════════════════════════════════════ */
.cta { background: var(--amber); padding: 7rem 2.75rem; text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--charcoal);
    margin-bottom: 1.4rem;
}
.cta p {
    font-size: 0.97rem;
    font-weight: 300;
    color: rgba(28, 28, 26, 0.75);
    margin-bottom: 2.5rem;
}
.cta-sub {
    display: block;
    margin-top: 1.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(28, 28, 26, 0.6);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
    background: var(--dark);
    padding: 3.5rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-tag {
    font-size: 0.72rem;
    font-weight: 300;
    /* 0.55 opacity — ~3.5:1 on #0F0F0E, WCAG AA for small text */
    color: rgba(245, 243, 237, 0.55);
    letter-spacing: 0.04em;
}
.footer-copy {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(245, 243, 237, 0.45);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Tablet / Mobile (≤ 900px)
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    nav { padding: 1.2rem 1.75rem; }

    .hero { padding: 8rem 1.75rem 5rem; }

    .problem { padding: 5rem 1.75rem; }

    .how { padding: 5rem 1.75rem; }
    .phases { grid-template-columns: 1fr; }
    .phase + .phase { border-left: 1px solid var(--rule); border-top: none; }
    .phase { padding: 2.5rem; }

    .services { padding: 5rem 1.75rem; }
    .services-grid { grid-template-columns: 1fr; }
    .svc, .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 1; }

    .for-who-wrap { padding: 5rem 1.75rem; }
    .for-who { grid-template-columns: 1fr; gap: 2.5rem; }

    .different { padding: 0 1.75rem 5rem; }
    .diff-grid { grid-template-columns: 1fr 1fr; }

    .cta { padding: 5rem 1.75rem; }

    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 3rem 1.75rem;
    }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 540px)
══════════════════════════════════════════════════ */
@media (max-width: 540px) {
    .diff-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.4rem; }
}

/* ══════════════════════════════════════════════════
   NAVIGATION — Multi-page additions
══════════════════════════════════════════════════ */

/* Middle nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }
.nav-links a[aria-current="page"] { color: var(--amber); }

/* Interior pages: nav always has a background (no transparent hero behind it) */
.page-interior header nav {
    background: rgba(245, 243, 237, 0.98);
    border-bottom-color: var(--rule);
}

/* Footer navigation */
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
}
.footer-nav a {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(245, 243, 237, 0.5);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--amber); }

/* ══════════════════════════════════════════════════
   INTERIOR PAGE HERO
══════════════════════════════════════════════════ */
.page-hero {
    padding: 9rem 2.75rem 5rem;
    border-bottom: 1px solid var(--rule);
}
.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.page-hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--charcoal);
    margin-bottom: 1.25rem;
    line-height: 1.0;
}
.page-hero-role {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-mid);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.page-hero-bio {
    font-size: 1rem;
    font-weight: 300;
    color: var(--charcoal);
    max-width: 640px;
    line-height: 1.85;
    opacity: 0.85;
    margin-bottom: 2rem;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    padding: 0.75rem 1.4rem;
    border: 1px solid var(--rule);
    transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* ══════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════ */
.stats-bar {
    background: var(--rule-dark); /* gap colour */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}
.stat {
    background: var(--dark);
    padding: 3rem 2.5rem;
    text-align: center;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 0.6rem;
}
.stat-num span { color: var(--amber); }
.stat-label {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 243, 237, 0.45);
}

/* ══════════════════════════════════════════════════
   EXPERIENCE TIMELINE
══════════════════════════════════════════════════ */
.exp-section { padding: 7rem 2.75rem; }
.exp-inner { max-width: 900px; margin: 0 auto; }
.exp-section h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 4rem;
}
.exp-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3.5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--rule);
}
.exp-item:last-child { border-bottom: 1px solid var(--rule); }
.exp-meta { padding-top: 0.25rem; }
.exp-company {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
}
.exp-dates {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-mid);
    letter-spacing: 0.02em;
    line-height: 1.6;
}
.exp-sector {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    opacity: 0.8;
}
.exp-content h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 0.85rem;
}
.exp-summary {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.exp-bullets {
    list-style: none;
}
.exp-bullets li {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-mid);
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
    line-height: 1.6;
}
.exp-bullets li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-size: 0.75rem;
}

/* ══════════════════════════════════════════════════
   APPROACH SECTION
══════════════════════════════════════════════════ */
.approach-section {
    background: var(--dark);
    padding: 7rem 2.75rem;
}
.approach-inner { max-width: 900px; margin: 0 auto; }
.approach-section h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--cream);
    margin-bottom: 3.5rem;
}
.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule-dark);
}
.approach-item {
    background: var(--dark);
    padding: 2.75rem 2.5rem;
}
.approach-item h3 {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1rem;
}
.approach-item p {
    font-size: 0.92rem;
    font-weight: 300;
    color: rgba(245, 243, 237, 0.72);
    line-height: 1.8;
}

/* ══════════════════════════════════════════════════
   CREDENTIALS
══════════════════════════════════════════════════ */
.creds-section { padding: 7rem 2.75rem; }
.creds-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.creds-section h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}
.cred-group-title {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1.25rem;
}
.cred-list { list-style: none; }
.cred-list li {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--charcoal);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    line-height: 1.5;
}
.cred-list li:first-child { border-top: 1px solid var(--rule); }
.cred-year {
    display: inline;
    color: var(--text-mid);
    font-size: 0.78rem;
    margin-left: 0.4rem;
}

/* ══════════════════════════════════════════════════
   PROJECTS PAGE
══════════════════════════════════════════════════ */
.projects-section { padding: 5rem 2.75rem 7rem; }
.projects-inner { max-width: 900px; margin: 0 auto; }

.project-entry {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3.5rem;
    padding: 4rem 0;
    border-top: 1px solid var(--rule);
}
.project-entry:last-child { border-bottom: 1px solid var(--rule); }

.project-meta { padding-top: 0.35rem; }
.project-client {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.project-sector {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.project-impact-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.project-impact-num span { color: var(--amber); }
.project-impact-label {
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.project-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 1rem;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}
.tag {
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--rule);
    line-height: 1;
}

.project-phases { margin-top: 0.5rem; }
.project-phase { margin-bottom: 1.25rem; }
.project-phase strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}
.project-phase p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.75;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Interior pages (≤ 900px)
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .nav-links { display: none; } /* relies on footer nav on mobile */

    .page-hero { padding: 7rem 1.75rem 4rem; }

    .stats-bar { grid-template-columns: 1fr 1fr; }
    .stat { padding: 2.25rem 1.5rem; }

    .exp-section { padding: 5rem 1.75rem; }
    .exp-item { grid-template-columns: 1fr; gap: 1rem; }

    .approach-section { padding: 5rem 1.75rem; }
    .approach-grid { grid-template-columns: 1fr; }

    .creds-section { padding: 5rem 1.75rem; }
    .creds-inner { grid-template-columns: 1fr; gap: 3rem; }
    .creds-section h2 { grid-column: 1; }

    .projects-section { padding: 3rem 1.75rem 5rem; }
    .project-entry { grid-template-columns: 1fr; gap: 1.5rem; }
    .project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }

    .footer-nav ul { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
}

@media (max-width: 540px) {
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .project-meta { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   HAMBURGER MENU
══════════════════════════════════════════════════ */

/* Hamburger button */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.2s;
}
.hamburger:hover { background: rgba(28,28,26,0.06); }
.hamburger:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 26, 0.25);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: all; }

/* Slide-in menu panel */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 90vw);
    height: 100dvh;
    background: var(--cream);
    border-left: 1px solid var(--rule);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2.5rem 2.5rem;
    overflow-y: auto;
}
.nav-menu.open { transform: translateX(0); }

.nav-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    align-self: flex-end;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.nav-menu-close:hover { color: var(--charcoal); background: rgba(28,28,26,0.06); }
.nav-menu-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.nav-menu-links {
    list-style: none;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.nav-menu-links a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    line-height: 1.2;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid var(--rule);
    transition: color 0.2s;
}
.nav-menu-links li:first-child a { border-top: 1px solid var(--rule); }
.nav-menu-links a:hover,
.nav-menu-links a[aria-current="page"] { color: var(--amber); }

.nav-menu-contact {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-mid);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.nav-menu-contact a {
    display: block;
    margin-top: 0.4rem;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
}
.nav-menu-contact a:hover { color: var(--amber); }
