/* Cohort Consulting Group — static site design system.
   Identity frozen per handoff section 8: palette and fonts identical to the WP theme.
   Layout, type scale, spacing, and components rebuilt (handoff section 14). */

:root {
    /* Brand palette (frozen, from wp-theme-cohort) */
    --brand-orange: #E46C0A;
    --brand-blue: #00194C;
    --brand-dark-blue: #0A1929;
    --brand-navy: #051119;

    --color-primary: var(--brand-blue);
    --color-primary-dark: #061845;
    --color-accent: var(--brand-orange);
    --color-accent-dark: #d95509;
    --color-sky: #f3f7ff;
    --color-mid: #344159;
    --color-muted: #5f6a83;
    --color-border: rgba(14, 43, 104, 0.12);
    --color-card: #ffffff;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-soft: 0 16px 30px rgba(11, 44, 109, 0.12);
    --shadow-hover: 0 24px 48px rgba(11, 44, 109, 0.18);

    /* Type scale */
    --text-display: clamp(2.6rem, 5.4vw, 4.2rem);
    --text-h2: clamp(1.9rem, 3.2vw, 2.5rem);
    --text-h3: 1.25rem;
    --text-lead: 1.2rem;
    --text-body: 1.0625rem;
    --text-small: 0.875rem;
    --text-kicker: 0.78rem;

    /* Layout */
    --container: 1200px;
    --section-pad: clamp(72px, 9vw, 120px);
    --radius: 16px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.65;
    color: var(--color-mid);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
/* overflow-wrap: anywhere is a last-resort safety net: at 320-390px, --text-display clamps
   to its 2.6rem floor (still ~42px), and a single long word in a headline (e.g.
   "Operationalizing", "Modernization") can be wider than the column, clipping invisibly
   under the sitewide overflow-x: clip since normal word-wrap only breaks between words. */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-primary); line-height: 1.15; margin: 0 0 0.6em; overflow-wrap: anywhere; }
h1 { font-size: var(--text-display); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--text-h3); font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: 10px 18px; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Kicker / section headers ---------- */
.kicker {
    display: block;
    font-size: var(--text-kicker);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}
.section { padding: var(--section-pad) 0; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head p.lead { font-size: var(--text-lead); color: var(--color-muted); }
.bg-sky { background: var(--color-sky); }
.bg-dark { background: linear-gradient(160deg, var(--brand-dark-blue), var(--brand-navy)); color: rgba(255,255,255,0.85); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .kicker { color: var(--brand-orange); }
.bg-dark p.lead { color: #fff; }
.bg-dark a:not(.btn) { color: #ffb277; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    padding: 14px 28px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
.bg-dark .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.bg-dark .btn-secondary:hover { background: #fff; color: var(--color-primary); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-note { font-size: var(--text-small); color: var(--color-muted); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(11, 44, 109, 0.06);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand a { display: inline-flex; align-items: center; }
.brand img { width: 140px; height: 54px; max-width: none; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 18px; }
.primary-nav a {
    color: var(--color-primary); font-weight: 600; font-size: 0.9rem; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--color-accent-dark); text-decoration: none; }
.nav-cta { margin-left: 4px; }
.nav-cta .btn { padding: 9px 16px; font-size: 0.85rem; }
.primary-nav a.btn-primary, .primary-nav a.btn-primary:hover { color: #fff; }
/* Seven nav items + CTA need a tighter fit at every desktop width */
@media (min-width: 1081px) {
    .primary-nav { gap: 10px; }
    .primary-nav a { font-size: 0.8rem; }
    .nav-cta .btn { padding: 8px 11px; font-size: 0.78rem; }
    .brand img { width: 116px; height: 46px; }
}
@media (max-width: 1280px) and (min-width: 1081px) { .nav-cta { display: none; } }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .primary-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--color-border);
        flex-direction: column; align-items: flex-start;
        padding: 18px 24px 24px; gap: 16px;
        box-shadow: var(--shadow-soft);
    }
    .primary-nav.open { display: flex; }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(84px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.hero.bg-dark {
    --hero-img: url('/assets/img/hero-team-dark.jpg');
    background:
        linear-gradient(100deg, rgba(5,17,25,0.94) 32%, rgba(0,25,76,0.78) 75%, rgba(5,17,25,0.66)),
        var(--hero-img) center / cover no-repeat, var(--brand-navy);
}
.hero-home { min-height: min(88vh, 900px); display: flex; align-items: center; }
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-inner { max-width: 820px; }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255,255,255,0.82); margin-bottom: 32px; }
.hero-grid-lines {
    position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
}
.hero-accent {
    position: absolute; right: -180px; top: -180px; width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(228,108,10,0.28), transparent 65%);
    pointer-events: none;
}

/* ---------- Stat / insight callouts (IBM-pattern) ---------- */
.callout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.problem-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: stretch; }
.problem-grid > .stat-card { display: flex; flex-direction: column; }
.problem-grid > .stat-card .form-card { flex: 1; }
.problem-stats { display: grid; gap: 16px; }
.stat-tile { display: flex; gap: 22px; align-items: center; padding: 24px 28px; }
/* Compound selector (not just ".stat-tile .stat") so this reliably outranks the later,
   equal-specificity ".stat-card .stat" clamp() rule below: without it, wider numbers like
   "50%+" pick up the bigger stat-card font size and clip inside this tile's fixed-width
   column at any viewport <=900px, where the min-width override just below disables the
   browser's automatic flex min-content protection. */
