/* ==========================================================
   AURORA CORPORATE
   Public Website + Management Portal
   Complete replacement stylesheet

   Visual direction:
   Navy / Orange / Teal / Violet
   Lightweight headings, spacious layouts, refined interaction

   Existing navigation hooks:
   .links.open
   .sidebar.open
   ========================================================== */


/* ----------------------------------------------------------
   01. DESIGN TOKENS
   ---------------------------------------------------------- */

:root {
    color-scheme: light;

    /* Primary brand */
    --orange: #bf4518;
    --orange-hover: #a63710;
    --dark: #852d11;
    --accent: #ff9757;

    --orange-light: #fff2e9;
    --orange-border: #f3d1bb;
    --orange-glow: rgb(191 69 24 / 14%);

    /* Complementary palette */
    --navy: #172943;
    --navy-dark: #101c30;
    --navy-soft: #263e5d;

    --teal: #087f83;
    --teal-light: #eaf8f5;
    --teal-border: #bfe7df;

    --violet: #7054b8;
    --violet-light: #f3effc;
    --violet-border: #ddd2f3;

    --blue: #2865b5;
    --blue-light: #edf4ff;
    --blue-border: #ccdef7;

    /* Text */
    --heading: #192b44;
    --ink: #35465a;
    --muted: #607086;
    --subtle: #718096;

    /* Existing graphite aliases */
    --graphite: #1e304a;
    --graphite-dark: #101c30;
    --graphite-soft: #2b425f;

    /* Surfaces */
    --paper: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #f1f5fa;
    --soft: #edf3f8;

    --line: #dfe7f0;
    --line-strong: #bbc9d8;

    /* Status */
    --danger: #b42336;
    --danger-soft: #fff0f2;
    --success: #16734d;
    --success-soft: #ecf9f1;
    --warning: #865109;
    --warning-soft: #fff7e7;
    --info: #245da3;
    --info-soft: #edf5ff;

    /* Typography */
    --font-sans:
        "Inter",
        "Aptos",
        "Segoe UI",
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        Arial,
        sans-serif;

    --font-display: var(--font-sans);

    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Layout */
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 52px);
    --section-space: clamp(60px, 7vw, 50px);
    --header-offset: 112px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Corners */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius: 21px;
    --radius-lg: 30px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-sm:
        0 2px 5px rgb(23 41 67 / 3%),
        0 6px 18px rgb(23 41 67 / 4%);

    --shadow-md:
        0 5px 14px rgb(23 41 67 / 4%),
        0 16px 36px rgb(23 41 67 / 7%);

    --shadow-lg:
        0 10px 24px rgb(23 41 67 / 5%),
        0 28px 64px rgb(23 41 67 / 11%);

    --shadow-orange:
        0 8px 18px rgb(191 69 24 / 12%),
        0 16px 30px rgb(191 69 24 / 12%);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 200ms ease;
    --transition-slow: 420ms var(--ease);

    --focus: #176ab0;
}


/* ----------------------------------------------------------
   02. RESET + BASE
   ---------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(
            ellipse at 0 0,
            rgb(40 101 181 / 3%),
            transparent 40%
        ),
        var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: var(--weight-normal);
    line-height: 1.75;
    overflow-wrap: break-word;
}

::selection {
    background: #f9d5bf;
    color: var(--navy-dark);
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}

a:hover {
    color: var(--orange);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading);
    font-family: var(--font-display);
    text-wrap: balance;
}

h1 {
    margin-bottom: 26px;
    font-size: clamp(2.65rem, 5vw, 5rem);
    font-weight: var(--weight-light);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 3.3vw, 3.2rem);
    font-weight: var(--weight-light);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 14px;
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-weight: var(--weight-medium);
    line-height: 1.4;
    letter-spacing: -0.02em;
}

h4 {
    margin-bottom: 12px;
    font-size: 1.0625rem;
    font-weight: var(--weight-medium);
    line-height: 1.5;
}

h5,
h6 {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: var(--weight-semibold);
    line-height: 1.5;
}

p {
    margin-bottom: 20px;
}

strong,
b {
    font-weight: var(--weight-semibold);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    accent-color: var(--orange);
}

button {
    cursor: pointer;
}

button,
input,
select,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
    outline-offset: 4px;
}

:focus-visible {
    outline: 3px solid var(--focus);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

small,
.muted {
    color: var(--muted);
}

small {
    font-size: 0.8125rem;
    line-height: 1.6;
}

hr {
    height: 1px;
    margin-block: 32px;
    border: 0;
    background: var(--line);
}

[hidden] {
    display: none !important;
}


/* ----------------------------------------------------------
   03. MOTION
   ---------------------------------------------------------- */

@keyframes enter-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ambient-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-20px, 18px, 0);
    }
}

@keyframes accent-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgb(191 69 24 / 9%);
    }

    50% {
        box-shadow: 0 0 0 8px rgb(191 69 24 / 2%);
    }
}


/* ----------------------------------------------------------
   04. SHARED LAYOUT
   ---------------------------------------------------------- */

.container {
    width: calc(100% - var(--gutter) * 2);
    max-width: var(--container);
    margin-inline: auto;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.row > *,
.hero-grid > *,
.grid > *,
.two-col > *,
.feature > *,
.footer-grid > *,
.form-grid > *,
.filters > *,
.section-head > *,
.portal-top > * {
    min-width: 0;
}

.section {
    position: relative;
    isolation: isolate;
    padding-block: var(--section-space);
}

.section.soft {
    border-block: 1px solid #e1e9f2;
    background:
        radial-gradient(
            ellipse at 100% 0,
            rgb(112 84 184 / 7%),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 0 100%,
            rgb(8 127 131 / 6%),
            transparent 45%
        ),
        linear-gradient(135deg, #f0f6fc, #faf7ff 60%, #f0faf7);
}

.section.soft::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgb(40 101 181 / 25%),
        rgb(112 84 184 / 25%),
        transparent
    );
    content: "";
    pointer-events: none;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(30px, 4vw, 48px);
}

.section-head h2 {
    margin-bottom: 14px;
}

.section-head p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.025rem;
    line-height: 1.85;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(22px, 2.5vw, 32px);
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 4vw, 48px);
}

.stack {
    display: grid;
    align-content: start;
    gap: 26px;
}

.pad {
    padding: clamp(24px, 2.8vw, 36px);
}


/* ----------------------------------------------------------
   05. UTILITY BAR + HEADER
   ---------------------------------------------------------- */

.utility {
    position: relative;
    padding-block: 10px;
    background: linear-gradient(
        110deg,
        var(--navy-dark),
        #203954 65%,
        #155b68
    );
    color: #d9e5f2;
    font-size: 0.75rem;
    line-height: 1.6;
}

.utility::after {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--accent),
        #f3bf75 35%,
        #70c8c1 75%,
        #a995dd
    );
    content: "";
}

.utility a {
    color: #fff;
}

.utility a:hover {
    color: #ffd2ae;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgb(223 231 240 / 90%);
    background: #fff;
    box-shadow: 0 5px 24px rgb(23 41 67 / 4%);
}

@supports (
    (backdrop-filter: blur(18px)) or
    (-webkit-backdrop-filter: blur(18px))
) {
    header {
        background: rgb(255 255 255 / 91%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
        backdrop-filter: blur(18px) saturate(150%);
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 94px;
}

.brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 15px;
    margin-right: auto;
    line-height: 1.35;
}

.brand img {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    padding: 4px;
    border: 1px solid #e5eaf1;
    border-radius: 16px;
    background: #fff;
    object-fit: contain;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-slow),
        box-shadow var(--transition-slow);
}

.brand strong {
    display: block;
    color: var(--heading);
    font-size: 1.0625rem;
    font-weight: var(--weight-semibold);
    letter-spacing: -0.025em;
}

