/* TeachWiz 8.5: accessible shared layout and knowledge-to-impact hero. */
:root { --tw-gutter: clamp(22px, 3.6vw, 64px); --tw-width: 1420px; --tw-ink: #183054; --tw-muted: #4d5f73; --tw-gold: #f1d48b; --tw-night: #081b30; }
html { scroll-padding-top: 100px; }
body.v8 { overflow-wrap: break-word; }
body.v8 :where(main, section, article, aside, nav, div) { min-width: 0; }
body.v8 .container, body.v84 .section .container { width: min(calc(100% - var(--tw-gutter) * 2), var(--tw-width)); max-width: var(--tw-width); margin-inline: auto; }
body.v8 .section-head { margin-inline: auto; }
body.v8 :where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid #a17418; outline-offset: 4px; }
body.v8 :where(.tw-hero, .academy, #solutions, .site-footer, .final-cta-card) :where(a, button):focus-visible { outline-color: var(--tw-gold); }
body.v8 .btn { min-height: 48px; padding: 12px 22px; font-size: 1rem; line-height: 1.35; text-align: center; white-space: normal; }
body.v8 .eyebrow { font-size: .8125rem; letter-spacing: .12em; }
body.v8 .v8-reveal, .js body.v8 .v8-reveal { opacity: 1; transform: none; }
body.v8 .v8-reveal.is-visible { animation: tw-section-enter .4s ease-out; }
@keyframes tw-section-enter { from { transform: translateY(8px); } to { transform: none; } }

/* One header geometry on home, hubs and detail pages. */
body.v8 .site-header { position: sticky; top: 0; height: 80px; background: #fbfaf7; z-index: 80; }
body.v8 .site-header .header-inner { width: min(calc(100% - var(--tw-gutter) * 2), var(--tw-width)); height: 80px; max-width: var(--tw-width); gap: 20px; }
body.v8 .site-header .brand { flex-shrink: 0; }
body.v8 .site-header .brand-logo { height: 48px; max-width: 194px; }
body.v8 .site-nav { gap: clamp(12px, 1.3vw, 23px); font-size: .875rem; }
body.v8 .site-nav > a { opacity: 1; }
body.v8 .site-nav > a[aria-current="page"] { text-decoration: underline; text-decoration-color: #ad7f21; text-underline-offset: 7px; }
body.v8 .site-nav .btn-small { min-height: 44px; padding: 10px 17px; font-size: .875rem; }
body.v85 .site-header { position: absolute; inset: 0 0 auto; background: transparent !important; }
body.v85 .site-header.scrolled { position: fixed; height: 80px; background: rgba(251,250,247,.98) !important; }
body.v85 .site-header:not(.scrolled) .site-nav .btn-small { color: var(--tw-night) !important; background: var(--tw-gold) !important; box-shadow: none !important; }

/* The hero is an actual flow, not fixed-position text laid over artwork. */
.tw-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 78% 25%, #1b3f60 0, transparent 57%), linear-gradient(120deg, #102944, #04111f); }
.tw-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .13; background-image: radial-gradient(#c9d9e9 .65px, transparent .65px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000); }
.tw-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, #e5c573, transparent); opacity: .45; }
.tw-motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .9; }
.tw-hero-shell { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 4.5vw, 76px); min-height: 780px; padding-block: 136px 80px; }
.tw-hero-copy, .tw-flow { position: relative; z-index: 1; }
.tw-hero .eyebrow { color: var(--tw-gold); margin-bottom: 24px; }
.tw-hero h1 { max-width: 650px; margin: 0; font-size: clamp(2.9rem, 4.05vw, 4.15rem); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.tw-hero h1 > span { display: block; margin-bottom: .2em; color: #b9cadb; }
.tw-hero-lead { margin: 28px 0 32px; max-width: 57ch; font-size: 1.0625rem; line-height: 1.72; color: #c4d2df; }
.tw-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.tw-hero .btn { background: var(--tw-gold); color: var(--tw-night); border: 1px solid var(--tw-gold); box-shadow: 0 8px 25px #0002; }
.tw-hero .btn:hover { background: #ffe8ad; border-color: #ffe8ad; }
.tw-hero-secondary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #f1f5f9; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: #728698; text-underline-offset: 5px; }
.tw-flow-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.tw-flow-heading h2 { margin: 0; font-size: .9375rem; line-height: 1.4; font-weight: 600; color: #e9f0f7; }
.tw-flow-heading > span { font-size: .75rem; color: #b0c4d6; letter-spacing: .09em; text-transform: uppercase; }
.tw-flow-body { position: relative; isolation: isolate; }
.tw-flow-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.tw-flow-route { fill: none; stroke: #e0bf76; stroke-width: 1.5; opacity: .58; stroke-linejoin: round; }
.tw-flow-arrow { fill: #e0bf76; opacity: .7; }
.tw-flow-routes.is-ready .tw-flow-route { stroke-dasharray: 1; animation: tw-route-in .5s ease-out both; animation-delay: var(--route-delay); }
@keyframes tw-route-in { from { stroke-dashoffset: 1; opacity: .1; } to { stroke-dashoffset: 0; opacity: .58; } }
.tw-flow-end { padding: 21px 24px; background: #102b43; border: 1px solid #b392505e; border-radius: 16px; }
.tw-flow-label { display: block; margin-bottom: 6px; color: var(--tw-gold); font-size: .8125rem; letter-spacing: .06em; font-weight: 600; }
.tw-flow-end strong { display: block; font-size: 1.3125rem; line-height: 1.35; font-weight: 650; color: #fff; }
.tw-flow-end p { margin: 6px 0 0; font-size: .9375rem; color: #c3d0df; line-height: 1.5; }
.tw-flow-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 30px; margin: 32px 0; padding: 0; list-style: none; }
.tw-flow-step { border-radius: 14px; background: #102b43; border: 1px solid #53708c88; box-shadow: 0 10px 24px #0000000f; transition: border-color .18s ease, background .18s ease; }
.tw-flow-step-3 { grid-column: 2; grid-row: 2; }
.tw-flow-step-4 { grid-column: 1; grid-row: 2; }
.tw-flow-step a { position: relative; display: grid; grid-template-columns: 1fr; gap: 15px; padding: 20px; height: 100%; border-radius: inherit; }
.tw-flow-number { width: fit-content; color: var(--tw-gold); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tw-flow-step h3 { color: #fff; margin: 0; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.02em; }
.tw-flow-step p { color: #c3d0df; margin: 9px 0 0; font-size: .9375rem; line-height: 1.55; }
.tw-flow-link-mark { position: absolute; right: 19px; top: 16px; color: #b6cbdc; font-size: 1.125rem; }
.tw-flow-step:has(a:focus-visible), .tw-flow-step:hover { background: #183b56; border-color: var(--tw-gold); }
.tw-flow-impact { background: linear-gradient(115deg, #224557, #153244); border-color: #dfbe756b; }
.tw-flow-impact strong { max-width: 36ch; }

/* Calm rhythm and legible copy, also on the inner routes. */
body.v84 main > .section { padding-block: clamp(64px, 6.5vw, 96px); }
body.v84 .section-head { margin-bottom: 36px; }
body.v84 .section-head h2, body.v84 .section h2, body.v84 .two-col h2 { font-size: clamp(2rem, 3.4vw, 3.35rem); line-height: 1.14; letter-spacing: -.04em; text-wrap: balance; }
body.v84 .section-head h2 { max-width: 24ch; }
body.v84 .section-head > p:not(.eyebrow) { max-width: 76ch; }
body.v84 .section p { font-size: 1.0625rem; color: var(--tw-muted); }
body.v84 .section .eyebrow { font-size: .8125rem; color: #795910; }
body.v84 .section :where(.solution-card,.v8-service-card,.knowledge-card,.cycle-step,.process-card) p { font-size: 1rem; line-height: 1.65; }
body.v84 .section :where(.solution-card,.v8-service-card,.knowledge-card) { display: flex; flex-direction: column; }
body.v84 .section :where(.solution-card,.v8-service-card,.knowledge-card) b { margin-top: auto; padding-top: 18px; font-size: .9375rem; }
body.v84 :where(.solution-card,.v8-service-card,.knowledge-card) > span { font-size: .8125rem; }
body.v84 .section :where(.solution-card,.v8-service-card,.knowledge-card) h3 { font-size: 1.4rem; line-height: 1.32; margin-top: 24px; }
body.v84 .v8-service-card.featured { grid-column: auto; }
body.v84 .cycle-step { padding: 28px; min-height: 0; }
body.v84 .cycle-step h3 { margin-top: 30px; font-size: 1.375rem; }
body.v84 .cycle-note { gap: 18px; }
body.v84 .section :where(.cycle-note,.final-cta-card,.insight-quote) { overflow-wrap: anywhere; }
body.v84 #solutions .section-head p:not(.eyebrow), body.v84 .solution-card p, body.v84 .academy p, body.v84 .final-cta-card p, body.v84 .v8-service-card.featured p { color: #ccd9e5; }
body.v84 :where(#solutions,.academy,.final-cta-card) .eyebrow { color: var(--tw-gold); }
body.v84 .v8-service-card.featured h3, body.v84 .academy h2, body.v84 .final-cta-card h2 { color: #fff; }
body.v84 .academy-map-stages small { font-size: .9375rem; color: #ccd9e5; }
body.v84 .insight-quote blockquote { color: #fff; line-height: 1.35; }
body.v84 .insight-quote small, body.v84 .academy-map-outcomes span { color: #cbd9e6; }
body.v84 .regional-card { padding-inline: clamp(22px, 3vw, 44px); }
body.v84 .center-link { margin-top: 28px; }
body.v84 .pattern-section::before { background-image: none; }
body.v84 .cycle-note { color: #fff; }
body.v84 .cycle-note :where(strong,span) { color: #e2eaf2; }
body.v84 .cycle-note a { color: var(--tw-gold); }
body.v8.inner-page .inner-hero, body.v8.inner-page .content-hero { padding-block: 70px; background: linear-gradient(135deg, #f8fafc, #f4f1e9); }
body.v8.inner-page :where(.inner-hero,.content-hero) h1 { font-size: clamp(2.1rem, 4.5vw, 3.65rem); line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
body.v8.inner-page .content-hero-grid { gap: 48px; }
body.v8.inner-page .article-grid { grid-template-columns: minmax(0, 820px) minmax(260px, 340px); gap: 60px; }
body.v8.inner-page .content-summary { border-radius: 16px; box-shadow: none; }
body.v8.inner-page .content-summary :where(span,p), body.v8 .breadcrumbs { font-size: .875rem; }
body.v8 .breadcrumbs { flex-wrap: wrap; }
body.v8.inner-page :where(.hub-card,.related-card) { border-radius: 16px; box-shadow: none; display: flex; flex-direction: column; }
body.v8.inner-page :where(.hub-card,.related-card) :where(h2,h3) { font-size: 1.4rem; line-height: 1.35; letter-spacing: -.02em; }
body.v8.inner-page :where(.hub-card,.related-card) b { margin-top: auto; padding-top: 12px; }
body.v8.inner-page :where(.hub-card,.related-card,.sticky-cta,.faq-block) p { font-size: 1rem; line-height: 1.7; }
body.v8.inner-page .sticky-cta { background: #102b43; color: #fff; border-color: #53708c; border-radius: 16px; }
body.v8.inner-page .sticky-cta :where(h3,p) { color: #e6eef6; }
body.v8.inner-page .sticky-cta .eyebrow { color: var(--tw-gold); }
body.v8.inner-page .sticky-cta .btn { background: var(--tw-gold); color: var(--tw-night); border-color: transparent; width: 100%; }
body.v8 .faq-block summary { padding-block: 6px; }
body.v8 .section p { overflow-wrap: break-word; }

/* Contact works with keyboard, autofill and a visible fallback without JS. */
body.v8 .consultation-modal { max-height: calc(100dvh - 40px); padding: 32px; background: #fff; }
body.v8 .modal-header { padding-right: 24px; }
body.v8 .modal-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
body.v8 .modal-close { width: 44px; height: 44px; }
body.v8 .consultation-form label span { font-size: .875rem; letter-spacing: 0; text-transform: none; }
body.v8 .consultation-form :where(input,select,textarea) { font-size: 1rem; border-color: #8999aa; }
body.v8 .consultation-form textarea { resize: vertical; min-height: 110px; }
body.v8 .form-alert { line-height: 1.5; font-size: 1rem; }
body.v8 .form-note { font-size: .875rem; color: #536275; }
body.v8 .site-footer a { overflow-wrap: anywhere; }
body.v8 .site-footer :where(a,p) { font-size: .9375rem; }
body.v8 .skip-link { position: fixed; }
@media (max-width: 1199px) {
  body.v8 .nav-toggle { display: block; min-height: 44px; }
  body.v85 .site-header:not(.scrolled) .nav-toggle { background: #ffffff0d; color: #fff; border-color: #ffffff66; }
  body.v8 .site-nav { display: none; position: fixed; top: 88px; inset-inline: var(--tw-gutter); flex-direction: column; align-items: stretch; max-height: calc(100dvh - 105px); overflow: auto; padding: 18px; gap: 6px; background: #fff; color: var(--tw-ink); border: 1px solid #bdc8d3; border-radius: 16px; box-shadow: 0 20px 60px #0003; }
  body.v8 .site-nav.open { display: flex; }
  body.v85 .site-header:not(.scrolled) .site-nav.open > a:not(.btn) { color: var(--tw-ink); }
  body.v8 .site-nav > a { padding: 11px 14px; }
  body.v8 .site-nav .lang-switch { width: fit-content; color: var(--tw-ink); background: #fff; border-color: #bdc8d3; }
  body.v8.inner-page .article-grid { grid-template-columns: 1fr; gap: 40px; }
  body.v8.inner-page .sticky-cta { position: static; max-width: 820px; }
}
@media (max-width: 1099px) {
  .tw-hero-shell { grid-template-columns: 1fr; min-height: auto; padding-block: 126px 64px; gap: 46px; }
  .tw-hero-copy { max-width: 780px; }
  .tw-hero h1 { font-size: clamp(2.7rem, 5.8vw, 4rem); max-width: 780px; }
  .tw-flow { width: 100%; max-width: 760px; }
  .tw-flow-steps { gap: 32px; }
  .tw-flow-step a { grid-template-columns: 28px 1fr; gap: 10px; padding: 22px; padding-right: 35px; }
}
@media (max-width: 650px) {
  body.v8 .site-header, body.v85 .site-header.scrolled, body.v8 .site-header .header-inner { height: 72px; }
  body.v8 .site-header .brand-logo { height: 42px; max-width: 174px; }
  body.v8 .site-nav { top: 80px; max-height: calc(100dvh - 98px); }
  .tw-hero-shell { padding-block: 112px 54px; gap: 40px; }
  .tw-hero h1 { font-size: clamp(2.1rem, 8.6vw, 3.15rem); line-height: 1.13; letter-spacing: -.035em; }
  .tw-hero .eyebrow { font-size: .75rem; margin-bottom: 20px; letter-spacing: .075em; }
  .tw-hero-lead { font-size: 1rem; margin-block: 22px 24px; line-height: 1.65; }
  .tw-hero-actions { gap: 10px; align-items: stretch; flex-direction: column; }
  .tw-hero-secondary { justify-content: center; }
  .tw-flow-heading { flex-wrap: wrap; gap: 6px 14px; }
  .tw-flow-steps { grid-template-columns: 1fr; gap: 22px; margin-block: 22px; }
  .tw-flow-step-3, .tw-flow-step-4 { grid-column: auto; grid-row: auto; }
  .tw-flow-step a { grid-template-columns: 27px 1fr; padding: 18px; padding-right: 31px; gap: 10px; }
  .tw-flow-step h3 { font-size: 1.125rem; }
  .tw-flow-step p { font-size: .9375rem; margin-top: 6px; }
  .tw-flow-link-mark { right: 12px; top: 16px; font-size: .9375rem; }
  .tw-flow-end { padding: 19px; }
  .tw-flow-end strong { font-size: 1.1875rem; }
  body.v8 .section p { font-size: 1rem !important; }
  body.v84 .section .eyebrow { font-size: .8125rem !important; }
  body.v84 .section :where(.solution-card,.v8-service-card,.knowledge-card) { min-height: 0; padding: 26px; }
  body.v84 .cycle-step { min-height: 0; }
  body.v84 .process-card { min-height: 0; }
  body.v84 .academy-map-stages small { font-size: .9375rem; }
  body.v84 .academy-map-head { flex-wrap: wrap; gap: 10px; padding-bottom: 16px; }
  body.v84 .final-cta-card .btn { width: 100%; }
  body.v8.inner-page .inner-hero, body.v8.inner-page .content-hero { padding-block: 44px; }
  body.v8.inner-page .article-grid article > h2 { font-size: 1.6rem; line-height: 1.25; }
  body.v8 .modal-backdrop { padding: 12px; }
  body.v8 .consultation-modal { padding: 26px 19px; max-height: calc(100dvh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.v8 *, body.v8 *::before, body.v8 *::after { animation: none !important; transition: none !important; }
  .tw-motes { display: none; }
}
@media print {
  .site-header,.site-footer,.tw-motes,.hero-actions,.tw-hero-actions,.modal-backdrop,.sticky-cta { display: none !important; }
  body.v8 .container { width: 100%; }
  body.v8 .v8-reveal { opacity: 1 !important; transform: none !important; }
}
