/* =========================================================
   Strategic Horizons — editorial / parchment edition
   ========================================================= */

:root {
    /* palette — warm paper, deep ink, single brass accent */
    --paper:       #f3ede0;
    --paper-deep:  #ebe2d0;
    --paper-soft:  #f7f2e7;
    --ink:         #1a1612;
    --ink-soft:    #4a4338;
    --ink-muted:   #7a7163;
    --ink-faint:   #a59c8c;
    --rule:        #c9bfa6;
    --rule-soft:   #ddd3bb;
    --brass:       #8c6f30;
    --brass-deep:  #6e5722;

    /* dark accent block */
    --ink-block:   #161310;
    --ink-block-2: #221d16;

    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --container:    1240px;
    --gutter:       clamp(1.5rem, 4vw, 3rem);
    --section-pad:  clamp(5rem, 10vw, 9rem);

    --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); position: relative; }

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 5rem;
}
@media (min-width: 900px) {
    .two-col { grid-template-columns: minmax(220px, 1fr) 2fr; }
}

/* ---------- type helpers ---------- */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 1.75rem;
    display: inline-block;
    position: relative;
    padding-left: 2.75rem;
}
.eyebrow::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    width: 1.85rem; height: 1px;
    background: var(--brass); opacity: 0.85;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.section-title.large { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }

.section-sub {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 58ch;
    line-height: 1.65;
}

.section-head { margin-bottom: 4.5rem; max-width: 760px; }

.lede {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.05vw, 1.75rem);
    line-height: 1.42;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 1.6rem;
}
.lede:last-child { margin-bottom: 0; }
.lede.muted { color: var(--ink-muted); }

.accent-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--brass);
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.85rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--brass-deep);
    border-color: var(--brass-deep);
    color: var(--paper);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(243, 237, 224, 0.78);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled {
    background: rgba(243, 237, 224, 0.94);
    border-bottom-color: var(--rule-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.brand {
    display: inline-flex; align-items: center; gap: 0.95rem;
    font-weight: 500; color: var(--ink);
}
.brand:hover .brand-mark { border-color: var(--brass); color: var(--brass); }
.brand-mark {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease);
}
.brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.015em;
}
@media (max-width: 540px) { .brand-name { display: none; } }

.site-nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
    position: relative;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0.45rem;
    height: 1px; background: var(--brass);
}
.nav-link.nav-cta {
    margin-left: 0.8rem;
    border: 1px solid var(--ink);
    padding: 0.6rem 1.15rem;
}
.nav-link.nav-cta:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding-top: clamp(8rem, 18vh, 12rem);
    padding-bottom: 0;
    overflow: hidden;
    isolation: isolate;
}

/* hide the old decorative bg layers — keep elements for backwards compat */
.hero-bg, .hero-gradient, .hero-grain { display: none; }

.hero-inner {
    padding-top: clamp(2rem, 6vh, 4rem);
    padding-bottom: clamp(4rem, 9vh, 6.5rem);
    max-width: 1100px;
    border-bottom: 1px solid var(--rule-soft);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.8rem, 7.2vw, 5.75rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 2.25rem;
    max-width: 17ch;
}

.hero-lede {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.95vw, 1.65rem);
    line-height: 1.46;
    color: var(--ink-soft);
    max-width: 60ch;
    margin-bottom: 2.75rem;
    font-weight: 400;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-meta {
    padding: 2.5rem 0 0;
    margin-top: 2.5rem;
}

.hero-meta-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    border-top: 1px solid var(--rule-soft);
    padding-top: 2.5rem;
}
@media (min-width: 720px) {
    .hero-meta-inner { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.meta-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1.4rem;
    border-left: 2px solid var(--brass);
}
.stat-num {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1;
    font-style: italic;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--ink-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* ---------- page hero (about) ---------- */
.page-hero {
    position: relative;
    padding-top: clamp(9rem, 20vh, 13rem);
    padding-bottom: clamp(4rem, 9vh, 7rem);
    border-bottom: 1px solid var(--rule-soft);
}
.page-hero-inner { max-width: 1000px; }
.page-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
    color: var(--ink);
    margin-bottom: 2rem;
    max-width: 22ch;
}
.page-lede {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.75vw, 1.5rem);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 66ch;
    font-weight: 400;
}

/* ---------- sections ---------- */
.section-philosophy { background: var(--paper); }
.section-industries { background: var(--paper-deep); }
.section-about-intro { background: var(--paper); }
.section-team { background: var(--paper-deep); }
.section-philosophy-deep { background: var(--paper); }
.section-mandate { background: var(--paper-deep); }

