/* Shared design system and site-wide layout: tokens, typography, navigation,
   buttons, homepage composition, footer, accessibility, and responsive rules. */

/* ------------------------------
   Variables
   ------------------------------ */
:root{
    /* Brand */
    --bg-body:#0D1B2A;
    --bg-header:#071633;
    --bg-footer:#071633;
    --surface:#FFFFFF;
    --surface-2:#F7F8FA;

    /* Accent & state */
    --bg-primary:#415A77;
    --bg-primary-hover:#364C68;

    /* Text & links */
    --txt-light:#E0E1DD;
    --txt-dark:#212529;
    --muted:#6c757d;
    --link:#4A6FA5;
    --link-dark:#1f3b62;
    --link-on-dark:#D9E7F2;
    --link-on-dark-hover:#FFFFFF;

    /* UI */
    --border:#E5E7EB;
    --radius:14px;

    /* Shadows */
    --shadow-lg:0 10px 22px rgba(0,0,0,.18),0 4px 8px rgba(0,0,0,.10);
    --shadow-md:0 6px 14px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.08);
    --shadow-sm:0 2px 6px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.08);

    /* Header sizing */
    --header-height:110px;
    --logo-height:100px;

    /* Focus ring */
    --ring-in: #E0E1DD;
    --ring-out: #A0C1D1;
}

/* ------------------------------
   Base / Layout
   ------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body { height: 100%; }
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
    html { overflow-y: scroll; }
}

body{
    background:var(--surface);
    color:var(--txt-dark);
    font-family:'Roboto',system-ui,-apple-system,Segoe UI,Arial,sans-serif;
    line-height:1.6;
    font-size:22px;

    display:flex;
    flex-direction:column;
    min-height:100vh;
}

main{ flex:1 0 auto; }
img{ max-width:100%; display:block; height:auto; }

/* a11y helper */
.sr-only{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.skip-link{position:absolute; left:-9999px; top:auto;}
.skip-link:focus{
    left:12px; top:12px; z-index:1000; background:#fff; color:#111;
    padding:.5rem .75rem; border-radius:8px; box-shadow:var(--shadow-md);
}

.site-header, .main-nav, .site-footer { flex:0 0 auto; }

/* ------------------------------
   Header
   ------------------------------ */
.site-header{
    background:var(--bg-header);
    color:var(--txt-light);
    display:flex; align-items:center; justify-content:space-between;
    gap:16px;
    padding:16px 32px;
    border-bottom:1px solid rgba(255,255,255,.06);
    min-height:var(--header-height);
    line-height:1;
}
.brand{ display:flex; align-items:center; gap:12px; min-height:var(--logo-height); text-decoration:none; }
.logo{ height:var(--logo-height); width:auto; max-height:100%; object-fit:contain; }

.header-link,
.site-header a,
.user-nav .btn-link,
.link-button{
    color:var(--link-on-dark) !important;
    font-weight:700; font-size:1.15rem; text-decoration:none; line-height:1;
}
.header-link:hover,
.site-header a:hover,
.user-nav .btn-link:hover,
.link-button:hover{
    color:var(--link-on-dark-hover) !important;
    text-decoration:underline;
}

.sep{
    position:relative; display:inline-block; margin:0 .75rem;
    width:auto; height:auto; color:transparent;
}
.sep::before{ content:"|"; color:rgba(224,225,221,.75); display:inline-block; line-height:1; }

.user-nav{ display:flex; align-items:center; gap:12px; flex-wrap:nowrap; }
.user-nav form.inline{ margin: 0; }
.user-nav .btn-link, .user-nav .link-button{ padding:0; }

.user-nav .btn-link,
.user-nav .link-button {
    background: transparent;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.user-nav .btn-link:hover,
.user-nav .link-button:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.user-nav .btn-link.is-active,
.user-nav .btn-link[aria-current="page"] {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.35);
    box-shadow: 0 0 0 3px rgba(224,225,221,.22);
    color: var(--link-on-dark-hover) !important;
    text-decoration: none;
}

.user-nav .btn-link:focus-visible,
.user-nav .link-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #E0E1DD, 0 0 0 6px #A0C1D1;
}

/* ------------------------------
   Primary Nav
   ------------------------------ */
.main-nav{
    padding:12px 0;
    background:var(--bg-header);
    border-top:1px solid rgba(255,255,255,.06);
}
.nav-list{
    list-style:none; margin:0; padding:0;
    display:flex; gap:26px; justify-content:center; flex-wrap:wrap;
}
.nav-link{
    color:var(--link-on-dark) !important;
    font-weight:700; font-size:1.15rem;
    padding:10px 16px; border-radius:12px; text-decoration:none;
    border:1px solid transparent;
    transition:background-color .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.nav-link:hover{
    color:var(--link-on-dark-hover) !important;
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.25);
    box-shadow:0 2px 10px rgba(0,0,0,.18);
}
.nav-link.is-active, .nav-link:focus-visible{
    outline:none; background:rgba(255,255,255,.12);
    border-color:rgba(255,255,255,.35);
    box-shadow:0 0 0 3px rgba(224,225,221,.22);
}

/* ------------------------------
   Footer
   ------------------------------ */
.site-footer{
    background:var(--bg-footer);
    color:var(--txt-light);
    padding:22px 32px; text-align:center; border-top:1px solid rgba(255,255,255,.06);
    margin-top:auto; /* sticky when content is short */
}
.site-footer .foottext{ font-size:1.15rem; font-weight:700; line-height:1.4; }
.site-footer a{ color:var(--link-on-dark) !important; text-decoration:none; margin:0 .45rem; font-weight:700; }
.site-footer a:hover{ color:var(--link-on-dark-hover) !important; text-decoration:underline; }
.site-footer i{ font-size:1.2rem; vertical-align:-2px; }
.site-footer .sep{ margin:0 .75rem; color:transparent; }
.site-footer .sep::before{ content:"|"; color:rgba(224,225,221,.75); }

/* ------------------------------
   Containers
   ------------------------------ */
.container{ max-width:1200px; margin:24px auto; padding:0 20px; }

.page-head{ margin:8px 0 20px; color:var(--txt-dark); }
.page-title{ font-family:'Platypi',serif; color:var(--txt-dark); margin:0 0 6px; font-size:2.6rem; }
.page-sub{ color:var(--muted); }

/* ------------------------------
   Cards / Grids
   ------------------------------ */
.grid{ display:grid; gap:20px; }
.grid-3{ grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
.grid-4{ grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); }

