/* =====================================================
   IncMarketry — the homepage (homepage v8, stages C + D, 2026-10-10; layout v21, stage E2, 2026-10-11)

   Built from the approved mockup homepage_v8.html, on top of im-primitives.css (tokens, panels,
   eyebrows, type, buttons, glass, reveals) and im-header.css (the stage-B header, untouched).
   Only index.html links this file.

   Conventions, the same as the two files above:
   - every class here is ih- prefixed: styles.css still defines .hero, .approach, .tile, .panel …
     for the other pages, so an unprefixed name would collide;
   - colours come from brand-tokens.css only (no hex — verify-brand-colors);
   - the mockup's container queries are media queries here, at 1100 / 900 / 640 (the header keeps
     its own 960), and its cqi units are vw. A container ancestor would capture the fixed Get Access
     modal, chat button and scroll-progress bar (see im-primitives.css's header);
   - one family, Bricolage Grotesque, except the philosophy headline (Newsreader, via .mw-editorial).
     The mockup's "mono" labels are Bricolage with letter-spacing; tabular figures are inherited
     from fonts.css's root rule, and restated after any `font:` shorthand, which resets them;
   - under prefers-reduced-motion everything that moves shows its finished, still state.

   v21 (homepage_v21.html): the page is a stack of full-width bands. Content sits in a centred
   1280px column inside each band, which is what --im-pad means on this page; --im-gut is 0, so
   the hero, the panels and the footer meet the screen edges with no radius. Both are redefined on
   body.ih-page only, so the other pages that use im-primitives.css keep their own column.
   ===================================================== */

body.ih-page {
  --im-gut: 0px;
  --im-pad: max(clamp(20px, 4vw, 56px), calc((100vw - 1280px) / 2));
  /* The deeper of v21's two light bands. Not a brand token: it exists only on this page, and adding
     it to brand-colors.json would regenerate every shared colour file for one band colour. */
  --ih-sand-3: #F3E9DA;
  background: var(--im-sand); color: var(--im-ink); line-height: 1.5;
}
.ih-main { max-width: none; margin: 0; overflow-x: clip; }
.ih-main .im-panel { border-radius: 0; }
/* The header bar uses the same column (its padding is --im-pad + --im-gut, so it already follows the
   tokens above); it must not stop at 1440 or the column would sit inside a narrower box. */
body.ih-page .im-hdr-bar { max-width: none; }
@media (max-width: 960px) {
  body.ih-page .im-nav { left: 12px; right: 12px; } /* the drawer keeps an inset with --im-gut at 0 */
}

/* Secondary text. The mockup dims with opacity; a token colour keeps the contrast measurable. */
.ih-soft { color: var(--im-muted); }
.im-panel--dark .ih-soft, .im-panel--plum .ih-soft, .ih-hero .ih-soft, .ih-tile .ih-soft, .ih-scard--dark .ih-soft { color: rgba(var(--brand-cream-rgb), .82); }

/* Shared two-column section head: title left, lead right. */
.ih-head2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.ih-head2 .im-eyebrow { margin-bottom: 20px; }

/* Small uppercase step/count labels (the mockup's .n). */
.ih-n {
  font: 500 12px/1.2 'Bricolage Grotesque', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  letter-spacing: .14em; text-transform: uppercase; color: var(--im-terra-d);
}

/* ===================== 1. HERO ===================== */
.ih-hero {
  margin: 0; border-radius: 0;
  background: var(--im-plum-dd); color: var(--im-sand);
  position: relative; overflow: hidden; padding-top: 72px; /* the fixed header floats over this */
  /* v21: full-bleed, near full-screen, copy centred vertically, the ticker on the floor */
  min-height: clamp(600px, 92svh, 920px); display: flex; flex-direction: column;
}
.ih-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ih-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; max-width: none;
  filter: saturate(.3) brightness(.62) blur(2px); opacity: .45; transform: scale(1.04); /* v21 */
}
.ih-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 20% 20%, rgba(var(--brand-navy-rgb), .65), rgba(var(--brand-plum-deepest-rgb), .92) 70%);
}
.ih-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--brand-plum-deepest-rgb), .55));
}
.ih-hero-in {
  position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px, 5vw, 72px) var(--im-pad) clamp(48px, 6vw, 96px);
}
.ih-hero h1 { color: var(--im-tint); max-width: 1000px; }
.ih-hero h1 span { display: block; }
.ih-hero .im-lead { margin: 26px 0 34px; max-width: 58ch; color: rgba(var(--brand-cream-rgb), .86); }
.ih-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ih-btns .im-btn--glass { color: var(--im-sand); }

