:root {
    --brand: #16677d;
    --brand-dark: #0a4556;
    --brand-deep: #062d37;
    --brand-mid: #1b849c;
    --gold: #d4a05a;
    --gold-dark: #9a6f2f;
    --gold-soft: #f3e6d0;
    --surface: #f7fbfc;
    --surface-soft: #eef5f7;
    --ink: #0f2430;
    --muted: #4d636e;
    --line: #d2e0e5;
    --white: #ffffff;
    --font: "Qomra", "Segoe UI", "Geeza Pro", "Traditional Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --shell: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.home-body {
    margin: 0;
    position: relative;
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.75;
    background:
        radial-gradient(ellipse 42rem 26rem at 100% -4%, rgba(212, 160, 90, .14), transparent 58%),
        radial-gradient(ellipse 38rem 24rem at -8% 18%, rgba(22, 103, 125, .12), transparent 55%),
        linear-gradient(180deg, #f8fcfd 0%, var(--surface) 42%, var(--surface-soft) 100%);
    -webkit-font-smoothing: antialiased;
}
body.home-body > *:not(.ambient-shapes):not(.skip-link) {
    position: relative;
    z-index: 1;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
    position: fixed;
    inset-block-start: .75rem;
    inset-inline-start: .75rem;
    z-index: 100;
    padding: .7rem 1rem;
    border-radius: .45rem;
    background: var(--ink);
    color: #fff;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.home-shell {
    width: min(var(--shell), calc(100% - 2rem));
    margin-inline: auto;
}

/* —— Header —— */
.home-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .72);
    border-block-end: 1px solid transparent;
    backdrop-filter: blur(14px) saturate(1.15);
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.home-header.is-solid {
    background: rgba(255, 255, 255, .92);
    border-block-end-color: var(--line);
    box-shadow: 0 8px 24px rgba(15, 45, 55, .06);
}
.home-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.4rem;
}
.home-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-inline-end: auto;
    min-width: 0;
}
.home-brand img {
    width: 4.6rem;
    height: auto;
    aspect-ratio: 666 / 375;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform .35s var(--ease);
}
.home-brand:hover img { transform: scale(1.04); }
.home-brand__text {
    display: none;
    min-width: 0;
}
.home-brand__text strong {
    display: block;
    color: var(--brand-dark);
    font-size: .92rem;
    line-height: 1.3;
    white-space: nowrap;
}
@media (min-width: 28rem) {
    .home-brand__text { display: block; }
}

.home-menu-toggle {
    display: grid;
    gap: .28rem;
    width: 2.5rem;
    height: 2.5rem;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: var(--white);
    cursor: pointer;
}
.home-menu-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--brand-dark);
    transition: transform .25s ease, opacity .25s ease;
}

.home-menu {
    display: none;
    align-items: center;
    gap: .35rem 1.05rem;
    flex-wrap: wrap;
}
.home-menu a {
    position: relative;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
    transition: color .2s ease;
}
.home-menu a:not(.home-menu__cta)::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: -.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s var(--ease);
}
.home-menu a:not(.home-menu__cta):hover { color: var(--brand-dark); }
.home-menu a:not(.home-menu__cta):hover::after { transform: scaleX(1); }
.home-menu__cta {
    margin-inline-start: .35rem;
    padding: .48rem 1rem;
    border-radius: .5rem;
    background: linear-gradient(135deg, var(--brand-mid), var(--brand-dark));
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(22, 103, 125, .2);
}
.home-menu__cta:hover { filter: brightness(1.05); }

body.menu-open .home-menu {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    display: grid;
    gap: .25rem;
    padding: 1rem;
    background: #fff;
    border-block-end: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 45, 55, .08);
}
body.menu-open .home-menu a {
    padding: .7rem .55rem;
    border-radius: .45rem;
}
body.menu-open .home-menu a:hover { background: var(--surface-soft); }
body.menu-open .home-menu a::after { display: none; }

