:root {
    /* Brand pack palette */
    --ink:        #111827;   /* primary text + dark-mode bg accent */
    --charcoal:   #1F2937;
    --emerald:    #10B981;
    --deep:       #059669;
    --slate:      #4B5563;
    --slate-2:    #6B7280;
    --line:       #E5E7EB;
    --line-soft:  #F3F4F6;
    --bg:         #FFFFFF;
    --bg-alt:     #FAFAF7;   /* warm off-white, NOT cream */
    --bg-dark:    #0B0E13;   /* clinical monitor */

    --sans:  'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --gutter: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 16px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.022em; line-height: 1.05; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease, background .2s ease; }

/* ==================== STATUS TICKER ==================== */
.ticker {
    background: var(--ink);
    color: #E5E7EB;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 8px 0;
    overflow: hidden;
    border-bottom: 1px solid #00000033;
}
.ticker-track {
    display: inline-flex;
    gap: 4rem;
    white-space: nowrap;
    padding-left: 4rem;
    animation: ticker 60s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 0.6rem; }
.ticker-track .dot { width: 6px; height: 6px; background: var(--emerald); border-radius: 50%; box-shadow: 0 0 10px var(--emerald); }
.ticker-track .sep { color: #4B5563; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==================== NAV ==================== */
nav.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(120%) blur(8px);
    -webkit-backdrop-filter: saturate(120%) blur(8px);
}
/* Brand mark — matches brand pack: sans wordmark with dot far right, emerald HEALTHWORKS underneath */
.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}
.brand-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.45em;
}
.brand-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.brand-dot {
    display: inline-block;
    width: 9px; height: 9px;
    background: var(--emerald);
    border-radius: 50%;
    transform: translateY(-2px);
}
.brand-sub {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--emerald);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    margin-top: 4px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
}
.nav-links a { color: var(--slate); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .li-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--slate);
    transition: all .2s ease;
}
.nav-links .li-icon:hover { background: var(--emerald); color: var(--bg); border-color: var(--emerald); }
.nav-links .li-icon svg { width: 14px; height: 14px; }

/* ==================== HERO ==================== */
.hero {
    position: relative;
    padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(60px, 10vh, 120px);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(16,185,129,0.08) 0%, transparent 55%),
        var(--bg);
}

