/* Phase 2: living system. Deep ink hero, paper sections, seal accent. */
:root{
  --ink:#081433;
  --ink-2:#07122E;
  --paper:#F3F0E8;
  --bone:#E3DDD2;
  --stone:#4A6072;
  --mute:#8FA3B3;
  --seal:#963C32;
  --terracotta:#A84438;
  --hairline:rgba(243,240,232,.14);
  --hairline-ink:rgba(8,20,51,.14);
}

/* === Polish (site-wide) === */
.alt-site.ux-p1 .utility-signin,
.alt-site.ux-p2 .utility-signin{
  color:#0A1738 !important;
}
.skip-link{
  position:absolute;
  left:16px;
  top:0;
  z-index:400;
  transform:translateY(-150%);
  background:#081433;
  color:#F3F0E8;
  padding:10px 16px;
  min-height:44px;
  text-decoration:none;
  font-family:"TCS Manrope",Manrope,sans-serif;
  font-size:.9rem;
}
.skip-link:focus,
.skip-link:focus-visible{
  transform:translateY(12px);
  outline:2px solid #F3F0E8;
  outline-offset:3px;
}

/* Magnifying-glass cursor: desktop / fine pointer only */
.ux2-cursor{
  display:none;
}
@media (hover:hover) and (pointer:fine){
  body.ux2-has-cursor,
  body.ux2-has-cursor *{
    cursor:auto !important; /* t583: no custom cursor */
  }
  body.ux2-has-cursor input,
  body.ux2-has-cursor textarea,
  body.ux2-has-cursor select,
  body.ux2-has-cursor input *,
  body.ux2-has-cursor textarea *,
  body.ux2-has-cursor [contenteditable],
  body.ux2-has-cursor [contenteditable] *{
    cursor:text !important;
  }
  body.ux2-has-cursor .ux2-cursor{
    display:none !important; /* t583 */
    position:fixed;
    left:0;top:0;
    width:22px;height:22px;
    margin:-4px 0 0 -4px;
    pointer-events:none;
    z-index:500;
    transform:translate3d(-100px,-100px,0) scale(1);
    transform-origin:4px 4px;
  }
  body.ux2-has-cursor .ux2-cursor svg{
    display:block;
    width:100%;
    height:100%;
    overflow:visible;
    filter:drop-shadow(0 0 0.7px #F3F0E8) drop-shadow(0 0 0.7px #081433);
  }
  body.ux2-has-cursor .ux2-cursor.is-hidden{
    display:none !important;
  }
  body.ux2-has-cursor .ux2-labels,
  body.ux2-has-cursor .ux2-labels *,
  body.ux2-has-cursor .ux2-orbit,
  body.ux2-has-cursor .ux2-orbit *{
    cursor:pointer !important;
  }
}
@media (prefers-reduced-motion:reduce){
  body.ux2-has-cursor,
  body.ux2-has-cursor *{
    cursor:auto !important;
  }
  body.ux2-has-cursor .ux2-cursor{
    display:none !important;
  }
}

/* === Homepage: ink hero === */
body.ux-p2-home{background:var(--paper);color:#081433}
body.ux-p2-home .site-head{
  background:transparent;
  border-bottom-color:transparent;
  transition:background .35s ease, border-color .35s ease, color .35s ease;
}
body.ux-p2-home .site-head.is-paper{
  background:rgba(243,240,232,.94);
  border-bottom-color:rgba(8,20,51,.14);
  backdrop-filter:saturate(1.1) blur(12px);
}
body.ux-p2-home .site-head:not(.is-paper) .brand-name,
body.ux-p2-home .site-head:not(.is-paper) .site-head nav#source-navigation>a,
body.ux-p2-home .site-head:not(.is-paper) .site-head nav#source-navigation>details>summary,
body.ux-p2-home .site-head:not(.is-paper) #source-navigation>a,
body.ux-p2-home .site-head:not(.is-paper) #source-navigation>details>summary,
body.ux-p2-home .site-head:not(.is-paper) .utility-signin,
body.ux-p2-home .site-head:not(.is-paper) .lang-switch,
body.ux-p2-home .site-head:not(.is-paper) .menu-toggle,
body.ux-p2-home .site-head:not(.is-paper) .nav-enquire,
body.ux-p2-home .site-head:not(.is-paper) .nav-enquire-bar{
  color:#F3F0E8 !important;
  border-color:#F3F0E8 !important;
  background:transparent !important;
}
body.ux-p2-home .site-head:not(.is-paper) .utility-signin{color:#E3DDD2 !important}
body.ux-p2-home .site-head:not(.is-paper) .nav-enquire:hover,
body.ux-p2-home .site-head:not(.is-paper) .nav-enquire:focus-visible{
  background:#F3F0E8 !important;
  color:#081433 !important;
}

.ux2-hero{
  position:relative;
  background:var(--ink);
  color:var(--paper);
  overflow:hidden;
  padding:48px 0 0;
  min-height:100svh;
}
.ux2-hero-glow{
  position:absolute;
  inset:-10% 10% auto 10%;
  height:70%;
  background:radial-gradient(ellipse at 70% 40%, rgba(150,60,50,.28) 0%, rgba(212,120,104,.08) 32%, transparent 68%);
  pointer-events:none;
  filter:blur(8px);
}
.ux2-hero-grain{
  position:absolute;inset:0;
  pointer-events:none;
  opacity:.11;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9  0 0 0 0 .88  0 0 0 0 .8  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ux2-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  gap:40px;
  padding-top:12px;
  padding-bottom:24px;
}
@media (min-width:1024px){
  .ux2-hero-grid{
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
    align-items:center;
    gap:48px;
    min-height:calc(100svh - 180px);
  }
}
.ux2-hero .eyebrow{color:var(--mute);letter-spacing:.16em}
.ux2-hero h1,
.ux2-hero h1 .ux2-line,
.ux2-hero h1 .ux2-line-em,
.ux2-hero h1 .ux2-word,
.ux2-hero h1 em{
  font-family:"TCS Fraunces","Times New Roman",Georgia,serif !important;
  font-synthesis:none;
}
html[lang^="zh"] .ux2-hero h1,
html[lang^="zh"] .ux2-hero h1 .ux2-line,
html[lang^="zh"] .ux2-hero h1 .ux2-line-em,
html[lang^="zh"] .ux2-hero h1 .ux2-word,
html[lang^="zh"] .ux2-hero h1 em{
  font-family:"TCS Noto Serif SC","Songti SC","Noto Serif SC",serif !important;
  font-synthesis:none;
}
.ux2-hero h1{
  font-weight:400;
  font-optical-sizing:auto;
  letter-spacing:-0.03em;
  line-height:.95;
  font-size:clamp(2.7rem, 8.4vw, 6.75rem);
  color:var(--paper);
  margin:12px 0 24px;
  max-width:16ch;
}
.ux2-hero h1 .ux2-line{display:block}
.ux2-hero h1 .ux2-line-em{
  font-style:italic;
  color:#E3DDD2;
  font-size:.84em;
  letter-spacing:-0.02em;
  max-width:18ch;
  margin-top:.12em;
}
.ux2-hero h1 .ux2-word{
  display:inline-block;
  will-change:transform,opacity;
}
body.ux-p2-home:not(.ux2-reduced) .ux2-hero h1.is-ready .ux2-word{
  opacity:0;
  transform:translateY(.45em);
}
.ux2-hero-sub{
  max-width:38ch;
  font-size:clamp(1.05rem,1.4vw,1.25rem);
  line-height:1.55;
  color:#C5CED6;
  margin:0 0 28px;
}
.ux2-hero .ux-hero-sign{
  margin-top:28px;
  font-family:"TCS Fraunces",serif;
  font-style:italic;
  color:#C5CED6;
}
.ux2-hero .ux-btn{
  background:var(--paper) !important;
  color:var(--ink) !important;
  border-color:var(--paper) !important;
}
.ux2-hero .ux-text-link{color:var(--paper);background-image:linear-gradient(currentColor,currentColor)}

/* Proof on ink */
.ux2-hero .ux-proof{
  position:relative;
  z-index:1;
  display:grid;
  gap:10px 24px;
  padding:22px 0 28px;
  border-top:1px solid var(--hairline);
  color:#C5CED6;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-family:"TCS Manrope",Manrope,sans-serif;
}
@media (min-width:800px){
  .ux2-hero .ux-proof{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
}

/* Living system */
.ux2-system{position:relative;min-width:0}
.ux2-system-stage{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  max-width:640px;
  margin:0 auto;
}
.ux2-system-stage svg{
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
}
.ux2-system-stage .arm,
.ux2-system-stage .twig{
  fill:none;
  stroke:#E3DDD2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ux2-system-stage .arm{stroke-width:1.25;opacity:.85}
.ux2-system-stage .twig{stroke-width:.7;opacity:.45}
.ux2-system-stage .node{
  fill:#081433;
  stroke:#E3DDD2;
  stroke-width:1.2;
  transform-box:fill-box;
  transform-origin:center;
}
.ux2-system-stage .hub{
  fill:none;
  stroke:#963C32;
  stroke-width:1.4;
}
.ux2-system-stage .hub-core{fill:#963C32;opacity:.9}
.ux2-system-stage .branch.is-on .arm,
.ux2-system-stage .branch.is-on .twig{stroke:#A84438;opacity:1}
.ux2-system-stage .branch.is-on .node{stroke:#A84438;fill:#2A1614}

.ux2-labels{
  list-style:none;
  margin:0;padding:0;
}
.ux2-labels button{
  appearance:none;
  background:transparent;
  border:0;
  color:#F3F0E8;
  font-family:"TCS Manrope",Manrope,sans-serif;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:center;
  cursor:pointer;
  padding:8px 10px;
  min-height:44px;
  line-height:1.25;
}
.ux2-labels button[aria-pressed="true"],
.ux2-labels button:focus-visible{
  color:#A84438;
  outline:2px solid #A84438;
  outline-offset:3px;
}

/* Desktop: labels orbit the diagram, never clip */
@media (min-width:900px){
  .ux2-labels li{
    position:absolute;
    width:max-content;
    max-width:11.5rem;
  }
  .ux2-labels button{font-size:.68rem}
  .ux2-labels li:nth-child(1){top:1.5%;left:50%;transform:translate(-50%,0);text-align:center}
  .ux2-labels li:nth-child(2){top:16%;right:0;text-align:right}
  .ux2-labels li:nth-child(3){top:50%;right:0;transform:translateY(-50%);text-align:right}
  .ux2-labels li:nth-child(4){bottom:16%;right:0;text-align:right}
  .ux2-labels li:nth-child(5){bottom:1.5%;left:50%;transform:translate(-50%,0);text-align:center}
  .ux2-labels li:nth-child(6){bottom:16%;left:0;text-align:left}
  .ux2-labels li:nth-child(7){top:50%;left:0;transform:translateY(-50%);text-align:left}
  .ux2-labels li:nth-child(8){top:16%;left:0;text-align:left}
}
/* Small screens: labels as a full wrapping grid under a slightly shorter stage */
@media (max-width:899px){
  .ux2-system-stage{aspect-ratio:1/1;max-width:min(100%,420px);margin-bottom:8px}
  .ux2-labels{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px 10px;
    margin-top:8px;
  }
  .ux2-labels button{
    width:100%;
    text-align:left;
    font-size:.68rem;
    letter-spacing:.06em;
    border:1px solid rgba(243,240,232,.14);
    min-height:48px;
    padding:10px 12px;
  }
}

.ux2-domain-line{
  min-height:3.2em;
  margin:16px 0 0;
  color:#E3DDD2;
  font-family:"TCS Fraunces",serif;
  font-style:italic;
  font-size:clamp(1.05rem,1.6vw,1.35rem);
  line-height:1.4;
  text-align:center;
}
.ux2-outcomes{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px 18px;
  margin:20px 0 8px;
}
.ux2-outcomes span{
  border:1px solid rgba(243,240,232,.28);
  color:#F3F0E8;
  padding:8px 14px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.68rem;
  font-family:"TCS Manrope",Manrope,sans-serif;
  opacity:0;
  transform:translateY(8px);
}
body.ux2-reduced .ux2-outcomes span,
.ux2-outcomes.is-in span{opacity:1;transform:none}
.ux2-outcomes span:first-child{border-color:#A84438;color:#A84438}

/* Rhythm: ink / paper */
body.ux-p2-home .ux-pull{
  background:var(--paper);
  color:#081433;
  padding:80px 0;
}
body.ux-p2-home .ux-pull blockquote p,
body.ux-p2-home #testimonials blockquote p{
  font-family:"TCS Fraunces",serif;
  font-style:italic;
  font-weight:400;
  font-size:clamp(1.6rem, 3.4vw, 3rem);
  line-height:1.25;
  letter-spacing:-0.02em;
  max-width:22ch;
  margin:0 auto;
  text-align:center;
}
body.ux-p2-home .ux-pull footer,
body.ux-p2-home #testimonials footer{
  text-align:center;
  margin-top:24px;
  color:var(--stone);
  font-size:.85rem;
}
body.ux-p2-home #who,
body.ux-p2-home #commissioning-method,
body.ux-p2-home #specimen,
body.ux-p2-home #field-notes,
body.ux-p2-home #selected-work-strip{background:var(--paper)}
body.ux-p2-home #diagnostic,
body.ux-p2-home #advisory,
body.ux-p2-home .ux-story,
body.ux-p2-home #testimonials,
body.ux-p2-home .ux-close{
  background:var(--ink-2);
  color:var(--paper);
}
body.ux-p2-home #diagnostic h2,
body.ux-p2-home #advisory h2,
body.ux-p2-home .ux-story h2,
body.ux-p2-home #testimonials h2,
body.ux-p2-home .ux-close h2,
body.ux-p2-home #diagnostic .eyebrow,
body.ux-p2-home #advisory .eyebrow,
body.ux-p2-home .ux-story .eyebrow,
body.ux-p2-home #testimonials .eyebrow,
body.ux-p2-home #testimonials #rec-uma-title{color:#F3F0E8 !important}
body.ux-p2-home #diagnostic p,
body.ux-p2-home #advisory p,
body.ux-p2-home .ux-story p,
body.ux-p2-home .ux-close p{color:#C5CED6}
body.ux-p2-home #advisory .ux-service-row,
body.ux-p2-home #advisory .ux-service-row h3,
body.ux-p2-home #advisory .ux-service-row span{color:var(--paper)}
body.ux-p2-home #advisory .ux-service-row{border-color:var(--hairline)}
body.ux-p2-home #diagnostic .ux-domain-list button{color:var(--paper);border-color:var(--hairline)}
body.ux-p2-home #diagnostic .ux-domain-line{color:#E3DDD2}
body.ux-p2-home #founder-band{background:var(--paper)}
body.ux-p2-home .ux-score{background:var(--paper);border-top:1px solid var(--hairline-ink);border-bottom:1px solid var(--hairline-ink)}
body.ux-p2-home .ux-close .ux-btn{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--paper)!important}
body.ux-p2-home #testimonials .ux-text-link,
body.ux-p2-home #advisory .ux-text-link,
body.ux-p2-home .ux-story .ux-text-link,
body.ux-p2-home .ux-close .ux-text-link{color:var(--paper)}

/* Hide the second, clipped SVG in the diagnostic; the living system lives in the hero */
body.ux-p2-home #diagnostic .ux-diagram{display:none}

/* Scroll reveals */
.ux2-reveal{opacity:1;transform:none}
body.ux-p2-home:not(.ux2-reduced) .ux2-reveal{
  opacity:0;
  transform:translateY(28px);
}
body.ux-p2-home:not(.ux2-reduced) .ux2-reveal.is-in{
  opacity:1;
  transform:none;
  transition:opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1);
}
.ux2-rule{
  height:1px;
  background:currentColor;
  transform-origin:left center;
  transform:scaleX(1);
  opacity:.35;
  margin:0 0 24px;
}
body.ux-p2-home:not(.ux2-reduced) .ux2-rule{transform:scaleX(0)}
body.ux-p2-home:not(.ux2-reduced) .ux2-rule.is-in{transform:scaleX(1);transition:transform 1s cubic-bezier(.16,1,.3,1)}
.ux2-num{
  font-family:"TCS Fraunces",serif;
  font-style:italic;
  color:var(--seal);
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1;
  display:block;
  margin-bottom:8px;
}

/* Sticky pathway: Assessment, The Rehearsal, retainer */
.ux-story{
  position:relative;
}
.ux-story-pin{
  position:sticky;
  top:0;
  min-height:100svh;
  display:flex;
  align-items:center;
  padding:96px 0 72px;
}
.ux-story-frame{width:100%}
.ux-story-kicker{margin-bottom:12px}
.ux-story-slide{display:none}
.ux-story-slide.is-on{display:block}
.ux-story-slide h2{
  font-family:"TCS Fraunces",serif;
  font-weight:400;
  font-size:clamp(2.2rem,5vw,4.4rem);
  letter-spacing:-0.03em;
  max-width:16ch;
  margin:0 0 16px;
}
.ux-story-slide p{max-width:42ch;font-size:clamp(1.05rem,1.5vw,1.3rem)}
.ux-story-index{
  display:flex;
  gap:18px;
  margin-top:40px;
  flex-wrap:wrap;
}
.ux-story-index button{
  appearance:none;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(243,240,232,.25);
  color:#8FA3B3;
  font-family:"TCS Manrope",Manrope,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-size:.72rem;
  padding:8px 0;
  min-height:44px;
  cursor:pointer;
}
.ux-story-index button[aria-selected="true"]{
  color:#F3F0E8;
  border-bottom-color:#963C32;
}

/* Section numbers */
body.ux-p2-home .ux-section .wrap,
body.ux-p2-home .ux-score .wrap,
body.ux-p2-home .ux-pull .wrap{position:relative}

@media (prefers-reduced-motion:reduce){
  body.ux-p2-home .ux2-hero h1 .ux2-word,
  body.ux-p2-home .ux2-reveal,
  body.ux-p2-home .ux2-rule,
  body.ux-p2-home .ux2-outcomes span{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

html.ux2-motion .ux2-system:not(.is-drawn) .arm,
html.ux2-motion .ux2-system:not(.is-drawn) .twig,
html.ux2-motion .ux2-system:not(.is-drawn) .node{opacity:0}

/* === Phase 2 visual corrections: retire lime, invert header, contain labels === */
body.ux-p2-home .ux2-hero,
body.ux-p2-home .ux2-hero[data-surface="ink"],
body.ux-p2-home .ux-story,
body.ux-p2-home #diagnostic,
body.ux-p2-home #advisory,
body.ux-p2-home #testimonials,
body.ux-p2-home .ux-close{
  --link:#F3F0E8 !important;
  --button-bg:#F3F0E8 !important;
  --button-ink:#081433 !important;
  --lime:#A84438 !important;
  --text:#F3F0E8 !important;
}

body.ux-p2-home .site-head{
  background:transparent !important;
  border-bottom-color:transparent !important;
  box-shadow:none !important;
}
body.ux-p2-home .site-head.is-paper{
  background:rgba(243,240,232,.94) !important;
  border-bottom-color:rgba(8,20,51,.16) !important;
}
body.ux-p2-home .site-head:not(.is-paper) .utility-signin{
  color:#E3DDD2 !important;
}
body.ux-p2-home .site-head.is-paper .utility-signin{
  color:#0A1738 !important;
}

body.ux-p2-home main .ux2-hero a.ux-text-link,
body.ux-p2-home main .ux2-hero a{
  color:#F3F0E8 !important;
}
body.ux-p2-home main .ux2-hero a.ux-btn,
body.ux-p2-home .ux2-hero a.ux-btn,
body.ux-p2-home .ux2-hero .ux-btn{
  background:#F3F0E8 !important;
  color:#081433 !important;
  border:1px solid #F3F0E8 !important;
  border-radius:2px !important;
  min-height:48px !important;
  padding:0 22px !important;
  display:inline-flex !important;
}

body.ux-p2-home .ux2-labels,
body.ux-p2-home .ux2-labels li,
body.ux-p2-home .ux2-labels button{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
body.ux-p2-home .ux2-labels button{
  background:transparent !important;
  color:#F3F0E8 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  font-family:"TCS Manrope",Manrope,sans-serif !important;
  font-weight:500 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}
body.ux-p2-home .ux2-labels button[aria-pressed="true"],
body.ux-p2-home .ux2-labels button:focus-visible,
body.ux-p2-home .ux2-labels button:hover{
  color:#A84438 !important;
  background:transparent !important;
}

@media (max-width:899px){
  body.ux-p2-home .ux2-system-stage{
    aspect-ratio:auto;
    max-width:100%;
  }
  body.ux-p2-home .ux2-system-stage svg{
    width:100%;
    max-width:380px;
    height:auto;
    aspect-ratio:1/1;
    margin:0 auto;
    display:block;
  }
  body.ux-p2-home .ux2-labels{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px 8px;
    width:100%;
    margin-top:12px;
  }
  body.ux-p2-home .ux2-labels li{width:auto}
  body.ux-p2-home .ux2-labels button{
    width:100%;
    text-align:left !important;
    border:1px solid rgba(243,240,232,.2) !important;
    min-height:48px !important;
    padding:10px 10px !important;
    font-size:.62rem !important;
    letter-spacing:.05em !important;
  }
  body.ux-p2-home .ux-sticky-cta{display:none !important}
}

@media (max-width:360px){
  body.ux-p2-home .ux2-labels{gap:4px 6px}
  body.ux-p2-home .ux2-labels button{padding:8px 8px !important;font-size:.58rem !important}
}

/* Orbit is the positioning context so labels never sit on the outcomes */
.ux2-orbit{position:relative;width:100%;max-width:640px;margin:0 auto}
@media (min-width:900px){
  .ux2-orbit{aspect-ratio:1/1}
  .ux2-orbit .ux2-system-stage{position:absolute;inset:8% 8%;width:auto;height:auto;aspect-ratio:auto;max-width:none}
  .ux2-orbit .ux2-system-stage svg{width:100%;height:100%}
  .ux2-labels li{z-index:2}
  .ux2-domain-line{margin-top:8px}
}
@media (max-width:899px){
  .ux2-orbit{aspect-ratio:auto;max-width:100%}
}

/* Full-bleed ink under the header */
body.ux-p2-home{background:var(--ink)}
body.ux-p2-home .ux2-hero{
  margin-top:-86px;
  padding-top:110px;
}
body.ux-p2-home .site-head:not(.is-paper){
  background:#081433 !important;
  border-bottom-color:rgba(243,240,232,.08) !important;
}
body.ux-p2-home .site-head.is-paper{
  background:rgba(243,240,232,.94) !important;
}
/* Paper sections still sit on paper; body ink only shows at the top and behind the hero */
body.ux-p2-home main{background:transparent}