.stat-card.stat-tile .stat { font-size: 2.2rem; margin-bottom: 0; flex: 0 0 118px; text-align: right; line-height: 1.05; }
.stat-tile .stat-body { margin: 0; }
@media (max-width: 900px) {
    .problem-grid { grid-template-columns: 1fr; }
    .stat-tile .stat { min-width: 64px; }
}
@media (max-width: 480px) {
    /* Below 480px the fixed 118px number column plus the stat-body's own min-content
       width no longer both fit inside the card's padding, and the row's automatic flex
       minimum pushes the whole tile a few px past the viewport (invisibly clipped by the
       sitewide overflow-x: clip). Stack number over description instead of fighting for
       the same row. */
    .stat-tile { flex-direction: column; align-items: flex-start; gap: 6px; }
    .stat-card.stat-tile .stat { flex: none; width: auto; text-align: left; }
}
.stat-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 32px;
}
.stat-card .stat {
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    font-weight: 700; letter-spacing: -0.03em;
    color: var(--color-accent-dark);
    line-height: 1; margin-bottom: 12px;
}
.stat-card .stat-body { color: var(--color-mid); }
.stat-card .stat-cite { font-size: var(--text-small); color: var(--color-muted); margin-top: 14px; }
.stat-card .stat-link { font-weight: 600; }

/* ---------- Numbered scroll panels (Novulis pattern) ----------
   Two modes: default = stacked sections (mobile, no-JS, reduced motion);
   html.panels-pinned (set by JS on desktop) = scroll-pinned stage where
   vertical scroll drives the panel track horizontally. */

.panels-head { margin-bottom: 12px; }
.panels-rail { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.panels-rail a {
    display: inline-flex; gap: 10px; align-items: baseline;
    padding: 10px 16px; border-radius: 999px;
    border: 1px solid var(--color-border);
    color: var(--color-muted); font-weight: 600; font-size: 0.88rem;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
    white-space: nowrap;
}
.panels-rail a:hover { text-decoration: none; color: var(--color-primary); }
.panels-rail a .num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--color-accent-dark); }
.panels-rail a.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.panels-rail a.is-active .num { color: var(--color-accent); }

