:root {
  color-scheme: light;
  --paper: #fcfaf6;
  --surface: #fffefa;
  --ink: #201832;
  --muted: #5e5668;
  --line: #e6e0e8;
  --accent: #543497;
  --panel: #201733;
  --lime: #d9f48b;
  --lilac: #cbb8f1;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'DM Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 17px/1.65 var(--sans); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #8660cc; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.03; letter-spacing: -.045em; }
h1 { font-size: clamp(3.1rem, 6.05vw, 6.55rem); }
h2 { font-size: clamp(2.4rem, 4.1vw, 4.25rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
p + p { margin-top: 1rem; }
::selection { background: #e7d8ff; color: var(--ink); }
[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(1200px, 100% - 80px); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; translate: 0 -200%; z-index: 2; padding: .65rem 1rem; background: white; }
.skip:focus { translate: 0; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font: 800 1.35rem/1 var(--display); letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 34px; height: 33px; position: relative; overflow: hidden; flex: none; }
.brand-mark img { width: 220px; max-width: none; position: absolute; left: -48px; top: -2px; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
.site-nav a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.site-nav .nav-contact { border: 1px solid #d6c9e5; border-radius: 6px; padding: .52rem .9rem; }
.site-nav .nav-contact:hover { color: var(--surface); background: var(--accent); border-color: var(--accent); text-decoration: none; }
.eyebrow { color: var(--accent); font: 600 .73rem/1.5 var(--mono); letter-spacing: .105em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(2rem, 5vw, 5.25rem); align-items: center; padding-block: clamp(4.25rem, 8vw, 7.75rem) clamp(4.25rem, 7.5vw, 7rem); }
.hero h1 { margin-top: 1rem; }
.hero h1 span { display: block; color: var(--accent); }
.intro { color: var(--muted); font-size: clamp(1.025rem, 1.7vw, 1.22rem); line-height: 1.6; max-width: 36rem; margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.35rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; gap: .9rem; justify-content: space-between; border: 1px solid transparent; border-radius: 6px; padding: .75rem 1.05rem; background: var(--accent); color: #fff; font-size: .92rem; line-height: 1.45; font-weight: 750; text-decoration: none; }
.button:hover { background: #3c226d; }
.button::after, .text-link::after { content: '↗'; text-decoration: none; display: inline-block; }
.text-link { display: inline-flex; align-items: baseline; gap: .55rem; font-weight: 750; }

.benchmark { color: #fff; padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: 16px; background: radial-gradient(ellipse at 91% 2%, #4a2a64 0%, transparent 54%), var(--panel); overflow: hidden; position: relative; box-shadow: 0 20px 54px #33214e19; }
.benchmark::before { content: ''; position: absolute; width: 55%; height: 37%; right: 0; top: 0; pointer-events: none; background-image: radial-gradient(#dcc7fa55 1px, transparent 1px); background-size: 15px 15px; mask-image: linear-gradient(230deg, #000c, transparent 67%); }
.benchmark figcaption, .chart-source { position: relative; }
.benchmark .eyebrow, .chart-source, .chart-scale { color: #d7c9e7; }
.benchmark h2, .benchmark h3 { margin-top: .45rem; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.benchmark-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; margin: 1.2rem 0 .95rem; }
.benchmark-total strong { color: var(--lime); font: 750 clamp(3.5rem, 6vw, 5.6rem)/.95 var(--display); letter-spacing: -.077em; }
.benchmark-total span { color: #e9def1; font-size: .88rem; }
.chart { border-top: 1px solid #ffffff25; border-bottom: 1px solid #ffffff25; padding: .95rem 0; }
.chart-row + .chart-row { margin-top: .65rem; }
.chart-label { display: flex; justify-content: space-between; gap: 1rem; color: #f3eafd; font: 500 .77rem/1.6 var(--mono); margin-bottom: .3rem; }
.chart-track { background: repeating-linear-gradient(90deg, transparent, transparent calc(25% - 1px), #f4e8ff20 calc(25% - 1px), #f4e8ff20 25%); }
.chart-bar { display: block; height: 11px; border-radius: 2px; background: var(--lilac); width: 99%; }
.chart-bar.after { width: 13%; background: var(--lime); }
.chart-scale { margin-top: .75rem; display: flex; justify-content: space-between; font: 400 .65rem/1.4 var(--mono); }
.chart-source { margin-top: .87rem; font-size: .76rem; line-height: 1.5; }
.chart-source a { color: #fff; }

.section { padding-block: clamp(3.5rem, 7.2vw, 6.7rem); }
.section-head { display: grid; grid-template-columns: 1fr minmax(16rem, 28rem); gap: 1rem 2.5rem; align-items: end; margin-bottom: 2rem; }
.section-head h2, .section-head h3 { margin-top: .45rem; }
.section-head p:not(.eyebrow), .section-copy { color: var(--muted); }
.rule { border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service { display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid #e3daeb; border-radius: 10px; padding: clamp(1.4rem, 3.5vw, 2.6rem); }
.service:nth-child(2) { background: #f5effb; }
.service .eyebrow { margin-bottom: .7rem; }
.service p:not(.eyebrow) { color: var(--muted); margin-top: .75rem; }
.service .bullets { flex: 1; }
.service .text-link { margin-top: .9rem; }
.bullets { margin: .85rem 0 0; padding-left: 1.15rem; }
.bullets li + li { margin-top: .35rem; }
.bullets li::marker { color: var(--accent); }
.work-band { background: #f1ebf8; border-block: 1px solid #e5daef; }
.work-layout { display: grid; grid-template-columns: 1fr minmax(18rem, .85fr); gap: 2rem 4rem; align-items: center; }
.work-layout h2 { margin-top: .45rem; }
.work-layout p:not(.eyebrow) { color: var(--muted); margin-top: .95rem; max-width: 38rem; }
.work-layout .text-link { margin-top: 1rem; }
.proof { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid #e0d3eb; border-radius: 10px; overflow: hidden; }
.proof div { display: grid; grid-template-rows: auto 1fr; padding: clamp(.95rem, 2vw, 1.75rem); }
.proof div + div { border-left: 1px solid var(--line); }
.proof dt { margin-top: .38rem; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.proof dd { grid-row: 1; color: var(--accent); font: 750 clamp(2rem, 4vw, 3.35rem)/1 var(--display); letter-spacing: -.065em; }
.person { display: grid; grid-template-columns: minmax(13rem, .85fr) 1.2fr; gap: 1.25rem 3rem; align-items: start; }
.person h2 { margin-top: .48rem; }
.person-copy { max-width: 44rem; }
.person-copy p { color: var(--muted); }
.person-copy .text-link { margin-top: .7rem; }
.questions { max-width: 52rem; }
.questions h2 { margin-bottom: 1.25rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; position: relative; padding: .88rem 2rem .88rem 0; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 500 1.2rem/1 var(--mono); position: absolute; right: .3rem; top: 1.17rem; color: var(--accent); }
details[open] summary::after { content: '−'; }
details p { max-width: 42rem; color: var(--muted); padding-bottom: .95rem; }
.contact { background: var(--panel); color: #fff; }
.contact-layout { display: grid; grid-template-columns: 1fr minmax(15rem, .58fr); gap: 1.6rem 4rem; align-items: center; }
.contact .eyebrow { color: var(--lilac); }
.contact h2 { margin-top: .4rem; }
.contact p:not(.eyebrow) { margin-top: .8rem; color: #e6daef; max-width: 38rem; }
.contact-actions { display: grid; justify-items: start; gap: .6rem; }
.contact .button { color: var(--panel); background: var(--lime); }
.contact .button:hover { background: #e9fbbb; }
.contact .text-link { color: #fff; font-size: .9rem; }
.site-footer { background: var(--paper); }
.footer-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 2rem; padding-block: 1rem; }
.site-footer p { color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.35rem; }
.footer-links a { font-size: .82rem; }

.sub-hero { display: grid; grid-template-columns: 1.2fr .75fr; gap: 2rem 4rem; align-items: center; }
.sub-hero h1 { font-size: clamp(3rem, 6.1vw, 5.8rem); margin-top: .55rem; }
.breadcrumb { display: inline-block; margin-bottom: 1.25rem; font-size: .9rem; font-weight: 700; }
.aside-panel { background: #f2ebfa; border: 1px solid #e3d6ee; border-radius: 10px; padding: clamp(1.4rem, 3.5vw, 2.25rem); }
.aside-panel h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.aside-panel p, .aside-panel .bullets { margin-top: .75rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: phase; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 2px solid #d8c8ea; padding: 1rem 0 0; counter-increment: phase; }
.steps li::before { content: counter(phase, decimal-leading-zero); display: block; margin-bottom: .55rem; font: 600 .75rem var(--mono); color: var(--accent); }
.steps p { color: var(--muted); margin-top: .55rem; }
.article { display: grid; grid-template-columns: minmax(0, 48rem); justify-content: center; }
.article h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); margin: 1.65rem 0 .55rem; }
.article h2:first-child { margin-top: 0; }
.article p, .article ol { color: var(--muted); }
.article code { color: var(--accent); font: 500 .88em var(--mono); overflow-wrap: anywhere; }
.metrics { border-collapse: collapse; width: 100%; margin-block: .85rem 1rem; font-size: .92rem; }
.metrics th, .metrics td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.metrics td, .metrics thead th:not(:first-child) { text-align: right; white-space: nowrap; }
.metrics thead { color: var(--accent); }

@media (max-width: 1000px) { .hero { gap: 2rem; } .wrap { width: min(1200px, 100% - 56px); } }
@media (max-width: 760px) {
  .wrap { width: min(1200px, 100% - 38px); }
  .header-inner { min-height: 0; padding-block: .8rem; flex-wrap: wrap; gap: .8rem 1rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: .65rem; }
  .site-nav a { font-size: .79rem; }
  .site-nav .nav-contact { padding: .35rem .6rem; }
  .hero, .section-head, .service-grid, .work-layout, .person, .contact-layout, .sub-hero, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; gap: 2.25rem; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4.4rem); }
  .intro { margin-top: 1.05rem; }
  .section-head { margin-bottom: 1.4rem; }
  .work-layout { gap: 1.35rem; }
  .footer-inner { justify-content: flex-start; }
  .metrics { font-size: .82rem; }
  .metrics td, .metrics th { padding-inline: .33rem; }
}
@media (max-width: 450px) {
  .site-nav { display: grid; grid-template-columns: 1.28fr 1fr .9fr auto; gap: .42rem; }
  .site-nav a { font-size: .75rem; line-height: 1.3; white-space: normal; }
  .site-nav .nav-contact { white-space: nowrap; }
  .metrics td, .metrics th { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
