/* =========================================================================
   Solutions — page CSS (hosted asset, loaded via a top HtmlEmbed <link>).
   Re-declares the FULL source rule sets for reused classes (Webflow's rebuild
   keeps only fragments) + the page-unique sections (hero-wave, sol-checks,
   dot-band, maturity kga/mk, personas trust2). Native whtml converts
   <iconify-icon> -> <span class="iconify">, so icon selectors use .iconify.
   Tokens (--accent,--ink,--line,--font-mono,...) come from TQ Global Styles.
   ========================================================================= */

/* ---------- shared type / layout re-declarations ---------- */
.display { font-size: clamp(2.6rem, 5.8vw, 4.7rem); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hl-em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); line-height: 1.5; font-weight: 400; }

.head-split { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(40px, 8vw, 120px); align-items: start; margin-bottom: clamp(36px, 5vw, 52px); }
.head-split .section-title { margin: 0; font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
.head-split .lede { margin: 0; padding-top: 5px; }
@media (max-width: 860px) { .head-split { grid-template-columns: 1fr; gap: 16px; } }

/* ============================ HERO ============================ */
.hero-interior { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.hero-interior .display { max-width: 17ch; margin-left: auto; margin-right: auto; }
.hero-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; align-items: center; }

/* hero wave field */
.hero-wave { position: relative; width: auto; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); height: clamp(215px, 26vw, 330px); margin-top: clamp(34px, 5vw, 60px); }
#heroWave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ============================ CAP GRID (industries + use-cases) ============================ */
.cap-grid { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--card); }
.cap { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(26px, 2.6vw, 34px); }
.cap h3 { font-size: 1.12rem; letter-spacing: -.02em; margin-top: 20px; }
.cap p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-top: 9px; }
/* icon reset: no navy box, just a glyph (accent for c-ic-acc) */
.cap .c-ic { background: transparent !important; border: none !important; box-shadow: none !important; width: auto !important; height: auto !important; display: flex; justify-content: flex-start; align-items: center; }
.cap .c-ic .iconify { font-size: 27px; color: var(--ink); }
.cap .c-ic-acc, .cap .c-ic-acc .iconify { color: var(--accent); }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: 1fr; } }

/* cap-cta (industries "See it on your data") */
.cap-cta { display: flex; flex-direction: column; text-decoration: none; background: radial-gradient(120% 120% at 12% 8%, rgba(241,90,34,.10), transparent 60%), var(--card); transition: background .2s ease; }
.cap-cta:hover { background: radial-gradient(120% 120% at 12% 8%, rgba(241,90,34,.16), transparent 62%), var(--card); }
.cap-link { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.cap-link .arr { transition: transform .2s ease; }
.cap-cta:hover .cap-link .arr { transform: translateX(3px); }

/* linked capability card + persistent corner arrow (uc-cards) */
.cap-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background .2s ease; }
.cap-card p { flex: 1; }
.cap-card:hover { background: var(--bg-2); }
.uc-cards .cap-card { position: relative; }
.uc-cards .cap-card h3 { transition: color .2s ease; }
.uc-cards .cap-go { position: absolute; top: clamp(22px, 2.5vw, 30px); right: clamp(22px, 2.5vw, 30px); font-size: 18px; color: var(--ink-mute); transition: transform .2s ease, color .2s ease; }
.uc-cards .cap-go .iconify { font-size: 18px; }
.uc-cards .cap-card:hover .cap-go { color: var(--accent); transform: translate(2px, -2px); }
.uc-cards .cap-card:hover h3 { color: var(--accent); }