.svc-panel { position: relative; border-bottom: 1px solid var(--color-border); padding: 56px 0; }
.svc-panel:last-child { border-bottom: 0; }
.svc-panel-grid {
    display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
    position: relative; z-index: 1;
}
/* Ghost watermark numerals: bottom-left behind the text column, away from the
   panel visuals they used to collide with. Panels without data-num render nothing. */
.svc-panel::before {
    content: attr(data-num);
    /* Vertically centered in the right gutter, sized to the gutter so it never
       collides with the pane content at any window width. */
    position: absolute; right: max(8px, calc((100% - var(--container)) / 24));
    top: 50%; transform: translateY(-50%);
    font-size: clamp(4rem, calc((100vw - var(--container)) / 1.6), 13rem);
    font-weight: 800; line-height: 1;
    color: rgba(0, 25, 76, 0.05); pointer-events: none; z-index: 0;
    font-family: var(--font-display); letter-spacing: -0.04em;
}
/* Text-only slides (delivery model, resources, customers) keep the digit close to
   the content column instead of drifting to the viewport edge on wide windows. */
html.panels-pinned .svc-panel:has(.dm-slide)::before,
html.panels-pinned .svc-panel:has(.res-slide)::before {
    right: auto; left: calc(50% - var(--container) / 2 + 840px);
}
/* The process pane's graphic is centered and narrower: keep its digit beside the card */
html.panels-pinned .svc-panel:has(.dm-visual)::before {
    left: calc(50% - 132px + min(100vh - 580px, 500px) * 0.4643);
}
.svc-panel .panel-num {
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em;
    color: var(--color-accent-dark); margin-bottom: 10px; display: block;
}
.svc-panel h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -0.015em; }
.svc-panel .panel-sub { font-size: 0.95rem; color: var(--color-muted); margin-top: 14px; }
.svc-panel-visual {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}
.svc-panel-visual svg { width: 100%; height: auto; }

/* Browser-frame treatment for real product screens */
.browser-frame { padding: 0; overflow: hidden; }
.bf-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; background: var(--color-sky);
    border-bottom: 1px solid var(--color-border);
}
.bf-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(14,43,104,0.18); }
.bf-url {
    margin-left: 10px; font-size: 11px; color: var(--color-muted);
    background: #fff; border: 1px solid var(--color-border);
    border-radius: 6px; padding: 3px 12px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; min-width: 0;
}
.browser-frame img, .browser-frame svg { display: block; width: 100%; height: auto; }
.browser-frame .bf-body { padding: 0; }

