/* ------------------------------------------------------------------
   aes-custom.css
   Intentional deviations from the verbatim theme port. Loaded AFTER
   the theme stylesheets so these rules win. Keep the copied theme
   files pristine; put deliberate changes here.
------------------------------------------------------------------- */

/* Waitlist hero "COMING SOON" chip -------------------------------------
   Was a soft rounded pill with a smoothly breathing dot. Restyled to
   match the site's CRT/terminal aesthetic: crisp square edge, mono
   type, a status-bar accent, and a hard-blinking glowing LED. */
.teaser-hero__badge {
    gap: 10px;
    border-radius: 0;
    padding: 7px 15px 7px 12px;
    font-family: var(--aes-font-body);
    font-size: 12px;
    letter-spacing: 3px;
    background: linear-gradient(90deg, rgba(0, 212, 170, 0.14), rgba(0, 212, 170, 0.03));
    border: 1px solid rgba(0, 212, 170, 0.4);
    border-left: 3px solid var(--aes-primary);
    box-shadow: inset 0 0 14px rgba(0, 212, 170, 0.08);
}

.teaser-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aes-primary);
    animation: badgeLed 1.3s steps(1, end) infinite;
}

/* Hard on/off blink like a recording LED, not a smooth fade. */
@keyframes badgeLed {
    0%, 62% {
        opacity: 1;
        box-shadow: 0 0 8px 2px var(--aes-primary), 0 0 2px #eafff9 inset;
    }
    63%, 100% {
        opacity: 0.28;
        box-shadow: 0 0 2px 0 rgba(0, 212, 170, 0.35);
    }
}

/* Waitlist return-home button ----------------------------------------
   The teaser page has no header, so give it an obvious docked "back to
   home" control in the top-left of the viewport. Terminal chip styling
   to match the site. */
.aes-return-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px 11px 13px;
    font-family: var(--aes-font-body);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--aes-primary);
    background: rgba(10, 10, 20, 0.72);
    border: 1px solid rgba(0, 212, 170, 0.45);
    border-left: 3px solid var(--aes-primary);
    box-shadow: inset 0 0 14px rgba(0, 212, 170, 0.08);
    backdrop-filter: blur(4px);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.aes-return-home:hover {
    background: rgba(0, 212, 170, 0.14);
    box-shadow: inset 0 0 14px rgba(0, 212, 170, 0.14), 0 0 14px rgba(0, 212, 170, 0.25);
    transform: translateX(-2px);
}

.aes-return-home svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

@media (max-width: 600px) {
    .aes-return-home {
        top: 12px;
        left: 12px;
        padding: 9px 13px 9px 11px;
        font-size: 12px;
    }
}

/* Homepage hero player -----------------------------------------------
   Replaces the static "00:00" readout with a transport bar: a glowing
   progress track with elapsed/total timecode and rewind / play /
   fast-forward controls. Purely visual (not wired). */
.hero-visual__transport {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.hero-visual__progress {
    position: relative;
    height: 6px;
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.25);
}

.hero-visual__progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 38%;
    background: var(--aes-primary);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
}

.hero-visual__progress-fill::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    width: 11px;
    height: 11px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #eafff9;
    box-shadow: 0 0 9px 2px var(--aes-primary);
}

.hero-visual__timecode {
    display: flex;
    justify-content: space-between;
    font-family: var(--aes-font-body);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--aes-primary);
    text-shadow: 0 0 6px rgba(0, 212, 170, 0.4);
}

.hero-visual__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 2px;
}

.hero-visual__ctrl {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(0, 212, 170, 0.35);
    color: var(--aes-primary);
    cursor: default;
}

.hero-visual__ctrl svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hero-visual__ctrl--play {
    width: 48px;
    height: 48px;
    background: var(--aes-primary);
    border-color: var(--aes-primary);
    color: #0a0a14;
    box-shadow: 0 0 16px rgba(0, 212, 170, 0.45);
}

.hero-visual__ctrl--play svg {
    width: 20px;
    height: 20px;
}

/* How It Works: more breathing room above the "free consultation" note. */
.aes-section--how-it-works-help-cta p.aes-mt-6 {
    padding-top: 40px;
}

/* Contact page: the Documentation + FAQ resource links are placeholders,
   so they use the flat dot cursor instead of a pointer. */
.contact-resources a,
.contact-resources a * {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%3E%3Ccircle%20cx='9'%20cy='9'%20r='5'%20fill='%2300d4aa'/%3E%3C/svg%3E") 9 9, default !important;
}

/* About founder photo: drop the theme frame (border + glow + rounding);
   the portrait carries its own blue glow. */
.founder-section__photo {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Responsive: contain decorative glow/shape layers that bleed past the
   viewport (hero glow, cta glow, scroll shapes) so the page never scrolls
   sideways on phones/tablets. `clip` keeps the sticky header working. */
html,
body {
    overflow-x: clip;
}

/* Homepage hero: show the full hero (the player visual) on mobile + tablet
   instead of hiding it. In the single-column layout it stacks below the copy,
   so the hero reads full, not shaved. */
@media (max-width: 1023px) {
    .hero-section__visual {
        display: flex;
        margin-top: var(--aes-spacing-lg);
    }

    /* Hero H1: scale up responsively instead of shrinking to a small fixed
       size on phones/tablets. */
    .hero-section__title {
        font-size: clamp(3.75rem, 15vw, 5rem);
        line-height: 0.95;
    }

    /* Mobile submenu expand: force the accordion open when a parent item is
       toggled (loads last, so it wins the cascade). */
    .primary-menu .menu-item-has-children.is-open > .sub-menu {
        max-height: 600px;
        padding: var(--aes-spacing-xs) 0;
        overflow: hidden;
    }

    /* Player spans the full content column (1/1), not the capped 400px. */
    .hero-section__visual,
    .hero-visual {
        width: 100%;
    }

    .hero-visual__player {
        width: 100%;
        max-width: none;
    }

    /* Mobile menu: dock flush to the top (full-screen, no header-gap sliver)
       and sit above the header so it reads as a solid panel. */
    .primary-menu-container {
        top: 0;
        padding-top: 76px;
        z-index: 1200;
    }

    .aes-menu-close {
        position: absolute;
        top: 16px;
        right: 16px;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 1px solid rgba(0, 212, 170, 0.4);
        color: var(--aes-primary);
        cursor: pointer;
        z-index: 2;
    }

    .aes-menu-close svg {
        display: block;
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: square;
    }
}

/* Close button is injected into the DOM on all pages; hide it on desktop
   (the mobile off-canvas rule above shows it below 1024px). */
@media (min-width: 1024px) {
    .aes-menu-close {
        display: none;
    }
}
