/* Amergent Partners — styles shared by every page: base, controls, navigation, inner-page
   scaffolding (hero, anchor bar, notes), footer and the investment dialog.
   Built on the Modernist design system (modernist.css): only its tokens, no new colors.
   Mobile-first: base rules target phones; breakpoints are listed in css/tokens.css.
   At 1440px everything renders exactly as the original desktop design.
   Page-specific styles live in css/home.css and css/pages/<page>.css. */

html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); }
a { color: inherit; }
img, svg, video { max-width: 100%; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.ic--thin { stroke-width: 1.75; }
.ic--lock { stroke-width: 1.6; stroke-linecap: butt; }
.ic--social,
.ic--contact { stroke-width: 1.75; stroke-linecap: butt; }
.ic--info { stroke: var(--color-neutral-500); stroke-width: 1.5; stroke-linecap: butt; }

.page {
  display: flex; flex-direction: column; width: 100%;
  font-family: var(--font-body); color: var(--color-text); background: var(--color-bg);
}

.muted { color: var(--color-neutral-600); }

/* Responsive photo: <picture class="… media-fill"> filled edge to edge by its <img>. */
.media-fill { display: block; }
.media-fill > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Shared type & controls ─────────────────────────────────────────── */

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-800);
}
.eyebrow__rule { display: block; flex: none; width: 48px; height: 1px; background: var(--color-text); }
.eyebrow__rule--56 { width: 56px; transform-origin: left; }
.eyebrow--wide { gap: 18px; letter-spacing: 0.1em; }
.eyebrow--nowrap { white-space: nowrap; }
.eyebrow--light { color: inherit; font-size: inherit; letter-spacing: inherit; }
.eyebrow--light .eyebrow__rule { background: var(--color-bg); }

.kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-800); }

.display-2 {
  font-size: var(--fs-h2); font-weight: 400; line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 0 -0.04em;
  text-wrap: balance;
}
.display-2 > span { display: block; }

.body-17 { font-size: 17px; line-height: 1.6; margin: 0; color: var(--color-neutral-800); text-wrap: pretty; }
.body-17--480 { max-width: 480px; }

.btn-light, .btn-dark {
  display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none;
}
.btn-light { background: var(--color-bg); color: var(--color-text); }
.btn-light--hero { justify-content: space-between; gap: 28px; height: 56px; padding: 0 22px; font-size: 16px; }
.btn-light--lg { flex: none; justify-content: space-between; gap: 32px; padding: 20px 24px; font-size: 16px; }
.btn-light--md { justify-content: space-between; gap: 32px; padding: 18px 22px; font-size: 15px; }
.btn-dark { gap: 24px; padding: 14px 18px; font-size: 14px; background: var(--color-text); color: var(--color-bg); }

/* Underlined text links. Below lg they grow to a 44px touch target; the text keeps sitting on its rule. */
.link-arrow {
  align-self: flex-start; display: inline-flex; align-items: flex-end; gap: 12px; min-height: 44px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--color-text);
  padding-bottom: 6px; border-bottom: 2px solid var(--color-text);
}
.link-arrow .ic { margin-bottom: 2px; }
.link-arrow--none { flex: none; }

.link-thin {
  display: flex; align-items: flex-end; gap: 10px; min-height: 44px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--color-text);
  padding-bottom: 4px; border-bottom: 1px solid var(--color-text);
}
.link-thin .ic { margin-bottom: 1px; }
.link-thin--15 { align-self: flex-start; font-size: 15px; }

@media (min-width: 1024px) {
  .link-arrow { align-items: center; min-height: 0; }
  .link-arrow .ic { margin-bottom: 0; }
  .link-thin { align-items: center; min-height: 0; }
  .link-thin .ic { margin-bottom: 0; }
}

@media (hover: hover) {
  .btn-light:hover { background: var(--color-neutral-300); color: var(--color-text); }
  .btn-dark:hover { background: var(--color-neutral-800); color: var(--color-bg); }
  .link-arrow:hover { color: var(--color-neutral-700); border-color: var(--color-neutral-700); }
  .link-thin:hover { color: var(--color-neutral-800); }
  .link-thin--15:hover { color: var(--color-neutral-700); }
}

.pill { font-size: 12px; font-weight: 600; }
.pill--solid { padding: 4px 10px; background: var(--color-text); color: var(--color-bg); }
.pill--outline { padding: 3px 9px; border: 1px solid var(--color-text); }
.pill--row { display: flex; align-items: center; gap: 8px; padding: 5px 10px; }
.pill__dot { display: block; width: 6px; height: 6px; background: var(--color-bg); }

/* ── Navigation ─────────────────────────────────────────────────────── */

/* Below lg: logo, the "Invertir" button (from sm) and a menu button that opens .mnav.
   From lg: the original horizontal navigation with mega menus. */
