/*
   MJS AND YOUNGS LTD
   Version 4 design system (light theme only)
   Tokens -> base -> layout -> components -> pages -> motion -> responsive
*/

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(/assets/fonts/outfit-latin.woff2) format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(/assets/fonts/playfair-latin.woff2) format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 800;
    font-display: swap;
    src: url(/assets/fonts/playfair-italic-latin.woff2) format('woff2');
}

/* ---------- Tokens ---------- */
:root {
    color-scheme: light;

    /* Surfaces */
    --paper: #fbfaf7;
    --paper-2: #f4f1ea;
    --white: #ffffff;
    --mist: #eef2fb;

    /* Ink */
    --ink: #0b1b3a;
    --text: #344054;
    --muted: #5b6476;
    --line: rgba(11, 27, 58, 0.09);
    --line-strong: rgba(11, 27, 58, 0.16);

    /* Brand */
    --navy: #13296b;
    --royal: #1e3a8a;
    --royal-2: #2f54c6;
    --gold: #c9922e;
    --gold-bright: #e8b04b;
    --gold-ink: #94650f;
    --gold-display: #a8741c; /* large gold text on light backgrounds: 3.9:1 */
    --gold-soft: #fbf1dc;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(11, 27, 58, 0.06), 0 2px 8px rgba(11, 27, 58, 0.04);
    --shadow: 0 10px 30px rgba(11, 27, 58, 0.07);
    --shadow-lg: 0 24px 60px rgba(11, 27, 58, 0.12);
    --shadow-gold: 0 12px 30px rgba(201, 146, 46, 0.28);
    --ring: 0 0 0 3px rgba(201, 146, 46, 0.25);

    /* Type */
    --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Shape + motion */
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --t: 0.45s var(--ease);
    --nav-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    background: var(--paper);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.6rem);
    line-height: 1.06;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--royal);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--gold-ink);
}

strong {
    color: var(--ink);
    font-weight: 600;
}

::selection {
    background: var(--gold-soft);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 2000;
    background: var(--ink);
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: var(--r-sm);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Layout ---------- */
main > section,
.site-footer {
    overflow-x: clip;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 860px;
}

.section {
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
    position: relative;
}

.section.tight {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.bg-white {
    background: var(--white);
}

.bg-paper-2 {
    background: var(--paper-2);
}

.bg-mist {
    background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-head p {
    color: var(--muted);
    font-size: 1.15rem;
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--royal);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head .eyebrow::after {
    content: '';
    width: 28px;
    height: 1.5px;
    background: linear-gradient(270deg, var(--gold), transparent);
}

.lead {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text);
    line-height: 1.6;
}

.gold-text {
    color: var(--gold-ink);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-display);
    font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    border: 0;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.35s var(--ease);
}

.btn:hover svg {
    transform: translateX(3px);
}

/* Sheen sweep */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal) 0%, var(--royal-2) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(30, 58, 138, 0.32);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    color: var(--ink);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(201, 146, 46, 0.38);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: var(--royal);
    box-shadow: inset 0 0 0 1.5px var(--royal);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: var(--royal);
    color: #fff;
    transform: translateY(-3px);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.btn-ghost-light:hover {
    background: #fff;
    color: var(--ink);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
}

.btn:active {
    transform: translateY(0) scale(0.97);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: ripple 0.65s ease-out forwards;
    pointer-events: none;
    z-index: -1;
}

@keyframes ripple {
    to {
        transform: scale(3.2);
        opacity: 0;
    }
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--royal);
}

.text-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}

.text-link:hover svg {
    transform: translateX(4px);
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s var(--ease);
}