/* Atmospheric ECG behind the hero text — full-width, faint, slowly drifting */
.hero-ecg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    mask-image: radial-gradient(ellipse 75% 50% at 50% 60%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 75% 50% at 50% 60%, #000 30%, transparent 80%);
}
.hero-ecg svg { width: 100%; height: 100%; display: block; }
.hero-ecg .grid-l { stroke: #E2E8F0; stroke-width: 0.6; fill: none; }
.hero-ecg .baseline { stroke: rgba(16,185,129,.12); stroke-width: 1; fill: none; }
.hero-ecg .trace-base {
    stroke: rgba(16,185,129,.18);
    stroke-width: 1.4;
    fill: none;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.hero-ecg .trace-live {
    stroke: var(--emerald);
    stroke-width: 1.8;
    fill: none;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(16,185,129,.5));
    stroke-dasharray: 110 4400;
    stroke-dashoffset: 0;
    animation: hero-sweep 6s linear infinite;
}
@keyframes hero-sweep {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -4510; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
}
.hero-meta {
    display: flex; gap: 22px; align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 28px;
    opacity: 0; animation: rise .8s .05s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-meta .live-pip {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--deep);
}
.hero-meta .live-pip::before {
    content: ""; width: 7px; height: 7px;
    background: var(--emerald); border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16,185,129,.7);
    animation: pulse-dot 1.8s ease-out infinite;
}
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
    70%  { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero h1 {
    font-size: clamp(2.6rem, 6.6vw, 5.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 14ch;
    margin-bottom: 0.5em;
    opacity: 0; animation: rise 1s .15s cubic-bezier(.22,1,.36,1) forwards;
}
.hero h1 .accent {
    color: var(--emerald);
    font-weight: 700;
}
.hero-lede {
    max-width: 56ch;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 400;
    color: var(--slate);
    margin-bottom: 2.5rem;
    opacity: 0; animation: rise 1s .3s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-actions {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    opacity: 0; animation: rise 1s .45s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.btn {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-fill { background: var(--emerald); color: white; box-shadow: 0 6px 20px -8px rgba(16,185,129,.5); }
.btn-fill:hover { background: var(--deep); transform: translateY(-1px); box-shadow: 0 10px 25px -8px rgba(16,185,129,.6); }
.btn-outline { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* Hero figure mark in the corner — small clinical-style label */
.hero-mark {
    position: absolute;
    right: var(--gutter);
    bottom: 28px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate-2);
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.6;
    z-index: 2;
    opacity: 0; animation: rise 1.2s .8s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-mark span:first-child { color: var(--deep); }

/* ==================== SECTION FRAME ==================== */
section.folio {
    padding: clamp(72px, 10vh, 120px) var(--gutter);
    border-top: 1px solid var(--line);
    max-width: 100%;
}
section.folio:nth-of-type(even) { background: var(--bg-alt); }

.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.section-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--deep);
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 22ch;
}
.section-head h2 .accent { color: var(--emerald); }

/* ==================== PLATFORMS — case-files grid ==================== */
.casefiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.casefile {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.casefile:hover { transform: translateY(-3px); border-color: rgba(16,185,129,.45); box-shadow: 0 22px 50px -28px rgba(16,185,129,.3); }
.casefile-head {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--slate);
}
.casefile-head .status {
    display: inline-flex; align-items: center; gap: 6px; color: var(--deep);
}
.casefile-head .status::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--emerald);
}
.casefile-head .status.draft::before { background: #F59E0B; }
.casefile h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.casefile p {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
    flex-grow: 1;
}
.casefile-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.casefile-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
}
.casefile a.visit {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: gap .2s ease, color .2s ease, border-color .2s ease;
}
.casefile a.visit:hover { color: var(--deep); gap: 10px; border-bottom-color: var(--deep); }

/* ==================== ASPIRATIONS ==================== */
.aspirations {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}
.aspirations .body p {
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    line-height: 1.65;
    margin-bottom: 1em;
    color: var(--ink);
    max-width: 60ch;
}
.aspirations .body p .emph { color: var(--deep); font-weight: 600; }

.what-list {
    border-top: 1px solid var(--line);
}
.what-list h4 {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--slate);
    padding: 24px 0 14px;
}
.what-list h4:first-child { padding-top: 24px; }
.what-list h4.do { color: var(--deep); }
.what-list ul { list-style: none; }
.what-list li {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--ink);
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.what-list li::before {
    content: "+"; color: var(--emerald); font-family: var(--mono); font-weight: 500; font-size: 0.85rem;
}
.what-list li.no::before { content: "−"; color: #DC2626; }

/* ==================== STUDIO NOTES ==================== */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.note {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.note:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(0,0,0,.18); }
.note .stamp {
    display: flex; justify-content: space-between;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--slate);
}
.note .stamp .pub { color: var(--deep); }
.note h4 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.note p { font-size: 0.92rem; color: var(--slate); line-height: 1.6; }
.read-more {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 1px;
    margin-top: 28px;
    transition: gap .2s ease, color .2s ease, border-color .2s ease;
}
.read-more:hover { color: var(--deep); gap: 14px; border-bottom-color: var(--deep); }

/* ==================== FOOTER ==================== */
footer {
    background: var(--ink);
    color: #D1D5DB;
    padding: 80px var(--gutter) 32px;
}
footer .ftr-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}
footer h5 {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 18px;
}
footer p, footer li, footer a { font-size: 0.92rem; color: #D1D5DB; line-height: 1.7; }
footer ul { list-style: none; }
footer a:hover { color: var(--emerald); }
footer .ftr-brand-row { display: flex; align-items: baseline; gap: 0.45em; margin-bottom: 6px; }
footer .ftr-brand {
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
}
footer .ftr-brand-dot {
    width: 8px; height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    transform: translateY(-2px);
}
footer .ftr-sub {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.55rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 18px;
}
footer .legal {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid #ffffff14;
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6B7280;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== CHATBOT ==================== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}
.chat-launch {
    position: relative;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--emerald);
    color: white;
    box-shadow: 0 14px 32px -10px rgba(16,185,129,.55);
    display: grid; place-items: center;
    transition: transform .2s ease, background .2s ease;
}
.chat-launch:hover { transform: translateY(-2px); background: var(--deep); }
.chat-launch::before {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    border: 1.5px solid rgba(16,185,129,.55);
    animation: chat-pulse 2.4s ease-out infinite;
}
@keyframes chat-pulse {
    0%   { transform: scale(0.95); opacity: .9; }
    100% { transform: scale(1.4); opacity: 0; }
}
.chat-launch svg { width: 22px; height: 22px; }
.chat-launch .ico-x { display: none; }
.chat-widget.open .chat-launch .ico-msg { display: none; }
.chat-widget.open .chat-launch .ico-x { display: block; }