.brand small {
    display: block;
    margin-top: 6px;
    color: var(--teal);
    font-size: 0.625rem;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 1.2rem;
    font-weight: var(--weight-medium);
}

.links a {
    position: relative;
    padding-block: 13px;
    color: #4b5b70;
}

.links a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    border-radius: var(--radius-pill);
    background: linear-gradient(
        90deg,
        var(--orange),
        var(--accent)
    );
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 280ms var(--ease);
}

.links a:hover,
.links a.active,
.links a[aria-current="page"] {
    color: var(--orange);
}

.links a:hover::after,
.links a:focus-visible::after,
.links a.active::after,
.links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.menu {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--heading);
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
    transition:
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.menu:hover,
.menu[aria-expanded="true"] {
    border-color: var(--orange-border);
    background: var(--orange-light);
    box-shadow: var(--shadow-sm);
}


/* ----------------------------------------------------------
   06. BUTTONS + ACTIONS
   ---------------------------------------------------------- */

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    max-width: 100%;
    padding: 13px 25px;
    border: 1px solid var(--orange);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #c84c1c, #ad3712);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 16%),
        0 5px 13px rgb(191 69 24 / 14%);
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.btn::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgb(255 255 255 / 22%) 50%,
        transparent 75%
    );
    content: "";
    transform: translateX(-150%);
    transition: transform 650ms var(--ease);
    pointer-events: none;
}

.btn:hover {
    border-color: var(--orange-hover);
    background: var(--orange-hover);
    color: #fff;
    box-shadow: var(--shadow-orange);
}