.site-nav {
  position: sticky; top: 0; z-index: 8;
  height: calc(var(--nav-h) + var(--safe-top)); margin-bottom: calc(-1 * (var(--nav-h) + var(--safe-top)));
  color: var(--color-bg); pointer-events: none;
}
.site-nav__bar {
  position: absolute; top: 0; left: 0; right: 0; height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top); pointer-events: auto;
}
.site-nav__bg {
  position: absolute; inset: 0;
  background: color-mix(in srgb, color-mix(in srgb, black 30%, var(--color-text)) 94%, transparent);
  backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  opacity: 0; transition: opacity 500ms ease;
}
.site-nav.is-solid .site-nav__bg,
.site-nav.is-open .site-nav__bg,
.site-nav.is-menu .site-nav__bg { opacity: 1; }

.site-nav__inner {
  position: relative; height: 100%;
  padding: 0 max(var(--pad-x-wide), env(safe-area-inset-right, 0px)) 0 max(var(--pad-x-wide), env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px;
}
.site-nav__start { justify-self: start; }
.site-nav__logo { display: block; }
.site-nav__logo img { display: block; height: 56px; width: auto; }

.site-nav__links { display: none; }
.site-nav__link {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 15px; text-decoration: none; color: inherit; white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0% 1px;
  transition: background-size 400ms cubic-bezier(.2,.7,.2,1);
}
.site-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; }
.site-nav__chevron { stroke-width: 2.5; opacity: 0.6; }

.site-nav__cta {
  display: none; justify-self: end; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px; padding: 13px 18px; font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--color-bg); color: var(--color-text);
  transition: padding 600ms cubic-bezier(.2,.7,.2,1), background-color 300ms ease;
}
.site-nav.is-solid .site-nav__cta { padding: 12px 16px; }

/* Menu button: two rules that cross into an X while the menu is open. */
.site-nav__toggle {
  position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  margin-right: -10px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer;
}
.site-nav__burger { position: relative; display: block; width: 24px; height: 12px; }
.site-nav__burger span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), top 300ms cubic-bezier(.2,.7,.2,1);
}
.site-nav__burger span:first-child { top: 0; }
.site-nav__burger span:last-child { top: 10px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__burger span:first-child { top: 5px; transform: rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__burger span:last-child { top: 5px; transform: rotate(-45deg); }

.site-nav__panel { display: none; }

@media (min-width: 480px) {
  .site-nav__cta { display: flex; }
}

@media (min-width: 768px) {
  .site-nav__logo img { height: 68px; }
}

@media (min-width: 1024px) {
  .site-nav__inner { grid-template-columns: 1fr auto 1fr; gap: 0; }
  .site-nav__logo img { height: 96px; }
  .site-nav__links { display: flex; gap: 24px; flex-wrap: nowrap; height: 100%; align-items: center; }
  .site-nav__toggle { display: none; }

  .site-nav__panel {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    color: var(--color-bg); background: color-mix(in srgb, var(--color-text) 96%, transparent);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity 280ms ease, transform 420ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 420ms;
  }
  .site-nav.is-open .site-nav__panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
}

@media (min-width: 1280px) {
  .site-nav__links { gap: 36px; }
}

@media (hover: hover) {
  .site-nav__link:hover { background-size: 100% 1px; color: inherit; }
  .site-nav__cta:hover { background: var(--color-neutral-300); color: var(--color-text); }
}

/* Mega menus (lg+, inside .site-nav__panel). */
.mega {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,1fr); gap: 32px;
  padding: 44px var(--pad-x-wide) 52px; border-top: 1px solid var(--color-neutral-800);
}
.mega[hidden] { display: none; }
.mega__intro { display: flex; flex-direction: column; gap: 16px; }
.mega__n { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-500); }
.mega__label { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.05; letter-spacing: -0.025em; }
.mega__desc { font-size: 14px; line-height: 1.6; color: var(--color-neutral-400); max-width: 280px; text-wrap: pretty; }
.mega__items { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; align-content: start; }
.mega__item {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 132px; padding: 22px;
  text-decoration: none; color: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 5%, transparent); transition: background 300ms;
}
.mega__item-t { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; }
.mega__item-d { font-size: 13px; line-height: 1.5; color: var(--color-neutral-400); }
.mega__item[aria-current="page"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--color-bg); }
.mega__current {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-bg);
}
.mega__current::before { content: ""; display: block; width: 6px; height: 6px; background: var(--color-bg); }
.mega__feature {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 22px 24px;
  text-decoration: none; color: var(--color-text); background: var(--color-bg);
}
.mega__feature-k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.mega__feature-body { display: flex; flex-direction: column; gap: 6px; }
.mega__feature-t { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.1; letter-spacing: -0.02em; }
.mega__feature-d { font-size: 13px; line-height: 1.5; color: var(--color-neutral-700); }
.mega__feature-l { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }

@media (min-width: 1280px) {
  .mega { gap: 56px; }
}