/* ============================ USE CASES (dark) ============================ */
.uc-dark { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.uc-dark::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(130% 92% at 50% 0%, #000 45%, transparent 88%); mask-image: radial-gradient(130% 92% at 50% 0%, #000 45%, transparent 88%); }
.uc-dark > .container { position: relative; z-index: 1; }
.uc-dark .section-title { color: #fff; }
.uc-dark .lede { color: rgba(255,255,255,.72); }
.uc-dark .cap-grid { border-color: rgba(255,255,255,.14); background: transparent; }
.uc-dark .uc-cards.cap-grid { background: var(--ink); }
.uc-dark .cap { border-color: rgba(255,255,255,.14); }
.uc-dark .cap h3 { color: #fff; }
.uc-dark .cap p { color: rgba(255,255,255,.58); }
.uc-dark .cap .c-ic .iconify, .uc-dark .cap .c-ic-acc .iconify { color: #fff; }
.uc-dark .cap-card:hover { background: rgba(255,255,255,.05); }
.uc-dark .uc-cards .cap-card:hover h3 { color: var(--accent); }
.uc-dark .cap-go { color: rgba(255,255,255,.45); }
.uc-dark .uc-cards .cap-card:hover .cap-go { color: var(--accent); }

/* ============================ OUTCOMES (sol-checks) ============================ */
.sol-checks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 8px; }
.sol-check { display: flex; align-items: flex-start; gap: 14px; padding: 20px clamp(20px, 2.5vw, 30px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sol-check .ck { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: #2E9E6B; }
.sol-check .ck .iconify { font-size: 15px; }
.sol-check span { font-size: 1rem; color: var(--ink); line-height: 1.5; }
@media (max-width: 680px) { .sol-checks { grid-template-columns: 1fr; } }

/* ============================ DOT BAND divider ============================ */
.dot-band { position: relative; height: clamp(58px, 8vw, 94px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.dot-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(20,20,27,.13) 1px, transparent 1.6px); background-size: 14px 14px; background-position: center; }

/* ============================ MATURITY (kga scroll + mk curve) ============================ */
.kga-scroll { height: 240vh; }
.kga { position: sticky; top: var(--nav-h); min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); background: #fff; }
.kga-left { display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 4.5vh, 60px); padding: clamp(30px, 3.4vw, 54px); }
.kga-steps { display: flex; flex-direction: column; }
.kga-step { position: relative; display: block; width: 100%; text-align: left; padding: 0 0 17px; margin: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-appearance: none; }
.kga-step + .kga-step { padding-top: 18px; }
.kga-sn { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-mute); opacity: .55; transition: opacity .3s ease, color .3s ease; }
.kga-step b { display: block; margin-top: 5px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.015em; color: var(--ink-mute); transition: color .3s ease; }
.kga-step.is-active .kga-sn { opacity: 1; color: var(--accent-ink, #C7440F); }
.kga-step.is-active b { color: var(--ink); }
.kga-sp { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .42s cubic-bezier(.4,0,.2,1), opacity .32s ease; }
.kga-sp > span { overflow: hidden; display: block; font-size: 14px; line-height: 1.55; color: var(--ink-mute); max-width: 46ch; }
.kga-step.is-active .kga-sp { grid-template-rows: 1fr; opacity: 1; }
.kga-arch { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); opacity: .75; }
.kga-step.is-active .kga-arch { color: var(--accent-ink, #C7440F); opacity: 1; }
.kga-next { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .3s ease; }
.kga-next > span { overflow: hidden; display: block; font-size: 12.5px; font-weight: 500; color: var(--accent-ink, #C7440F); }
.kga-next > span::before { content: "\2192\00a0"; }
.kga-step.is-active .kga-next { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.kga-step.is-active .kga-sp > span { padding-top: 8px; }
.kga-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.kga-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.kga-step.is-active .kga-bar { background: var(--line-strong); opacity: .3; }
.kga-right { min-width: 0; border-left: 1px solid var(--line); background: #fff; background-image: radial-gradient(rgba(14,26,46,.07) 1px, transparent 1px); background-size: 20px 20px; background-position: 10px 10px; display: flex; align-items: center; padding: clamp(26px, 3vw, 46px); }
.kga-stage { width: 100%; min-width: 0; }
.kga-svg { width: 100%; height: auto; display: block; }
.kga-l { opacity: 0; transition: opacity .5s ease; }
.kga-l.is-on { opacity: 1; }

/* maturity curve marks */
.mk-base { stroke: var(--line); stroke-width: 1; fill: none; }
.mk-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.mk-dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.mk-dot.is-last { fill: var(--accent); }
.mk-n { fill: var(--ink-mute); font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-anchor: middle; }
.mk-n.is-last { fill: var(--accent-ink, #C7440F); }
.mk-ax { fill: var(--ink-mute); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* maturity: whole curve drawn greyed, each stage lights to accent on scroll */
#kgMaturity .kga-l { opacity: 1; }
#kgMaturity .mk-line { stroke: var(--line-strong); transition: stroke .35s ease; }
#kgMaturity .mk-dot { fill: var(--line-strong); stroke: none; transition: fill .35s ease; }
#kgMaturity .mk-n { fill: var(--line-strong); transition: fill .35s ease; }
#kgMaturity .mk-lit { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
#kgMaturity .mk-dot.is-on { fill: var(--accent); }
#kgMaturity .kga-l.is-on .mk-n { fill: var(--ink-mute); }
#kgMaturity .kga-l.is-on .mk-n.is-last { fill: var(--accent-ink, #C7440F); }
#kgMaturity .kga-left { justify-content: center; padding: clamp(20px, 2.2vw, 30px) 0 clamp(20px, 2.2vw, 30px) clamp(26px, 3vw, 46px); }
#kgMaturity .kga-right { padding: clamp(16px, 1.8vw, 26px) 0 clamp(16px, 1.8vw, 26px) clamp(20px, 2.4vw, 36px); }
#kgMaturity .kga { min-height: calc(100vh - var(--nav-h)); }
#kgMaturity .kga-scroll { height: 260vh; }
#kgMaturity { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }

@media (max-width: 900px) {
  .kga-scroll { height: auto; }
  .kga { position: static; min-height: 0; grid-template-columns: 1fr; }
  .kga-right { border-left: 0; border-top: 1px solid var(--line); }
  .kga-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kga-svg { min-width: 560px; }
  #kgMaturity .kga-scroll { height: auto; }
  #kgMaturity .kga { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kga-scroll { height: auto; }
  .kga { position: static; min-height: 0; }
  .kga-l { opacity: 1; }
}

/* ============================ TEAMS / PERSONAS (trust2 expandable) ============================ */
#teams { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust2 { display: grid; grid-template-columns: repeat(3, 1fr) 1.55fr; grid-auto-rows: minmax(120px, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: clamp(28px, 3.5vw, 44px); }
.trust2-cell { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: clamp(18px, 2vw, 26px); text-decoration: none; transition: background .18s ease; }
.trust2-cell:hover { background: var(--bg-2); }
.trust2-name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; color: var(--ink); }
.trust2-photo { grid-column: 4; grid-row: 1 / span 2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.trust2-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.trust2.expandable { grid-template-columns: 1fr 1fr 1fr 1.55fr; grid-template-rows: 1fr 1fr; height: clamp(340px, 34vw, 440px); transition: grid-template-columns .42s cubic-bezier(.4,0,.2,1), grid-template-rows .42s cubic-bezier(.4,0,.2,1); }
.trust2.expandable > * { min-height: 0; min-width: 0; }
.trust2.expandable .trust2-cell { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; overflow: hidden; cursor: pointer; transition: background .3s ease; }
.trust2.expandable .trust2-cell.is-expanded { background: var(--bg-2); }
.trust2-head { display: flex; align-items: center; }
.trust2-exp { position: absolute; top: 14px; right: 14px; z-index: 2; background: none; border: 0; padding: 4px; line-height: 0; cursor: pointer; color: var(--ink-mute); font-size: 18px; transition: transform .5s cubic-bezier(.4,0,.2,1), color .2s ease; }
.trust2-exp .iconify { font-size: 18px; }
.trust2-cell:not(.is-expanded):hover .trust2-exp { transform: rotate(360deg); color: var(--accent); }
.trust2-cell.is-expanded .trust2-exp { transform: rotate(45deg); color: var(--accent); }
.trust2-more { display: none; margin-top: 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; max-width: 44ch; }
.trust2-cell.is-expanded .trust2-more { display: block; }
.trust2.expandable.has-expanded .trust2-cell:not(.is-expanded) .trust2-name { opacity: .45; transition: opacity .25s ease; }
.trust2-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--accent); opacity: 0; transition: opacity .25s ease; }
.trust2-cell.is-expanded .trust2-link { opacity: 1; }
.trust2-link:hover { text-decoration: underline; }
.trust2-link .arr { transition: transform .2s ease; }
.trust2-link:hover .arr { transform: translateX(3px); }
@media (max-width: 860px) {
  .trust2.expandable { grid-template-columns: 1fr 1fr !important; grid-template-rows: none !important; height: auto !important; min-height: 0 !important; }
  .trust2.expandable .trust2-cell { overflow: visible; }
  .trust2-more { display: block !important; }
  .trust2-exp { display: none; }
  .trust2.expandable.has-expanded .trust2-cell:not(.is-expanded) .trust2-name { opacity: 1; }
  .trust2-link { opacity: 1; }
  .trust2-photo { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
}
@media (max-width: 520px) { .trust2.expandable { grid-template-columns: 1fr !important; } }