@media (max-width: 1024px) {
    .svc-panel-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Pinned mode (JS-enabled desktop) */
html.panels-pinned .section:has(> .panels-stage) { padding: 0; }
html.panels-pinned .panels-stage { position: relative; } /* height set per stage by site.js */
html.panels-pinned .panels-viewport {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-start;
}
/* Head sits in flow so it can never overlap panel content on short viewports.
   Top padding must clear the sticky header (~91px), which overlays the pinned viewport. */
html.panels-pinned .panels-head { margin: 0; padding-top: clamp(100px, 13vh, 124px); }
html.panels-pinned .panels-head .section-head { margin-bottom: 0; }
html.panels-pinned .panels-rail {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    margin: 0; z-index: 3; flex-wrap: nowrap;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
    padding: 8px; border-radius: 999px; box-shadow: var(--shadow-soft);
}
html.panels-pinned .panels-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
html.panels-pinned .panels-rail a { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
html.panels-pinned .industries-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
html.panels-pinned .industries-tab { display: flex; align-items: center; justify-content: center; text-align: center; }
html.panels-pinned .panels-track {
    display: flex; width: max-content; flex: 1 1 auto; min-height: 0;
    align-items: stretch; will-change: transform;
}
html.panels-pinned .svc-panel {
    width: 100vw; flex: 0 0 auto; border-bottom: 0;
    display: flex; align-items: flex-start; padding: 40px 0 100px;
}
html.panels-pinned .svc-panel-grid { align-items: start; }
html.panels-pinned .svc-panel .container { width: 100%; }
/* On short pinned viewports, shrink the visual instead of letting content spill under the head */
html.panels-pinned .svc-panel-visual svg { max-height: calc(100vh - 380px); }
/* Height-constrained pinned viewports: compress panel chrome so every panel fits its band */
@media (min-width: 1025px) and (max-height: 780px) {
    html.panels-pinned .panels-head { padding-top: 98px; }
    html.panels-pinned .svc-panel { padding: 8px 0 84px; }
    html.panels-pinned .svc-panel h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
    html.panels-pinned .svc-panel .panel-sub { margin-top: 8px; }
    html.panels-pinned .svc-panel-grid { gap: 40px; }
    html.panels-pinned .svc-panel-visual { padding: 14px; }
    html.panels-pinned .svc-panel-visual svg { max-height: calc(100vh - 430px); }
    html.panels-pinned .panels-rail { bottom: 16px; }
    html.panels-pinned .panels-head .section-head h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
    html.panels-pinned .industries-tabs { margin-top: 12px; }
    html.panels-pinned .industry-intro { font-size: 1rem; }
    html.panels-pinned .industry-note { margin-top: 6px; }
    html.panels-pinned .industry-cols { margin-top: 14px; gap: 24px; }
}

/* ---------- Cards ---------- */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 32px;
    transition: box-shadow .2s ease, transform .2s ease;
}
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card .card-price { font-weight: 700; color: var(--color-accent-dark); margin-top: auto; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.card h3 a { color: inherit; }

/* Offer / pricing cards */
.offer-card { display: flex; flex-direction: column; gap: 12px; }
.offer-meta { display: flex; gap: 14px; font-weight: 700; color: var(--color-primary); font-size: 0.95rem; }
.offer-meta .price { color: var(--color-accent-dark); }
.svc-panel .offer-meta { margin: 4px 0 10px; }
.offer-card .btn { align-self: flex-start; margin-top: 10px; }

/* Rich offer cards (/start/): badge, icon, tagline, best-when / outcome.
   Subgrid keeps every section top-aligned across the three cards. */
.offer-grid { grid-template-columns: repeat(3, 1fr); }
.offer-card.offer-card-rich {
    display: grid; grid-template-rows: subgrid; grid-row: span 8;
    row-gap: 12px; align-content: start;
}
@media (max-width: 1024px) {
    .offer-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
    .offer-card.offer-card-rich { grid-template-rows: auto; grid-row: auto; }
}
.offer-badge {
    align-self: flex-start; background: var(--color-primary); color: #fff;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 6px;
}
.offer-badge-rec { background: var(--color-accent-dark); }
.offer-badge-ghost { visibility: hidden; }
#starting-engagements .offer-card { position: relative; padding: 22px 28px; gap: 8px; }
#starting-engagements .offer-badge-rec { position: absolute; top: -13px; left: 24px; right: 24px; margin: 0; text-align: center; }
#starting-engagements .offer-card h3 { margin-bottom: 2px; }
.offer-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1200px) and (min-width: 1025px) { .offer-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.boundary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.boundary-list li {
    position: relative; padding-left: 24px; color: var(--color-mid);
    border-bottom: 1px solid var(--color-border); padding-bottom: 12px;
}
.boundary-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 12px; height: 3px; border-radius: 2px; background: var(--color-accent-dark); }
.offer-icon { width: 96px; height: 96px; }
.offer-icon svg { width: 100%; height: 100%; display: block; }
.offer-tag { font-weight: 700; color: var(--color-primary); font-size: 0.98rem; }
.offer-block h4 {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--color-accent-dark); margin: 6px 0 8px;
}
.offer-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.92rem; color: var(--color-mid); }
.offer-check li { position: relative; padding-left: 24px; }
.offer-check li::before {
    content: '\2713'; position: absolute; left: 0; top: 1px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
}
.offer-cols { grid-template-columns: 1fr 1fr; column-gap: 12px; }
@media (max-width: 480px) { .offer-cols { grid-template-columns: 1fr; } }
.offer-outcome { font-size: 0.92rem; color: var(--color-mid); }
.offer-note { font-size: 0.88rem; color: var(--color-muted); margin-top: 4px; }
.invest-line { font-size: 0.88rem; color: var(--color-muted); font-weight: 600; }
.grid-2.delivery-intro { align-items: stretch; margin-bottom: 36px; }
/* The absolute wrapper keeps the diagram out of the row-height calculation, so the
   text column sets the height and the diagram card runs exactly edge to edge with it. */
