/* Istari Group: shared site styles (brand v2 tokens from the live homepage). */
:root {
  --charcoal: #0F1F2A;
  --charcoal-2: #16293a;
  --ink: #0F1F2A;
  --gray: #6B7A8C;
  --muted: #93A2B1;
  --green: #00E6A8;
  --green-deep: #00C896;
  --mint: #D3F8EC;
  --mint-pill: #A9F5D8;
  --mint-soft: #ECFBF6;
  --silver: #F1F5F8;
  --border: #E5EBF0;
  --badge: #0B7A46;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--ink); line-height: 1.6; }
h1,h2,h3,h4,.mn { font-family: 'Manrope', sans-serif; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 1.1rem; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------- icons ---------------- */
.ic { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; background: var(--mint-soft); border: 1.5px solid var(--mint); display: flex; align-items: center; justify-content: center; }
.ic svg { width: 23px; height: 23px; stroke: var(--green-deep); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark .arr { color: var(--green); }
.btn-dark:hover { box-shadow: 0 12px 26px rgba(34,42,50,0.25); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid #D9DEE2; }
.btn-outline .arr { color: var(--green-deep); }
.btn-outline:hover { border-color: var(--green); }
.btn-mint { background: var(--mint-pill); color: #113526; }
.btn-mint .arr { color: #113526; }
.btn-mint:hover { box-shadow: 0 10px 24px rgba(0,201,101,0.28); }

/* ---------------- nav ---------------- */
header { position: sticky; top: 0; z-index: 50; background: var(--charcoal); }
.nav { display: flex; align-items: center; gap: 2.2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand svg { height: 42px; width: auto; }
.brand .mn { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.22em; color: #fff; line-height: 1.15; }
.brand .mn small { display: block; font-weight: 600; font-size: 0.6em; letter-spacing: 0.42em; color: #AEB7BE; }
.links { display: flex; gap: 2rem; }
.links a { color: #E8ECEF; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.links a:hover, .links a[aria-current="page"] { color: var(--green); }
header .btn { padding: 0.65rem 1.4rem; }
.menu-btn { display: none; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--charcoal); border-top: 1px solid rgba(255,255,255,0.08); box-shadow: 0 24px 40px rgba(10,20,28,0.35); }
.mobile-menu[hidden] { display: none; }
.mobile-menu .wrap { display: grid; padding-top: 0.4rem; padding-bottom: 1.3rem; }
.mobile-menu .wrap > a { color: #E8ECEF; text-decoration: none; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1.08rem; padding: 0.95rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu .wrap > a[aria-current="page"], .mobile-menu .wrap > a:hover { color: var(--green); }
.menu-contact { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; padding-top: 1rem; }
.menu-contact a { color: #AEB7BE; text-decoration: none; font-size: 0.92rem; }
.hv-mobile { display: none; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(214,220,226,0.35) 28%, rgba(255,255,255,0) 46%, rgba(210,217,223,0.28) 68%, rgba(255,255,255,0) 88%),
    linear-gradient(180deg, #F4F6F8 0%, #EFF2F4 100%);
  padding: 4.5rem 0 4.5rem;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 3.4vw, 2.95rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero h1 .line-inner { display: inline-block; will-change: transform; }
.hero .sub { font-size: 1.13rem; color: var(--gray); margin: 1.4rem 0 2.2rem; max-width: 34rem; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .wrap { position: relative; z-index: 1; }
.hero-visual { position: relative; min-height: 560px; display: flex; align-items: center; }
.hv-photo {
  position: absolute; right: 0; top: 0; height: 100%; width: min(46vw, 900px);
  object-fit: cover; opacity: 0.94;
  filter: saturate(0.85) brightness(1.05) contrast(0.95);
  -webkit-mask-image: linear-gradient(97deg, transparent 2%, #000 55%);
  mask-image: linear-gradient(97deg, transparent 2%, #000 55%);
}
.hv-rune { position: absolute; left: 6%; top: -6%; height: 88%; opacity: 0.35; }
.hv-words { position: absolute; right: 0; top: 3%; text-align: right; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.42em; color: #A7B0B8; text-transform: uppercase; line-height: 2.1; }

/* ---------------- transformation diagram ---------------- */
/* Business lines flow through Istari into one modern finance function. */
.flow-wrap { position: relative; z-index: 1; width: 100%; }
.has-words .flow-wrap { margin-top: 4.2rem; }
.flow {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 54px 62px 22px minmax(0, 1.12fr);
  align-items: center;
}
.flow-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.7rem; }
.flow-src { display: grid; gap: 14px; }
.src {
  display: flex; align-items: center; gap: 0.7rem; height: 62px;
  background: #fff; border-radius: 14px; padding: 0 0.9rem;
  box-shadow: 0 12px 30px rgba(23,28,33,0.08);
  font-weight: 500; font-size: 0.88rem; line-height: 1.25;
}
.src .ic { width: 36px; height: 36px; }
.src .ic svg { width: 18px; height: 18px; }
.flow-lines { width: 100%; height: 290px; align-self: center; overflow: visible; }  /* = 4 x 62px chips + 3 x 14px gaps */
.flow-lines path { fill: none; stroke: var(--green-deep); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: 0.75; }
.flow-hub {
  width: 62px; height: 62px; border-radius: 50%; background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 9px rgba(0,230,168,0.16);
}
.flow-hub svg { width: 34px; height: 34px; }
.flow-link { height: 2px; background: var(--green-deep); }
.result { background: #fff; border-radius: 18px; padding: 1.35rem 1.35rem 1.25rem; box-shadow: 0 24px 60px rgba(23,28,33,0.12); }
.result .lbl { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.result h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.25; margin: 0.35rem 0 0.95rem; }
.result ul { list-style: none; display: grid; gap: 0.75rem; }
.result li { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; font-size: 0.9rem; line-height: 1.3; }
.result li .ic { width: 34px; height: 34px; }
.result li .ic svg { width: 17px; height: 17px; }

/* ---------------- feature strip ---------------- */
.strip { background: #fff; border-bottom: 1px solid var(--border); padding: 2.6rem 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feat { display: flex; flex-direction: column; gap: 0.9rem; padding: 0.3rem 2rem; border-left: 1px solid var(--border); }
.feat:first-child { border-left: none; padding-left: 0; }
.feat:last-child { padding-right: 0; }
.feat .ic { width: 52px; height: 52px; }
.feat h4 { font-size: 0.98rem; font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.feat p { font-size: 0.84rem; color: var(--gray); line-height: 1.5; margin-top: -0.35rem; }

section { padding: 5.5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 0.7rem; }
.section-head p { color: var(--gray); }
.silver { background: var(--silver); }

/* ---------------- solution cards ---------------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card { background: #fff; border-radius: 18px; padding: 2.3rem 2.1rem; box-shadow: 0 14px 36px rgba(23,28,33,0.06); transition: transform .4s cubic-bezier(0.22,1,0.36,1), box-shadow .4s ease; }
.cards:has(.card:hover) .card:not(:hover) { transform: translateY(6px); }
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(23,28,33,0.10); }
.badge { display: inline-block; background: var(--mint); color: var(--badge); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1.05rem; }
.card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.65rem; }
.card p { color: var(--gray); margin-bottom: 1.3rem; }
.ticks { list-style: none; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem; font-weight: 500; font-size: 0.96rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.85em; height: 0.5em; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.more { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.93rem; color: var(--green-deep); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------------- principle band ---------------- */
.band { background: #fff; text-align: center; padding: 4.8rem 0; }
.band blockquote { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: clamp(1.35rem, 2.9vw, 2rem); max-width: 48rem; margin: 0 auto 1rem; line-height: 1.3; letter-spacing: -0.01em; }
.band blockquote em { font-style: normal; color: var(--green); }
.band .attribution { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }

/* ---------------- how it works ---------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.step { position: relative; padding-top: 1.5rem; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: -1.2rem; height: 2px; background: #DDE2E6; transform: scaleX(var(--ls, 1)); transform-origin: left center; }
.step:last-child::before { right: 0; }
.step .num { position: absolute; top: -0.55rem; left: 0; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--green); }
.step h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--gray); }

/* ---------------- service menu ---------------- */
.menu-group + .menu-group { margin-top: 2.6rem; }
.group-label { display: inline-block; background: var(--charcoal); color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.7rem 1.6rem; transition: transform .3s ease, box-shadow .3s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(23,28,33,0.08); }
.svc .ic { margin-bottom: 1.05rem; }
.svc h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.45rem; line-height: 1.35; }
.svc p { color: var(--gray); font-size: 0.93rem; }
.svc { position: relative; }
.svc .tag { position: absolute; top: 1.9rem; right: 1.6rem; margin: 0; background: var(--mint); color: var(--badge); font-family: 'Inter', sans-serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; }
.svc ul { list-style: none; margin-top: 0.9rem; }
.svc li { position: relative; padding-left: 1.2rem; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--ink); }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--green-deep); }
.menu-note { margin-top: 1.6rem; color: var(--gray); font-size: 0.93rem; }

/* ---------------- brokerage band ---------------- */
.promo { background: var(--mint-soft); border-top: 1px solid var(--mint); border-bottom: 1px solid var(--mint); padding: 3.6rem 0; }
.promo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.promo h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; max-width: 44rem; }
.promo p { color: var(--gray); margin-top: 0.5rem; max-width: 44rem; }

/* ---------------- comparison ---------------- */
.compare { overflow-x: auto; background: #fff; border-radius: 18px; padding: 0.5rem 1rem; box-shadow: 0 14px 36px rgba(23,28,33,0.06); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 0.95rem; }
.compare tr:last-child td { border-bottom: none; }
.compare th { font-family: 'Manrope', sans-serif; font-weight: 600; }
.compare th.istari { background: var(--mint); border-radius: 12px 12px 0 0; color: var(--badge); }
.compare td.istari { background: var(--mint-soft); font-weight: 500; }
.compare td:first-child { font-weight: 600; white-space: nowrap; }
.compare td { color: var(--gray); }

/* ---------------- case study table ---------------- */
.case { display: grid; gap: 0.9rem; }
.case-head, .case-row { display: grid; grid-template-columns: 1fr 1.12fr; gap: 1.2rem; }
.case-head div { background: var(--charcoal); color: var(--green); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.95rem 1.4rem; border-radius: 12px; }
.case .work { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem 1.4rem; }
.case .work .badge { margin-bottom: 0.7rem; background: #fff; color: var(--gray); border: 1px solid #D9DEE2; }
.case .work p { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.case .outcomes { display: grid; gap: 0.6rem; align-content: center; }
.case .outcomes div { display: flex; gap: 0.75rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0.95rem 1.2rem; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.98rem; line-height: 1.4; }
.case .outcomes div::before { content: ""; flex: 0 0 auto; width: 0.8em; height: 0.45em; margin-top: 0.4em; border-left: 2.5px solid var(--green-deep); border-bottom: 2.5px solid var(--green-deep); transform: rotate(-45deg); }
.case .primary .work { border: none; box-shadow: 0 14px 36px rgba(23,28,33,0.07); }
.case .primary .work .badge { background: var(--mint); color: var(--badge); border-color: var(--mint); }
.case .primary .work p { font-size: 1.2rem; }
.case .primary .outcomes div { background: var(--mint-soft); border-color: var(--mint); font-size: 1.05rem; }
.fine-print { margin-top: 1.2rem; color: var(--muted); font-size: 0.82rem; }

/* ---------------- people ---------------- */
.person { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.portrait { width: 100%; max-width: 420px; aspect-ratio: 557 / 702; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 60px rgba(23,28,33,0.12); }
.person .creds { font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.08em; color: var(--badge); margin: 0.2rem 0 1.2rem; }
.person p.bio { color: var(--gray); font-size: 1.05rem; margin-bottom: 1.2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.two-col h4 { font-family: 'Inter', sans-serif; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 0.9rem; }
.prose { max-width: 46rem; }
.prose p { color: var(--gray); font-size: 1.05rem; margin-bottom: 1.1rem; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-deep); font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--gray); margin-top: 0.6rem; }

/* ---------------- CTA ---------------- */
.cta-final { background: var(--charcoal); color: #fff; text-align: center; padding: 5rem 0; }
.cta-final h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 600; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.cta-final h2 em { font-style: normal; color: var(--green); }
.cta-final p { max-width: 36rem; margin: 0 auto 1.9rem; color: #B8C0C7; font-size: 1.05rem; }
.cta-final .contact-line { max-width: none; margin: 1.6rem auto 0; color: #B8C0C7; font-size: 0.95rem; display: flex; gap: 0.6rem 1.6rem; justify-content: center; flex-wrap: wrap; }
.contact-line a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.contact-line a:hover { color: var(--green); border-color: var(--green); }

/* ---------------- footer ---------------- */
footer { background: #fff; border-top: 1px solid var(--border); padding: 2.6rem 0; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.foot .brand { margin-right: 0; }
.foot .brand .mn { color: var(--ink); }
.foot .brand .mn small { color: var(--muted); }
.foot .brand svg { height: 34px; }
.foot-links { display: flex; gap: 0.5rem 1.4rem; flex-wrap: wrap; }
.foot-links a { color: var(--gray); text-decoration: none; font-size: 0.88rem; }
.foot-links a:hover { color: var(--green-deep); }
.foot .fine { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 980px) {
  .links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { gap: 0.9rem; }
  .hv-photo, .hv-rune, .hv-words { display: none; }
  .hv-mobile { display: block; width: 100%; height: 200px; object-fit: cover; object-position: center 45%; border-radius: 18px; margin-bottom: 1.6rem; box-shadow: 0 18px 44px rgba(23,28,33,0.14); }
  .hero-grid, .person { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 1rem; padding: 1.5rem 0; display: block; }
  .has-words .flow-wrap { margin-top: 0; }
  .strip .wrap, .cards, .steps, .svc-grid, .two-col { grid-template-columns: 1fr; }
  .feat { border-left: none; padding: 0.6rem 0; }
  .steps { gap: 2rem; }
  .step::before { right: 0; }
  .case-head { display: none; }
  .case-row { grid-template-columns: 1fr; gap: 0.6rem; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow-src { grid-template-columns: 1fr 1fr; gap: 10px; }
  .flow-lines, .flow-link { display: none; }
  .flow-hub { justify-self: center; }
  .src { height: auto; min-height: 56px; padding: 0.6rem 0.7rem; font-size: 0.82rem; }
  .hv-words { display: none; }
  header .btn { padding: 0.55rem 0.95rem; font-size: 0.88rem; gap: 0.4rem; }
  .nav { height: 68px; gap: 0.6rem; }
  .brand svg { height: 34px; }
  .brand .mn { font-size: 0.92rem; letter-spacing: 0.18em; }
  .hero { padding: 3rem 0 3.5rem; }
}
@media (max-width: 360px) {
  header .btn-mint { display: none; }
}
