/* Shared motion and analytics surfaces, including the legal pages. */
:root { --paper: #f5f6f2; --panel: rgba(255, 255, 255, 0.92); }
html { scroll-padding-top: 7rem; }
body { background: var(--paper); }
body::before { background: none; }
.signal-canvas { opacity: 0.22; }
.site-header { grid-template-columns: auto 1fr auto; background: rgba(245, 246, 242, 0.9); backdrop-filter: blur(18px); }
.site-header.is-scrolled { background: rgba(245, 246, 242, 0.96); }
.site-header::after { content: ""; position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background: var(--green); transform: scaleX(var(--page-progress, 0)); transform-origin: left; }
.site-nav a { transition: color 160ms, background 160ms; }
.site-nav a[aria-current="location"] { background: var(--ink); color: white; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.hero { min-height: min(840px, 92svh); padding-top: 10rem; padding-bottom: 6rem; isolation: isolate; overflow: clip; }
.hero-grid { display: block; }
.hero-copy { width: 60%; max-width: 680px; position: relative; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.kinetic { font-size: 5.5rem; line-height: 1.06; letter-spacing: 0; margin: 0 0 1.6rem; white-space: nowrap; }
.kinetic > span { display: inline; transform: none; }
.kinetic > span.kinetic-letter { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-statement { margin: 0; font-size: 2.75rem; line-height: 1.13; max-width: 620px; text-wrap: balance; }
.hero-statement > span { color: var(--green); white-space: nowrap; }
.hero-statement > span:last-child { color: var(--blue); }
.hero-text { max-width: 35rem; font-size: 1.1rem; margin-top: 1.5rem; }
[data-kinetic] .kinetic-letter { display: inline-block; transform: translateY(var(--letter-y, 0px)) rotate(var(--letter-r, 0deg)); transition: transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1), color 180ms; }
[data-kinetic]:hover .kinetic-letter { color: var(--green); }
.hero-index { position: absolute; bottom: 1.5rem; left: 5%; right: 5%; display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font: 0.7rem ui-monospace, monospace; color: var(--muted); }
.scroll-cue { display: none; }
.section-kicker { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
h2 { font-size: 3.25rem; line-height: 1.08; }
h3 { font-size: 1.45rem; }
.lead { font-size: 1.15rem; }
.section:not(.hero) { padding-top: 6rem; padding-bottom: 6rem; }
.hero + .intro { padding-top: 3rem; }
.service-orbit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service-card { min-height: 16rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; padding: 1.6rem; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 260ms; }
.service-card:hover { background: #fff; transform: translateY(-3px); }
.service-card:hover::after { transform: scaleX(1); }
.service-card h3 { max-width: 17rem; margin-top: 1.25rem; }
.service-card p { margin-bottom: 0; }
.story { background: #edf1ed; border-block: 1px solid var(--line); }
.story-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr); gap: 5rem; }
.story-sticky { top: 7rem; }
.story-sticky h2 { font-size: 2.65rem; }
.story-sticky .lead { font-size: 1rem; margin-bottom: 0; }
.story-stage { height: 330px; background: #fff; box-shadow: none; margin-top: 1.5rem; }
.story-stage-heading { position: absolute; top: 1rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: 0.7rem ui-monospace, monospace; z-index: 1; }
.story-stage-heading span:first-child { color: var(--green); font-weight: 700; }
.story-stage canvas { width: 100%; height: 100%; display: block; }
.story-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e4ebe7; }
.story-track i { display: block; height: 100%; width: 100%; background: var(--green); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
.story-steps { gap: 0; padding-bottom: 12vh; }
.story-step { min-height: 62vh; position: relative; opacity: 0.4; transition: opacity 350ms; }
.story-step.is-active { opacity: 1; }
.story-step::before { content: ""; width: 2px; position: absolute; left: -1.5rem; top: 30%; bottom: 30%; background: var(--green); transform: scaleY(0); transition: transform 350ms; }
.story-step.is-active::before { transform: scaleY(1); }
.story-step span { font-size: 3.25rem; transform: translateX(var(--step-shift, 0px)); transition: color 250ms, transform 250ms; }
.story-step.is-active span { color: var(--green); }
.story-step p { font-size: 1.1rem; }
.analytics-demo { width: min(1180px, 100%); margin: 3rem auto 0; border: 1px solid var(--line); background: #fff; border-radius: 8px; overflow: hidden; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 2rem; border-bottom: 1px solid var(--line); }
.demo-toolbar h3 { font-size: 1.25rem; }
.demo-toolbar p { margin: 0.4rem 0 0; font-size: 0.78rem; color: var(--muted); }
.channel-filter { display: flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; color: var(--muted); }
select { font: inherit; }
.channel-filter select { border: 1px solid var(--line); border-radius: 4px; padding: 0.6rem; color: var(--ink); background: #f5f6f2; max-width: 100%; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.6rem 2rem; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.demo-metrics span, .demo-metrics small { display: block; font-size: 0.8rem; color: var(--muted); }
.demo-metrics strong { display: block; font-size: 2.6rem; font-weight: 650; font-variant-numeric: tabular-nums; margin: 0.2rem 0; }
.demo-metrics > div:nth-child(2) strong { color: var(--green); }
.demo-metrics > div:nth-child(3) strong { color: var(--blue); }
.demo-charts { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.trend-panel, .mix-panel { padding: 1.5rem 2rem; min-width: 0; }
.mix-panel { border-left: 1px solid var(--line); }
.demo-charts h4 { margin: 0; font-size: 0.85rem; font-weight: 650; }
.chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.2rem; }
.mix-panel h4 { min-height: 2.2rem; display: flex; align-items: center; }
.chart-frame { height: 260px; position: relative; margin-top: 1.5rem; }
.metric-switch { display: flex; background: #edf1ed; padding: 3px; border-radius: 4px; }
.metric-switch button { border: 0; padding: 0.45rem 0.65rem; border-radius: 3px; background: transparent; color: var(--muted); font-size: 0.75rem; cursor: pointer; transition: background 160ms, color 160ms; }
.metric-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0001; }
.metric-switch button:hover { color: var(--green); }
.chart-data { border-top: 1px solid var(--line); padding: 1rem 2rem; font-size: 0.8rem; }
.chart-data summary { cursor: pointer; width: fit-content; }
.table-scroll { overflow-x: auto; }
.chart-data table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.chart-data caption { text-align: left; color: var(--muted); padding-bottom: 1rem; }
.chart-data td, .chart-data th { text-align: right; padding: 0.7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.chart-data th:first-child { text-align: left; }
.platform-card { background: #fff; box-shadow: none; }
.platform-card h3 { font-size: 2rem; overflow-wrap: anywhere; }
.platform-card::after { background: none; border: 1px solid var(--green); border-radius: inherit; pointer-events: none; }
.platform-card::before { transform: translateY(var(--tile-y, 0px)); transition: transform 500ms ease; }
.platform-card:hover::before { transform: translateY(-4px) scale(1.025); }
.capability-main, .contact-panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 0; }
.capability-main { padding-right: 2rem; }
.capability-main h2 { font-size: 2.75rem; }
.capability-detail { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); min-height: 15rem; }
.capability-detail h3 { font-size: 1.25rem; }
.capability-item { box-shadow: none; background: white; min-height: 7rem; }
.capability-item[aria-pressed="true"] { background: var(--ink); color: white; }
.capability-item[aria-pressed="true"] span { color: #71dbb4; }
.text-link { display: inline-block; border-bottom: 1px solid var(--ink); font-weight: 650; }
.text-link span { display: inline-block; transition: transform 160ms; }
.text-link:hover span { transform: translateX(4px); }
.expertise { background: #edf1ed; border-block: 1px solid var(--line); }
.expertise-grid { width: min(1180px, 100%); margin: 3rem auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.expertise-group { padding-top: 1.5rem; border-top: 2px solid var(--green); }
.expertise-group:nth-child(2) { border-color: var(--blue); }
.expertise-group:nth-child(3) { border-color: var(--red); }
.expertise-group > span { font: 0.75rem ui-monospace, monospace; color: var(--muted); }
.expertise-group h3 { margin-top: 1.5rem; }
.expertise-group p { color: var(--muted); }
.approach-line { border-radius: 0; border-inline: 0; background: transparent; }
.approach-line span { font-size: 1.5rem; }
.contact-panel h2 { font-size: 2.75rem; }
.contact-form input, .contact-form textarea, .contact-form select { background: white; transition: border-color 160ms, box-shadow 160ms; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px #0f8b6610; }
.site-footer { background: #edf1ed; }
.site-footer a:not(.button):not(.footer-social) { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 160ms; }
.site-footer a:hover { text-decoration-color: currentColor !important; }
.legal-document h1 { font-size: 4.5rem; }
.legal-panel { background: #fff; box-shadow: none; }
.reveal { opacity: 1; transform: none; }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.js .story-step.reveal { opacity: 0.4; transform: none; }
.js .story-step.reveal.is-active { opacity: 1; }
.reveal { transition-delay: var(--reveal-delay, 0ms); }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="off"] { scroll-behavior: auto; }
[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }
[data-motion="off"] .kinetic-letter, [data-motion="off"] .platform-card::before, [data-motion="off"] .story-step span { transform: none !important; }
@media (min-width: 901px) and (max-height: 760px) {
  .hero { min-height: 690px; }
  .story-sticky { top: 5.5rem; }
  .story-sticky h2 { font-size: 2rem; }
  .story-stage { height: 260px; margin-top: 1rem; }
}
@media (max-width: 1100px) {
  .kinetic { font-size: 4.5rem; }
  .hero-statement { font-size: 2.4rem; }
  .story-wrap { gap: 3rem; }
  .chart-heading { align-items: flex-start; flex-direction: column; }
  .platform-card h3 { font-size: 1.65rem; }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .nav-toggle { grid-column: 3; grid-row: 1; }
  .hero { min-height: 880px; padding-top: 8rem; padding-bottom: 22rem; }
  .hero-copy { width: 100%; max-width: 620px; }
  .kinetic { font-size: 4.5rem; }
  h2 { font-size: 2.6rem; }
  .hero-statement { font-size: 2.5rem; }
  .service-orbit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-wrap { display: block; }
  .story-sticky { position: sticky; top: 4rem; background: #edf1ed; padding: 1rem 0; z-index: 2; }
  .story-sticky h2 { font-size: 1.65rem; max-width: 34rem; }
  .story-sticky .lead { display: none; }
  .story-stage { height: 220px; margin-top: 1rem; }
  .story-steps { padding-bottom: 0; }
  .story-step { min-height: 55vh; padding-top: 3rem; }
  .story-step span { font-size: 2.4rem; }
  .story-step::before { display: none; }
  .demo-charts { grid-template-columns: 1fr; }
  .chart-heading { flex-direction: row; align-items: center; }
  .mix-panel { border-left: 0; border-top: 1px solid var(--line); }
  .mix-panel .chart-frame { height: 180px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 1rem; }
  .expertise-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  .expertise-group > span { grid-column: 1 / -1; }
  .expertise-group h3 { margin-top: 1rem; }
  .capability-main { padding-right: 0; }
}
@media (max-width: 620px) {
  .hero { min-height: 0; display: block; padding-top: 6rem; padding-bottom: 11rem; }
  .kinetic { font-size: 2.65rem; margin-bottom: 1rem; }
  .hero-statement { font-size: 1.5rem; }
  .hero-text { font-size: 0.95rem; margin-top: 1rem; }
  .hero-actions { flex-wrap: nowrap; gap: 0.6rem; margin-top: 1.25rem; }
  .hero-actions .button { width: auto; flex: 1; padding: 0.75rem 0.5rem; font-size: 0.8rem; min-height: 2.8rem; text-align: center; }
  h2, .capability-main h2, .contact-panel h2 { font-size: 2.1rem; }
  .hero-index { left: 1rem; right: 1rem; font-size: 0.6rem; gap: 0.5rem; }
  .section:not(.hero) { padding-top: 4rem; padding-bottom: 4rem; }
  .hero + .intro { padding-top: 1rem; }
  .service-orbit { grid-template-columns: 1fr; }
  .service-card { min-height: 13rem; padding: 1.25rem 0; }
  .story-sticky h2 { font-size: 1.4rem; }
  .story-stage { height: 190px; }
  .story-step { min-height: 52vh; }
  .story-step p { font-size: 1rem; }
  .demo-toolbar { align-items: flex-start; flex-direction: column; padding: 1.25rem; gap: 1rem; }
  .demo-metrics { padding: 1.25rem; gap: 0.75rem; }
  .demo-metrics strong { font-size: 1.45rem; }
  .demo-metrics span, .demo-metrics small { font-size: 0.65rem; }
  .trend-panel, .mix-panel { padding: 1.25rem; }
  .chart-heading { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
  .chart-frame { height: 220px; }
  .chart-data { padding: 1rem 1.25rem; }
  .platform-card h3 { font-size: 1.85rem; }
  .expertise-group { display: block; }
  .legal-document h1 { font-size: 3rem; }
}
@media (max-width: 900px) and (max-height: 600px) {
  .story-sticky { position: relative; top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  [data-kinetic] .kinetic-letter, .platform-card::before, .story-step span { transform: none !important; }
}