.btn:hover::before {
    transform: translateX(150%);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn.secondary {
    border-color: #cad7e6;
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
    border-color: var(--teal-border);
    background: var(--teal-light);
    color: #07676b;
    box-shadow: 0 8px 20px rgb(8 127 131 / 10%);
}

.btn.danger {
    border-color: var(--danger);
    background: linear-gradient(135deg, #be3044, #9d1b30);
    color: #fff;
}

.btn.danger:hover {
    border-color: #94172c;
    background: #94172c;
    box-shadow: 0 10px 24px rgb(180 35 54 / 18%);
}

.btn.small {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn:disabled::before,
.btn[aria-disabled="true"]::before {
    display: none;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.text-link {
    display: inline-block;
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: var(--weight-semibold);
    text-decoration-thickness: 1px;
}

.text-link:hover {
    color: var(--dark);
    text-decoration: underline;
}


/* ----------------------------------------------------------
   07. MAIN HERO
   ---------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid #e3e9f1;
    background:
        radial-gradient(
            ellipse at 91% 10%,
            rgb(255 151 87 / 18%),
            transparent 43%
        ),
        radial-gradient(
            ellipse at 8% 95%,
            rgb(8 127 131 / 9%),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 65% 85%,
            rgb(112 84 184 / 7%),
            transparent 43%
        ),
        linear-gradient(125deg, #fcfdff, #f2f7fd 48%, #fff5ee);
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(
            rgb(40 67 105 / 3%) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgb(40 67 105 / 3%) 1px,
            transparent 1px
        );
    background-size: 72px 72px;
    content: "";
    pointer-events: none;
}

.hero::after {
    position: absolute;
    z-index: -1;
    top: -140px;
    right: -140px;
    width: clamp(340px, 48vw, 700px);
    aspect-ratio: 1;
    border: 1px solid rgb(191 69 24 / 10%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgb(255 151 87 / 12%),
        transparent 68%
    );
    box-shadow:
        0 0 0 60px rgb(255 151 87 / 3%),
        0 0 0 120px rgb(112 84 184 / 2%);
    content: "";
    animation: ambient-drift 18s ease-in-out infinite;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 5vw, 80px);
    padding-block: clamp(64px, 8vw, 116px);
}

.hero-grid > * {
    animation: enter-up 750ms var(--ease) both;
}

.hero-grid > :nth-child(2) {
    animation-delay: 100ms;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
    color: #FFF;
    font-size: 0.75rem;
    font-weight: var(--weight-semibold);
    line-height: 1.6;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow::before {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.hero .eyebrow::before {
    animation: accent-breathe 4s ease-in-out infinite;
}

.hero h1 {
    max-width: 780px;
}

.hero h1 strong,
.hero h1 b {
    color: var(--orange);
    font-weight: var(--weight-medium);
}

.hero p {
    max-width: 610px;
    color: #586b81;
    font-size: clamp(1rem, 1.35vw, 1.1875rem);
    font-weight: var(--weight-normal);
    line-height: 1.9;
}

.hero img {
    max-height: 490px;
    margin-inline: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 30px rgb(23 41 67 / 12%));
    transition: transform 600ms var(--ease);
}

/* ----------------------------------------------------------
   08. INNER PAGE HERO — DARK PURPLE
   ---------------------------------------------------------- */

.page-hero {
    /* Match the main hero theme. */
    --page-hero-text: #f8f5ff;
    --page-hero-muted: #c7badf;
    --page-hero-accent: #c4a0ff;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding-block: clamp(46px, 6vw, 80px);

    color: var(--page-hero-text);
    border-bottom: 1px solid rgb(196 160 255 / 20%);

    background:
        radial-gradient(
            ellipse at 78% 44%,
            rgb(124 58 237 / 24%),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 12% 12%,
            rgb(192 38 211 / 13%),
            transparent 42%
        ),
        linear-gradient(
            115deg,
            #0c0518 0%,
            #170a2c 42%,
            #21103b 74%,
            #10071f 100%
        );
}


/* Subtle ambient purple glow. */
.page-hero::before {
    content: "";

    position: absolute;
    z-index: -1;
    top: -160px;
    left: -100px;

    width: clamp(300px, 42vw, 580px);
    aspect-ratio: 1;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgb(168 85 247 / 16%) 0%,
        rgb(124 58 237 / 6%) 45%,
        transparent 72%
    );

    filter: blur(40px);
    pointer-events: none;
}


/* Decorative rings matching the purple theme. */
.page-hero::after {
    content: "";

    position: absolute;
    z-index: -1;
    top: -140px;
    right: 6%;

    width: 390px;
    height: 390px;

    border: 1px solid rgb(196 160 255 / 22%);
    border-radius: 50%;

    box-shadow:
        0 0 0 38px rgb(167 139 250 / 5%),
        0 0 0 76px rgb(192 132 252 / 3%),
        inset 0 0 60px rgb(139 92 246 / 5%);

    pointer-events: none;
}


/* Keep foreground content above the decorations. */
.page-hero > .container {
    position: relative;
    z-index: 1;
}


/* ----------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------- */

.page-hero h1 {
    margin-bottom: 18px;

    color: var(--page-hero-text);

    font-size: clamp(2.25rem, 4vw, 3.65rem);
}

.page-hero :where(h2, h3, h4, h5, h6) {
    color: var(--page-hero-text);
}

.page-hero p {
    max-width: 780px;
    margin-bottom: 0;

    color: var(--page-hero-muted);

    font-size: 1.0625rem;
    line-height: 1.85;
}


/* Optional highlighted heading text. */
.page-hero :where(.hero-highlight, .text-accent) {
    color: var(--page-hero-accent);
}


/* ----------------------------------------------------------
   BREADCRUMBS — IF PRESENT
   ---------------------------------------------------------- */

.page-hero .breadcrumb {
    --bs-breadcrumb-divider-color: #a995c6;
    --bs-breadcrumb-item-active-color: #c7badf;

    color: var(--page-hero-muted);
}

.page-hero .breadcrumb a {
    color: #ddd0f5;
    text-decoration: none;

    transition: color 180ms ease;
}

.page-hero .breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-hero .breadcrumb a:focus-visible {
    outline: 2px solid #d8b4fe;
    outline-offset: 4px;
    border-radius: 2px;
}

.page-hero .breadcrumb-item.active {
    color: var(--page-hero-muted);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: #a995c6;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 680px) {
    .page-hero {
        background:
            radial-gradient(
                ellipse at 85% 28%,
                rgb(124 58 237 / 23%),
                transparent 52%
            ),
            linear-gradient(
                155deg,
                #0c0518 0%,
                #1b0c30 58%,
                #11081f 100%
            );
    }

    .page-hero::before {
        top: -120px;
        left: -140px;
        filter: blur(30px);
    }

    .page-hero::after {
        top: -110px;
        right: -90px;

        width: 280px;
        height: 280px;

        box-shadow:
            0 0 0 28px rgb(167 139 250 / 5%),
            0 0 0 56px rgb(192 132 252 / 3%);
    }
}


/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .page-hero .breadcrumb a {
        transition: none;
    }
}


/* ----------------------------------------------------------
   PRINT
   ---------------------------------------------------------- */

@media print {
    .page-hero {
        color: #111111 !important;
        border-bottom: 1px solid #dddddd;
        background: #ffffff !important;
    }

    .page-hero::before,
    .page-hero::after {
        display: none !important;
    }

    .page-hero :where(
        h1, h2, h3, h4, h5, h6, p,
        .hero-highlight,
        .text-accent,
        .breadcrumb,
        .breadcrumb a,
        .breadcrumb-item.active
    ) {
        color: #111111 !important;
    }
}

/* ----------------------------------------------------------
   09. CARDS
   ---------------------------------------------------------- */

.card {
    --card-color: var(--orange);
    --card-soft: #fff3eb;
    --card-border: #f0d1bd;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-slow),
        border-color var(--transition),
        box-shadow var(--transition-slow);
}

.grid > .card:nth-child(4n + 2) {
    --card-color: var(--teal);
    --card-soft: #edf9f6;
    --card-border: #c6e7df;
}

.grid > .card:nth-child(4n + 3) {
    --card-color: var(--violet);
    --card-soft: #f5f0fc;
    --card-border: #dfd3f3;
}

.grid > .card:nth-child(4n + 4) {
    --card-color: var(--blue);
    --card-soft: #edf4ff;
    --card-border: #ccdef7;
}

.card::before {
    position: absolute;
    z-index: 1;
    inset: 0 24px auto;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: var(--card-color);
    content: "";
    transform: scaleX(0.28);
    transform-origin: left;
    transition: transform var(--transition-slow);
    pointer-events: none;
}

.card:hover,
.card:focus-within {
    border-color: var(--card-border);
    box-shadow: var(--shadow-lg);
}

.card:hover::before,
.card:focus-within::before {
    transform: scaleX(1);
}

.card h3 a:hover {
    color: var(--card-color);
}

.card p {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.85;
}

.card .pad > :last-child {
    margin-bottom: 0;
}

.card-art {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 138px;
    padding: 30px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at 90% 10%,
            rgb(255 255 255 / 90%),
            transparent 55%
        ),
        linear-gradient(135deg, var(--card-soft), #f5f8fc);
    color: var(--card-color);
}

.card-art::after {
    position: absolute;
    right: -25px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.1;
    content: "";
    pointer-events: none;
}

.card-cover {
    width: 100%;
    height: 235px;
    background: var(--surface-muted);
    object-fit: cover;
    transition: filter var(--transition-slow);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid var(--orange-border);
    border-radius: var(--radius-pill);
    background: var(--orange-light);
    color: var(--dark);
    font-size: 0.6875rem;
    font-weight: var(--weight-semibold);
    line-height: 1.5;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.card .pill {
    border-color: var(--card-border);
    background: var(--card-soft);
    color: var(--card-color);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-block: 18px;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.7;
}


/* ----------------------------------------------------------
   10. CALLOUTS + EMPTY STATES
   ---------------------------------------------------------- */

.callout {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 3.2vw, 42px);
    border: 1px solid #dbe7ef;
    border-radius: var(--radius);
    background:
        radial-gradient(
            ellipse at 100% 0,
            rgb(8 127 131 / 8%),
            transparent 60%
        ),
        linear-gradient(130deg, #fff, #f0f6fc);
    box-shadow: var(--shadow-sm);
}

.callout::before {
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 0;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(var(--teal), #72c6bf);
    content: "";
}

.callout > :last-child {
    margin-bottom: 0;
}

.empty {
    padding: clamp(32px, 4vw, 48px) 28px;
    border: 1px dashed #bdcddd;
    border-radius: var(--radius);
    background:
        radial-gradient(
            ellipse at 50% 0,
            rgb(112 84 184 / 5%),
            transparent 65%
        ),
        linear-gradient(135deg, #fff, #f3f7fc);
    color: var(--muted);
    text-align: center;
}

.empty > :last-child {
    margin-bottom: 0;
}


/* ----------------------------------------------------------
   11. FEATURED SECTION
   ---------------------------------------------------------- */

.feature {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    overflow: hidden;
    border: 1px solid #314967;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(
            ellipse at 100% 0,
            rgb(8 127 131 / 28%),
            transparent 58%
        ),
        radial-gradient(
            ellipse at 70% 100%,
            rgb(112 84 184 / 20%),
            transparent 55%
        ),
        linear-gradient(135deg, #223b59, #14233b);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.feature::after {
    position: absolute;
    z-index: -1;
    right: -140px;
    bottom: -180px;
    width: 440px;
    height: 440px;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    box-shadow:
        0 0 0 48px rgb(255 255 255 / 3%),
        0 0 0 96px rgb(255 255 255 / 2%);
    content: "";
    pointer-events: none;
}

.feature .visual {
    display: grid;
    place-items: center;
    padding: 40px;
    background:
        radial-gradient(
            circle at 25% 20%,
            rgb(255 151 87 / 18%),
            transparent 55%
        ),
        linear-gradient(140deg, #eff7fc, #fff0e4);
}

.feature .visual img {
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgb(23 41 67 / 13%));
    transition: transform 650ms var(--ease);
}

.feature .content {
    align-self: center;
    padding: clamp(32px, 4.3vw, 60px);
}

.feature h1,
.feature h2,
.feature h3,
.feature h4 {
    color: #fff;
}

.feature p {
    color: #d3deeb;
    line-height: 1.9;
}

.feature .eyebrow {
    color: #ffd0a8;
}

.feature .pill {
    border-color: rgb(255 208 168 / 28%);
    background: rgb(255 151 87 / 12%);
    color: #ffdab9;
}

.feature .btn.secondary {
    border-color: rgb(255 255 255 / 35%);
    background: rgb(255 255 255 / 7%);
    color: #fff;
    box-shadow: none;
}

.feature .btn.secondary:hover {
    border-color: #9bddcf;
    background: rgb(155 221 207 / 12%);
    color: #d2fff4;
}

.feature .text-link {
    color: #ffd0a8;
}


/* ----------------------------------------------------------
   12. FORMS + FILTERS
   ---------------------------------------------------------- */

.filters {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        auto;
    align-items: end;
    gap: 18px;
    margin-bottom: 32px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: var(--shadow-sm);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    font-size: 0.875rem;
}

label {
    color: var(--heading);
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
    line-height: 1.6;
}

/* Exclude controls that should retain native sizing. */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="image"]),
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 1px 2px rgb(23 41 67 / 2%);
    font-size: 1rem;
    line-height: 1.5;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: var(--subtle);
    opacity: 1;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(:disabled):hover,
select:not(:disabled):hover,
textarea:not(:disabled):hover {
    border-color: #91a8c1;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow:
        0 0 0 4px rgb(8 127 131 / 10%),
        0 4px 12px rgb(23 41 67 / 3%);
}

textarea {
    min-height: 155px;
    resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin: 0;
    vertical-align: middle;
}

input[type="range"] {
    width: 100%;
    min-width: 0;
}

input[type="color"] {
    width: 56px;
    height: 44px;
    padding: 4px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
}

input[type="file"] {
    background: #f7faff;
    font-size: 0.875rem;
}

input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 8px 13px;
    border: 1px solid #cbd9e8;
    border-radius: 7px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    cursor: pointer;
    transition:
        border-color var(--transition),
        background-color var(--transition);
}

input[type="file"]::file-selector-button:hover {
    border-color: var(--teal-border);
    background: var(--teal-light);
}

input[readonly],
textarea[readonly] {
    background: var(--surface-muted);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgb(180 35 54 / 10%);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.field.wide {
    grid-column: 1 / -1;
}

.helptext {
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.7;
}

.errorlist {
    margin: 4px 0 0;
    padding: 0;
    color: var(--danger);
    font-size: 0.8125rem;
    line-height: 1.6;
    list-style: none;
}

.notice,
.message {
    margin-block: 22px;
    padding: 18px 22px;
    border: 1px solid #f0d5bf;
    border-left: 4px solid var(--orange);
    border-radius: var(--radius-sm);
    background: #fff5eb;
    color: #80502a;
    font-size: 0.875rem;
    line-height: 1.8;
}

.message.error {
    border-color: #edc6cf;
    border-left-color: var(--danger);
    background: var(--danger-soft);
    color: #941c30;
}

.message.success {
    border-color: #c8e6d5;
    border-left-color: var(--success);
    background: var(--success-soft);
    color: #155f41;
}

.message.warning {
    border-color: #ecd9ad;
    border-left-color: var(--warning);
    background: var(--warning-soft);
    color: #77500f;
}

.message.info {
    border-color: var(--blue-border);
    border-left-color: var(--info);
    background: var(--info-soft);
    color: #24558e;
}

.notice > :last-child,
.message > :last-child {
    margin-bottom: 0;
}


/* ----------------------------------------------------------
   13. TIMELINE + TABS
   ---------------------------------------------------------- */

.timeline {
    margin-block: 30px;
    padding: 0;
    list-style: none;
}

.timeline li {
    position: relative;
    margin-left: 9px;
    padding: 0 0 36px 32px;
    border-left: 2px solid #dbe5ee;
}

.timeline li::before {
    position: absolute;
    top: 6px;
    left: -8px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
    content: "";
    transition: box-shadow var(--transition);
}

.timeline li:nth-child(3n + 2)::before {
    background: var(--teal);
    box-shadow: 0 0 0 3px rgb(8 127 131 / 10%);
}

.timeline li:nth-child(3n + 3)::before {
    background: var(--violet);
    box-shadow: 0 0 0 3px rgb(112 84 184 / 10%);
}

.timeline li:hover::before {
    box-shadow: 0 0 0 6px rgb(40 101 181 / 10%);
}

.timeline li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline time {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--orange);
    font-size: 0.8125rem;
    font-weight: var(--weight-semibold);
}

.day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-block: 28px;
}

.day-btn {
    min-height: 46px;
    padding: 11px 21px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: #56687d;
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
    line-height: 1.5;
    transition:
        transform var(--transition),
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.day-btn:hover {
    border-color: var(--teal-border);
    background: var(--teal-light);
    color: #07686b;
}

.day-btn[aria-selected="true"] {
    border-color: var(--navy);
    background: linear-gradient(135deg, #274969, #172943);
    color: #fff;
    box-shadow: 0 7px 18px rgb(23 41 67 / 16%);
}


/* ----------------------------------------------------------
   14. BODY CONTENT + PAGINATION
   ---------------------------------------------------------- */

.body-copy {
    overflow-wrap: anywhere;
    line-height: 1.95;
}

.body-copy h2,
.body-copy h3,
.body-copy h4 {
    margin-top: 38px;
}

.body-copy > :first-child {
    margin-top: 0;
}

.body-copy a:not(.btn) {
    color: var(--orange);
    text-decoration: underline;
}

.body-copy ul,
.body-copy ol {
    padding-left: 25px;
}

.body-copy li + li {
    margin-top: 11px;
}

.body-copy li::marker {
    color: var(--teal);
}

.body-copy blockquote {
    margin: 32px 0;
    padding: 26px 30px;
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: linear-gradient(120deg, #eaf8f5, #eff4fd);
    color: #405c71;
    font-size: 1.0625rem;
}

.body-copy blockquote > :last-child {
    margin-bottom: 0;
}

.body-copy pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 22px;
    border: 1px solid #31445f;
    border-radius: var(--radius-md);
    background: var(--navy-dark);
    color: #e0eaf7;
    font-size: 0.875rem;
    line-height: 1.75;
    overflow-wrap: normal;
}

.body-copy :not(pre) > code {
    padding: 3px 6px;
    border-radius: 5px;
    background: #edf2f8;
    color: #9a3f24;
    font-size: 0.9em;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    font-size: 0.875rem;
}

.pagination a:not(.btn),
.pagination span[aria-current="page"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--navy);
}

.pagination a:not(.btn):hover {
    border-color: var(--teal-border);
    background: var(--teal-light);
    color: var(--teal);
}

.pagination [aria-current="page"] {
    border-color: var(--navy) !important;
    background: var(--navy) !important;
    color: #fff !important;
}


/* ----------------------------------------------------------
   15. FOOTER
   ---------------------------------------------------------- */

footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 80px 0 30px;
    background:
        radial-gradient(
            ellipse at 0 100%,
            rgb(8 127 131 / 20%),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 100% 0,
            rgb(112 84 184 / 16%),
            transparent 48%
        ),
        linear-gradient(130deg, #1c304a, #101c30);
    color: #dce6f2;
}

footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--accent),
        #f3bf75 35%,
        #66c1ba 70%,
        #a28ad8
    );
    content: "";
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 60px);
}

