/* Homepage-only composition built on the shared Alverion visual foundation. */
.home-shell {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}
.home-section {
  padding: 6.5rem 0;
}
.home-eyebrow {
  margin: 0 0 1rem;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-hero {
  overflow: hidden;
  padding: 5.5rem 0 6.5rem;
  background: var(--color-background);
}
.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  align-items: center;
  gap: 5rem;
}
.home-hero h1,
.home-section h2,
.home-cta h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: clamp(2.4rem, 5vw, 4.65rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.03;
}
.home-hero__lead {
  max-width: 35rem;
  margin: 1.5rem 0 2rem;
  color: var(--color-text-secondary);
  font-size: 1.08rem;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--color-secondary-blue);
  border-radius: 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.home-button--primary {
  background: var(--color-secondary-blue);
  color: #fff;
}
.home-button--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
.home-button--secondary {
  background: transparent;
  color: var(--color-secondary-blue);
}
.home-button--secondary:hover {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}
.home-button--light {
  border-color: #fff;
  background: #fff;
  color: var(--color-primary-dark);
}
.home-button--light:hover {
  background: transparent;
  color: #fff;
}
.home-hero__visual {
  position: relative;
  min-height: 28rem;
  padding: 2rem;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--color-primary-dark),
    var(--color-secondary-blue)
  );
}
.home-hero__glow {
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(219, 0, 17, 0.42);
  filter: blur(8px);
}
.home-account-panel {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  margin: 3rem auto 0;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  backdrop-filter: blur(8px);
}
.home-panel__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
}
.home-panel__status {
  color: #ffe0e3;
}
.home-panel__line,
.home-panel__balance,
.home-panel__rows span {
  display: block;
  border-radius: 0.15rem;
  background: rgba(255, 255, 255, 0.3);
}
.home-panel__line {
  width: 45%;
  height: 0.4rem;
  margin: 2.2rem 0 1.1rem;
}
.home-panel__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
}
.home-panel__balance {
  width: 70%;
  height: 1.4rem;
  margin: 0.7rem 0 2rem;
  background: #fff;
}
.home-panel__rows {
  display: grid;
  gap: 0.65rem;
}
.home-panel__rows span {
  height: 0.45rem;
}
.home-panel__rows span:nth-child(2) {
  width: 78%;
}
.home-panel__rows span:nth-child(3) {
  width: 58%;
}
.home-hero__accent-card {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 2rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 1rem;
  border-left: 3px solid var(--color-accent);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}