.chat-panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: min(380px, calc(100vw - 32px));
    height: 540px;
    max-height: calc(100vh - 120px);
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-widget.open .chat-panel {
    display: flex;
    animation: panel-in .28s cubic-bezier(.22,1,.36,1);
}
@keyframes panel-in {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.chat-head {
    background: var(--ink);
    color: white;
    padding: 14px 18px 12px;
    position: relative;
}
.chat-head h6 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.chat-head .sub {
    font-family: var(--sans);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-top: 4px;
}
.chat-head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}
.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex; flex-direction: column; gap: 10px;
    background: var(--bg-alt);
}
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.msg.user { align-self: flex-end; background: var(--ink); color: white; border-bottom-right-radius: 4px; }
.msg.bot a { color: var(--deep); border-bottom: 1px solid var(--deep); }
.msg.error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--slate);
    animation: typing 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-3px); opacity: 1; }
}
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.78rem;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink);
    transition: all .15s ease;
}
.chip:hover { background: var(--ink); color: white; border-color: var(--ink); }
.chat-input {
    border-top: 1px solid var(--line);
    padding: 10px;
    display: flex; gap: 8px; align-items: flex-end;
    background: var(--bg);
}
.chat-input textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: var(--sans);
    font-size: 0.92rem;
    line-height: 1.45;
    padding: 8px 6px;
    background: transparent;
    min-height: 36px;
    max-height: 110px;
    color: var(--ink);
}
.chat-send {
    background: var(--emerald);
    color: white;
    border: none;
    border-radius: 10px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-send:not(:disabled):hover { background: var(--deep); transform: translateY(-1px); }
.chat-foot {
    font-family: var(--mono);
    font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
    text-align: center;
    padding: 6px 8px 10px;
    color: var(--slate);
    background: var(--bg);
    border-top: 1px solid var(--line);
}
.chat-foot a { color: var(--deep); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .aspirations { grid-template-columns: 1fr; }
    footer .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    footer .legal { flex-direction: column; gap: 10px; }
    .nav-links { gap: 18px; }
    .nav-links .hide-sm { display: none; }
}
@media (max-width: 700px) {
    nav.top { padding: 16px var(--gutter); }
    .brand-name { font-size: 1.3rem; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); max-width: 18ch; }
    .hero-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .hero-meta, .hero h1, .hero-lede, .hero-actions, .hero-mark { opacity: 1 !important; }
}

/* ============================================================
   INTERIOR PAGES
   ============================================================ */
