/* Investment & Portfolio Management: "Built around your goals, horizon and risk".
   Language: instrument panel (dials, ring charts, gauge ticks).
   Sections: dark hero dial -> pinned interactive donut (sand) -> three overlapping circles (deep green)
   -> marquee statement (white) -> arch cards (mint) -> FAQ with drawing gauge (ink) -> CTA -> services list + next.
   Page-local ambient motion is switched off under prefers-reduced-motion. */

.im-hero, .im-pick, .im-three, .im-stmt, .im-who, .im-faq, .im-cta, .im-more {
  --c0: #7BDC86; --c1: #00844E; --c2: #F6F8F6; --c3: #36B448; --c4: #B9AD94;
}
.im-three, .im-who, .im-faq, .im-cta, .im-more { padding-block: clamp(72px, 8.6vw, 136px); }

/* ---------- 1. Hero: dark, centred, dial ---------- */
.im-hero.hero-under { padding: calc(var(--nav-h) + 28px) 0 clamp(48px, 5vw, 80px); text-align: center; overflow: hidden; }
.im-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 46% at 50% 78%, rgba(54,180,72,.2), transparent 72%),
              radial-gradient(40% 30% at 50% 0%, rgba(0,132,78,.16), transparent 70%);
}
.im-hero__in { position: relative; z-index: 1; }
.im-hero .crumbs { justify-content: center; margin-bottom: 16px; }
.im-hero .tag { margin-bottom: 18px; }
.im-hero__h1 { margin: 0 auto; max-width: 14em; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; color: var(--on-dark); }
.im-hero__tag { margin: 20px auto 0; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; line-height: 1.4; letter-spacing: -.015em; color: var(--lime-hi); }
.im-hero__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.im-dial { position: relative; width: min(540px, 88vw); aspect-ratio: 1; margin: clamp(24px, 3.4vw, 48px) auto 0; }
.im-dial__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.im-dial__face {
  position: absolute; inset: 18.33%; border-radius: 50%; background: var(--sand);
  box-shadow: 0 0 0 9px rgba(246,248,246,.07), 0 30px 80px rgba(0,0,0,.45);
  display: grid; place-items: center; overflow: hidden;
}
.im-dial__lt { width: 84%; aspect-ratio: 1; }
.im-dial__cap { position: absolute; left: 0; right: 0; bottom: 3%; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }

/* ---------- 2. Interactive donut (pinned) ---------- */
.im-pick__stage { display: flex; align-items: center; padding-block: clamp(72px, 9vw, 130px); }
.im-pick.m-pin-on .im-pick__stage { padding-block: 16px; }
.im-pick__grid { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.im-pick__intro .tag { margin-bottom: 16px; }
.im-pick__h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; margin-bottom: 16px; }
.im-pick__lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.6; max-width: 40ch; }
.im-pick__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--s-rule); font-size: 14px; color: var(--text-2); }
.im-pick__meta > span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }

.im-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(22px, 2.6vw, 38px); border-radius: 10px; box-shadow: 0 24px 60px rgba(12,19,16,.18); }
.im-card__fig { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.im-donut { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; }
.im-donut__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.im-donut__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.im-donut__c b { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.im-donut__c span { margin-top: 6px; max-width: 8em; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-hi); }
.im-card__cap { max-width: 30ch; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--on-dark-2); }

.im-ring { transform-origin: 200px 200px; }
.im-seg { transform-origin: 200px 200px; }
.im-ready .im-ring { transition: transform 1.2s var(--ease); }
.im-ready .im-seg { transition: stroke-dasharray 1s var(--ease), stroke-dashoffset 1s var(--ease), opacity .6s ease, stroke .6s ease, transform .9s var(--ease); }

.im-tabs { display: grid; gap: 8px; }
.im-tab {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line-dark); border-radius: 6px; background: transparent; color: var(--on-dark-2);
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.im-tab__n { font-size: 12px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--lime-hi); }
.im-tab:hover { border-color: rgba(123,220,134,.55); color: var(--on-dark); }
.im-tab[aria-selected="true"] { background: rgba(123,220,134,.14); border-color: var(--lime-hi); color: var(--on-dark); font-weight: 600; }
.im-tab:focus-visible { outline: 2px solid var(--lime-hi); outline-offset: 2px; }
.im-panels { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-dark); min-height: 188px; }
.im-panel__p { font-size: 16px; line-height: 1.65; color: var(--on-dark); max-width: 52ch; }
.im-panel:not([hidden]) { animation: imIn .5s var(--ease); }
@keyframes imIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.im-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; }
.im-legend li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--on-dark-2); }
.im-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c0); flex: none; }
.im-legend i.c1 { background: var(--c1); } .im-legend i.c2 { background: var(--c2); } .im-legend i.c3 { background: var(--c3); } .im-legend i.c4 { background: var(--c4); }

