/* =========================================
   HOW WE THINK - PAGE SPECIFIC STYLES
   =========================================
   Extracted from the inline <style> blocks formerly in
   page-how-we-think.php. Enqueued only on that template
   (see functions.php) so these overrides of global classes
   (.bento-card, .badge, .highlight) stay page-scoped and do
   not bleed onto the rest of the site.
   ========================================= */

/* Bento Card System */
.bento-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.bento-card > * { position: relative; z-index: 20; }

/* Abstract SVG Decoration Classes */
.card-deco {
    position: absolute;
    z-index: 0 !important;
    opacity: 0.08;
    pointer-events: none;
    color: var(--brand-dark);
    transition: all 0.5s ease;
}
.deco-corner-bl { bottom: -20px; left: -20px; width: 150px; height: 150px; transform: rotate(10deg); }
.deco-corner-tr { top: -30px; right: -30px; width: 200px; height: 200px; opacity: 0.05; }
.deco-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 300px; opacity: 0.03; }

@media (min-width: 1024px) {
    .bento-card::before {
        content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        border-radius: 28px; padding: 1.5px;
        background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(1, 165, 177, 0.15), transparent 40%);
        z-index: 10; opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor; mask-composite: exclude;
    }
    .bento-card:hover::before { opacity: 1; }
    .bento-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08); }
}

/* Page Header */
.page-header {
    text-align: center; padding: 160px 20px 100px; max-width: 900px;
    margin: 0 auto; position: relative; z-index: 2; overflow: hidden;
}
.page-header h1 {
    font-size: 5rem; font-weight: 700; margin-bottom: 20px;
    letter-spacing: -2px; line-height: 1; color: var(--text-main);
}
.page-header p { font-size: 1.5rem; color: var(--text-muted); font-weight: 400; }

.badge {
    display: inline-flex; padding: 8px 20px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px; font-weight: 600;
    margin-bottom: 30px; font-size: 0.9rem;
    color: var(--brand-dark);
    backdrop-filter: blur(10px);
}

/* Story Sections */
.story-section {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; max-width: 1100px; margin: 0 auto 160px;
    padding: 0 20px; position: relative; z-index: 2; align-items: start;
}
.story-question {
    position: sticky; top: 150px; padding-left: 20px;
    transition: all 0.5s ease;
    opacity: 0.4;
    transform: scale(0.98);
}
.story-section.active-section .story-question {
    opacity: 1;
    transform: scale(1);
}
.story-section.active-section .story-question h2 {
    color: var(--brand-dark);
}
.question-num {
    display: block; font-size: 0.9rem; color: var(--brand-light);
    margin-bottom: 15px; font-family: monospace !important;
}
.story-question h2 {
    font-size: 3rem; font-weight: 700; line-height: 1.1;
    color: var(--text-main); letter-spacing: -1px;
    transition: color 0.5s ease;
}
.story-answer { padding: 50px; }
.story-answer p { margin-bottom: 25px; line-height: 1.7; font-size: 1.15rem; color: #444; }
.story-answer p:last-child { margin-bottom: 0; }

.highlight {
    background: rgba(1, 165, 177, 0.1);
    padding: 2px 6px; border-radius: 4px;
    color: var(--brand-dark); font-weight: 600;
}

/* Quote Sections */
.quote-break {
    max-width: 1000px; margin: 0 auto 160px;
    position: relative; z-index: 2; padding: 0 20px;
}
.quote-card {
    background: #1d1d1f;
    color: #fff;
    padding: 80px 60px;
    text-align: center;
    border-left: 4px solid var(--brand-dark);
}
.quote-card.bento-card { border: 1px solid #333; }
.quote-icon {
    font-size: 6rem; line-height: 1;
    color: rgba(0, 123, 141, 0.1);
    position: absolute; top: -20px; right: 20px;
    font-family: serif;
}
.quote-text { font-size: 1.8rem; font-weight: 500; line-height: 1.5; margin: 0; z-index: 2; }

/* Final Section */
.final-section { text-align: center; padding: 50px 20px; margin-bottom: 80px; position: relative; z-index: 2; }
.final-card { padding: 80px; max-width: 900px; margin: 0 auto; }
.final-card h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; }
.final-card p { font-size: 1.2rem; color: #666; max-width: 600px; margin: 0 auto 40px; }

.final-btn {
    display: inline-block; padding: 18px 45px;
    background: var(--text-main); color: #fff;
    border-radius: 100px; text-decoration: none; font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.final-btn:hover { transform: scale(1.03); background: #000; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* Typography & Interaction Polish */
.content-prose p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #4b5563;
}
.content-prose strong { color: #111827; }

/* SVG Decoration Animations */
.bento-card:hover .deco-corner-bl circle {
    animation: rotate-slow 10s linear infinite;
    transform-origin: 50px 50px;
}
.bento-card:hover .deco-corner-tr rect {
    animation: pulse-slow 3s ease-in-out infinite;
}
.bento-card:hover .deco-center {
    animation: float-slow 4s ease-in-out infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse-slow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Neural Effect for Hero */
.home-hero__bg-pattern {
    position: absolute; inset: 0; z-index: 0; opacity: 0.4;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}
.home-hero__neural {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; max-width: 1200px; z-index: 0; pointer-events: none; opacity: 0.6;
}
.neural-path {
    stroke-dasharray: 1000; stroke-dashoffset: 1000;
    animation: drawLine 4s ease-out forwards;
}
.neural-node {
    opacity: 0;
    animation: fadeInNode 0.5s ease-out forwards;
}
.neural-path--1 { animation-delay: 0.2s; }
.neural-path--2 { animation-delay: 0.5s; }
.neural-path--3 { animation-delay: 0.8s; }
.neural-path--4 { animation-delay: 1.1s; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}
@keyframes fadeInNode {
    to { opacity: 0.6; }
}

.home-hero__glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0, 123, 141, 0.15) 0%, transparent 60%);
    z-index: 0; pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .page-header h1 { font-size: 3rem; }
    .story-section { grid-template-columns: 1fr; gap: 30px; margin-bottom: 100px; }
    .story-question { position: relative; top: 0; padding-left: 0; margin-bottom: 20px; opacity: 1; transform: none; }
    .story-question h2 { font-size: 2.2rem; }
    .story-answer { padding: 30px; }
    .quote-card { padding: 50px 30px; }
    .quote-text { font-size: 1.4rem; }
    .final-card { padding: 50px 20px; }
}
