/* ==========================================================================
   AS DESIGN LABS — BESPOKE DIGITAL PRODUCT & SOFTWARE STUDIO THEME
   Editorial Architecture · Built on Blink One-Page Parallax Effect Engine
   Domain: https://asdesignlabs.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap&subset=latin-ext');

:root {
    --agency-bg: #0b0b0c;
    --agency-bg-elevated: #121215;
    --agency-bg-panel: #16181d;
    --agency-ivory: #f4f3ef;
    --agency-stone: #9c9a92;
    --agency-muted: #66655f;
    --agency-gold: #c9a96e;
    --agency-gold-soft: rgba(201, 169, 110, 0.14);
    --agency-terracotta: #d96b43;
    --agency-line: rgba(244, 243, 239, 0.09);
    --agency-line-strong: rgba(244, 243, 239, 0.22);
}

body.as-agency-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--agency-bg);
    color: var(--agency-ivory);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--agency-gold);
    color: #0b0b0c;
}

body.as-agency-body h1,
body.as-agency-body h2,
body.as-agency-body h3,
body.as-agency-body h4,
body.as-agency-body h5,
body.as-agency-body h6 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--agency-ivory);
    letter-spacing: -0.025em;
    font-weight: 700;
}

.serif-italic {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--agency-gold);
    letter-spacing: 0;
}

body.as-agency-body p {
    color: var(--agency-stone);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
}

/* Preloader */
#preloader { display: none !important; }
.loader {
    border-top-color: var(--agency-gold) !important;
    border-right-color: transparent !important;
}

/* Header & Navigation */
.header-area {
    background: rgba(11, 11, 12, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--agency-line);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark.classy-nav-container,
.classy-nav-container {
    background-color: transparent !important;
}

.is-sticky .header-area {
    background: rgba(11, 11, 12, 0.96) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65) !important;
    border-bottom-color: rgba(201, 169, 110, 0.22);
}

.classy-navbar .nav-brand.as-brand-logo,
.as-brand-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 14px;
    max-width: none !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    margin-right: 24px;
}

/* Animated Headline Word Switcher */
.cd-words-wrapper {
    display: inline;
    position: relative;
}

.cd-words-wrapper b {
    display: none;
    font-weight: 400;
}

.cd-words-wrapper b.is-visible {
    display: inline;
    animation: asWordFadeIn 0.45s ease forwards;
}

@keyframes asWordFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.as-brand-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-brand-logo:hover img {
    transform: scale(1.04);
}

.as-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.as-brand-text .brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--agency-ivory);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.as-brand-text .brand-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    color: var(--agency-gold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 3px;
}

.dark.classy-nav-container .classynav ul li a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 13.5px;
    color: rgba(244, 243, 239, 0.78);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.dark.classy-nav-container .classynav ul li a:hover,
.dark.classy-nav-container .classynav ul li.active a {
    color: var(--agency-gold);
}

/* Language Switcher in Navbar */
.as-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--agency-bg-elevated);
    border: 1px solid var(--agency-line-strong);
    border-radius: 999px;
    padding: 3px;
    margin-left: 18px;
}

.as-lang-btn {
    background: transparent;
    border: none;
    color: var(--agency-stone);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.as-lang-btn.active {
    background: var(--agency-ivory);
    color: #0b0b0c;
}

.as-lang-btn:hover:not(.active) {
    color: var(--agency-ivory);
}

/* Editorial Hero Area */
.as-hero-area {
    position: relative;
    min-height: 620px; max-height: 820px;
    padding-top: 145px;
    padding-bottom: 85px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 75% 20%, rgba(201, 169, 110, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(217, 107, 67, 0.05) 0%, transparent 50%),
        var(--agency-bg);
    border-bottom: 1px solid var(--agency-line);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.as-hero-content {
    position: relative;
    z-index: 4;
}

.as-studio-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--agency-gold);
    margin-bottom: 26px;
}

.as-studio-kicker::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--agency-gold);
    display: inline-block;
}