.navbar.scrolled,
.navbar.solid {
    background: rgba(251, 250, 247, 0.86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(11, 27, 58, 0.05);
}

.navbar.scrolled {
    height: 66px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--royal);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.logo:hover {
    color: var(--royal);
}

.logo-mark {
    height: 46px;
    width: auto;
    flex: 0 0 auto;
    transition: transform 0.6s var(--ease);
}

.logo .wordmark {
    height: 21px;
    width: auto;
}

.logo:hover .logo-mark {
    transform: rotate(-8deg) scale(1.05);
}

.logo .amp {
    color: var(--gold-display);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font: 500 0.98rem var(--font-sans);
    color: var(--ink);
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
}

.nav-links > li > a::after,
.nav-links > li > button::after {
    content: '';
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.3rem;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.nav-links > li > a:hover::after,
.nav-links > li > button:hover::after,
.nav-links > li > a[aria-current='page']::after,
.nav-links > li.is-current > button::after {
    transform: scaleX(1);
}

.nav-links .chev {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease);
}

.has-menu:hover .chev,
.has-menu.open .chev {
    transform: rotate(180deg);
}

.mega {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: min(640px, 90vw);
    transform: translate(-50%, 8px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
}

.mega::before {
    content: '';
    position: absolute;
    inset: -14px 0 auto 0;
    height: 14px;
}

.has-menu:hover .mega,
.has-menu:focus-within .mega,
.has-menu.open .mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mega a {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.9rem;
    border-radius: var(--r-sm);
    color: var(--ink);
    transition: background 0.25s ease;
}

.mega a:hover {
    background: var(--paper);
    color: var(--ink);
}

.mega a span {
    font-weight: 600;
    font-size: 0.98rem;
}

.mega a small {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.mega .mega-all {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: var(--gold-soft);
    font-weight: 600;
    margin-top: 0.25rem;
}

.mega .mega-all:hover {
    background: #f7e6c2;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--white);
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.8px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.2s ease, top 0.35s var(--ease);
}

.nav-toggle span:nth-child(1) {
    top: 16px;
}

.nav-toggle span:nth-child(2) {
    top: 22px;
}

.nav-toggle span:nth-child(3) {
    top: 28px;
}

.nav-open .nav-toggle span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(251, 250, 247, 0.98);
    backdrop-filter: blur(10px);
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.45s var(--ease), visibility 0.35s;
}

.nav-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu > ul > li {
    border-bottom: 1px solid var(--line);
}

.mobile-menu a {
    display: block;
    padding: 1rem 0.25rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--ink);
}

.mobile-menu .sub a {
    font-family: var(--font-sans);
    font-size: 1.02rem;
    padding: 0.55rem 0.25rem 0.55rem 1rem;
    color: var(--text);
}

.mobile-menu .sub {
    padding-bottom: 0.75rem;
}

.mobile-menu .btn {
    margin-top: 1.75rem;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    padding: 1rem;
}

.nav-open {
    overflow: hidden;
}

/* ---------- Ambient layer (shapes, grid, parallax) ---------- */
.ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--royal) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.05;
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}

.shapes {
    position: absolute;
    inset: -40px;
    transition: translate 0.9s var(--ease);
    will-change: translate;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.7;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 460px;
    height: 460px;
    background: #dfe6fb;
    top: -120px;
    right: -80px;
}

.shape-2 {
    width: 540px;
    height: 540px;
    background: #fbe9c8;
    bottom: -240px;
    left: -160px;
    animation-delay: -5s;
}

.shape-3 {
    width: 320px;
    height: 320px;
    background: #d9e6fd;
    top: 32%;
    left: 34%;
    opacity: 0.5;
    animation-duration: 25s;
}

.ambient.soft .shape {
    opacity: 0.5;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Floating finance glyphs that drift with the mouse */
.glyph {
    position: absolute;
    font-family: var(--font-serif);
    color: var(--royal);
    opacity: 0.09;
    font-weight: 600;
    transition: translate 0.9s var(--ease);
    will-change: translate;
    user-select: none;
}

[data-depth] {
    transition: translate 0.9s var(--ease);
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    min-height: min(100vh, 920px);
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
    background: linear-gradient(180deg, #f6f7fb 0%, var(--paper) 100%);
    overflow: hidden;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.hero h1 {
    color: var(--royal);
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-display);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: 0.04em;
    height: 0.09em;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold));
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 1.1s 1.1s var(--ease) forwards;
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

.hero .lead {
    max-width: 580px;
    margin-bottom: 2.25rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
    list-style: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem 0.5rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    backdrop-filter: blur(6px);
}

.chip svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

a.chip:hover {
    color: var(--ink);
    border-color: rgba(201, 146, 46, 0.45);
    transform: translateY(-2px);
}

a.chip {
    transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

/* ---------- Dynamic graphic card (kept from V3, refined) ---------- */
.glass-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow);
}

