/* POLARIS 1.57.1 — sunset homepage, comet navigation and soft slide fades. */
body.home.polaris-theme {
    position: relative;
    isolation: isolate;
    background: #010f23;
}

body.home.polaris-theme::before { content: none; }

.home-sunset-backdrop {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: clamp(840px, 56.28vw, 1200px);
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(#000 84%, transparent 100%);
    -webkit-mask-image: linear-gradient(#000 84%, transparent 100%);
}

.home-sunset-backdrop picture,
.home-sunset-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-sunset-backdrop img { object-fit: cover; object-position: center top; }

body.home .site-header {
    width: min(1800px, calc(100% - 96px));
    border-bottom-color: transparent;
    background: transparent;
}

body.home .brand { gap: 14px; }
body.home .brand-mark {
    width: 46px;
    height: 46px;
    border: 0;
    clip-path: none;
    background: transparent;
}
body.home .brand-lockup b { font-size: 26px; font-weight: 500; letter-spacing: .15em; }
body.home .brand-lockup small { color: #b6c5d6; font-size: 9px; letter-spacing: .32em; font-weight: 400; }
body.home .site-header .primary-nav a { color: #f0f5fc; font-weight: 500; }
body.home .primary-nav a::after { background: #30c6ed; }
body.home .header-cta {
    border: 1px solid #2ca9f1;
    border-radius: 999px;
    background: rgba(2, 34, 65, .22);
    color: #f3f7ff;
    padding-inline: 22px;
}
body.home .language-switcher summary { border-color: rgba(128, 189, 224, .3); background: rgba(2, 23, 46, .5); }

.service-home .home-visual-story {
    --story-cyan: #3ad3ec;
    width: min(1600px, calc(100% - 11%));
    padding-block: 0 42px;
}

.home-visual-story .home-story-stage {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(470px, 34vw, 610px);
    background: transparent;
}

.home-visual-story .home-story-content {
    width: 84%;
    min-width: 0;
    padding: 115px 0 100px;
    text-align: start;
}

body.polaris-theme .home-visual-story .home-story-eyebrow {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px;
    color: #f5f8ff;
    font: 400 clamp(16px, 1.32vw, 22px)/1.5 var(--sans);
}
.home-story-eyebrow::before { content: ""; width: 42px; height: 3px; flex-shrink: 0; background: #40e3e8; }
.home-visual-story .home-story-title {
    margin: 0 0 20px;
    color: #f6f8ff;
    font: 500 clamp(36px, 3.5vw, 62px)/1.18 var(--sans);
    letter-spacing: -.035em;
    overflow-wrap: break-word;
}
.home-story-title > span { display: inline; }
.home-story-title .home-story-accent { color: inherit; }
body.polaris-theme .home-visual-story .home-story-description {
    max-width: 76ch;
    margin: 0 0 32px;
    color: #e1eaf5;
    font: 400 clamp(17px, 1.45vw, 24px)/1.6 var(--sans);
    text-shadow: 0 1px 10px rgba(1, 14, 33, .25);
}

.home-visual-story .home-story-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 220px;
    min-height: 58px;
    max-width: 100%;
    padding: 12px 28px;
    color: #f4f9ff;
    border: 1px solid #55c6fa;
    border-radius: 999px;
    background: rgba(10, 88, 132, .26);
    box-shadow: inset 0 0 22px rgba(60, 173, 224, .06);
    text-decoration: none;
    text-align: center;
    font: 500 18px/1.5 var(--sans);
    transition: background-color .2s ease, border-color .2s ease;
}
.home-visual-story .home-story-cta:hover { background: rgba(16, 113, 159, .44); border-color: #a2e4ff; }
.home-story-arrow { flex-shrink: 0; font-size: 21px; }

.home-story-dock {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border: 1px solid rgba(146, 200, 229, .16);
    border-radius: 999px;
    background: rgba(0, 18, 40, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.home-story-selectors { position: relative; display: flex; margin: 0; padding: 0; }
.home-story-choice { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 36px; border: 0; border-radius: 50%; background: transparent; }
.home-story-dot { width: 5px; height: 5px; border-radius: 50%; background: #a2bbd1; opacity: .65; transition: opacity .2s ease; }
.home-story-choice.is-active .home-story-dot { opacity: 1; background: #9bf7fb; box-shadow: 0 0 10px rgba(88, 233, 244, .35); }
.home-story-selectors.has-comet .home-story-choice.is-active .home-story-dot { opacity: 0; }
.home-story-selectors::before,
.home-story-selectors::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: translateX(var(--story-comet-x, 12px));
    transition: transform .48s cubic-bezier(.22, 1, .36, 1);
}
.home-story-selectors.has-comet::before,
.home-story-selectors.has-comet::after { opacity: 1; }
.home-story-selectors::before {
    left: -16px;
    top: calc(50% - .5px);
    width: 19px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(100, 234, 245, .4) 45%, #9bf7fb);
}
.home-story-selectors::after {
    left: 0;
    top: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9bf7fb;
    box-shadow: 0 0 8px rgba(88, 233, 244, .42);
}
[dir="rtl"] .home-story-selectors::before {
    left: 3px;
    background: linear-gradient(to left, transparent, rgba(100, 234, 245, .4) 45%, #9bf7fb);
}
.home-story-step {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #d6e6f5;
    background: rgba(255, 255, 255, .04);
    font: 400 18px/1 var(--sans);
    cursor: pointer;
}
.home-story-step[hidden] { display: none; }
.home-story-step:hover { background: rgba(77, 200, 234, .18); }
.home-visual-story a:focus-visible,
.home-visual-story button:focus-visible { outline: 2px solid #9ceaff; outline-offset: 5px; }

.home-portfolio-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 36px; }
.home-portfolio-card {
    display: block;
    min-width: 0;
    padding: 26px 32px;
    border: 1px solid rgba(139, 188, 217, .32);
    border-radius: 13px;
    background: linear-gradient(125deg, rgba(25, 64, 94, .44), rgba(58, 74, 96, .25));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    transition: border-color .25s ease, background-color .25s ease;
}
.home-portfolio-card:hover { border-color: rgba(101, 215, 247, .68); background-color: rgba(30, 80, 109, .15); }
.home-portfolio-identity { display: flex; align-items: center; gap: 26px; margin-bottom: 15px; }
.home-portfolio-symbol { display: flex; padding-inline-end: 26px; border-inline-end: 1px solid rgba(188, 210, 231, .48); }
.home-portfolio-symbol .portfolio-brand-mark { flex: 0 0 42px; width: 42px; height: 42px; color: #30c5e4; }
.home-visual-story .home-portfolio-identity h2 { margin: 0; color: #f6f8ff; font: 400 clamp(27px, 2.1vw, 36px)/1.2 var(--sans); letter-spacing: -.025em; }
body.polaris-theme .home-portfolio-card p { margin: 0; color: #c7d1e0; font: 400 clamp(15px, 1.12vw, 19px)/1.5 var(--sans); }
body.polaris-theme .home-story-notes p { margin: 20px 0 0; color: #a9bed2; font: 400 12px/1.6 var(--sans); }

.home-portfolio-symbol .portfolio-shield { fill: rgba(20, 152, 204, .1); animation: polaris-shield-glow 6s ease-in-out infinite; }
.home-portfolio-symbol .portfolio-orbit { stroke: #cdeefb; }
.home-portfolio-symbol .portfolio-orbit-point { stroke: #fff; animation: polaris-orbit-travel 12s linear infinite; }
.home-portfolio-symbol .portfolio-bar { transform-box: fill-box; transform-origin: center bottom; animation: polaris-bar-breathe 5.6s ease-in-out infinite; }
.home-portfolio-symbol .portfolio-bar-two { animation-delay: -.8s; opacity: .85; }
.home-portfolio-symbol .portfolio-bar-three { animation-delay: -1.6s; }
@keyframes polaris-shield-glow {
    0%, 100% { opacity: .78; fill: rgba(20, 152, 204, .05); }
    50% { opacity: 1; fill: rgba(20, 152, 204, .24); }
}
@keyframes polaris-orbit-travel { to { stroke-dashoffset: -100; } }
@keyframes polaris-bar-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.78); } }

[dir="rtl"] .home-visual-story { --sans: "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] .home-story-title { letter-spacing: 0; line-height: 1.45; }
[dir="rtl"] .home-story-arrow,
[dir="rtl"] .home-story-step > span { transform: scaleX(-1); }

@media (min-width: 1500px) {
    body.home .site-header.service-full-header { min-height: 104px; grid-template-columns: auto 1fr auto; grid-template-rows: auto; padding-block: 16px; gap: 24px; }
    body.home .service-full-header > .header-actions { grid-column: 3; }
    body.home .site-header.service-full-header .primary-nav { grid-column: 2; grid-row: 1; gap: 0 25px; flex-wrap: nowrap; }
}

@media (min-width: 681px) and (max-width: 1100px) {
    .home-sunset-backdrop { height: 800px; }
    .home-sunset-backdrop img { object-position: 60% top; }
    .home-visual-story .home-story-content { width: 90%; }
    .home-portfolio-links { gap: 18px; }
    .home-portfolio-card { padding: 22px 20px; }
    .home-portfolio-identity { gap: 16px; }
    .home-portfolio-symbol { padding-inline-end: 16px; }
}

@media (min-width: 481px) and (max-width: 900px) {
    .home-sunset-backdrop { height: max(800px, 100vw); }
    .home-visual-story .home-story-stage { min-height: 530px; }
}

@media (max-width: 680px) {
    .home-sunset-backdrop { height: 800px; }
    .home-sunset-backdrop img { object-position: center top; }
    body.home .site-header { width: calc(100% - 32px); padding-inline: 0; }
    body.home .brand { gap: 9px; }
    body.home .brand-mark { width: 34px; height: 34px; }
    body.home .brand-lockup b { font-size: 19px; }
    body.home .brand-lockup small { font-size: 7px; letter-spacing: .25em; }
    .service-home .home-visual-story { width: calc(100% - 40px); padding-bottom: 30px; }
    .home-visual-story .home-story-stage { min-height: 550px; align-items: start; }
    .home-visual-story .home-story-content { width: 100%; padding: 105px 0 100px; }
    body.polaris-theme .home-visual-story .home-story-eyebrow { font-size: 14px; gap: 12px; margin-bottom: 19px; }
    .home-story-eyebrow::before { width: 28px; height: 2px; }
    .home-visual-story .home-story-title { font-size: clamp(31px, 8.6vw, 44px); line-height: 1.2; margin-bottom: 20px; }
    body.polaris-theme .home-visual-story .home-story-description { font-size: 16px; line-height: 1.65; margin-bottom: 26px; }
    .home-visual-story .home-story-cta { min-width: 190px; min-height: 52px; padding: 11px 22px; font-size: 16px; }
    .home-story-dock { bottom: 0; }
    .home-portfolio-links { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
    .home-portfolio-card { padding: 23px 25px; background-color: rgba(1, 18, 40, .45); }
    .home-portfolio-identity { gap: 20px; margin-bottom: 13px; }
    .home-portfolio-symbol { padding-inline-end: 20px; }
    .home-visual-story .home-portfolio-identity h2 { font-size: 29px; }
    body.polaris-theme .home-portfolio-card p { font-size: 16px; }
    [dir="rtl"] .home-story-title { line-height: 1.5; }
}

@media (min-width: 481px) and (max-width: 680px) {
    .home-sunset-backdrop { height: 800px; }
    .home-sunset-backdrop img { object-position: 60% top; }
}

@media (prefers-reduced-motion: reduce) {
    .home-portfolio-symbol *,
    .home-story-dot,
    .home-story-selectors::before,
    .home-story-selectors::after,
    .home-visual-story a,
    .home-visual-story button { animation: none !important; transition: none !important; }
}