/* ===================== 2. TICKER (stage D) ===================== */
@keyframes ih-blink { 50% { opacity: .35; } }
@keyframes ih-tape { to { transform: translateX(-50%); } }
.ih-tape[hidden] { display: none; } /* the class's display:flex would otherwise beat the UA [hidden] rule */
.ih-tape {
  display: flex; align-items: stretch; height: 46px; position: relative; z-index: 3;
  border-top: 1px solid var(--im-line-dk);
  font: 500 12.5px/1 'Bricolage Grotesque', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(var(--brand-plum-deepest-rgb), .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ih-tape-lab {
  flex-shrink: 0; position: relative; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; color: var(--im-tint); border-right: 1px solid var(--im-line-dk);
  background: rgba(var(--brand-plum-deepest-rgb), .55);
}
.ih-tape-lab i { width: 7px; height: 7px; border-radius: 50%; background: var(--im-tint); box-shadow: 0 0 8px var(--im-tint); animation: ih-blink 2.4s ease-in-out infinite; }
.ih-tape-lab em {
  font-style: normal; font-size: 10px; letter-spacing: .1em; color: rgba(var(--brand-cream-rgb), .78);
  padding: 2px 6px; border: 1px solid var(--im-line-dk); border-radius: 4px; margin-left: 4px;
}
.ih-tape-track {
  flex: 1; min-width: 0; overflow: hidden; position: relative; display: flex; align-items: center;
  -webkit-mask: linear-gradient(90deg, transparent, black 24px, black calc(100% - 40px), transparent);
  mask: linear-gradient(90deg, transparent, black 24px, black calc(100% - 40px), transparent);
}
.ih-tape-run { display: flex; white-space: nowrap; animation: ih-tape 46s linear infinite; will-change: transform; }
.ih-tape-half { display: flex; gap: 40px; padding-left: 24px; padding-right: 16px; flex-shrink: 0; }
.ih-tape-track:hover .ih-tape-run, .ih-tape-track:focus-within .ih-tape-run, .ih-tape.is-paused .ih-tape-run { animation-play-state: paused; }
.ih-tape-half > span { display: inline-flex; align-items: center; gap: 6px; color: var(--im-sand); }
.ih-tape-half b { font-weight: 500; color: var(--brand-tape-up); }
.ih-tape-half b.ih-dn { color: var(--brand-tape-down); }
.ih-tape-half .ih-flash { text-transform: none; letter-spacing: .02em; font-size: 13px; color: var(--im-sand); }
/* A linked announcement is a real control: 44px tall within the 46px tape. */
.ih-tape-half a.ih-flash { min-height: 44px; text-decoration: underline; text-decoration-color: rgba(var(--brand-cream-rgb), .45); text-underline-offset: 3px; }
.ih-tape-half a.ih-flash:hover { text-decoration-color: currentColor; }
.ih-tape-half a.ih-flash:focus-visible { outline: 2px solid var(--im-tint); outline-offset: 2px; border-radius: 4px; }
.ih-tape-half .ih-flash::before {
  content: "News"; text-transform: uppercase; letter-spacing: .06em; font-size: 10px;
  color: var(--im-plum-dd); background: var(--im-tint); padding: 3px 6px; border-radius: 4px; margin-right: 6px;
}
/* The track runs only once the script has filled it to at least the track's width. */
.ih-tape:not(.is-ready) .ih-tape-run { animation: none; }

/* ===================== 3. APPROACH ===================== */
.ih-approach, .ih-how, .ih-rail-wrap, .ih-acct { position: relative; isolation: isolate; }
.ih-approach::before, .ih-how::before, .ih-rail-wrap::before, .ih-acct::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
/* v21: two tones of sand alternate, each with a soft light in one corner so no band is flat. */
.ih-approach, .ih-rail-wrap { background: var(--im-sand); }
.ih-how, .ih-acct { background: var(--ih-sand-3); }
.ih-approach::before { background: radial-gradient(55% 70% at 100% 0%, rgba(var(--brand-terracotta-tint-rgb), .13), transparent 70%); }
.ih-how::before { background: radial-gradient(50% 60% at 0% 100%, rgba(var(--brand-teal-bright-rgb), .10), transparent 70%); }
.ih-rail-wrap::before { background: radial-gradient(45% 60% at 100% 100%, rgba(var(--brand-terracotta-tint-rgb), .10), transparent 70%); }
.ih-acct::before { background: radial-gradient(50% 70% at 0% 0%, rgba(var(--brand-navy-rgb), .07), transparent 70%); }

/* The curve where Approach meets Values: teal-wash rising into Approach. Approach keeps the curve's
   height free at its foot, so no text sits under it. */
.ih-curve { position: relative; height: 0; z-index: 4; pointer-events: none; }
.ih-curve svg { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(26px, 4vw, 60px); display: block; }
.ih-curve path { fill: var(--im-teal-wash); }

.ih-approach { padding: clamp(60px, 8vw, 120px) var(--im-pad) calc(clamp(40px, 6vw, 80px) + clamp(26px, 4vw, 60px)); }
.ih-approach-top { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; margin-bottom: clamp(30px, 4vw, 56px); }
.ih-approach-top .im-eyebrow { justify-self: start; }
.ih-statement { font-weight: 300; letter-spacing: -.02em; line-height: 1.14; font-size: clamp(28px, 3.4vw, 50px); }
.ih-approach-cols { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 30px; align-items: start; }
.ih-approach-cols p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
/* An <ol> for its semantics; list-style none so the browser's own "1. 2." never shows beside "01" (it
   hung outside the left edge on a phone). role="list" keeps the list announced once the marker is gone. */
.ih-steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: clamp(36px, 5vw, 70px) 0 0; padding: 0; list-style: none; }
.ih-st { border-top: 1px solid rgba(var(--brand-navy-rgb), .25); padding-top: 18px; position: relative; }
.ih-st::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--im-terra); transition: width .8s cubic-bezier(.2, .6, .2, 1); }
.ih-st.is-in::before { width: 100%; }
.ih-st h4 { font-size: clamp(20px, 2vw, 26px); font-weight: 400; letter-spacing: -.015em; margin: 10px 0 8px; }
.ih-st p { font-size: 14.5px; line-height: 1.5; }