.page-hero { padding: clamp(64px,9vw,120px) var(--gutter) clamp(48px,6vw,80px); border-bottom:1px solid var(--line); background:var(--bg); }
.page-hero .inner { max-width:1100px; margin:0 auto; }
.page-hero h1 { font-size:clamp(2.4rem,5.6vw,4.2rem); font-weight:800; letter-spacing:-0.035em; line-height:1.02; max-width:16ch; margin:18px 0 0; }
.page-hero h1 .accent { color:var(--emerald); }
.page-hero .lede { margin-top:22px; max-width:62ch; font-size:clamp(1.02rem,1.5vw,1.2rem); color:var(--slate); line-height:1.65; }
.page-hero .lede + .lede { margin-top:14px; }
.eyebrow { font-family:var(--mono); font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--emerald); font-weight:500; }

.svc-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:44px; }
.svc { background:var(--bg); padding:34px 30px 32px; transition:background .2s ease; }
.svc:hover { background:var(--bg-alt); }
.svc .num { font-family:var(--mono); font-size:11px; color:var(--slate-2); letter-spacing:0.14em; }
.svc h3 { font-size:1.18rem; font-weight:700; letter-spacing:-0.02em; margin:12px 0 10px; }
.svc p { color:var(--slate); font-size:0.95rem; line-height:1.62; margin:0; }
.svc ul { margin:14px 0 0; padding:0; list-style:none; }
.svc li { position:relative; padding-left:18px; font-size:0.9rem; color:var(--slate); line-height:1.75; }
.svc li::before { content:""; position:absolute; left:0; top:0.62em; width:6px; height:1px; background:var(--emerald); }

.engage { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; margin-top:40px; }
.engage .card { border:1px solid var(--line); border-top:3px solid var(--emerald); padding:30px 26px; background:var(--bg); }
.engage .card h3 { font-size:1.06rem; font-weight:700; letter-spacing:-0.015em; margin:0 0 12px; }
.engage .card p { color:var(--slate); font-size:0.93rem; line-height:1.65; margin:0; }

