/* Structural Reset & Variables */
:root {
    --sage-dark: #344238;
    --sage-mid: #5b6b5e;
    --sage-light: #e0e6e1;
    --sage-bg: #f2f5f2;
    --ink: #1a1e1b;
    --paper: #ffffff;
    --accent: #8a9a86;
    
    --font-head: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    
    --grid-gap: 2.4rem;
    --radius: 2px; /* Brutalist/Technical edge */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--sage-bg);
    overflow-x: hidden;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

a {
    color: var(--sage-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--sage-dark);
    line-height: 1.2;
    font-weight: 700;
}

.section-node {
    font-size: 3.6rem;
    margin-bottom: 2.4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-node::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-node.text-center {
    text-align: center;
}
.section-node.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Masthead (Header) */
.apex-masthead {
    background-color: var(--paper);
    border-bottom: 1px solid var(--sage-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.masthead-bounds {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.6rem 2.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.firm-identity {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sage-dark);
}

.structural-nav {
    display: flex;
    gap: 3.2rem;
    align-items: center;
}

.structural-nav a {
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-action-trigger {
    border: 1px solid var(--sage-dark);
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
}

.nav-action-trigger:hover {
    background-color: var(--sage-dark);
    color: var(--paper);
}

/* Hero Asymmetric Grid */
.kinetic-hero-grid {
    max-width: 1440px;
    margin: 4.8rem auto 8.5rem;
    padding: 0 2.4rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

.hero-visual-anchor {
    grid-column: 5 / 13;
    grid-row: 1;
    z-index: 1;
}

.hero-visual-anchor img {
    height: 70vh;
    min-height: 500px;
}

.hero-data-block {
    grid-column: 1 / 7;
    grid-row: 1;
    z-index: 2;
    background-color: var(--paper);
    padding: 5.6rem;
    box-shadow: 20px 20px 0px var(--sage-light);
    margin-top: 8rem;
}

.heritage-badge {
    display: inline-block;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sage-mid);
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.primary-thesis {
    font-size: 5.2rem;
    margin-bottom: 2.4rem;
}

.thesis-support {
    font-size: 1.8rem;
    color: var(--sage-mid);
    margin-bottom: 4rem;
}

.primary-engage-btn {
    display: inline-block;
    background-color: var(--sage-dark);
    color: var(--paper);
    padding: 1.6rem 3.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-engage-btn:hover {
    background-color: var(--accent);
    color: var(--paper);
}

/* Firm Profile */
.technical-about-strata {
    max-width: 1280px;
    margin: 0 auto 10.5rem;
    padding: 0 2.4rem;
}

.about-content-matrix {
    display: flex;
    gap: 6.4rem;
    align-items: flex-start;
}

.about-narrative {
    flex: 1.2;
}

.about-narrative p {
    margin-bottom: 2rem;
}

.inline-ref {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.process-triad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--sage-light);
    padding-top: 3.2rem;
}

.triad-node strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--sage-dark);
    margin-bottom: 0.8rem;
}

.triad-node p {
    font-size: 1.4rem;
    line-height: 1.5;
}

.empirical-metrics {
    flex: 1;
    background-color: var(--paper);
    padding: 2.4rem;
    border: 1px solid var(--sage-light);
}

.metric-visual {
    height: 300px;
    margin-bottom: 2.4rem;
}

.metric-cluster {
    display: flex;
    gap: 2.4rem;
}

.metric-item {
    flex: 1;
}

.metric-val {
    font-family: var(--font-head);
    font-size: 4.8rem;
    color: var(--sage-dark);
    line-height: 1;
}

.metric-unit {
    font-size: 3.2rem;
    color: var(--accent);
    font-family: var(--font-head);
}

.metric-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--sage-mid);
    margin-top: 0.8rem;
}

/* Expertise / Services */
.service-topology {
    background-color: var(--sage-dark);
    color: var(--paper);
    padding: 9.6rem 2.4rem;
}

.service-topology .section-node {
    color: var(--paper);
}

.topology-header {
    max-width: 1280px;
    margin: 0 auto 6.4rem;
}

.topology-header p {
    font-size: 2rem;
    max-width: 600px;
    color: var(--sage-light);
}

.asymmetric-card-array {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.2rem;
}

.expertise-module {
    background-color: var(--paper);
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

.module-offset-down {
    margin-top: 4.8rem;
}

.module-wide {
    grid-column: span 2;
    flex-direction: row;
}

.expertise-module img {
    height: 250px;
}

.module-wide img {
    width: 40%;
    height: auto;
}

.module-data {
    padding: 3.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expertise-module h3 {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
}

/* Feedback */
.peer-review-strata {
    max-width: 1280px;
    margin: 8.5rem auto;
    padding: 0 2.4rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4.8rem;
    margin-top: 5.6rem;
}

.review-node {
    background: var(--paper);
    padding: 4rem;
    border-left: 4px solid var(--accent);
}

.offset-review {
    transform: translateY(4rem);
}

.review-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2.4rem;
    color: var(--sage-mid);
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.reviewer-meta img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.reviewer-meta strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
}

.reviewer-meta span {
    font-size: 1.3rem;
    color: var(--sage-mid);
}

/* Contact */
.data-intake-zone {
    background-color: var(--sage-light);
    padding: 9.6rem 2.4rem;
    margin-top: 12rem;
}

.intake-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6.4rem;
}

.micro-disclaimer {
    font-size: 1.2rem;
    color: var(--sage-mid);
    margin-top: 2.4rem;
    font-style: italic;
}

.logic-form {
    background: var(--paper);
    padding: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.input-cluster {
    margin-bottom: 2.4rem;
}

.input-cluster label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.input-cluster input,
.input-cluster textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ccc;
    font-family: var(--font-body);
    background-color: var(--sage-bg);
}

.input-cluster input:focus,
.input-cluster textarea:focus {
    outline: none;
    border-color: var(--sage-dark);
}

.logic-form .primary-engage-btn {
    width: 100%;
}

/* Footer */
.apex-base-layer {
    background-color: var(--ink);
    color: var(--sage-light);
    padding: 8rem 2.4rem 4rem;
}

.base-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4.8rem;
    margin-bottom: 6.4rem;
}

