/* =============================================================
   Sovereign Technology Partners — Site styles
   Inherits SCN visual identity. Per brief: Georgia + Helvetica Neue.
   Colours per brief — Cream/Navy/Sand/Light Blue/Green. Bronze used
   only as a thin accent rule (SCN heritage), never on type.
   ============================================================= */

:root{
  --cream:        #FFFBF2;
  --black:        #262524;
  --navy:         #123541;
  --navy-deep:    #0C2530;
  --sand:         #E1D6BF;
  --sand-2:       #ECE2CC;
  --light-blue:   #A8BCCB;
  --green:        #BFC098;
  --bronze:       #9A6A3E;

  --fg-1: var(--black);
  --fg-2: #4A5C66;
  --fg-3: #6B7B85;
  --fg-inv:    var(--cream);
  --fg-inv-2:  rgba(255,251,242,0.78);
  --fg-inv-3:  rgba(255,251,242,0.55);

  --stroke-1: rgba(18,53,65,0.14);
  --stroke-2: rgba(18,53,65,0.28);
  --stroke-inv: rgba(255,251,242,0.22);

  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shell: 1200px;

  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px;
  --sp-6:32px; --sp-7:48px; --sp-8:64px; --sp-9:96px; --sp-10:128px;

  --r-card: 12px;
  --r-btn:  12px;

  --ease: cubic-bezier(0.22,0.61,0.36,1);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background: var(--cream);
  color: var(--fg-1);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
img{ display:block; max-width:100%; }

a{ color: var(--navy); text-decoration: none; }

.shell{ max-width: var(--shell); margin:0 auto; padding: 0 var(--sp-7); }
@media (max-width: 720px){ .shell{ padding: 0 var(--sp-5); } }

/* --- Type --- */
h1,h2,h3,h4,h5,h6{
  font-family: var(--serif);
  font-weight: 300;
  color: var(--navy);
  letter-spacing: 0.005em;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}
h1{ font-size: clamp(44px, 5.6vw, 76px); line-height: 1.05; }
h2{ font-size: clamp(32px, 3.6vw, 48px); }
h3{ font-size: 26px; }
h4{ font-size: 20px; line-height: 1.3; }

p{ margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }

em, .ital{ font-style: italic; color: var(--navy); }

.eyebrow{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex; align-items:center; gap:14px;
}
.eyebrow::before{
  content:""; width: 28px; height:1px; background: var(--navy);
  display:inline-block;
}
.eyebrow.no-rule::before{ display:none; }
.surface-deep .eyebrow{ color: rgba(255,251,242,0.78); }
.surface-deep .eyebrow::before{ background: var(--light-blue); }

.lede{
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 60ch;
  font-weight: 300;
}
.surface-deep .lede{ color: rgba(255,251,242,0.78); }

/* --- Buttons --- */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  min-height: 44px;
}
.btn-primary{
  background: var(--navy); color: var(--cream); border-color: var(--navy);
}
.btn-primary:hover{ background: #0A2530; }
.btn-outline{
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover{ background: var(--navy); color: var(--cream); }
.btn-on-navy{
  background: var(--sand); color: var(--navy); border-color: var(--sand);
}
.btn-on-navy:hover{ background: var(--cream); border-color: var(--cream); }
.btn .arr{
  width: 14px; height: 8px; position: relative; flex-shrink: 0;
}
.btn .arr::before{
  content:""; position:absolute; left:0; top:50%; right:0; height:1px;
  background: currentColor; transform: translateY(-50%);
}
.btn .arr::after{
  content:""; position:absolute; right:0; top:50%; width:7px; height:7px;
  border-top: 1px solid currentColor; border-right:1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* secondary text link */
.linkcta{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--stroke-2);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.linkcta:hover{ color: var(--navy); border-bottom-color: var(--navy); }
.linkcta .arr{ width:14px; height:8px; position:relative; }
.linkcta .arr::before{ content:""; position:absolute; left:0; top:50%; right:0; height:1px; background: currentColor; }
.linkcta .arr::after{
  content:""; position:absolute; right:0; top:50%; width:6px; height:6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.surface-deep .linkcta{ color: var(--cream); border-bottom-color: rgba(255,251,242,.4); }
.surface-deep .linkcta:hover{ color: var(--cream); border-bottom-color: var(--cream); }

/* =================== NAV =================== */
.site-nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,251,242,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke-1);
}
.site-nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: var(--sp-7);
}
.brand{
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
}
.brand-mark{
  width: 30px; height: 30px;
  flex-shrink: 0;
}
.brand-word{
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.005em;
  line-height: 1.05;
  color: var(--navy);
}
.brand-word small{
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 4px;
  white-space: nowrap;
}
/* ===== Nav-specific compact brand lockup ===== */
.brand--nav{ gap: 10px; }
.brand--nav .brand-mark{ width: 26px; height: 26px; }
.brand-word--nav{
  font-size: 16px;
  line-height: 1.05;
  white-space: nowrap;
  display: flex; flex-direction: column; gap: 2px;
}
.brand-word--nav .bw-line{ white-space: nowrap; }
.brand-word--nav .bw-soft{ color: var(--fg-3, #8a8a86); margin: 0 1px; font-style: normal; }
.brand-word--nav small{
  font-size: 8.5px;
  letter-spacing: 0.24em;
  margin-top: 1px;
  white-space: nowrap;
}
@media (max-width: 1080px){
  .brand-word--nav{ font-size: 15px; }
  .brand-word--nav small{ display: none; }
}
@media (max-width: 720px){
  .brand-word--nav .bw-line{ font-size: 14px; }
  .brand--nav .brand-mark{ width: 22px; height: 22px; }
}
.nav-links{
  display: flex; gap: var(--sp-7); align-items: center;
  list-style: none; margin: 0 auto 0 0; padding: 0;
}
.nav-links a{
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ border-bottom-color: var(--navy); }
.nav-cta{
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--navy);
  color: var(--cream);
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover{ background: #0A2530; }

@media (max-width: 880px){
  .nav-links{ display: none; }
  .site-nav-inner{ height: 64px; }
}

/* =================== HERO =================== */
.hero{
  padding: clamp(72px, 10vw, 128px) 0 clamp(72px, 10vw, 128px);
  position: relative;
  overflow: hidden;
}
.hero.is-light{ background: var(--cream); color: var(--navy); }
.hero.is-navy{
  background: var(--navy); color: var(--cream);
}
.hero.is-navy::before{
  content:""; position: absolute; inset: 0;
  background-image: url("assets/header-navy.png");
  background-size: cover; background-position: center;
  opacity: 0.55;
  pointer-events: none;
}
.hero > .shell{ position: relative; z-index: 1; }
.hero-inner{ max-width: 880px; }
.hero h1{ margin-bottom: var(--sp-5); }
.hero.is-navy h1{ color: var(--cream); }
.hero h1 em{ font-style: italic; color: var(--navy); }
.hero.is-navy h1 em{ color: var(--light-blue); }
.hero .lede{ margin-bottom: var(--sp-7); max-width: 56ch; }
.hero.is-navy .lede{ color: var(--fg-inv-2); }
.hero-ctas{ display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.hero-microcopy{
  margin-top: var(--sp-4);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-3);
  max-width: 56ch;
  line-height: 1.6;
}
.hero.is-navy .hero-microcopy{ color: rgba(255,251,242,0.55); }

.hero-eyebrow{ margin-bottom: var(--sp-5); }

/* =================== SECTIONS =================== */
section{
  padding: clamp(72px, 9vw, 128px) 0;
}
.surface-cream{ background: var(--cream); }
.surface-sand{ background: var(--sand); }
.surface-sand-soft{ background: var(--sand-2); }
.surface-deep{ background: var(--navy); color: var(--cream); }

/* Section rhythm — hairline rule between adjacent sections of similar tone */
section + section{ position: relative; }
.surface-cream + .surface-cream::before,
.surface-sand-soft + .surface-sand-soft::before,
.surface-cream + .surface-sand-soft::before,
.surface-sand-soft + .surface-cream::before{
  content: ""; position: absolute; left: 5%; right: 5%; top: 0; height: 1px;
  background: rgba(18,53,65,0.10);
}
/* A subtle inset shadow on sand surfaces makes the depth read */
.surface-sand-soft, .surface-sand{
  box-shadow: inset 0 1px 0 rgba(18,53,65,0.06), inset 0 -1px 0 rgba(18,53,65,0.06);
}
.surface-deep h1, .surface-deep h2, .surface-deep h3, .surface-deep h4{ color: var(--cream); }
.surface-deep p{ color: var(--fg-inv-2); }

.section-head{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: end;
  margin-bottom: var(--sp-9);
}
.section-head .right{ padding-top: 12px; }
.section-head h2{ margin-bottom: var(--sp-4); }
.section-head .lede{ margin: 0; }
@media (max-width: 880px){
  .section-head{ grid-template-columns: 1fr; gap: var(--sp-5); margin-bottom: var(--sp-7); }
}

/* --- Trust strip (compliance badges) --- */
.trust{
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--stroke-1);
  border-bottom: 1px solid var(--stroke-1);
  background: var(--cream);
}
.trust.hidden{ display: none; }
.trust-row{
  display: grid; grid-template-columns: auto 1fr;
  gap: var(--sp-7); align-items: center;
}
.trust-row .lbl{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
  white-space: nowrap;
}
.trust-badges{
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-7);
  align-items: center;
}
.trust-badge{
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.trust-badge .icon{
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.trust-badge .icon svg{
  width: 100%; height: 100%; stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 720px){
  .trust-row{ grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* --- Problem section (two-column quiet) --- */
.problem-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: start;
}
.problem-grid p{
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-1);
  max-width: 48ch;
}
@media (max-width: 880px){ .problem-grid{ grid-template-columns: 1fr; gap: var(--sp-6); } }

/* --- Solutions: 4-grid (default) --- */
.solutions-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.solution-card{
  background: var(--sand);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex; flex-direction: column; gap: var(--sp-4);
  transition: transform .3s var(--ease);
}
.solution-card:hover{ transform: translateY(-2px); }
.solution-card .icon{
  width: 36px; height: 36px;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}
.solution-card .icon svg{ width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.solution-card h3{
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
}
.solution-card p{
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-1);
  margin: 0;
  flex: 1;
}
.solution-card .linkcta{
  margin-top: var(--sp-3);
  font-size: 13px;
  border-bottom: 1px solid var(--stroke-2);
  align-self: flex-start;
}

/* Editorial layout (tweak variant) */
.solutions-grid.is-editorial{
  grid-template-columns: 1fr;
  gap: 0;
}
.solutions-grid.is-editorial .solution-card{
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--stroke-1);
  padding: var(--sp-7) 0 var(--sp-7);
  display: grid;
  grid-template-columns: 64px 1fr 2fr auto;
  gap: var(--sp-7);
  align-items: start;
}
.solutions-grid.is-editorial .solution-card:last-child{ border-bottom: 1px solid var(--stroke-1); }
.solutions-grid.is-editorial .solution-card .icon{ margin: 4px 0 0 0; width:32px; height:32px; }
.solutions-grid.is-editorial .solution-card h3{ font-size: 28px; }
.solutions-grid.is-editorial .solution-card .linkcta{ margin-top: 0; align-self: center; white-space: nowrap; }

@media (max-width: 1100px){
  .solutions-grid{ grid-template-columns: repeat(2, 1fr); }
  .solutions-grid.is-editorial{ grid-template-columns: 1fr; }
  .solutions-grid.is-editorial .solution-card{ grid-template-columns: 48px 1fr; row-gap: var(--sp-4); }
  .solutions-grid.is-editorial .solution-card h3{ grid-column: 1/-1; }
  .solutions-grid.is-editorial .solution-card p{ grid-column: 1/-1; }
  .solutions-grid.is-editorial .solution-card .linkcta{ grid-column: 1/-1; align-self: flex-start; }
}
@media (max-width: 600px){
  .solutions-grid{ grid-template-columns: 1fr; }
}

/* --- Foundations (managed underlay) --- */
.foundations{
  background: var(--sand-2);
  border-radius: var(--r-card);
  padding: var(--sp-7);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-7);
  align-items: start;
}
.foundations h3{
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 var(--sp-3);
}
.foundations p{
  font-size: 14.5px; line-height: 1.6; color: var(--fg-2); margin: 0;
}
.foundation-list{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.foundation-item{
  display: flex; gap: var(--sp-3); align-items: flex-start;
  border-left: 1px solid var(--stroke-1);
  padding-left: var(--sp-4);
}
.foundation-item .icon{
  width: 22px; height: 22px; color: var(--navy); flex-shrink: 0; margin-top: 2px;
}
.foundation-item .icon svg{ width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.foundation-item h4{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.foundation-item p{ font-size: 13px; line-height: 1.55; margin: 0; color: var(--fg-2); }
@media (max-width: 880px){
  .foundations{ grid-template-columns: 1fr; gap: var(--sp-5); }
  .foundation-list{ grid-template-columns: 1fr; }
  .foundation-item{ border-left: 0; border-top: 1px solid var(--stroke-1); padding-left: 0; padding-top: var(--sp-4); }
}

/* --- Industries: 3-card grid --- */
.industries-grid{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.industry-card{
  background: var(--cream);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex; flex-direction: column; gap: var(--sp-4);
  text-decoration: none;
  color: var(--navy);
  transition: border-color .2s var(--ease), transform .3s var(--ease);
  min-height: 320px;
}
.industry-card:hover{
  border-color: var(--navy);
  transform: translateY(-2px);
}
.industry-card.lead{
  background: var(--sand);
  border-color: transparent;
}
.industry-card .pill{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
}
.industry-card.lead .pill{ color: var(--bronze); }
.industry-card .pill::before{
  content:""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.industry-card h3{
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}
.industry-card p{
  font-size: 14.5px; line-height: 1.6; color: var(--fg-1); margin: 0; flex: 1;
}
.industry-card .tags{
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 400;
  color: var(--fg-2);
  border-top: 1px solid var(--stroke-1);
  padding-top: var(--sp-4);
}
.industry-card .tags span:not(:last-child)::after{
  content: "·"; margin: 0 6px; color: var(--fg-3);
}
.industry-card .linkcta{ font-size: 13px; }

@media (max-width: 1000px){ .industries-grid{ grid-template-columns: 1fr; } }

/* --- How we work (4 steps) --- */
.process{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process::before{
  content:""; position: absolute; top: 18px; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--stroke-2) 0 6px, transparent 6px 12px);
}
.surface-deep .process::before{
  background: repeating-linear-gradient(90deg, rgba(255,251,242,0.32) 0 6px, transparent 6px 12px);
}
.step{
  padding: 0 var(--sp-5) 0 0;
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.step:not(:first-child){ padding-left: var(--sp-5); border-left: 1px solid var(--stroke-1); }
.surface-deep .step:not(:first-child){ border-left-color: var(--stroke-inv); }
.step .num{
  position: relative; z-index: 2;
  background: var(--cream);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 300;
  font-size: 16px; color: var(--navy);
  font-style: italic;
}
.surface-deep .step .num{ background: var(--navy); border-color: var(--light-blue); color: var(--light-blue); }
.step h3{
  font-family: var(--serif); font-weight: 300;
  font-size: 26px; color: var(--navy); margin: 0;
  line-height: 1.15;
}
.surface-deep .step h3{ color: var(--cream); }
.step p{
  font-size: 14.5px; line-height: 1.65; color: var(--fg-2); margin: 0; max-width: 28ch;
}
.surface-deep .step p{ color: var(--fg-inv-2); }

@media (max-width: 880px){
  .process{ grid-template-columns: 1fr 1fr; }
  .process::before{ display: none; }
  .step{ padding: var(--sp-5) 0; border-top: 1px solid var(--stroke-1); }
  .surface-deep .step{ border-top-color: var(--stroke-inv); }
  .step:not(:first-child){ padding-left: 0; border-left: 0; }
}
@media (max-width: 600px){ .process{ grid-template-columns: 1fr; } }

/* --- Quote / social proof --- */
.proof{
  display: grid; grid-template-columns: 1fr 2fr;
  gap: var(--sp-9);
  align-items: start;
}
.proof .label{
  font-family: var(--sans); font-size: 11px;
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-2);
}
.proof blockquote{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 var(--sp-6);
  text-wrap: pretty;
  max-width: 26ch;
}
.proof blockquote em{ font-style: italic; color: var(--navy); }
.proof .attr{
  display: flex; align-items: center; gap: var(--sp-4);
  border-top: 1px solid var(--stroke-1);
  padding-top: var(--sp-4);
  max-width: 26ch;
}
.proof .attr .who b{
  font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--navy);
  display: block;
}
.proof .attr .who small{
  font-family: var(--sans); font-size: 12px; color: var(--fg-2);
  letter-spacing: 0.01em;
}
@media (max-width: 880px){ .proof{ grid-template-columns: 1fr; gap: var(--sp-5); } }

/* --- Photography panel --- */
.photo-panel{
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-card);
  position: relative;
  overflow: hidden;
}
.photo-panel.placeholder{
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: var(--fg-3);
  font-size: 14px;
  text-align: center;
  padding: var(--sp-5);
}

/* --- Final CTA band --- */
.finale{
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.finale h2{
  color: var(--cream);
  font-size: clamp(36px, 5vw, 60px);
  max-width: 22ch;
  margin: 0 auto var(--sp-5);
  line-height: 1.1;
}
.finale h2 em{ color: var(--light-blue); font-style: italic; }
.finale p{
  color: var(--fg-inv-2); max-width: 50ch; margin: 0 auto var(--sp-7);
  font-size: 17px; line-height: 1.6;
}
.finale .micro{
  margin-top: var(--sp-4);
  font-size: 12px; color: var(--fg-inv-3);
  letter-spacing: 0.04em;
}

/* =================== FOOTER =================== */
.site-foot{
  background: var(--navy-deep); color: var(--fg-inv-2);
  padding: 80px 0 32px;
}
.site-foot a{ color: var(--cream); text-decoration: none; }
.site-foot a:hover{ color: var(--light-blue); }
.foot-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--stroke-inv);
}
@media (max-width: 880px){ .foot-grid{ grid-template-columns: 1fr 1fr; gap: var(--sp-5);} }
.foot-brand .brand-word{ color: var(--cream); }
.foot-brand .brand-word small{ color: var(--light-blue); }
.foot-brand p{
  font-family: var(--serif); font-style: italic;
  font-size: 16px; line-height: 1.5;
  color: var(--fg-inv-2); max-width: 28ch; margin: var(--sp-5) 0 0;
}
.foot-col h5{
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-inv-3); margin: 0 0 var(--sp-4);
}
.foot-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a{ font-size: 14px; font-weight: 300; }
.foot-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-5);
  font-size: 12px; color: var(--fg-inv-3);
  letter-spacing: 0.02em;
}
.foot-bottom .legal{ display: flex; gap: var(--sp-5); }
@media (max-width: 720px){
  .foot-bottom{ flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
}

/* =================== TWEAKS =================== */
.tw-toggle{
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  padding: 12px 18px; background: var(--navy); color: var(--cream);
  border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; cursor: pointer;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
  display: none;
}
.tw-panel{
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 320px;
  background: var(--cream);
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-card);
  padding: 18px 20px 20px;
  font-family: var(--sans); color: var(--navy);
  box-shadow: 0 30px 60px -20px rgba(18,53,65,.35);
  display: none;
  max-height: 80vh; overflow-y: auto;
}
.tw-panel.open{ display: block; }
.tw-panel h6{
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-2); margin: 0 0 var(--sp-4);
  display: flex; justify-content: space-between; align-items: center;
}
.tw-panel h6 button{
  background: transparent; border: 0; color: var(--fg-2);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.tw-section{ border-top: 1px solid var(--stroke-1); padding-top: var(--sp-4); margin-top: var(--sp-4); }
.tw-section:first-of-type{ border-top: 0; padding-top: 0; margin-top: 0; }
.tw-label{
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-2); margin: 0 0 10px; font-weight: 500;
}
.tw-radios{ display: grid; gap: 6px; }
.tw-radios button{
  border: 1px solid var(--stroke-1);
  background: var(--cream);
  padding: 10px 12px;
  text-align: left;
  font-family: var(--sans); font-size: 12.5px;
  color: var(--fg-1); cursor: pointer;
  border-radius: 6px;
  font-weight: 400;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tw-radios button:hover{ border-color: var(--navy); }
.tw-radios button.on{ border-color: var(--navy); background: var(--sand); color: var(--navy); }
.tw-row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: 13px; color: var(--fg-1);
  border-top: 1px solid var(--stroke-1);
}
.tw-row:first-child{ border-top: 0; }
.tw-row .toggle{
  width: 34px; height: 20px; border-radius: 999px;
  background: var(--stroke-2); border: 0; cursor: pointer; position: relative;
  transition: background .2s var(--ease);
}
.tw-row .toggle::after{
  content:""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream);
  transition: transform .2s var(--ease);
}
.tw-row .toggle.on{ background: var(--navy); }
.tw-row .toggle.on::after{ transform: translateX(14px); }