/* ===================== 4. VALUES ===================== */
.ih-values { padding: calc(clamp(36px, 5vw, 64px) + clamp(16px, 2vw, 28px)) var(--im-pad) clamp(36px, 5vw, 64px); }
.ih-values .ih-head2 { margin-bottom: 30px; }
.ih-values .im-eyebrow { color: var(--im-teal-d); }
.ih-vrow { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(var(--brand-navy-rgb), .18); align-items: baseline; }
.ih-vrow .ih-n { color: var(--im-teal-d); font-size: 13px; letter-spacing: .1em; }
.ih-vrow h4 { font-size: clamp(20px, 2vw, 26px); font-weight: 400; letter-spacing: -.015em; }
.ih-vrow p { font-size: 15px; line-height: 1.5; }
.ih-values .ih-soft { color: var(--im-plum-d); }

/* ===================== 5. HOW IT WORKS ===================== */
/* Bottom padding + 120px: the stats card below straddles this band and Services. */
.ih-how { padding: clamp(60px, 8vw, 120px) var(--im-pad) calc(clamp(40px, 6vw, 80px) + 120px); }
.ih-how-head { max-width: 900px; margin-bottom: 40px; }
.ih-how-head .im-eyebrow { margin-bottom: 22px; }
.ih-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ih-tile { border-radius: var(--im-r); overflow: hidden; background: var(--im-plum-dd); position: relative; color: var(--im-sand); display: flex; flex-direction: column; }
.ih-tile > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(12px) saturate(.4); transform: scale(1.08); opacity: .55; }
/* The photo needs z-index 0 and this overlay 1: ::before paints before the img in DOM order, so
   without them the photo covered the overlay and tile copy measured 1.5:1 (caught by verify-homepage). */