.diagram-col { position: relative; }
.diagram-col .diagram-fit {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.diagram-col .diagram-fit svg { height: 100%; width: auto; max-width: 100%; }
@media (max-width: 900px) {
    .diagram-col .diagram-fit { position: static; }
    .diagram-col .diagram-fit svg { height: auto; width: 100%; }
}

/* Industries: per-industry panels with Agents / AI Solutions columns.
   Pinned mode shows every panel as a carousel slide; stacked mode keeps the
   tab-toggle behavior and hides the slides whose panel is inactive. */
.industry-panel { display: none; }
.industry-panel.is-active { display: block; }
html.panels-pinned .panels-stage .industry-panel { display: block; }
html:not(.panels-pinned) #industries .svc-panel:not(:has(.industry-panel.is-active)) { display: none; }
html:not(.panels-pinned) #industries .svc-panel { border-bottom: 0; padding: 24px 0 0; }
.industries-tabs { margin-top: 22px; }
.industry-intro { font-size: var(--text-lead); color: var(--color-mid); max-width: 860px; }
.industry-note { font-size: 0.88rem; color: var(--color-muted); margin-top: 10px; }
.industry-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 22px; }
@media (max-width: 768px) { .industry-cols { grid-template-columns: 1fr; gap: 24px; } }
.industry-cols h4 {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--color-accent-dark); margin-bottom: 10px;
}
.industry-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.industry-items li { font-size: 0.95rem; color: var(--color-mid); }
.industry-items strong { color: var(--color-primary); }
/* Industry-name watermark: numeral treatment, anchored inside the panel so it
   always shares the columns' left edge; muted dark like the section text. */
html.panels-pinned .industry-panel[data-watermark]::before {
    content: attr(data-watermark);
    position: absolute; left: 0; top: calc(100% + 20px);
    /* One line for every industry, sized so the longest names still fit the container */
    font-size: clamp(3.25rem, 5.4vw, 5rem); font-weight: 800; line-height: 1;
    white-space: nowrap;
    color: rgba(52, 65, 89, 0.14); pointer-events: none; z-index: 0;
    font-family: var(--font-display); letter-spacing: -0.03em;
    text-transform: uppercase; max-width: 100%; overflow: hidden;
}
html.panels-pinned .svc-panel .industry-panel { position: relative; z-index: 1; }

/* Delivery-model carousel slides */
.dm-slide { max-width: 800px; }
.dm-slide h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.015em; margin-bottom: 14px; }
.dm-slide p { color: var(--color-mid); margin-bottom: 14px; }
.dm-visual { display: flex; justify-content: center; }
.dm-visual .svc-panel-visual { display: inline-block; }
html.panels-pinned .dm-visual svg { height: min(calc(100vh - 580px), 500px); width: auto; max-width: 100%; }