.base-brand {
    font-family: var(--font-head);
    font-size: 2.4rem;
    color: var(--paper);
    display: block;
    margin-bottom: 1.6rem;
}

.base-col strong {
    display: block;
    font-size: 1.6rem;
    color: var(--paper);
    margin-bottom: 1.6rem;
    font-family: var(--font-head);
}

.base-col a {
    display: block;
    color: var(--sage-light);
    margin-bottom: 0.8rem;
}

.base-col a:hover {
    color: var(--paper);
}

.sub-link {
    font-size: 1.2rem;
    opacity: 0.6;
    margin-top: 1.6rem;
}

.cert-list {
    list-style: none;
}

.cert-list li {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    position: relative;
    padding-left: 1.6rem;
}

.cert-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.base-copyright {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2.4rem;
    font-size: 1.3rem;
    text-align: center;
    opacity: 0.7;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .kinetic-hero-grid {
        display: flex;
        flex-direction: column-reverse;
        margin-top: 0;
    }
    .hero-data-block {
        margin-top: -6rem;
        margin-right: 0;
        width: 90%;
        align-self: flex-start;
    }
    .hero-visual-anchor img {
        height: 50vh;
    }
    .about-content-matrix {
        flex-direction: column;
    }
    .asymmetric-card-array {
        grid-template-columns: 1fr 1fr;
    }
    .module-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .structural-nav {
        display: none; /* Simplification for mobile */
    }
    .primary-thesis {
        font-size: 3.6rem;
    }
    .process-triad {
        grid-template-columns: 1fr;
    }
    .asymmetric-card-array {
        grid-template-columns: 1fr;
    }
    .module-offset-down {
        margin-top: 0;
    }
    .module-wide {
        flex-direction: column;
    }
    .module-wide img {
        width: 100%;
    }
    .review-grid {
        grid-template-columns: 1fr;
    }
    .offset-review {
        transform: none;
    }
    .intake-wrapper {
        grid-template-columns: 1fr;
    }
    .base-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .base-grid {
        grid-template-columns: 1fr;
    }
    .hero-data-block {
        padding: 3.2rem 2.4rem;
        width: 100%;
    }
}