/* =================== HELPERS =================== */
.spacer-9{ height: var(--sp-9); }
.rule{ border: 0; border-top: 1px solid var(--stroke-1); margin: var(--sp-8) 0; }
.surface-deep .rule{ border-top-color: var(--stroke-inv); }
.kicker{
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: var(--sp-3);
}

/* Anchor offset for sticky nav */
section[id]{ scroll-margin-top: 90px; }

/* ============================================================
   Section-rhythm helpers — used across pages so adjacent
   sections always have clear tonal contrast.
   ============================================================ */

/* Banded section: a `solution-detail` or `industry-detail` placed
   directly on a non-cream surface needs to drop its own border-rule
   so it doesn't double up with the section's edge. */
.surface-cream > .shell > .solution-detail,
.surface-sand-soft > .shell > .solution-detail,
.surface-deep > .shell > .solution-detail,
.surface-cream > .shell > .industry-detail,
.surface-sand-soft > .shell > .industry-detail,
.surface-deep > .shell > .industry-detail{
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* When a detail section is its OWN surface (each <section> wraps a
   single detail block), it gets its own padding from `section{}` and
   we hide the inner top-rule. */
section.solution-detail.surface-cream,
section.solution-detail.surface-sand-soft,
section.solution-detail.surface-deep,
section.industry-detail.surface-cream,
section.industry-detail.surface-sand-soft,
section.industry-detail.surface-deep{
  border-top: 0;
}

/* Solution detail on navy: lift typography to inverse */
.surface-deep.solution-detail h2,
.surface-deep.industry-detail h2,
.surface-deep .solution-detail h2,
.surface-deep .industry-detail h2{ color: var(--cream); }
.surface-deep.solution-detail .left p,
.surface-deep.industry-detail .left p,
.surface-deep .solution-detail .left p,
.surface-deep .industry-detail .left p{ color: var(--fg-inv-2) !important; }
.surface-deep.solution-detail .right p,
.surface-deep .solution-detail .right p{ color: var(--fg-inv-2); }
.surface-deep .solution-detail .left .num,
.surface-deep.solution-detail .left .num,
.surface-deep .industry-detail .left .num,
.surface-deep.industry-detail .left .num{ color: var(--bronze-light); }
.surface-deep .solution-detail h4,
.surface-deep.solution-detail h4,
.surface-deep .industry-detail h4,
.surface-deep.industry-detail h4{ color: rgba(255,251,242,0.6); }
.surface-deep .includes-list,
.surface-deep.solution-detail .includes-list{ border-top-color: var(--stroke-inv); }
.surface-deep .includes-list li,
.surface-deep.solution-detail .includes-list li{
  color: var(--cream); border-bottom-color: var(--stroke-inv);
}
.surface-deep .includes-list li::before,
.surface-deep.solution-detail .includes-list li::before{ color: var(--bronze-light); }
.surface-deep .case-snippet,
.surface-deep.solution-detail .case-snippet{
  background: rgba(255,251,242,0.06);
  color: var(--cream);
}
.surface-deep .case-snippet .case-meta,
.surface-deep.solution-detail .case-snippet .case-meta{ color: rgba(255,251,242,0.6); }
.surface-deep .industry-detail-grid .pain li,
.surface-deep.industry-detail .pain li{
  color: var(--fg-inv-2);
  border-top-color: var(--stroke-inv);
}
.surface-deep .industry-detail-grid .pain li:last-child,
.surface-deep.industry-detail .pain li:last-child{ border-bottom-color: var(--stroke-inv); }
.surface-deep .industry-detail-grid .pain li b,
.surface-deep.industry-detail .pain li b{ color: var(--cream); }
.surface-deep .outcomes .o,
.surface-deep.industry-detail .outcomes .o{
  background: rgba(255,251,242,0.06);
}
.surface-deep .outcomes .o b,
.surface-deep.industry-detail .outcomes .o b{ color: var(--cream); }
.surface-deep .outcomes .o span,
.surface-deep.industry-detail .outcomes .o span{ color: var(--fg-inv-2); }

/* Detail section on sand-soft: cards inside need to step up */
.surface-sand-soft .case-snippet{ background: var(--cream); }
.surface-sand-soft .outcomes .o{ background: var(--cream); }
.surface-sand-soft .calendly{ background: var(--cream); border-style: solid; border-color: var(--stroke-1); }
.surface-sand-soft .contact-form{ background: var(--cream); border-color: var(--stroke-1); }
.surface-sand-soft .field input,
.surface-sand-soft .field textarea,
.surface-sand-soft .field select{ background: transparent; }
.surface-sand-soft .contact-meta{ border-top-color: var(--stroke-2); }

/* Page-hero variants — give interior pages an option for a
   slightly toned hero so the next section can be cream and contrast. */
.page-hero.is-sand-soft{ background: var(--sand-2); }
.page-hero.is-sand-soft .kicker::before{ background: var(--bronze); }

/* cat-divider works on dark surfaces too */
.surface-deep .cat-divider .rule{ background: var(--stroke-inv); }
.surface-deep .cat-label .cat-name{ color: var(--cream); }
.surface-deep .cat-intro{ color: var(--fg-inv-2); }

/* Solution-detail rhythm when each section is a banded surface:
   first one no longer gets the implicit "no border" — sections
   already have their own padding, so just zero the inner rule. */
.solution-detail-band{
  border-top: 0 !important;
}

/* =================== SOLUTIONS PAGE =================== */
.page-hero{
  padding: clamp(80px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
  background: var(--cream);
}
.page-hero .lede{ margin-top: var(--sp-5); }

.anchor-nav{
  position: sticky; top: 76px; z-index: 30;
  background: rgba(255,251,242,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke-1);
  border-top: 1px solid var(--stroke-1);
  padding: 14px 0;
}
.anchor-nav-inner{
  display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-7);
  align-items: center;
}
.anchor-nav a{
  font-family: var(--sans);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.anchor-nav a:hover, .anchor-nav a.active{ color: var(--navy); border-bottom-color: var(--navy); }
.anchor-nav .index{
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3); margin-right: var(--sp-3);
}

/* solution detail block */
.solution-detail{
  padding: clamp(72px, 8vw, 112px) 0;
  border-top: 1px solid var(--stroke-1);
}
.solution-detail > .shell{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: start;
}
.solution-detail:first-of-type{ border-top: 0; }
.solution-detail .left .num{
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--bronze); margin-bottom: var(--sp-5);
}
.solution-detail h2{ font-size: clamp(32px, 3.6vw, 48px); margin-bottom: var(--sp-5); }
.solution-detail h2 em{ font-style: italic; }
.solution-detail .right p{
  font-size: 16px; line-height: 1.7;
  color: var(--fg-1);
  max-width: 56ch;
}
.solution-detail h4{
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-2);
  margin: var(--sp-6) 0 var(--sp-4);
}
.includes-list{
  list-style: none; margin: 0 0 var(--sp-6); padding: 0;
  border-top: 1px solid var(--stroke-1);
}
.includes-list li{
  font-family: var(--sans); font-weight: 400;
  font-size: 15px; line-height: 1.5;
  color: var(--navy);
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke-1);
  display: grid; grid-template-columns: 30px 1fr;
  gap: var(--sp-3);
}
.includes-list li::before{
  content: "—"; color: var(--bronze); font-family: var(--serif);
}
.case-snippet{
  background: var(--sand); border-radius: var(--r-card);
  padding: var(--sp-6);
  margin-top: var(--sp-5);
  font-family: var(--serif);
  font-style: italic; font-size: 17px; line-height: 1.5;
  color: var(--navy);
}
.case-snippet .case-meta{
  display: block; margin-top: var(--sp-3);
  font-family: var(--sans); font-style: normal; font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-2);
}
@media (max-width: 880px){ .solution-detail > .shell{ grid-template-columns: 1fr; gap: var(--sp-6); } }

