/* Scale CxO — brand system drawn from the 2025 one-pagers.
   Layout: light page, navy "panel" blocks with grey label pills (from the one-pager's Challenges column),
   slanted band edges (from the one-pager header/Connect bar), gold used only as the "x" and a few highlights. */
:root {
  --paper: #FFFFFF;
  --mist: #EEEFF2;          /* light grey band */
  --pill: #C3C6CC;          /* grey label pill */
  --ink: #2C3547;           /* brand navy, headings */
  --body: #4A5163;          /* running text */
  --muted: #6B7182;
  --line: #DADCE1;
  --panel: #2C3547;         /* navy panel */
  --panel-deep: #222A3A;
  --panel-text: #D4D7DD;
  --panel-pill: #B9BCC3;
  --panel-pill-ink: #2C3547;
  --gold: #F2C53D;          /* the x in CxO */
  --gold-ink: #8A6A08;      /* gold for text on light ground */
  --focus: #F2C53D;

  --f-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161B25; --mist: #1E2431; --pill: #3A4255; --ink: #EEF0F3; --body: #C3C7D0; --muted: #9AA0AD;
    --line: #2E3546; --panel: #222A3A; --panel-deep: #1A202C; --panel-text: #C9CDD5; --panel-pill: #3E475B;
    --panel-pill-ink: #EEF0F3; --gold: #F2C53D; --gold-ink: #F2C53D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161B25; --mist: #1E2431; --pill: #3A4255; --ink: #EEF0F3; --body: #C3C7D0; --muted: #9AA0AD;
  --line: #2E3546; --panel: #222A3A; --panel-deep: #1A202C; --panel-text: #C9CDD5; --panel-pill: #3E475B;
  --panel-pill-ink: #EEF0F3; --gold: #F2C53D; --gold-ink: #F2C53D; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 40em; }
.prose { max-width: 66ch; display: grid; gap: 1.1em; }
.eyebrow {
  font-family: var(--f-display); font-weight: 600; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-ink);
}
.x { color: var(--gold); text-transform: lowercase; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--mist { background: var(--mist); }
.stack { display: grid; gap: 18px; }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(32px, 4vw, 52px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; font-family: var(--f-display); font-weight: 600;
  font-size: .98rem; padding: .85em 1.35em; border-radius: var(--radius); text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; cursor: pointer;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--gold); color: #222A3A; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--gold); color: #222A3A; }
.btn--gold:hover { background: #FFFFFF; }
.btn--light { border-color: #D4D7DD; color: #FFFFFF; background: transparent; }
.btn--light:hover { background: #FFFFFF; color: #222A3A; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 1.32rem; letter-spacing: .04em; color: var(--ink); line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--f-display); font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ink);
  padding: .55em .85em; border-radius: var(--radius);
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 8px; padding: .65em 1.1em; }
.nav a.btn--primary { color: var(--paper); background: var(--ink); }
.nav a.btn--primary:hover { background: var(--gold); color: #222A3A; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 600; font-size: .9rem; padding: .45em .8em; cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); gap: 0;
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.is-open { display: flex; }
  .nav a { padding: .8em .2em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: .8em; }
  .nav .btn { margin: 14px 0 0; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero::before { /* slanted grey wedge, from the one-pager header */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 58%;
  background: var(--paper); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 .accent { -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: inset 0 -.22em 0 color-mix(in srgb, var(--gold) 55%, transparent); }
@media (max-width: 900px) {
  .hero::before { width: 100%; clip-path: none; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Navy panel with grey pills (one-pager Challenges column) */
.panel { background: var(--panel); color: var(--panel-text); padding: clamp(24px, 3vw, 34px); border-radius: 2px; min-width: 0; }
.panel h2, .panel h3, .panel-title { color: var(--gold); }
.panel-title { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; margin-bottom: 20px; }
.pill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pill-list li { display: grid; gap: 7px; }
.pill {
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--panel-pill-ink);
  background: var(--panel-pill); padding: .42em .9em; border-left: 5px solid var(--panel-deep); border-radius: 1px;
}
.pill-list p { font-size: .93rem; line-height: 1.5; padding-left: 1em; }

/* Proof strip */
.proof { background: var(--panel-deep); color: var(--panel-text); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-block: 34px; }
.proof div { padding: 6px 22px; border-left: 1px solid color-mix(in srgb, var(--panel-text) 22%, transparent); display: grid; gap: 4px; align-content: start; }
.proof div:first-child { border-left: 0; padding-left: 0; }
.proof strong { font-family: var(--f-display); font-weight: 700; color: #FFFFFF; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof span { font-size: .88rem; line-height: 1.45; }
@media (max-width: 860px) {
  .proof .wrap { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .proof div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 440px) {
  .proof .wrap { grid-template-columns: 1fr; }
  .proof div { border-left: 0; padding-left: 0; }
}

/* Lifecycle sequence */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: stage; }
.lifecycle li { counter-increment: stage; position: relative; padding: 22px 16px 20px; border-top: 4px solid var(--ink); display: grid; gap: 8px; align-content: start; min-width: 0; }
.lifecycle li + li { border-left: 1px solid var(--line); }
.lifecycle li::before { content: "0" counter(stage); font-family: var(--f-display); font-weight: 600; font-size: .8rem; color: var(--muted); letter-spacing: .08em; }
.lifecycle li.post { border-top-color: var(--gold); }
.lifecycle h3 { font-size: 1.1rem; }
.lifecycle p { font-size: .9rem; line-height: 1.5; }
.lifecycle .kpi { font-family: var(--f-display); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
  background: var(--mist); padding: .3em .6em; justify-self: start; border-radius: 2px; }
.lifecycle-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.lifecycle-legend span::before { content: ""; display: inline-block; width: 22px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--ink); }
.lifecycle-legend span.post::before { background: var(--gold); }
@media (max-width: 980px) { .lifecycle { grid-template-columns: repeat(3, 1fr); } .lifecycle li:nth-child(4) { border-left: 0; } }
@media (max-width: 560px) { .lifecycle { grid-template-columns: 1fr; } .lifecycle li { border-left: 0 !important; } }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature { display: grid; gap: 12px; align-content: start; min-width: 0; }
.icon-tile { width: 52px; height: 52px; background: var(--pill); display: grid; place-items: center; border-radius: 3px; }
.icon-tile svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature p { font-size: .98rem; }
.text-link { font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); justify-self: start; padding-bottom: 2px; }
.text-link:hover { color: var(--gold-ink); }

/* Service blocks */
.service { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-intro { display: grid; gap: 14px; align-content: start; }
.service-intro .tag { font-family: var(--f-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.checklist-groups { display: grid; gap: 22px; }
.checklist-groups h4 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; font-size: .98rem; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 1px; background: var(--gold); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }

/* Phases */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.phase { padding: 26px 24px 28px; border: 1px solid var(--line); border-top: 4px solid var(--ink); display: grid; gap: 12px; align-content: start; background: var(--paper); min-width: 0; }
.phase + .phase { border-left: 0; }
.phase .when { font-family: var(--f-display); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.phase .step { font-family: var(--f-display); font-weight: 700; color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } .phase + .phase { border-left: 1px solid var(--line); border-top-width: 4px; } }

/* Maturity scale */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.scale div { background: var(--panel-pill); color: var(--panel-pill-ink); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.scale div:nth-child(1) { opacity: .55; } .scale div:nth-child(2) { opacity: .7; } .scale div:nth-child(3) { opacity: .85; }
.scale div:nth-child(5) { background: var(--gold); color: #222A3A; }
.scale b { font-family: var(--f-display); font-size: 1.3rem; line-height: 1; }
.scale span { font-size: .82rem; font-weight: 600; }
@media (max-width: 560px) { .scale { grid-template-columns: 1fr; } }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.areas h3 { color: var(--gold); font-size: 1rem; margin-bottom: 8px; }
.areas ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .95rem; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }

/* Fit list */
.fit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; list-style: none; margin: 0; padding: 0; }
.fit li { padding: 14px 0 14px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.fit li strong { color: var(--ink); font-family: var(--f-display); font-weight: 600; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* About */
.about-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.portrait { width: 100%; max-width: 260px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px var(--mist); }
@media (max-width: 760px) { .about-hero { grid-template-columns: 1fr; } .portrait { max-width: 200px; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); }
.timeline .dates { font-family: var(--f-display); font-weight: 600; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline h3 { margin-bottom: 4px; }
.timeline .role { font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 8px; }
.timeline p { font-size: .97rem; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }
.aside-list { display: grid; gap: 16px; }
.aside-item { border-left: 4px solid var(--gold); padding: 4px 0 4px 16px; }
.aside-item h3 { font-size: 1rem; margin-bottom: 4px; }
.aside-item p { font-size: .95rem; }

/* CTA band (slanted, from the one-pager Connect bar) */
.cta-band { background: var(--panel); color: var(--panel-text); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 28%; background: var(--panel-deep); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.cta-band .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { color: #FFFFFF; max-width: 18em; }
.cta-band p { max-width: 40em; margin-top: 10px; }
@media (max-width: 760px) { .cta-band::after { display: none; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form.contact { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: var(--ink); }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--pill);
  border-radius: var(--radius); padding: .75em .85em; width: 100%;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { font-size: .95rem; padding: 12px 14px; background: var(--mist); border-left: 4px solid var(--gold); }
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font-family: var(--f-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-card dd { margin: 2px 0 0; color: #FFFFFF; font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-card a { color: #FFFFFF; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Page intro */
.page-intro { background: var(--mist); position: relative; overflow: hidden; }
.page-intro::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 62%; background: var(--paper); clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
.page-intro .wrap { position: relative; padding-block: clamp(48px, 6vw, 80px); display: grid; gap: 18px; }
@media (max-width: 760px) { .page-intro::before { width: 100%; clip-path: none; } }

/* Footer — Connect bar */
.site-footer { background: var(--mist); }
.connect { display: grid; grid-template-columns: auto 1fr; align-items: stretch; }
.connect-label { background: var(--panel); padding: 22px max(40px, 6vw) 22px max(20px, env(safe-area-inset-left, 0px)); clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #B9BCC3; display: flex; align-items: center; }
.connect-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 18px max(20px, env(safe-area-inset-right, 0px)) 18px 28px; background: var(--pill); }
.connect-links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); text-underline-offset: 4px; overflow-wrap: anywhere; }
.connect-links svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 640px) { .connect { grid-template-columns: 1fr; } .connect-label { clip-path: none; padding-block: 16px; } .connect-links { padding-left: max(20px, env(safe-area-inset-left, 0px)); } }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 22px; font-size: .86rem; color: var(--muted); }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--ink); text-decoration: underline; }

.contact-card { display: grid; gap: 16px; justify-items: start; }
.contact-card .panel-title { margin-bottom: 0; }
.book-note { font-size: .95rem; line-height: 1.55; }
.contact-card dl.direct { margin-top: 14px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--panel-text) 22%, transparent); width: 100%; }
@media (max-width: 860px) { .contact-card { order: -1; } }

/* Ownership handoff diagram */
.handoff { display: grid; gap: 10px; }
.handoff-teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.handoff-teams li { position: relative; background: var(--mist); padding: 18px 18px 20px; display: grid; gap: 4px; align-content: start; min-width: 0; border-top: 4px solid var(--pill); }
.handoff-teams li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 14px; transform: translateY(-50%);
  background: var(--pill); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.handoff-teams b { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.handoff-teams span { font-size: .9rem; line-height: 1.45; }
.handoff-bar { padding: 14px 18px; font-family: var(--f-display); font-weight: 600; font-size: .98rem; line-height: 1.4; }
.handoff-bar--gap { border: 2px dashed var(--pill); color: var(--muted); background: transparent; }
.handoff-bar--owner { background: var(--panel); color: #FFFFFF; border-left: 6px solid var(--gold); }
@media (max-width: 760px) {
  .handoff-teams { grid-template-columns: 1fr 1fr; }
  .handoff-teams li::after { display: none; }
}
@media (max-width: 420px) { .handoff-teams { grid-template-columns: 1fr; } }
.section.ownership { padding-bottom: 0; }
.handoff-teams li { grid-template-rows: auto 1fr; }
.handoff-teams b { white-space: nowrap; }