@media (hover: hover) {
  .mega__item:hover { background: color-mix(in srgb, var(--color-bg) 12%, transparent); color: var(--color-bg); }
  .mega__feature:hover { background: var(--color-neutral-300); color: var(--color-text); }
}

.site-nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; overflow: hidden; }
.site-nav__progress > div { height: 100%; width: 0%; background: var(--color-bg); opacity: 0; transition: opacity 500ms ease; }

/* ── Mobile menu (below lg) ─────────────────────────────────────────── */

.mnav { position: fixed; inset: 0; z-index: 7; }
.mnav[hidden] { display: none; }
.mnav__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-text) 60%, transparent); }
.mnav__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 100%;
  display: flex; flex-direction: column; gap: 32px;
  padding: calc(var(--nav-h) + var(--safe-top) + 16px) var(--pad-x-wide) calc(32px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, black 30%, var(--color-text)); color: var(--color-bg);
  overflow-y: auto; overscroll-behavior: contain;
}
.mnav__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-neutral-800); }
.mnav__item { border-bottom: 1px solid var(--color-neutral-800); }
.mnav__link,
.mnav__acc {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px;
  padding: 12px 0; border: 0; background: transparent; color: inherit; text-align: left; text-decoration: none;
  font-family: inherit; font-size: clamp(24px, 3.756vw + 9.92px, 32px); line-height: 1.15; letter-spacing: -0.02em;
  cursor: pointer;
}
.mnav__link[aria-current="page"],
.mnav__acc.is-current { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* Plus that turns into a minus while its section is open. */
.mnav__pm { position: relative; flex: none; width: 16px; height: 16px; }
.mnav__pm::before,
.mnav__pm::after { content: ""; position: absolute; background: currentColor; transition: transform 250ms ease; }
.mnav__pm::before { left: 0; right: 0; top: 7px; height: 2px; }
.mnav__pm::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.mnav__acc[aria-expanded="true"] .mnav__pm::after { transform: scaleY(0); }
.mnav__sub { list-style: none; margin: 0; padding: 0 0 16px; }
.mnav__sub[hidden] { display: none; }
.mnav__sublink {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 0;
  font-size: 18px; text-decoration: none; color: var(--color-neutral-300);
}
.mnav__sublink small { font-size: 13px; color: var(--color-neutral-500); }
.mnav__sublink[aria-current="page"] { color: var(--color-bg); }
.mnav__sublink[aria-current="page"]::after {
  content: "Página actual"; align-self: flex-start; margin-top: 4px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-400);
}
.mnav__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 0 22px;
  font-size: 16px; font-weight: 600; text-decoration: none; background: var(--color-bg); color: var(--color-text);
}
.mnav__foot { display: flex; flex-direction: column; margin-top: auto; font-size: 15px; color: var(--color-neutral-400); }
.mnav__foot a { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--color-neutral-300); }
.mnav__foot p { margin: 12px 0 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-500); }
html.is-menu-open { overflow: hidden; }

@media (min-width: 768px) {
  .mnav__panel { width: min(560px, 100%); }
}

@media (min-width: 1024px) {
  .mnav { display: none !important; }
}

/* ── Inner pages: shared scaffolding ────────────────────────────────── */

/* 12-column grid from lg; a single column below. Pages place items with grid-column inside
   an lg+ media query so they stack naturally on small screens. */
.grid-12 { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }

@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 0 24px; }
}

/* Section anchors land below the nav + anchor bar (JS scrolls to the same spot). */
.page--inner section[id] { scroll-margin-top: calc(var(--nav-h) + var(--safe-top) + var(--anchor-h) - 2px); }

/* Page hero: dark photo band with breadcrumb, eyebrow, title and an aside.
   Per page: set --hero-h / --hero-min and the photo in the page stylesheet. It never exceeds the
   screen height when it doesn't have to, and grows when its copy needs more room. */
.page-hero {
  position: relative; overflow: hidden;
  min-height: min(max(var(--hero-h, 55vh), var(--hero-min, 460px)), 100vh);
  min-height: min(max(var(--hero-h, 55vh), var(--hero-min, 460px)), 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--color-text); color: var(--color-bg);
}
.page-hero__media { position: absolute; inset: 0; opacity: 0.7; }
.page-hero__img { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--color-text) 80%, transparent) 0%,
      color-mix(in srgb, var(--color-text) 30%, transparent) 40%,
      color-mix(in srgb, var(--color-text) 90%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--color-text) 70%, transparent) 0%, transparent 60%);
}
.page-hero__body {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr); align-items: end; gap: 32px;
  /* top padding clears the nav and the breadcrumb */
  padding: calc(var(--nav-h) + var(--safe-top) + 84px) var(--pad-x) clamp(40px, 2.254vw + 31.55px, 64px);
}
.page-hero__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.page-hero__title {
  font-size: clamp(40px, 6vw, 96px); font-weight: 400; line-height: 1; letter-spacing: -0.03em; margin: 0 0 0 -0.05em;
  text-wrap: balance;
}
.page-hero__title > span { display: block; }
.page-hero__title > .muted { color: var(--color-neutral-500); }
.page-hero__aside {
  display: flex; flex-direction: column; gap: 10px; padding-top: 20px; max-width: 60ch;
  border-top: 1px solid color-mix(in srgb, var(--color-bg) 30%, transparent);
}
.page-hero__aside p { margin: 0; font-size: clamp(16px, 0.188vw + 15.3px, 18px); line-height: 1.55; color: color-mix(in srgb, var(--color-bg) 90%, transparent); text-wrap: pretty; }
.page-hero__figure { font-size: clamp(36px, 1.127vw + 31.78px, 48px); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.page-hero__figure-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-300); }
.eyebrow--hero { color: var(--color-neutral-300); }
.eyebrow--hero .eyebrow__rule { background: var(--color-bg); }