/* foundations as solution-detail variant */
.solution-detail.foundations-detail{
  background: var(--sand-2);
  border-radius: var(--r-card);
  padding: var(--sp-7);
  margin: var(--sp-7) 0;
  border-top: 0;
}
.solution-detail.foundations-detail h2{ font-size: 32px; }

/* =================== INDUSTRIES PAGE =================== */
.industry-detail{
  padding: clamp(72px, 8vw, 112px) 0;
  border-top: 1px solid var(--stroke-1);
}
.industry-detail:first-of-type{ border-top: 0; }
.industry-detail.lead{ padding-top: clamp(56px, 6vw, 88px); }
.industry-detail-grid{
  display: grid; grid-template-columns: 1fr 2fr;
  gap: var(--sp-9);
  align-items: start;
}
.industry-detail-grid .left .num{
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--bronze); margin-bottom: var(--sp-5);
}
.industry-detail-grid .left h2{ margin-bottom: var(--sp-5); }
.industry-detail-grid .left p{
  font-size: 15px; line-height: 1.7; color: var(--fg-2); max-width: 32ch;
}
.industry-detail-grid .right h4{
  font-family: var(--sans); font-weight: 500; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2);
  margin: 0 0 var(--sp-4);
}
.industry-detail-grid .right h4:not(:first-child){ margin-top: var(--sp-7); }
.industry-detail-grid .pain{
  list-style: none; margin: 0; padding: 0;
}
.industry-detail-grid .pain li{
  border-top: 1px solid var(--stroke-1);
  padding: var(--sp-4) 0;
  font-size: 15px; line-height: 1.55; color: var(--fg-1);
}
.industry-detail-grid .pain li:last-child{ border-bottom: 1px solid var(--stroke-1); }
.industry-detail-grid .pain li b{
  display: block; font-family: var(--sans); font-weight: 500;
  font-size: 13px; color: var(--navy); letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.outcomes{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.outcomes .o{
  background: var(--sand); border-radius: var(--r-card);
  padding: var(--sp-5);
}
.outcomes .o b{
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 26px; color: var(--navy); display: block; margin-bottom: var(--sp-2);
}
.outcomes .o span{ font-size: 13px; color: var(--fg-1); line-height: 1.5; }
@media (max-width: 880px){
  .industry-detail-grid{ grid-template-columns: 1fr; gap: var(--sp-6); }
  .outcomes{ grid-template-columns: 1fr; }
}

/* =================== CONTACT PAGE =================== */
.contact-grid{
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-9);
  align-items: start;
}
.contact-left h1{ margin-bottom: var(--sp-5); }
.contact-left .calendly{
  background: var(--sand);
  border: 1px dashed var(--stroke-2);
  border-radius: var(--r-card);
  padding: var(--sp-7);
  margin: var(--sp-7) 0 var(--sp-6);
  text-align: center;
  min-height: 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4);
}
.contact-left .calendly .label{
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2);
}
.contact-left .calendly h3{
  font-family: var(--serif); font-weight: 300; font-size: 26px;
  color: var(--navy); margin: 0; max-width: 22ch;
}
.contact-left .calendly p{ font-size: 14px; color: var(--fg-2); margin: 0; max-width: 32ch; }
.contact-direct{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
.contact-direct .item .label{
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2);
  margin-bottom: 6px;
}
.contact-direct .item .val{
  font-family: var(--serif); font-weight: 300; font-size: 22px;
  color: var(--navy); letter-spacing: 0.005em;
}