.as-hero-display {
    font-size: clamp(2.4rem, 4.9vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: var(--agency-ivory);
}

.as-hero-display .cd-words-wrapper {
    padding-bottom: 4px;
}

.as-hero-display .cd-words-wrapper b {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--agency-gold);
    letter-spacing: 0.01em;
}

.as-hero-sub {
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--agency-stone);
    max-width: 610px;
    margin-bottom: 40px;
}

/* Agency Buttons */
.as-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 999px;
    background: var(--agency-ivory);
    color: #0b0b0c !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--agency-ivory);
}

.as-btn-gold:hover {
    background: var(--agency-gold);
    border-color: var(--agency-gold);
    color: #0b0b0c !important;
    transform: translateY(-3px);
}

.as-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    background: transparent;
    color: var(--agency-ivory) !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 1px solid var(--agency-line-strong);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-btn-ghost:hover {
    border-color: var(--agency-gold);
    color: var(--agency-gold) !important;
    transform: translateY(-3px);
}

.as-btn-sm {
    padding: 12px 22px;
    font-size: 11.5px;
}

/* Hero Right Editorial Composition */
.as-editorial-collage {
    position: relative;
    padding-left: 16px;
}

.as-collage-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--agency-bg-panel);
    border: 1px solid var(--agency-line-strong);
    padding: 34px;
}

.as-collage-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--agency-line);
    border: 1px solid var(--agency-line);
    margin-top: 26px;
}

.as-collage-stat {
    background: var(--agency-bg-elevated);
    padding: 20px 18px;
}

.as-collage-stat .stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--agency-ivory);
    line-height: 1;
    margin-bottom: 6px;
}

.as-collage-stat .stat-lbl {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--agency-stone);
}

/* Marquee Ticker Band */
.as-marquee-band {
    background: var(--agency-bg-elevated);
    border-bottom: 1px solid var(--agency-line);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
}

.as-marquee-track {
    display: inline-block;
    animation: agencyMarquee 32s linear infinite;
}

.as-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    margin-right: 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--agency-stone);
}

.as-marquee-item .dot {
    color: var(--agency-gold);
    font-size: 18px;
}

@keyframes agencyMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Agency Sections */
.as-section {
    padding: 110px 0;
    position: relative;
    border-bottom: 1px solid var(--agency-line);
}

.as-section-elevated {
    background-color: var(--agency-bg-elevated);
}

.as-section-header {
    margin-bottom: 64px;
}

.as-section-index {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    color: var(--agency-gold);
    display: block;
    margin-bottom: 8px;
}

.as-section-title {
    font-size: clamp(1.95rem, 3.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
}

/* Editorial 3-Pillar Grid */
.as-architectural-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--agency-line);
    border: 1px solid var(--agency-line);
}

.as-arch-cell {
    background: var(--agency-bg);
    padding: 44px 36px;
    transition: background 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.as-arch-cell:hover {
    background: var(--agency-bg-panel);
}

.as-arch-cell .cell-num {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 26px;
    color: var(--agency-gold);
    margin-bottom: 22px;
}

.as-arch-cell h4 {
    font-size: 20px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.as-arch-cell p {
    font-size: 15px;
    margin-bottom: 0;
}

/* Selected Works — Balanced Case Study Layout */
.as-case-study {
    padding: 72px 0;
    border-top: 1px solid var(--agency-line);
}

.as-case-study:first-of-type {
    border-top: none;
    padding-top: 0;
}

.as-case-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding-bottom: 26px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--agency-line);
}

.as-case-meta-block span.meta-label {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--agency-muted);
    margin-bottom: 4px;
}

.as-case-meta-block span.meta-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--agency-ivory);
}

.as-case-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 46px;
    line-height: 1;
    color: var(--agency-gold);
}

/* Proportional Visual Showcase Container (Identical for all 3 Apps) */
.as-case-visual {
    border-radius: 18px;
    overflow: hidden;
    background: var(--agency-bg-panel);
    border: 1px solid var(--agency-line-strong);
    padding: 20px;
    transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-case-visual:hover {
    border-color: var(--agency-gold);
    transform: translateY(-4px);
}

/* Wide Feature Banner (1024x500 Aspect Ratio) */
.as-feature-banner {
    display: block;
    width: 100%;
    aspect-ratio: 1024 / 500;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--agency-line);
    margin-bottom: 14px;
    background: #08101c;
}