.dynamic-graphic {
    min-height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    background: linear-gradient(140deg, #ffffff 0%, #f1f4fd 100%);
    border: 1px solid rgba(30, 58, 138, 0.1);
    box-shadow: var(--shadow-lg);
}

.dynamic-graphic .dg-clip {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
}

.dg-bg-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(232, 176, 75, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.dg-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: linear-gradient(rgba(30, 58, 138, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.08) 1px, transparent 1px);
    background-size: 25px 25px;
    transform: perspective(500px) rotateX(60deg) translateY(50px) scale(2);
    transform-origin: bottom center;
    opacity: 0.8;
}

.dg-chart {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 190px;
    z-index: 2;
    position: relative;
    margin-bottom: 2rem;
}

.dg-chart .bar {
    width: 42px;
    border-radius: 9px 9px 0 0;
    background: linear-gradient(180deg, var(--royal) 0%, rgba(30, 58, 138, 0.7) 100%);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.25);
    animation: growBar 3s ease-in-out infinite alternate;
    transform-origin: bottom;
    position: relative;
}

.dg-chart .bar::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 9px 9px 0 0;
}

.bar-1 {
    height: 40%;
}

.bar-2 {
    height: 60%;
    animation-delay: 0.5s !important;
    background: linear-gradient(180deg, #3b82f6 0%, rgba(59, 130, 246, 0.7) 100%) !important;
}

.bar-3 {
    height: 85%;
    animation-delay: 1s !important;
}

.bar-4 {
    height: 100%;
    animation-delay: 1.5s !important;
    background: linear-gradient(180deg, var(--gold-bright) 0%, rgba(201, 146, 46, 0.75) 100%) !important;
}

@keyframes growBar {
    0% {
        transform: scaleY(0.7);
    }

    100% {
        transform: scaleY(1.05);
    }
}

.dg-trend {
    position: absolute;
    inset: 18% 10% auto 10%;
    height: 50%;
    z-index: 3;
    pointer-events: none;
}

.dg-trend path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 2.4s 0.8s var(--ease) forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.dg-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 3;
    animation: floatOrb 6s infinite ease-in-out;
}

.orb-1 {
    width: 70px;
    height: 70px;
    top: 13%;
    left: 12%;
}

.orb-2 {
    width: 46px;
    height: 46px;
    top: 34%;
    right: 13%;
    animation-delay: -3s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.dg-floating-badge {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: var(--ink);
    padding: 0.7rem 1.3rem 0.7rem 0.8rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.02rem;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.16);
    border: 1px solid rgba(30, 58, 138, 0.08);
    animation: floatBadge 4s infinite ease-in-out;
    white-space: nowrap;
}

.dg-floating-badge small {
    display: block;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.2;
}

.dg-floating-badge.b-1 {
    bottom: -22px;
    right: -18px;
}

.dg-floating-badge.b-2 {
    top: -20px;
    left: -16px;
    animation-delay: -2s;
}

.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex: 0 0 44px;
}

.badge-icon.gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 4px 12px rgba(201, 146, 46, 0.35);
}

.badge-icon svg {
    width: 24px;
    height: 24px;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ---------- Awards ---------- */
.awards-band {
    position: relative;
    padding: 3.5rem 0;
    background: var(--white);
    border-block: 1px solid var(--line);
}

.awards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.awards-row h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    margin: 0;
}

.awards-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.awards-list li {
    display: flex;
    flex: 1 1 200px;
    max-width: 236px;
}

.award {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 0.65rem;
    padding: 1.25rem 1rem;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fdfbf6);
    color: var(--ink);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
    overflow: hidden;
}

.award:hover {
    color: var(--ink);
    border-color: rgba(201, 146, 46, 0.45);
    box-shadow: var(--shadow-gold);
}