.contact-form{
  background: var(--cream);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-card);
  padding: var(--sp-7);
  display: grid; gap: var(--sp-5);
}
.contact-form h3{
  font-family: var(--serif); font-weight: 300; font-size: 26px;
  color: var(--navy); margin: 0 0 var(--sp-2);
}
.contact-form > p{ color: var(--fg-2); font-size: 14px; margin: 0; }
.contact-form .row{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field label{
  display: block;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: 6px;
}
.field input, .field textarea, .field select{
  width: 100%; box-sizing: border-box;
  font-family: var(--sans); font-size: 16px; font-weight: 300;
  color: var(--navy);
  background: transparent; border: 0;
  border-bottom: 1px solid var(--stroke-2);
  padding: 10px 0; outline: none;
  border-radius: 0;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus{ border-bottom-color: var(--navy); }
.field textarea{ resize: vertical; min-height: 100px; }
.contact-form .submit{ display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.contact-form .submit small{
  font-family: var(--sans); font-size: 12px; color: var(--fg-2);
}

.contact-meta{
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--stroke-1);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7);
}
.contact-meta .item .label{
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2);
  margin-bottom: 6px;
}
.contact-meta .item .val{
  font-family: var(--sans); font-size: 14px; color: var(--navy); line-height: 1.6;
}
@media (max-width: 880px){
  .contact-grid{ grid-template-columns: 1fr; gap: var(--sp-6); }
  .contact-form .row{ grid-template-columns: 1fr; }
  .contact-direct{ grid-template-columns: 1fr; }
  .contact-meta{ grid-template-columns: 1fr; gap: var(--sp-5); }
}