.ih-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(var(--brand-navy-rgb), .55), rgba(var(--brand-plum-deepest-rgb), .94) 55%); }
.ih-tile-top { position: relative; z-index: 2; height: 310px; display: flex; align-items: center; justify-content: center; padding: 26px; }
.ih-ui { width: 300px; max-width: 100%; border-radius: 18px; padding: 16px; color: var(--im-sand); position: relative; }
.ih-ui-t { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--brand-cream-rgb), .82); }
.ih-ui-big { font-size: 26px; font-weight: 300; letter-spacing: -.02em; margin: 6px 0 10px; display: flex; align-items: baseline; gap: 0 8px; white-space: nowrap; line-height: 1.1; }
.ih-ui-big small { font-size: 12.5px; font-weight: 400; color: rgba(var(--brand-cream-rgb), .82); }
.ih-strip { height: 8px; border-radius: 4px; background: rgba(var(--brand-cream-rgb), .14); overflow: hidden; display: flex; gap: 2px; margin-bottom: 12px; }
.ih-strip i { display: block; height: 100%; }
.ih-strip--one i { width: 66%; background: linear-gradient(90deg, var(--im-teal), var(--im-tint)); }
.ih-strip--alloc i:nth-child(1) { flex: 32; background: var(--im-sand-deep); }
.ih-strip--alloc i:nth-child(2) { flex: 28; background: var(--im-teal); }
.ih-strip--alloc i:nth-child(3) { flex: 30; background: var(--im-terra); }
.ih-strip--alloc i:nth-child(4) { flex: 10; background: rgba(var(--brand-cream-rgb), .5); }
.ih-strip--perf i { width: 84%; background: linear-gradient(90deg, var(--im-teal-d), var(--im-teal)); }
.ih-ui-card { background: var(--im-sand); color: var(--im-ink); border-radius: 12px; padding: 12px 14px; }
.ih-ui-row { display: flex; justify-content: space-between; align-items: center; height: 34px; border-bottom: 1px solid var(--im-line); font-size: 13.5px; gap: 10px; }
.ih-ui-row:last-child { border-bottom: 0; }
.ih-ui-row b { font-weight: 600; }
.ih-ui-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--im-teal-wash); color: var(--im-teal-d); font-size: 12px; font-weight: 600; }
.ih-tile-body { position: relative; z-index: 2; padding: 6px 26px 26px; }
.ih-tile-body .ih-n { color: var(--im-tint); display: block; margin-bottom: 14px; }
.ih-item { padding: 14px 0; border-top: 1px solid var(--im-line-dk); }
.ih-item h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.ih-item p { font-size: 13.5px; line-height: 1.5; }
/* v21, above 1100px: the headline column stays put (sticky below the header) while the three tiles,
   stacked one per row with the illustration on the left, scroll past it. */