.crumbs {
  position: absolute; top: calc(var(--nav-h) + var(--safe-top) + 14px); left: var(--pad-x); right: var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px;
  font-size: 12px; color: var(--color-neutral-400);
}
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin: 0 -8px; text-decoration: none; color: var(--color-neutral-400); }
.crumbs [aria-current="page"] { color: var(--color-bg); }

@media (min-width: 1024px) {
  .page-hero__body { grid-template-columns: minmax(0,1fr) auto; gap: 64px; }
  .page-hero__copy { gap: 28px; }
  .page-hero__title { letter-spacing: -0.035em; }
  .page-hero__aside { min-width: 260px; }
  .crumbs { top: calc(var(--nav-h) + var(--safe-top) + 36px); right: auto; flex-wrap: nowrap; white-space: nowrap; }
  .crumbs a { display: inline; min-height: 0; padding: 0; margin: 0; }
}

@media (hover: hover) {
  .crumbs a:hover { color: var(--color-bg); }
}

/* Anchor bar: sticky in-page navigation shown once the hero has scrolled away.
   On small screens the links scroll sideways. */
.anchorbar { position: sticky; top: calc(var(--nav-h) + var(--safe-top)); z-index: 6; height: 0; }
.anchorbar__bar {
  position: absolute; left: 0; right: 0; top: 0; height: var(--anchor-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 var(--pad-x);
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-neutral-300);
  opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
  transition: opacity 400ms ease, transform 500ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 500ms;
}
.anchorbar.is-visible .anchorbar__bar { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.anchorbar__title { display: none; flex: none; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); }
.anchorbar__links {
  display: flex; gap: 24px; height: 100%; min-width: 0; flex: 1;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.anchorbar__links::-webkit-scrollbar { display: none; }
.anchorbar__links a {
  position: relative; flex: none; display: flex; align-items: center; gap: 8px; height: 100%; min-height: 44px; white-space: nowrap;
  font-size: 14px; text-decoration: none; color: var(--color-neutral-700); transition: color 300ms;
}
.anchorbar__links a.is-active { color: var(--color-text); }
.anchorbar__links a > span { font-size: 11px; color: var(--color-neutral-600); }
.anchorbar__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-text); }

@media (min-width: 768px) {
  .anchorbar__title { display: block; }
}

@media (min-width: 1024px) {
  .anchorbar__links { flex: none; gap: 36px; overflow: visible; }
  .anchorbar__links a.is-active::after { bottom: -1px; }
}

@media (hover: hover) {
  .anchorbar__links a:hover { color: var(--color-text); }
}

/* Regulatory note band ("Aviso legal"). */
.reg-note { padding: clamp(48px, 2.254vw + 39.55px, 72px) var(--pad-x); background: var(--color-surface); }
.reg-note__text { margin: 0; max-width: 75ch; font-size: var(--fs-14); line-height: 1.7; color: var(--color-neutral-800); text-wrap: pretty; }

@media (min-width: 1024px) {
  .reg-note__label { grid-column: 1 / span 3; }
  .reg-note__text { grid-column: 4 / span 8; max-width: none; }
}

/* Closing link list (large rows with an underline that grows on hover). */
.link-rows { display: flex; flex-direction: column; border-top: 1px solid var(--color-neutral-300); }
.link-rows a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0;
  font-size: clamp(19px, 0.282vw + 17.94px, 22px); letter-spacing: -0.01em; text-decoration: none; color: var(--color-text);
  border-bottom: 1px solid var(--color-neutral-300);
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0% 1px; transition: background-size 500ms cubic-bezier(.2,.7,.2,1);
}

@media (hover: hover) {
  .link-rows a:hover { background-size: 100% 1px; color: var(--color-text); }
}

/* Photo cut with the brand's slanted edge. */
.slant-photo { --focus: 58% 50%; position: relative; overflow: hidden; background: var(--color-surface); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.slant-photo > picture { position: absolute; inset: 0; }

/* Status chip (fund state). */
.status-chip {
  align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 4px 10px;
  font-size: 12px; line-height: 1.3; color: var(--color-text); border: 1px solid var(--color-neutral-400);
}
.status-chip__dot { flex: none; display: block; width: 6px; height: 6px; border: 1px solid var(--color-text); }
.status-chip__dot.is-live { background: var(--color-text); }

/* Wide tables scroll sideways inside this region on small screens (role="region" tabindex="0"). */
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline-offset: 4px; }

