/* ==========================================================================
   Design System: Cartografia da Serra (Strict 60-30-10)
   60% Dominant: Deep Pine Forest (#0D241B)
   30% Supporting: Warm Linen / Basalt Stone (#F2EFE9)
   10% Loud Accent: Solar Gold (#E6A817 / #F7BE38)
   ========================================================================== */

:root {
    /* 60% Dominant Base */
    --pine-950: #081812;
    --pine-900: #0D241B;
    --pine-800: #133125;
    --pine-700: #1B4232;

    /* 30% Supporting Light Surface */
    --linen-100: #F2EFE9;
    --linen-200: #E8E3D9;
    --linen-300: #D7D0C2;
    --ink-900: #0D241B;
    --ink-600: #42594E;

    /* 10% Loud Focal Accent */
    --gold-500: #E6A817;
    --gold-400: #F7BE38;
    --gold-ink: #0D241B;

    /* Functional & Semantic */
    --emerald-price: #059669;
    --emerald-bright: #10B981;
    --wa-green: #25D366;
    --onira-navy: #09192E;
    --onira-blue: #0A66C2;
    --onira-sky: #38BDF8;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Editorial Radii (Sharp / Crisp) */
    --radius-sharp: 2px;
    --radius-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--pine-900);
    color: var(--linen-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hidden { display: none !important; }

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Subtle Topographic Contour Background Utilities */
.topo-bg-dark {
    background-color: var(--pine-900);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='360' viewBox='0 0 640 360' fill='none'%3E%3Cpath d='M-40 120C90 60 190 190 340 130C490 70 560 160 690 95' stroke='%23F2EFE9' stroke-opacity='0.045' stroke-width='1'/%3E%3Cpath d='M-40 170C110 110 210 240 360 180C510 120 570 210 690 145' stroke='%23F2EFE9' stroke-opacity='0.04' stroke-width='1'/%3E%3Cpath d='M-40 220C130 160 230 290 380 230C530 170 590 260 690 195' stroke='%23E6A817' stroke-opacity='0.05' stroke-width='1'/%3E%3Cpath d='M-40 270C150 210 250 330 400 280C550 230 610 300 690 245' stroke='%23F2EFE9' stroke-opacity='0.035' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 640px 360px;
}

.topo-bg-light {
    background-color: var(--linen-100);
    color: var(--ink-900);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='360' viewBox='0 0 640 360' fill='none'%3E%3Cpath d='M-40 110C100 50 200 180 350 120C500 60 560 150 690 85' stroke='%230D241B' stroke-opacity='0.045' stroke-width='1'/%3E%3Cpath d='M-40 165C120 105 220 235 370 175C520 115 580 205 690 140' stroke='%230D241B' stroke-opacity='0.035' stroke-width='1'/%3E%3Cpath d='M-40 220C140 160 240 290 390 230C540 170 600 260 690 195' stroke='%230D241B' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 640px 360px;
}

/* Chapter Labels & Editorial Typography */
.chapter-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.chapter-tag--dark { color: var(--gold-500); }
.chapter-tag--light { color: var(--ink-600); }

.chapter-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}

.display-serif {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.08;
}

.display-serif em {
    font-style: italic;
    font-weight: 500;
}

/* Buttons (10% Loud Gold CTA + Crisp Hairline Outlines) */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-sharp);
    border: 1px solid var(--gold-500);
    background: var(--gold-500);
    color: var(--gold-ink);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-gold:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(230, 168, 23, 0.28);
}

.btn-pine {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sharp);
    border: 1px solid var(--pine-900);
    background: var(--pine-900);
    color: var(--linen-100);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.btn-pine:hover { background: var(--pine-800); transform: translateY(-1px); }

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sharp);
    border: 1px solid rgba(242, 239, 233, 0.28);
    background: rgba(13, 36, 27, 0.45);
    color: var(--linen-100);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.btn-outline-light:hover {
    border-color: var(--gold-500);
    background: rgba(242, 239, 233, 0.08);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius-sharp);
    border: 1px solid var(--pine-900);
    background: transparent;
    color: var(--ink-900);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.btn-outline-dark:hover { background: var(--pine-900); color: var(--linen-100); }

.btn-gold svg, .btn-pine svg, .btn-outline-light svg, .btn-outline-dark svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* GPU-Accelerated Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Locked Blue Floating Proposal Widget (.onira-cta) */
.onira-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 75;
    background: var(--onira-navy);
    border: 1px solid rgba(10, 102, 194, 0.6);
    box-shadow: 0 12px 32px rgba(10, 102, 194, 0.32);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.onira-cta.scrolling { opacity: 0.35; }
.onira-cta.scrolling:hover { opacity: 1; }

.onira-cta-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0F2744;
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.onira-cta-close svg { width: 13px; height: 13px; }

.onira-cta-expanded {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.onira-cta-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--onira-blue);
    object-fit: cover;
    flex-shrink: 0;
}

.onira-cta-text { display: flex; flex-direction: column; }
.onira-cta-hook { font-size: 0.72rem; font-weight: 700; color: var(--onira-sky); line-height: 1.2; }
.onira-cta-call { font-size: 0.8rem; font-weight: 700; color: #FFFFFF; line-height: 1.25; }

.onira-cta-collapsed-pill {
    display: none;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.onira-cta.collapsed {
    right: 0;
    border-radius: 999px 0 0 999px;
    padding: 10px 14px 10px 16px;
}
.onira-cta.collapsed .onira-cta-expanded,
.onira-cta.collapsed .onira-cta-close { display: none; }
.onira-cta.collapsed .onira-cta-collapsed-pill { display: inline-flex; }

/* Locked LinkedIn Navy Executive Signature Card (.dev-profile-card) */
.dev-profile-card {
    background: linear-gradient(145deg, #09192E 0%, #061224 100%);
    border: 1px solid rgba(56, 116, 203, 0.32);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.dev-profile-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(10, 102, 194, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.dev-profile-header { display: flex; align-items: center; gap: 20px; }

.dev-avatar-img {
    border-radius: 50%;
    border: 2px solid #0A66C2;
    box-shadow: 0 0 20px rgba(10, 102, 194, 0.4);
    flex-shrink: 0;
    object-fit: cover;
}

.dev-profile-title-block { display: flex; flex-direction: column; gap: 4px; }

.dev-badge-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #38BDF8;
    letter-spacing: 0.1em;
}

.dev-author-name { font-size: 1.35rem; font-weight: 800; color: #FFFFFF; margin: 0; }
.dev-author-role { font-size: 0.875rem; color: #94A3B8; margin: 0; }
.dev-author-role strong { color: #F8FAFC; }

.dev-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #E2E8F0;
    border-left: 3px solid #0A66C2;
    padding-left: 18px;
    font-style: italic;
    margin: 0;
}

.dev-profile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 16px;
}

.dev-social-links { display: flex; align-items: center; gap: 20px; }

.dev-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.dev-link svg { width: 16px; height: 16px; }
.dev-link:hover { color: #38BDF8; }

.dev-agency-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: #64748B;
}

.agency-logo-img { height: 22px; width: auto; display: block; }

/* Non-Blocking Toast */
.toast-box {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    z-index: 120;
    max-width: calc(100vw - 32px);
    background: var(--pine-950);
    color: var(--linen-100);
    border: 1px solid var(--gold-500);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .dev-profile-header { flex-direction: column; text-align: center; }
    .dev-quote { padding-left: 0; border-left: none; border-top: 2px solid #0A66C2; padding-top: 14px; text-align: center; }
    .dev-profile-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