/* ============================================================
   v3 — IA pivot: Core services lead, additional capabilities
   Refined bronze-accent application per SCN guide
   ============================================================ */

/* Bronze hairline accent — used sparingly to mark "premium" surfaces.
   The brand spec calls bronze a foil-feel accent: thin, deliberate,
   never on body type. */
:root{
  --bronze-soft: rgba(154,106,62,0.18);
  --bronze-rule: rgba(154,106,62,0.55);
  --bronze-light: #C39468;
}

/* Lift the kicker on cream + sand-soft surfaces so the rule reads bronze.
   On navy / sand (warm) it stays neutral. */
.surface-cream .kicker::before,
.page-hero .kicker::before {
  background: var(--bronze);
}
.kicker{
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--fg-2);
}
.kicker::before{
  content: ""; width: 22px; height: 1px; background: var(--navy);
  display: inline-block;
}

/* ============ HERO — bronze hairline rule under hero ============ */
.hero{ position: relative; }
.hero::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background:
    linear-gradient(90deg,
      transparent 0%,
      var(--bronze-rule) 12%,
      var(--bronze-rule) 88%,
      transparent 100%);
  opacity: 0.7;
}

/* ============ SERVICES (CORE) — lead service cards ============ */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.service-card{
  background: var(--cream);
  border: 1px solid var(--stroke-1);
  border-top: 2px solid var(--bronze);
  border-radius: var(--r-card);
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(18,53,65,0.08), 0 2px 6px rgba(18,53,65,0.04);
}
.service-card .service-num{
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--bronze);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-5);
}
.service-card .icon{
  width: 36px; height: 36px;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}