/* ── Footer ─────────────────────────────────────────────────────────── */

/* Phones: everything stacked, link columns in pairs. md: brand beside contact.
   xl: the original 12-column layout. */
.footer { position: relative; background: var(--color-text); color: var(--color-bg); font-family: var(--font-body); }
.footer__grid {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 48px 24px;
  padding: clamp(56px, 3.005vw + 44.73px, 88px) var(--pad-x) clamp(40px, 2.254vw + 31.55px, 64px);
}
.footer__brand { display: flex; flex-direction: column; gap: 24px; }
.footer__logo { align-self: flex-start; display: block; }
.footer__logo img { display: block; height: 96px; width: auto; }
.footer__brand p { margin: 0; max-width: 320px; font-size: 15px; line-height: 1.55; color: var(--color-neutral-400); text-wrap: pretty; }
.footer__social { display: flex; align-items: center; gap: 4px; margin-left: -12px; }
.footer__social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--color-bg); }

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 24px; }
.footer__cols nav { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.footer__h { padding-bottom: 6px; font-size: 16px; font-weight: 600; }
.footer__cols a {
  align-self: flex-start; display: flex; align-items: center; min-height: 44px;
  font-size: var(--fs-14); line-height: 1.4; text-decoration: none; color: var(--color-neutral-300); transition: color 200ms ease;
}

.footer__contact { display: flex; flex-direction: column; gap: 0; }
.footer__contact .footer__h { margin-bottom: 4px; }
.footer__contact a {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: var(--fs-14); text-decoration: none; color: var(--color-neutral-300);
}
.footer__tel { font-variant-numeric: tabular-nums; }
.footer__mail { overflow-wrap: anywhere; } /* breaks after the @ (<wbr>) before splitting words */
.footer__contact .footer__addr { align-items: flex-start; padding: 12px 0; line-height: 1.45; }
.footer__addr .ic { margin-top: 2px; }
.footer__status { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--color-neutral-500); }
.footer__status-dot { display: block; flex: none; width: 7px; height: 7px; border: 1px solid var(--color-bg); }
.footer__status-dot.is-open { background: var(--color-bg); }

.footer__legal {
  margin: 0 var(--pad-x); padding: 0 0 28px; max-width: 960px;
  font-size: 12px; line-height: 1.6; color: var(--color-neutral-500); text-wrap: pretty;
}
.footer__bottom {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 24px var(--pad-x) calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-neutral-700); font-size: 13px; color: var(--color-neutral-400);
}
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--color-neutral-300); }
.footer__top {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  border: 1px solid var(--color-neutral-700); background: transparent;
  font-family: inherit; font-size: 12px; color: var(--color-bg); cursor: pointer;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__cols { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
}

@media (min-width: 1024px) {
  .footer__logo img { height: 128px; }
  .footer__legal { font-size: 11px; }
  .footer__cols nav { gap: 14px; }
  .footer__cols a,
  .footer__contact a { min-height: 0; }
  .footer__links a { display: inline; min-height: 0; }
  .footer__contact { gap: 14px; }
  .footer__contact .footer__h { margin-bottom: 0; }
  .footer__contact .footer__addr { padding: 0; }
  .footer__status { margin-top: 0; }
  .footer__social { gap: 20px; margin-left: 0; }
  .footer__social a { width: auto; height: auto; }
  .footer__links { gap: 32px; }
  .footer__top { height: 32px; padding: 0 12px; }
}

@media (min-width: 1280px) {
  .footer__grid { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 0 24px; }
  .footer__brand { grid-column: 1 / span 4; }
  .footer__cols { grid-column: 5 / span 6; grid-row: auto; gap: 24px; }
  .footer__contact { grid-column: 11 / span 2; }
}

@media (hover: hover) {
  .footer__social a:hover { color: var(--color-neutral-400); }
  .footer__cols a:hover,
  .footer__contact a:hover,
  .footer__links a:hover { color: var(--color-bg); }
  .footer__top:hover { border-color: var(--color-bg); }
}

/* ── Investment request dialog ──────────────────────────────────────── */

/* Below lg (or on short screens) the dialog fills the screen and scrolls as one column:
   steps on top, the fund summary and fine print after the form, actions pinned to the bottom.
   From lg it is the original two-column card. */
.im { position: fixed; inset: 0; z-index: 60; overscroll-behavior: contain; font-family: var(--font-body); color: var(--color-text); }
.im[hidden] { display: none; }
.im a { color: inherit; }
.im__backdrop {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--color-text) 72%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.im__dialog {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-bg); box-shadow: var(--shadow-lg);
}
.im__dialog:focus { outline: none; }