.award .laurel {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.award strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.award small {
    color: var(--muted);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.award small svg {
    width: 12px;
    height: 12px;
}

.award::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(232, 176, 75, 0.22) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 1s var(--ease);
    pointer-events: none;
}

.award:hover::after {
    transform: translateX(120%);
}

/* Large award cards (about page) */
.award-feature {
    text-align: center;
    padding: 2.5rem 1.75rem;
    border-radius: var(--r-lg);
    background: radial-gradient(circle at 50% 0%, #fff7e6 0%, #fff 60%);
    border: 1px solid rgba(201, 146, 46, 0.25);
    box-shadow: var(--shadow);
    color: var(--ink);
    display: block;
    position: relative;
    overflow: hidden;
}

.award-feature:hover {
    color: var(--ink);
}

.award-feature .laurel {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
}

.award-feature .year {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    color: var(--gold-display);
    line-height: 1;
}

.award-feature h3 {
    margin: 0.6rem 0 0.4rem;
}

.award-feature p {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 1rem;
}

/* ---------- Cards ---------- */
.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.45s var(--ease), border-color 0.3s ease, transform 0.45s var(--ease);
    overflow: hidden;
    isolation: isolate;
}

/* Mouse-following spotlight on any card (set by JS via --mx/--my) */
.spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(232, 176, 75, 0.13), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.spotlight:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 138, 0.14);
}

.hover-tilt {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Service cards */
.service-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: var(--text);
    height: 100%;
}

.service-card:hover {
    color: var(--text);
}

.sc-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, var(--paper), var(--mist));
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.5s var(--ease-spring);
    overflow: hidden;
}

.service-card:hover .sc-icon {
    transform: translateZ(30px) scale(1.06) rotate(-3deg);
}

.sc-icon dotlottie-player {
    width: 100px;
    height: 100px;
}

.service-card h3 {
    font-size: 1.35rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--muted);
    flex: 1;
}

.service-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.price {
    font-weight: 600;
    color: var(--royal);
    font-size: 1.02rem;
}

.price .num {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
}

.arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    color: var(--royal);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
    flex: 0 0 38px;
}

.arrow-btn svg {
    width: 16px;
    height: 16px;
}

.service-card:hover .arrow-btn {
    background: var(--royal);
    color: #fff;
    transform: rotate(-45deg);
}

.sc-bg-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    background: var(--gold-bright);
    filter: blur(60px);
    opacity: 0;
    bottom: -60px;
    right: -60px;
    transition: opacity 0.45s ease;
    z-index: -1;
}

.service-card:hover .sc-bg-glow {
    opacity: 0.18;
}

/* Feature / value cards */
.feature .f-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--gold-ink);
    margin-bottom: 1.25rem;
    transition: transform 0.5s var(--ease-spring);
}

.feature:hover .f-icon {
    transform: scale(1.1) rotate(-6deg);
}

.feature .f-icon svg {
    width: 26px;
    height: 26px;
}

.feature p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 1rem;
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.25rem;
}

.stat {
    padding: 1.4rem 1.2rem;
    border-radius: var(--r);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1;
    color: var(--royal);
    font-variant-numeric: tabular-nums;
}

.stat-num .suffix {
    color: var(--gold-display);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- Process steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--royal-2), transparent);
    opacity: 0.35;
}

.step {
    position: relative;
    text-align: center;
    padding: 0 0.5rem;
}

.step-num {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1.5px solid rgba(201, 146, 46, 0.5);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--royal);
    box-shadow: 0 0 0 8px var(--paper);
    position: relative;
    z-index: 1;
    transition: transform 0.5s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}

.step:hover .step-num {
    transform: scale(1.12);
    background: var(--royal);
    color: #fff;
}

.step p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* ---------- Deadlines ---------- */
.deadline-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.countdown-card {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    background: linear-gradient(150deg, var(--navy) 0%, #0b1b3a 100%);
    color: #e6ebf7;
    border-radius: var(--r-lg);
    padding: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.countdown-card::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -100px;
    top: -120px;
    background: var(--gold);
    filter: blur(110px);
    opacity: 0.35;
    border-radius: 50%;
}

.countdown-card h3 {
    color: #fff;
    position: relative;
}

.countdown-card p {
    color: #b9c3dc;
    position: relative;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    position: relative;
}

.live-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 0 0 rgba(232, 176, 75, 0.7);
    animation: live 1.8s infinite;
}

@keyframes live {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 176, 75, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(232, 176, 75, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 176, 75, 0);
    }
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin: 1.5rem 0 1.25rem;
    position: relative;
}

.countdown div {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.9rem 0.4rem;
    text-align: center;
}

.countdown b {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9fabc8;
}