/* ---------- industry cards (editorial / no boxes) ---------- */
.industry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .industry-grid { grid-template-columns: repeat(4, 1fr); }
    .industry-grid.three { grid-template-columns: repeat(3, 1fr); }
}

.industry-card {
    position: relative;
    padding: 3rem 2.25rem 2.5rem 0;
    background: transparent;
    border-bottom: 1px solid var(--rule);
    transition: padding 0.4s var(--ease);
}
@media (min-width: 1000px) {
    .industry-card {
        padding: 3rem 2.5rem 3.5rem;
        border-bottom: none;
        border-right: 1px solid var(--rule);
    }
    .industry-card:last-child { border-right: none; padding-right: 0; }
    .industry-card:first-child { padding-left: 0; }
}

.industry-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--brass);
    letter-spacing: 0.05em;
    margin-bottom: 1.75rem;
    font-weight: 500;
}
.industry-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1.1rem;
    letter-spacing: -0.008em;
    line-height: 1.1;
}
.industry-copy {
    font-size: 0.97rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}
.industry-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.industry-tags li {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--rule);
}

/* ---------- legacy quote — dark inset block ---------- */
.section-legacy {
    background: var(--ink-block);
    color: var(--paper);
    text-align: center;
    padding-top: clamp(6rem, 12vw, 10rem);
    padding-bottom: clamp(6rem, 12vw, 10rem);
}
.legacy-quote { max-width: 920px; margin: 0 auto; }
.quote-mark {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(5rem, 10vw, 8.5rem);
    color: var(--brass);
    line-height: 0.5;
    opacity: 0.55;
    margin-bottom: 1.5rem;
}
.legacy-quote blockquote {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    line-height: 1.18;
    color: var(--paper);
    letter-spacing: -0.012em;
    margin-bottom: 2.25rem;
}
.legacy-quote .accent-italic { color: #d9b76b; }
.quote-attribution {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(243, 237, 224, 0.5);
}

/* ---------- pillars (about) ---------- */
.pillar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
    .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
    padding: 2.75rem 0 2.75rem;
    border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
    .pillar {
        padding: 3rem 2.5rem;
        border-bottom: none;
        border-right: 1px solid var(--rule);
    }
    .pillar:first-child { padding-left: 0; }
    .pillar:last-child { padding-right: 0; border-right: none; }
}
.pillar-icon {
    width: 44px; height: 44px;
    color: var(--brass);
    margin-bottom: 1.75rem;
}
.pillar-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.85rem;
    letter-spacing: -0.005em;
}
.pillar-copy {
    font-size: 0.97rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ---------- philosophy / principles grid ---------- */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
    .philosophy-grid { grid-template-columns: repeat(3, 1fr); }
}
.philosophy-item {
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
    .philosophy-item {
        padding: 3rem 2.5rem;
        border-bottom: none;
        border-right: 1px solid var(--rule);
    }
    .philosophy-item:first-child { padding-left: 0; }
    .philosophy-item:last-child { padding-right: 0; border-right: none; }
}
.philosophy-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--brass);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.philosophy-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.9rem;
    letter-spacing: -0.005em;
}
.philosophy-copy {
    font-size: 0.97rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ---------- contact ---------- */
.section-contact {
    background: var(--ink-block);
    color: var(--paper);
}
.section-contact .section-title { color: var(--paper); margin-bottom: 1.5rem; }
.section-contact .section-sub { color: rgba(243, 237, 224, 0.7); }
.section-contact .eyebrow { color: #d9b76b; }
.section-contact .eyebrow::before { background: #d9b76b; }
.section-contact .btn-primary {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}
.section-contact .btn-primary:hover {
    background: #d9b76b;
    border-color: #d9b76b;
    color: var(--ink);
}
.contact-inner { max-width: 820px; }
.section-contact .btn { margin-top: 2.25rem; }

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--rule-soft);
    padding: 3rem 0 2rem;
    background: var(--paper);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    text-align: center;
}
@media (min-width: 720px) {
    .footer-inner { grid-template-columns: 1fr auto 1fr; text-align: left; }
    .footer-tag { text-align: center; }
    .footer-copy { text-align: right; }
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
    justify-self: start;
}
@media (max-width: 720px) { .footer-brand { justify-self: center; } }
.footer-tag { color: var(--ink-muted); font-size: 0.85rem; letter-spacing: 0.04em; }
.footer-copy { color: var(--ink-faint); font-size: 0.78rem; letter-spacing: 0.05em; }

/* ---------- reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