@media (min-width: 1101px) {
  .ih-how { display: grid; grid-template-columns: minmax(260px, .9fr) 1.4fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
  .ih-pin-l { position: sticky; top: calc(72px + 96px); }
  .ih-how-head { max-width: none; margin-bottom: 0; }
  .ih-tiles { grid-template-columns: 1fr; gap: 18px; }
  .ih-tile { flex-direction: row; }
  .ih-tile-top { flex: 0 0 46%; height: auto; min-height: 300px; }
  .ih-tile-body { flex: 1; padding: 26px 26px 26px 0; }
  /* The text now sits beside the illustration, at the TOP of the tile, where the v8 top-to-bottom overlay
     is at its lightest: over the brighter second photo the kicker measured 3.28:1. The overlay runs
     left to right instead, fully dark from the text column (46%) on. */
  .ih-tile::before { background: linear-gradient(90deg, rgba(var(--brand-navy-rgb), .55), rgba(var(--brand-plum-deepest-rgb), .94) 46%); }
}

/* ===================== 6. NUMBERS ===================== */
.ih-numbers.im-panel--dark {
  /* v21: the section is transparent; the rows sit in a dark card that straddles How it works and
     Services. z-index lifts it above both bands. */
  background: transparent; padding: 0 var(--im-pad); margin-top: -150px; margin-bottom: -90px;
  position: relative; z-index: 3; overflow: visible;
}
.ih-ncard {
  background: var(--im-plum-dd); border-radius: 24px; position: relative; z-index: 1;
  padding: clamp(8px, 1vw, 16px) clamp(24px, 3.5vw, 48px);
  box-shadow: 0 50px 90px -40px rgba(var(--brand-plum-deepest-rgb), .65), inset 0 1px 0 rgba(var(--brand-cream-rgb), .08);
}
.ih-nrow { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(20px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--im-line-dk); position: relative; z-index: 1; }
.ih-nrow:last-of-type { border-bottom: 0; }
.ih-nrow .ih-l { font-size: clamp(16px, 1.6vw, 22px); font-weight: 400; }
.ih-nrow .ih-l small { display: block; font-size: 13px; letter-spacing: .04em; margin-top: 4px; color: rgba(var(--brand-cream-rgb), .74); }
.ih-nrow .ih-v { font-size: clamp(36px, 4.8vw, 72px); font-weight: 300; letter-spacing: -.03em; line-height: 1; color: var(--im-tint); text-align: right; }
.ih-nrow .ih-v small { font-size: .52em; }
.ih-ringbg { position: absolute; pointer-events: none; color: var(--im-sand); }
.ih-ringbg svg { width: 100%; height: 100%; }

/* ===================== 7. SERVICES RAIL ===================== */
.ih-rail-wrap { padding: calc(clamp(60px, 8vw, 120px) + 90px) 0 clamp(40px, 6vw, 80px); } /* + the stats card's overlap */
.ih-rail-wrap .ih-head2 { padding: 0 var(--im-pad); margin-bottom: 30px; }
.ih-rail-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.ih-rbtns { display: flex; gap: 8px; align-items: center; }
.ih-rbtn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(var(--brand-navy-rgb), .3);   /* the ledger's icon button (ICON TILES A) */
  background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--im-ink);
  transition: background .2s, color .2s, border-color .2s;
}
.ih-rbtn:hover { background: var(--im-plum-dd); color: var(--im-sand); border-color: var(--im-plum-dd); }
.ih-rbtn:focus-visible { outline: 2px solid var(--im-terra); outline-offset: 3px; }
.ih-rbtn svg { width: 16px; height: 16px; }
.ih-rbtn--prev svg { transform: rotate(180deg); }
@media (max-width: 1023.98px) { .ih-rbtn { width: 44px; height: 44px; } }
.ih-rail { display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--im-pad) 24px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-left: var(--im-pad); }
.ih-rail::-webkit-scrollbar { display: none; }
.ih-scard {
  flex: 0 0 min(78vw, 340px); scroll-snap-align: start; min-height: 420px; border-radius: var(--im-r);
  background: var(--im-card); border: 1px solid rgba(var(--brand-navy-rgb), .1); padding: 26px;
  display: flex; flex-direction: column; position: relative; overflow: hidden; color: var(--im-ink);
  transition: transform .25s, box-shadow .25s;
}
.ih-scard:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(var(--brand-plum-deepest-rgb), .5); }
.ih-scard:focus-visible { outline: 2px solid var(--im-terra); outline-offset: 3px; }
.ih-scard h3 { font-size: 26px; font-weight: 400; letter-spacing: -.02em; margin: 14px 0 12px; line-height: 1.1; }
.ih-scard p { font-size: 14px; line-height: 1.5; position: relative; z-index: 1; }
.ih-ghost { position: absolute; right: -10px; bottom: -30px; font-size: 160px; font-weight: 300; letter-spacing: -.06em; color: var(--im-plum); opacity: .06; line-height: 1; pointer-events: none; }
.ih-go { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--im-terra-d); position: relative; z-index: 1; }
.ih-go svg, .ih-all svg { width: 16px; height: 16px; transition: transform .2s; }
.ih-scard:hover .ih-go svg { transform: translateX(4px); }
.ih-scard--dark { background: var(--im-plum-dd); color: var(--im-sand); border-color: transparent; }
.ih-scard--dark .ih-n, .ih-scard--dark .ih-go { color: var(--im-tint); }
.ih-scard--dark .ih-ghost { color: var(--im-tint); opacity: .12; }
.ih-rail-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--im-pad); gap: 16px; }
.ih-dots { display: flex; gap: 6px; }
.ih-dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(var(--brand-navy-rgb), .18); transition: background .3s; }
.ih-dots i.is-on { background: var(--im-terra); }
.ih-all { font-weight: 600; font-size: 14px; color: var(--im-terra-d); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* ===================== 8. WHAT MAKES US DIFFERENT ===================== */
.ih-diff { padding: clamp(36px, 5vw, 72px) var(--im-pad); }
.ih-diff > img, .ih-diff > video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.25) brightness(.5) blur(2px); opacity: .35; }
.ih-diff::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(var(--brand-plum-deepest-rgb), .75), rgba(var(--brand-plum-deepest-rgb), .92)); }
.ih-diff-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: start; }
.ih-diff .im-h-section { margin: 22px 0 20px; }
.ih-flist { display: flex; flex-direction: column; }
.ih-frow { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--im-line-dk); }
.ih-frow:first-child { border-top: 0; padding-top: 0; }
.ih-ico, .ih-ico svg { width: 48px; height: 48px; }
.ih-ico svg { fill: none; stroke: var(--im-tint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ih-frow .ih-n { color: var(--im-tint); font-size: 11px; display: block; margin-bottom: 6px; }
.ih-frow h3 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.ih-frow p { font-size: 15px; line-height: 1.5; }

/* ===================== 9. ACCOUNT TYPES ===================== */
.ih-acct { padding: clamp(60px, 8vw, 120px) var(--im-pad) clamp(40px, 6vw, 80px); }
.ih-acct .ih-head2 { margin-bottom: 36px; }
.ih-agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ih-acard {
  --hue: var(--im-terra); --hue-d: var(--im-terra-d); --wash: var(--im-tint-wash);
  border-radius: var(--im-r); background: var(--im-card); border: 1px solid rgba(var(--brand-navy-rgb), .1);
  padding: 22px 28px 26px; display: flex; flex-direction: column; position: relative; overflow: hidden; color: var(--im-ink);
  transition: transform .25s, box-shadow .25s;
}
.ih-acard:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(var(--brand-plum-deepest-rgb), .45); }
.ih-acard:focus-visible { outline: 2px solid var(--im-terra); outline-offset: 3px; }
.ih-acard--teal { --hue: var(--im-teal); --hue-d: var(--im-teal-d); --wash: var(--im-teal-wash); }
.ih-acard--plum { --hue: var(--im-plum); --hue-d: var(--im-plum-dd); --wash: var(--im-plum-wash); }
.ih-mark {
  height: 180px; border-radius: 18px; background: linear-gradient(160deg, var(--im-card), var(--wash));
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 var(--im-card), inset 0 0 0 1px rgba(var(--brand-navy-rgb), .06);
}
.ih-mark svg { width: 220px; height: 150px; max-width: 100%; overflow: visible; }
.ih-mark .ih-path { fill: none; stroke: var(--hue-d); stroke-width: 1.4; opacity: .55; }
.ih-mark .ih-path--soft { opacity: .22; stroke-dasharray: 2 5; }
.ih-mark .ih-dot { fill: var(--hue); filter: drop-shadow(0 0 6px var(--hue)); }
.ih-mark .ih-dot--t { fill: var(--im-terra); filter: drop-shadow(0 0 6px var(--im-terra)); }
.ih-mark .ih-core { fill: none; stroke: var(--hue-d); stroke-width: 1.4; }
.ih-kicker { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.ih-kicker .im-eyebrow { border-color: var(--hue-d); color: var(--hue-d); }
.ih-min { font-size: 12px; letter-spacing: .04em; color: var(--im-muted); }
.ih-acard h3 { font-size: 30px; font-weight: 300; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 10px; }
.ih-best { font-size: 14.5px; line-height: 1.5; margin-bottom: 18px; }
.ih-acard ul { display: flex; flex-direction: column; border-top: 1px solid var(--im-line); margin-bottom: 22px; }
.ih-acard li, .ih-common > div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ih-acard li { padding: 11px 0; border-bottom: 1px solid var(--im-line); font-size: 14.5px; line-height: 1.4; }
.ih-tk { margin-top: 1px; }   /* the tile is .im-tile--xs (ICON TILES A) */
.ih-cfoot { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.ih-cfoot .im-btn { background: var(--hue-d); color: var(--im-card); font-size: 14px; }
.ih-acard:hover .ih-cfoot .im-btn { background: var(--hue); }
.ih-acard--teal:hover .ih-cfoot .im-btn { background: var(--im-teal-d); }
.ih-who { font-size: 13px; text-align: center; color: var(--im-muted); }
.ih-common { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; border-top: 1px solid var(--im-line); padding-top: 22px; }
.ih-common > div { --wash: var(--im-teal-wash); --hue-d: var(--im-teal-d); font-size: 14px; line-height: 1.45; }
.ih-common b { display: block; font-weight: 600; margin-bottom: 2px; color: var(--im-ink); }

/* ===================== 10. PHILOSOPHY ===================== */
@keyframes ih-drift { 0% { transform: translateX(0); } 50% { transform: translateX(-24px); } 100% { transform: translateX(0); } }
@keyframes ih-spin { to { transform: rotate(360deg); } }
.ih-phil { padding: calc(clamp(56px, 8vw, 120px) * .6 + clamp(30px, 5vw, 76px)) var(--im-pad) clamp(40px, 6vw, 80px); }
/* v21: the curve into Philosophy is part of this section — Account types' sand drawn over the top of
   the plum. Never a flat-plum shape above it: the panel is a gradient, so a flat fill shows as a stripe. */
.ih-notch { position: absolute; left: 0; top: 0; width: 100%; height: clamp(30px, 5vw, 76px); display: block; z-index: 1; pointer-events: none; }
.ih-notch path { fill: var(--ih-sand-3); }
.ih-curves {
  position: absolute; inset: 0; pointer-events: none; color: rgba(var(--brand-terracotta-tint-rgb), .22);
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 75%); mask: linear-gradient(180deg, #000 30%, transparent 75%);
}
.ih-curves svg { width: 100%; height: 100%; animation: ih-drift 18s ease-in-out infinite; }
.ih-phil .ih-ringbg { right: -220px; top: -160px; width: 760px; height: 760px; opacity: .09; }
.ih-phil .ih-ringbg svg { animation: ih-spin 120s linear infinite; }
.ih-phil-in { position: relative; z-index: 2; max-width: 980px; }
.ih-phil h2 { font-weight: 400; font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.014em; line-height: 1.02; color: var(--im-tint); margin-top: 22px; }
.ih-phil .im-lead { margin-top: 24px; max-width: 60ch; }
.ih-tenets {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--im-line-dk); padding-top: clamp(24px, 3vw, 40px);
}
.ih-tenet { display: flex; flex-direction: column; }
.ih-tenet .ih-n { color: var(--im-tint); }
.ih-tenet h3 { font-weight: 400; font-size: clamp(22px, 2.1vw, 27px); letter-spacing: -.015em; margin: 12px 0 10px; line-height: 1.15; }
.ih-tenet p { font-size: 15px; line-height: 1.55; }
.ih-fact { display: block; margin-top: auto; padding: 14px 0 0 12px; font-size: 13px; line-height: 1.45; color: rgba(var(--brand-cream-rgb), .74); border-left: 2px solid rgba(var(--brand-terracotta-tint-rgb), .5); }
.ih-belief {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start;
  margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--im-line-dk); padding-top: clamp(24px, 3vw, 40px);
}
.ih-belief > div:last-child { grid-column: 2 / 4; }
.ih-belief-t { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--brand-cream-rgb), .82); }
.ih-belief blockquote p { font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.02em; }
.ih-act { position: relative; z-index: 2; display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); }
.ih-act .im-btn--glass { color: var(--im-sand); }

