/* CodeBlock Digital Solutions - site styles
   Palette taken from the CB logo: logo red #D8221F, logo yellow #FAC005. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #D8221F;
  --red-deep: #A81618;
  --red-ink: #7E1012;
  --yellow: #FAC005;
  --yellow-soft: #FFE8A1;
  --yellow-wash: #FFF4CC;
  --ink: #1F0D0B;
  --ink-2: #57423D;
  --ink-3: #7A6560;
  --cream: #FFF8EC;
  --paper: #FFFFFF;
  --line: #EEDFCB;
  --line-strong: #DCC6AA;
  --ok: #1C7C4A;

  --font-display: "Fraunces", "Cooper Black", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 13, 11, .06), 0 8px 24px rgba(31, 13, 11, .06);
  --shadow-pop: 5px 5px 0 var(--ink);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.on-red :focus-visible, .on-ink :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 700; line-height: 1.2; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 650; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--paper); }
.section--ink { background: var(--ink); color: #F6E9DD; }
.section--ink h2, .section--ink h3 { color: #FFF3E3; }
.section--yellow { background: var(--yellow); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-sans); font-size: .8rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.section--ink .eyebrow { color: var(--yellow); }
.on-red .eyebrow { color: #FFFFFF; }
.on-red .eyebrow::before { background: var(--yellow); }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 64ch; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.muted { color: var(--ink-3); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 650; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-shadow: var(--red-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.4em; border-radius: 999px;
  font: 650 1rem/1.1 var(--font-sans); text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--btn-shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { color: var(--btn-fg); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-shadow); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); --btn-shadow: var(--ink); }
.btn--red { --btn-bg: var(--red); --btn-fg: #fff; --btn-shadow: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-shadow: transparent; box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--yellow-wash); box-shadow: none; }
.on-red .btn--ghost { --btn-fg: #FFF3E3; border-color: #FFF3E3; }
.on-red .btn--ghost:hover { --btn-bg: rgba(255,255,255,.1); }
.btn--sm { min-height: 42px; padding: .6em 1.1em; font-size: .93rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.text-link::after { content: "\2192"; transition: transform .15s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  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; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 800; font-size: 1.32rem; letter-spacing: -.01em; }
.brand-name span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 650; color: var(--red-deep); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: 10px 14px; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--yellow-wash); color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { background: var(--yellow); }
.nav .btn { margin-left: 8px; }
.nav-phone { display: none; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink);
    background: var(--paper); color: var(--ink); font: 650 .95rem var(--font-sans); cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 20px; box-shadow: 0 16px 32px rgba(31,13,11,.12);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav .btn { margin: 10px 0 0; }
  .nav-phone { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--red); color: #FFF7F0; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 96px) clamp(96px, 11vw, 140px); }
.hero h1 { color: var(--yellow); margin-bottom: .35em; }
.hero .lede { color: #FFF7F0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; font-size: .92rem; color: #FFFFFF; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--yellow); }
.hero-bg {
  position: absolute; right: -6%; bottom: -12%; width: min(62vw, 820px); opacity: .07; z-index: 0; pointer-events: none;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 80px); width: 100%; z-index: 1; color: var(--cream); }
.hero--page .wrap { grid-template-columns: 1fr; padding-block: clamp(48px, 7vw, 84px) clamp(84px, 10vw, 120px); }
.hero--page h1 { max-width: 18ch; }
.hero--page .lede { max-width: 62ch; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.breadcrumbs { font-size: .85rem; margin-bottom: 18px; color: #FFFFFF; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: #FFF3E3; }

/* hero proof card */
.proof-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: 22px 22px 16px; position: relative;
}
.proof-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.proof-card__label { font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.proof-card__value { font-family: var(--font-sans); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); line-height: 1; letter-spacing: -.02em; margin-top: 6px; }
.proof-card__delta { display: inline-flex; align-items: center; gap: 4px; background: #E6F4EC; color: var(--ok); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.proof-card__foot { font-size: .8rem; color: var(--ink-3); margin: 8px 0 0; }
.sticker {
  position: absolute; top: -18px; right: 18px; background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .78rem;
  transform: rotate(3deg); letter-spacing: .02em;
}

/* ---------- KPI strip / stat tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.kpi__value { font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1; letter-spacing: -.02em; }
.kpi__value em { font-style: normal; color: var(--red); }
.kpi__label { margin-top: 10px; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.kpi__src { margin-top: 10px; font-size: .75rem; color: var(--ink-3); }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr; } }
.kpis--overlap { margin-top: calc(-1 * clamp(64px, 8vw, 96px)); position: relative; z-index: 2; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.5vw, 28px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { position: relative; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card--link:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.card--link a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--red { background: var(--red); color: var(--yellow); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F0D0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.section--ink .checklist li::before { box-shadow: none; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--yellow-wash); color: var(--ink-2); font-size: .78rem; font-weight: 650; border: 1px solid var(--line-strong); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }

/* pillars */
.pillar { border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3.5vw, 40px); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.pillar--red { background: var(--red); color: #FFF7F0; }
.pillar--red h3 { color: var(--yellow); }
.pillar--yellow { background: var(--yellow); color: var(--ink); }
.pillar h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.pillar .checklist li::before { background-color: #FFF3E3; }
.pillar--yellow .checklist li::before { background-color: var(--paper); }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--yellow); -webkit-text-stroke: 2px var(--ink);
}
.section--ink .step::before { -webkit-text-stroke: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* founder card */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.monogram {
  width: 96px; height: 96px; border-radius: 26px; background: var(--red); color: var(--yellow);
  display: grid; place-items: center; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 800; font-size: 2.3rem; letter-spacing: -.02em;
}
.monogram--lg { width: clamp(120px, 18vw, 180px); height: clamp(120px, 18vw, 180px); border-radius: 36px; font-size: clamp(2.8rem, 2rem + 3vw, 4.2rem); box-shadow: 8px 8px 0 var(--ink); }
.founder h3 { margin-bottom: .2em; }
@media (max-width: 520px) { .founder { grid-template-columns: 1fr; } }

/* quote */
.pull {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; margin: 0 0 18px;
}

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 26px 44px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.timeline li.is-key::before { background: var(--red); }
.timeline .when { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-deep); }
.timeline h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; margin: 4px 0 4px; line-height: 1.35; }
.timeline p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq details[open] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 650; font-size: 1.06rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 700; line-height: 28px; text-align: center;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--red); color: #FFF7F0; border-radius: calc(var(--radius) + 10px); padding: clamp(32px, 5vw, 64px); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--yellow); margin-bottom: .3em; }
.cta-band p { margin: 0; color: #FFF7F0; max-width: 58ch; }
.cta-band .btn--ghost { --btn-fg: #FFF3E3; border-color: #FFF3E3; }
.cta-band .cb-deco { position: absolute; right: -40px; bottom: -60px; width: 320px; opacity: .08; pointer-events: none; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.case:first-of-type { border-top: 0; }
.case-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .case-head { grid-template-columns: 1fr; } }
.case-num { display: inline-block; font-family: var(--font-sans); font-weight: 700; color: var(--red-deep); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.facts dt { font-weight: 650; color: var(--ink-3); }
.facts dd { margin: 0; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; } }
.case-toc { display: flex; flex-wrap: wrap; gap: 10px; }
.case-toc a { text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem; }
.case-toc a:hover { background: var(--yellow); border-color: var(--ink); }
.note { background: var(--yellow-wash); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .95rem; color: var(--ink-2); }
.note strong { color: var(--ink); }
.shot { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--paper); }
.shot figcaption, figure.plain figcaption { font-size: .82rem; color: var(--ink-3); padding: 10px 14px; border-top: 1px solid var(--line); background: var(--paper); }
figure { margin: 0; }
.gsc-wrap { position: relative; }
.gsc-marker { position: absolute; left: 59.9%; top: 40%; bottom: 12.5%; width: 0; border-left: 2px solid var(--ink); }
.gsc-marker span {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700;
}
@media (max-width: 600px) { .gsc-marker span { font-size: .62rem; padding: 2px 7px; top: -26px; } }

/* scoreboard table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; background: #FFFCF6; position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FFFBF1; }
.spark { width: 120px; height: 32px; display: block; }
.delta-up { color: var(--ok); font-weight: 650; }
.delta-down { color: var(--red-deep); font-weight: 650; }
.delta-flat { color: var(--ink-3); font-weight: 650; }
.group-row td { background: var(--yellow-wash); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* charts */
.chart-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 12px; box-shadow: var(--shadow); }
.chart-card h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; margin: 0 0 2px; line-height: 1.35; }
.chart-card .chart-sub { font-size: .85rem; color: var(--ink-3); margin: 0 0 8px; }
.chart { position: relative; width: 100%; min-height: 240px; }
.chart--sm { min-height: 180px; }
.chart svg { display: block; overflow: visible; }
.chart .tt {
  position: absolute; pointer-events: none; z-index: 5; min-width: 120px;
  background: var(--ink); color: #FFF3E3; border-radius: 10px; padding: 8px 12px; font-size: .82rem; line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0,0,0,.18); opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease;
}
.chart .tt.is-on { opacity: 1; transform: none; }
.chart .tt b { display: block; font-size: 1.02rem; }
.chart .tt i { font-style: normal; opacity: .8; }
.chart-source { font-size: .75rem; color: var(--ink-3); margin: 8px 0 0; }
details.data-table { margin-top: 10px; font-size: .88rem; }
details.data-table summary { cursor: pointer; color: var(--red-deep); font-weight: 650; }
details.data-table table { margin-top: 8px; font-size: .85rem; }
details.data-table th, details.data-table td { padding: 6px 10px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 650; font-size: .95rem; }
.field .req { color: var(--red); }
.field .hint { font-size: .82rem; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; min-height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F0D0B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-soft); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field .err { display: none; color: var(--red-deep); font-size: .85rem; font-weight: 600; }
.field.has-error .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--paper); font-weight: 600; font-size: .93rem; cursor: pointer; }
.chip input:checked + span { background: var(--yellow); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 600; }
.form-status.is-ok { display: block; background: #E6F4EC; color: #0F4F2E; border: 1px solid #9FD1B4; }
.form-status.is-err { display: block; background: #FDE8E7; color: var(--red-ink); border: 1px solid #F3B5B1; }
.btn[disabled] { opacity: .6; cursor: progress; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.contact-list .icon-badge { width: 48px; height: 48px; margin: 0; }
.contact-list b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-list a { color: var(--ink); font-weight: 650; text-decoration: none; }
.contact-list a:hover { color: var(--red-deep); text-decoration: underline; }
address { font-style: normal; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { margin: 0 0 1.4em; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: #FFFFFF; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 2rem; }
.toc h2 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: .95rem; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9D8CB; padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.site-footer a { color: #FFF3E3; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #FFF3E3; }
.footer-brand .brand-name span { color: var(--yellow); }
.footer-brand p { margin-top: 16px; color: #D7C4B6; max-width: 36ch; }
.site-footer h2 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin: 6px 0 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: #BFAB9D; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.msme svg { width: 16px; height: 16px; flex: none; }
.msme { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .82rem; color: #D7C4B6; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; }

/* misc */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.max-60 { max-width: 60ch; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.stack > * + * { margin-top: 16px; }
.error-code { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 800; font-size: clamp(6rem, 4rem + 10vw, 12rem); line-height: .9; color: var(--yellow); margin: 0; }
@media print { .site-header, .site-footer, .hero-wave, .cta-band { display: none; } body { background: #fff; } }
.mx-auto { margin-inline: auto; }
.kpi-band { padding: 0; }
.kpi-band + .section { padding-top: clamp(48px, 6vw, 80px); }
.hero a:not(.btn) { color: #FFF3E3; }
.hero a:not(.btn):hover { color: var(--yellow); }

/* headshots */
.headshot { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); background: var(--yellow-soft); }
.portrait { position: relative; justify-self: end; width: 100%; max-width: 380px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 864 / 1100; object-fit: cover; border-radius: calc(var(--radius) + 6px); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--yellow-soft); }
.portrait .sticker { z-index: 2; top: -14px; right: 16px; }
.hero--page.hero--split .wrap { grid-template-columns: 1.25fr .75fr; align-items: center; }
@media (max-width: 900px) {
  .hero--page.hero--split .wrap { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 300px; }
}