.service-card .icon svg{
  width: 100%; height: 100%; stroke: currentColor; fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3{
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 var(--sp-3);
}
.service-card > p{
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 var(--sp-5);
}
.service-bullets{
  list-style: none; padding: 0; margin: 0 0 var(--sp-5);
  border-top: 1px solid var(--stroke-1);
  padding-top: var(--sp-4);
  flex: 1;
}
.service-bullets li{
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-1);
  padding: 6px 0 6px 18px;
  position: relative;
}
.service-bullets li::before{
  content: "—";
  color: var(--bronze);
  position: absolute; left: 0; top: 6px;
  font-family: var(--serif);
}
.service-card .linkcta{ align-self: flex-start; font-size: 13px; }

/* ============ ADDITIONAL CAPABILITIES — quieter, smaller cards ============ */
.caps-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.cap-card{
  background: var(--sand-2);
  border: 1px solid transparent;
  border-radius: var(--r-card);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .2s var(--ease);
}
.cap-card:hover{
  transform: translateY(-2px);
  border-color: var(--bronze-soft);
}
.cap-card .icon{
  width: 30px; height: 30px;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}
.cap-card .icon svg{
  width: 100%; height: 100%; stroke: currentColor; fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.cap-card h3{
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.22;
  color: var(--navy);
  margin: 0 0 var(--sp-3);
}
.cap-card > p{
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 var(--sp-4);
  flex: 1;
}
.cap-card .linkcta{ align-self: flex-start; font-size: 12.5px; }

/* Editorial layout variant for cap-grid (Tweaks panel toggle) */
.caps-grid.is-editorial{
  grid-template-columns: 1fr;
  gap: 0;
}
.caps-grid.is-editorial .cap-card{
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--stroke-1);
  border-bottom: none;
  padding: var(--sp-6) 0;
  display: grid;
  grid-template-columns: 60px minmax(0, 1.4fr) 2fr auto;
  gap: var(--sp-6);
  align-items: start;
}
.caps-grid.is-editorial .cap-card:last-child{ border-bottom: 1px solid var(--stroke-1); }
.caps-grid.is-editorial .cap-card .icon{ margin: 4px 0 0; width: 28px; height: 28px; }
.caps-grid.is-editorial .cap-card h3{ font-size: 24px; margin: 0; }
.caps-grid.is-editorial .cap-card > p{ margin: 4px 0 0; }
.caps-grid.is-editorial .cap-card .linkcta{ align-self: center; white-space: nowrap; }