.as-feature-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-feature-banner:hover img {
    transform: scale(1.025);
}

/* 2-Column Vertical App Screens (1080x1920 = 9:16 Aspect Ratio) */
.as-shot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.as-shot-item {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--agency-line);
    background: #060d17;
}

.as-shot-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-shot-item:hover img {
    transform: scale(1.03);
}

.as-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 32px;
}

.as-tag {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--agency-line-strong);
    font-size: 12px;
    color: var(--agency-ivory);
    letter-spacing: 0.02em;
}

/* Isotope Portfolio Filter & Proportional Cards */
.as-portfolio-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}

.as-portfolio-menu .btn {
    padding: 10px 24px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--agency-line-strong);
    color: var(--agency-stone);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.as-portfolio-menu .btn:hover,
.as-portfolio-menu .btn.active {
    background: var(--agency-ivory);
    color: #0b0b0c;
    border-color: var(--agency-ivory);
}

.as-work-card {
    background: var(--agency-bg-elevated);
    border: 1px solid var(--agency-line);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: border-color 0.35s ease, transform 0.35s ease;
}

.as-work-card:hover {
    border-color: var(--agency-gold);
    transform: translateY(-6px);
}

/* Wide Feature Card Thumbnail (1024x500 exact aspect ratio) */
.as-work-thumb-wide {
    display: block;
    width: 100%;
    aspect-ratio: 1024 / 500;
    background: #08101c;
    overflow: hidden;
    border-bottom: 1px solid var(--agency-line);
}

.as-work-thumb-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Vertical Screen Card Thumbnail (9:16 exact aspect ratio) */
.as-work-thumb-screen {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #060d17;
    overflow: hidden;
    border-bottom: 1px solid var(--agency-line);
}

.as-work-thumb-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-work-card:hover .as-work-thumb-wide img,
.as-work-card:hover .as-work-thumb-screen img {
    transform: scale(1.035);
}

.as-work-body {
    padding: 22px 24px;
}

.as-work-body .work-cat {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--agency-gold);
    display: block;
    margin-bottom: 6px;
}

.as-work-body h5 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* Counter Strip (Jarallax) */
.as-counter-strip {
    padding: 85px 0;
    background: #0e0e11;
    border-bottom: 1px solid var(--agency-line);
}

.as-counter-item {
    border-left: 1px solid var(--agency-line-strong);
    padding-left: 28px;
}

.as-counter-item .count-num {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    font-weight: 800;
    color: var(--agency-ivory);
    line-height: 1;
    margin-bottom: 10px;
}

.as-counter-item .count-num span.accent {
    color: var(--agency-gold);
}

/* Contact Form */
.as-input {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--agency-line-strong);
    color: var(--agency-ivory);
    font-size: 15.5px;
    margin-bottom: 26px;
    border-radius: 0;
    transition: border-color 0.25s ease;
}

.as-input:focus {
    outline: none;
    border-bottom-color: var(--agency-gold);
}

.as-input option {
    background: #121215;
    color: var(--agency-ivory);
}

/* Footer */
.as-footer {
    background: #070708;
    padding: 75px 0 40px;
}

.as-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.as-footer-list li {
    margin-bottom: 12px;
}

.as-footer-list li a {
    color: var(--agency-stone);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.as-footer-list li a:hover {
    color: var(--agency-gold);
}

/* Agency Route Toast Notification */
.as-route-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #17171b;
    border: 1px solid var(--agency-gold);
    color: var(--agency-ivory);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
    transform: translateY(130%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-route-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 991px) {
    .as-architectural-grid {
        grid-template-columns: 1fr;
    }
    .as-editorial-collage {
        padding-left: 0;
        margin-top: 40px;
    }
    .as-lang-switcher {
        margin-left: 0;
        margin-top: 14px;
    }
}

/* Failsafe auto-hide preloader after 1.2s so page never hangs */
@keyframes asPreloaderFadeOut {
    0%, 70% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; z-index: -1; }
}
#preloader { display: none !important; }

