/* --- Core Setup & Variables --- */
:root {
    --gold: #D4AF37;
    --black: #121212;
    --white: #F5F5F5;
    --grey: #888;
    --red: #FF3B30; /* A sharp, iOS-style red for errors */
    --green: #30D158; /* A vibrant, iOS-style green for success */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--black); /* Simplified to a solid black for the kinetic effect to pop */
    font-family: var(--font-main);
    color: var(--white);
    overflow: hidden; /* Prevent scrolling */
}

/* --- NEW: Kinetic Background Styles --- */
#kinetic-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0; /* Start hidden */
    transition: opacity 1.5s ease-in-out;
    pointer-events: none; /* Ensure it never captures input */
}

#kinetic-background.is-active {
    opacity: 0.3;
}

/* 
  DIAGNOSTIC RESET: All previous shard CSS has been deleted.
  This new code is simple and designed ONLY to make the shards visible.
*/
.shard-element {
    position: absolute;
    opacity: 0.15 !important; /* Forcing a static, faint visibility */
    /* All animations are removed for now to ensure visibility first. */
}

.shard-element svg {
    width: 100%;
    height: 100%;
}

.shard-element .gold-fill {
    fill: var(--gold);
}


#fade-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 75%);
    z-index: 1; /* Ensure it's above content but below kinetic background */
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

#fade-overlay.is-exiting {
    opacity: 0;
}

#auth-container {
    position: relative;
    z-index: 1; /* Ensures content is above the background but below the fade overlay */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5vw;
    transform: translateY(-5vh);
    transition: opacity 1.2s ease-in-out;
}

#auth-container.is-exiting {
    opacity: 0;
}

/* This animation rule needs to be restored for the shake effect */
#auth-container.is-denied {
    animation: power-shake 0.5s ease-in-out;
}

@keyframes power-shake {
    0%, 100% { transform: translate3d(0, -5vh, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate3d(-3px, -5vh, 0); }
    20%, 40%, 60%, 80% { transform: translate3d(3px, -5vh, 0); }
}

/* NEW: A unique animation just for the logo's fade-in. */
@keyframes entry-fade-logo {
    to { opacity: 1; }
}

/* NEW: A unique animation for the text and input to fade and slide up. */
@keyframes entry-fade-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#logo-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 4vh;
    opacity: 0; /* Initial state for animation */
    /*
      THE FIX: Applying two distinct, named animations.
      1. The entry animation runs once.
      2. The idle pulse starts after the entry is complete.
    */
    animation:
        entry-fade-logo 1.5s 0.5s forwards,
        smooth-pulse 6s infinite ease-in-out 2.5s;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 70%);
}

#logo-wrapper.success-pulse {
    animation: radiant-success-pulse 1.5s ease-in-out;
}

/* This new, more radiant keyframe animation replaces the old one */
@keyframes radiant-success-pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}


#logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
    z-index: -1;
    /* This animation is now only used for the success sequence, not on idle */
    /* animation: smooth-pulse 6s infinite ease-in-out 2s; */
}

/* The idle pulse keyframes remain */
@keyframes smooth-pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}


#logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
}

/* We are removing the old, boxy sweep animation entirely */
#logo-wrapper::after {
    display: none;
}

#main-headline {
    font-size: clamp(2rem, 7vw, 3.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 6vh;
    text-shadow: none;
    /* Initial state */
    opacity: 0;
    transform: translateY(20px);
    /* Applying the new, unique animation */
    animation: entry-fade-slide-up 1s 1s forwards;
}

#input-wrapper {
    width: 100%;
    max-width: 350px;
    position: relative;
    padding: 10px 0;
    text-align: center;
    /* Initial state */
    opacity: 0;
    transform: translateY(20px);
    /* Applying the new, unique animation */
    animation: entry-fade-slide-up 1s 1.5s forwards;
}

/* Static gray underline */
#input-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--grey);
}

/* Underline animation now includes a retract transition */
#input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    /* Longer, more graceful transitions */
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.3s ease;
}

#input-wrapper.focused::after {
    transform: scaleX(1);
}

#input-wrapper.error::after {
    background-color: var(--red);
    transform: scaleX(1);
}

/* Success state now flashes green, then prepares to retract */
#input-wrapper.success::after {
    background-color: var(--green);
    transform: scaleX(1);
}

/* Inline submit icon (right side) */
#submit-icon.submit-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold);
    border-radius: 999px;
    padding: 6px;
    display: none;
    cursor: pointer;
}