@media (max-width: 1100px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .caps-grid{ grid-template-columns: repeat(2, 1fr); }
  .caps-grid.is-editorial{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .services-grid{ grid-template-columns: 1fr; }
  .caps-grid.is-editorial .cap-card{ grid-template-columns: 40px 1fr; row-gap: var(--sp-3); }
  .caps-grid.is-editorial .cap-card h3{ grid-column: 1 / -1; }
  .caps-grid.is-editorial .cap-card > p{ grid-column: 1 / -1; }
  .caps-grid.is-editorial .cap-card .linkcta{ grid-column: 1 / -1; align-self: flex-start; }
}
@media (max-width: 640px){
  .caps-grid{ grid-template-columns: 1fr; }
}

/* ============ Solutions page: category divider ============ */
.cat-divider{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-5);
  align-items: center;
  margin: var(--sp-9) 0 var(--sp-6);
}
.cat-divider .rule{
  height: 1px; background: var(--stroke-1); border: 0; margin: 0;
}
.cat-label{
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.cat-label .cat-num{
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--bronze); letter-spacing: 0.04em;
}
.cat-label .cat-name{
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--navy);
}
.cat-intro{
  text-align: center; max-width: 56ch; margin: 0 auto var(--sp-7);
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--fg-2);
}

/* ============ Solutions page: lead variant for core services ============ */
.solution-detail.core .left .num{
  color: var(--bronze);
}
.solution-detail.core{
  position: relative;
}