.deadline-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.deadline-list li {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1.1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.deadline-list li:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.deadline-list li.next {
    border-color: rgba(201, 146, 46, 0.55);
    box-shadow: 0 0 0 3px rgba(232, 176, 75, 0.15);
}

.deadline-list time {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--royal);
    line-height: 1.15;
    font-size: 1.05rem;
}

.deadline-list time small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

.deadline-list strong {
    display: block;
    font-size: 1rem;
}

.deadline-list span {
    font-size: 0.92rem;
    color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
    display: grid;
    gap: 0.85rem;
}

.faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: box-shadow 0.35s var(--ease), border-color 0.3s ease;
}

.faq details[open] {
    box-shadow: var(--shadow);
    border-color: rgba(201, 146, 46, 0.35);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--ink);
    font-size: 1.06rem;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary .plus {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: var(--paper);
    position: relative;
    transition: transform 0.4s var(--ease), background 0.3s ease;
}

.faq summary .plus::before,
.faq summary .plus::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.8px;
    background: var(--royal);
    transform: translate(-50%, -50%);
}

.faq summary .plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.4s var(--ease);
}

.faq details[open] .plus {
    background: var(--gold-soft);
    transform: rotate(180deg);
}

.faq details[open] .plus::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq .answer {
    padding: 0 1.5rem 1.35rem;
    color: var(--text);
}

.faq .answer p:last-child {
    margin-bottom: 0;
}

/* ---------- CTA banner (kept from V3, refined) ---------- */
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--royal) 0%, var(--navy) 55%, #0b1b3a 100%);
    box-shadow: 0 30px 60px rgba(19, 41, 107, 0.28);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 340px;
    height: 340px;
    background: var(--gold);
    filter: blur(110px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 14s infinite ease-in-out alternate;
}

.cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.06;
}

.cta-banner > * {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-banner p {
    color: #c9d2ea;
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + 4rem) 0 4rem;
    background: linear-gradient(180deg, #f4f6fb 0%, var(--paper) 100%);
    overflow: hidden;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--royal);
    font-size: clamp(2.3rem, 4.6vw, 3.7rem);
    margin-bottom: 1.25rem;
    max-width: 20ch;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--gold-display);
    font-weight: 500;
}

.page-hero .lead {
    max-width: 680px;
    margin-bottom: 0;
}

.page-hero .hero-buttons {
    margin-top: 2rem;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero-icon {
    width: 190px;
    height: 190px;
    border-radius: 44px;
    background: linear-gradient(145deg, #fff, var(--mist));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: floatBadge 5s infinite ease-in-out;
}

.hero-icon dotlottie-player {
    width: 170px;
    height: 170px;
}

.hero-icon .price-tag {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs li + li::before {
    content: '/';
    margin-right: 0.4rem;
    color: var(--line-strong);
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--royal);
}

/* Answer box (AI-search friendly summary) */
.answer-box {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--r);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

.answer-box .label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold-ink);
    margin-bottom: 0.4rem;
    display: block;
}

.answer-box p {
    margin: 0;
    font-size: 1.08rem;
    color: var(--ink);
}

/* Prose (service + legal content) */
.prose h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin: 2.75rem 0 1rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.75rem 0 0.5rem;
}

.prose ul,
.prose ol {
    margin: 0 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.prose li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.65rem;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394650f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.prose ol {
    counter-reset: li;
}

.prose ol li::before {
    counter-increment: li;
    content: counter(li);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--royal);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.75rem;
    font-size: 0.98rem;
    background: var(--white);
    border-radius: var(--r-sm);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line);
}

.prose th,
.prose td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.prose th {
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
}

.prose tr:last-child td {
    border-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.updated {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 1.25rem;
}

.updated svg {
    width: 16px;
    height: 16px;
}

/* Two-column service layout */
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    display: grid;
    gap: 1.25rem;
}

.side-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}

.side-card h3 {
    font-size: 1.2rem;
}

.side-card .big-price {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--royal);
    line-height: 1.1;
    margin: 0.25rem 0 0.25rem;
}

.side-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

.side-card .btn {
    width: 100%;
}

.side-card ul {
    list-style: none;
    display: grid;
    gap: 0.25rem;
}

.side-card ul a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--ink);
    border-bottom: 1px dashed var(--line);
    font-size: 0.96rem;
}