/* —— Buttons —— */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: .75rem 1.45rem;
    border-radius: .55rem;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .94rem;
    letter-spacing: .01em;
    transition: transform .22s var(--ease), background-color .2s ease, border-color .2s ease, box-shadow .22s ease;
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 22px rgba(22, 103, 125, .22);
}
.home-btn--primary:hover { background: var(--brand-dark); }
.home-btn--gold {
    background: linear-gradient(135deg, #dfb06f, var(--gold) 48%, #c08a3f);
    color: #fff;
    box-shadow: 0 12px 26px rgba(154, 111, 47, .28);
}
.home-btn--gold:hover { filter: brightness(1.04); }
.home-btn--light {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
    backdrop-filter: blur(6px);
}
.home-btn--light:hover { background: rgba(255, 255, 255, .18); }
.home-btn--ghost {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}
.home-btn--ghost:hover { background: rgba(255, 255, 255, .2); }

/* —— Hero —— */
.home-hero {
    position: relative;
    min-height: calc(100svh - 4.4rem);
    min-height: calc(100dvh - 4.4rem);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.home-hero__banner { position: absolute; inset: 0; }
.home-hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.05);
    animation: homeKen 22s ease-in-out infinite alternate;
}
.home-hero__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(6, 45, 55, .35), transparent 70%),
        linear-gradient(180deg, rgba(6, 32, 40, .55) 0%, rgba(10, 55, 66, .72) 42%, rgba(6, 35, 42, .92) 100%);
}
.home-hero__mesh {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(212, 160, 90, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 160, 90, .18) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 20%, transparent 75%);
    pointer-events: none;
}
.home-hero__ornaments {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.home-hero__frame {
    position: absolute;
    inset: clamp(1rem, 2.5vw, 1.75rem);
    border: 1px solid rgba(212, 160, 90, .28);
    border-radius: 1.35rem;
}
.home-hero__frame::before,
.home-hero__frame::after {
    content: "";
    position: absolute;
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid var(--gold);
}
.home-hero__frame::before {
    inset-block-start: -.4rem;
    inset-inline-start: -.4rem;
    border-inline-end: 0;
    border-block-end: 0;
}
.home-hero__frame::after {
    inset-block-end: -.4rem;
    inset-inline-end: -.4rem;
    border-inline-start: 0;
    border-block-start: 0;
}
.home-hero__spark {
    position: absolute;
    width: .7rem;
    height: .7rem;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: .7;
}
.home-hero__spark--a {
    inset-block-start: 16%;
    inset-inline-start: 10%;
    animation: homeSpark 7s ease-in-out infinite;
}
.home-hero__spark--b {
    inset-block-start: 22%;
    inset-inline-end: 12%;
    width: .55rem;
    height: .55rem;
    opacity: .55;
    animation: homeSpark 9s ease-in-out infinite reverse;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(3.5rem, 9vh, 5.5rem) 0 4.25rem;
}
.home-hero__brand {
    margin: 0 auto 1rem;
    max-width: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: 0;
}
.home-hero__logo {
    width: min(88vw, 34rem);
    max-width: 100%;
    height: auto;
    aspect-ratio: 666 / 375;
    margin: 0 auto;
    padding: .35rem .55rem;
    border-radius: 1rem;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .12), transparent 68%);
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .34));
    opacity: 0;
    transform: translateY(16px) scale(.98);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.home-hero__logo.is-ready {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.home-hero__kicker {
    margin: 0 auto 1.45rem;
    max-width: 32rem;
    color: var(--gold-soft);
    font-size: clamp(.95rem, 2vw, 1.08rem);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.7;
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
}
.home-hero__scroll {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 1.25rem;
    z-index: 2;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.home-hero__scroll span {
    width: 1.35rem;
    height: 2.1rem;
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    position: relative;
}
.home-hero__scroll span::after {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: .35rem;
    width: .28rem;
    height: .28rem;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
    animation: homeScrollDot 1.8s ease-in-out infinite;
}

/* —— Highlights band —— */
.home-highlights {
    position: relative;
    overflow: hidden;
    padding: clamp(2.4rem, 5.5vw, 3.4rem) 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(212, 160, 90, .22), transparent 34%),
        radial-gradient(circle at 88% 80%, rgba(255, 255, 255, .1), transparent 30%),
        linear-gradient(115deg, var(--brand-deep) 0%, var(--brand-dark) 46%, #187a8f 100%);
    color: #fff;
}
.home-highlights::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 15%, transparent 75%);
    pointer-events: none;
}
.home-highlights__inner {
    position: relative;
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
}
.home-highlights__head {
    max-width: 40rem;
}
.home-highlights__head h2 {
    margin: 0 0 .65rem;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.35;
}
.home-highlights__head p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: .98rem;
    line-height: 1.8;
}
.home-highlights__grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
}
@media (min-width: 48rem) {
    .home-highlights__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
.home-highlights__grid article {
    position: relative;
    text-align: start;
    padding: 1.25rem 1.15rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    backdrop-filter: blur(8px);
    transition: transform .28s var(--ease), background .25s ease, border-color .2s ease;
}
.home-highlights__grid article::before {
    content: "";
    position: absolute;
    inset-inline: 1.15rem;
    inset-block-start: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.home-highlights__grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 160, 90, .5);
    background: linear-gradient(165deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
}
.home-highlights__grid span {
    display: inline-block;
    margin-bottom: .45rem;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
}
.home-highlights__grid strong {
    display: block;
    margin-bottom: .4rem;
    color: #fff;
    font-size: 1.08rem;
}
.home-highlights__grid p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
    line-height: 1.7;
}
.home-highlights .home-btn--ghost {
    margin-top: .25rem;
}