.home-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.home-section h2,
.home-cta h2 {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
}
.home-section__heading > p {
  max-width: 22rem;
  margin: 0;
  color: var(--color-text-secondary);
}
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.home-service-card {
  min-height: 18rem;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.home-service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  color: var(--color-text);
}
.home-service-card > i {
  color: var(--color-accent);
  font-size: 1.3rem;
}
.home-service-card h3 {
  margin: 2.7rem 0 0.7rem;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
}
.home-service-card p {
  min-height: 4.8rem;
  margin: 0 0 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.home-service-card span,
.home-text-link {
  color: var(--color-secondary-blue);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.home-service-card span i,
.home-text-link i {
  margin-left: 0.35rem;
}
.home-products {
  background: #fff;
}
.home-products__grid,
.home-paths__grid,
.home-wealth__grid,
.home-trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.home-copy {
  max-width: 31rem;
  color: var(--color-text-secondary);
}
.home-product-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}
.home-product-list > div {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: #fff;
}
.home-product-list i {
  color: var(--color-accent);
}
.home-product-list strong,
.home-product-list small {
  display: block;
}
.home-product-list strong {
  color: var(--color-primary-dark);
  font-size: 0.9rem;
}
.home-product-list small {
  margin-top: 0.2rem;
  color: var(--color-text-muted);
}
.home-paths {
  padding-top: 0;
}
.home-paths article {
  min-height: 20rem;
  padding: 2.5rem;
  background: var(--color-secondary-blue);
  color: #fff;
}
.home-paths article + article {
  background: var(--color-primary-dark);
}
.home-paths h2 {
  color: #fff;
  font-size: 2.1rem;
}
.home-paths p:not(.home-eyebrow) {
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.8);
}
.home-paths .home-text-link {
  color: #fff;
}
.home-wealth {
  background: #ededed;
}
.home-wealth__grid {
  align-items: end;
}
.home-wealth .home-eyebrow {
  color: var(--color-accent);
}
.home-wealth p:not(.home-eyebrow) {
  margin: 0 0 1.5rem;
  color: var(--color-text-secondary);
}
.home-trust__grid {
  grid-template-columns: auto minmax(0, 1fr);
  max-width: 54rem;
}
.home-trust__icon {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 1.7rem;
}
.home-trust p:not(.home-eyebrow) {
  max-width: 35rem;
  color: var(--color-text-secondary);
}
.home-cta {
  padding: 6.5rem 0;
  background: var(--color-primary-dark);
  text-align: center;
}
.home-cta .home-eyebrow {
  color: var(--color-accent);
}
.home-cta h2 {
  color: #fff;
}
.home-cta p:not(.home-eyebrow) {
  margin: 1rem auto 2rem;
  color: rgba(255, 255, 255, 0.75);
}
.home-cta .home-actions {
  justify-content: center;
}
.home-cta .home-button--secondary {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.home-cta .home-button--secondary:hover {
  border-color: #fff;
  color: #fff;
}
.home-footer {
  padding: 3.5rem 0 2rem;
  background: #fff;
  border-top: 1px solid var(--color-border);
}
.home-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
.home-footer a {
  margin-right: 1rem;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
}
.home-footer .bank-brand {
  color: var(--color-primary-dark);
}
.home-footer p {
  grid-column: 1/-1;
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem;
}
@media (max-width: 48rem) {
  .home-shell {
    width: min(100% - 2rem, 75rem);
  }
  .home-section {
    padding: 4rem 0;
  }
  .home-hero {
    padding: 3.5rem 0 4rem;
  }
  .home-hero__grid,
  .home-products__grid,
  .home-paths__grid,
  .home-wealth__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .home-hero__visual {
    min-height: 22rem;
  }
  .home-section__heading {
    display: block;
  }
  .home-section__heading > p {
    margin-top: 1rem;
  }
  .home-service-grid {
    grid-template-columns: 1fr;
  }
  .home-service-card {
    min-height: auto;
  }
  .home-service-card h3 {
    margin-top: 1.5rem;
  }
  .home-service-card p {
    min-height: auto;
  }
  .home-paths {
    padding-top: 0;
  }
  .home-paths article {
    min-height: 0;
  }
  .home-trust__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .home-footer__grid {
    grid-template-columns: 1fr;
  }
  .home-footer p {
    grid-column: auto;
  }
  .home-footer a {
    display: inline-block;
    margin-bottom: 0.6rem;
  }
}
@media (max-width: 30rem) {
  .home-hero h1 {
    font-size: 2.25rem;
  }
  .home-hero__visual {
    min-height: 18rem;
    padding: 1rem;
  }
  .home-account-panel {
    margin-top: 1.5rem;
    padding: 1.1rem;
  }
  .home-hero__accent-card {
    right: 1rem;
    bottom: 1rem;
  }
  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .home-button {
    width: 100%;
  }
  .home-section h2,
  .home-cta h2 {
    font-size: 1.85rem;
  }
  .home-paths article {
    padding: 1.75rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero__content {
    animation: alverion-fade-up 500ms ease-out both;
  }
  .home-hero__visual {
    animation: alverion-fade-up 500ms 100ms ease-out both;
  }
  .home-service-card,
  .home-button {
    transition:
      transform 200ms ease,
      box-shadow 200ms ease,
      background-color 200ms ease,
      border-color 200ms ease;
  }
  .home-hero__visual::before {
    animation: home-glow 700ms ease-out both;
  }
}
@keyframes home-glow {
  from {
    transform: scale(0.75);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Editorial correction: fewer isolated cards, more full-width compositions. */
.home-hero--editorial {
  padding: 0;
  background: #fff;
}
.home-hero--editorial .home-hero__grid {
  width: min(100%, 90rem);
  max-width: none;
  gap: 0;
}
.home-hero--editorial .home-hero__content {
  max-width: 40rem;
  padding: 6.5rem 3rem 6.5rem max(1.5rem, calc((100vw - 75rem) / 2));
}
.home-hero--editorial .home-hero__media {
  position: relative;
  display: grid;
  min-height: 32rem;
  margin: 0;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a1a 0%, #4b060b 100%);
}
.home-hero--editorial .home-hero__media::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 52%, rgba(219, 0, 17, 0.55));
  content: "";
}
.home-hero--editorial .home-hero__media img {
  position: relative;
  z-index: 1;
  width: min(78%, 26rem);
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.1) brightness(1.5);
}
.home-hero--editorial figcaption {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 15rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}
.home-hero--editorial .home-hero__visual {
  display: none;
}
.home-core-services {
  background: #f5f5f5;
}
.home-service-list {
  border-top: 1px solid var(--color-border);
}
.home-service-list .home-service-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  box-shadow: none;
}
.home-service-list .home-service-card:hover {
  border-color: var(--color-border);
  box-shadow: none;
  transform: none;
}
.home-service-list .home-service-card > i {
  display: none;
}
.home-service-list .home-service-card::before {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  content: counter(service);
}
.home-service-list {
  counter-reset: service;
}
.home-service-list .home-service-card {
  counter-increment: service;
}
.home-service-list .home-service-card h3 {
  margin: 0 0 0.3rem;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
}
.home-service-list .home-service-card p {
  min-height: 0;
  margin: 0;
  color: var(--color-text-secondary);
}
.home-service-list .home-service-card span {
  color: var(--color-secondary-blue);
  font-size: 0.82rem;
}
.home-service-list .home-service-card span i {
  margin-left: 0.35rem;
}
.home-feature {
  padding: 0;
  background: #fff;
}
.home-feature .home-products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.home-feature .home-product-list {
  display: none;
}
.home-feature .home-products__grid > div:first-child {
  padding: 6rem min(10vw, 7rem);
}
.home-feature .home-products__grid::after {
  display: block;
  min-height: 27rem;
  background: linear-gradient(145deg, #a8000d 0%, #db0011 100%);
  content: "";
}
.home-feature .home-products__grid::after {
  box-shadow: inset 6rem 0 0 rgba(0, 0, 0, 0.06);
}
.home-digital {
  background: #fff;
}
.home-digital__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.home-digital__visual {
  display: grid;
  min-height: 20rem;
  place-items: center;
  background: #1a1a1a;
  color: #fff;
}
.home-digital__visual i {
  position: relative;
  color: #fff;
  font-size: 6rem;
}
.home-digital__visual::after {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
  transform: translate(3.3rem, -3.5rem);
}
.home-digital p:not(.home-eyebrow) {
  max-width: 30rem;
  color: var(--color-text-secondary);
}
.home-support {
  background: #f5f5f5;
}
.home-support__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.home-support__links {
  border-top: 1px solid var(--color-border);
}
.home-support__links a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
}
.home-support__links a:hover {
  color: var(--color-secondary-blue);
}
@media (max-width: 48rem) {
  .home-hero--editorial .home-hero__grid,
  .home-feature .home-products__grid,
  .home-digital__grid,
  .home-support__grid {
    grid-template-columns: 1fr;
  }
  .home-hero--editorial .home-hero__content {
    padding: 4rem 1rem;
  }
  .home-hero--editorial .home-hero__media {
    min-height: 20rem;
  }
  .home-feature .home-products__grid > div:first-child {
    padding: 4rem 1rem;
  }
  .home-feature .home-products__grid::after {
    min-height: 10rem;
  }
  .home-service-list .home-service-card {
    grid-template-columns: 2rem minmax(0, 1fr);
  }
  .home-service-list .home-service-card span {
    grid-column: 2;
    margin-top: 0.6rem;
  }
  .home-digital__visual {
    min-height: 14rem;
  }
  .home-support__grid {
    gap: 2rem;
  }
}

