/* One reading rhythm across marketing, infographics and the dashboard design. */
:root {
  --rx-copy: 1rem;
  --rx-support: .875rem;
  --rx-label: .75rem;
  --rx-title: clamp(2.25rem, 4.6vw, 4rem);
  --rx-heading: clamp(1.75rem, 3.3vw, 2.875rem);
  --rx-card-title: clamp(1.25rem, 1.6vw, 1.5rem);
  --rx-section-space: clamp(3.25rem, 7vw, 6rem);
}
html { font-size: 100%; scroll-behavior: smooth; }
body { font-size: var(--rx-copy); }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
[data-story-chapter], #campaign-brief, #brief-text { scroll-margin-top: 7.5rem; }
.section { padding-block: var(--rx-section-space); }
.subhero h1, .growth-hero h1, .article h1 { font-size: var(--rx-title); line-height: 1.12; max-width: 20ch; }
.section-top h2, .split > div > h2, .cta-box h2 { font-size: var(--rx-heading); line-height: 1.18; }
.subhero .lede, .growth-hero .lede, .brand-hero .lede { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.8; max-width: 60ch; }
.subhero .hero-grid { align-items: start; gap: clamp(2rem, 4vw, 4rem); }
.subhero .hero-grid h1 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.subhero .hero-grid > div:first-child { padding-top: 0; }
.section-top > p, .article p, .contact-next p { font-size: var(--rx-copy); line-height: 1.85; max-width: 65ch; }
.growth-preview .section-top > p { font-size: var(--rx-copy); line-height: 1.85; }
.service-card h3, .check-card h3, .guide-card h3, .issue-card h3 { font-size: var(--rx-card-title); line-height: 1.35; }
.service-card p, .check-card p, .guide-card p, .issue-card p, .platform-card p, .audience-card p:not(.mini-label), .loop-step p, .journey-panel p, .faq p { font-size: var(--rx-copy); line-height: 1.8; }
.faq details p { font-size: var(--rx-copy); line-height: 1.85; }
.faq summary { font-size: var(--rx-copy); line-height: 1.65; }
.service-card .textlink, .guide-card .textlink { margin-top: auto; padding-top: 1.5rem; }
.section-top { align-items: start; gap: 2rem; }
.flow-list li, .article ul, .article ol { font-size: var(--rx-copy); line-height: 1.8; }
.kicker, .mini-label, .service-card .eyebrow, .check-card .number, .article .byline, .breadcrumbs { font-size: var(--rx-label); line-height: 1.7; }
.btn, .textlink, .mainnav > a, .navgroup > summary, .navdrop a, .brief-form label { font-size: var(--rx-support); }
.btn { min-height: 3rem; }
.hero-stage-note, .growth-disclosure, .work-note, .dashboardcaption, .scene-label, .company-identity p, .company-identity a, .company-identity small, .footer a, .footer p, .footer-bottom { font-size: var(--rx-label); line-height: 1.8; }
.company-identity strong { font-size: var(--rx-support); }
.footer h3 { font-size: var(--rx-label); }
.brief-form input, .brief-form select, .brief-form textarea { font-size: 1rem; }
.brief-output pre { font-size: var(--rx-support); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.article h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; margin-top: 2.75rem; }
.article .answer { font-size: 1.125rem; }
.page-story-nav { padding-block: 1.25rem; border-block: 1px solid #2c405d; background: linear-gradient(100deg, #101f31, #0b1424); }
.page-story-nav .mini-label { display: block; color: #9eafc6; margin-bottom: .75rem; }
.page-story-nav ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.page-story-nav a { display: flex; gap: .75rem; align-items: start; min-height: 44px; color: #c4d8eb; font-size: var(--rx-support); line-height: 1.6; text-decoration: none; }
.page-story-nav a > span:first-child { color: #70d8ef; font-variant-numeric: tabular-nums; padding-top: .1rem; font-size: var(--rx-label); }
.page-story-nav a:hover, .page-story-nav a[aria-current] { color: #70d8ef; }
.page-story-nav a:focus-visible { outline: 2px solid #70d8ef; outline-offset: 4px; border-radius: 3px; }
.story-bridge-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story-bridge h2 { font-size: var(--rx-heading); line-height: 1.2; max-width: 22ch; }
.story-bridge p { font-size: var(--rx-copy); line-height: 1.85; color: #b4c4d9; max-width: 60ch; margin-top: 1.5rem; }
.story-bridge p.kicker { font-size: var(--rx-label); margin-top: 0; }
.story-bridge aside { border-left: 2px solid #4b8da6; padding-left: 1.75rem; }
.story-bridge aside > p { margin-block: 1rem 1.5rem; }
.story-sequence { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 970px; }
.story-sequence > li { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1.5rem; padding: 0 0 2.75rem; }
.story-sequence > li:not(:last-child)::after { content: ""; position: absolute; top: 3rem; bottom: .6rem; left: 1.375rem; width: 1px; background: linear-gradient(#4b8da6, #2c405d); }
.story-index { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #456b80; border-radius: 50%; color: #9adff1; font-family: var(--font-display); font-size: var(--rx-support); background: #102436; }
.story-sequence h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.3; margin: .3rem 0 .75rem; }
.story-sequence p { color: #b4c4d9; font-size: var(--rx-copy); line-height: 1.85; max-width: 65ch; }
.story-sequence > li:last-child { padding-bottom: 0; }
.article .page-story-nav { margin-block: 2rem; }
.article .page-story-nav .wrap { width: auto; padding-inline: 1rem; }
.article .page-story-nav li { margin: 0; padding: 0; }
.site-cockpit-intro h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.site-cockpit-intro p, .site-cockpit-grid > aside p { font-size: var(--rx-copy); }
.site-cockpit-grid { grid-template-columns: 300px minmax(0, 1fr); }
.site-cockpit-owner, .site-cockpit-grid > aside small, .site-cockpit-phase p, .site-cockpit-phase > span, .site-cockpit-phase small { font-size: var(--rx-label); line-height: 1.8; }
.site-cockpit-grid > aside h4 { margin-top: 1rem; }
.site-cockpit-header > span, .site-cockpit-total > span, .site-cockpit-foot { font-size: var(--rx-label); }
.window .windowbar .tag, .window .dashrow .tag { font-size: .625rem; }
.window:not(.full) .dashside .sideitem { font-size: .625rem; line-height: 1.7; }
.window .dash-top p, .window .dashmetric span, .window .dashmetric small, .window .dash-filters button, .window .dash-chart-head, .window .dashrow, .window .dashbanner { font-size: .75rem; line-height: 1.6; }
.window .dashmetric strong { font-variant-numeric: tabular-nums; }
.window .dashrow { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; }
.window .dashrow > span { min-width: 0; overflow-wrap: anywhere; }
.walk-answer, .walk-view-copy p, .walk-decision p { font-size: var(--rx-copy); line-height: 1.85; }
.walk-service-links a, .walk-role-bar button, .walk-stage-tabs button, .walk-nodes strong { font-size: var(--rx-support); }
.op-next > p, .op-work-card > p, .op-service-card > p, .op-case > p, .op-service-detail p { font-size: var(--rx-copy); line-height: 1.8; }
.op-phase-caption, .op-phase-bottom, .op-preview-note, .op-next-owner small, .op-badge, .op-scope-count { font-size: var(--rx-label); }
.op-next-owner strong, .op-filter, .op-service-chip, .op-service-card li, .op-work-card footer, .op-record small, .op-section-description { font-size: var(--rx-support); }
.op-next > .button, .op-handoff, .op-link, .content-label { font-size: var(--rx-support); }
.op-phase { min-height: 190px; }
.op-phase-caption { min-height: 2.8em; }
@media (max-width: 1100px) {
  .mainnav > a, .navgroup > summary { font-size: .75rem; }
  .site-cockpit-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .story-bridge-grid { grid-template-columns: minmax(0, 1fr); }
  .story-bridge aside { max-width: 65ch; }
}
@media (max-width: 580px) {
  :root { --rx-copy: .9375rem; --rx-support: .8125rem; --rx-title: clamp(2rem, 8.7vw, 2.75rem); --rx-heading: clamp(1.75rem, 7.3vw, 2.125rem); }
  .page-story-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
  .page-story-nav a { font-size: .75rem; }
  .story-sequence > li { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; padding-bottom: 2.25rem; }
  .story-bridge aside { padding-left: 1.25rem; }
  .window .dashmetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .window .dashmetric:first-child { grid-column: 1 / -1; }
  .window .dashrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .5rem; }
  .window .dashrow > span:last-child { grid-column: 2; justify-self: start; }
  .window .dashrow.header > span:last-child { display: none; }
  .op-phase { min-height: 0; }
  .headercta { font-size: .6875rem; padding-inline: .625rem; }
}
@media (max-width: 360px) {
  .page-story-nav ol { grid-template-columns: minmax(0, 1fr); }
  .story-sequence > li { gap: .75rem; }
  .headinner { gap: 6px; }.headinner .logo { width: 98px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .story-sequence > li.motion-entered, .story-bridge.motion-entered { animation: reading-appear .55s ease-out both; }
  @keyframes reading-appear { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
