:root {
  --ink: #20264f;
  --ink-soft: #5f6682;
  --indigo: #252b5b;
  --violet: #6255f6;
  --cyan: #17c7e4;
  --lavender: #dcd9ff;
  --lavender-soft: #f3f2ff;
  --paper: #fffefa;
  --sand: #f4f0e8;
  --white: #ffffff;
  --line: color-mix(in srgb, var(--indigo) 16%, transparent);
  --shadow: 0 24px 70px rgba(31, 38, 79, 0.14);
  --container: min(74rem, calc(100% - 2.5rem));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 20rem; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.demo-ribbon { min-height: 2.5rem; padding: 0.55rem 1.25rem; display: flex; align-items: center; justify-content: center; gap: 0.7rem; background: var(--indigo); color: var(--white); font-size: 0.78rem; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.demo-ribbon span:first-child { padding: 0.16rem 0.48rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-weight: 800; }

.site-header { width: var(--container); min-height: 5.6rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none; font-weight: 750; font-size: 1.04rem; }
.brand img { width: 9rem; height: auto; }
.brand > span { padding-left: 0.9rem; border-left: 1px solid var(--line); }
.brand small { display: block; margin-top: 0.15rem; color: var(--ink-soft); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); font-size: 0.88rem; font-weight: 750; }
.site-nav > a:not(.button) { text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--violet); }
.menu-button { display: none; width: 2.8rem; height: 2.8rem; place-content: center; gap: 0.25rem; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.menu-button span:not(.sr-only) { display: block; width: 1rem; height: 2px; background: var(--ink); }

.button { min-height: 3rem; padding: 0.78rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.45rem; text-decoration: none; font-size: 0.88rem; font-weight: 800; }
.button-small { min-height: 2.55rem; padding-block: 0.6rem; }
.button-primary { background: var(--indigo); color: var(--white); box-shadow: 0 12px 30px rgba(37,43,91,.25); }
.button-secondary { border: 1px solid var(--ink); }
.text-link { font-weight: 800; text-underline-offset: 0.3rem; }

.hero { min-height: min(46rem, calc(100vh - 8rem)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 1fr); background: var(--lavender); overflow: hidden; }
.hero-copy { padding: clamp(3.5rem, 8vw, 8rem) max(1.25rem, calc((100vw - 74rem) / 2)); padding-right: clamp(2rem, 6vw, 6rem); align-self: center; }
.eyebrow { margin: 0 0 1rem; color: var(--violet); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, blockquote { font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(3.2rem, 6.4vw, 6.5rem); line-height: 0.95; letter-spacing: -0.055em; }
.hero-lede { max-width: 38rem; margin: 1.7rem 0 0; color: #41496d; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.demo-callout { max-width: 38rem; margin: 2rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(37,43,91,.22); font-size: 0.8rem; line-height: 1.5; }
.hero-media { min-width: 0; margin: 0; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-media figcaption { position: absolute; right: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: 0.55rem 0.75rem; border-radius: 0.35rem; background: rgba(20,26,58,.84); color: var(--white); font-size: 0.7rem; }

.safety-bar { padding: 1rem max(1.25rem, calc((100vw - 74rem) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--indigo); color: var(--white); font-size: 0.84rem; }
.safety-bar div { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.safety-bar a { font-weight: 800; white-space: nowrap; }

.section { width: var(--container); margin-inline: auto; padding-block: clamp(5rem, 9vw, 8.5rem); }
.intro-section { display: grid; grid-template-columns: 0.45fr 1.35fr 0.8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.section-label { font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(2.3rem, 4.5vw, 4.3rem); line-height: 1.02; letter-spacing: -0.04em; }
.intro-copy > p:last-child, .section-heading > p { color: var(--ink-soft); line-height: 1.75; }
blockquote { margin: 2rem 0 0; color: var(--violet); font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.35; }
blockquote cite { display: block; margin-top: 1.5rem; color: var(--ink); font-family: inherit; font-size: 0.72rem; font-style: normal; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }

.impact-strip { padding: clamp(3rem, 6vw, 5rem) max(1.25rem, calc((100vw - 74rem) / 2)); display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 3rem; background: var(--sand); }
.impact-strip h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.impact-strip dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.impact-strip dl > div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.impact-strip dt { font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 4.4rem); line-height: 1; }
.impact-strip dd { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; }

.section-heading { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 3rem; align-items: end; }
.section-heading > p { margin: 0; }
.service-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { min-height: 22rem; padding: 2rem; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-0.35rem); box-shadow: var(--shadow); }
.service-card > span { color: var(--violet); font-size: 0.72rem; font-weight: 850; }
.service-card h3 { margin: auto 0 1rem; font-size: 2rem; }
.service-card p { min-height: 4.5rem; color: var(--ink-soft); line-height: 1.6; }
.service-card a { margin-top: 1rem; font-size: 0.82rem; font-weight: 850; }

.intake-section { padding: clamp(5rem, 9vw, 8rem) max(1.25rem, calc((100vw - 74rem) / 2)); display: grid; grid-template-columns: minmax(17rem, 0.72fr) minmax(22rem, 1.28fr); gap: clamp(2.5rem, 7vw, 6rem); background: var(--lavender-soft); align-items: start; }
.intake-copy { position: sticky; top: 2rem; }
.intake-copy p:not(.eyebrow), .intake-copy li { color: var(--ink-soft); line-height: 1.65; }
.intake-copy ul { padding-left: 1.2rem; }
.embed-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--white); box-shadow: var(--shadow); }
.embed-shell-header { min-height: 3.4rem; padding: 0.8rem 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 800; }
.embed-shell-header strong { padding: 0.25rem 0.55rem; border-radius: 999px; background: #fff1c8; color: #6d4f00; font-size: 0.67rem; letter-spacing: 0.07em; text-transform: uppercase; }
.embed-mount { min-height: 35rem; display: grid; place-items: center; padding: 2rem; background: #fbfcff; }
.embed-status { max-width: 27rem; display: grid; justify-items: center; gap: 0.65rem; color: var(--ink-soft); text-align: center; line-height: 1.5; }
.embed-status strong { color: var(--ink); font-size: 1rem; }
.embed-mark { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: var(--white); font-weight: 900; }
.embed-disclaimer { margin: 0; padding: 0.8rem 1rem; border-top: 1px solid var(--line); background: #fff7e6; color: #6d4f00; font-size: 0.7rem; font-weight: 750; text-align: center; }
code { padding: 0.12rem 0.3rem; border-radius: 0.25rem; background: rgba(37,43,91,.08); font-size: 0.85em; }

.demo-details { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 7rem); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.detail-grid p { margin: 0; padding-top: 1.2rem; border-top: 2px solid var(--violet); color: var(--ink-soft); line-height: 1.6; }
.detail-grid strong { color: var(--ink); }

.site-footer { padding: 2rem max(1.25rem, calc((100vw - 74rem) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; background: var(--indigo); color: var(--white); font-size: 0.75rem; }
.site-footer p { margin: 0; text-align: center; line-height: 1.5; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { width: 6.5rem; padding: 0.35rem; border-radius: 0.3rem; background: var(--white); }
.footer-brand span { font-weight: 800; }

@media (max-width: 900px) {
  .menu-button { display: grid; }
  .site-nav { display: none; position: absolute; z-index: 10; top: 8.1rem; right: 1.25rem; left: 1.25rem; padding: 1.25rem; flex-direction: column; align-items: stretch; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .site-nav[data-open] { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 5rem 1.25rem; }
  .hero-media { min-height: 30rem; }
  .intro-section, .impact-strip, .section-heading, .intake-section, .demo-details { grid-template-columns: 1fr; }
  .impact-strip dl { margin-top: 1rem; }
  .intake-copy { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  :root { --container: min(100% - 1.5rem, 74rem); }
  .demo-ribbon { align-items: flex-start; gap: 0.4rem; flex-direction: column; }
  .demo-ribbon span:nth-child(2) { display: none; }
  .site-header { min-height: 4.8rem; }
  .brand img { width: 7rem; }
  .brand > span { display: none; }
  .site-nav { top: 8.25rem; }
  .hero-copy { padding-block: 4rem; }
  .hero-media { min-height: 23rem; }
  .safety-bar { align-items: flex-start; flex-direction: column; }
  .impact-strip dl, .service-grid { grid-template-columns: 1fr; }
  .impact-strip dl > div { padding: 1rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .service-card { min-height: 18rem; }
  .embed-mount { min-height: 28rem; padding: 1.25rem; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .service-card { transition: none; }
}