.card{
    background:var(--surface); color:var(--txt-dark);
    border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm);
    transition:transform .18s ease, box-shadow .18s ease;
    position:relative; overflow:hidden; min-height:395px;
}
.card-body{ padding:14px 16px; padding-bottom:72px; }
.card-title{ font-family:'Platypi',serif; font-size:1.25rem; margin:0 0 .25rem; color:#111; }
.card-img{
    border-top-left-radius:var(--radius); border-top-right-radius:var(--radius);
    width:100%; height:180px; object-fit:cover; transition:transform .25s ease;
}
.stretched{ display:block; text-decoration:none; color:inherit; }
.stretched:hover .card-title{ text-decoration:underline; }
.event-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.event-card:hover .card-img{ transform:scale(1.015); }

.badge{
    background:var(--bg-primary); color:#fff; border:1px solid var(--bg-primary-hover);
    border-radius:999px; padding:.25rem .6rem; font-size:.8rem; font-weight:700;
    box-shadow:0 1px 0 rgba(0,0,0,.05);
    position:absolute; bottom:12px; left:16px;
}

.meta{ display:flex; align-items:center; gap:.45rem; color:var(--muted); font-size:1rem; margin-right:12px; }
.meta-row{ display:flex; flex-wrap:wrap; gap:10px; margin:.5rem 0 1rem; }

/* dividers */
.divider{ width:100%; height:2px; background:var(--link-dark); margin:16px 0; }
hr.icon{
    margin:70px auto; padding:0; border:0; border-top:solid 3px; text-align:center;
}
hr.icon:after{
    content:"\f135"; font-family:"Font Awesome 5 Free"; font-weight:900;
    display:inline-block; position:relative; top:-1.7rem; padding:0 1rem; font-size:2rem;
    background:var(--surface); border:1px solid var(--border); border-radius:999px;
}

/* ------------------------------
   Hero / Buttons / Links
   ------------------------------ */
.hero{
    background:linear-gradient(135deg,rgba(65,90,119,.25),rgba(13,27,42,.6));
    border:1px solid rgba(0,0,0,.06);
    border-radius:18px; padding:28px 22px; margin:8px 0 28px; box-shadow:var(--shadow-md);
}
.hero-title{ font-family:'Platypi',serif; margin:0 0 .4rem; color:#fff; font-size:2.6rem; }
.hero-sub{ margin:0 0 1rem; color:rgba(255,255,255,.9); font-size:1.25rem; }
.hero-cta .btn-primary{ display:inline-block; font-size:1.2rem; }

.btn-primary{
    background:var(--bg-primary); border:1px solid var(--bg-primary);
    color:#fff; font-weight:600; padding:14px 20px; font-size:1.1rem; border-radius:10px;
    text-decoration:none; display:inline-flex; gap:.5rem; align-items:center; transition:.2s;
}
.btn-primary:hover{ background:var(--bg-primary-hover); transform:translateY(-1px); box-shadow:var(--shadow-lg); }
.btn-primary:active{ transform:none; box-shadow:var(--shadow-sm); }

.card a, .container a{ color:var(--link); }
.card a:hover, .container a:hover{ color:var(--link-dark); }

/* ------------------------------
   Lists / Quotes
   ------------------------------ */
.intro-text{ font-size:1.25rem; line-height:1.8; }

ul.normal-text{
    list-style-type:disc; font-size:1.25rem; padding-left:2rem; margin-left:0; list-style-position:outside;
    color:var(--txt-dark); background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    padding-top:1rem; padding-right:1.25rem; padding-bottom:1rem;
}
ul.normal-text li{ margin-bottom:.75rem; }

.quote,.testimonial{
    border-left:4px solid var(--bg-primary);
    background:var(--surface-2); color:var(--txt-dark);
    padding:1rem 1.25rem; border-radius:10px; margin:1rem 0;
}
.testimonial-text{ font-size:1.2rem; line-height:1.75; }
.testimonial-name{ font-size:1rem; color:var(--muted); text-align:right; }

/* ------------------------------
   Event image
   ------------------------------ */
.row .fixed-size{
    width:100%; height:240px; object-fit:cover; display:block; border-radius:12px; border:1px solid var(--border);
}
.event-detail .hero-img{
    width:100%; height:auto; border-radius:16px; border:1px solid var(--border); box-shadow:var(--shadow-md); margin:12px 0 18px;
}
.prose p{
    color:var(--txt-dark); background:var(--surface); border:1px solid var(--border);
    border-radius:12px; padding:1rem 1.25rem; font-size:1.1rem;
}

/* RSVP */
.rsvp .rsvp-row{ display:flex; gap:10px; flex-wrap:wrap; }
.rsvp-count{ color:var(--txt-dark); margin-top:.5rem; }
.rsvp-button{
    width:180px; padding:12px 16px; font-size:1.1rem; font-weight:600; border:none; border-radius:8px;
    margin:6px 0; cursor:pointer; color:#fff; text-align:center;
    transition:background-color .25s ease, transform .1s ease, box-shadow .2s ease;
}
.rsvp-yes{ background:#4A6FA5; } .rsvp-yes:hover{ background:#3F608F; box-shadow:var(--shadow-lg); transform:translateY(-1px); }
.rsvp-no{ background:#5C677D; }  .rsvp-no:hover{ background:#4D576A; box-shadow:var(--shadow-lg); transform:translateY(-1px); }
.rsvp-maybe{ background:#9AA0A6; } .rsvp-maybe:hover{ background:#878D94; box-shadow:var(--shadow-lg); transform:translateY(-1px); }
.rsvp-button:active{ transform:translateY(0); box-shadow:var(--shadow-sm); }

/* ------------------------------
   Focus States
   ------------------------------ */
:where(a,button,[role="button"],input,select,textarea).focus-ring:focus-visible,
:where(.container a,.btn-primary,.rsvp-button,.nav-link,.link-button):focus-visible{
    outline:none; box-shadow:0 0 0 3px #E0E1DD, 0 0 0 6px #A0C1D1;
}

/* ------------------------------
   Utilities
   ------------------------------ */
.inline{ display:inline; }
.separator{ color:#fff; }

/* ------------------------------
   Responsive
   ------------------------------ */
@media (max-width:640px){
    :root{
        --header-height:88px;
        --logo-height:72px;
    }
    .site-header{ flex-wrap:wrap; justify-content:center; gap:10px; padding:16px 18px; }
    .nav-link{ font-size:1.05rem; padding:8px 12px; }
    .site-footer .foottext{ font-size:1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
    *{ transition:none!important; animation:none!important; }
}

/* 2026 visual refresh */
:root {
    --bg-body: #070b1d;
    --bg-header: #080d23;
    --bg-footer: #080d23;
    --surface: #ffffff;
    --surface-2: #f4f5fb;
    --bg-primary: #6658e8;
    --bg-primary-hover: #5042d4;
    --txt-light: #f8f8ff;
    --txt-dark: #17182b;
    --muted: #666a7d;
    --link: #5747d7;
    --link-dark: #3f31b6;
    --link-on-dark: #dcdcff;
    --border: #e6e6f0;
    --radius: 20px;
    --shadow-lg: 0 24px 70px rgba(25, 18, 75, .18);
    --shadow-md: 0 14px 40px rgba(25, 18, 75, .12);
    --shadow-sm: 0 8px 24px rgba(25, 18, 75, .08);
    --header-height: 82px;
    --logo-height: 64px;
}

body { font-family: 'DM Sans', 'Roboto', system-ui, sans-serif; font-size: 18px; background: #fbfbfe; }
h1, h2, h3, .page-title, .card-title { font-family: 'Manrope', 'Platypi', sans-serif; letter-spacing: -.035em; }
.site-header { padding: 10px clamp(20px, 5vw, 72px); background: var(--bg-header); }
.brand { min-height: 60px; }
.logo { height: 58px; }
.main-nav { padding: 0 clamp(20px, 5vw, 72px); background: var(--bg-header); border-top-color: rgba(255,255,255,.08); }
.nav-list { justify-content: flex-start; gap: 4px; }
.nav-link { font-size: .94rem; padding: 12px 15px; border-radius: 0; border-width: 0 0 2px; color: #bfc1d7 !important; }
.nav-link:hover, .nav-link.is-active, .nav-link:focus-visible { background: transparent; border-color: #a69cff; color: #fff !important; box-shadow: none; }
.header-link, .site-header a, .user-nav .btn-link, .link-button { font-size: .94rem; }
.sep { display: none; }
.user-nav { gap: 4px; }
.container { max-width: 1180px; margin: 48px auto; padding: 0 24px; }
.page-head { margin-bottom: 38px; }
.page-title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.04; margin: 8px 0 14px; }
.page-sub { font-size: 1.15rem; }
.btn-primary, .btn-secondary { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 22px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.btn-secondary { color: var(--txt-dark); border: 1px solid var(--border); background: rgba(255,255,255,.9); }
.btn-secondary:hover { color: var(--link-dark); border-color: #b7afea; box-shadow: var(--shadow-sm); }
.home-main { overflow: hidden; }
.home-hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr); gap: clamp(40px, 7vw, 100px); align-items: center; max-width: 1380px; margin: 0 auto; padding: 72px clamp(24px, 6vw, 96px) 90px; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 12% 8%, rgba(90,74,231,.34), transparent 25%), radial-gradient(circle at 88% 24%, rgba(122,72,190,.28), transparent 30%), radial-gradient(ellipse at 50% 110%, rgba(39,69,151,.42), transparent 48%), linear-gradient(145deg, #050818 0%, #0b1030 55%, #17103c 100%); color: white; border: 1px solid rgba(157,145,255,.12); border-top: 0; border-radius: 0 0 48px 48px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.06), 0 32px 90px rgba(12,9,46,.15); }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .68; background-image: radial-gradient(circle at 7% 18%, rgba(255,255,255,.9) 0 1px, transparent 1.6px), radial-gradient(circle at 18% 72%, rgba(173,188,255,.8) 0 1px, transparent 1.7px), radial-gradient(circle at 28% 32%, rgba(255,255,255,.75) 0 1.2px, transparent 1.8px), radial-gradient(circle at 42% 14%, rgba(212,205,255,.85) 0 1px, transparent 1.6px), radial-gradient(circle at 53% 82%, rgba(255,255,255,.7) 0 1px, transparent 1.7px), radial-gradient(circle at 67% 8%, rgba(255,255,255,.85) 0 1.2px, transparent 1.8px), radial-gradient(circle at 78% 66%, rgba(183,198,255,.8) 0 1px, transparent 1.6px), radial-gradient(circle at 91% 42%, rgba(255,255,255,.9) 0 1px, transparent 1.7px), radial-gradient(circle at 96% 85%, rgba(208,197,255,.75) 0 1.2px, transparent 1.8px); }
.home-hero::after { content: ""; position: absolute; z-index: -1; width: 720px; height: 240px; right: -110px; bottom: -130px; border-radius: 50%; background: linear-gradient(90deg, rgba(71,105,220,.28), rgba(151,77,210,.22)); filter: blur(42px); transform: rotate(-12deg); pointer-events: none; }
.home-hero > * { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 760px; margin: 0 0 24px; color: white; font-size: clamp(3.15rem, 5.5vw, 5.75rem); line-height: .98; text-shadow: 0 8px 38px rgba(0,0,0,.28); }
.hero-copy > p { max-width: 650px; color: #c6c8db; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.home-hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; color: #9da1bd; font-size: .86rem; }
.hero-trust strong { display: block; color: white; font: 700 1.35rem 'Manrope', sans-serif; }
.hero-gallery { position: relative; min-height: 500px; }
.hero-image { position: absolute; object-fit: cover; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.hero-image-main { inset: 42px 70px 30px 0; width: calc(100% - 70px); height: 430px; border-radius: 180px 28px 180px 28px; }
.hero-image-top { right: 0; top: 0; width: 185px; height: 185px; border-radius: 24px 80px 24px 80px; }
.hero-image-bottom { right: 5px; bottom: 0; width: 210px; height: 150px; border-radius: 70px 20px 70px 20px; }
.orbit-note { position: absolute; left: -25px; bottom: 28px; padding: 11px 16px; border-radius: 999px; background: rgba(9,14,42,.72); color: #f2f1ff; border: 1px solid rgba(179,168,255,.38); font-size: .8rem; font-weight: 700; box-shadow: 0 15px 38px rgba(2,5,20,.35), inset 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.orbit-note i { color: #a99cff; filter: drop-shadow(0 0 8px rgba(153,137,255,.7)); }
.home-section { max-width: 1180px; margin: 0 auto; padding: 110px 24px; }
.section-heading { max-width: 700px; margin-bottom: 44px; }
.section-heading h2, .home-cta h2 { font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: 1.08; margin: 12px 0; }
.section-heading p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-tile { padding: 32px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature-tile h3 { margin: 22px 0 8px; font-size: 1.35rem; }
.feature-tile p { min-height: 88px; color: var(--muted); line-height: 1.65; }
.feature-tile a { color: var(--link); font-weight: 700; text-decoration: none; }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #eeecff; color: #6658e8; }
.home-cta { max-width: 1132px; margin: 0 auto 110px; padding: 48px 54px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 28px; background: linear-gradient(120deg, #5d4ce1, #854fc9); color: #fff; box-shadow: var(--shadow-lg); }
.home-cta h2 { margin-bottom: 0; max-width: 700px; }
.btn-light { flex: 0 0 auto; background: #fff; color: #4335bc; border-color: #fff; }
.card { min-height: 380px; border-radius: 20px; }
.card-img { height: 210px; }
.empty-state { padding: 72px 24px; text-align: center; border: 1px dashed #cfcce4; border-radius: 24px; background: #fff; }
.empty-state h2 { margin: 20px 0 8px; }
.empty-state p { color: var(--muted); }
.site-footer { padding: 32px clamp(20px, 5vw, 72px); }

@media (max-width: 900px) {
    .home-hero { grid-template-columns: 1fr; }
    .hero-gallery { min-height: 430px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-tile p { min-height: auto; }
    .home-cta { margin-left: 24px; margin-right: 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .site-header { justify-content: space-between; }
    .brand { width: 100%; justify-content: center; }
    .user-nav { width: 100%; justify-content: center; }
    .nav-list { justify-content: center; }
    .nav-link { padding: 10px 8px; font-size: .84rem; }
    .home-hero { padding-top: 48px; border-radius: 0 0 28px 28px; }
    .hero-copy h1 { font-size: clamp(2.7rem, 15vw, 4rem); }
    .hero-gallery { min-height: 340px; }
    .hero-image-main { right: 35px; width: calc(100% - 35px); height: 290px; }
    .hero-image-top { width: 120px; height: 120px; }
    .hero-image-bottom { width: 145px; height: 105px; }
    .orbit-note { left: 0; }
    .home-section { padding-top: 80px; padding-bottom: 80px; }
    .home-cta { padding: 36px 28px; }
}

/* Unified navigation and footer */
body { margin: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: block;
    min-height: 0;
    padding: 0;
    background: rgba(8, 13, 35, .94);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 35px rgba(4, 7, 22, .16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-shell {
    width: min(100% - 40px, 1440px);
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(190px, auto) minmax(380px, 1fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 44px);
}

.site-header .brand {
    min-height: 0;
    width: fit-content;
    padding: 8px 0;
}

.site-header .logo {
    width: 235px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.site-header .main-nav {
    padding: 0;
    background: transparent;
    border: 0;
}

.site-header .nav-list {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
}

.site-header .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    color: #bfc3da !important;
    font-size: .88rem;
    font-weight: 650;
    white-space: nowrap;
}

.site-header .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
}

.site-header .nav-link.is-active,
.site-header .nav-link[aria-current="page"] {
    color: #fff !important;
    background: rgba(126, 108, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(166, 156, 255, .3);
}

.site-header .user-nav {
    justify-content: flex-end;
    gap: 8px;
    min-width: max-content;
}

.site-header .account-link,
.site-header .account-cta,
.site-header .profile-link,
.site-header .logout-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .account-link {
    padding: 10px 12px;
    color: #d8daeb !important;
}

.site-header .account-link:hover { color: #fff !important; }

.site-header .account-cta {
    padding: 10px 16px;
    color: #fff !important;
    background: linear-gradient(135deg, #7364ed, #8f59d4);
    box-shadow: 0 7px 20px rgba(100, 79, 223, .25);
}

.site-header .account-cta:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(100, 79, 223, .36);
}

.site-header .account-cta.is-active {
    box-shadow: 0 0 0 3px rgba(166, 156, 255, .32);
}

.site-header .profile-link {
    padding: 4px 10px 4px 4px;
    color: #f4f4ff !important;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
}

.site-header .profile-link:hover,
.site-header .profile-link.is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(166, 156, 255, .4);
}

.user-avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #6e60eb, #a15ec8);
    font: 800 .78rem 'Manrope', sans-serif;
}

.logout-form { margin: 0; }

.site-header .logout-button {
    padding: 10px 12px;
    border: 0;
    color: #bfc3da;
    background: transparent;
    cursor: pointer;
}

.site-header .logout-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.site-header :where(a, button):focus-visible {
    outline: 2px solid #c5bcff;
    outline-offset: 3px;
}

.site-footer {
    margin-top: auto;
    padding: 0;
    text-align: left;
    color: #bfc3d8;
    background: #080d23;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-inner {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 64px 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 72px;
    align-items: start;
    padding-bottom: 48px;
}

.footer-intro { max-width: 420px; }

.site-footer .footer-brand {
    display: inline-flex;
    margin: 0 0 18px;
}

.footer-brand img {
    width: 210px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.footer-intro p {
    margin: 0;
    color: #989db8;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(145px, 1fr));
    gap: 56px;
}

.footer-nav > div { display: grid; gap: 11px; }

.footer-label {
    margin-bottom: 5px;
    color: #747a99;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.site-footer .footer-nav a {
    width: fit-content;
    margin: 0;
    color: #e1e3f0 !important;
    font-size: .91rem;
    font-weight: 650;
    text-decoration: none;
}

.site-footer .footer-nav a:hover,
.site-footer .back-to-top:hover {
    color: #fff !important;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.footer-bottom p {
    margin: 0;
    color: #777d99;
    font-size: .78rem;
    font-weight: 600;
}

.site-footer .back-to-top {
    margin: 0;
    color: #bfc3d8 !important;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 980px) {
    .header-shell {
        grid-template-columns: 1fr auto;
        gap: 0 18px;
        padding: 7px 0 0;
    }
    .site-header .brand { padding: 0; }
    .site-header .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .site-header .nav-list { min-height: 46px; }
}

@media (max-width: 680px) {
    .header-shell { width: min(100% - 24px, 1440px); }
    .site-header .logo { width: 185px; height: 44px; }
    .site-header .account-create span,
    .site-header .logout-text { display: none; }
    .site-header .account-create,
    .site-header .logout-button { width: 40px; padding: 0; }
    .site-header .nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .site-header .nav-list::-webkit-scrollbar { display: none; }
    .site-header .nav-link { padding: 8px 11px; font-size: .8rem; }
    .footer-inner { width: min(100% - 40px, 1180px); padding-top: 48px; }
    .footer-main { grid-template-columns: 1fr; gap: 40px; }
    .footer-nav { gap: 28px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
    .profile-name { display: none; }
    .site-header .profile-link { padding-right: 4px; }
    .site-header .nav-link { padding-inline: 9px; }
}

/* Homepage: orbital editorial layout */
.home-main {
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 12%, rgba(108, 88, 232, .11), transparent 25%),
        radial-gradient(circle at 8% 31%, rgba(84, 122, 217, .06), transparent 22%),
        #f8f8fc;
}

.home-hero {
    width: min(100% - 48px, 1380px);
    min-height: 760px;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    gap: clamp(32px, 5vw, 76px);
    margin: 0 auto;
    padding: 84px 20px 94px;
    overflow: visible;
    color: #17182b;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-hero::before {
    width: 680px;
    height: 680px;
    inset: 50% -170px auto auto;
    z-index: -2;
    opacity: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 35%, rgba(255, 255, 255, .95), transparent 2%),
        radial-gradient(circle at 50% 50%, rgba(231, 227, 255, .82), rgba(235, 232, 251, .42) 56%, rgba(235, 232, 251, 0) 71%);
    transform: translateY(-50%);
}

.home-hero::after {
    width: 270px;
    height: 270px;
    left: -220px;
    right: auto;
    bottom: 55px;
    z-index: -1;
    border: 1px solid rgba(94, 74, 204, .12);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 54px rgba(104, 84, 220, .025), 0 0 0 108px rgba(104, 84, 220, .018);
    filter: none;
    transform: none;
}

.hero-copy { align-self: center; }

.hero-copy h1 {
    max-width: 790px;
    margin: 0 0 30px;
    color: #141529;
    font-size: clamp(4rem, 6.5vw, 7.25rem);
    line-height: .91;
    letter-spacing: -.065em;
    text-shadow: none;
    text-wrap: balance;
}

.hero-copy > p {
    max-width: 650px;
    margin: 0;
    color: #62667a;
    font-size: clamp(1.05rem, 1.45vw, 1.24rem);
    line-height: 1.75;
}

.hero-actions { margin: 34px 0 48px; }

.home-hero .btn-primary {
    color: #fff;
    background: #5e50dc;
    border-color: #5e50dc;
    box-shadow: 0 12px 30px rgba(78, 61, 190, .22);
}

.home-hero .btn-primary:hover { background: #4e40c9; border-color: #4e40c9; }

.home-hero .btn-secondary {
    color: #26273b;
    background: rgba(255, 255, 255, .76);
    border-color: #dedcea;
    box-shadow: 0 8px 22px rgba(28, 22, 69, .05);
    backdrop-filter: blur(10px);
}

.home-hero .btn-secondary:hover { color: #4e40c9; border-color: #bcb5ee; }

.hero-trust {
    width: fit-content;
    gap: 0;
    padding: 0;
    color: #777b8f;
    font-size: .78rem;
    border-top: 1px solid #dcdbe7;
}

.hero-trust span {
    min-width: 112px;
    padding: 18px 24px 0 0;
}

.hero-trust span + span {
    padding-left: 24px;
    border-left: 1px solid #dcdbe7;
}

.hero-trust strong {
    color: #202136;
    font-size: 1.35rem;
}

.hero-gallery {
    min-height: 620px;
    align-self: center;
    isolation: isolate;
}

.hero-gallery::before {
    content: "";
    position: absolute;
    width: 640px;
    height: 330px;
    left: 50%;
    top: 50%;
    z-index: -1;
    border: 1px solid rgba(91, 72, 202, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(99, 80, 215, .035);
    transform: translate(-50%, -50%) rotate(-24deg);
}

.hero-gallery::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    right: 4%;
    top: 34%;
    z-index: 4;
    border: 3px solid #f8f8fc;
    border-radius: 50%;
    background: #6e5ce5;
    box-shadow: 0 0 0 8px rgba(110, 92, 229, .12), 0 0 22px rgba(110, 92, 229, .48);
}

.hero-image {
    border: 7px solid rgba(255, 255, 255, .94);
    box-shadow: 0 28px 70px rgba(30, 22, 78, .18);
}

.hero-image-main {
    inset: auto;
    width: min(440px, 75%);
    aspect-ratio: 1;
    height: auto;
    left: 50%;
    top: 50%;
    border-width: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero-image-top {
    width: 155px;
    height: 155px;
    right: 0;
    top: 32px;
    border-radius: 50%;
}

.hero-image-bottom {
    width: 190px;
    height: 135px;
    right: auto;
    left: -12px;
    bottom: 44px;
    border-radius: 68px 22px 68px 22px;
}

.orbit-note {
    left: auto;
    right: -6px;
    bottom: 92px;
    color: #fff;
    background: rgba(26, 25, 59, .88);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 16px 38px rgba(29, 20, 73, .2);
}

.home-section { max-width: 1180px; padding-top: 88px; }
.section-heading { margin-bottom: 38px; }
.section-heading h2 { margin-top: 0; }

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 16px;
}

.feature-tile {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(30, 24, 78, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(30, 24, 78, .13);
}

.feature-tile h3 {
    margin: 22px 0 10px;
    font-size: 1.38rem;
    line-height: 1.2;
}

.feature-tile p {
    min-height: 0;
    margin: 0 0 24px;
    flex: 1;
    font-size: .98rem;
    line-height: 1.6;
}

.feature-tile a {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    font-size: .9rem;
    transition: transform .2s ease;
}

.feature-tile a:hover { transform: translateX(4px); }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

.feature-tile:first-child {
    grid-row: auto;
    justify-content: flex-start;
    min-height: 280px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 5%, rgba(120, 101, 238, .3), transparent 34%),
        #10142f;
    border-color: #10142f;
}

.feature-tile:first-child::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -58px;
    top: -72px;
    border: 1px solid rgba(184, 174, 255, .25);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(179, 168, 255, .035), 0 0 0 56px rgba(179, 168, 255, .02);
}

.feature-tile:first-child .feature-icon { color: #c2baff; background: rgba(128, 108, 237, .16); }
.feature-tile:first-child h3 { color: #fff; font-size: 1.38rem; }
.feature-tile:first-child p { min-height: 0; color: #b7bbd2; }
.feature-tile:first-child a { color: #cfc9ff; }
.feature-tile:nth-child(2) { background: #f0eeff; border-color: #e2defe; }
.feature-tile:nth-child(3) { background: #f2f8ff; border-color: #deebf8; }
.feature-tile:nth-child(3) .feature-icon { color: #337da7; background: #dcefff; }
.feature-tile:nth-child(3) a { color: #2e7197; }

.home-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 1040px;
    margin-bottom: 110px;
    padding: 48px 50px;
    border: 1px solid rgba(177, 168, 255, .26);
    border-radius: 30px;
    background: #111631;
    box-shadow: 0 22px 55px rgba(30, 24, 78, .16);
}

.home-cta::before {
    position: absolute;
    z-index: -1;
    inset: -30px;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.7px),
        radial-gradient(circle, rgba(174,164,255,.7) 0 1.3px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,.45) 0 1px, transparent 1.6px);
    background-position: 12px 18px, 86px 42px, 34px 94px;
    background-size: 118px 96px, 164px 132px, 92px 148px;
    opacity: .52;
    content: '';
    animation: cta-stars-drift 18s linear infinite;
}

.home-cta > div,
.home-cta > a {
    position: relative;
    z-index: 2;
}

.home-cta h2 {
    max-width: 660px;
    margin: 0;
    font-size: clamp(1.9rem, 3.3vw, 3rem);
    text-wrap: balance;
}

.home-cta .btn-light {
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-color: #fff;
    border-radius: 14px;
    background: #fff;
    color: #4335bc;
    font-size: .9rem;
    white-space: nowrap;
}

.home-cta .btn-light i {
    font-size: .8rem;
    transition: transform .22s ease;
}

.home-cta .btn-light:hover {
    border-color: #e8e4ff;
    background: #f4f2ff;
    color: #392da5;
}

.home-cta .btn-light:hover i { transform: translate(3px, -3px) rotate(-8deg); }

.cta-comet {
    position: absolute;
    z-index: 1;
    top: 25px;
    left: -130px;
    width: 105px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(181,171,255,.28), #fff);
    filter: drop-shadow(0 0 7px rgba(198,190,255,.9));
    animation: cta-comet-pass 8s ease-in-out infinite;
}

.cta-comet::after {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #c7beff;
    content: '';
}

@keyframes cta-stars-drift {
    to { transform: translate3d(36px, 18px, 0); }
}

@keyframes cta-comet-pass {
    0%, 12% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-10deg); }
    18% { opacity: 1; }
    64% { opacity: 1; }
    74%, 100% { opacity: 0; transform: translate3d(1250px, 115px, 0) rotate(-10deg); }
}

@media (max-width: 1050px) {
    .home-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); }
    .hero-copy h1 { font-size: clamp(3.7rem, 7vw, 5.6rem); }
    .hero-gallery { min-height: 540px; }
    .hero-gallery::before { width: 520px; height: 280px; }
}

@media (max-width: 860px) {
    .home-hero {
        width: min(100% - 40px, 1380px);
        grid-template-columns: 1fr;
        padding-top: 72px;
    }
    .hero-copy { max-width: 720px; }
    .hero-gallery { width: min(100%, 620px); min-height: 540px; margin: 0 auto; }
    .feature-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .feature-tile,
    .feature-tile:first-child { min-height: 230px; }
}

@media (max-width: 600px) {
    .home-hero { width: min(100% - 28px, 1380px); padding: 56px 0 68px; }
    .hero-copy h1 { font-size: clamp(3.25rem, 16vw, 4.8rem); }
    .hero-actions { margin-bottom: 40px; }
    .hero-trust { width: 100%; }
    .hero-trust span { min-width: 0; flex: 1; padding-right: 12px; }
    .hero-trust span + span { padding-left: 12px; }
    .hero-gallery { min-height: 400px; }
    .hero-gallery::before { width: 400px; height: 210px; }
    .hero-gallery::after { right: 1%; }
    .hero-image-main { width: min(300px, 76%); }
    .home-section { padding-top: 72px; padding-bottom: 72px; }
    .feature-tile,
    .feature-tile:first-child { min-height: 0; padding: 24px; }
    .hero-image-top { width: 105px; height: 105px; top: 16px; }
    .hero-image-bottom { width: 135px; height: 96px; left: 0; bottom: 18px; }
    .orbit-note { right: 0; bottom: 52px; font-size: .7rem; }
    .home-section { padding-top: 72px; }
    .home-cta { margin-inline: 20px; padding: 38px 28px; border-radius: 24px; }
    .home-cta .btn-light { min-height: 48px; padding-inline: 18px; }
}

/* Space motion and simplified footer */
.home-hero::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    opacity: .62;
    background:
        radial-gradient(circle at 4% 18%, rgba(92, 73, 204, .65) 0 1px, transparent 1.8px),
        radial-gradient(circle at 14% 72%, rgba(69, 104, 190, .48) 0 1px, transparent 1.7px),
        radial-gradient(circle at 27% 34%, rgba(116, 96, 225, .52) 0 1.2px, transparent 1.9px),
        radial-gradient(circle at 39% 86%, rgba(84, 71, 176, .42) 0 1px, transparent 1.8px),
        radial-gradient(circle at 52% 13%, rgba(83, 109, 198, .55) 0 1px, transparent 1.7px),
        radial-gradient(circle at 65% 68%, rgba(110, 88, 220, .48) 0 1px, transparent 1.8px),
        radial-gradient(circle at 78% 27%, rgba(72, 102, 188, .5) 0 1.2px, transparent 1.9px),
        radial-gradient(circle at 91% 79%, rgba(112, 91, 224, .5) 0 1px, transparent 1.8px),
        radial-gradient(circle at 97% 11%, rgba(65, 91, 170, .45) 0 1px, transparent 1.7px);
    transform: none;
    animation: star-twinkle 5.5s ease-in-out infinite alternate;
}

.home-hero::after,
.hero-gallery::after { display: none; }

.hero-gallery::before {
    border-style: dashed;
    animation: orbit-drift 28s linear infinite;
}

.hero-image-main { animation: portal-glow 6s ease-in-out infinite alternate; }
.hero-image-top { animation: float-up 6s ease-in-out infinite; }
.hero-image-bottom { animation: float-down 7s ease-in-out infinite; }
.orbit-note { animation: float-note 5.5s ease-in-out infinite; }

@keyframes star-twinkle {
    from { opacity: .38; }
    to { opacity: .78; }
}

@keyframes orbit-drift {
    from { transform: translate(-50%, -50%) rotate(-24deg); }
    to { transform: translate(-50%, -50%) rotate(336deg); }
}

@keyframes portal-glow {
    from { box-shadow: 0 28px 70px rgba(30, 22, 78, .16), 0 0 0 0 rgba(106, 87, 225, 0); }
    to { box-shadow: 0 32px 78px rgba(30, 22, 78, .23), 0 0 0 10px rgba(106, 87, 225, .055); }
}

@keyframes float-up {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-11px) rotate(2deg); }
}

@keyframes float-down {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(9px) rotate(-2deg); }
}

@keyframes float-note {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Orbital home gallery */
.home-hero {
    width: min(100% - 64px, 1240px);
    min-height: 650px;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .88fr);
    gap: clamp(34px, 4vw, 60px);
    padding: 56px 32px 70px;
}

.hero-copy h1 {
    max-width: 660px;
    font-size: clamp(3.35rem, 5.2vw, 5.65rem);
    line-height: .96;
}

.hero-copy > p { max-width: 570px; }

.hero-orbit-gallery {
    min-height: 540px;
    isolation: isolate;
    overflow: visible;
}

.hero-orbit-gallery::before,
.hero-orbit-gallery::after {
    position: absolute;
    left: 50%;
    top: 50%;
    display: none;
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.hero-orbit-gallery::before {
    width: 94%;
    height: 76%;
    border: 1px dashed rgba(102, 88, 232, .28);
    box-shadow: 0 0 0 34px rgba(102, 88, 232, .025);
    transform: translate(-50%, -50%) rotate(-18deg);
    animation: none;
}

.hero-orbit-gallery::after {
    width: 68%;
    height: 94%;
    border: 1px solid rgba(105, 90, 218, .12);
    transform: translate(-50%, -50%) rotate(28deg);
    animation: none;
}

.gallery-orbit {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    pointer-events: none;
}

.gallery-orbit-outer {
    width: 90%;
    height: 66%;
    border: 1px dashed rgba(103, 86, 216, .2);
    transform: translate(-50%, -50%) rotate(-14deg);
}

.gallery-orbit-inner {
    width: 58%;
    height: 88%;
    border: 1px solid rgba(102, 88, 232, .11);
    transform: translate(-50%, -50%) rotate(25deg);
}

.orbit-frame {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    margin: 0;
    border: 7px solid rgba(255,255,255,.92);
    background: #11142b;
    box-shadow: 0 24px 58px rgba(33, 24, 86, .2), 0 0 0 1px rgba(102, 88, 232, .1);
    transition: box-shadow .25s ease, filter .25s ease;
}

.orbit-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.orbit-frame:hover {
    z-index: 8;
    box-shadow: 0 30px 72px rgba(33, 24, 86, .28), 0 0 0 2px rgba(102, 88, 232, .14);
}

.orbit-frame:hover img { transform: scale(1.055); }

.orbit-frame-main {
    left: 11%;
    top: 13%;
    width: 72%;
    height: 70%;
    border-radius: 42px 132px 42px 132px;
    animation: gallery-main-breathe 7s ease-in-out infinite;
}

.orbit-frame-earth {
    right: -1%;
    top: 2%;
    width: 165px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: gallery-float-one 6.4s ease-in-out infinite;
}

.orbit-frame-night {
    left: -1%;
    bottom: 5%;
    width: 205px;
    height: 138px;
    border-radius: 54px 18px 54px 18px;
    transform: rotate(-4deg);
    animation: gallery-float-two 7.6s ease-in-out infinite;
}

.orbit-frame-exhibit {
    right: -3%;
    bottom: 1%;
    width: 230px;
    height: 128px;
    border-radius: 18px 54px 18px 54px;
    transform: rotate(3deg);
    animation: gallery-float-three 8.2s ease-in-out infinite;
}

.orbit-frame-galaxy {
    left: 0;
    top: 1%;
    width: 155px;
    height: 98px;
    border-radius: 18px 44px 18px 44px;
    transform: rotate(-3deg);
    animation: gallery-float-four 7.1s ease-in-out infinite;
}

.hero-orbit-gallery .orbit-note {
    z-index: 9;
    right: 2%;
    bottom: 19%;
    left: auto;
    padding: 10px 15px;
    color: #fff;
    background: rgba(20, 22, 52, .9);
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 14px 34px rgba(27, 20, 72, .24);
}

.gallery-node {
    position: absolute;
    z-index: 7;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #7162df;
    filter: drop-shadow(0 0 7px rgba(102,88,232,.42));
    animation: gallery-node-pulse 2.4s ease-in-out infinite;
}

.gallery-node::before {
    content: '✦';
    font-size: 1.1rem;
    line-height: 1;
}

.gallery-node-two::before { font-size: .75rem; }
.gallery-node-three::before { font-size: .9rem; }

.gallery-node-one { left: 4%; top: 37%; }
.gallery-node-two { right: 3%; top: 42%; animation-delay: -.8s; }
.gallery-node-three { left: 49%; bottom: 2%; animation-delay: -1.6s; }

@keyframes gallery-orbit-wide {
    to { transform: translate(-50%, -50%) rotate(342deg); }
}

@keyframes gallery-orbit-tall {
    to { transform: translate(-50%, -50%) rotate(388deg); }
}

@keyframes gallery-main-breathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes gallery-float-one {
    0%, 100% { transform: translate3d(0,0,0) rotate(0); }
    50% { transform: translate3d(-7px,-10px,0) rotate(3deg); }
}

@keyframes gallery-float-two {
    0%, 100% { transform: translate3d(0,0,0) rotate(-4deg); }
    50% { transform: translate3d(5px,9px,0) rotate(-1deg); }
}

@keyframes gallery-float-three {
    0%, 100% { transform: translate3d(0,0,0) rotate(3deg); }
    50% { transform: translate3d(-5px,8px,0) rotate(0); }
}

@keyframes gallery-float-four {
    0%, 100% { transform: translate3d(0,0,0) rotate(-3deg); }
    50% { transform: translate3d(7px,-7px,0) rotate(1deg); }
}

@keyframes gallery-node-pulse {
    0%, 100% { opacity: .55; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 1050px) {
    .home-hero {
        width: min(100% - 48px, 1080px);
        min-height: 610px;
        grid-template-columns: minmax(0, 1fr) minmax(350px, .82fr);
        padding: 52px 28px 64px;
    }
    .hero-copy h1 { font-size: clamp(3.2rem, 6vw, 5rem); }
    .hero-orbit-gallery { min-height: 500px; }
    .orbit-frame-earth { width: 138px; }
    .orbit-frame-night { width: 174px; height: 118px; }
    .orbit-frame-exhibit { width: 192px; height: 108px; }
    .orbit-frame-galaxy { width: 132px; height: 84px; }
}

@media (max-width: 860px) {
    .home-hero {
        width: min(100% - 40px, 760px);
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 54px 22px 70px;
    }
    .hero-copy h1 { max-width: 680px; font-size: clamp(3.25rem, 9vw, 5.1rem); }
    .hero-orbit-gallery { min-height: 560px; }
}

@media (max-width: 600px) {
    .home-hero { width: min(100% - 28px, 760px); padding: 44px 8px 58px; }
    .hero-copy h1 { font-size: clamp(2.85rem, 14vw, 4.25rem); }
    .hero-orbit-gallery { min-height: 430px; }
    .orbit-frame-main { left: 10%; top: 15%; width: 78%; height: 68%; border-width: 5px; border-radius: 30px 78px 30px 78px; }
    .orbit-frame-earth { right: 0; width: 100px; border-width: 5px; }
    .orbit-frame-night { width: 126px; height: 86px; border-width: 5px; }
    .orbit-frame-exhibit { right: 0; width: 145px; height: 82px; border-width: 5px; }
    .orbit-frame-galaxy { width: 105px; height: 68px; border-width: 5px; }
    .hero-orbit-gallery .orbit-note { right: 1%; bottom: 18%; max-width: 230px; font-size: .66rem; }
}

.site-footer { padding: 0; }

.footer-simple {
    width: min(100% - 48px, 1180px);
    min-height: 92px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}

.site-footer .footer-simple .footer-brand {
    display: inline-flex;
    margin: 0;
}

.footer-simple .footer-brand img {
    width: 215px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.site-footer .footer-links a {
    margin: 0;
    color: #bfc3d8 !important;
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
}

.site-footer .footer-links a:hover { color: #fff !important; text-decoration: none; }

.footer-simple p {
    margin: 0;
    color: #737a98;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .footer-simple {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        padding: 32px 0;
        text-align: center;
    }
    .footer-simple .footer-brand img { object-position: center; }
    .footer-links { flex-wrap: wrap; gap: 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero::before,
    .hero-gallery::before,
    .hero-image-main,
    .hero-image-top,
    .hero-image-bottom,
    .orbit-note,
    .home-cta::before,
    .cta-comet,
    .hero-orbit-gallery::before,
    .hero-orbit-gallery::after,
    .orbit-frame,
    .gallery-node { animation: none !important; }
    .cta-comet { display: none; }
}

/* Planet-and-photo-stars homepage composition */
.hero-orbit-gallery {
    min-height: 540px;
    isolation: isolate;
}

.hero-orbit-gallery .gallery-orbit {
    z-index: 0;
    left: 50%;
    top: 50%;
}

.hero-orbit-gallery .gallery-orbit-outer {
    width: 88%;
    height: 64%;
    border: 1px dashed rgba(103, 86, 216, .25);
    transform: translate(-50%, -50%) rotate(-13deg);
    animation: planet-orbit-wide 34s linear infinite;
}

.hero-orbit-gallery .gallery-orbit-inner {
    width: 61%;
    height: 86%;
    border: 1px solid rgba(102, 88, 232, .14);
    transform: translate(-50%, -50%) rotate(24deg);
    animation: planet-orbit-tall 40s linear infinite reverse;
}

.gallery-planet {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: clamp(215px, 48%, 275px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gallery-planet::before,
.gallery-planet::after {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: 148%;
    height: 38%;
    border: 2px solid rgba(111, 91, 225, .38);
    border-radius: 50%;
    content: '';
    transform: translate(-50%, -50%) rotate(-17deg);
}

.gallery-planet::after {
    width: 164%;
    height: 48%;
    border-color: rgba(147, 132, 239, .14);
    transform: translate(-50%, -50%) rotate(19deg);
}

.planet-glow,
.planet-surface,
.planet-rim,
.planet-moon {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.planet-glow {
    z-index: 0;
    inset: -16%;
    background: radial-gradient(circle, rgba(107, 83, 230, .3), rgba(118, 95, 226, .06) 54%, transparent 70%);
    filter: blur(8px);
    animation: planet-glow-pulse 6s ease-in-out infinite;
}

.planet-surface {
    z-index: 1;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 28% 24%, rgba(255,255,255,.7) 0 3%, transparent 4%),
        radial-gradient(ellipse at 68% 63%, rgba(28,24,91,.3) 0 11%, transparent 12%),
        radial-gradient(ellipse at 35% 74%, rgba(204,187,255,.35) 0 8%, transparent 9%),
        linear-gradient(145deg, #b7a9ff 0%, #7a63e9 32%, #4935bd 67%, #211957 100%);
    box-shadow:
        inset -30px -28px 50px rgba(15, 12, 55, .38),
        inset 17px 12px 26px rgba(255,255,255,.24);
    animation: planet-breathe 7s ease-in-out infinite;
}

.planet-rim {
    z-index: 3;
    inset: 0;
    border: 8px solid rgba(255, 255, 255, .96);
    box-shadow:
        0 0 0 1px rgba(89, 70, 196, .1),
        inset 0 0 0 1px rgba(255, 255, 255, .45),
        0 24px 60px rgba(57, 40, 154, .28);
}

.planet-surface::before {
    position: absolute;
    inset: 12% -16%;
    border: 2px solid rgba(232, 225, 255, .18);
    border-radius: 50%;
    box-shadow: 0 28px 0 rgba(232,225,255,.08), 0 58px 0 rgba(232,225,255,.07), 0 88px 0 rgba(232,225,255,.06);
    content: '';
    transform: rotate(-14deg);
}

.planet-moon {
    z-index: 4;
    right: -14%;
    top: 15%;
    width: 25px;
    aspect-ratio: 1;
    border: 3px solid rgba(255,255,255,.85);
    background: #1d1a42;
    box-shadow: 0 8px 18px rgba(33, 24, 88, .28);
    animation: moon-float 5.4s ease-in-out infinite;
}

.orbit-star {
    --star-rotation: 0deg;
    position: absolute;
    z-index: 4;
    aspect-ratio: 1;
    margin: 0;
    padding: 5px;
    clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 71%, 21% 92%, 32% 56%, 2% 35%, 39% 34%);
    background: rgba(255,255,255,.96);
    filter: drop-shadow(0 18px 20px rgba(41, 30, 105, .25));
    transform: rotate(var(--star-rotation));
    animation: photo-star-float 6.8s ease-in-out infinite;
    transition: filter .25s ease;
}

.orbit-star img {
    display: block;
    width: 100%;
    height: 100%;
    clip-path: inherit;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .25s ease;
}

.orbit-star:hover {
    z-index: 7;
    filter: drop-shadow(0 24px 27px rgba(41, 30, 105, .33));
}

.orbit-star:hover img { transform: scale(1.12); filter: saturate(1.13) brightness(1.05); }

.orbit-star-nebula {
    --star-rotation: -9deg;
    left: 0;
    top: 3%;
    width: 158px;
    animation-delay: -.8s;
}

.orbit-star-exhibit {
    --star-rotation: 10deg;
    right: -1%;
    top: 4%;
    width: 142px;
    animation-duration: 7.6s;
    animation-delay: -2.4s;
}

.orbit-star-blackhole {
    --star-rotation: 6deg;
    right: -2%;
    bottom: 6%;
    width: 154px;
    animation-duration: 8.2s;
    animation-delay: -4s;
}

.orbit-star-stargazer {
    --star-rotation: -5deg;
    left: -3%;
    bottom: 7%;
    width: 150px;
    animation-duration: 7.2s;
    animation-delay: -3.2s;
}

.orbit-star-mountains {
    --star-rotation: 4deg;
    left: 42%;
    bottom: -1%;
    width: 116px;
    animation-duration: 6.2s;
    animation-delay: -1.7s;
}

.hero-orbit-gallery .orbit-note {
    z-index: 8;
    right: 3%;
    bottom: 18%;
    animation: planet-note-float 5.5s ease-in-out infinite;
}

.hero-orbit-gallery .gallery-node { z-index: 8; }
.hero-orbit-gallery .gallery-node-one { left: 6%; top: 42%; }
.hero-orbit-gallery .gallery-node-two { right: 5%; top: 43%; }
.hero-orbit-gallery .gallery-node-three { left: 54%; bottom: 4%; }

@keyframes planet-orbit-wide {
    to { transform: translate(-50%, -50%) rotate(347deg); }
}

@keyframes planet-orbit-tall {
    to { transform: translate(-50%, -50%) rotate(384deg); }
}

@keyframes planet-glow-pulse {
    0%, 100% { opacity: .7; transform: scale(.94); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes planet-breathe {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

@keyframes moon-float {
    0%, 100% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(5px,-8px,0); }
}

@keyframes photo-star-float {
    0%, 100% { transform: translate3d(0,0,0) rotate(var(--star-rotation)); }
    50% { transform: translate3d(4px,-10px,0) rotate(calc(var(--star-rotation) + 3deg)); }
}

@keyframes planet-note-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 1050px) {
    .orbit-star-nebula { width: 136px; }
    .orbit-star-exhibit { width: 122px; }
    .orbit-star-blackhole { width: 132px; }
    .orbit-star-stargazer { width: 130px; }
    .orbit-star-mountains { width: 102px; }
}

@media (max-width: 860px) {
    .hero-orbit-gallery { width: min(100%, 570px); min-height: 540px; }
}

@media (max-width: 600px) {
    .hero-orbit-gallery { min-height: 410px; }
    .gallery-planet { width: min(205px, 52%); }
    .gallery-planet::before { width: 140%; }
    .gallery-planet::after { width: 152%; }
    .orbit-star { padding: 4px; }
    .orbit-star-nebula { left: 0; top: 3%; width: 108px; }
    .orbit-star-exhibit { right: 0; top: 3%; width: 94px; }
    .orbit-star-blackhole { right: -1%; bottom: 7%; width: 103px; }
    .orbit-star-stargazer { left: -1%; bottom: 8%; width: 102px; }
    .orbit-star-mountains { left: 41%; bottom: 0; width: 82px; }
    .hero-orbit-gallery .orbit-note { right: 1%; bottom: 20%; max-width: 215px; font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-orbit,
    .gallery-planet span,
    .orbit-star,
    .hero-orbit-gallery .orbit-note { animation: none !important; }
}

/* Decorative four-point stars across the homepage hero */
.home-hero .hero-copy,
.home-hero .hero-gallery {
    position: relative;
    z-index: 1;
}

.hero-sparkles {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-sparkles span {
    position: absolute;
    color: #7464e3;
    font-size: 11px;
    line-height: 1;
    opacity: .34;
    filter: drop-shadow(0 0 6px rgba(104, 87, 220, .28));
    animation: hero-sparkle 4.8s ease-in-out infinite;
}

.hero-sparkles span:nth-child(1)  { left: 1.5%; top: 9%; font-size: 8px; animation-delay: -.5s; }
.hero-sparkles span:nth-child(2)  { left: 5%; top: 48%; font-size: 13px; animation-delay: -2.1s; }
.hero-sparkles span:nth-child(3)  { left: 14%; top: 17%; font-size: 7px; animation-delay: -3.7s; }
.hero-sparkles span:nth-child(4)  { left: 23%; top: 71%; font-size: 10px; animation-delay: -1.4s; }
.hero-sparkles span:nth-child(5)  { left: 34%; top: 6%; font-size: 14px; animation-delay: -2.9s; }
.hero-sparkles span:nth-child(6)  { left: 42%; top: 43%; font-size: 8px; animation-delay: -.9s; }
.hero-sparkles span:nth-child(7)  { left: 48%; top: 88%; font-size: 12px; animation-delay: -4.1s; }
.hero-sparkles span:nth-child(8)  { left: 54%; top: 14%; font-size: 9px; animation-delay: -1.8s; }
.hero-sparkles span:nth-child(9)  { left: 61%; top: 75%; font-size: 15px; animation-delay: -3.2s; }
.hero-sparkles span:nth-child(10) { left: 68%; top: 5%; font-size: 7px; animation-delay: -2.5s; }
.hero-sparkles span:nth-child(11) { left: 73%; top: 53%; font-size: 11px; animation-delay: -.3s; }
.hero-sparkles span:nth-child(12) { left: 82%; top: 12%; font-size: 13px; animation-delay: -3.5s; }
.hero-sparkles span:nth-child(13) { left: 88%; top: 69%; font-size: 8px; animation-delay: -1.1s; }
.hero-sparkles span:nth-child(14) { left: 94%; top: 35%; font-size: 14px; animation-delay: -4.4s; }
.hero-sparkles span:nth-child(15) { left: 97%; top: 84%; font-size: 7px; animation-delay: -2.7s; }
.hero-sparkles span:nth-child(16) { left: 56%; top: 94%; font-size: 10px; animation-delay: -1.6s; }

@keyframes hero-sparkle {
    0%, 100% { opacity: .2; transform: scale(.78) rotate(0deg); }
    50% { opacity: .72; transform: scale(1.12) rotate(12deg); }
}

@media (max-width: 860px) {
    .hero-sparkles span:nth-child(n+13) { display: none; }
}

@media (max-width: 600px) {
    .hero-sparkles span { opacity: .28; }
    .hero-sparkles span:nth-child(n+10) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-sparkles span { animation: none !important; opacity: .38; }
}

/* One responsive content rail for every homepage section */
.home-main {
    --home-rail-gutter: 64px;
    --home-rail-max: 1240px;
}

.home-main > .home-hero,
.home-main > .home-section,
.home-main > .home-cta {
    width: min(calc(100% - var(--home-rail-gutter)), var(--home-rail-max));
    max-width: none;
    margin-inline: auto;
}

.home-main > .home-section {
    padding-inline: 0;
}

@media (max-width: 1050px) {
    .home-main {
        --home-rail-gutter: 48px;
        --home-rail-max: 1080px;
    }
}

@media (max-width: 860px) {
    .home-main {
        --home-rail-gutter: 40px;
        --home-rail-max: 760px;
    }
}

@media (max-width: 600px) {
    .home-main {
        --home-rail-gutter: 28px;
    }
}

/* Homepage editorial constellations: keep the copy, lose the conventional header stack. */
.home-hero .hero-copy {
    position: relative;
    padding: clamp(42px, 6vw, 76px) clamp(12px, 3vw, 42px) clamp(42px, 5vw, 64px) clamp(28px, 4vw, 64px);
}

.home-hero .hero-copy::before {
    position: absolute;
    inset: 0 5% 0 0;
    z-index: -1;
    border: 1px solid rgba(91, 72, 202, .16);
    border-radius: 46% 54% 48% 52% / 34% 42% 58% 66%;
    background:
        linear-gradient(116deg, rgba(255,255,255,.72), rgba(255,255,255,.2) 67%),
        radial-gradient(circle at 12% 18%, rgba(117,96,226,.11), transparent 35%);
    box-shadow: inset 24px 0 54px rgba(111,91,225,.035);
    content: '';
    transform: rotate(-1.5deg);
}

.home-hero .hero-copy::after {
    position: absolute;
    left: 3px;
    top: 14%;
    width: 18px;
    height: 72%;
    border: solid #6554dc;
    border-width: 2px 0 2px 2px;
    border-radius: 18px 0 0 18px;
    box-shadow: -8px 0 24px rgba(101,84,220,.13);
    content: '';
}

.home-hero .hero-copy h1 {
    max-width: 720px;
    margin-bottom: 28px;
    font-size: clamp(3.55rem, 5.75vw, 6.65rem);
    line-height: .94;
}

.home-hero .hero-copy > p {
    max-width: 610px;
    padding-left: clamp(0px, 4vw, 74px);
}

.home-hero .hero-actions {
    margin: 34px 0 0;
    padding-left: clamp(0px, 4vw, 74px);
}

.home-section {
    position: relative;
    isolation: isolate;
    padding-top: 130px;
}

.home-section::before {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 64px;
    width: min(700px, 72vw);
    aspect-ratio: 2.6 / 1;
    border: 1px solid rgba(101,84,220,.17);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(101,84,220,.025), 0 0 0 64px rgba(101,84,220,.014);
    content: '';
    transform: translateX(-50%) rotate(-5deg);
}

.home-section .section-heading {
    position: relative;
    max-width: 940px;
    min-height: 245px;
    margin: 0 auto 72px;
    display: grid;
    place-content: center;
    text-align: center;
}

.section-sparkles {
    position: absolute;
    z-index: 0;
    inset: 58px 0 auto;
    height: 290px;
    overflow: hidden;
    pointer-events: none;
}

.section-sparkles span {
    position: absolute;
    color: #6857df;
    line-height: 1;
    opacity: .42;
    filter: drop-shadow(0 0 7px rgba(104,87,223,.32));
    animation: hero-sparkle 4.8s ease-in-out infinite;
}

.section-sparkles span:nth-child(1)  { left: 3%; top: 47%; font-size: 13px; animation-delay: -.4s; }
.section-sparkles span:nth-child(2)  { left: 10%; top: 18%; font-size: 8px; animation-delay: -2.3s; }
.section-sparkles span:nth-child(3)  { left: 17%; top: 76%; font-size: 10px; animation-delay: -3.6s; }
.section-sparkles span:nth-child(4)  { left: 27%; top: 8%; font-size: 7px; animation-delay: -1.5s; }
.section-sparkles span:nth-child(5)  { left: 36%; top: 83%; font-size: 14px; animation-delay: -4.1s; }
.section-sparkles span:nth-child(6)  { left: 45%; top: 22%; font-size: 9px; animation-delay: -.9s; }
.section-sparkles span:nth-child(7)  { left: 56%; top: 75%; font-size: 8px; animation-delay: -2.8s; }
.section-sparkles span:nth-child(8)  { left: 65%; top: 12%; font-size: 12px; animation-delay: -3.3s; }
.section-sparkles span:nth-child(9)  { left: 73%; top: 84%; font-size: 7px; animation-delay: -1.2s; }
.section-sparkles span:nth-child(10) { left: 82%; top: 21%; font-size: 10px; animation-delay: -4.4s; }
.section-sparkles span:nth-child(11) { left: 90%; top: 64%; font-size: 14px; animation-delay: -2s; }
.section-sparkles span:nth-child(12) { left: 96%; top: 34%; font-size: 8px; animation-delay: -3.8s; }

.home-section .section-heading h2 {
    max-width: 850px;
    margin: 0 auto 20px;
    font-size: clamp(2.7rem, 5.1vw, 5.4rem);
    line-height: .96;
    letter-spacing: -.06em;
    text-wrap: balance;
}

.home-section .section-heading p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}

.home-section .feature-grid {
    position: relative;
    gap: 22px;
}

.home-section .feature-tile {
    border-radius: 52px 18px 52px 18px;
}

.home-section .feature-tile:nth-child(2) {
    transform: translateY(28px);
    border-radius: 18px 52px 18px 52px;
}

.home-section .feature-tile:nth-child(2):hover { transform: translateY(23px); }

.home-section .feature-tile:nth-child(3) { border-radius: 52px 18px 52px 18px; }

@media (max-width: 860px) {
    .home-hero .hero-copy { padding-inline: 34px 22px; }
    .home-section { padding-top: 96px; }
    .home-section .section-heading { min-height: 210px; margin-bottom: 52px; }
    .section-sparkles { inset-inline: 0; }
    .home-section .feature-tile:nth-child(2) { transform: none; }
    .home-section .feature-tile:nth-child(2):hover { transform: translateY(-5px); }
}

@media (max-width: 600px) {
    .home-hero .hero-copy { padding: 36px 18px 38px 28px; }
    .home-hero .hero-copy::before { right: 0; }
    .home-hero .hero-copy::after { left: 0; }
    .home-hero .hero-copy h1 { font-size: clamp(2.8rem, 13vw, 4.15rem); }
    .home-hero .hero-copy > p,
    .home-hero .hero-actions { padding-left: 0; }
    .home-section::before { top: 70px; width: 92vw; }
    .home-section .section-heading { min-height: 185px; }
    .section-sparkles span:nth-child(n+9) { display: none; }
    .home-section .section-heading h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
    .section-sparkles span { animation: none !important; opacity: .42; }
}