.im__aside {
  position: relative; order: 2; display: flex; flex-direction: column; gap: 20px;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  background-color: var(--color-text); color: var(--color-bg);
}
.im__brand,
.im__steps { display: none; }
.im__brand { flex-direction: column; gap: clamp(12px, 2.6vh, 28px); }
.im__brand img { display: block; height: clamp(40px, 7.4vh, 88px); width: auto; align-self: flex-start; }
.im__eyebrow {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-400);
}
.im__eyebrow > span { display: block; flex: none; width: 28px; height: 1px; background: var(--color-bg); }

.im__steps { list-style: none; margin: 0; padding: 0; flex-direction: column; border-top: 1px solid var(--color-neutral-700); }
.im__step {
  display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 12px;
  padding: clamp(6px, 1.2vh, 14px) 0; border-bottom: 1px solid var(--color-neutral-700);
  color: var(--color-neutral-600); transition: color 300ms ease;
}
.im__step.is-done { color: var(--color-neutral-300); }
.im__step.is-current { color: var(--color-bg); }
.im__step-n { font-size: 12px; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.im__step-name { font-size: 16px; }
.im__step-dot { display: block; width: 8px; height: 8px; border: 1px solid currentColor; }
.im__step.is-done .im__step-dot,
.im__step.is-current .im__step-dot { background: currentColor; }

.im__aside-foot { margin-top: auto; display: flex; flex-direction: column; gap: clamp(10px, 2vh, 20px); }
.im__fund { display: flex; flex-direction: column; gap: 16px; }
.im__fund-head { display: flex; align-items: center; gap: 14px; }
.im__fund-num {
  display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
  border: 1px solid var(--color-bg); font-size: 18px; letter-spacing: -0.02em;
}
.im__fund-meta { display: flex; flex-direction: column; gap: 4px; }
.im__fund-name { font-size: 18px; letter-spacing: -0.01em; }
.im__fund-reg { font-size: 12px; letter-spacing: 0.08em; color: var(--color-neutral-400); }
.im__summary { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--color-neutral-700); }
.im__summary > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: clamp(7px, 1.2vh, 12px) 0; border-bottom: 1px solid var(--color-neutral-700);
}
.im__summary > div.is-total { align-items: baseline; padding: clamp(8px, 1.4vh, 14px) 0 0; border-bottom: 0; }
.im__summary dt { flex: none; white-space: nowrap; font-size: 12px; color: var(--color-neutral-400); }
.im__summary dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.im__summary .is-total dd { font-size: clamp(17px, min(1.7vw, 3vh), 24px); letter-spacing: -0.02em; }
.im__fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--color-neutral-400); text-wrap: pretty; }

.im__main { position: relative; order: 1; display: flex; flex-direction: column; flex: 1 0 auto; min-width: 0; }
.im__header {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: calc(8px + var(--safe-top)) var(--gutter) 8px; background: var(--color-bg);
}
.im__step-label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.im__close {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; flex: none;
  background: transparent; border: 0; color: var(--color-text); cursor: pointer;
}
.im__body { flex: 1 0 auto; padding: 8px var(--gutter) 28px; }
.im__footer {
  position: sticky; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-neutral-300); background: var(--color-bg);
}

@media (min-width: 1024px) and (min-height: 600px) {
  .im__dialog {
    inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(1120px, calc(100vw - 64px)); height: min(760px, calc(100vh - 32px));
    display: grid; grid-template-columns: minmax(280px, 32%) minmax(0,1fr); overflow: hidden;
  }
  .im__aside {
    order: 0; gap: clamp(12px, 2.6vh, 36px);
    padding: clamp(18px, 3.2vh, 36px) 28px clamp(16px, 2.8vh, 32px);
    background-image:
      linear-gradient(180deg,
        color-mix(in srgb, var(--color-text) 92%, transparent) 0%,
        color-mix(in srgb, var(--color-text) 82%, transparent) 40%,
        color-mix(in srgb, var(--color-text) 88%, transparent) 75%,
        color-mix(in srgb, var(--color-text) 96%, transparent) 100%),
      image-set(url("../assets/img/modal-torres-vidrio-bn-768.avif") type("image/avif"),
                url("../assets/img/modal-torres-vidrio-bn-768.webp") type("image/webp"));
    background-size: cover; background-position: center 40%; overflow-y: auto;
  }
  .im__brand,
  .im__steps { display: flex; }
  .im__fine { font-size: 11px; }
  .im__main { order: 0; flex: none; min-height: 0; }
  .im__header { position: static; padding: clamp(16px, 3vh, 28px) clamp(24px, 4vw, 48px) 0; background: none; }
  .im__close { width: 44px; height: 44px; }
  .im__body {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: clamp(10px, 2vh, 20px) clamp(24px, 4vw, 48px) clamp(14px, 2.6vh, 32px);
  }
  .im__footer {
    position: static; gap: 24px;
    padding: clamp(14px, 2.5vh, 20px) clamp(24px, 4vw, 48px) clamp(16px, 3vh, 28px); background: none;
  }
}