/* ==========================================================================
   AGENCY TYPOGRAPHY, NAVBAR SINGLE-ROW & VISIBILITY REFINEMENTS
   ========================================================================== */
body.as-agency-body h1,
body.as-agency-body h2,
body.as-agency-body h3,
body.as-agency-body h4,
body.as-agency-body h5,
body.as-agency-body h6,
.as-hero-metric-card .stat-val,
.as-showcase-num,
.as-cap-num {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-variant-numeric: lining-nums tabular-nums !important;
    font-feature-settings: "lnum" 1, "tnum" 1 !important;
}

.header-area .container {
    max-width: 1340px !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
}

@media only screen and (min-width: 992px) {
    .classy-navbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        height: 82px !important;
    }
    .classy-menu,
    .classynav {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    .classynav ul {
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }
    .classynav ul li {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }
    .dark.classy-nav-container .classynav ul li a {
        font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        letter-spacing: 0.055em !important;
        padding: 0 11px !important;
        white-space: nowrap !important;
    }
}

.as-brand-logo img {
    height: 38px !important;
    width: auto !important;
    filter: drop-shadow(0 2px 10px rgba(201, 169, 110, 0.18));
}

.as-brand-text .brand-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.07em !important;
}

.as-brand-text .brand-sub {
    font-family: 'Outfit', sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.20em !important;
}

/* Ensure all sections and animated blocks render immediately at full contrast */
.wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
}

/* ==========================================================================
   INTERACTIVE 3D AQUARIUM DIGITAL TWIN PANEL (BLACK-BOX EDITION)
   ========================================================================== */
.as-3d-panel-shell {
    background: #090c12;
    border: 1px solid rgba(201, 169, 110, 0.28);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72);
}

.as-3d-toolbar {
    background: #0d1119;
    border-bottom: 1px solid rgba(244, 243, 239, 0.08);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.as-3d-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.as-3d-focus-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: #07090e;
    border: 1px solid rgba(244, 243, 239, 0.07);
    border-radius: 12px;
    padding: 8px 10px;
}

.as-3d-btn,
.as-3d-focus-btn,
.as-3d-pipe-btn {
    background: #141923;
    border: 1px solid rgba(244, 243, 239, 0.12);
    color: #d6d5ce;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.as-3d-btn:hover,
.as-3d-focus-btn:hover,
.as-3d-pipe-btn:hover {
    border-color: var(--agency-gold);
    color: #ffffff;
}

.as-3d-btn.active,
.as-3d-focus-btn.active,
.as-3d-pipe-btn.active {
    background: var(--agency-gold);
    border-color: var(--agency-gold);
    color: #0b0b0c;
    font-weight: 700;
}

.as-3d-viewport-wrap {
    position: relative;
    width: 100%;
    height: 640px;
    background: #070a0f;
    overflow: hidden;
    user-select: none;
}

#as-threejs-container {
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

#as-threejs-container:active {
    cursor: grabbing;
}

.as-3d-inspector-card {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
    width: 360px;
    max-width: calc(100% - 32px);
    background: rgba(13, 17, 25, 0.92);
    border: 1px solid rgba(201, 169, 110, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.as-3d-zoom-dock {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 17, 25, 0.92);
    border: 1px solid rgba(244, 243, 239, 0.14);
    border-radius: 12px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.as-3d-zoom-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: #171d29;
    border: 1px solid rgba(244, 243, 239, 0.12);
    color: #f4f3ef;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.as-3d-zoom-btn:hover {
    background: var(--agency-gold);
    color: #0b0b0c;
    border-color: var(--agency-gold);
}

.as-3d-status-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 17, 25, 0.90);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
    pointer-events: none;
}

.as-3d-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

@media (max-width: 767px) {
    .as-3d-viewport-wrap {
        height: 500px;
    }
    .as-3d-inspector-card {
        width: 290px;
        padding: 10px 12px;
    }
}