/* ==========================================================================
   BESPOKE STUDIO (VIP Architecture + Global Consistency)
   ========================================================================== */

.bespoke-mode {
    background-color: var(--global-bg);
}

.bespoke-page-wrapper {
    padding-top: 100px; /* Accounts for the new global solid-nav */
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensures content sits above the fixed aura */
}

/* ==========================================================================
   AMBIENT AURA BACKGROUND (Synchronized with Store UI)
   ========================================================================== */
.ambient-aura-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background-color: var(--global-bg);
    pointer-events: none;
}

.aura-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: aura-drift 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.orb-1 {
    width: 60vw; height: 60vw;
    background-color: var(--product-surface);
    top: -10%; left: -10%;
    animation-duration: 28s;
}

.orb-2 {
    width: 50vw; height: 50vw;
    background-color: var(--brand-soft);
    bottom: -20%; right: -10%;
    animation-duration: 34s;
    animation-direction: alternate-reverse;
}

.orb-3 {
    width: 45vw; height: 45vw;
    background-color: var(--corp-surface);
    top: 40%; left: 30%;
    animation-duration: 22s;
}

.aura-frosting {
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 250, 0.65);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

@keyframes aura-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(6vw, 6vh) scale(1.05); }
    66%  { transform: translate(-4vw, 8vh) scale(0.95); }
    100% { transform: translate(-8vw, -4vh) scale(1.1); }
}

@media (max-width: 768px) {
    .aura-orb { filter: blur(70px); }
    .orb-1 { width: 100vw; height: 100vw; }
    .orb-2 { width: 90vw; height: 90vw; }
    .orb-3 { width: 80vw; height: 80vw; }
}

/* --- 1. The Cinematic Hero --- */
.bespoke-hero {
    position: relative;
    padding: 80px 5% 80px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bespoke-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--brand-primary);
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(246, 48, 73, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(246, 48, 73, 0.1);
}

.bespoke-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1.05;
    color: var(--global-text);
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.bespoke-hero p {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--corp-icon);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- 2. The Atelier Process (Chronological) --- */
.bespoke-process {
    padding: 60px 5% 120px;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}

/* The Connecting Line */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 40px; 
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.1) 90%, transparent);
    z-index: 0;
}

.process-step {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px; height: 80px;
    flex-shrink: 0;
    background: var(--global-bg);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.step-content {
    padding-top: 15px;
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--global-text);
    margin-bottom: 15px;
}

.step-content p {
    font-size: 1.05rem;
    color: var(--corp-icon);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--global-text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.feature-list i { color: var(--product-interactive); font-size: 1.2rem; }

@media (max-width: 768px) {
    .process-timeline::before { left: 30px; }
    .process-step { gap: 20px; flex-direction: column; }
    .step-number { width: 60px; height: 60px; font-size: 1.2rem; }
    .step-content { padding-top: 0; padding-left: 30px; border-left: 1px solid rgba(0,0,0,0.1); margin-left: 30px; }
    .process-timeline::before { display: none; }
}

/* --- 3. The VIP Terminal --- */
.bespoke-terminal-section {
    padding: 0 5% 120px;
    display: flex;
    justify-content: center;
}

.terminal-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 32px;
    padding: 60px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.5s ease;
}

.terminal-card.is-unlocked {
    box-shadow: 0 40px 100px rgba(64, 138, 113, 0.15);
    border-color: rgba(64, 138, 113, 0.3);
}

.terminal-header {
    text-align: center;
    margin-bottom: 30px;
}

.terminal-header h2 { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 10px; }
.pricing-tier { font-family: var(--font-mono); color: var(--corp-icon); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.pricing-tier span { color: var(--global-text); font-size: 1.2rem; font-weight: 700; margin-left: 5px; }

.hosting-notice {
    background: rgba(0,0,0,0.02);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}
.hosting-notice i { font-size: 1.5rem; color: var(--corp-icon); }
.hosting-notice p { font-size: 0.9rem; color: var(--corp-icon); line-height: 1.5; margin: 0; }

.terminal-divider { height: 1px; background: rgba(0,0,0,0.05); margin-bottom: 40px; }

.tc-gate {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: background 0.4s ease;
}

.tc-gate.active-glow { background: rgba(176, 228, 204, 0.25); border-color: var(--product-surface); }

.tc-label { font-size: 0.9rem; color: var(--corp-heading); line-height: 1.5; cursor: pointer; }
.tc-label a { color: var(--global-text); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,0,0,0.2); text-underline-offset: 4px; }

.ios-toggle { position: relative; width: 56px; height: 32px; flex-shrink: 0; }
.ios-toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.1); transition: .4s; border-radius: 34px;
}
.toggle-slider:before {
    position: absolute; content: ""; height: 24px; width: 24px; left: 4px; bottom: 4px;
    background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.ios-toggle input:checked + .toggle-slider { background-color: var(--product-interactive); }
.ios-toggle input:checked + .toggle-slider:before { transform: translateX(24px); }

.btn-terminal {
    width: 100%; padding: 22px; border-radius: 100px; font-family: var(--font-mono);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: none;
    font-size: 0.9rem; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; justify-content: center; align-items: center;
}

.btn-terminal.locked { background: rgba(0,0,0,0.03); color: rgba(0,0,0,0.3); cursor: not-allowed; }

.btn-terminal.unlocked {
    background: var(--global-text); color: #FFF; cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.btn-terminal.unlocked:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.btn-terminal.unlocked .btn-text { display: flex; align-items: center; gap: 10px; }

@media (max-width: 768px) {
    .terminal-card { padding: 40px 25px; }
    .tc-gate { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Wake Up Engine Match */
body.is-waking-up .gallery-nav { 
    opacity: 0; 
    animation: fade-in-nav 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}
@keyframes fade-in-nav { to { opacity: 1; } }