.cta-band { background:var(--bg-dark); color:#E5E7EB; padding:clamp(56px,7vw,88px) var(--gutter); text-align:center; }
.cta-band h2 { color:#fff; font-size:clamp(1.7rem,3.4vw,2.6rem); font-weight:800; letter-spacing:-0.03em; margin:0 0 14px; }
.cta-band h2 .accent { color:var(--emerald); }
.cta-band p { color:#9CA3AF; max-width:56ch; margin:0 auto 30px; font-size:1rem; line-height:1.65; }
.cta-band .btn-fill { background:var(--emerald); border-color:var(--emerald); }
.cta-band .btn-fill:hover { background:var(--deep); border-color:var(--deep); }
.cta-band .btn-outline { border-color:#374151; color:#E5E7EB; }
.cta-band .btn-outline:hover { border-color:var(--emerald); color:#fff; }

.philosophy { max-width:900px; }
.philosophy p { font-size:clamp(1.02rem,1.5vw,1.18rem); color:var(--slate); line-height:1.7; margin:0 0 16px; }
.philosophy .pull { font-size:clamp(1.3rem,2.6vw,1.9rem); font-weight:700; color:var(--ink); letter-spacing:-0.025em; line-height:1.3; border-left:3px solid var(--emerald); padding-left:24px; margin:32px 0 0; }

.prose { max-width:68ch; }
.prose p { color:var(--slate); line-height:1.72; margin:0 0 18px; font-size:1rem; }
.prose h3 { font-size:1.1rem; font-weight:700; letter-spacing:-0.02em; margin:28px 0 10px; color:var(--ink); }
.prose strong { color:var(--ink); font-weight:600; }

.contact-wrap { display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,72px); align-items:start; }
@media (max-width:860px){ .contact-wrap{ grid-template-columns:1fr; } }
.field { margin-bottom:20px; }
.field label { display:block; font-family:var(--mono); font-size:10.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--slate-2); margin-bottom:8px; }
.field input,.field select,.field textarea { width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:6px; font-family:var(--sans); font-size:0.95rem; color:var(--ink); background:var(--bg); transition:border-color .18s ease; }
.field input:focus,.field select:focus,.field textarea:focus { outline:none; border-color:var(--emerald); }
.field textarea { min-height:150px; resize:vertical; }
.form-note { font-size:0.82rem; color:var(--slate-2); line-height:1.6; margin-top:14px; }
.form-note a { color:var(--emerald); text-decoration:underline; }

footer .ftr-prop { font-size:0.9rem; color:var(--slate); max-width:46ch; line-height:1.6; margin-top:10px; }
@media (max-width:720px){ .nav-links{ gap:16px; font-size:0.78rem; } }
/* ============================================================
   LAYOUT VARIANTS — break the single-column repetition
   ============================================================ */

/* tinted alternating band */
.band-tint { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* split: heading column left (sticky), content right */
.split { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > .col-head { position: sticky; top: 96px; }
.split > .col-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 14px 0 0; }
.split > .col-head p { color: var(--slate); font-size: 0.94rem; line-height: 1.65; margin-top: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > .col-head { position: static; } }

/* centred narrow lead-in */
.centred { max-width: 660px; margin: 0 auto; text-align: center; }
.centred h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin: 16px 0 0; }
.centred p { color: var(--slate); line-height: 1.7; margin-top: 18px; font-size: 1.02rem; }

/* numbered horizontal rows (alternative to card grids) */
.rows { border-top: 1px solid var(--line); margin-top: 40px; }
.row-item { display: grid; grid-template-columns: 64px 1fr 1.1fr; gap: clamp(16px, 3vw, 40px);
            padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-item .idx { font-family: var(--mono); font-size: 12px; color: var(--slate-2); padding-top: 4px; letter-spacing: .1em; }
.row-item h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.row-item .detail { color: var(--slate); font-size: 0.95rem; line-height: 1.68; }
.row-item .detail ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.row-item .detail li { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
                       color: var(--slate-2); border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; }
@media (max-width: 780px) { .row-item { grid-template-columns: 40px 1fr; } .row-item .detail { grid-column: 2; } }

/* inline fact strip */
.facts { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: 36px;
         padding-top: 26px; border-top: 1px solid var(--line); }
.facts div { min-width: 140px; }
.facts .k { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.facts .v { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); margin-top: 8px; }

/* two-up feature (text + bordered aside) */
.two-up { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .two-up { grid-template-columns: 1fr; } }
.aside-card { border: 1px solid var(--line); border-left: 3px solid var(--emerald); padding: 26px 24px; background: var(--bg); }
.aside-card h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); margin: 0 0 14px; }
.aside-card ul { margin: 0; padding: 0; list-style: none; }
.aside-card li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--slate); line-height: 1.5; }
.aside-card li:last-child { border-bottom: 0; }