/* ---------- 3. Three inputs ---------- */
.im-three__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.im-three__txt .tag { margin-bottom: 20px; }
.im-three__h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.im-three__p { margin-top: 18px; max-width: 42ch; font-size: 17px; line-height: 1.65; color: var(--on-dark-2); }
.im-three__list { margin-top: 28px; display: grid; gap: 0; counter-reset: im; max-width: 46ch; }
.im-three__list li { counter-increment: im; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.im-three__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.im-three__list li::before { content: "0" counter(im); grid-row: span 2; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding-top: 6px; color: var(--lime-hi); }
.im-three__list b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.im-three__list span { font-size: 15.5px; line-height: 1.5; color: var(--on-dark-2); }

.im-venn { position: relative; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 100 / 94; }
.im-venn__w { position: absolute; width: 64%; aspect-ratio: 1; }
.im-venn__w--a { left: 0; top: 0; }
.im-venn__w--b { right: 0; top: 0; }
.im-venn__w--c { left: 18%; top: 30%; }
.im-venn__w--core { left: 50%; top: 41%; width: 21%; margin: -10.5% 0 0 -10.5%; z-index: 2; }
.im-venn__c, .im-venn__core { width: 100%; height: 100%; border-radius: 50%; display: grid; }
.im-venn__c { border: 1.5px solid var(--lime-hi); animation: imDrift 11s ease-in-out infinite; }
.im-venn__w--a .im-venn__c { background: rgba(54,180,72,.26); }
.im-venn__w--b .im-venn__c { background: rgba(0,132,78,.5); animation-delay: -4s; animation-direction: alternate-reverse; }
.im-venn__w--c .im-venn__c { background: rgba(123,220,134,.17); animation-delay: -7s; }
.im-venn__c { position: relative; }
.im-venn__c span { position: absolute; font-size: clamp(1.1rem, 2.1vw, 1.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; text-align: center; color: var(--on-dark); transform: translate(-50%, -50%); }
.im-venn__w--a .im-venn__c span { left: 28%; top: 27%; }
.im-venn__w--b .im-venn__c span { left: 72%; top: 27%; }
.im-venn__w--c .im-venn__c span { left: 50%; top: 77%; }
.im-venn__core { background: var(--sand); place-items: center; box-shadow: 0 0 0 6px rgba(246,248,246,.12); }
.im-venn__core span { font-size: clamp(.78rem, 1.3vw, 1.05rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-align: center; color: var(--ink); }
@keyframes imDrift { 0%, 100% { translate: 0 0; } 50% { translate: 9px -7px; } }

/* ---------- 4. Statement ---------- */
.im-stmt { padding-block: clamp(56px, 7vw, 110px); overflow: hidden; }
.im-stmt__mq { color: var(--green-ink); padding-block: 0 clamp(20px, 3vw, 44px); }
.im-stmt__mq .outline { -webkit-text-stroke: 1.5px var(--green-ink); }
.im-stmt__d { color: var(--green-ink); }
.im-stmt__dx { font-size: clamp(2.6rem, 11vw, 10rem); color: var(--ink); max-width: 9em; }

/* ---------- 5. Who this helps ---------- */
.im-who__head { max-width: 760px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.im-who__head .tag { margin-bottom: 18px; }
.im-who__h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.im-who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); align-items: start; }
.im-who__card { display: block; color: var(--text); }
.im-who__card:nth-child(2) { margin-top: clamp(24px, 4vw, 64px); }
.im-who__art { aspect-ratio: 300 / 380; background: var(--ink-2); overflow: hidden; }
.im-who__art svg { display: block; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.im-who__card:hover .im-who__art svg { transform: scale(1.05) rotate(2deg); }
.im-who__card h3 { margin-top: 20px; font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.im-who__card p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 30ch; }
.im-who__card .tl { margin-top: 12px; display: inline-flex; }
.im-who__more { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- 6. FAQ ---------- */
.im-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.im-faq__side { position: sticky; top: calc(var(--nav-h) + 32px); }
.im-faq__side .tag { margin-bottom: 18px; }
.im-faq__h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.im-faq__p { margin-top: 14px; max-width: 34ch; font-size: 15.5px; line-height: 1.6; }
.im-gauge { display: block; width: min(300px, 70%); margin-top: 34px; rotate: -90deg; }
@media (max-width: 899px) { .im-faq__side { position: static; } .im-gauge { display: none; } }

/* ---------- 7. CTA ---------- */
.im-cta { overflow: hidden; text-align: center; }
.im-cta__in { position: relative; z-index: 1; max-width: 800px; }
.im-cta__h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 600; }
.im-cta .body-lg { margin: 20px auto 0; }
.im-cta__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.im-cta__fine { margin-top: 20px; font-size: 14px; color: var(--on-dark-2); }
.im-cta__fine a { color: var(--on-dark); font-weight: 600; border-bottom: 1px solid var(--lime-hi); }
.im-cta__ring { position: absolute; width: clamp(280px, 34vw, 520px); fill: none; stroke: var(--lime-hi); stroke-opacity: .28; stroke-width: 1.2; pointer-events: none; }
.im-cta__ring--a { left: -8%; top: -22%; }
.im-cta__ring--b { right: -9%; bottom: -30%; }

/* ---------- 8. Other services + next ---------- */
.im-more .tag { margin-bottom: 18px; }
.im-more__h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; margin-bottom: clamp(24px, 3vw, 44px); }
.im-more__rows { border-top: 1px solid var(--line-dark); }
.im-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: clamp(16px, 1.8vw, 24px) 6px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); transition: padding .45s var(--ease), background-color .35s var(--ease); }
.im-row:hover { padding-left: 22px; background: rgba(246,248,246,.06); }
.im-row__n { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--lime-hi); }
.im-row__t { display: grid; gap: 2px; }
.im-row__t b { font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.im-row__t span { font-size: 15px; line-height: 1.5; color: var(--on-dark-2); max-width: 62ch; }
.im-row__a { color: var(--lime-hi); transition: transform .4s var(--ease); }
.im-row:hover .im-row__a { transform: translateX(6px); }
.im-row:focus-visible, .im-next:focus-visible { outline: 2px solid var(--lime-hi); outline-offset: -2px; }
.im-next {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 24px; overflow: hidden;
  margin-top: clamp(40px, 5vw, 72px); padding: clamp(26px, 3.4vw, 48px); border: 1px solid var(--line-dark); border-radius: 8px; color: var(--on-dark); isolation: isolate;
}
.im-next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.im-next:hover::before, .im-next:focus-visible::before { transform: scaleX(1); }
.im-next__l { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lime-hi); }
.im-next__t { font-size: clamp(1.9rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.im-next__a { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--lime-hi); color: var(--lime-hi); transition: transform .5s var(--ease); }
.im-next:hover .im-next__a { transform: translateX(8px); }

/* ---------- responsive ---------- */
@media (max-height: 800px) and (min-width: 900px) {
  .im-pick__lead { font-size: 1rem; line-height: 1.5; }
  .im-pick__h2 { font-size: 1.6rem; }
  .im-donut { max-width: 290px; }
  .im-tab { padding: 9px 12px; }
  .im-panels { min-height: 0; margin-top: 12px; padding-top: 12px; }
  .im-card { padding: 20px 24px; }
}
@media (max-width: 1100px) {
  .im-pick__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .im-pick__lead { max-width: 60ch; }
  .im-card { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .im-card { grid-template-columns: minmax(0, 1fr); }
  .im-donut { max-width: 300px; }
  .im-three__grid, .im-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .im-who__grid { grid-template-columns: minmax(0, 1fr); max-width: 380px; margin-inline: auto; }
  .im-who__card:nth-child(2) { margin-top: 0; }
  .im-venn { max-width: 440px; }
}
@media (max-width: 640px) {
  .im-tabs { display: flex; overflow-x: auto; gap: 8px; margin-inline: calc(var(--gutter) * -.5); padding: 2px calc(var(--gutter) * .5) 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .im-tab { flex: none; width: auto; grid-template-columns: auto auto; white-space: nowrap; border-radius: 99px; scroll-snap-align: start; }
  .im-panels { min-height: 0; }
  .im-card { padding: 22px 18px; }
  .im-hero__act .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  /* venn: three circles stacked and overlapping, core as a pill */
  .im-venn { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; max-width: 320px; padding-bottom: 8px; }
  .im-venn__w { position: relative; left: auto; right: auto; top: auto; width: 76%; margin-top: -14%; }
  .im-venn__w--a { margin-top: 0; }
  .im-venn__w .im-venn__c span { position: static; transform: none; align-self: center; justify-self: center; font-size: 1.3rem; }
  .im-venn__w--core { width: auto; aspect-ratio: auto; margin: -22px 0 0; }
  .im-venn__core { width: auto; height: auto; border-radius: 99px; padding: 10px 22px; }
  .im-venn__core span br { display: none; }
  .im-venn__core span { font-size: 1rem; }
  .im-row { grid-template-columns: 38px minmax(0, 1fr) 24px; }
  .im-next__a { width: 48px; height: 48px; }
  .im-next__a svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .im-venn__c, .im-panel:not([hidden]) { animation: none; }
  .im-ring, .im-seg, .im-who__art svg, .im-row, .im-next::before { transition: none !important; }
}