footer h2,
footer h3,
footer h4 {
    color: #fff;
}

footer h3,
footer h4 {
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: var(--weight-medium);
    letter-spacing: 0.01em;
}

footer p {
    max-width: 490px;
    color: #bdcbdc;
    font-size: 0.875rem;
    line-height: 1.95;
}

footer a {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 13px;
    color: #d1dcea;
    font-size: 0.875rem;
}

footer a:hover {
    color: #ffd0a8;
    text-decoration: underline;
}

footer .brand strong {
    color: #fff;
}

footer .brand small {
    color: #a5e4d8;
}

footer .brand {
    display: inline-flex;
    width: auto;
    margin-bottom: 22px;
}

.copyright {
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: #acbdd0;
    font-size: 0.8125rem;
    line-height: 1.8;
}


/* ----------------------------------------------------------
   16. ACCESSIBILITY
   ---------------------------------------------------------- */

.skip {
    position: fixed;
    top: -150px;
    left: 18px;
    z-index: 1000;
    padding: 13px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--heading);
    box-shadow: var(--shadow-md);
    font-weight: var(--weight-semibold);
}

.skip:focus {
    top: 18px;
}

/* Optional screen-reader utility. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
}


/* ----------------------------------------------------------
   17. MANAGEMENT PORTAL
   ---------------------------------------------------------- */

.portal-body {
    background:
        radial-gradient(
            ellipse at 100% 0,
            rgb(112 84 184 / 5%),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 0 100%,
            rgb(8 127 131 / 4%),
            transparent 45%
        ),
        #f1f5fa;
}

.portal-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    padding: 32px 18px;
    border-right: 1px solid rgb(255 255 255 / 6%);
    background:
        radial-gradient(
            ellipse at 0 0,
            rgb(8 127 131 / 23%),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 100% 100%,
            rgb(112 84 184 / 15%),
            transparent 45%
        ),
        linear-gradient(180deg, #203650, #111f34);
    color: #d7e2ef;
    scrollbar-width: thin;
    scrollbar-color: #58718e transparent;
}

