/* ============================================================
   XENIAL STUDIO — 2026 Redesign · interior-page dark skin
   Loaded AFTER output.css and each page's inline <style>, so its
   !important remaps win. Reskins the shared Tailwind vocabulary +
   header / footer / mobile-menu / forms / article prose to the dark
   cinematic theme without touching page content.
   ============================================================ */

:root {
    --orange: #fe6612;
    --orange-soft: #ff9a3d;
    --orange-deep: #c94c08;
    --ink: #0b0b0c;
    --ink-2: #121214;
    --ink-3: #19191c;
    --paper: #f6f3ef;
    --muted: #a3a3a3;
    --muted-2: #6b6b6b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --glow: rgba(254, 102, 18, 0.32);
}

/* ---------------- Base ---------------- */
html, body { background-color: var(--ink) !important; }
body {
    color: var(--paper) !important;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--orange); color: #fff; }

/* Ambient glows + grain (reuses no markup — pure pseudo-elements) */
.bg-blob { display: none !important; }

body::before {
    /* top-right orange glow */
    content: '';
    position: fixed;
    top: -25vw; right: -20vw;
    width: 60vw; height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(254,102,18,0.15) 0%, rgba(254,102,18,0.05) 45%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}
body::after {
    /* bottom-left warm glow */
    content: '';
    position: fixed;
    bottom: -22vw; left: -16vw;
    width: 52vw; height: 52vw;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,154,61,0.09) 0%, rgba(254,102,18,0.04) 45%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}
html::before {
    /* film grain */
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { html::before { display: none; } }

/* ---------------- Surface remaps ---------------- */
.bg-gray-50 { background-color: var(--ink) !important; }
.bg-white { background-color: var(--ink-2) !important; }
.bg-gray-900 { background-color: #070708 !important; }
.bg-orange-50 { background-color: rgba(254, 102, 18, 0.10) !important; }

/* Cards / surfaces that use bg-white get a hairline so they read on dark */
main .bg-white,
.svc-card, .post-card, .showcase-card,
form.bg-gray-50, form.bg-white {
    border: 1px solid var(--line);
}

/* Keep the white CTA button (inside orange bands) actually white */
.bg-xenial-orange .bg-white,
a.bg-white.text-xenial-orange {
    background-color: #fff !important;
    color: var(--orange) !important;
    border: none !important;
}
.bg-xenial-orange .bg-white:hover,
a.bg-white.text-xenial-orange:hover { background-color: #f1f1f1 !important; }

/* ---------------- Text remaps ---------------- */
.text-xenial-black { color: var(--paper) !important; }
.text-gray-600, .text-gray-500 { color: var(--muted) !important; }
.text-gray-400, .text-gray-300 { color: var(--muted-2) !important; }
.text-gray-100 { color: rgba(255, 255, 255, 0.06) !important; }   /* big watermark numerals */
.text-xenial-orange { color: var(--orange) !important; }

/* ---------------- Border remaps ---------------- */
.border-gray-100, .border-gray-200 { border-color: var(--line) !important; }
.border-gray-700 { border-color: var(--line) !important; }
.border-xenial-black { border-color: var(--line-strong) !important; }

/* ---------------- Card hover: orange-tinted glow instead of black ---------------- */
.svc-card:hover, .post-card:hover, .showcase-card:hover,
.reveal-card:hover {
    box-shadow: 0 25px 55px -18px rgba(254, 102, 18, 0.25) !important;
    border-color: rgba(254, 102, 18, 0.4) !important;
}

/* ---------------- Header ---------------- */
#main-header {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid transparent !important;
    backdrop-filter: none !important;
}
#main-header.header-scrolled {
    background-color: rgba(11, 11, 12, 0.72) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--line) !important;
}
.nav-link { color: var(--muted) !important; }
.nav-link:hover, .nav-link.text-xenial-orange { color: var(--paper) !important; }
.nav-link.text-xenial-orange:hover { color: var(--orange) !important; }
.hamburger-line { background-color: var(--paper) !important; }

/* ---------------- Mobile menu ---------------- */
#mobile-menu-dropdown {
    background-color: rgba(11, 11, 12, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}
#mobile-menu-dropdown .mobile-menu-link.text-xenial-black { color: var(--paper) !important; }
#mobile-menu-dropdown .mobile-menu-link.text-xenial-orange { color: var(--orange) !important; }
#mobile-menu-dropdown a.bg-xenial-orange { color: #fff !important; }

/* ---------------- Buttons ---------------- */
/* Outline (ghost) button: light border, orange fill on hover */
.border-xenial-black.text-xenial-black {
    color: var(--paper) !important;
    border-color: var(--line-strong) !important;
}
.border-xenial-black.text-xenial-black:hover {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: #fff !important;
}

/* ---------------- Footer ---------------- */
footer.bg-gray-900 { background-color: #070708 !important; border-top: 1px solid var(--line); }
footer .text-gray-300, footer .text-gray-400 { color: var(--muted) !important; }
footer a:hover { color: var(--paper) !important; }

/* ---------------- Forms ---------------- */
input, textarea, select {
    background-color: var(--ink) !important;
    color: var(--paper) !important;
    border-color: var(--line) !important;
}
input::placeholder, textarea::placeholder { color: var(--muted-2) !important; }
input:focus, textarea:focus, select:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(254, 102, 18, 0.15) !important;
}