/* Resources: featured carousel slides + by-month archive */
.res-slide { max-width: 760px; }
.res-slide h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.015em; margin: 10px 0 14px; }
.res-slide p { color: var(--color-mid); margin-bottom: 22px; }
.month-head { margin: 26px 0 12px; font-size: 1.05rem; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.article-list li {
    display: flex; gap: 16px; align-items: baseline; justify-content: space-between;
    max-width: 760px; border-bottom: 1px solid var(--color-border); padding-bottom: 10px;
}
.article-list a { font-weight: 600; }
.article-date { color: var(--color-muted); font-size: var(--text-small); white-space: nowrap; }
.offer-cta { margin-top: auto; padding-top: 16px; }
.offer-cta .btn { margin-top: 0; padding-left: 18px; padding-right: 18px; }
.offer-cta .btn-note { margin-top: 10px; }

/* ---------- Verb-line strip (quiet band) ---------- */
.verb-strip { padding: 44px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: #fff; }
.verb-strip p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; color: var(--color-primary); text-align: center; letter-spacing: -0.01em; }
.verb-strip em { color: var(--color-accent-dark); font-style: normal; }

/* ---------- Section photos ---------- */
.section-photo { border-radius: var(--radius); box-shadow: var(--shadow-hover); object-fit: cover; width: 100%; height: 100%; min-height: 320px; }
.photo-band {
    position: relative;
    background:
        linear-gradient(rgba(2, 12, 32, 0.86), rgba(0, 25, 76, 0.88)),
        url('/assets/img/hero-team-dark.jpg') center / cover no-repeat, var(--brand-navy);
}
.photo-band .section-head { max-width: 860px; }
.band-tall { min-height: 62vh; display: flex; align-items: center; }

/* ---------- Stages / progression ---------- */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: stage; }
.stage {
    background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: 26px; position: relative;
}
.stage .stage-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.9rem;
    margin-bottom: 14px;
}
.stage.stage-dest { border-color: var(--color-accent); }
.stage.stage-dest .stage-num { background: var(--color-accent); }
.stage h3 { font-size: 1.05rem; margin-bottom: 8px; }
.stage p { font-size: 0.92rem; color: var(--color-muted); margin: 0; }

/* ---------- Industries tabs ---------- */
.industries-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.industries-tab {
    border: 1px solid var(--color-border); background: #fff; color: var(--color-primary);
    border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: background .15s ease, color .15s ease;
}
.industries-tab:hover:not(.is-active) { background: var(--color-sky); }
.industries-tab.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.industries-panel { font-size: var(--text-lead); color: var(--color-mid); max-width: 760px; min-height: 64px; }

/* ---------- Certifications ---------- */
.cert-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: stretch; }
.cert-badge {
    background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
    box-shadow: var(--shadow-soft); padding: 24px; display: flex; align-items: center; justify-content: center;
}
.cert-badge img { max-height: 150px; width: auto; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--color-accent-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.team-card p { font-size: 0.94rem; color: var(--color-mid); }
.team-card .li-link { font-size: var(--text-small); font-weight: 600; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
    box-shadow: var(--shadow-soft); padding: 28px; color: var(--color-mid);
}
.bg-dark .form-card { color: var(--color-mid); }
.form-card .hs-form-frame, .form-card iframe { width: 100%; }
/* Tame HubSpot embed internals when rendered inline */
.form-card .hs-form { font-family: var(--font-body); }
.form-card .legal-consent-container, .form-card .hs-richtext { font-size: 0.78rem; color: var(--color-muted); }
.form-card .hs-button {
    background: var(--color-accent); border: 0; color: #fff; font-weight: 600;
    border-radius: 10px; padding: 12px 26px; cursor: pointer;
}
.form-card .hs-input {
    width: 100%; border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 12px;
    font-family: var(--font-body); font-size: 0.95rem;
}
.form-card .hs-form-field { margin-bottom: 14px; }
.form-card label { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); }

