/* The public website, in the owner's house style (2026-10-18):
     writing     - McKinsey: answer first, short, insight-led
     figures     - Goldman Sachs: disciplined tables, tabular figures, totals ruled
     infographics- BCG: numbered exhibits with a title and a source line
     actions     - Bain: who, what, by when, how important
     systems     - Accenture: the process as a flow
   A navy band for the brand, paper for the reading. The client portal (static/css/bd.css) uses the same paper. */

:root {
    --ink: #13213a; --ink-2: #48546a; --ink-3: #7c879a; --rule: #e2dfd7; --rule-2: #cfcabd;
    --tpe-field-err: #b42318;
    --page: #f4f2ec; --paper: #fbfaf7; --white: #fff;
    --navy: #0f2b4c; --navy-2: #0a1f38; --navy-3: #16395f;
    --gold: #a9812f; --gold-hi: #e0b34a; --gold-soft: #f3e6c4;
    --ok: #1f7a46; --warn: #a86a12; --bad: #b3261e;
    --serif: Fraunces, Georgia, "Times New Roman", serif;
    --sans: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: min(1160px, calc(100vw - 2 * max(16px, 4vw)));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body.site { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--page); line-height: 1.6; overflow-x: hidden; }
.site a { color: var(--navy); text-underline-offset: 3px; }
.site a:hover { color: var(--gold); }
.site :focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }
.wrap { width: var(--wrap); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--navy-2); color: #fff; border-bottom: 3px solid var(--gold-hi); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site .brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.site .brand:hover { color: #fff; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--gold-hi); color: var(--navy-2); display: grid; place-items: center; font-size: 18px; }
.brand small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #b9c6d8; line-height: 1.1; }
.brand span.name { line-height: 1.15; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.site .nav-links a { color: #dbe4f0; text-decoration: none; font-size: .9rem; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.site .nav-links a:hover, .site .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.site .nav-links a.btn-portal { color: var(--navy-2); background: var(--gold-hi); font-weight: 700; margin-left: 6px; }
.site .nav-links a.btn-portal:hover { background: #f0c869; color: var(--navy-2); }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; color: #fff; padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; font-size: .9rem; }
.nav-menu summary::-webkit-details-marker { display: none; }
@media (max-width: 1080px) {
    .nav-links .opt { display: none; }
    .nav-menu { display: block; position: relative; }
    .nav-menu[open] .menu-panel { display: flex; }
    .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; min-width: 220px;
                  background: var(--navy-2); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
    .site .menu-panel a { color: #dbe4f0; text-decoration: none; padding: 10px 12px; border-radius: 6px; }
    .site .menu-panel a:hover { background: rgba(255,255,255,.08); color: #fff; }
}
@media (max-width: 560px) {
    .brand small { display: none; }
    .site .nav-links a.btn-portal { padding: 8px 10px; font-size: .84rem; }
}
/* A phone: the name may take two lines, the menu is its icon, the portal button says "Portal". Nothing scrolls sideways. */
@media (max-width: 480px) {
    .topbar .wrap { gap: 10px; }
    .site .brand { white-space: normal; gap: 8px; }
    .brand span.name { max-width: 7.2em; font-size: .95rem; }
    .nav-links .long { display: none; }
    .nav-menu summary { padding: 8px 11px; }
}

/* ---------- Bands ---------- */
.band-navy { background: radial-gradient(900px 420px at 85% -10%, rgba(224,179,74,.18), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.band-navy p { color: #c9d5e5; }
.band-paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.sec { padding: clamp(44px, 7vw, 84px) 0; scroll-margin-top: 72px; }

/* ---------- Type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.band-navy .kicker { color: var(--gold-hi); }
.kicker .n { font-family: var(--serif); font-size: .95rem; letter-spacing: 0; color: inherit; }
.kicker::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }
.site h1, .site h2, .site h3 { font-family: var(--serif); font-weight: 700; color: inherit; letter-spacing: -.005em; }
.site h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1.08; margin: 14px 0 16px; max-width: 18ch; }
.site h2 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.15; margin: 10px 0 10px; max-width: 28ch; }
.site h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 6px; }
.lede { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--ink-2); max-width: 64ch; margin: 0 0 18px; }
.band-navy .lede { color: #c9d5e5; }
.muted { color: var(--ink-2); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; color: var(--ink-3); }

/* ---------- Buttons ---------- */
.site .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: .95rem;
            text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.2; }
.site .btn-primary { background: var(--gold-hi); color: var(--navy-2); }
.site .btn-primary:hover { background: #f0c869; color: var(--navy-2); }
.site .btn-navy { background: var(--navy); color: #fff; }
.site .btn-navy:hover { background: var(--navy-3); color: #fff; }
.site .btn-line { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.site .btn-line:hover { background: rgba(255,255,255,.08); color: #fff; }
.site .btn-ink { border-color: var(--rule-2); color: var(--navy); background: var(--white); }
.site .btn-ink:hover { border-color: var(--navy); color: var(--navy); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(40px, 6vw, 76px) 0 clamp(44px, 6vw, 80px); }
.hero .lede { max-width: 58ch; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-facts div { padding: 14px 16px 0 0; }
.hero-facts b { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.hero-facts span { font-size: .8rem; color: #b9c6d8; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hero-facts { grid-template-columns: 1fr; } .hero-facts div { padding: 10px 0 0; } }

/* ---------- Paper and exhibits ---------- */
.paper { background: var(--paper); color: var(--ink); border-radius: 10px; border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 20px 22px; min-width: 0; }
.paper.gold { border-top-color: var(--gold-hi); }
.band-navy .paper { box-shadow: 0 30px 70px rgba(0,0,0,.35); border-color: transparent; border-top-color: var(--gold-hi); }
.exhibit-label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.exhibit-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--ink); margin: 3px 0 12px; }
.source { font-size: .72rem; color: var(--ink-3); border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 7px; }

/* ---------- Answer first (situation, complication, resolution) ---------- */
.scr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 18px; }
.scr > div { padding: 4px 22px; border-left: 1px solid var(--rule); }
.scr > div:first-child { border-left: 0; padding-left: 0; }
.scr h3 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.scr p { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .scr { grid-template-columns: 1fr; } .scr > div { border-left: 0; border-top: 1px solid var(--rule); padding: 14px 0; } .scr > div:first-child { border-top: 0; } }

/* ---------- Service lines ---------- */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--navy); margin-top: 26px; }
.lines article { padding: 20px 22px 22px 0; border-bottom: 1px solid var(--rule); }
.lines article:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--rule); }
.lines .verb { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lines p { margin: 6px 0 10px; color: var(--ink-2); font-size: .93rem; }
.lines .out { font-size: .84rem; color: var(--ink); border-left: 3px solid var(--gold-hi); padding-left: 10px; }
@media (max-width: 960px) { .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lines article, .lines article:not(:nth-child(3n+1)) { padding: 18px 18px 18px 0; border-left: 0; }
    .lines article:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--rule); } }
@media (max-width: 600px) { .lines { grid-template-columns: 1fr; } .lines article:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* ---------- Two columns ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(18px, 3vw, 34px); align-items: start; margin-top: 24px; }
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .cols, .cols.even { grid-template-columns: 1fr; } }

/* ---------- Exhibit: what a portal holds (a matrix) ---------- */
.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.matrix > div { padding: 14px 16px; background: var(--white); }
.matrix > div + div { border-left: 1px solid var(--rule); }
.matrix h4 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); font-family: var(--sans); }
.matrix ul { list-style: none; margin: 0; padding: 0; }
.matrix li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 7px 0; border-top: 1px dashed var(--rule); font-size: .88rem; }
.matrix li:first-child { border-top: 0; }
.matrix li i { color: var(--gold); }
.matrix li b { font-weight: 600; }
.matrix li span { display: block; color: var(--ink-2); font-size: .8rem; }
@media (max-width: 600px) { .matrix { grid-template-columns: 1fr; } .matrix > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- Client card ---------- */
.client { display: flex; flex-direction: column; gap: 12px; }
.client .logo { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 14px; display: grid; place-items: center; min-height: 86px; }
.client .logo img { max-width: 100%; max-height: 64px; object-fit: contain; }
.client .who { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.client .what { color: var(--ink-2); font-size: .9rem; }

/* ---------- Action register (Bain) ---------- */
.actions { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 6px; }
.actions th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--navy); }
.actions td { padding: 11px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.actions td.n { font-family: var(--serif); font-weight: 700; color: var(--gold); width: 2.2em; }
.actions td.who, .actions td.when { white-space: nowrap; color: var(--ink-2); font-size: .84rem; }
.prio { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.prio.high { background: #f7dcd9; color: var(--bad); } .prio.med { background: var(--gold-soft); color: var(--warn); } .prio.std { background: #e3ece6; color: var(--ok); }
@media (max-width: 700px) {
    .actions thead { position: absolute; left: -9999px; }
    .actions tr { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 2px 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
    .actions td { border: 0; padding: 0; }
    .actions td.n { grid-row: span 4; }
    .actions td.who::before { content: "Owner: "; color: var(--ink-3); }
    .actions td.when::before { content: "When: "; color: var(--ink-3); }
}

/* ---------- Flow (Accenture) ---------- */
.flow { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow li { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 14px 14px 46px; min-height: 92px; }
.flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 12px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy);
                   color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.flow li b { display: block; font-size: .92rem; }
.flow li span { display: block; color: var(--ink-2); font-size: .82rem; line-height: 1.45; margin-top: 2px; }
.flow li.human { background: var(--gold-soft); border-color: #e9d29a; }
.flow li.human::before { background: var(--gold); }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Finance-style table (GS) ---------- */
.fin-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); }
table.fin { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; min-width: 620px; }
table.fin th, table.fin td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.fin thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--navy); background: var(--paper); }
table.fin thead th.pkg-h { color: var(--navy); font-family: var(--serif); font-size: 1rem; letter-spacing: 0; text-transform: none; }
table.fin td.c, table.fin th.c { text-align: center; }
table.fin td.c i.bi-check-lg { color: var(--ok); font-size: 1.05rem; }
table.fin td.c i.bi-dash { color: var(--ink-3); }
table.fin td.c i.bi-circle-half { color: var(--gold); }
table.fin tr.group td { background: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
table.fin tr.total td { border-top: 2px solid var(--navy); border-bottom: 0; font-weight: 700; }
table.fin tr.total td.c { font-weight: 600; color: var(--navy); font-size: .84rem; }

/* ---------- Packages ---------- */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pkg { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 10px; padding: 20px; min-width: 0; scroll-margin-top: 80px; }
.pkg.star { border-top-color: var(--gold-hi); }
.pkg .who { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pkg h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.pkg .quote { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); margin: 4px 0 10px; }
.pkg p { color: var(--ink-2); font-size: .9rem; margin: 0 0 12px; }
.pkg ul { list-style: none; margin: 0 0 16px; padding: 0; }
.pkg li { position: relative; padding: 5px 0 5px 22px; font-size: .88rem; border-top: 1px dashed var(--rule); }
.pkg li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; top: 6px; color: var(--ok); }
.pkg .go { margin-top: auto; }
.pkg .go .btn { width: 100%; }
@media (max-width: 960px) { .pkgs { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background-color: var(--white); border: 1px solid var(--rule-2);
                                            border-radius: 7px; padding: 10px 12px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold-hi); outline-offset: 1px; border-color: var(--navy); }
.form .note { font-size: .78rem; color: var(--ink-3); }
.alert { border-radius: 8px; padding: 10px 14px; font-size: .9rem; margin-bottom: 12px; }
.alert.ok { background: #e3f1e8; color: var(--ok); border: 1px solid #bcdcc8; }
.alert.err { background: #f8e3e1; color: var(--bad); border: 1px solid #edc2bd; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Honest note ---------- */
.honest { border-left: 4px solid var(--gold-hi); background: var(--white); border-radius: 0 10px 10px 0; padding: 18px 22px; }
.honest p { margin: 0 0 10px; color: var(--ink-2); }
.honest p:last-child { margin: 0; }
.honest b { color: var(--ink); }

/* ---------- Compliance chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { font-size: .8rem; color: var(--ink-2); background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 10px; }
.chips i { color: var(--ok); margin-right: 4px; }

/* ---------- Footer ---------- */
footer.site-foot { background: var(--navy-2); color: #b9c6d8; padding: 40px 0 46px; font-size: .86rem; }
footer.site-foot .cols4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site footer.site-foot a { color: #dbe4f0; text-decoration: none; }
.site footer.site-foot a:hover { color: #fff; text-decoration: underline; }
footer.site-foot h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 10px; font-family: var(--sans); }
footer.site-foot ul { list-style: none; margin: 0; padding: 0; }
footer.site-foot li { margin-bottom: 6px; }
footer.site-foot .entity { line-height: 1.7; }
footer.site-foot .base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .78rem; }
@media (max-width: 860px) { footer.site-foot .cols4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer.site-foot .cols4 { grid-template-columns: 1fr; } }

/* ---------- Portal chooser ---------- */
.portal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.portal-card { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 10px; padding: 18px; text-decoration: none; color: var(--ink); }
.site .portal-card:hover { border-top-color: var(--gold-hi); color: var(--ink); }
.portal-card .logo { height: 56px; display: flex; align-items: center; }
.portal-card .logo img { max-height: 56px; max-width: 100%; object-fit: contain; }
.go-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.go-form input { flex: 1 1 220px; font: inherit; padding: 11px 12px; border: 1px solid var(--rule-2); border-radius: 7px; background-color: var(--white); color: var(--ink); }

/* The packages comparison: four columns that fit a phone without scrolling sideways. */
table.fin.compare { min-width: 0; }
table.fin.compare thead th.pkg-h { width: 19%; }
@media (max-width: 600px) {
    table.fin.compare th, table.fin.compare td { padding: 8px 5px; }
    table.fin.compare td:first-child { padding-left: 0; }
    table.fin.compare thead th.pkg-h { font-size: .8rem; line-height: 1.2; }
    table.fin.compare tr.total td.c { font-size: .74rem; }
}