/* ===================== 11. FOOTER ===================== */
.ih-foot { color: var(--im-sand); background: var(--im-plum-dd); margin: 0; border-radius: 0; padding: 0 var(--im-pad); position: relative; overflow: hidden; }
.ih-fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 56px 0 40px; position: relative; z-index: 1; }
/* Its own class, not .im-logo: that name is the header's, and the header suite measures every .im-logo. */
.ih-flogo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1; color: var(--im-sand); min-height: 44px; }
.ih-foot .im-ring { stroke: var(--im-sand); }
.ih-foot .footer-brand p { margin-top: 14px; max-width: 34ch; font-size: 14px; line-height: 1.5; color: rgba(var(--brand-cream-rgb), .82); }
.ih-foot .im-eyebrow { color: var(--im-tint); }
.ih-fcol ul { margin-top: 12px; display: flex; flex-direction: column; font-size: 14.5px; }
/* 44px rows: the tap-area rule (row 171). The mockup's 11px gaps are the rows' own padding now. */
.ih-fcol a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--im-sand); }
.ih-fcol a:hover, .ih-flinks a:hover { color: var(--im-tint); }
.ih-foot a:focus-visible { outline: 2px solid var(--im-tint); outline-offset: 2px; }
.ih-foot .footer-disclosures { margin-top: 0; padding: 26px 0 4px; border-top: 1px solid var(--im-line-dk); max-width: none; }
.ih-foot .footer-disclosures p { font-size: 12.5px; line-height: 1.75; color: var(--brand-plum-disclosure); max-width: 92ch; }
.ih-foot .footer-disclosures-more { margin-top: 6px; }
.ih-foot .footer-disclosures-more a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--im-tint); }
.ih-foot .footer-disclosures-more a:hover { color: var(--im-sand); }
.ih-legal { font-size: 12.5px; line-height: 1.6; color: rgba(var(--brand-cream-rgb), .74); padding: 26px 0 36px; border-top: 1px solid var(--im-line-dk); margin-top: 26px; position: relative; z-index: 1; }
.ih-flinks { display: flex; gap: 0 18px; font-size: 13px; margin-bottom: 6px; flex-wrap: wrap; }
.ih-flinks a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--im-sand); }

