/* =========================================================
   Northern Medical (nmcusau.com)
   Design system: deep navy base, warm off-white, four ACES accents
   Premium · calm · clinical-but-human · editorial authority
   ========================================================= */

:root {
    /* Master brand */
    --navy: #0f1f3a;
    --navy-deep: #0a1730;
    --navy-soft: #1d3155;
    --charcoal: #1a1f29;
    --off-white: #f7f4ee;          /* warm off-white */
    --paper: #fbf9f4;
    --ink: #1d2330;
    --ink-soft: #4a5468;
    --ink-muted: #7a8294;
    --line: #e3ddd1;
    --line-soft: #ece7da;
    --white: #ffffff;
    --gold: #b8945b;               /* editorial accent */

    /* Four ACES dimensions — muted, sophisticated */
    --anatomy: #b56548;            /* grounded clay / deep terracotta */
    --anatomy-soft: #f0e2db;
    --chemistry: #3d8579;          /* balanced teal-green */
    --chemistry-soft: #dbeae6;
    --energy: #c89342;             /* warm amber / gold */
    --energy-soft: #f3e8d1;
    --soul: #4e4280;               /* deep indigo / violet */
    --soul-soft: #e2dded;

    /* Type scale — institutional editorial */
    --font-serif: 'Source Serif 4', 'Source Serif Pro', 'Times New Roman', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

    /* Layout */
    --container: 1240px;
    --container-narrow: 920px;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 31, 58, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 31, 58, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 31, 58, 0.12);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Subtle paper texture (per Art Direction brief) ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.5  0 0 0 0 0.4  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--anatomy); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25rem; }

/* ---------- Typography (institutional editorial) ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--navy);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.022em;
    font-variation-settings: "opsz" 32;
}
h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.1rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variation-settings: "opsz" 60;
}
h2 {
    font-size: clamp(1.95rem, 3.6vw, 2.8rem);
    letter-spacing: -0.025em;
    line-height: 1.12;
    font-variation-settings: "opsz" 40;
}
h3 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    letter-spacing: -0.018em;
    line-height: 1.25;
}
h4 {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
p { margin: 0 0 1rem; color: var(--ink-soft); }
.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--anatomy);
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 28px;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1px;
    background: currentColor;
}
.lead {
    font-size: 1.22rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 62ch;
    font-weight: 400;
}
/* Pull quote — editorial component */
.pull-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.35;
    color: var(--navy);
    font-style: italic;
    letter-spacing: -0.018em;
    padding: 2rem 0 2rem 2rem;
    margin: 2.5rem 0;
    border-left: 2px solid var(--anatomy);
    max-width: 90%;
    position: relative;
}
.pull-quote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--anatomy);
    opacity: 0.2;
    font-family: var(--font-serif);
    line-height: 1;
}

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6.5rem 0; }
section.tight { padding: 4rem 0; }

/* ---------- Utility bar ---------- */
.utility-bar {
    background: var(--navy-deep);
    color: var(--off-white);
    font-size: 0.82rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.utility-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.utility-bar a { color: rgba(255,255,255,0.8); }
.utility-bar a:hover { color: var(--energy); }
.utility-bar .sep { color: rgba(255,255,255,0.25); }
.lang-toggle {
    display: inline-flex;
    gap: 0.4rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.15);
    margin-left: 0.5rem;
}
.lang-toggle a {
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 500;
}
.lang-toggle a.active {
    background: var(--off-white);
    color: var(--navy-deep);
}