/* ---------------- Article / prose blocks ---------------- */
/* Service long-form (.svc-article), blog (.article-body), legal (.policy-content) */
.svc-article, .article-body, .policy-content { color: var(--muted) !important; }
.svc-article h1, .svc-article h2, .svc-article h3,
.article-body h1, .article-body h2, .article-body h3,
.policy-content h1, .policy-content h2, .policy-content h3, .policy-content h4 {
    color: var(--paper) !important;
}
.svc-article strong, .article-body strong, .policy-content strong { color: var(--paper) !important; }
.svc-article a, .article-body a, .policy-content a { color: var(--orange) !important; }
.policy-content h2, .article-body blockquote { border-color: var(--line) !important; }
.article-body blockquote { color: var(--paper) !important; }
.article-body li::marker, .policy-content li::marker { color: var(--orange) !important; }
.policy-content ul, .policy-content li, .article-body ul, .article-body ol { color: var(--muted) !important; }

/* ---------------- FAQ (service pages) ---------------- */
details.faq { border-bottom-color: var(--line) !important; }
details.faq summary { color: var(--paper) !important; }
details.faq p { color: var(--muted) !important; }

/* ---------------- Misc dot separators / breadcrumb ---------------- */
.text-gray-300.mx-2 { color: var(--muted-2) !important; }

/* Founder image gradient / decorative purple → keep subtle on dark */
.bg-purple-500\/5 { background-color: rgba(254, 102, 18, 0.04) !important; }

/* ============================================================
   UNIFIED CHROME — identical header / nav / mobile-menu / footer
   across every interior page, matching the homepage. Appended last
   so it wins over the generic remaps above.
   ============================================================ */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); }

/* ---- Header shell ---- */
#main-header {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 90 !important;
    padding: 1.4rem 0 !important;
}
#main-header.header-scrolled { padding: 0.7rem 0 !important; }
.shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-logo img { height: 34px !important; width: auto !important; }

/* ---- Desktop nav (collapses at 900px like the homepage) ---- */
.desktop-nav { display: none; align-items: center; gap: 1.8rem; }
@media (min-width: 900px) {
    .desktop-nav { display: flex; }
    #mobile-menu-btn-wrapper { display: none; }
}
.desktop-nav .nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted) !important;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}
.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1.5px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}
.desktop-nav .nav-link:hover, .desktop-nav .nav-link.active { color: var(--paper) !important; }
.desktop-nav .nav-link:hover::after, .desktop-nav .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

/* ---- Buttons (shared with homepage) ---- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
    isolation: isolate;
}
.btn .btn-fill {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform 0.45s var(--ease-expo);
}
.btn:hover .btn-fill { transform: translateY(0); }
.btn svg, .btn i { transition: transform 0.35s var(--ease-out); }
.btn:hover svg, .btn:hover i { transform: translateX(4px); }
.btn-orange {
    background: linear-gradient(120deg, var(--orange), var(--orange-soft));
    color: #fff !important;
    box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-orange .btn-fill { background: #fff; }
.btn-orange:hover { color: var(--ink) !important; box-shadow: 0 14px 40px -8px var(--glow); }
.btn-ghost { background: transparent; color: var(--paper) !important; border: 1.5px solid var(--line-strong); }
.btn-ghost .btn-fill { background: var(--orange); }
.btn-ghost:hover { color: #fff !important; border-color: var(--orange); }
.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.9rem; }

/* ---- Mobile menu (slides via script.min.js gsap; layout on inner wrapper) ---- */
#mobile-menu-dropdown {
    position: fixed !important;
    inset: 0 !important;
    z-index: 88 !important;
    background: rgba(11, 11, 12, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}
.mm-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    height: 100%;
    width: 100%;
    padding: 5rem 1.5rem 3rem;
}
.mm-nav { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.mobile-menu-link {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    font-weight: 700;
    color: var(--paper) !important;
    padding: 0.3rem 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}
.mobile-menu-link:hover, .mobile-menu-link.active { color: var(--orange) !important; }
.mm-cta {
    font-size: 1.15rem !important;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--orange), var(--orange-soft));
    color: #fff !important;
    box-shadow: 0 10px 30px -8px var(--glow);
}
.mm-cta:hover { color: #fff !important; }

/* ---- Unified mega footer ---- */
footer {
    background: #070708 !important;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.footer-mega { padding: clamp(3rem, 8vw, 5rem) 0 0; text-align: center; user-select: none; }
.footer-mega span {
    font-size: clamp(2.4rem, 9.5vw, 8.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    display: inline-block;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(246,243,239,0.14) 0%, rgba(246,243,239,0.02) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; padding: 3.5rem 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 34px !important; width: auto; }
.footer-brand p { margin-top: 1.1rem; color: var(--muted) !important; font-size: 0.95rem; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted) !important;
    transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff !important; transform: translateY(-3px); }
.footer-col h4 {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--muted-2) !important; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; padding: 0; margin: 0; }
.footer-col a, .footer-col li { color: var(--muted) !important; font-size: 0.95rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--paper) !important; }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1.6rem 0;
    display: flex; flex-direction: column; gap: 0.8rem;
    align-items: center; justify-content: space-between;
    font-size: 0.85rem; color: var(--muted-2) !important;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { color: var(--muted-2) !important; transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--paper) !important; }
.footer-bottom .links { display: flex; gap: 1.6rem; }

/* ---- Readable long-form body text on dark (AA contrast) ---- */
.policy-content, .policy-content p, .policy-content li, .policy-content ul, .policy-content ol,
.svc-article, .svc-article p, .svc-article li,
.article-body, .article-body p, .article-body li {
    color: #b6b6b6 !important;
}
.policy-content strong, .svc-article strong, .article-body strong,
.policy-content h1, .policy-content h2, .policy-content h3, .policy-content h4,
.svc-article h2, .svc-article h3, .article-body h2, .article-body h3 { color: var(--paper) !important; }
.policy-content a, .svc-article a, .article-body a { color: var(--orange) !important; }