/* ===================== breakpoints ===================== */
@media (max-width: 1100px) {
  .ih-tiles { grid-template-columns: 1fr 1fr; }
  .ih-tiles .ih-tile:last-child { grid-column: 1 / -1; flex-direction: row; }
  .ih-tiles .ih-tile:last-child .ih-tile-top { flex: 0 0 48%; height: auto; min-height: 310px; }
  .ih-tiles .ih-tile:last-child .ih-tile-body { flex: 1; padding: 26px 26px 26px 0; }
  .ih-agrid { grid-template-columns: 1fr 1fr; }
  .ih-agrid .ih-acard:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 28px; align-items: start; }
  .ih-agrid .ih-acard:last-child .ih-mark { grid-row: 1 / 6; margin-bottom: 0; height: 100%; min-height: 260px; }
  .ih-agrid .ih-acard:last-child > :not(.ih-mark) { grid-column: 2; }
  .ih-agrid .ih-acard:last-child .ih-mark { width: 100%; }
  .ih-belief { grid-template-columns: 1fr; }
  .ih-belief > div:last-child { grid-column: auto; }
  .ih-approach-top, .ih-approach-cols { grid-template-columns: 1fr; }
  .ih-approach-cols { gap: 16px; }
  .ih-approach-cols > span:empty { display: none; }
  .ih-steps4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ih-head2 { grid-template-columns: 1fr; }
  .ih-diff-grid { grid-template-columns: 1fr; }
  .ih-vrow { grid-template-columns: 50px 1fr; }
  .ih-vrow p { grid-column: 2; }
  .ih-rail-side { align-items: flex-start; }
  .ih-common { grid-template-columns: 1fr 1fr; }
  .ih-fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ih-hero { min-height: 600px; }
  .ih-hero-in { justify-content: flex-end; padding: 28px var(--im-pad) 44px; }
  .ih-hero .im-lead { margin: 20px 0 26px; font-size: 16px; }
  .ih-btns { gap: 10px; }
  .ih-approach, .ih-how, .ih-rail-wrap, .ih-acct { padding-top: 52px; padding-bottom: 40px; }
  .ih-approach-top { margin-bottom: 22px; }
  .ih-steps4 { margin-top: 28px; gap: 12px; grid-template-columns: 1fr; }
  .ih-values, .ih-diff, .ih-phil { padding-top: 32px; padding-bottom: 32px; }
  /* v21 on a phone: Approach keeps the curve's height at its foot, Values and Philosophy their extra
     top space; the stats card does not straddle — it sits in its own space between the sections. */
  .ih-approach { padding-bottom: calc(40px + clamp(26px, 4vw, 60px)); }
  .ih-values { padding-top: calc(clamp(36px, 5vw, 64px) + clamp(16px, 2vw, 28px)); }
  .ih-phil { padding-top: calc(clamp(56px, 8vw, 120px) * .6 + clamp(30px, 5vw, 76px)); }
  .ih-numbers.im-panel--dark { margin: 0; padding: 32px 20px; }
  .ih-ncard { padding: 4px 22px; }
  .ih-values .ih-head2 { margin-bottom: 12px; }
  .ih-vrow { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .ih-vrow p { grid-column: 1; }
  .ih-how-head { margin-bottom: 24px; }
  .ih-tiles { gap: 14px; grid-template-columns: 1fr; }
  .ih-tile-top { height: 280px; padding: 20px; }
  .ih-tile-body { padding: 4px 20px 20px; }
  .ih-tiles .ih-tile:last-child { flex-direction: column; }
  .ih-tiles .ih-tile:last-child .ih-tile-top { flex: none; height: 280px; min-height: 0; }
  .ih-tiles .ih-tile:last-child .ih-tile-body { padding: 4px 20px 20px; }
  .ih-nrow { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 0; }
  .ih-nrow .ih-v { font-size: 40px; text-align: left; }
  .ih-rail-wrap .ih-head2 { margin-bottom: 18px; }
  .ih-rbtns { display: none; }
  .ih-scard { min-height: 0; padding: 22px; }
  .ih-ghost { font-size: 120px; }
  .ih-diff-grid { gap: 22px; }
  .ih-frow { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; }
  .ih-ico, .ih-ico svg { width: 36px; height: 36px; }
  .ih-acct .ih-head2 { margin-bottom: 22px; }
  .ih-agrid { gap: 14px; grid-template-columns: 1fr; }
  .ih-acard { padding: 16px 20px 20px; }
  .ih-acard h3 { font-size: 26px; }
  .ih-min { text-align: right; }
  /* v21: the Entity card matches Individual and Joint. The tablet rule's align-items:start leaked in
     here and shrank its mark to the drawing's own width. */
  .ih-agrid .ih-acard:last-child { display: flex; align-items: stretch; }
  .ih-agrid .ih-acard:last-child .ih-mark { width: 100%; height: 180px; min-height: 0; margin-bottom: 22px; }
  .ih-common { gap: 10px; padding-top: 18px; grid-template-columns: 1fr; }
  .ih-tenets { margin-top: 32px; padding-top: 22px; gap: 22px; grid-template-columns: 1fr; }
  .ih-belief { margin-top: 32px; padding-top: 22px; gap: 10px; }
  .ih-act { margin-top: 28px; }
  .ih-fgrid { padding: 40px 0 28px; grid-template-columns: 1fr; gap: 22px; }
  .ih-foot .footer-disclosures p { font-size: 12px; }
  .ih-legal { padding: 20px 0 26px; }
  .ih-flinks { gap: 0 14px; }
  .ih-tape-lab { padding: 0 12px; }
  .ih-tape-lab em { display: none; }
}

/* ===================== reduced motion: the finished, still state ===================== */
@media (prefers-reduced-motion: reduce) {
  .ih-tape-run, .ih-tape-lab i, .ih-curves svg, .ih-phil .ih-ringbg svg { animation: none; }
  .ih-st::before { transition: none; width: 100%; }
  .ih-scard, .ih-acard, .ih-go svg, .ih-rbtn, .ih-dots i { transition: none; }
  .ih-scard:hover, .ih-acard:hover { transform: none; }
}
.ih-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
