/* Highspring Innovation: public site.
   Palette, type and the asymmetric "leaf" corner are taken from highspring.com. */

:root {
  --navy: #072942;
  --navy-deep: #051d30;
  --navy-soft: #154470;
  --sky: #2dbff9;
  --green: #43e098;
  --green-dark: #36b37a;
  --mint: #ddffea;
  --orange: #f95c15;
  --ice: #e8f0f2;
  --mist: #eff1f9;
  --ink: #1b1e2f;
  --slate: #3e5469;
  --gray: #79797b;
  --line: #d2dbe4;
  --white: #fff;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --leaf: 35px 0;
  --leaf-sm: 20px 0;
  --shadow: 0 1px 2px rgba(7, 41, 66, .06), 0 8px 24px rgba(7, 41, 66, .08);
  --shadow-lg: 0 2px 4px rgba(7, 41, 66, .06), 0 18px 40px rgba(7, 41, 66, .14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.9rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.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; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { flex: none; }

/* Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 50px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: #5ce9a8; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); text-decoration: none; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .2s; color: var(--green-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header ---------------------------------------------------------------- */
.announcement { background: var(--navy); color: #fff; text-align: center; font-size: .9rem; padding: 8px var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(7, 41, 66, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 132px; height: auto; }
.brand-divider { width: 1px; height: 26px; background: var(--line); }
.brand-unit { font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.brand-light { color: #fff; }
.brand-light .brand-divider { background: rgba(255, 255, 255, .3); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 14px; border-radius: 50px; color: var(--navy); font-weight: 600; text-decoration: none; }
.site-nav ul a:hover { background: var(--ice); }
.site-nav ul a[aria-current="page"] { background: var(--ice); box-shadow: inset 0 -2px 0 var(--green); }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 8px; border-radius: 8px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; }
  .brand img { width: 112px; }
  .brand-unit { font-size: 1rem; }
}

/* Flash ----------------------------------------------------------------- */
.flash-stack { padding-top: 16px; }
.flash { padding: 14px 18px; border-radius: var(--leaf-sm); background: var(--mint); color: var(--navy); font-weight: 600; margin-bottom: 8px; }
.flash-error { background: #fde8e0; }

/* Hero ------------------------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--navy-soft); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--green); }
.eyebrow-light { color: var(--sky); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--slate); max-width: 720px; }

.hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 100% 0%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%); color: #fff; padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 11vw, 150px); }
.hero h1 { color: #fff; max-width: 880px; }
.hero .lead { color: rgba(255, 255, 255, .82); margin-bottom: 36px; }
.hero-inner { position: relative; z-index: 1; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.leaf { position: absolute; border-radius: 160px 0; opacity: .9; }
.leaf-a { width: 340px; height: 340px; right: -60px; top: 12%; background: linear-gradient(135deg, var(--sky), rgba(45, 191, 249, 0)); opacity: .35; }
.leaf-b { width: 220px; height: 220px; right: 18%; bottom: -70px; border-radius: 0 110px; background: linear-gradient(135deg, var(--green), rgba(67, 224, 152, 0)); opacity: .3; }
.leaf-c { width: 120px; height: 120px; right: 9%; top: 58%; border: 2px solid rgba(255, 255, 255, .25); border-radius: 60px 0; }
@media (max-width: 700px) { .leaf-a { width: 200px; height: 200px; right: -90px; } .leaf-b { right: -40px; } .leaf-c { display: none; } }

.page-hero { background: linear-gradient(180deg, var(--ice), #f6fafb); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom-right-radius: clamp(40px, 8vw, 120px); }
.page-hero .lead { margin-bottom: 0; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; color: var(--slate); font-weight: 600; }
.crumbs { display: flex; gap: 10px; font-size: .9rem; margin-bottom: 18px; color: var(--gray); }
.crumbs a { color: var(--navy-soft); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Sections -------------------------------------------------------------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding-top: clamp(40px, 5vw, 64px); }
.section-tint { background: var(--ice); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.display { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 600; line-height: 1.25; }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.prose { color: var(--slate); }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--navy); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: clamp(48px, 6vw, 80px) 0 0; background: var(--navy); border-radius: var(--leaf); overflow: hidden; }
.stat { display: flex; flex-direction: column-reverse; padding: 32px 36px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-right: 0; }
.stat dd { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 800; color: var(--green); line-height: 1.1; letter-spacing: -.02em; }
.stat dt { color: rgba(255, 255, 255, .8); font-weight: 500; }
.stats-overlap { margin-top: -36px; position: relative; box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); } .stat:last-child { border-bottom: 0; } }

/* Cards & grids --------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { position: relative; background: #fff; border-radius: var(--leaf); padding: 32px; box-shadow: var(--shadow); border: 1px solid rgba(210, 219, 228, .6); transition: transform .25s, box-shadow .25s; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); }
.card:has(.stretched):hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stretched { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--navy-soft) !important; margin-bottom: 8px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); margin-top: auto; }
.card-link .icon { color: var(--green-dark); transition: transform .2s; }
.card:hover .card-link .icon { transform: translateX(4px); }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 18px 0; background: var(--mint); color: var(--navy); flex: none; }
.icon-badge-lg { width: 68px; height: 68px; border-radius: 24px 0; }
.capability .icon-badge { margin-bottom: 22px; }
.section-tint .card { border-color: transparent; }

.solution-card { display: flex; flex-direction: column; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 50px; background: var(--mint); color: #11603c; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pilot { background: #e0f5fe; color: #075985; }
.status-in-development { background: #fff1e8; color: #9a3412; }
.status-retired { background: var(--mist); color: var(--gray); }

.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-media { aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--green); background: radial-gradient(90% 120% at 100% 0%, var(--navy-soft), var(--navy)); }
.case-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.case-metric { padding: 12px 16px; background: var(--ice); border-radius: var(--leaf-sm); color: var(--navy) !important; }
.case-metric strong { font-size: 1.25rem; color: var(--navy); }

.tag { display: inline-block; padding: 4px 12px; border-radius: 50px; background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--slate); }

/* Process --------------------------------------------------------------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; counter-reset: step; }
.process li { padding-top: 24px; border-top: 2px solid rgba(255, 255, 255, .15); position: relative; }
.process li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--green); }
.process-num { display: block; font-size: .9rem; font-weight: 700; color: var(--sky); margin-bottom: 12px; letter-spacing: .1em; }
.process p { margin: 0; }

/* People ---------------------------------------------------------------- */
.person h3 { margin: 18px 0 2px; font-size: 1.15rem; }
.person-role { color: var(--navy-soft); font-weight: 600; margin-bottom: 8px; }
.person p:last-child { color: var(--slate); font-size: .95rem; }
.avatar { width: 96px; height: 96px; border-radius: 34px 0; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: var(--navy); color: var(--green); font-weight: 800; font-size: 1.6rem; }

/* CTA band -------------------------------------------------------------- */
.cta-band { background: var(--navy); color: rgba(255, 255, 255, .85); padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; bottom: -120px; border-radius: 140px 0; background: linear-gradient(135deg, var(--green), transparent); opacity: .25; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }

/* Catalog --------------------------------------------------------------- */
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 32px; }
.search-field { flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 50px; background: #fff; color: var(--gray); }
.search-field:focus-within { border-color: var(--navy); }
.search-field input { flex: 1; border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 18px; border-radius: 50px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty { color: var(--slate); padding: 24px 0; }

/* Detail pages ---------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-image { border-radius: var(--leaf); margin-bottom: 32px; width: 100%; }
.side-card { position: sticky; top: 100px; background: var(--ice); border-radius: var(--leaf); padding: 32px; display: grid; gap: 14px; }
.facts { margin: 8px 0 10px; display: grid; gap: 14px; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gray); }
.facts dd { margin: 2px 0 0; color: var(--navy); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--green-dark); margin-top: 3px; }
.detail-grid .prose + .h3 { margin-top: 40px; }

.story-block { padding: 8px 0 32px; }
.story-block h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 14px; }
.story-block h2::before { content: ""; width: 14px; height: 14px; border-radius: 7px 0; background: var(--green); flex: none; }
.solution-callout { display: flex; align-items: center; gap: 20px; padding: 24px 28px; margin-top: 16px; border-radius: var(--leaf); background: var(--ice); text-decoration: none; color: var(--slate); transition: background-color .2s; }
.solution-callout:hover { background: var(--mint); color: var(--slate); }
.solution-callout > span:nth-child(2) { display: grid; flex: 1; }
.solution-callout small { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .75rem; color: var(--gray); }
.solution-callout strong { color: var(--navy); font-size: 1.15rem; }

/* FAQ ------------------------------------------------------------------- */
.faq-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-layout:not(:has(.faq-nav)) { grid-template-columns: minmax(0, 860px); }
.faq-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.faq-nav a { padding: 8px 14px; border-radius: 50px; color: var(--navy); font-weight: 600; text-decoration: none; }
.faq-nav a:hover { background: var(--ice); }
@media (max-width: 800px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { position: static; display: flex; flex-wrap: wrap; } }
.faq-group { margin-bottom: 40px; scroll-margin-top: 100px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ice); flex: none; transition: transform .25s, background-color .25s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--green); }
.faq-item .prose { padding: 0 56px 24px 0; }

/* Contact --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45, 191, 249, .25); }
.has-error input, .has-error select, .has-error textarea { border-color: #c2410c; }
.field-error { margin: 0; color: #c2410c; font-size: .9rem; font-weight: 600; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: center; padding: 56px 32px; display: grid; justify-items: center; gap: 8px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list li > span:last-child { display: grid; }
.contact-list small { color: var(--gray); font-weight: 600; }
.contact-list a { font-weight: 700; color: var(--navy); }

.error-page { text-align: center; }
.error-page .lead { margin: 0 auto 32px; }
.error-page .eyebrow::before { display: none; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { max-width: 380px; margin-top: 20px; }
.footer-heading { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