.side-card ul a:hover {
    color: var(--royal);
}

.side-card li:last-child a {
    border-bottom: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
}

.info-blocks {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.info-block {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--r);
    transition: background 0.3s ease;
}

.info-block:hover {
    background: var(--white);
}

.ib-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--royal);
    box-shadow: var(--shadow-sm);
}

.ib-icon svg {
    width: 22px;
    height: 22px;
}

.ib-content h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.ib-content p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--muted);
}

/* Email highlight (kept from V3) */
#contact-email-block {
    transition: all 0.5s var(--ease-spring);
    cursor: pointer;
    border: 2px solid transparent;
}

.email-prompt-msg {
    font-size: 0.9rem !important;
    color: var(--gold-ink) !important;
    margin-bottom: 0 !important;
    font-weight: 600;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.email-address a {
    word-break: break-all;
    position: relative;
    display: inline-block;
    font-weight: 500;
}

.email-address a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    left: 0;
    bottom: -3px;
    transition: width 0.4s var(--ease-spring);
}

#contact-email-block:hover .email-address a::after,
#contact-email-block.highlight .email-address a::after {
    width: 100%;
}

#contact-email-block.highlight {
    background: #fff;
    transform: scale(1.04) translateX(8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
    z-index: 10;
    position: relative;
}

#contact-email-block.highlight .email-prompt-msg {
    max-height: 50px;
    opacity: 1;
    margin-bottom: 0.6rem !important;
}

#contact-email-block.highlight .email-address a {
    font-weight: 700;
    color: var(--gold-ink);
}

.hours {
    margin-top: 1.75rem;
    padding: 1.5rem;
    border-radius: var(--r);
    background: var(--white);
    border: 1px solid var(--line);
}

.hours h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.hours ul {
    list-style: none;
}

.hours li {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    font-size: 0.97rem;
    color: var(--muted);
    border-bottom: 1px dashed var(--line);
}

.hours li:last-child {
    border-bottom: 0;
}

.hours li.today {
    color: var(--ink);
    font-weight: 600;
}

.hours li.today span:first-child::after {
    content: 'Today';
    margin-left: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--gold-soft);
    color: var(--gold-ink);
    padding: 0.15rem 0.45rem;
    border-radius: 99px;
    vertical-align: middle;
}

.open-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.open-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.open-status.is-open {
    color: #16794a;
}

.open-status.is-closed {
    color: var(--muted);
}

.closed {
    color: #b42318;
    font-weight: 600;
}

.form-card h2 {
    font-size: 1.8rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.contact-form label {
    font-size: 0.93rem;
    color: var(--ink);
    margin-bottom: 0.45rem;
    font-weight: 500;
}

.contact-form label .req {
    color: #b42318;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form input[type='tel'],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--paper);
    font: 400 1rem var(--font-sans);
    color: var(--ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 2.75rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--ring);
    background: #fff;
}

.check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.92rem !important;
    color: var(--muted) !important;
    font-weight: 400 !important;
    margin-bottom: 1.25rem !important;
}

.check input {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    accent-color: var(--royal);
    flex: 0 0 18px;
}

.form-submit-btn {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 1rem 0 0;
    text-align: center;
}

/* ---------- Apps ---------- */
.app-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-card .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--royal), var(--royal-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.25);
}

.app-card .app-icon svg {
    width: 30px;
    height: 30px;
}

.app-card .status {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    background: var(--gold-soft);
    color: var(--gold-ink);
}

.app-card p {
    color: var(--muted);
    margin: 0;
}

/* ---------- Footer ---------- */
footer.site-footer {
    background: #0b1b3a;
    color: #c8d0e3;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    left: -200px;
    bottom: -260px;
    background: var(--royal-2);
    filter: blur(140px);
    opacity: 0.25;
    border-radius: 50%;
}

/* Awards ticker (kept from V3) */
.awards-ticker-wrapper {
    width: 100%;
    background: var(--paper);
    padding: 3rem 0 3.25rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid var(--line);
}

.awards-ticker-title {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.awards-ticker-title span {
    color: var(--ink);
    font-weight: 300;
}

.awards-pulse-anim {
    animation: goldPulseTitle 3s infinite ease-in-out;
}

@keyframes goldPulseTitle {

    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
        text-shadow: 0 0 15px rgba(232, 176, 75, 0.45);
    }
}