/* anchor-nav divider chip */
.anchor-divider{
  color: var(--bronze);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  opacity: 0.7;
}

/* Section heads — lift the kicker bronze on light surfaces ============ */
.surface-cream .section-head .kicker,
.surface-sand-soft .section-head .kicker{
  color: var(--bronze);
  font-weight: 500;
}
.surface-cream .section-head .kicker::before,
.surface-sand-soft .section-head .kicker::before{
  background: var(--bronze);
}

/* Same treatment on navy — bronze-light reads warmly against navy */
.surface-deep .section-head .kicker,
.finale .kicker{
  color: var(--bronze-light);
  font-weight: 500;
}
.surface-deep .section-head .kicker::before,
.finale .kicker::before{
  background: var(--bronze-light);
}

/* Page-hero kicker too */
.page-hero .kicker{
  color: var(--bronze);
  font-weight: 500;
}
.page-hero .kicker::before{ background: var(--bronze); }

/* ============ Finale: subtle bronze top hairline on the navy band ============ */
.finale{ position: relative; }
.finale::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background:
    linear-gradient(90deg,
      transparent 0%,
      var(--bronze) 20%,
      var(--bronze) 80%,
      transparent 100%);
  opacity: 0.85;
}


/* ============================================================
   v4 — Button + link contrast on navy surfaces
   Hero (is-navy) and Finale share the navy treatment;
   primary CTA flips to sand-on-navy, secondary linkcta goes cream.
   ============================================================ */

/* Primary CTA — navy fill is invisible on navy. Flip to sand. */
.hero.is-navy .btn-primary,
.finale .btn-primary,
.surface-deep .btn-primary{
  background: var(--sand);
  color: var(--navy);
  border-color: var(--sand);
}
.hero.is-navy .btn-primary:hover,
.finale .btn-primary:hover,
.surface-deep .btn-primary:hover{
  background: var(--cream);
  border-color: var(--cream);
}

/* Outline button — navy stroke disappears on navy. Use cream stroke. */
.hero.is-navy .btn-outline,
.finale .btn-outline,
.surface-deep .btn-outline{
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 251, 242, 0.45);
}
.hero.is-navy .btn-outline:hover,
.finale .btn-outline:hover,
.surface-deep .btn-outline:hover{
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

/* Secondary text link — needs cream + bronze on navy */
.hero.is-navy .linkcta,
.finale .linkcta{
  color: var(--cream);
  border-bottom-color: rgba(255, 251, 242, 0.4);
}
.hero.is-navy .linkcta:hover,
.finale .linkcta:hover{
  color: var(--bronze-light);
  border-bottom-color: var(--bronze-light);
}

/* Hero italic accent on navy — bronze-light reads better than navy */
.hero.is-navy h1 em{
  color: var(--bronze-light, #C39468);
}


/* ============================================================
   v5 — Parent group lockup
   "Part of the Sovereign Family Offices group" — placed in the
   footer between the link grid and the legal line. Bronze accent
   + thin rules per parent brand spec.
   ============================================================ */

.parent-lockup{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-6);
  margin: var(--sp-8) 0 var(--sp-6);
}
.parent-rule{
  height: 1px;
  background: rgba(255, 251, 242, 0.18);
}
.parent-meta{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.parent-eyebrow{
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.55);
}
.parent-name{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--bronze-light) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(195, 148, 104, 0.35);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.parent-name:hover{
  color: #E0B488 !important;
  border-bottom-color: #E0B488;
}
@media (max-width: 720px){
  .parent-lockup{ grid-template-columns: 1fr; gap: var(--sp-4); }
  .parent-rule{ display: none; }
  .parent-meta{ gap: 8px; }
  .parent-name{ font-size: 19px; }
}


/* ============================================================
   Parent context section (About page)
   "Part of Sovereign Family Offices" — confident, not subordinating.
   ============================================================ */

.parent-context{
  padding: clamp(72px, 9vw, 128px) 0;
  border-top: 1px solid var(--stroke-1);
}
.parent-context-grid{
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.parent-context-grid .left h2{
  font-size: clamp(36px, 4vw, 56px);
  margin: 0;
  text-wrap: balance;
}
.parent-context-grid .right p{
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 60ch;
  margin: 0 0 var(--sp-5);
}
.parent-context-grid .right p:first-of-type{ color: var(--navy); font-size: 18px; }

.group-siblings{
  list-style: none;
  padding: 0;
  margin: var(--sp-7) 0 var(--sp-6);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--stroke-1);
}
.group-siblings li{
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--stroke-1);
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: var(--sp-6);
  align-items: baseline;
}
.group-siblings .sib-name{
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.005em;
}
.group-siblings .sib-role{
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
}
.parent-context-grid .micro-note{ margin-top: var(--sp-5); }

@media (max-width: 880px){
  .parent-context-grid{ grid-template-columns: 1fr; gap: var(--sp-6); }
  .group-siblings li{ grid-template-columns: 1fr; gap: 6px; }
}