/* ---------- Conversion band: dark CTA card floating in white ---------- */
.conv-band { background: #fff; padding: var(--section-pad) 0; }
.conv-card {
    background: linear-gradient(120deg, var(--brand-dark-blue), var(--color-primary));
    border-radius: 24px; padding: clamp(36px, 5vw, 64px);
    box-shadow: var(--shadow-hover);
    color: rgba(255,255,255,0.85);
    position: relative; overflow: hidden;
}
.conv-card h2, .conv-card h3 { color: #fff; }
.conv-card .kicker { color: var(--brand-orange); }
.conv-card::after {
    content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(228,108,10,0.3), transparent 65%); pointer-events: none;
}
.conv-card .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.conv-card .btn-secondary:hover { background: #fff; color: var(--color-primary); }
.conv-band .conv-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
.conv-band details summary {
    cursor: pointer; font-weight: 600; color: #fff; margin-bottom: 14px;
    display: inline-block; list-style: none; text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.55); border-radius: 10px; padding: 12px 22px;
    transition: background .15s ease, color .15s ease;
}
.conv-band details summary::-webkit-details-marker { display: none; }
.conv-band details summary::marker { content: ''; }
.conv-band details summary:hover { background: #fff; color: var(--color-primary); text-decoration: none; }
.conv-band .conv-note { font-size: var(--text-small); color: rgba(255,255,255,0.75); margin: 0 0 14px; }
@media (max-width: 900px) { .conv-band .conv-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--color-muted); padding: 64px 0 32px; font-size: 0.92rem; border-top: 1px solid var(--color-border); }
.site-footer h4 { color: var(--color-primary); font-size: 0.95rem; margin-bottom: 14px; }
/* minmax(0, ...) lets each track shrink below its content's min-content size; without it,
   the unbroken "contact@cohortcg.com" (no spaces = no wrap opportunity) floors the Contact
   column wider than the viewport at narrow widths and the whole grid bleeds off the right
   edge (invisibly, since html/body clip rather than scroll). overflow-wrap: anywhere on the
   list items is the other half: it lets that same unbreakable text actually wrap once its
   column is allowed to get narrow, instead of just clipping. */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; margin-bottom: 44px; }
.site-footer a { color: var(--color-muted); }
.site-footer a:hover { color: var(--color-accent-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; overflow-wrap: anywhere; }
.footer-identity { border-top: 1px solid var(--color-border); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-brand p { overflow-wrap: anywhere; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Long-form content (legal, blog) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose ul li { margin-bottom: 0.4em; }
.post-meta { color: var(--color-muted); font-size: var(--text-small); margin-bottom: 28px; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--color-border); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; background: #fff; }
.faq summary { font-weight: 600; color: var(--color-primary); cursor: pointer; }
.faq details p { margin: 12px 0 0; }

/* ---------- Kinetic reveals (progressive enhancement only) ----------
   The keyframe fallback guarantees content is never stuck hidden if site.js
   fails to load or execute: everything fades in on its own after 2s. */
html.js [data-reveal] {
    opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease;
    animation: reveal-safety .6s ease 2s forwards;
}
html.js [data-reveal].revealed { opacity: 1; transform: none; animation: none; }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.max-w { max-width: 780px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-2.grid-cards { align-items: stretch; }
.grid-2.grid-top { align-items: start; }
.grid-2:has(> .offer-sidebar) { align-items: stretch; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.divider { border: 0; border-top: 1px solid var(--color-border); margin: 0; }
.crumb { font-size: var(--text-small); margin-bottom: 18px; display: inline-block; }

/* Pass-2 polish: equal-height offer cards, clickable working-session summary, panel clip */
.offer-card .btn { margin-top: auto; }
.offer-card { min-height: 100%; }
html.panels-pinned .panels-stage { overflow: clip; }

/* ROI pass: benchmark cards + carousel proof lines */
.roi-card .stat { font-size: 2.3rem; font-weight: 800; color: var(--color-accent-dark); line-height: 1.1; margin-bottom: 10px; }
.roi-card p { font-size: 0.95rem; color: var(--color-mid); margin: 0 0 12px; }
.roi-card .stat-cite { font-size: 0.78rem; color: var(--color-muted); margin: 0; }
.svc-panel .panel-proof { font-size: 0.85rem; color: var(--color-muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-border); }