/* Preserve comfortable proportions before the phone layout takes over. */
@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .home-hero--editorial .home-hero__content {
    padding: clamp(4rem, 7vw, 5.25rem) 2rem;
  }
  .home-hero--editorial .home-hero__media {
    min-height: 27rem;
  }
  .home-digital__grid,
  .home-support__grid,
  .home-products__grid,
  .home-wealth__grid {
    gap: 3rem;
  }
  .home-paths article {
    padding: 2rem;
  }
  .home-footer__grid {
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 1rem;
  }
}

/* The home footer now carries the same institutional finish as the shared public footer. */
.home-footer {
  background: var(--color-primary-dark);
  border-top: 0;
  color: rgba(255, 255, 255, 0.72);
}
.home-footer a {
  color: rgba(255, 255, 255, 0.76);
}
.home-footer a:hover {
  color: #fff;
}
.home-footer .bank-brand {
  color: #fff;
}
.home-footer p {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
}

.home-hero__lead {
  max-width: 34ch;
  line-height: 1.7;
}
.home-section__heading > p,
.home-copy,
.home-digital p:not(.home-eyebrow),
.home-support__grid > div:first-child > p {
  line-height: 1.7;
}
.home-feature .home-products__grid > div:first-child > p:not(.home-eyebrow) {
  max-width: 36ch;
  line-height: 1.7;
}

.home-hero--editorial .home-hero__media img {
  max-height: 28rem;
  object-fit: contain;
  object-position: center;
}
.home-hero--editorial .home-hero__media {
  isolation: isolate;
}
@media (max-width: 48rem) {
  .home-hero--editorial .home-hero__media img {
    max-height: 17rem;
  }
}