.sidebar .portal-brand {
    display: block;
    margin-bottom: 24px;
    padding: 0 15px 28px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    color: #fff;
    font-size: 1.125rem;
    font-weight: var(--weight-medium);
    line-height: 1.55;
    letter-spacing: -0.025em;
}

.sidebar small {
    color: #aadfd5;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
}

.sidebar nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 7px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #c9d7e7;
    font-size: 0.875rem;
    font-weight: var(--weight-normal);
    line-height: 1.5;
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.sidebar nav a:hover {
    background: rgb(255 255 255 / 7%);
    color: #fff;
}

.sidebar nav a.active,
.sidebar nav a[aria-current="page"] {
    border-color: rgb(126 214 196 / 24%);
    background: linear-gradient(
        100deg,
        rgb(8 127 131 / 35%),
        rgb(8 127 131 / 12%)
    );
    color: #d4fff3;
}

.sidebar nav a.active::before,
.sidebar nav a[aria-current="page"]::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -1px;
    width: 3px;
    border-radius: 0 5px 5px 0;
    background: #8bdccc;
    content: "";
}

.sidebar :focus-visible {
    outline-color: #9edfd5;
}

.portal-main {
    min-width: 0;
}

.portal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 86px;
    padding: 20px 38px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 3px 14px rgb(23 41 67 / 2%);
}

.portal-content {
    max-width: 1550px;
    margin-inline: auto;
    padding: 38px;
}

.portal-content h1 {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    font-weight: var(--weight-light);
    letter-spacing: -0.035em;
}

.portal-content > p {
    color: var(--muted);
}


/* ----------------------------------------------------------
   18. STATISTICS
   ---------------------------------------------------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-block: 32px;
}

.stat {
    --stat-color: var(--orange);
    --stat-soft: #fff1e7;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fff 50%, var(--stat-soft));
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-slow),
        border-color var(--transition),
        box-shadow var(--transition);
}

.stat:nth-child(4n + 2) {
    --stat-color: var(--teal);
    --stat-soft: #ebf8f4;
}

.stat:nth-child(4n + 3) {
    --stat-color: var(--violet);
    --stat-soft: #f3eefc;
}

.stat:nth-child(4n + 4) {
    --stat-color: var(--blue);
    --stat-soft: #edf4ff;
}

.stat::before {
    position: absolute;
    inset: 24px auto 24px 0;
    width: 3px;
    border-radius: 0 6px 6px 0;
    background: var(--stat-color);
    content: "";
}

.stat::after {
    position: absolute;
    z-index: -1;
    top: -38px;
    right: -30px;
    width: 125px;
    height: 125px;
    border: 1px solid var(--stat-color);
    border-radius: 50%;
    opacity: 0.09;
    content: "";
    pointer-events: none;
}

.stat:hover {
    border-color: var(--stat-color);
    box-shadow: var(--shadow-md);
}

.stat strong {
    display: block;
    margin-bottom: 9px;
    color: var(--stat-color);
    font-size: clamp(2rem, 2.8vw, 2.7rem);
    font-weight: var(--weight-light);
    line-height: 1.15;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
}

.stat span {
    color: #586b80;
    font-size: 0.8125rem;
    font-weight: var(--weight-medium);
    line-height: 1.6;
}


/* ----------------------------------------------------------
   19. TABLES
   ---------------------------------------------------------- */

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
    scrollbar-color: #b6c7d9 #f2f6fa;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.7;
    font-variant-numeric: tabular-nums;
}

caption {
    padding: 18px 22px;
    color: var(--heading);
    font-size: 1rem;
    font-weight: var(--weight-medium);
    text-align: left;
}

th,
td {
    padding: 18px 22px;
    border-bottom: 1px solid #e9eff6;
    text-align: left;
    vertical-align: top;
}

th {
    padding-block: 16px;
    background: #edf3fa;
    color: #4e647e;
    font-size: 0.6875rem;
    font-weight: var(--weight-semibold);
    line-height: 1.6;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    color: #3c4e64;
}

tbody tr {
    transition: background-color var(--transition);
}

tbody tr:nth-child(even) {
    background: #fbfcfe;
}

