html {
    scroll-behavior: smooth;
}

:root {
    --c-bg: #ffffff;
    --c-fg: #2d3142;
    --c-silver: #bfc0c0;
    --c-slate: #4f5d75;
    --c-mauve: #a63d40;
    --c-cream: #f8f6f3;
    --f-display: 'Instrument Serif', Georgia, serif;
    --f-body: 'Space Grotesk', sans-serif;
    --f-mono: 'Space Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--f-body);
    background-color: var(--c-fg);
    color: var(--c-fg);
    overflow-x: hidden;
}

/* ── SPLIT LAYOUT ── */
.layout {
    display: grid;
    grid-template-columns: 30vw 1fr;
    min-height: 100vh;
    background: var(--c-bg);
}

/* ── LEFT PANEL ── */
.panel-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    background-color: var(--c-silver);
    overflow: hidden;
    border-right: 2px solid var(--c-fg);
}

.svg-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── RIGHT PANEL ── */
.panel-content {
    position: relative;
    padding: 3.5rem 4rem 0 3rem;
    display: flex;
    flex-direction: column;
}


/* ── TYPOGRAPHY ── */
h1 {
    font-family: var(--f-display);
    font-size: clamp(3.5rem, 5.5vw, 7rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 95%;
    color: var(--c-fg);
    text-wrap: balance;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--c-fg);
    margin: 0;
    border: none;
}

.divider--silver {
    background-color: var(--c-silver);
}

/* ── SECTION LABEL ── */
.section-label {
    font-family: var(--f-body);
    font-size: 0.78rem;
    font-variant: small-caps;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--c-slate);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-silver);
}

/* ── GENERIC SECTIONS ── */
.section {
    padding: 3rem 0;
}

.section--generous {
    padding-top: 4.5rem;
}

.section h2 {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 3.5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--c-fg);
    text-wrap: balance;
}

.section p {
    font-size: 1.08rem;
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: var(--c-fg);
    text-wrap: pretty;
}

.section p + p {
    margin-top: 1rem;
}

/* ── HERO SECTION ── */
.hero-subtitle {
    font-family: var(--f-body);
    font-size: 0.7rem;
    font-variant: small-caps;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--c-slate);
    margin-bottom: 2rem;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 0 3rem 0;
}

.hero-intro h2 {
    font-family: var(--f-body);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.65;
    text-wrap: pretty;
}

.hero-intro .dense-copy p {
    margin-bottom: 1rem;
}
.hero-intro .dense-copy p:last-child {
    margin-bottom: 0;
}

/* ── CTA BUTTON ── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--f-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--c-bg);
    background: var(--c-slate);
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background: var(--c-fg);
    transform: translateY(-1px);
}

.cta-btn span {
    transition: transform 0.2s ease;
    font-size: 0.9rem;
}

.cta-btn:hover span {
    transform: translateX(6px);
}

/* ── FOCUS STATES ── */
.cta-btn:focus-visible {
    outline: 2px solid var(--c-mauve);
    outline-offset: 3px;
}

a:focus-visible {
    outline: 2px solid var(--c-slate);
    outline-offset: 2px;
}

/* ── BADGE ── */
.badge {
    width: 26px;
    height: 26px;
    background-color: var(--c-fg);
    color: var(--c-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
}

.badge--slate {
    background-color: var(--c-slate);
}

.badge--mauve {
    background-color: var(--c-mauve);
}

/* ── METADATA ── */
.metadata {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--c-slate);
    letter-spacing: 0.02em;
}

/* ── PROBLEM GRID ── */
.problem-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.5rem;
}

.problem-cell {
    padding: 1.25rem 0 1.25rem 1.5rem;
    border-left: 3px solid var(--c-mauve);
    border-bottom: 1px solid var(--c-silver);
}

.problem-cell:last-child {
    border-bottom: none;
}

.problem-cell h4 {
    font-family: var(--f-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
    color: var(--c-fg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.problem-cell h4 svg {
    flex-shrink: 0;
    stroke: var(--c-slate);
}

.problem-cell p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--c-slate);
}

/* ── SYSTEM / TWO-PHASE ── */
.phases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.phase-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phase-header h3 {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--c-fg);
}

.deliverable-list {
    list-style: none;
    padding: 0;
}

.deliverable-list li {
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(191, 192, 192, 0.5);
    color: var(--c-fg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deliverable-list li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234f5d75' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

/* ── TIMELINE (What to Expect) ── */
.timeline {
    margin-top: 2rem;
}

.timeline-phase {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: var(--c-silver);
    margin-top: 0.75rem;
    min-height: 2rem;
}

.timeline-content h4 {
    font-family: var(--f-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--c-fg);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-slate);
}

/* ── WARM CREAM SECTIONS ── */
.section--warm {
    background: var(--c-cream);
    margin: 0 -4rem 0 -3rem;
    padding: 3rem 4rem 3rem 3rem;
    width: calc(100% + 7rem);
}

/* ── DARK SECTIONS ── */
.section--dark {
    background: var(--c-fg);
    color: var(--c-bg);
    margin: 0 -4rem 0 -3rem;
    padding: 3rem 4rem 3rem 3rem;
    width: calc(100% + 7rem);
}

.section--dark h2 {
    color: var(--c-bg);
}

.section--dark p {
    color: #d0d1d1;
}

.section--dark .section-label {
    color: var(--c-silver);
}

.section--dark .section-label::after {
    background: rgba(191, 192, 192, 0.2);
}

/* ── ADVANTAGE COMPARISON ── */
.advantage-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(191, 192, 192, 0.2);
    margin-top: 2.5rem;
}