/* ---------- Header / Navigation ---------- */
.site-header {
    background: var(--off-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    background: rgba(247, 244, 238, 0.96);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy);
    text-decoration: none;
}
.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    flex-shrink: 0;
}
.logo-mark span {
    border-radius: 1px;
    transition: var(--transition);
}
.logo-mark span:nth-child(1) { background: var(--anatomy); }
.logo-mark span:nth-child(2) { background: var(--chemistry); }
.logo-mark span:nth-child(3) { background: var(--energy); }
.logo-mark span:nth-child(4) { background: var(--soul); }
.logo a:hover .logo-mark span { transform: scale(0.9); }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.logo-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    margin-top: 4px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}
.main-nav a {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--anatomy);
    border-bottom-color: var(--anatomy);
}
.btn-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 0.7rem 1.4rem !important;
    border-radius: var(--radius);
    border: none !important;
    font-weight: 500;
    transition: var(--transition);
}
.btn-cta:hover {
    background: var(--anatomy);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
}
.btn-primary { background: var(--navy); color: var(--white) !important; border-color: var(--navy); }
.btn-primary:hover { background: var(--anatomy); border-color: var(--anatomy); color: var(--white) !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white) !important; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy) !important; padding: 0.6rem 0; }
.btn-ghost::after { content: ' →'; transition: transform var(--transition); display: inline-block; }
.btn-ghost:hover { color: var(--anatomy) !important; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-soft) 100%);
    color: var(--off-white);
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(181, 101, 72, 0.13) 0%, transparent 40%),
        radial-gradient(circle at 75% 70%, rgba(61, 133, 121, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(200, 147, 66, 0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 500px;
    height: 500px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.06'><circle cx='100' cy='100' r='90'/><circle cx='100' cy='100' r='60'/><circle cx='100' cy='100' r='30'/><line x1='10' y1='100' x2='190' y2='100'/><line x1='100' y1='10' x2='100' y2='190'/></g></svg>") center/contain no-repeat;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero h1 {
    color: var(--off-white);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.08;
}
.hero .eyebrow { color: var(--energy); }
.hero .lead { color: rgba(247, 244, 238, 0.86); font-size: 1.25rem; max-width: 60ch; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero .btn-primary { background: var(--off-white); color: var(--navy) !important; border-color: var(--off-white); }
.hero .btn-primary:hover { background: var(--energy); border-color: var(--energy); color: var(--navy-deep) !important; }
.hero .btn-secondary { color: var(--off-white) !important; border-color: rgba(247, 244, 238, 0.5); }
.hero .btn-secondary:hover { background: var(--off-white); color: var(--navy) !important; border-color: var(--off-white); }

/* ACES composite mark in hero */
.aces-mark {
    aspect-ratio: 1;
    max-width: 380px;
    margin-left: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    padding: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}
.aces-mark-quad {
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--off-white);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.aces-mark-quad:hover { transform: scale(1.04); }
.aces-mark-quad.q-anatomy { background: linear-gradient(135deg, var(--anatomy), #8d4a31); }
.aces-mark-quad.q-chemistry { background: linear-gradient(135deg, var(--chemistry), #2a6359); }
.aces-mark-quad.q-energy { background: linear-gradient(135deg, var(--energy), #a07330); }
.aces-mark-quad.q-soul { background: linear-gradient(135deg, var(--soul), #36305b); }
.aces-mark-quad svg { width: 36px; height: 36px; opacity: 0.95; }
.aces-mark-quad .q-label {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
}

/* ---------- Trust strip ---------- */
.trust-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-style: italic;
    letter-spacing: 0.01em;
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .eyebrow { padding-left: 28px; }
.section-head .eyebrow { display: inline-block; padding-left: 28px; }
.section-head h2 { margin-bottom: 1.25rem; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.65; }
.divider-rule {
    width: 64px;
    height: 1px;
    background: var(--anatomy);
    margin: 1.5rem auto 2rem;
    position: relative;
}
.divider-rule::before,
.divider-rule::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--anatomy);
    border-radius: 50%;
    transform: translateY(-50%);
}
.divider-rule::before { left: -8px; }
.divider-rule::after { right: -8px; }
.section-head.left .divider-rule { margin-left: 0; margin-right: 0; }

/* ---------- ACES Band (4 columns) ---------- */
.aces-band {
    background: var(--paper);
    position: relative;
}
.aces-band::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right,
        var(--anatomy) 0% 25%,
        var(--chemistry) 25% 50%,
        var(--energy) 50% 75%,
        var(--soul) 75% 100%);
}
.aces-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.aces-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border-top: 3px solid;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.aces-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.aces-card.anatomy { border-color: var(--anatomy); }
.aces-card.chemistry { border-color: var(--chemistry); }
.aces-card.energy { border-color: var(--energy); }
.aces-card.soul { border-color: var(--soul); }
.aces-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.aces-card.anatomy .aces-icon { background: var(--anatomy-soft); color: var(--anatomy); }
.aces-card.chemistry .aces-icon { background: var(--chemistry-soft); color: var(--chemistry); }
.aces-card.energy .aces-icon { background: var(--energy-soft); color: var(--energy); }
.aces-card.soul .aces-icon { background: var(--soul-soft); color: var(--soul); }
.aces-icon svg { width: 32px; height: 32px; }
.aces-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.45rem;
}
.aces-card .aces-letter {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.aces-card p {
    font-size: 0.95rem;
    margin: 0;
}
.aces-cta-wrap { text-align: center; }

/* ---------- Care Lines Grid ---------- */
.care-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.care-card {
    background: var(--white);
    padding: 2.2rem 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--navy);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.care-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--anatomy);
}
.care-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.care-card h3 { margin: 0; font-size: 1.4rem; }
.care-card p { margin-bottom: 1.25rem; font-size: 0.98rem; }

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}
.badge-ins {
    background: var(--chemistry-soft);
    color: var(--chemistry);
    border: 1px solid var(--chemistry);
}
.badge-self {
    background: var(--energy-soft);
    color: #87601f;
    border: 1px solid var(--energy);
}

/* ---------- Three Pillars ---------- */
.pillars {
    background: var(--navy);
    color: var(--off-white);
    position: relative;
}
.pillars h2 { color: var(--off-white); }
.pillars .section-head p { color: rgba(247, 244, 238, 0.75); }
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}
.pillar {
    text-align: center;
    padding: 0 1rem;
}
.pillar-num {
    display: inline-block;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    line-height: 54px;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--energy);
    margin-bottom: 1.25rem;
}
.pillar h3 { color: var(--off-white); margin-bottom: 0.75rem; font-size: 1.5rem; }
.pillar p { color: rgba(247, 244, 238, 0.78); font-size: 1rem; }

/* ---------- Library / Articles cards ---------- */
.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.article-thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--paper), var(--line-soft));
    position: relative;
    overflow: hidden;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}