#input-wrapper.has-input #submit-icon.submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#submit-icon.submit-icon:hover {
    border-color: rgba(212, 175, 55, 0.8);
}

#input-label {
    position: absolute;
    top: 50%;
    left: 0; /* Stretch the label across the full width */
    right: 0; /* of the input wrapper */
    transform: translateY(-50%);
    color: var(--grey);
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Hide label when there is input */
#input-wrapper.has-input #input-label {
    opacity: 0;
}

#current-input {
    color: var(--white);
    font-size: 1.2rem;
    letter-spacing: 0.1em; /* Space out the code */
    text-transform: uppercase;
}

/* Pulsing line cursor */
#current-input::after {
    content: '';
    width: 2px;
    height: 1.2em;
    background-color: var(--gold);
    display: inline-block;
    vertical-align: text-bottom;
    margin-left: 5px;
    box-shadow: 0 0 8px var(--gold);
    animation: pulse 1.2s infinite;
    opacity: 0; /* Hidden by default */
}

#input-wrapper.focused #current-input::after {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}

/* For incorrect access code animation */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* 
  This is the definitive fix for the mobile input UI glitch.
  It makes the input completely invisible and non-renderable,
  while still allowing it to be focused and capture keyboard events.
*/
#hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px; /* Ensure it takes up no physical space */
    border: none;
    outline: none;
    resize: none;

    /* Make it visually non-existent */
    opacity: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    
    /* The key: this property clips the element out of existence */
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

/* --- REBUILT KINETIC BACKGROUND (DIAGNOSTIC - STATIC) --- */

/* The container itself is now a simple placeholder. */
#kinetic-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#kinetic-background.is-active {
    opacity: 0.3;
}

/* 
  THE DEFINITIVE FIX:
  We create a field of stars using a single, tiny radial gradient,
  repeated across the screen. This is the most performant and stable
  way to create a starfield effect.
*/
#kinetic-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    /* Enhanced luxe vignette with a clearer central presence */
    background:
        radial-gradient(ellipse at 50% 45%,
            rgba(212, 175, 55, 0.08) 0%,
            rgba(212, 175, 55, 0.04) 22%,
            rgba(212, 175, 55, 0.015) 42%,
            rgba(0, 0, 0, 0) 62%
        ),
        radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 58%,
            rgba(0, 0, 0, 0.7) 100%
        );
}

/* Ultra-subtle animated glow drift for depth (no patterns, no distraction) */
#kinetic-background::before {
    content: '';
    position: absolute;
    top: -20%; left: -20%;
    width: 140%;
    height: 140%;
    background:
        radial-gradient(ellipse at 35% 40%, rgba(212, 175, 55, 0.04), rgba(212, 175, 55, 0) 55%),
        radial-gradient(ellipse at 70% 65%, rgba(212, 175, 55, 0.03), rgba(212, 175, 55, 0) 60%);
    filter: blur(40px);
    opacity: 0.12;
    animation: slow-drift 90s ease-in-out infinite alternate;
}

@keyframes slow-drift {
    from { transform: translate3d(-1.5%, -1.5%, 0) rotate(-1deg); }
    to { transform: translate3d(1.5%, 1.5%, 0) rotate(1deg); }
}

/* This animation will be re-enabled once visibility is confirmed. */
@keyframes pan {
    from { transform: translateX(0); }
    to { transform: translateX(-1000px); }
}



/* --- Inner Sanctum Narrative Styles --- */
/* Re-style the main container for a scrollable view */
.inner-sanctum {
    justify-content: flex-start !important;
    align-items: center !important; /* Center content horizontally */
    text-align: center !important;
    overflow-y: auto !important;
    padding: 0 !important; /* No padding on the container itself */
    transform: none !important;
    scroll-snap-type: y mandatory; /* Ensures a clean "snap" to each slide */
}

/* Standalone page wrapper (vision/blueprint pages) */
.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12vh 6vw;
}

/* Blueprint premium layout */
.bp-wrap { padding: 10vh 6vw 12vh; text-align: center; }

.bp-hero { margin: 0 auto 40px; max-width: 1100px; }
.bp-hero .kicker { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,245,245,0.55); margin-bottom: 8px; }
.bp-hero .lead { color: rgba(245,245,245,0.75); margin-top: 10px; }

.title-gradient {
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }

.bp-card { text-align: left; padding: 24px; border-radius: 16px; border: 1px solid rgba(212,175,55,0.28); background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)); box-shadow: 0 16px 44px rgba(0,0,0,0.36); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.bp-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.55); box-shadow: 0 22px 64px rgba(212,175,55,0.14); }
.bp-card h3 { margin: 0 0 10px; letter-spacing: -0.01em; font-size: 1.15rem; }
.bp-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bp-card-head svg { width: 22px; height: 22px; fill: var(--gold); opacity: 0.9; filter: drop-shadow(0 0 6px rgba(212,175,55,0.35)); }

.bp-list { margin: 12px 0 0; padding: 0; list-style: none; }
.bp-list li { position: relative; padding-left: 18px; margin: 10px 0; line-height: 1.8; color: rgba(245,245,245,0.9); }
.bp-list li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,0.5); transform: translateY(-50%); }

.bp-cta { margin-top: 26px; }

/* Subtle premium link CTA */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(212, 175, 55, 0.9);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.link-arrow:hover {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-1px);
}

.link-arrow span {
    transition: transform 0.2s ease;
}

.link-arrow:hover span {
    transform: translateX(3px);
}

/* Mobile refinements: tighten space between header and deck */
@media (max-width: 480px) {
    .lux-header { padding: 12px 16px; }
    .lux-brand img { height: 26px; }
    .lux-brand .title { font-size: 1.15rem; }
    .deck-page { padding-top: 56px; }
    .deck-page .slide-headline { margin-top: 2px; margin-bottom: 12px; }
}

/* Allow page-level scrolling on standalone pages that need it */
body.allow-scroll {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Overlay for in-page artifacts (keeps audio playing) */
#artifact-overlay { position: fixed; inset: 0; z-index: 1000; display: none; }
#artifact-overlay.is-open { display: block; }
#artifact-overlay .overlay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); }
#artifact-overlay .overlay-panel { position: absolute; top: 4vh; bottom: 4vh; left: 4vw; right: 4vw; border: 1px solid rgba(212,175,55,0.28); border-radius: 14px; background: rgba(0,0,0,0.85); box-shadow: 0 20px 60px rgba(0,0,0,0.5); display: flex; flex-direction: column; }
#artifact-overlay .overlay-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: none; background: transparent; }
#artifact-overlay #overlay-close { background: none; border: none; color: rgba(245,245,245,0.85); font-size: 0.95rem; cursor: pointer; }
#artifact-overlay .overlay-title { display: none; }
#artifact-overlay #overlay-frame { flex: 1; border: 0; width: 100%; border-radius: 0 0 14px 14px; transition: opacity .2s ease; }
#artifact-overlay.is-loading #overlay-frame { opacity: 0; }
#artifact-overlay.is-loading .overlay-panel::after { content: ''; position: absolute; top: 10px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(212,175,55,0.35); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  #artifact-overlay .overlay-panel { top: 0; bottom: 0; left: 0; right: 0; border-radius: 0; }
  #artifact-overlay #overlay-frame { border-radius: 0; }
}

/* Minimal luxe header for deck page */
.lux-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px; /* bigger header */
    min-height: 64px; /* stabilize header height to avoid layout shift */
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(6px);
}

.lux-back { color: rgba(245,245,245,0.75); text-decoration: none; }
.lux-brand { display: flex; align-items: center; gap: 10px; }
.lux-brand img { height: 32px; width: auto; filter: drop-shadow(0 0 8px rgba(212,175,55,0.35)); }
.lux-brand .kicker { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,245,245,0.6); }
.lux-brand .title { font-weight: 700; letter-spacing: -0.015em; font-size: 1.3rem; }

/* Deck page: start content below header with gentle top padding */
.deck-page {
    justify-content: flex-start;
    padding: 76px 6vw 10vh; /* match sticky header height */
}

/* Tighten headline spacing below header on deck page */
.deck-page .slide-headline {
    margin-top: 6px;
    margin-bottom: 18px;
}

.pdf-frame {
    width: min(92vw, 1100px);
    height: 70vh;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.25);
}

.pdf-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.pointer-list {
    margin-top: 18px;
    max-width: 900px;
    text-align: left;
}

.pointer-list ul {
    margin-top: 10px;
    line-height: 1.8;
    color: rgba(245, 245, 245, 0.85);
}