/* plain section heading (no eyebrow, tighter) */
.head-plain h2 { font-size: clamp(1.55rem, 2.9vw, 2.15rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.head-plain p { color: var(--slate); max-width: 60ch; line-height: 1.68; margin: 0; }

/* ============================================================
   CONTRAST CORRECTION v2 — written against the rendered DOM,
   with specificity high enough to actually win the cascade.
   ============================================================ */
:root {
    --emerald-ink:   #047857;  /* 5.48:1 on white */
    --emerald-ink-h: #065F46;  /* 7.68:1 on white */
    --on-dark:       #D1D5DB;  /* 11.0:1 on #111827 */
    --on-dark-dim:   #9CA3AF;  /* 6.4:1  on #111827 */
    --emerald-lite:  #34D399;  /* 8.6:1  on #111827 — for green ON DARK */
}

/* ---- FOOTER (dark #111827): brand was ink-on-ink at 1.00:1 ---- */
footer .brand-name,
footer .brand .brand-name { color: #FFFFFF; }
footer .brand-sub,
footer .brand .brand-sub  { color: var(--emerald-lite); }
footer .ftr-prop          { color: var(--on-dark-dim); }
footer p                  { color: var(--on-dark-dim); }
footer h5                 { color: var(--on-dark); }
footer a                  { color: var(--on-dark); }
footer a:hover            { color: var(--emerald-lite); }
footer .ftr-grid + div,
footer .ftr-grid + div span { color: var(--on-dark-dim) !important; }

/* ---- TICKER (dark) ---- */
.ticker-track .sep { color: var(--on-dark-dim); }

/* ---- BUTTONS ON LIGHT ---- */
.btn-fill  { background: var(--emerald-ink); border-color: var(--emerald-ink); color: #FFFFFF; }
.btn-fill:hover { background: var(--emerald-ink-h); border-color: var(--emerald-ink-h); }
.btn-outline { color: var(--ink); border-color: #D1D5DB; background: transparent; }
.btn-outline:hover { color: var(--emerald-ink); border-color: var(--emerald-ink); }

/* ---- BUTTONS INSIDE THE DARK CTA BAND (higher specificity) ---- */
.cta-band .btn-fill { background: var(--emerald-ink); border-color: var(--emerald-ink); color: #FFFFFF; }
.cta-band .btn-fill:hover { background: var(--emerald-ink-h); border-color: var(--emerald-ink-h); }
.cta-band .btn-outline { background: transparent; color: #FFFFFF; border-color: #4B5563; }
.cta-band .btn-outline:hover { background: transparent; color: var(--emerald-lite); border-color: var(--emerald-lite); }
.cta-band h2 .accent { color: var(--emerald-lite); }
.cta-band p { color: var(--on-dark); }

/* ---- GREEN TEXT ON LIGHT: every variant, incl. --deep users ---- */
.eyebrow,
.section-eyebrow,
.hero h1 .accent,
.page-hero h1 .accent,
.section-head h2 .accent,
.centred h2 .accent,
.hero-meta .live-pip,
.note .stamp .pub,
.what-list h4.do,
.what-list h4,
.casefile-head .status,
.visit,
.casefile-foot .visit,
.form-note a,
.prose a,
.what-list li a,
.what-list ul li a { color: var(--emerald-ink); }

/* contact page sits on --bg-alt; links there were 2.43:1 */
.what-list ul li a[href^="mailto"],
.what-list ul li a[href^="http"] { color: var(--emerald-ink); }

/* ---- FOCUS VISIBILITY ---- */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--emerald-ink); outline-offset: 2px;
}

/* header brand sub sits on white, not the dark footer */
nav.top .brand-sub { color: var(--emerald-ink); }
/* the eyebrow inside .two-up on the tinted band */
.two-up .section-eyebrow, .band-tint .section-eyebrow { color: var(--emerald-ink); }
/* any remaining eyebrow using --deep */
span.section-eyebrow, .section-eyebrow { color: var(--emerald-ink); }
.hero-mark span { color: var(--emerald-ink); }
.hero-mark span:first-child { color: var(--emerald-ink); }

/* ============================================================
   LAYOUT CORRECTIONS — measured against the rendered page
   ============================================================ */

/* Hero: 14ch was sized for a short headline. The three-clause
   headline needs a wider measure and a smaller top size, or it
   wraps to four lines and leaves the right third empty. */
.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    max-width: 22ch;
    line-height: 1.04;
}
.hero-lede { max-width: 60ch; }

/* Interior hero: same treatment, slightly tighter */
.page-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 4.4vw, 3.5rem); }

/* two-up: stop the aside towering over a short text column */
.two-up { align-items: stretch; }
.two-up > div:first-child { display: flex; flex-direction: column; }
.aside-card { align-self: start; }
.aside-card li { padding: 7px 0; }

/* head-plain paragraphs were running short of the column */
.head-plain p { max-width: 58ch; }

/* fact strip: give it room and stop it hugging the cards */
.facts { margin-top: 48px; padding-top: 30px; }
