/* TEST portal. Each image occupies one original grid column; copy spans two. */
.ms-home .ms-home-editorial{display:grid;gap:clamp(38px,5vw,68px);margin:8px 0 56px}
.ms-home .ms-home-story{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--grid-gap,28px);align-items:stretch}
.ms-home .ms-home-story>.ms-card-shell{grid-column:1;grid-row:1;align-self:center;width:100%;min-width:0}
.ms-home .ms-home-story>.ms-home-copy{grid-column:2 / 4;grid-row:1}
.ms-home .ms-home-story-reverse>.ms-card-shell{grid-column:3}
.ms-home .ms-home-story-reverse>.ms-home-copy{grid-column:1 / 3}
.ms-home .ms-home-story .space{height:auto}
.ms-home .ms-home-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:0 12px;color:color-mix(in srgb,var(--accent-soft) 25%,#bcb7c4);font-size:clamp(16px,1.14vw,17px);line-height:1.7;text-wrap:pretty}
.ms-home .ms-home-copy p{margin:0 0 16px}.ms-home .ms-home-copy p:last-child{margin-bottom:0}
@media(max-width:800px){.ms-home .ms-home-story{grid-template-columns:minmax(0,1fr);gap:20px}.ms-home .ms-home-story>.ms-card-shell{grid-column:1;grid-row:1;max-width:480px;justify-self:center}.ms-home .ms-home-story>.ms-home-copy{grid-column:1;grid-row:2;padding:0;font-size:17px;line-height:1.75}.ms-home .ms-home-editorial{gap:42px;margin-bottom:38px}}
@media(max-width:400px){.ms-home .ms-home-copy{font-size:16px}}

/* The site name follows the current portal accent without an underline. */
.ms-home .ms-home-copy a.ms-home-section-link{color:var(--accent-soft);font-weight:600;text-decoration:none}
.ms-home .ms-home-copy a.ms-home-section-link:hover,.ms-home .ms-home-copy a.ms-home-section-link:focus-visible{color:var(--accent);text-decoration:none}
.ms-home .ms-home-copy a.ms-home-section-link:focus-visible{outline:1px solid var(--accent-soft);outline-offset:4px;border-radius:2px}

/* One transparent divider, measured from the first card row to the second. */
.ms-home .ms-home-editorial{--ms-story-gap:clamp(38px,5vw,68px);gap:var(--ms-story-gap)}
.ms-home .ms-home-story:not(:last-child){position:relative}
.ms-home .ms-home-story:not(:last-child)::after{content:"";position:absolute;pointer-events:none;left:0;top:calc(100% + var(--ms-story-gap) / 2);width:calc((100% + var(--grid-gap,28px)) * 2 / 3);height:1px;background:#ffffff16}
@media(max-width:800px){.ms-home .ms-home-editorial{--ms-story-gap:42px}.ms-home .ms-home-story:not(:last-child)::after{width:100%}}

/* Alternate the second divider between the right card edges. */
.ms-home .ms-home-story:nth-child(2)::after{left:auto;right:0}

/* Header rule starts at the first desktop card's right edge; no tagline text. */
.ms-home .ms-home-header-rule{position:relative;height:clamp(25.5px,2.25vw,30px);margin:22px 0 0}
.ms-home .ms-home-header-rule::before{content:"";position:absolute;left:calc((100% - 2 * var(--grid-gap,28px)) / 3);right:0;top:50%;height:1px;background:#ffffff16;pointer-events:none}
@media(max-width:800px){.ms-home .ms-home-header-rule::before{left:0}}
@media(max-width:560px){.ms-home .ms-home-header-rule{margin-top:18px}}

/* All four TEST rules use one hairline and sample the moving backdrop like clear glass. */
.ms-home .ms-home-header-rule::before,.ms-home .ms-home-story:not(:last-child)::after{height:1px;background:#ffffff16}
@supports ((backdrop-filter:brightness(1.9)) or (-webkit-backdrop-filter:brightness(1.9))){
.ms-home .ms-home-header-rule::before,.ms-home .ms-home-story:not(:last-child)::after{background:rgba(255,255,255,.035);-webkit-backdrop-filter:brightness(1.9) saturate(1.6);backdrop-filter:brightness(1.9) saturate(1.6)}
}

/* TEST homepage only: quieter readable technical text only; no footer surface or glass backdrop. */
:root[data-ms-theme] body.ms-home .page footer.ms-footer{--ms-footer-ink:color-mix(in srgb,var(--ms-muted,#b9b3c4) 72%,var(--ms-bg,#070709) 28%);color:var(--ms-footer-ink);background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
:root[data-ms-theme] body.ms-home .page footer.ms-footer>span,:root[data-ms-theme] body.ms-home .page footer.ms-footer a{color:var(--ms-footer-ink)}
:root[data-ms-theme] body.ms-home .page footer.ms-footer a{transition:color .25s ease}
:root[data-ms-theme] body.ms-home .page footer.ms-footer a:is(:hover,:focus-visible){color:var(--ms-text,#e5e0ec)}

/* Only the FitLine brand word uses the same native Caveat font as the section rules. */
.ms-home .ms-home-story .ms-home-fitline-word{font-family:Caveat,cursive;font-size:1.35em;line-height:1;font-weight:400;letter-spacing:0;white-space:nowrap;color:inherit}

/* TEST card typography: softer compact Gabriela; keep the FitLine brand's previous absolute sizes. */
.ms-home .ms-home-story .caption h2{font-family:Gabriela,Georgia,serif;font-size:17px;font-weight:400;line-height:1.35;letter-spacing:0}
.ms-home .ms-home-story .ms-home-fitline-word{font-size:25.65px}
@media(max-width:560px){.ms-home .ms-home-story .ms-home-fitline-word{font-size:27px}}

/* Native Albireo scroll-to-top, styled only for the long TEST homepage. */
.ms-home .ms-home-scroll-top{position:fixed;right:22px;bottom:22px;z-index:60;transition:opacity .25s ease,transform .25s ease,visibility .25s}
.ms-home .ms-home-scroll-top button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(var(--accent-rgb),.3);border-radius:8px;background:var(--ms-bg,#070709);color:var(--accent-soft);cursor:pointer;transition:color .2s,border-color .2s,background .2s}
.ms-home .ms-home-scroll-top svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ms-home .ms-home-scroll-top button:hover{color:var(--accent);border-color:var(--accent-soft);background:color-mix(in srgb,var(--accent) 9%,var(--ms-bg,#070709))}
.ms-home .ms-home-scroll-top button:focus-visible{outline:2px solid var(--accent-soft);outline-offset:3px}
.ms-home-scroll-top-hidden{visibility:hidden;opacity:0;transform:translateY(8px)}.ms-home-scroll-top-visible{visibility:visible;opacity:1;transform:translateY(0)}
body.ms-home:has(.ms-footer .site-analytics-settings) .ms-home-scroll-top{bottom:68px}
@media(max-width:560px){.ms-home .ms-home-scroll-top{right:16px}}
@media(prefers-reduced-motion:reduce){.ms-home .ms-home-scroll-top{transition:none}}