/* Embedded mode: hide page header and tighten spacing inside overlay */
body.is-embed .lux-header { display: none; }
body.is-embed .deck-page { padding-top: 0; }
body.is-embed .bp-wrap { padding-top: 2vh; }

/* Center-only header layout when back button is removed */
body.center-title .lux-header { justify-content: center; }
body.center-title .lux-header .lux-back, 
body.center-title .lux-header .lux-right { display: none; }
body.center-title .lux-header .lux-brand { margin: 0 auto; }

/* Subtle fixed brand mark (top-left) */
#brand-mark {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 2;
    opacity: 0.06;
    pointer-events: none;
}

#brand-mark img {
    height: 26px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}

/* Each "slide" in the presentation */
.slide {
    width: 100%;
    min-height: 100vh; /* Each slide takes up the full screen height */
    padding: 10vh 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
}

/* Small footer tag for early slides */
.confidential-tag {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.6);
    opacity: 0.3;
}

/* Slightly stronger brand lockup on the final slide */
.brand-lockup {
    position: absolute;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.brand-lockup img {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

/* Inline variant to sit perfectly above headline */
.brand-inline {
    position: static !important;
    transform: none !important;
    margin-bottom: 14px;
    opacity: 0.6;
}

/* Elite contact line on final slide */
.elite-contact {
    position: absolute;
    bottom: 2.4vh;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(245, 245, 245, 0.65);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.elite-contact a {
    color: rgba(212, 175, 55, 0.9);
    text-decoration: none;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.35);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    position: relative;
    padding-right: 14px; /* room for arrow affordance */
}

.elite-contact a:hover {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.6);
}

/* Subtle arrow affordance to suggest clickability */
.elite-contact a::after {
    content: '↗';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85em;
    color: var(--gold);
    opacity: 0.35;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.elite-contact a:hover::after,
.elite-contact a:focus-visible::after {
    opacity: 0.85;
    transform: translate(2px, -50%);
}

/* The powerful imagery for each slide */
.slide-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: -1;
    opacity: 0.3; /* Subtle imagery that doesn't overwhelm the text */
    transform: scale(1.1);
    transition: transform 1s ease-out, opacity 1s ease-out;
}

/* The animation when a slide becomes visible */
.slide.is-visible .slide-background {
    transform: scale(1);
    opacity: 0.3;
}

/* --- Sophisticated Text Reveal Animation --- */
.slide-headline, .slide-paragraph {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.slide-headline {
    font-size: clamp(2.5rem, 9vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 4vh;
    transition-delay: 0.2s; /* Headline appears slightly after the background */
}

.slide-paragraph {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(245, 245, 245, 0.8);
    max-width: 650px;
    transition-delay: 0.4s;
}

.slide.is-visible .slide-headline,
.slide.is-visible .slide-paragraph {
    opacity: 1;
    transform: translateY(0);
}

/* Premium icon grid for artifact selection */
.icon-grid {
    display: flex;
    gap: 22px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.icon-card {
    width: 160px;
    height: 160px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    letter-spacing: 0.06em;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.icon-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow: 0 10px 34px rgba(212, 175, 55, 0.18);
    background: rgba(212, 175, 55, 0.06);
}

.icon-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    fill: var(--gold);
    opacity: 0.9;
}

.icon-card span {
    font-size: 0.95rem;
}

/* Minimal CTA link styling for the Vision slide */
.cta-link {
    display: inline-block;
    margin-top: 16px;
    color: rgba(212, 175, 55, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cta-link:hover {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.85);
    transform: translateY(-1px);
}

/* --- RE-ENGINEERED: The "Sovereign Chevron" Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease 1.5s;
    z-index: 2;
    height: 60px; /* A compact container for the new animation */
}

.slide.is-visible .scroll-indicator {
    opacity: 1;
}

/* The new, more visible and intuitive chevron */
.scroll-indicator svg {
    width: 32px; /* Increased size for better visibility */
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
    /* The new, clear "descend" animation */
    animation: descend 2.5s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

.scroll-indicator .gold-fill {
    fill: var(--gold);
}

/* 
  A new keyframe animation that is unambiguously directional.
  It clearly communicates "scroll down."
*/
@keyframes descend {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
    100% {
        opacity: 0;
        transform: translateY(35px);
    }
} 

/* On small screens, nudge the chevron higher for visibility above the bottom UI chrome */
@media (max-width: 480px) {
  .scroll-indicator { bottom: 10vh; }
}