/* —— Sections —— */
.home-block {
    position: relative;
    padding: clamp(3.4rem, 8vw, 5.4rem) 0;
    background: var(--white);
}
.home-block--tint {
    background:
        linear-gradient(180deg, rgba(238, 245, 247, .95), rgba(247, 251, 252, .98));
}
.home-block__head {
    margin-bottom: 1.85rem;
    max-width: 38rem;
}
.home-block__head--center {
    margin-inline: auto;
    text-align: center;
}
.home-kicker {
    margin: 0 0 .55rem;
    color: var(--gold-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.home-kicker--light { color: var(--gold); }
.home-block h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.35;
}
.home-block__head h2::after,
.home-split__lead h2::after,
.home-stats__head h2::after {
    content: "";
    display: block;
    width: 3.25rem;
    height: 3px;
    margin-top: .85rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.home-block__head--center h2::after,
.home-stats__head h2::after {
    margin-inline: auto;
}

.home-about-text {
    margin: 0;
    max-width: 46rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2.2vw, 1.18rem);
    line-height: 2;
}

.home-split {
    display: grid;
    gap: 1.75rem 3.5rem;
}
@media (min-width: 52rem) {
    .home-split {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        align-items: start;
    }
}

.home-checklist {
    list-style: none;
    display: grid;
    gap: 1rem;
}
.home-checklist li {
    position: relative;
    padding: 1.15rem 1.2rem;
    padding-inline-start: 3rem;
    background: rgba(255, 255, 255, .88);
    border: 1px solid transparent;
    border-inline-start: 3px solid var(--brand);
    border-radius: 0 .85rem .85rem 0;
    box-shadow: 0 10px 28px rgba(15, 45, 55, .04);
    color: var(--ink);
    transition: transform .25s var(--ease), border-color .2s ease;
}
html[dir="rtl"] .home-checklist li {
    border-radius: .85rem 0 0 .85rem;
}
.home-checklist li:hover {
    transform: translateX(-4px);
    border-color: rgba(212, 160, 90, .35);
}
html[dir="ltr"] .home-checklist li:hover { transform: translateX(4px); }
.home-checklist li::before {
    content: "";
    position: absolute;
    inset-inline-start: 1rem;
    inset-block-start: 1.35rem;
    width: .7rem;
    height: .7rem;
    border: 2px solid var(--gold);
    border-radius: 1px;
    transform: rotate(45deg);
}

.home-block__lead {
    margin: 1rem auto 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.85;
}
.home-block__head--center .home-block__lead { text-align: center; }

.home-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 40rem) {
    .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
    .home-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
}
.home-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-height: 100%;
    padding: 1.35rem 1.2rem 1.3rem;
    border: 1px solid rgba(22, 103, 125, .12);
    border-radius: 1rem;
    background:
        linear-gradient(165deg, #ffffff 0%, #f4fafb 100%);
    transition: transform .28s var(--ease), border-color .2s ease, box-shadow .28s ease;
}
.home-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 103, 125, .28);
    box-shadow: 0 16px 32px rgba(15, 45, 55, .07);
}
.home-feature__index {
    color: var(--gold-dark);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
}
.home-feature h3 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1.08rem;
    line-height: 1.4;
}
.home-feature p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.75;
}
.home-feature--accent {
    border-color: rgba(212, 160, 90, .45);
    background:
        linear-gradient(160deg, #fff9f0 0%, #ffffff 48%, #f3f9fb 100%);
    box-shadow: 0 12px 28px rgba(154, 111, 47, .08);
}
.home-feature--accent::before {
    content: "";
    position: absolute;
    inset-inline: 1.2rem;
    inset-block-start: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--gold), var(--brand-mid));
}
.home-feature__badge {
    align-self: flex-start;
    margin-bottom: .15rem;
    padding: .28rem .7rem;
    border-radius: .4rem;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.home-feature--wide {
    grid-column: 1 / -1;
}
@media (min-width: 64rem) {
    .home-feature--accent {
        grid-column: span 1;
    }
    .home-feature--wide {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 1rem;
        align-items: start;
        padding-block: 1.5rem;
    }
    .home-feature--wide .home-feature__index { grid-row: 1 / span 2; align-self: center; font-size: 1.1rem; }
    .home-feature--wide h3 { grid-column: 2; }
    .home-feature--wide p { grid-column: 2; max-width: 46rem; }
}

.home-numbered {
    list-style: none;
    counter-reset: feat;
    display: grid;
    gap: 0;
    max-width: 52rem;
}
.home-numbered li {
    counter-increment: feat;
    position: relative;
    padding: 1.15rem 0 1.15rem 3.4rem;
    border-block-end: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.02rem;
    transition: color .2s ease, padding-inline-start .25s var(--ease);
}
html[dir="rtl"] .home-numbered li { padding: 1.15rem 3.4rem 1.15rem 0; }
.home-numbered li:last-child { border-block-end: 0; }
.home-numbered li:hover { color: var(--brand-dark); }
.home-numbered li::before {
    content: counter(feat, decimal-leading-zero);
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 1.05rem;
    color: var(--gold-dark);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}

.home-steps {
    list-style: none;
    display: grid;
    gap: 1.1rem;
    counter-reset: none;
}
@media (min-width: 56rem) {
    .home-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}
.home-steps li {
    position: relative;
    padding: 1.5rem 1.15rem 1.35rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
    transition: transform .28s var(--ease), border-color .2s ease, box-shadow .28s ease;
}
.home-steps li::after {
    content: "";
    position: absolute;
    inset-inline: 1.15rem;
    inset-block-start: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--gold), var(--brand-mid));
}
.home-steps li:hover {
    transform: translateY(-6px);
    border-color: rgba(22, 103, 125, .22);
    box-shadow: 0 18px 36px rgba(15, 45, 55, .08);
}
.home-steps span {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    margin-bottom: .85rem;
    border-radius: .55rem;
    background: linear-gradient(145deg, var(--brand-dark), var(--brand));
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
}
.home-steps p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.7;
}