@media (hover: hover) {
  .im__close:hover { background: var(--color-surface); }
}

.im-step { display: flex; flex-direction: column; gap: clamp(14px, 2.8vh, 32px); }
.im-step--form { gap: clamp(10px, 1.8vh, 20px); }
.im-step--done { gap: 28px; padding-top: 12px; }
.im-intro { display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 12px); }
.im-h { margin: 0 0 0 -0.03em; font-size: clamp(28px, 5vh, 44px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.im-p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--color-neutral-700); text-wrap: pretty; }
.im-p--wide { max-width: 560px; }
.im-grid2 { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }

.im-fund {
  position: relative; display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 28px);
  padding: clamp(18px, 3vh, 28px); min-height: clamp(190px, 34vh, 260px);
  text-align: left; font-family: inherit; color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-neutral-300); cursor: pointer;
  transition: background 250ms ease, box-shadow 250ms ease;
}
.im-fund.is-on { background: var(--color-surface); border-color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text); }
.im-fund__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.im-fund__num {
  flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  font-size: 26px; letter-spacing: -0.02em; border: 1px solid var(--color-text);
  transition: background 250ms ease, color 250ms ease;
}
.im-fund.is-on .im-fund__num { background: var(--color-text); color: var(--color-bg); }
.im-fund__badge {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 10px;
  font-size: 12px; border: 1px solid var(--color-neutral-500); white-space: nowrap;
}
.im-fund__live { display: block; width: 6px; height: 6px; border: 1px solid var(--color-text); }
.im-fund__live.is-live { background: var(--color-text); }
.im-fund__id { display: flex; flex-direction: column; gap: 6px; }
.im-fund__name { font-size: clamp(20px, 2vw, 26px); line-height: 1.1; letter-spacing: -0.02em; }
.im-fund__reg { font-size: 13px; letter-spacing: 0.06em; color: var(--color-neutral-700); }
.im-fund__nums { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--color-neutral-300); }
.im-fund__nums > span { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 0 0; }
.im-fund__nums > span + span { padding: 14px 0 0 12px; border-left: 1px solid var(--color-neutral-300); }
.im-k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.im-v { font-size: 17px; font-variant-numeric: tabular-nums; }

.im-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.im-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-800); }
.im-stepper { display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; height: clamp(52px, 8vh, 72px); border: 1px solid var(--color-text); }
.im-stepper button {
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--color-text); cursor: pointer;
}
.im-stepper button:first-child { border-right: 1px solid var(--color-neutral-300); }
.im-stepper button:last-child { border-left: 1px solid var(--color-neutral-300); }
.im-money {
  display: flex; align-items: center; gap: 12px; height: clamp(52px, 8vh, 72px); padding: 0 18px;
  border: 1px solid var(--color-text);
}
.im-stepper:focus-within,
.im-money:focus-within { box-shadow: inset 0 0 0 1px var(--color-text); }
.im-money__sym { font-size: 16px; color: var(--color-neutral-700); }
.im-big-input {
  min-width: 0; padding: 0 16px; border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--color-text);
}
.im-money .im-big-input { flex: 1; padding: 0; }

.im-quick { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.im-quick__label { font-size: 13px; color: var(--color-neutral-700); }
.im-quick__opts { display: flex; flex-wrap: wrap; }
.im-quick__opts button {
  min-width: 56px; min-height: 44px; padding: 9px 14px; margin-left: -1px;
  border: 1px solid var(--color-text); background: var(--color-bg); color: var(--color-text);
  font-family: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.im-quick__opts button.is-on { background: var(--color-text); color: var(--color-bg); }
.im-alert {
  margin: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  font-size: 14px; line-height: 1.5; background: var(--color-accent-100); color: var(--color-accent-800);
}
.im-total {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: clamp(12px, 2vh, 20px) 0;
  border-top: 1px solid var(--color-text); border-bottom: 1px solid var(--color-neutral-300);
}
.im-total__l { display: flex; flex-direction: column; gap: 4px; }
.im-total__k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-800); }
.im-total__calc { font-size: 13px; color: var(--color-neutral-700); }
.im-total__r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.im-total__v { font-size: clamp(24px, 4vh, 36px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.im-total__rest { font-size: 12px; color: var(--color-neutral-700); }
.im-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--color-neutral-700); text-wrap: pretty; }