.article-thumb.dim-anatomy { background: linear-gradient(135deg, var(--anatomy-soft), #d9b8a5); }
.article-thumb.dim-chemistry { background: linear-gradient(135deg, var(--chemistry-soft), #a8cdc5); }
.article-thumb.dim-energy { background: linear-gradient(135deg, var(--energy-soft), #d8b97a); }
.article-thumb.dim-soul { background: linear-gradient(135deg, var(--soul-soft), #b1a7cb); }
.article-body {
    padding: 1.5rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--anatomy);
    margin-bottom: 0.6rem;
}
.article-tag.tag-chemistry { color: var(--chemistry); }
.article-tag.tag-energy { color: #87601f; }
.article-tag.tag-soul { color: var(--soul); }
.article-tag.tag-all { color: var(--navy); }
.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--anatomy); }
.article-card p {
    font-size: 0.92rem;
    margin: 0 0 1rem;
    flex: 1;
}
.article-meta {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-top: auto;
}

/* ---------- Newsletter inline ---------- */
.newsletter-band {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.newsletter-band h3 { margin-bottom: 0.6rem; }
.newsletter-band p { margin: 0; font-size: 0.98rem; }
.newsletter-form {
    display: flex;
    gap: 0.5rem;
}
.newsletter-form input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--ink);
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--anatomy);
}

/* ---------- Research highlight ---------- */
.research-highlight {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--energy);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.research-stat {
    text-align: center;
}
.research-stat .stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 500;
    color: var(--energy);
    line-height: 1;
}
.research-stat .stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
}

/* ---------- Testimonial / quote ---------- */
.quote-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    position: relative;
}
.quote-card::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--anatomy);
    background: var(--off-white);
    padding: 0 1rem;
    line-height: 1;
}
.quote-card p {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.quote-attr {
    font-size: 0.9rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- Quicklinks ---------- */
.quicklinks {
    background: var(--paper);
}
.quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.quicklink {
    display: block;
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--navy);
    font-weight: 500;
    transition: var(--transition);
}
.quicklink:hover {
    border-color: var(--anatomy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.quicklink-icon {
    display: block;
    margin: 0 auto 0.5rem;
    width: 28px;
    height: 28px;
    color: var(--anatomy);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
    background: var(--navy);
    color: var(--off-white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-header.dim-anatomy { background: linear-gradient(135deg, #6d3a26, var(--navy)); border-bottom: 4px solid var(--anatomy); }
.page-header.dim-chemistry { background: linear-gradient(135deg, #1f4d45, var(--navy)); border-bottom: 4px solid var(--chemistry); }
.page-header.dim-energy { background: linear-gradient(135deg, #6e5320, var(--navy)); border-bottom: 4px solid var(--energy); }
.page-header.dim-soul { background: linear-gradient(135deg, #2c2654, var(--navy)); border-bottom: 4px solid var(--soul); }
.page-header h1 { color: var(--off-white); margin-bottom: 1rem; }
.page-header .eyebrow { color: var(--energy); }
.page-header .lead { color: rgba(247, 244, 238, 0.85); }
.breadcrumb {
    font-size: 0.85rem;
    color: rgba(247, 244, 238, 0.6);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(247, 244, 238, 0.85); }
.breadcrumb a:hover { color: var(--energy); }
.breadcrumb .sep { margin: 0 0.5rem; }

/* ---------- Two-column content ---------- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
.content-grid .prose h2 { margin-top: 3rem; }
.content-grid .prose h2:first-child { margin-top: 0; }
.content-grid .prose h3 { margin-top: 2.5rem; }
.content-grid .prose p { font-size: 1.05rem; line-height: 1.75; }
.content-grid .prose ul li { margin-bottom: 0.5rem; }

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.sidebar-box {
    background: var(--paper);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
}
.sidebar-box h4 {
    margin-bottom: 1rem;
    color: var(--navy);
    text-transform: none;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0;
    font-weight: 600;
}
.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-box li { padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); }
.sidebar-box li:last-child { border: none; }
.sidebar-box a { font-size: 0.92rem; color: var(--ink-soft); display: block; }
.sidebar-box a:hover { color: var(--anatomy); }

.entity-line {
    font-size: 0.85rem;
    color: var(--ink-muted);
    font-style: italic;
    padding: 1rem;
    background: var(--paper);
    border-left: 3px solid var(--line);
    margin: 1.5rem 0;
}

/* ---------- Dimension page (deep) ---------- */
.dim-hero {
    padding: 6rem 0 4rem;
    text-align: center;
}
.dim-hero .dim-icon-large {
    width: 110px;
    height: 110px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dim-hero .dim-icon-large svg { width: 56px; height: 56px; }
.dim-letter {
    display: block;
    font-family: var(--font-serif);
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ---------- Service matrix ---------- */
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.matrix-table thead {
    background: var(--navy);
    color: var(--off-white);
}
.matrix-table th, .matrix-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.matrix-table th {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table tr:hover { background: var(--paper); }
.dim-chip {
    display: inline-block;
    font-size: 0.78rem;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 10px;
    font-weight: 500;
}
.chip-a { background: var(--anatomy-soft); color: var(--anatomy); }
.chip-c { background: var(--chemistry-soft); color: var(--chemistry); }
.chip-e { background: var(--energy-soft); color: #87601f; }
.chip-s { background: var(--soul-soft); color: var(--soul); }

/* ---------- Image placeholders ---------- */
.img-placeholder {
    background: linear-gradient(135deg, var(--paper), var(--line-soft));
    border: 1px dashed var(--ink-muted);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    text-align: center;
    padding: 2rem;
    font-style: italic;
    font-size: 0.9rem;
}
.img-placeholder.tall { min-height: 320px; }
.img-placeholder.wide { aspect-ratio: 21/9; }
.img-placeholder.square { aspect-ratio: 1; }
.img-placeholder::before {
    content: '';
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8294' stroke-width='1.5'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><path d='M21 15l-5-5L5 21'/></svg>") center/contain no-repeat;
}
.img-placeholder small {
    color: var(--ink-muted);
    margin-top: 0.4rem;
    font-size: 0.78rem;
    display: block;
}

/* ---------- Locations grid ---------- */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.location-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.location-card h4 {
    color: var(--navy);
    font-family: var(--font-serif);
    text-transform: none;
    font-size: 1.25rem;
    letter-spacing: 0;
    margin-bottom: 1rem;
}
.location-card .addr, .location-card .phone, .location-card .hours {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--ink-soft);
}

/* ---------- Contact form ---------- */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--paper);
    color: var(--ink);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--anatomy);
    background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.captcha-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.captcha-row img {
    height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* ---------- Footer ---------- */
footer {
    background: var(--navy-deep);
    color: rgba(247, 244, 238, 0.75);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}
footer h4 {
    color: var(--off-white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 0.5rem; }
footer a { color: rgba(247, 244, 238, 0.75); font-size: 0.92rem; }
footer a:hover { color: var(--energy); }
.footer-brand .logo-mark { width: 32px; height: 32px; }
.footer-brand p {
    color: rgba(247, 244, 238, 0.65);
    font-size: 0.9rem;
    margin-top: 1rem;
}
.entity-disclosure {
    font-size: 0.82rem;
    color: rgba(247, 244, 238, 0.55);
    line-height: 1.7;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.5rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(247, 244, 238, 0.5);
}
.footer-partner {
    text-align: right;
    font-size: 0.82rem;
}
.footer-partner a { color: var(--energy); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .aces-mark { max-width: 320px; margin: 0 auto; }
    .aces-grid { grid-template-columns: repeat(2, 1fr); }
    .care-grid, .library-grid, .pillars-grid { grid-template-columns: 1fr; }
    .pillars-grid { gap: 2.5rem; }
    .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .sidebar { position: static; }
    .newsletter-band { grid-template-columns: 1fr; }
    .research-highlight { grid-template-columns: 1fr; padding: 2rem; }
    .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-partner { text-align: center; }

    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--off-white);
        border-bottom: 1px solid var(--line);
        padding: 1rem 1.5rem 2rem;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
    .main-nav li { border-bottom: 1px solid var(--line-soft); }
    .main-nav a { display: block; padding: 0.9rem 0; }
    .main-nav .btn-cta { display: inline-block; margin-top: 1rem; text-align: center; }
}

@media (max-width: 640px) {
    section { padding: 3.5rem 0; }
    .hero { padding: 4rem 0; }
    .aces-grid { grid-template-columns: 1fr; }
    .quicklinks-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .utility-bar .container { gap: 0.75rem; font-size: 0.75rem; }
    .matrix-table { font-size: 0.85rem; }
    .matrix-table th, .matrix-table td { padding: 0.7rem; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
:focus-visible {
    outline: 2px solid var(--anatomy);
    outline-offset: 3px;
    border-radius: 2px;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--navy);
    color: var(--off-white);
    padding: 0.75rem 1.25rem;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: var(--off-white) !important; }

/* ============================================================
   PREMIUM ELEVATION — Phase 2 additions
   ============================================================ */

/* ---------- Hero composite mark assembly animation ---------- */
@keyframes mark-quad-anatomy {
    0% { transform: translate(-80px, -80px) scale(0.7); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes mark-quad-chemistry {
    0% { transform: translate(80px, -80px) scale(0.7); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes mark-quad-energy {
    0% { transform: translate(-80px, 80px) scale(0.7); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes mark-quad-soul {
    0% { transform: translate(80px, 80px) scale(0.7); opacity: 0; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
.aces-mark .aces-mark-quad { opacity: 0; }
.aces-mark.animate-in .q-anatomy { animation: mark-quad-anatomy 0.9s var(--ease-soft) 0.15s forwards; }
.aces-mark.animate-in .q-chemistry { animation: mark-quad-chemistry 0.9s var(--ease-soft) 0.25s forwards; }
.aces-mark.animate-in .q-energy { animation: mark-quad-energy 0.9s var(--ease-soft) 0.35s forwards; }
.aces-mark.animate-in .q-soul { animation: mark-quad-soul 0.9s var(--ease-soft) 0.45s forwards; }

/* ---------- Hero title word-by-word fade-in ---------- */
.hero h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
}
.hero h1.animate-in .word { opacity: 1; transform: translateY(0); }

/* ---------- Parallax hero background ---------- */
.hero { --parallax-y: 0px; }
.hero::before {
    will-change: transform;
    transform: translateY(var(--parallax-y));
    transition: transform 0.1s linear;
}
.hero::after {
    will-change: transform;
    transform: translateY(calc(var(--parallax-y) * 0.6));
    transition: transform 0.1s linear;
}

/* ---------- Accreditation strip ---------- */
.accreditation-band {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 2.5rem 0;
}
.accreditation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.accred-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
    font-weight: 500;
}
.accred-items {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.accred-item {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--navy);
    letter-spacing: -0.01em;
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
}
.accred-item:first-child { border-left: none; padding-left: 0; }
.accred-item strong { font-weight: 500; }
.accred-item small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ---------- Provider card ---------- */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.provider-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: var(--transition);
}
.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.provider-portrait {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--paper), var(--line-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-style: italic;
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
    position: relative;
}
.provider-portrait::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8294' stroke-width='1' opacity='0.3'><circle cx='12' cy='8' r='4'/><path d='M4 22c0-4.4 3.6-8 8-8s8 3.6 8 8'/></svg>") center/40% no-repeat;
}
.provider-body {
    padding: 1.5rem;
}
.provider-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--navy);
    letter-spacing: -0.015em;
    margin: 0 0 0.25rem;
    font-weight: 500;
}
.provider-credentials {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 0.75rem;
}
.provider-specialty {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.provider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.provider-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink-soft);
}

/* ---------- Newsletter issue card ---------- */
.issue-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.issue-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--anatomy);
}
.issue-num {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--anatomy);
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    font-style: italic;
}
.issue-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--navy);
    margin: 0 0 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.issue-meta {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-top: auto;
    padding-top: 1rem;
}
.issue-meta .dot { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- Editorial photograph caption block ---------- */
.editorial-photo {
    margin: 3rem 0;
    text-align: center;
}
.editorial-photo .img-placeholder {
    margin-bottom: 1rem;
}
.editorial-photo figcaption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--ink-muted);
    letter-spacing: 0.01em;
}

/* ---------- Numbered list — institutional ---------- */
.numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: nl;
}
.numbered-list > li {
    counter-increment: nl;
    padding: 1.5rem 0 1.5rem 4rem;
    position: relative;
    border-bottom: 1px solid var(--line-soft);
}
.numbered-list > li:last-child { border-bottom: none; }
.numbered-list > li::before {
    content: counter(nl, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--anatomy);
    font-style: italic;
    line-height: 1;
}

/* ---------- Refined buttons (premium feel) ---------- */
.btn { letter-spacing: 0.01em; }
.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-1px); }

/* ---------- Hero refinement ---------- */
.hero h1 { font-weight: 400; }
.hero .lead { font-weight: 400; }

/* ---------- Article card refinement ---------- */
.article-card {
    border: 1px solid var(--line);
}
.article-card h3 {
    letter-spacing: -0.02em;
    font-weight: 500;
}

/* ---------- Footer refinement ---------- */
footer h4 { color: rgba(247, 244, 238, 0.6); }
.footer-brand .logo-name {
    letter-spacing: -0.015em;
    font-weight: 500;
}

/* ---------- Service-line care card refinement ---------- */
.care-card h3 { letter-spacing: -0.02em; font-weight: 500; }
.aces-card h3 { letter-spacing: -0.02em; font-weight: 500; }
.aces-card .aces-letter {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-style: normal;
    font-family: var(--font-sans);
    color: var(--ink-muted);
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* ---------- Trust strip refinement ---------- */
.trust-strip {
    padding: 1.75rem 0;
    font-size: 1rem;
}
