/* t610 refinements: header, contrast, cookie bar, bust crop, inner type.
   Our palette and type only. No third-party marks. */

/* ---------- A: inner-page header, 1023px and below ---------- */
/* Enquire in the capsule is .nav-enquire-bar, a headbar sibling of Menu.
   Hide it on small screens and keep Enquire inside the drawer. */
@media (max-width:1023px){
  html body.alt-site .site-head a.nav-enquire-bar,
  html body.alt-site .headbar > a.nav-enquire-bar,
  html body.alt-site .site-head > a.nav-enquire,
  html body.alt-site .headbar > a.nav-enquire{
    display:none!important;
  }
  html body.alt-site .site-head .menu-toggle{
    display:inline-flex!important;
    flex:0 0 auto;
    margin-left:auto;
  }
  html body.alt-site .site-head .brand,
  html body.alt-site .site-head .brand-name{
    min-width:0;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap;
  }
}


/* Desktop: Enquire lives in the right-hand tools, not as a bar sibling of Menu */
@media (min-width:1024px){
  html body.alt-site .site-head a.nav-enquire-bar,
  html body.alt-site .headbar > a.nav-enquire-bar{
    display:none!important;
  }
}

/* ---------- A: ghost buttons and Post eyebrows ---------- */
html body.alt-site main :is(a.btn.ghost, button.btn.ghost, a.button.ghost, .button.ghost, .btn.ghost, a.ghost),
html body.alt-site :is(a.btn.ghost, button.btn.ghost, a.button.ghost, .button.ghost, .btn.ghost),
html body.alt-site.ux-p1 :is(a.btn.ghost, button.btn.ghost, a.button.ghost, .button.ghost, .btn.ghost, .ux-btn-ghost){
  background:transparent!important;
  background-color:transparent!important;
  color:#081433!important;
  -webkit-text-fill-color:#081433!important;
  border:1px solid #4A6072!important;
  border-color:#4A6072!important;
}
html body.alt-site [data-surface="ink"] :is(a.btn.ghost, button.btn.ghost, a.button.ghost, .btn.ghost, .button.ghost, .ux-btn-ghost),
html body.alt-site .hr-ink :is(a.btn.ghost, .btn.ghost, a.button.ghost){
  color:#F3F0E8!important;
  -webkit-text-fill-color:#F3F0E8!important;
  border-color:#C5CED6!important;
}
/* Field notes card eyebrows and article "Post" labels */
html body.alt-site main .card .eyebrow,
html body.alt-site main p.eyebrow,
html body.alt-site .card .eyebrow,
html body.alt-site article .eyebrow,
html body.alt-site .notes .eyebrow{
  color:#4A6072!important;
  -webkit-text-fill-color:#4A6072!important;
  opacity:1!important;
}
html body.alt-site [data-surface="ink"] .eyebrow,
html body.alt-site .alt-hero .eyebrow,
html body.alt-site .hr-ink .eyebrow{
  color:#C5CED6!important;
  -webkit-text-fill-color:#C5CED6!important;
}

/* ---------- A: contrast AA, stone on bone and seal on navy ---------- */
html body.alt-site .ux-rec-role,
html body.alt-site .ux-svc-rec-role,
html body.alt-site .ux-rec-tab .ux-rec-role{
  color:#4A6072!important;
}
html body.alt-site .ux-rec-tab[aria-selected="true"] .ux-rec-role,
html body.ux-p2 .ux-rec-tab[aria-selected="true"] .ux-rec-role{
  color:#E3DDD2!important;
}
/* Training selected step was navy on seal (2.58). Cream on seal passes. */
html body.alt-site button.on[data-go],
html body.alt-site button[aria-current="step"].on,
html body.alt-site .m-dial-nav button.on,
html body.alt-site .m-dial-nav button[aria-current="step"]{
  color:#F3F0E8!important;
  -webkit-text-fill-color:#F3F0E8!important;
  background:#963C32!important;
}
/* Developers / ink tabs and links that were seal on navy */
html body.alt-site [data-surface="ink"] [role="tab"][aria-selected="true"],
html body.alt-site [data-surface="ink"] button[aria-selected="true"][role="tab"],
html body.alt-site #tab-investor[aria-selected="true"],
html body.alt-site [data-surface="ink"] a[href="/due-diligence"]{
  color:#F3F0E8!important;
  -webkit-text-fill-color:#F3F0E8!important;
}
html body.alt-site [data-surface="ink"] [role="tab"],
html body.alt-site [data-surface="ink"] a:not(.btn):not(.button):not(.nav-enquire){
  /* do not recolour all ink links; only the failing seal ones are handled above */
}