.comparison-col {
    padding: 1.25rem;
}

.comparison-col--us {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--c-mauve);
}

.comparison-header {
    font-family: var(--f-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(191, 192, 192, 0.5);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(191, 192, 192, 0.15);
}

.comparison-header--us {
    color: var(--c-mauve);
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    font-size: 0.92rem;
    line-height: 1.4;
    padding: 0.4rem 0;
    color: var(--c-silver);
    border-bottom: 1px solid rgba(191, 192, 192, 0.08);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.comparison-list li::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23bfc0c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.5;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-col--us .comparison-list li {
    color: var(--c-bg);
}
.comparison-col--us .comparison-list li::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.8;
}

/* ── BOOK A CALL ── */
.section--slate {
    background: var(--c-slate);
    color: var(--c-bg);
    margin: 0 -4rem 0 -3rem;
    padding: 4.5rem 4rem 4.5rem 3rem;
    width: calc(100% + 7rem);
}

.section--slate h2 {
    color: var(--c-bg);
}

.section--slate p {
    color: rgba(255, 255, 255, 0.75);
}

.section--slate .section-label {
    color: rgba(255, 255, 255, 0.5);
}

.section--slate .section-label::after {
    background: rgba(255, 255, 255, 0.15);
}

.cta-btn--light {
    background: var(--c-bg);
    color: var(--c-fg);
}

.cta-btn--light:hover {
    background: var(--c-silver);
}

.cta-btn--big {
    padding: 1.15rem 2.5rem;
    font-size: 0.8rem;
}


.book-capacity {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.75rem;
}

.book-email {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2rem;
    letter-spacing: 0.04em;
}

.book-email a {
    color: var(--c-bg);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.book-trust {
    font-family: var(--f-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1rem;
}

/* ── BOOK SECTION LIST (extracted from inline styles) ── */
.book-benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.book-benefit-item {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--c-bg);
    border-bottom: 1px solid rgba(45, 49, 66, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.book-benefit-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.7;
}

.book-benefit-item:last-child {
    border-bottom: none;
}

/* ── STICKY CTA ── */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-cta .cta-btn {
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(45, 49, 66, 0.3);
    font-size: 0.75rem;
    padding: 0.75rem 1.4rem;
}

/* ── SVG DYNAMIC NETWORK ── */
/* Node/line transitions handled by JS animateToPositions() */

.svg-section-number {
    transition: opacity 0.5s ease;
}

.svg-section-label {
    transition: opacity 0.5s ease;
}

/* ── FOOTER ── */
.footer {
    margin: 0 -4rem 0 -3rem;
    padding: 2rem 4rem 2rem 3rem;
    width: calc(100% + 7rem);
    background: var(--c-fg);
    border-top: 1px solid rgba(191, 192, 192, 0.15);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer p {
    font-family: var(--f-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(191, 192, 192, 0.5);
    max-width: none;
}

.footer-brand {
    color: rgba(191, 192, 192, 0.7) !important;
    margin-bottom: 0.2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--f-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(191, 192, 192, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--c-silver);
}

.footer-right {
    text-align: right;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .panel-visual {
        position: relative;
        height: 35vh;
        min-height: 200px;
        max-height: 300px;
        border-right: none;
        border-bottom: 2px solid var(--c-fg);
    }
    .panel-content {
        padding: 2.5rem 2rem;
    }
    .hero-intro,
    .phases {
        grid-template-columns: 1fr;
    }
    .advantage-comparison {
        grid-template-columns: 1fr;
    }
    .comparison-col--us {
        border-left: none;
        border-top: 2px solid var(--c-mauve);
    }
    .section--dark,
    .section--slate,
    .section--warm,
    .footer {
        margin: 0 -2rem;
        padding: 2.5rem 2rem;
        width: calc(100% + 4rem);
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    .section--warm {
        text-align: left;
    }
    .footer-links {
        justify-content: center;
    }
    .footer-right {
        text-align: center;
    }
    h1 {
        font-size: clamp(2.8rem, 8vw, 4.5rem);
    }
    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
    }
    /* Touch targets */
    .cta-btn {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 0.75rem;
    }
    /* Footer links tappability */
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-links a {
        padding: 0.5rem 0;
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .panel-visual {
        height: 15vh;
        min-height: 100px;
        max-height: 120px;
    }
    .panel-content {
        padding: 2rem 1.25rem;
    }
    h1 br {
        display: none;
    }
    .section--dark,
    .section--slate,
    .section--warm,
    .footer {
        margin: 0 -1.25rem;
        padding: 2rem 1.25rem;
        width: calc(100% + 2.5rem);
    }
    /* Full-width sticky CTA on phones */
    .sticky-cta {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
    }
    .sticky-cta .cta-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.7rem;
        padding: 0.85rem 1rem;
    }
}