.home-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}
@media (min-width: 48rem) {
    .home-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
.home-pillars article {
    display: grid;
    place-items: center;
    min-height: 5.8rem;
    padding: 1.15rem 1rem;
    text-align: center;
    border: 1px solid rgba(22, 103, 125, .12);
    border-radius: 1rem;
    background:
        linear-gradient(165deg, #ffffff 0%, #f3f9fb 100%);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: .98rem;
    transition: transform .28s var(--ease), border-color .2s ease, background .25s ease;
}
.home-pillars article:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 160, 90, .55);
    background: linear-gradient(165deg, #fff 0%, #f8efdf 100%);
}

/* —— Stats —— */
.home-stats {
    position: relative;
    overflow: hidden;
    padding: clamp(3.6rem, 8vw, 5.5rem) 0;
    background:
        radial-gradient(circle at 8% 15%, rgba(212, 160, 90, .2), transparent 34%),
        radial-gradient(circle at 92% 85%, rgba(255, 255, 255, .1), transparent 30%),
        linear-gradient(150deg, var(--brand-deep), #0c5566 48%, #187a8f);
    color: #fff;
    text-align: center;
}
.home-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .15;
    background-image:
        linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
    pointer-events: none;
}
.home-stats__head { margin-bottom: 2.25rem; }
.home-stats h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.35;
}
.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}
@media (min-width: 56rem) {
    .home-stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
.home-stats__grid > div {
    position: relative;
    padding: 1.6rem 1rem 1.45rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1.1rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    backdrop-filter: blur(8px);
    transition: transform .28s var(--ease), background .25s ease;
}
.home-stats__grid > div:hover {
    transform: translateY(-5px);
    background: linear-gradient(165deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
}
.home-stats dt {
    margin: 0 0 .65rem;
    color: rgba(255, 255, 255, .78);
    font-size: .88rem;
    font-weight: 700;
}
.home-stats dd {
    margin: 0;
    color: var(--gold);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

/* —— Closing —— */
.home-closing {
    position: relative;
    overflow: hidden;
    padding: clamp(3.4rem, 8vw, 5rem) 0;
    background:
        radial-gradient(ellipse 50% 80% at 50% 120%, rgba(212, 160, 90, .18), transparent 55%),
        linear-gradient(160deg, var(--brand-deep), var(--brand-dark));
    text-align: center;
    color: #fff;
}
.home-closing__inner { max-width: 38rem; margin-inline: auto; }
.home-closing h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.35;
}
.home-closing p {
    margin: 1rem 0 1.55rem;
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
    line-height: 1.85;
}

/* —— Footer —— */
.home-footer {
    background:
        linear-gradient(180deg, #eaf3f6, #dfeaf0);
    color: var(--ink);
    padding: 2.5rem 0 1.6rem;
    border-block-start: 3px solid var(--brand-dark);
}
.home-footer__grid {
    display: grid;
    gap: 1.35rem;
}
.home-footer__brand {
    display: flex;
    align-items: center;
    gap: .9rem;
}
.home-footer__brand img {
    width: 7rem;
    height: auto;
    aspect-ratio: 666 / 375;
    object-fit: contain;
}
.home-footer__brand strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--brand-dark);
    font-size: 1.02rem;
}
.home-footer__brand p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
}
.home-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.2rem;
}
.home-footer__links a {
    color: var(--brand-dark);
    font-weight: 600;
    transition: color .2s ease;
}
.home-footer__links a:hover { color: var(--gold-dark); }
.home-footer__copy {
    margin: 0;
    padding-top: .9rem;
    border-block-start: 1px solid rgba(22, 103, 125, .14);
    font-size: .82rem;
    color: var(--muted);
}

/* —— Motion —— */
[data-reveal] {
    opacity: 0;
    transform: translateY(1.15rem);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keep painted section backgrounds visible while children animate in */
.home-highlights [data-reveal],
.home-stats [data-reveal],
.home-closing [data-reveal] {
    will-change: opacity, transform;
}

@keyframes homeKen {
    from { transform: scale(1.05) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(0, -1.8%, 0); }
}
@keyframes homeSpark {
    0%, 100% { opacity: .35; transform: rotate(45deg) translateY(0); }
    50% { opacity: .85; transform: rotate(45deg) translateY(-10px); }
}
@keyframes homeScrollDot {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@media (min-width: 72rem) {
    .home-menu-toggle { display: none; }
    .home-menu { display: flex; }
}

@media (max-width: 40rem) {
    .home-hero__logo { width: min(90vw, 22rem); }
    .home-stats__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    [data-reveal],
    .home-hero__logo {
        opacity: 1;
        transform: none;
    }
}