/* ---------- A: /who-we-build-for tabs, no page overflow ---------- */
html body.alt-site .ux-rec-tabs{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
@media (min-width:800px){
  html body.alt-site .ux-rec-tabs{grid-template-columns:repeat(4, minmax(0,1fr));}
}
html body.alt-site .ux-rec-tab,
html body.alt-site button.ux-rec-tab{
  min-width:0!important;
  max-width:100%;
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:break-word;
  box-sizing:border-box;
}
html body.alt-site .ux-rec-tab .ux-rec-name,
html body.alt-site .ux-rec-tab .ux-rec-role{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
  white-space:normal;
}

/* ---------- B: one slim cookie bar, never covering WhatsApp or orbit chips ---------- */
html body .tcs-consent,
html body.alt-site .tcs-consent,
.tcs-consent{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 20px;
  padding:10px 24px calc(10px + env(safe-area-inset-bottom,0px))!important;
  background:#F3F0E8!important;
  color:#081433!important;
  border:0!important;
  border-top:1px solid rgba(8,20,51,.16)!important;
  border-radius:0!important;
  box-shadow:0 -4px 16px rgba(8,20,51,.08)!important;
  max-height:none!important;
  overflow:visible!important;
  z-index:90!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html body .tcs-consent p,
.tcs-consent p{
  margin:0!important;
  max-width:62ch!important;
  font-size:.9rem!important;
  flex:1 1 16rem;
}
html body .tcs-consent-actions,
.tcs-consent-actions{
  display:flex!important;
  gap:8px!important;
  margin:0!important;
  flex:0 0 auto;
}
html body .tcs-consent-accept,
.tcs-consent-accept{
  background:#A84438!important;
  color:#F3F0E8!important;
  border:1px solid #A84438!important;
  border-radius:999px!important;
}
html body .tcs-consent-decline,
.tcs-consent-decline{
  background:transparent!important;
  color:#081433!important;
  border:1px solid rgba(8,20,51,.28)!important;
  border-radius:999px!important;
}
/* Reserve space and lift the WhatsApp float and orbit chips */
html.has-tcs-consent{--tcs-consent-h:72px}
html.has-tcs-consent a.wa,
html.has-tcs-consent body.alt-site a.wa,
html.has-tcs-consent body.home-rebuild a.wa{
  bottom:calc(var(--tcs-consent-h) + 16px + env(safe-area-inset-bottom,0px))!important;
}
html.has-tcs-consent body.home-rebuild.alt-site.has-enquire-bar a.wa{
  bottom:calc(var(--tcs-consent-h) + 84px + env(safe-area-inset-bottom,0px))!important;
}
html.has-tcs-consent body.home-rebuild.alt-site .hr-hero{
  padding-bottom:calc(var(--tcs-consent-h) + 24px)!important;
}
html.has-tcs-consent body.home-rebuild.alt-site .hr-chip,
html.has-tcs-consent body.home-rebuild.alt-site .hr-hero .hr-chips,
html.has-tcs-consent body.home-rebuild.alt-site .hr-orbit-block .hr-chips{
  margin-bottom:0;
}

/* ---------- C: full sculpture, uncropped; drop the 28rem cap ---------- */
html body.home-rebuild.alt-site .kd-still img,
html body.home-rebuild.alt-site .kd-still .kd-still-base img,
html body.home-rebuild.alt-site .kd-still .kd-stage,
html body.home-rebuild.alt-site .kd-still .kd-still-base{
  max-height:none!important;
  height:auto;
  width:100%;
  object-fit:contain!important;
  object-position:center center!important;
}
html body.home-rebuild.alt-site .kd-still .kd-live,
html body.home-rebuild.alt-site .kd-still .kd-turn{
  inset:0;
}
html body.home-rebuild.alt-site .kd-still .kd-live img,
html body.home-rebuild.alt-site .kd-still .kd-frame{
  object-fit:contain!important;
  object-position:center center!important;
  max-height:none!important;
}

/* ---------- E: inner pages share the homepage type system ---------- */
html body.alt-site:not(.home-rebuild){
  font-family:"TCS Source Sans 3",var(--hr-body),system-ui,sans-serif;
  color:#081433;
  background:#F3F0E8;
}
html body.alt-site:not(.home-rebuild) h1,
html body.alt-site:not(.home-rebuild) h2,
html body.alt-site:not(.home-rebuild) h3,
html body.alt-site:not(.home-rebuild) .alt-hero h1,
html body.alt-site:not(.home-rebuild) .lib-mast h1,
html body.alt-site:not(.home-rebuild) .sw-title{
  font-family:"TCS Manrope",var(--hr-label),system-ui,sans-serif!important;
  font-style:normal!important;
  font-weight:500!important;
  letter-spacing:-0.03em;
  line-height:1.08!important;
}
html body.alt-site:not(.home-rebuild) h1,
html body.alt-site:not(.home-rebuild) .alt-hero h1,
html body.alt-site:not(.home-rebuild) .lib-mast h1{
  font-size:clamp(2rem,3.6vw,3.5rem)!important;
}
html body.alt-site:not(.home-rebuild) h2{
  font-size:clamp(1.7rem,3vw,2.6rem)!important;
}
html body.alt-site:not(.home-rebuild) h3{
  font-size:clamp(1.25rem,2vw,1.7rem)!important;
}
html body.alt-site:not(.home-rebuild) :is(em,i,blockquote,q,.sw-desc,.lb-line,.sw-prompt,.sw-pro-sub,.sw-card-sub,.seal-sub,.ux-hero-sign,.ux-pull blockquote,.ux-rec blockquote,.seal-ins p){
  font-style:normal!important;
}
html body.alt-site:not(.home-rebuild) .sw-desc,
html body.alt-site:not(.home-rebuild) .lb-line{
  font-family:"TCS Source Sans 3",var(--hr-body),system-ui,sans-serif!important;
  font-style:normal!important;
  font-weight:400!important;
  color:#4A6072!important;
}
html body.alt-site:not(.home-rebuild) .eyebrow,
html body.alt-site:not(.home-rebuild) .kicker,
html body.alt-site:not(.home-rebuild) .hr-eyebrow{
  font-family:"TCS Manrope",var(--hr-label),system-ui,sans-serif!important;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-style:normal!important;
}
/* Body buttons: squarer red fill like the homepage, ghost as navy outline */
html body.alt-site:not(.home-rebuild) main :is(a.btn:not(.ghost), button.btn:not(.ghost), a.button.primary, button[type=submit], .hr-btn){
  background:#A84438;
  color:#F3F0E8;
  border:1px solid #A84438;
  border-radius:2px;
}
/* Numbered rows, where the markup already has a numeral */
html body.alt-site:not(.home-rebuild) :is(.hr-num,.n,.num,.step-n){
  font-family:"TCS Manrope",var(--hr-label),system-ui,sans-serif!important;
  font-style:normal!important;
}
/* No gold or lime leftovers on inner pages */
html body.alt-site:not(.home-rebuild) :is(h1,h2,h3,h4,a,button,p,span,li){
  /* colour is set by palette; this only blocks leftover lime utility classes */
}
html body.alt-site [class*="lime"],
html body.alt-site .lime{
  color:#081433!important;
  background:transparent!important;
  border-color:#4A6072!important;
}

/* Library roman already covered; keep mast typography in family */
html body.statement-page .lib-mast .sw-desc,
html body.statement-page .lb-line{
  font-style:normal!important;
  font-family:"TCS Source Sans 3",system-ui,sans-serif!important;
}

html.has-tcs-consent body.home-rebuild.alt-site .hr-chips{position:relative;z-index:1;margin-bottom:8px;}


/* ---------- t610 follow-up: measured cookie height, contrast, Post labels ---------- */
/* t611: do not change hero typography or height when the cookie appears (that caused CLS). */

/* Card Post/eyebrows inside the Field notes ink section stay stone on the paper cards */
html body.alt-site main .card .eyebrow,
html body.alt-site main a.card .eyebrow,
html body.alt-site main .grid .card .eyebrow,
html body.alt-site .alt-hero .card .eyebrow,
html body.alt-site [data-surface="ink"] .card .eyebrow,
html body.alt-site.ux-p1.ux-p2.ux-typographic-hero main .sec.alt-hero.scene-surface[data-surface="ink"] .card .eyebrow,
html body.alt-site.ux-p1.ux-p2.ux-typographic-hero main .sec.alt-hero.scene-surface[data-surface="ink"]:has(canvas.notes-net) .card .eyebrow{
  color:#4A6072!important;
  -webkit-text-fill-color:#4A6072!important;
}

/* Assessment role lines: #4A6072 on bone passes 4.5 */
html body.alt-site .ux-svc-rec-role,
html body.alt-site .ux-rec-role,
html body.ux-p2 .ux-svc-rec-role,
html body.alt-site span.ux-svc-rec-role{
  color:#4A6072!important;
  -webkit-text-fill-color:#4A6072!important;
}

/* Active orbit labels: lighter seal on navy, 8.75 contrast */
html body.home-rebuild.alt-site .hr-orbit-btn.is-active,
html body.home-rebuild.alt-site .hr-orbit-btn[aria-pressed="true"],
html body.home-rebuild.alt-site .hr-orbit-btn:hover,
html body.home-rebuild.alt-site .hr-orbit-btn:focus-visible,
html body.home-rebuild.alt-site .hr-domain-btn[aria-pressed="true"]{
  color:#E8A399!important;
  -webkit-text-fill-color:#E8A399!important;
}

/* Ink kickers that were #963C32 on navy */
html body.alt-site [data-surface="ink"] .ux-kicker,
html body.alt-site [data-surface="ink"] .ux-rec-kicker,
html body.alt-site [data-surface="ink"] .section-kicker{
  color:#E8A399!important;
  -webkit-text-fill-color:#E8A399!important;
}


/* Assessment testimonial roles: beat the 4-class tcs-bundle rule */
html body.alt-site.ux-p2 .ux-service-quote .ux-svc-rec-role,
html body.alt-site.ux-p2 .testimonials-397 .quote-role,
html body.alt-site.ux-p2 .ux-service-quote span.ux-svc-rec-role{
  color:#4A6072!important;
  -webkit-text-fill-color:#4A6072!important;
}


/* ---------- t611: compact cookie, reserved hero space, LCP aspect-ratios ---------- */

/* Always-on mobile orbit: smaller diagram and tighter label grid so the
   orbit buttons sit above the slim cookie bar from first paint (no JS class). */
@media (max-width:900px){
  html body.home-rebuild.alt-site .hr-hero h1{
    font-size:clamp(1.7rem,6.8vw,2.3rem)!important;
  }
  html body.home-rebuild.alt-site .hr-hero-sub{
    font-size:.98rem!important;
    line-height:1.4!important;
  }
  html body.home-rebuild.alt-site .hr-orbit{
    width:min(168px,48vw)!important;
  }
  html body.home-rebuild.alt-site .hr-orbit-labels{
    gap:0 8px!important;
    margin-top:6px!important;
  }
  html body.home-rebuild.alt-site .hr-orbit-labels .hr-orbit-btn{
    min-height:28px!important;
    padding:2px 4px!important;
    font-size:9px!important;
  }
  html body.home-rebuild.alt-site .hr-hero{
    padding-bottom:96px!important;
  }
}

/* Slimmer cookie bar on phones so it does not cover the orbit buttons */
@media (max-width:430px){
  html body .tcs-consent,
  html body.alt-site .tcs-consent,
  .tcs-consent{
    padding:6px 14px calc(6px + env(safe-area-inset-bottom,0px))!important;
    gap:6px 10px!important;
    align-items:center;
  }
  html body .tcs-consent p,
  .tcs-consent p{
    font-size:.8rem!important;
    line-height:1.3!important;
    max-width:none!important;
  }
  html body .tcs-consent-accept,
  html body .tcs-consent-decline,
  .tcs-consent-accept,
  .tcs-consent-decline{
    min-height:40px;
    padding:6px 12px!important;
    font-size:.85rem!important;
  }
}

/* Assessment film hero: lock the box so typography or the video cannot shift it */
html body.alt-site.ux-p2 section.sec.alt-hero.scene-surface:has(.scene-film),
html body.alt-site.ux-typographic-hero .sec.alt-hero.scene-surface:has(.scene-film){
  min-height:min(100svh,900px)!important;
  overflow:hidden!important;
  contain:layout;
}
html body.alt-site.ux-p2 .alt-hero .scene-film,
html body.alt-site.ux-p2 .alt-hero .scene-film .film-poster,
html body.alt-site.ux-p2 .alt-hero .scene-film .film-video,
html body.alt-site.ux-p2 .alt-hero .scene-film picture.film-poster-pic{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
}
html body.alt-site.ux-p2 .alt-hero .scene-film .film-poster,
html body.alt-site.ux-p2 .alt-hero .scene-film .film-video{
  object-fit:cover!important;
  aspect-ratio:16/9;
}

/* Library book cover: reserve the 5:8 plate so the picture does not pop in */
html body.alt-site figure.book-artwork picture,
html body.alt-site .library-book .book-artwork picture{
  display:block;
  width:min(100%,340px);
  aspect-ratio:1600/2560;
  height:auto;
}
html body.alt-site figure.book-artwork img,
html body.alt-site .library-book .book-artwork img{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1600/2560;
  display:block;
}

/* Founder portrait: reserve 3:4, override aspect-ratio:auto from all-pages */
html body.alt-site .founder-portrait-upload,
html body.alt-site img.portrait.founder-portrait-upload,
html body.alt-site .m-framed:has(.founder-portrait-upload) picture,
html body.alt-site .m-framed:has(.founder-portrait-upload){
  aspect-ratio:960/1280!important;
  height:auto!important;
}
html body.alt-site img.portrait.founder-portrait-upload{
  width:100%!important;
  display:block!important;
}