.im-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.im-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.im-f--full { grid-column: 1 / -1; }
.im-f__label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.im-seg { display: flex; }
.im-seg button {
  flex: 1; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; margin-left: -1px;
  border: 1px solid var(--color-text); background: transparent; color: var(--color-text);
  font-family: inherit; font-size: 15px; text-align: left; cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.im-seg button.is-on { background: var(--color-text); color: var(--color-bg); }
.im-seg.is-invalid button { border-color: var(--color-accent-700); }
.im-seg__dot { display: block; flex: none; width: 10px; height: 10px; border: 1px solid currentColor; }
.im-seg button.is-on .im-seg__dot { background: currentColor; }
/* 16px+ inputs stop iOS from zooming into the field. */
.im-input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--color-neutral-500); border-radius: 0; background: var(--color-bg); outline: none;
  font-family: inherit; font-size: 16px; color: var(--color-text);
}
.im-input.is-invalid { border-color: var(--color-accent-700); }
.im-input:focus { border-color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text); }
.im-select { position: relative; display: block; }
.im-select select { padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.im-select .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.im-err { font-size: 12px; color: var(--color-accent-700); }

.im-checks { display: flex; flex-direction: column; gap: 8px; padding-top: clamp(8px, 1.4vh, 16px); border-top: 1px solid var(--color-neutral-300); }
.im-check {
  display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 14px; min-height: 44px; padding: 10px 0;
  background: transparent; border: 0; font-family: inherit; font-size: 14px; line-height: 1.45;
  text-align: left; color: var(--color-text); cursor: pointer;
}
.im-check__box {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid var(--color-text); color: var(--color-bg);
}
.im-check__box .ic { stroke-width: 3; opacity: 0; }
.im-check[aria-checked="true"] .im-check__box { background: var(--color-text); }
.im-check[aria-checked="true"] .im-check__box .ic { opacity: 1; }
.im-check.is-invalid .im-check__box { border-color: var(--color-accent-700); }
.im-check__text { text-wrap: pretty; }

.im-done-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--color-text); color: var(--color-bg); }
.im-done-copy { display: flex; flex-direction: column; gap: 14px; }
.im-done-h { margin: 0 0 0 -0.03em; font-size: clamp(36px, 1.502vw + 30.38px, 52px); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; }
.im-done-h > span { display: block; }
.im-ref { color: var(--color-text); font-variant-numeric: tabular-nums; }
.im-next-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0,1fr); border-top: 1px solid var(--color-text);
}
.im-next-steps li { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--color-neutral-300); }
.im-next-steps li > span:nth-child(1) { font-size: 12px; letter-spacing: 0.1em; color: var(--color-neutral-700); }
.im-next-steps li > span:nth-child(2) { font-size: 18px; letter-spacing: -0.01em; }
.im-next-steps li > span:nth-child(3) { font-size: 15px; line-height: 1.5; color: var(--color-neutral-700); }

.im-back {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 0; background: transparent; border: 0;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--color-text); cursor: pointer;
}
.im-next {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-width: min(240px, 100%); height: clamp(48px, 7vh, 56px); padding: 0 20px; white-space: nowrap;
  background: var(--color-text); color: var(--color-bg); border: 0;
  font-family: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background 250ms ease, opacity 250ms ease;
}
.im-next[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.im-next--close { min-width: 160px; } /* a % here would resolve against the shrink-wrapped actions row and overflow */
.im-done-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px; }
.im-link {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding-bottom: 3px; white-space: nowrap;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--color-text); border-bottom: 1px solid var(--color-text);
}

@media (min-width: 600px) {
  .im-grid2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .im-form { grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(8px, 1.5vh, 16px) 16px; }
  .im-next-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .im-next-steps li { padding: 22px 20px 0; border-bottom: 0; border-left: 1px solid var(--color-neutral-300); }
  .im-next-steps li:first-child { padding: 22px 20px 0 0; border-left: 0; }
  .im-next-steps li:last-child { padding: 22px 0 0 20px; }
  .im-next-steps li > span:nth-child(3) { font-size: 14px; }
}

@media (min-width: 1024px) and (min-height: 600px) {
  .im-step--done { gap: 36px; }
  .im-p { font-size: clamp(14px, 2vh, 16px); }
  .im-quick__opts { flex-wrap: nowrap; }
  .im-quick__opts button { min-width: 64px; min-height: 0; }
  .im-seg button { height: clamp(40px, 5.6vh, 48px); font-size: 14px; }
  .im-input { height: clamp(40px, 5.6vh, 48px); font-size: 15px; }
  .im-check { min-height: 0; padding: 0; font-size: 13px; }
  .im-back { min-height: 0; }
  .im-next { gap: 32px; padding: 0 22px; height: clamp(46px, 7vh, 56px); }
  .im-next--close { min-width: 200px; }
  .im-done-actions { flex-wrap: nowrap; gap: 28px; }
  .im-link { min-height: 0; }
}

@media (hover: hover) {
  .im-fund:hover { background: var(--color-surface); }
  .im-stepper button:hover { background: var(--color-surface); }
  .im-back:hover { color: var(--color-neutral-700); }
  .im-next:hover { background: var(--color-neutral-800); }
  .im-link:hover { color: var(--color-neutral-700); }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .site-nav__panel, .site-nav__bg, .site-nav__cta, .site-nav__progress > div, .anchorbar__bar,
  .site-nav__burger span, .mnav__pm::before, .mnav__pm::after { transition: none; }
}