tbody tr:hover,
tbody tr:focus-within {
    background: #edf7f7;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn + .btn,
.actions-cell .inline-form {
    margin-left: 7px;
}

.thumb {
    width: 92px;
    height: 62px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    object-fit: cover;
}


/* ----------------------------------------------------------
   20. PORTAL FORMS + DETAILS
   ---------------------------------------------------------- */

.portal-form {
    max-width: 1020px;
    padding: clamp(26px, 3vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fff, #fcfdff);
    box-shadow: var(--shadow-sm);
}

.portal-form .form-grid {
    margin-bottom: 30px;
}

.inline-form {
    display: inline;
}

.inline-form button {
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--orange);
    font-size: 0.8125rem;
    font-weight: var(--weight-medium);
}

.inline-form button:hover {
    color: var(--dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-block: 26px;
}

.detail-grid div {
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid #e0e9f2;
    border-radius: var(--radius-md);
    background: linear-gradient(140deg, #fff, #f0f6fc);
}

.detail-grid dt {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: var(--weight-medium);
    line-height: 1.6;
}

.detail-grid dd {
    margin: 0;
    color: var(--heading);
    font-size: 0.9375rem;
    font-weight: var(--weight-medium);
    overflow-wrap: anywhere;
}


/* ----------------------------------------------------------
   21. LOGIN
   ---------------------------------------------------------- */

.login-wrap {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 32px;
    background:
        radial-gradient(
            ellipse at 12% 15%,
            rgb(8 127 131 / 34%),
            transparent 43%
        ),
        radial-gradient(
            ellipse at 88% 85%,
            rgb(112 84 184 / 30%),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 85% 5%,
            rgb(191 69 24 / 17%),
            transparent 38%
        ),
        linear-gradient(135deg, #1b304b, #101b2f);
}

.login-wrap::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(
            rgb(255 255 255 / 3%) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgb(255 255 255 / 3%) 1px,
            transparent 1px
        );
    background-size: 64px 64px;
    content: "";
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 490px;
    padding: clamp(32px, 4vw, 48px);
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #fff, #f9fbff);
    box-shadow:
        0 30px 90px rgb(0 0 0 / 27%),
        0 8px 26px rgb(0 0 0 / 13%);
    animation: enter-up 650ms var(--ease) both;
}

.login-card::before {
    position: absolute;
    top: 0;
    right: 42px;
    left: 42px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(
        90deg,
        var(--orange),
        var(--accent),
        var(--teal)
    );
    content: "";
}

.login-card img {
    width: 76px;
    height: 76px;
    margin-bottom: 28px;
    object-fit: contain;
}

.login-card h1 {
    margin-bottom: 14px;
    font-size: 2.15rem;
    font-weight: var(--weight-light);
    letter-spacing: -0.035em;
}

.login-card p {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.login-card .field {
    margin-block: 24px;
}

.login-card .btn {
    width: 100%;
    margin-top: 12px;
}


/* ----------------------------------------------------------
   22. OPTIONAL SECTION VARIANTS
   ---------------------------------------------------------- */

.section.dark {
    /* Inherit appropriate tokens within dark sections. */
    --heading: #ffffff;
    --ink: #d5e1ef;
    --muted: #bdccdd;
    --subtle: #aebfd2;
    --focus: #a3dcd5;

    background:
        radial-gradient(
            ellipse at 100% 0,
            rgb(8 127 131 / 25%),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 0 100%,
            rgb(112 84 184 / 20%),
            transparent 45%
        ),
        linear-gradient(130deg, #223a56, #14233a);
    color: var(--ink);
}

.section.dark h1,
.section.dark h2,
.section.dark h3,
.section.dark h4,
.section.dark h5,
.section.dark h6 {
    color: #fff;
}

.section.dark .section-head p,
.section.dark .muted,
.section.dark .meta {
    color: #bdccdd;
}

.section.dark .eyebrow,
.section.dark .text-link {
    color: #ffd0a8;
}

.section.dark .card {
    --card-color: #ffd0a8;
    --card-border: rgb(255 255 255 / 23%);
    --card-soft: rgb(255 255 255 / 7%);

    border-color: rgb(255 255 255 / 15%);
    background: rgb(255 255 255 / 6%);
    box-shadow: none;
}

.section.dark .grid > .card:nth-child(4n + 2) {
    --card-color: #a5e8d8;
}

.section.dark .grid > .card:nth-child(4n + 3) {
    --card-color: #dac9ff;
}

.section.dark .grid > .card:nth-child(4n + 4) {
    --card-color: #b9d7ff;
}

.section.dark .card p {
    color: #c6d4e5;
}

.section.dark .card-art {
    border-color: rgb(255 255 255 / 12%);
    background: linear-gradient(
        135deg,
        rgb(255 255 255 / 8%),
        rgb(8 127 131 / 13%)
    );
    color: var(--card-color);
}

.section.dark .pill {
    border-color: rgb(255 208 168 / 30%);
    background: rgb(255 151 87 / 10%);
    color: #ffdab9;
}

.section.dark .card .pill {
    border-color: var(--card-border);
    background: var(--card-soft);
    color: var(--card-color);
}

.section.dark .btn.secondary {
    border-color: rgb(255 255 255 / 35%);
    background: rgb(255 255 255 / 7%);
    color: #fff;
}

.section.dark .btn.secondary:hover {
    border-color: #a5e8d8;
    background: rgb(165 232 216 / 12%);
    color: #d6fff4;
}

/* Pattern is an overlay so it can coexist with soft/dark. */
.section.pattern::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(
        rgb(76 108 143 / 15%) 0.8px,
        transparent 0.8px
    );
    background-size: 22px 22px;
    content: "";
    pointer-events: none;
}

.section.dark.pattern::after {
    background-image: radial-gradient(
        rgb(255 255 255 / 10%) 0.8px,
        transparent 0.8px
    );
}


/* ----------------------------------------------------------
   23. OPTIONAL UTILITIES
   ---------------------------------------------------------- */

.text-center {
    text-align: center;
}

.text-center .eyebrow {
    justify-content: center;
}

.text-center p {
    margin-inline: auto;
}

.text-orange {
    color: var(--orange);
}

.text-teal {
    color: var(--teal);
}

.text-violet {
    color: var(--violet);
}

.surface {
    background: var(--surface);
}

.rounded {
    border-radius: var(--radius);
}

.w-full {
    width: 100%;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.gap-sm {
    gap: 12px;
}

.gap-lg {
    gap: 32px;
}


/* ----------------------------------------------------------
   24. POINTER-SPECIFIC EFFECTS
   ---------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
    .brand:hover img {
        transform: translateY(-2px) rotate(-3deg);
        box-shadow: var(--shadow-md);
    }

    .btn:not(:disabled):not([aria-disabled="true"]):hover {
        transform: translateY(-2px);
    }

    .btn:not(:disabled):not([aria-disabled="true"]):active {
        transform: translateY(0);
    }

    .card:hover {
        transform: translateY(-6px);
    }

    .card:hover .card-cover {
        filter: saturate(1.08) contrast(1.02);
    }

    .stat:hover {
        transform: translateY(-4px);
    }

    .hero img:hover {
        transform: translateY(-7px);
    }

    .feature:hover .visual img {
        transform: translateY(-5px) scale(1.025);
    }

    .sidebar nav a:hover {
        transform: translateX(3px);
    }

    .day-btn:not(:disabled):hover {
        transform: translateY(-2px);
    }
}


/* ----------------------------------------------------------
   25. TABLET + SMALL DESKTOP
   ---------------------------------------------------------- */

@media (max-width: 1100px) {
    .nav {
        gap: 18px;
    }

    .links {
        gap: 17px;
        font-size: 0.8125rem;
    }

    .brand strong {
        font-size: 0.9375rem;
    }

    .brand small {
        font-size: 0.5625rem;
        letter-spacing: 0.1em;
    }

    .brand img {
        width: 50px;
        height: 50px;
        border-radius: 13px;
    }

    .nav > .btn {
        padding-inline: 17px;
        font-size: 0.8125rem;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-shell {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .portal-top,
    .portal-content {
        padding-inline: 28px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        gap: 34px;
    }
}


/* ----------------------------------------------------------
   26. MOBILE NAVIGATION + STACKED PORTAL
   ---------------------------------------------------------- */

@media (max-width: 900px) {
    :root {
        --header-offset: 98px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 0 16px;
        min-height: 82px;
        padding-block: 14px;
    }

    .nav > .btn {
        display: none;
    }

    .menu {
        display: inline-flex;
        flex-shrink: 0;
    }

    .links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        margin-top: 15px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
        font-size: 0.9375rem;
    }

    .links.open {
        display: flex;
        animation: enter-up 250ms var(--ease) both;
    }

    .links a {
        padding: 12px 14px;
        border-radius: 9px;
    }

    .links a::after {
        display: none;
    }

    .links a:hover,
    .links a.active,
    .links a[aria-current="page"] {
        background: var(--orange-light);
        color: var(--orange);
    }

    .hero-grid {
        gap: 34px;
    }

    .two-col {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature .content {
        padding: 34px;
    }

    .portal-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        position: relative;
        height: auto;
        padding: 20px 24px;
    }

    .sidebar .portal-brand {
        margin-bottom: 0;
        padding: 4px 0;
        border-bottom: 0;
    }

    .sidebar .menu {
        float: right;
        margin-left: 16px;
        border-color: rgb(255 255 255 / 25%);
        background: rgb(255 255 255 / 5%);
        color: #fff;
    }

    .sidebar .menu:hover {
        background: rgb(255 255 255 / 12%);
    }

    .sidebar nav {
        display: none;
        clear: both;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid rgb(255 255 255 / 12%);
    }

    .sidebar.open nav {
        display: block;
        animation: enter-up 250ms var(--ease) both;
    }
}


/* ----------------------------------------------------------
   27. PHONES
   ---------------------------------------------------------- */

@media (max-width: 680px) {
    :root {
        --gutter: 20px;
        --section-space: 56px;
        --radius: 18px;
        --radius-lg: 24px;
    }

    h1 {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
        line-height: 1.13;
        letter-spacing: -0.04em;
    }

    h2 {
        font-size: clamp(1.85rem, 7vw, 2.4rem);
        letter-spacing: -0.03em;
    }

    h3 {
        font-size: 1.1875rem;
    }

    .utility {
        padding-block: 9px;
        font-size: 0.6875rem;
    }

    .utility .row {
        flex-wrap: wrap;
        gap: 5px 14px;
    }

    .brand {
        flex: 1 1 0;
        min-width: 0;
        gap: 11px;
    }

    .brand > * {
        min-width: 0;
    }

    .brand strong {
        font-size: 0.875rem;
        line-height: 1.45;
    }

    .brand small {
        font-size: 0.5625rem;
        letter-spacing: 0.075em;
    }

    .brand img {
        flex-shrink: 0;
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        padding-block: 44px 56px;
    }

    /* Preserve document order on mobile. */
    .hero img {
        max-height: 290px;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.85;
    }

    .hero::before {
        background-size: 48px 48px;
    }

    .hero::after {
        right: -210px;
        animation: none;
    }

    .eyebrow {
        margin-bottom: 18px;
        font-size: 0.6875rem;
        letter-spacing: 0.12em;
    }

    .actions {
        gap: 11px;
        margin-top: 28px;
    }

    .btn {
        padding-inline: 21px;
    }

    .grid,
    .footer-grid,
    .form-grid,
    .filters,
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid {
        gap: 24px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 30px;
    }

    .section-head p {
        font-size: 1rem;
    }

    .row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .pad {
        padding: 26px;
    }

    .card-art {
        min-height: 125px;
        padding: 26px;
    }

    .card-cover {
        height: 225px;
    }

    .feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature .visual {
        padding: 30px;
    }

    .feature .visual img {
        max-height: 260px;
    }

    .feature .content {
        padding: 32px 26px;
    }

    .page-hero {
        padding-block: 44px;
    }

    .page-hero h1 {
        font-size: clamp(2.1rem, 8vw, 2.8rem);
    }

    .page-hero p {
        font-size: 1rem;
    }

    .field.wide {
        grid-column: auto;
    }

    .filters {
        gap: 20px;
        padding: 22px;
    }

    .filters .btn {
        width: 100%;
    }

    .form-grid {
        gap: 23px;
    }

    .body-copy blockquote {
        padding: 23px;
    }

    .footer-grid {
        gap: 34px;
    }

    footer {
        padding-top: 56px;
    }

    .copyright {
        margin-top: 34px;
        padding-top: 24px;
    }

    .sidebar {
        padding-inline: 20px;
    }

    .portal-top {
        flex-wrap: wrap;
        min-height: auto;
        padding: 18px 20px;
    }

    .portal-content {
        padding: 30px 20px;
    }

    .portal-content h1 {
        font-size: 2rem;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        margin-block: 26px;
    }

    .stat {
        padding: 23px 20px;
    }

    .stat strong {
        font-size: 2rem;
    }

    .stat span {
        font-size: 0.75rem;
    }

    .portal-form {
        padding: 26px 22px;
    }

    th,
    td {
        padding: 15px 17px;
    }

    .detail-grid div {
        padding: 18px 20px;
    }

    .login-wrap {
        padding: 22px;
    }

    .login-card {
        padding: 38px 28px;
    }

    .login-card h1 {
        font-size: 2rem;
    }
}

@media (max-width: 380px) {
    :root {
        --gutter: 16px;
    }

    .brand {
        gap: 8px;
    }

    .brand strong {
        font-size: 0.8125rem;
    }

    .brand small {
        font-size: 0.5rem;
        letter-spacing: 0.03em;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .menu {
        min-width: 44px;
        padding-inline: 10px;
    }

    .actions > .btn {
        width: 100%;
    }

    .stat {
        padding: 21px 16px;
    }

    .stat strong {
        font-size: 1.8rem;
    }

    .portal-content {
        padding-inline: 16px;
    }

    .login-card {
        padding-inline: 23px;
    }
}


/* ----------------------------------------------------------
   28. REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .brand:hover img,
    .btn:not(:disabled):not([aria-disabled="true"]):hover,
    .card:hover,
    .stat:hover,
    .hero img:hover,
    .feature:hover .visual img,
    .sidebar nav a:hover,
    .day-btn:not(:disabled):hover {
        transform: none;
    }
}


/* ----------------------------------------------------------
   29. FORCED COLORS
   ---------------------------------------------------------- */

@media (forced-colors: active) {
    .btn,
    .menu,
    .day-btn,
    .pill,
    .card,
    .stat,
    .table-wrap,
    .portal-form,
    .login-card {
        border: 1px solid ButtonText;
    }

    .links a.active,
    .links a[aria-current="page"],
    .sidebar nav a.active,
    .sidebar nav a[aria-current="page"],
    .day-btn[aria-selected="true"] {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }
}


/* ----------------------------------------------------------
   30. PRINT
   ---------------------------------------------------------- */

@media print {
    @page {
        margin: 15mm;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
        line-height: 1.6;
    }

    header,
    footer,
    .utility,
    .sidebar,
    .portal-top,
    .btn,
    .day-tabs,
    .skip,
    .pagination,
    .filters {
        display: none !important;
    }

    .hero::before,
    .hero::after,
    .page-hero::after,
    .feature::after,
    .section.soft::before,
    .section.pattern::after,
    .card::before,
    .card-art::after,
    .stat::before,
    .stat::after,
    .login-wrap::before,
    .login-card::before {
        display: none !important;
    }

    .portal-shell {
        display: block;
        min-height: auto;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    .portal-content {
        max-width: none;
        padding: 0;
    }

    .section {
        padding-block: 20px;
    }

    .hero-grid,
    .page-hero {
        padding-block: 20px;
    }

    .hero,
    .page-hero,
    .section.soft,
    .section.dark,
    .section.pattern,
    .feature,
    .feature .visual,
    .callout,
    .empty,
    .card,
    .card-art,
    .stat,
    .detail-grid div,
    .portal-form,
    .login-wrap,
    .login-card {
        background: #fff !important;
        color: #000 !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    small,
    .muted,
    .eyebrow,
    .meta,
    .text-link,
    .stat strong,
    .stat span,
    .detail-grid dt,
    .detail-grid dd,
    .section.dark h1,
    .section.dark h2,
    .section.dark h3,
    .section.dark h4,
    .section.dark h5,
    .section.dark h6,
    .section.dark .card p,
    .section.dark .section-head p,
    .section.dark .muted,
    .section.dark .meta,
    .section.dark .eyebrow,
    .section.dark .text-link,
    .feature h1,
    .feature h2,
    .feature h3,
    .feature h4,
    .feature p,
    .feature .eyebrow,
    .feature .text-link {
        color: #000 !important;
    }

    .card,
    .stat,
    .table-wrap,
    .portal-form,
    .detail-grid div,
    .section.dark .card {
        border-color: #ccc !important;
    }

    .card,
    .stat,
    .detail-grid div,
    tr {
        break-inside: avoid;
    }

    h1,
    h2,
    h3,
    h4 {
        break-after: avoid;
    }

    .table-wrap {
        overflow: visible;
    }

    thead {
        display: table-header-group;
    }

    th,
    td {
        padding: 9px 11px;
        background: #fff !important;
        color: #000 !important;
    }

    img {
        filter: none !important;
        transform: none !important;
    }

    a {
        color: inherit !important;
        text-decoration: none;
    }

    .pill,
    .card .pill,
    .feature .pill,
    .section.dark .pill,
    .section.dark .card .pill {
        border-color: #aaa !important;
        background: #fff !important;
        color: #000 !important;
    }

    .login-wrap {
        display: block;
        min-height: auto;
        padding: 0;
    }

    .login-card {
        max-width: none;
        padding: 20px;
    }

    .day-panel[hidden] {
        display: block !important;
    }
}





/* ==========================================================
   HERO: DARK PURPLE + ANIMATED NETWORK GLOBE
   Replace the previous hero-network CSS sections with this block.
   Existing canvas animation JavaScript remains unchanged.
   ========================================================== */

.hero {
    /* Theme colors */
    --hero-bg: #10071f;
    --hero-text: #f8f5ff;
    --hero-muted: #c7badf;
    --hero-accent: #c4a0ff;
    --hero-pink: #f0abfc;
    --hero-border: rgb(196 160 255 / 28%);

    position: relative;
    isolation: isolate;
    overflow: hidden;

    color: var(--hero-text);

    background:
        radial-gradient(
            ellipse at 78% 44%,
            rgb(124 58 237 / 24%),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 12% 12%,
            rgb(192 38 211 / 13%),
            transparent 42%
        ),
        linear-gradient(
            115deg,
            #0c0518 0%,
            #170a2c 42%,
            #21103b 74%,
            #10071f 100%
        );
}


/* ==========================================================
   ANIMATED AMBIENT BACKGROUND GLOWS
   These sit behind the network canvas and foreground content.
   ========================================================== */

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;

    display: block;

    border-radius: 50%;
    pointer-events: none;

    filter: blur(64px);
    will-change: transform;
}

.hero::before {
    top: -18%;
    right: -8%;

    width: clamp(320px, 52vw, 820px);
    aspect-ratio: 1;

    background: radial-gradient(
        circle,
        rgb(139 92 246 / 30%) 0%,
        rgb(109 40 217 / 12%) 44%,
        transparent 72%
    );

    animation: hero-purple-drift 18s ease-in-out infinite alternate;
}

.hero::after {
    bottom: -35%;
    left: -12%;

    width: clamp(280px, 42vw, 640px);
    aspect-ratio: 1;

    background: radial-gradient(
        circle,
        rgb(217 70 239 / 19%) 0%,
        rgb(126 34 206 / 9%) 45%,
        transparent 72%
    );

    animation: hero-pink-drift 22s ease-in-out infinite alternate;
}

@keyframes hero-purple-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-6%, 10%, 0) scale(1.12);
    }
}

@keyframes hero-pink-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(12%, -8%, 0) scale(1.1);
    }
}


/* ==========================================================
   NETWORK CANVAS
   Purple-tinted dots and lines over the dark background.
   ========================================================== */

.hero .hero-network {
    position: absolute;
    z-index: 0;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    opacity: 0.95;

    /*
       Tint the existing rendered canvas toward purple.
       Native canvas colors can also be changed in JavaScript.
    */
    filter:
        grayscale(1)
        sepia(1)
        saturate(3)
        hue-rotate(215deg)
        brightness(1.35)
        contrast(1.15)
        drop-shadow(0 0 7px rgb(167 139 250 / 35%));

    pointer-events: none;
}


/* Keep all foreground content above the canvas. */
.hero > .container {
    position: relative;
    z-index: 1;
}


/* ==========================================================
   FOREGROUND TYPOGRAPHY
   Scoped to the hero container.
   ========================================================== */

.hero > .container :where(h1, h2, h3, h4, h5, h6) {
    color: var(--hero-text);
}

.hero > .container :where(p, li) {
    color: var(--hero-muted);
}

/* Optional highlighted words inside the heading. */
.hero :where(.hero-highlight, .text-accent) {
    color: var(--hero-accent);
}

/*
   Optional gradient heading:
   <span class="hero-gradient-text">Your highlighted text</span>
*/
.hero .hero-gradient-text {
    color: var(--hero-accent);

    background: linear-gradient(
        100deg,
        #ffffff 0%,
        #d8b4fe 45%,
        #f0abfc 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ==========================================================
   HERO BUTTONS
   Supports common Bootstrap button classes and custom classes.
   ========================================================== */

.hero :where(.btn-primary, .hero-btn-primary) {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #7c3aed;
    --bs-btn-border-color: #a879ff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #6d28d9;
    --bs-btn-hover-border-color: #c4a0ff;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #5b21b6;
    --bs-btn-active-border-color: #c4a0ff;

    color: #ffffff;
    border: 1px solid #a879ff;

    background: linear-gradient(
        135deg,
        #7c3aed 0%,
        #9333ea 55%,
        #a21caf 100%
    );

    box-shadow:
        0 8px 24px rgb(124 58 237 / 26%),
        inset 0 1px 0 rgb(255 255 255 / 15%);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.hero :where(.btn-primary, .hero-btn-primary):hover {
    color: #ffffff;
    border-color: #d8b4fe;

    background: linear-gradient(
        135deg,
        #6d28d9 0%,
        #7e22ce 55%,
        #86198f 100%
    );

    box-shadow:
        0 12px 30px rgb(124 58 237 / 38%),
        inset 0 1px 0 rgb(255 255 255 / 18%);

    transform: translateY(-2px);
}

.hero :where(
    .btn-outline-primary,
    .btn-outline-light,
    .hero-btn-secondary
) {
    color: #eee5ff;
    border: 1px solid rgb(196 160 255 / 48%);

    background: rgb(167 139 250 / 8%);

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.hero :where(
    .btn-outline-primary,
    .btn-outline-light,
    .hero-btn-secondary
):hover {
    color: #ffffff;
    border-color: #c4a0ff;
    background: rgb(167 139 250 / 19%);
}

.hero :where(
    .btn-primary,
    .hero-btn-primary,
    .btn-outline-primary,
    .btn-outline-light,
    .hero-btn-secondary
):focus-visible {
    outline: 3px solid #e9d5ff;
    outline-offset: 4px;
}


/* ==========================================================
   OPTIONAL FOREGROUND OBJECTS
   Apply these classes to existing cards, icons, or badges.
   ========================================================== */

.hero :where(.hero-card, .hero-glass) {
    color: var(--hero-text);

    border: 1px solid var(--hero-border);
    border-radius: 20px;

    background: linear-gradient(
        145deg,
        rgb(51 29 81 / 88%),
        rgb(26 13 47 / 94%)
    );

    box-shadow:
        0 20px 55px rgb(0 0 0 / 28%),
        inset 0 1px 0 rgb(255 255 255 / 6%);
}

.hero .hero-icon {
    color: #d8b4fe;
    filter: drop-shadow(0 0 10px rgb(168 85 247 / 28%));
}

.hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 13px;

    color: #eadcff;
    border: 1px solid rgb(196 160 255 / 30%);
    border-radius: 999px;

    background: rgb(139 92 246 / 13%);
}


/* ==========================================================
   OPTIONAL ANIMATION CONTROL
   ========================================================== */

.hero-network-toggle {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 8px 14px;

    border: 1px solid rgb(196 160 255 / 42%);
    border-radius: 999px;

    background: rgb(28 13 49 / 94%);
    color: #e9ddff;

    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;

    box-shadow: 0 4px 18px rgb(0 0 0 / 18%);

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.hero-network-toggle:hover {
    color: #ffffff;
    border-color: #c4a0ff;
    background: #382054;
}

.hero-network-toggle:focus-visible {
    outline: 3px solid #d8b4fe;
    outline-offset: 4px;
}

.hero-network-toggle:disabled {
    opacity: 0.65;
    cursor: default;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {
    .hero .hero-network {
        opacity: 0.85;
    }

    .hero::before,
    .hero::after {
        filter: blur(48px);
    }
}


/* ==========================================================
   MOBILE
   Keep the globe visible without overpowering the text.
   ========================================================== */

@media (max-width: 680px) {
    .hero {
        background:
            radial-gradient(
                ellipse at 85% 28%,
                rgb(124 58 237 / 23%),
                transparent 52%
            ),
            linear-gradient(
                155deg,
                #0c0518 0%,
                #1b0c30 58%,
                #11081f 100%
            );
    }

    .hero .hero-network {
        opacity: 0.65;
    }

    .hero::before,
    .hero::after {
        filter: blur(36px);
    }

    .hero-network-toggle {
        right: 12px;
        bottom: 10px;

        min-height: 36px;
        padding: 7px 12px;

        font-size: 0.6875rem;
    }
}

@media (max-width: 380px) {
    .hero .hero-network {
        opacity: 0.55;
    }
}


/* ==========================================================
   REDUCED MOTION
   Canvas animation must also be controlled in JavaScript.
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        animation: none;
        will-change: auto;
    }

    .hero-network-toggle,
    .hero :where(
        .btn-primary,
        .hero-btn-primary,
        .btn-outline-primary,
        .btn-outline-light,
        .hero-btn-secondary
    ) {
        transition: none;
    }

    .hero :where(.btn-primary, .hero-btn-primary):hover {
        transform: none;
    }
}


/* ==========================================================
   PRINT
   ========================================================== */

@media print {
    .hero {
        color: #111111 !important;
        background: #ffffff !important;
    }

    .hero .hero-network,
    .hero-network-toggle,
    .hero::before,
    .hero::after {
        display: none !important;
    }

    .hero > .container :where(h1, h2, h3, h4, h5, h6, p, li),
    .hero :where(.hero-highlight, .text-accent, .hero-gradient-text) {
        color: #111111 !important;
        background: none !important;
        -webkit-text-fill-color: #111111 !important;
    }
}