/* MG Alliance homepage: existing brand, clearer reading rhythm. */
.home-page { --home-muted: #526b78; --home-accent: #f2b65c; --home-accent-hover: #ffd18a; --home-accent-ink: #002b46; }
.home-page main :is(h1, h2, h3) { font-family: 'Source Serif 4', Georgia, serif; font-optical-sizing: auto; }
.home-page ::selection { background: var(--home-accent); color: var(--home-accent-ink); }
.home-page :where(a, button):focus-visible { outline: 3px solid #0072bb; outline-offset: 5px; }
.home-page :where(.hero, .site-header, .cta) :where(a, button):focus-visible { outline-color: #a8d9eb; }
.home-page .hero-financial-flows { padding: 88px 0 0; }
.home-page .hero-financial-flows .hero-grid { min-height: 410px; }
.home-page .hero-financial-flows .hero-copy { width: 66%; max-width: 800px; padding-bottom: 64px; }
.home-page .hero h1 { max-width: 800px; margin: 0 0 28px; font-size: clamp(40px, 4.7vw, 68px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.home-page .hero-copy > p { max-width: 49ch; font-size: 18px; line-height: 1.7; color: #d4e4eb; }
.home-page .hero-actions { margin-top: 32px; gap: 12px; }
.home-page main .button { min-height: 50px; border-radius: 6px; }
.home-page .hero .button-ghost { border-color: #97b8ca; }
.home-page .hero-financial-flows .trust-row { margin-top: 0; height: auto; padding-block: 26px; gap: 28px; border-top: 1px solid #ffffff30; }
.home-page .trust-row > span { font-size: 14px; font-weight: 500; color: #e0ecf2; }
.home-page .section { padding: 88px 0; }
.home-page .services-preview { background: #fff; }
.home-page .services-preview > .shell { display: grid; grid-template-columns: minmax(180px,.65fr) minmax(0,2fr); gap: 64px; }
.home-page .services-preview .section-heading { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px; }
.home-page .section-heading { margin-bottom: 30px; align-items: baseline; gap: 24px; }
.home-page .section-heading h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.025em; font-weight: 550; }
.home-service-list { border-top: 1px solid var(--line); }
.home-service { display: grid; grid-template-columns: minmax(0,1fr) 36px; align-items: center; gap: 12px 24px; padding: 28px 14px; border-bottom: 1px solid var(--line); transition: background-color 160ms ease; }
.home-service p { grid-column: 1; grid-row: 2; max-width: 60ch; }
.home-service > span { grid-column: 2; grid-row: 1; }
.home-service h3 { margin: 0; font-size: clamp(21px,2vw,27px); font-weight: 550; letter-spacing: -.02em; line-height: 1.35; }
.home-service p { margin: 0; color: var(--home-muted); font-size: 16px; line-height: 1.7; }
.home-service > span { font-size: 26px; text-align: right; color: var(--blue); }
.home-page .news-preview { background: #e7f0f4; }
.home-news-list { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 24px 64px; }
.home-news:first-child { grid-row: span 2; padding-right: 32px; }
.home-news:first-child h3 { font-size: clamp(26px,2.6vw,36px); line-height: 1.35; }
.home-news { display: flex; flex-direction: column; gap: 28px; padding-block: 22px 4px; border-top: 1px solid #aec6d2; }
.home-news h3 { margin: 0; font-size: 21px; line-height: 1.5; font-weight: 550; letter-spacing: -.015em; }
.home-news > span { margin-top: auto; padding-block: 8px; color: var(--blue-dark, #075b91); font-size: 14px; font-weight: 700; }
.home-page .cta h2 { letter-spacing: -.025em; }
.home-page .button { transition: background-color 160ms ease, border-color 160ms ease, transform 140ms cubic-bezier(.23,1,.32,1); }
.home-page .button:focus-visible { transform: none; transition: none; }
@media (hover:hover) and (pointer:fine) {
    .home-service:hover { background: #eaf2f5; }
    .home-news:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
    .home-page .button:active:not(:focus-visible) { transform: scale(.98); }
}
@media (max-width:940px) {
    .home-page .hero-financial-flows { padding-top: 56px; }
    .home-page .hero-financial-flows .hero-grid { min-height: 0; }
    .home-page .hero-financial-flows .hero-copy { width: 100%; padding-bottom: 48px; }
    .home-page .financial-flows { opacity: .26; }
    .home-page .hero h1 { font-size: clamp(38px,6.4vw,58px); }
    .home-page .hero-financial-flows .trust-row { gap: 12px; padding-block: 22px; }
    .home-page .services-preview > .shell { grid-template-columns: 1fr; gap: 12px; }
    .home-page .services-preview .section-heading { flex-direction: row; justify-content: space-between; align-items: baseline; }
    .home-service { gap: 12px 24px; grid-template-columns: minmax(0,1fr) 24px; }
    .home-news-list { gap: 24px; }
}
@media (max-width:600px) {
    .home-page .hero-financial-flows { padding-top: 42px; }
    .home-page .hero h1 { font-size: clamp(34px,9.5vw,46px); line-height: 1.12; }
    .home-page .hero-copy > p { font-size: 16px; }
    .home-page .hero-actions { margin-top: 26px; }
    .home-page .hero-financial-flows .hero-copy { padding-bottom: 36px; }
    .home-page .section { padding: 48px 0; }
    .home-page .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
    .home-service { grid-template-columns: minmax(0,1fr) 24px; gap: 14px; padding-block: 24px; }
    .home-service p { grid-column: 1; grid-row: 2; font-size: 15px; }
    .home-service > span { grid-column: 2; grid-row: 1; }
    .home-news-list { grid-template-columns: 1fr; gap: 24px; }
    .home-news:first-child { grid-row: auto; padding-right: 0; }
    .home-news:first-child h3 { font-size: 24px; }
    .home-page .services-preview .section-heading { flex-direction: column; gap: 8px; }
    .home-news { gap: 12px; }
    .home-page .language-switcher a { min-width: 36px; min-height: 44px; }
}
@media (prefers-reduced-motion:reduce), (hover:none) {
    .home-page .button:hover, .home-page .button:active:not(:focus-visible) { transform: none; }
}

/* Amber marks the contact action; motion follows the existing financial paths. */
.home-page .hero .home-contact-action,
.home-page .cta .button-light { color: var(--home-accent-ink); background: var(--home-accent); border-color: var(--home-accent); }
.home-page .hero .home-contact-action:hover,
.home-page .cta .button-light:hover { color: var(--home-accent-ink); background: var(--home-accent-hover); border-color: var(--home-accent-hover); }
.home-page .financial-flows .home-flow-trace { stroke: var(--home-accent); stroke-width: 1.8px; opacity: .24; }
.home-page .home-service > span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; transition: color 160ms ease, background-color 160ms ease, transform 180ms cubic-bezier(.23,1,.32,1); }
.home-page .home-service > span svg { width: 22px; height: 22px; }
.home-page .home-service:focus-visible > span { color: var(--home-accent-ink); background: var(--home-accent); }
.home-page .home-service h3 { position: relative; width: fit-content; }
.home-page .home-service h3::after { content: ''; position: absolute; inset: auto 0 -5px; height: 2px; background: var(--home-accent); transform: scaleX(0); transform-origin: left; transition: transform 200ms cubic-bezier(.23,1,.32,1); }
.home-page .home-service:focus-visible h3::after { transform: scaleX(1); transition: none; }
.home-page main .button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 140ms cubic-bezier(.23,1,.32,1); }
.home-page main .button:focus-visible { transition: none; }
@media (hover:hover) and (pointer:fine) {
    .home-page .home-service:hover h3::after { transform: scaleX(1); }
    .home-page .home-service:hover > span { color: var(--home-accent-ink); background: var(--home-accent); transform: translate(2px,-2px); }
    .home-page .home-service:focus-visible > span { transform: none; transition: none; }
}
@media (prefers-reduced-motion:no-preference) {
    .home-page .financial-flows .home-flow-trace { stroke-dasharray: 1000; animation: home-flow-draw 1800ms cubic-bezier(.22,1,.36,1) both; }
    .home-page .financial-flows .home-flow-trace:nth-of-type(2) { animation-delay: 120ms; }
    .home-page .financial-flows .home-flow-trace:nth-of-type(3) { animation-delay: 240ms; }
}
@keyframes home-flow-draw {
    from { stroke-dashoffset: 1000; opacity: 0; }
    to { stroke-dashoffset: 0; opacity: .24; }
}
@media (prefers-reduced-motion:reduce) {
    .home-page .home-service h3::after { transition: none; }
    .home-page .financial-flows .home-flow-trace { animation: none; stroke-dasharray: none; }
    .home-page .home-service > span { transition: color 160ms ease, background-color 160ms ease; }
    .home-page .home-service:hover > span { transform: none; }
}