.awards-ticker-mask {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.awards-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-ticker 45s linear infinite;
}

.awards-ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.ticker-item svg {
    width: 26px;
    height: 26px;
}

.ticker-item:hover {
    color: var(--royal);
    transform: translateY(-2px);
}

.ticker-dot {
    color: var(--gold);
    margin: 0 3.5rem;
    font-size: 1.1rem;
}

@keyframes scroll-ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.footer-main {
    position: relative;
    z-index: 1;
    padding: 4.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #9eaac6;
    font-size: 0.98rem;
    max-width: 34ch;
}

.footer-col h2 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 1.1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.footer-col a {
    color: #c8d0e3;
    font-size: 0.97rem;
    position: relative;
}

.footer-col a:hover {
    color: #fff;
}

.footer-email {
    color: #fff !important;
    font-weight: 500;
    word-break: break-all;
}

.footer-legal {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 1.75rem 0 2rem;
    font-size: 0.86rem;
    color: #8590ad;
}

.footer-legal .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
}

.footer-legal p {
    margin: 0;
}

/* ---------- 404 ---------- */
.not-found {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.not-found .big {
    font-family: var(--font-serif);
    font-size: clamp(6rem, 18vw, 11rem);
    line-height: 1;
    color: var(--royal);
    letter-spacing: -0.03em;
}

.not-found .big span {
    color: var(--gold-display);
    font-style: italic;
    display: inline-block;
    animation: floatBadge 3s infinite ease-in-out;
}

/* ---------- Motion: entrance + reveal ---------- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--ease) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.45s;
    transition-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.js .reveal {
    opacity: 0;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
}

.js .reveal.active {
    opacity: 1;
    transform: none;
}

.js .reveal.revealed {
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease, opacity 0.3s ease;
    transition-delay: 0s;
}

.js .fade-up {
    transform: translateY(46px);
}

.js .slide-left {
    transform: translateX(-46px);
}

.js .slide-right {
    transform: translateX(46px);
}

.js .scale-up {
    transform: scale(0.92);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links > li > a,
    .nav-links > li > button {
        padding: 0.55rem 0.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 980px) {
    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-grid,
    .grid-2,
    .contact-grid,
    .deadline-wrap,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .dynamic-graphic {
        min-height: 360px;
        margin: 1.5rem 1rem 1rem;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4,
    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        row-gap: 2.5rem;
    }

    .steps::before {
        display: none;
    }


    .sidebar {
        position: static;
    }

    .countdown-card {
        position: relative;
        top: auto;
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-icon {
        width: 140px;
        height: 140px;
        border-radius: 34px;
        order: -1;
    }

    .hero-icon dotlottie-player {
        width: 124px;
        height: 124px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }

    .awards-list li {
        flex: 1 1 100%;
        max-width: none;
    }

    body {
        font-size: 1rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons .btn {
        flex: 1 1 100%;
    }

    .dg-floating-badge {
        font-size: 0.9rem;
        padding: 0.55rem 1rem 0.55rem 0.6rem;
    }

    .dg-floating-badge.b-1 {
        right: -10px;
    }

    .dg-floating-badge.b-2 {
        left: -10px;
    }

    .dg-chart {
        gap: 12px;
        height: 160px;
    }

    .dg-chart .bar {
        width: 34px;
    }

    .glass-card,
    .countdown-card {
        padding: 1.75rem;
    }

    .card {
        padding: 1.6rem;
    }

    .deadline-list li {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .ticker-dot {
        margin: 0 2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-mark {
        height: 40px;
    }

    .logo .wordmark {
        height: 17px;
    }
}

/* ---------- Touch: press states instead of hover ---------- */
@media (hover: none) {
    .card:active,
    .award:active,
    .deadline-list li:active {
        transform: scale(0.98);
        transition-duration: 0.15s;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal,
    .animate-fade-up {
        opacity: 1;
        transform: none;
    }

    .awards-ticker-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
    }
}

/* ---------- Print ---------- */
@media print {
    .navbar,
    .mobile-menu,
    .ambient,
    .awards-ticker-wrapper,
    .cta-banner {
        display: none !important;
    }

    body {
        background: #fff;
    }
}
