/* ============================================================
   TACIT — Organisational Intelligence Infrastructure
   3D Cube Scroll Website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --bg: #0B1F12;
    --fg: #FFFFFF;
    --accent: #8B5E3C;
    --accent-light: rgba(255, 255, 255, 0.7);
    --accent-dim: rgba(255, 255, 255, 0.4);
    --divider: #FFFFFF;
    --font-display: 'IBM Plex Sans', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('assets/bg/abstract_fluid_bg_1.png') top left / 60% auto no-repeat,
        url('assets/bg/abstract_fluid_bg_2.png') center right / 50% auto no-repeat,
        url('assets/bg/abstract_fluid_bg_3.png') bottom center / 70% auto no-repeat;
    opacity: 0.25;
    filter: blur(60px) saturate(1.2);
    pointer-events: none;
    z-index: 0;
    transform: translateY(var(--bg-y, 0));
    backface-visibility: hidden;
    will-change: transform;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(2, 10, 2, 0.4) 100%),
        url("https://grains-filter.vercel.app/noise.svg");
    opacity: 0.1;
    pointer-events: none;
    z-index: 9999;
}

a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--fg);
}

::selection {
    background: var(--accent);
    color: var(--fg);
}

/* ── Site Logo ─────────────────────────────────────────────── */
.site-logo {
    position: fixed;
    top: 24px;
    left: 32px;
    z-index: 1000;
    width: 120px;
    height: 120px;
    display: block;
    mix-blend-mode: screen;
    /* drops out the black background */
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Caution Marker ────────────────────────────────────────── */
.caution-marker {
    position: fixed;
    top: 16px;
    right: 32px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
    text-transform: lowercase;
    z-index: 100;
    pointer-events: none;
}

/* ── Scroll Spacer ─────────────────────────────────────────── 
   An invisible div that creates the scrollable document height.
   The cube is position:fixed; scroll drives content translation.
   ──────────────────────────────────────────────────────────── */
.scroll-spacer {
    width: 1px;
    pointer-events: none;
}

/* ── 3D Cube Scene ─────────────────────────────────────────── */
.cube-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: visible;
    pointer-events: none;
}

/* ── 3D Cube Wrapper ───────────────────────────────────────── 
   This is the preserve-3d container holding the 3 folds.
   display:block, NOT flex — flex breaks preserve-3d in some browsers.
   The wrapper is taller than the viewport (3× fold height).
   We vertically center it so the middle fold is in the viewport.
   ──────────────────────────────────────────────────────────── */
.cube-wrapper {
    display: block;
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    /* perspective is applied as inline style by JS based on fold-width */
    width: 80vw;
}

/* ── Fold Panels (Cube Faces) ──────────────────────────────── 
   Three folds stacked vertically. Each is a clipping window.
   Top is rotated -90deg at its bottom edge.
   Bottom is rotated 90deg at its top edge.
   Middle stays flat (front face).
   ──────────────────────────────────────────────────────────── */
.fold {
    width: 100%;
    overflow: hidden;
    position: relative;
    pointer-events: all;
}

.fold-top {
    transform: rotateX(-90deg);
    transform-origin: center bottom;
}

.fold-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 10, 2, 0.4), rgba(2, 10, 2, 0.15));
    pointer-events: none;
    z-index: 10;
}

.fold-middle {
    /* front face — no rotation */
    transform: none;
}

.fold-bottom {
    transform: rotateX(90deg);
    transform-origin: center top;
}

.fold-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(2, 10, 2, 0.4), rgba(2, 10, 2, 0.15));
    pointer-events: none;
    z-index: 10;
}

/* ── Fold Alignment Layer ──────────────────────────────────── 
   Static offset that aligns content across the seam between folds.
   Top fold content shifted DOWN by one fold-height.
   Bottom fold content shifted UP by one fold-height.
   These values are set by JS as inline styles (pixel-based).
   ──────────────────────────────────────────────────────────── */
.fold-align {
    position: relative;
}

/* ── Fold Content Layer ────────────────────────────────────── 
   The actual scrollable content strip.
   Translated by -scrollY via JS to create the scroll illusion.
   ──────────────────────────────────────────────────────────── */
.fold-scroll {
    position: relative;
    pointer-events: all;
}

/* ── Page Content (inside each fold) ───────────────────────── */
.page-content {
    width: 100%;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
    width: 100%;
    padding: 60px;
    position: relative;
}

.section--hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px;
}

.hero-nav {
    position: fixed;
    top: calc(50% - 210px);
    /* Pushed much higher to avoid side-nav overlap */
    transform: translateY(-100%);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 0 16px 24px 0;
    /* Extra gap at bottom */
    text-align: right;
    z-index: 1001;
}

@media (max-width: 900px) {
    .hero-nav {
        position: static;
        text-align: left;
        margin-top: 40px;
        padding: 0;
    }
}

.hero-nav__link {
    font-size: 1.15rem;
    color: var(--accent-light);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    opacity: 0.8;
}

.hero-nav__link:hover {
    color: var(--fg);
    transform: translateX(-8px);
    opacity: 1;
}

@media (max-width: 900px) {
    .hero-nav__link:hover {
        transform: translateX(8px);
    }
}

.section--standard {
    padding-top: 140px;
    padding-bottom: 140px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section--standard:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* ── Typography ────────────────────────────────────────────── */
.hero-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.02em;
    word-spacing: 0.3em;
    line-height: 1;
    color: var(--fg);
    text-transform: none;
}

.hero-title__tacit {
    color: rgba(210, 160, 100, 0.9);
}

.hero-title__labs {
    color: #8B5E3C;
}

.hero-title__tld {
    color: rgba(255, 255, 255, 0.65);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--accent-light);
    margin-top: 24px;
    max-width: 540px;
    font-style: normal;
    opacity: 0.85;
    line-height: 1.6;
}

.section-header {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.02em;
    word-spacing: 0.25em;
    line-height: 1.15;
    color: rgba(210, 160, 100, 0.9);
    text-transform: none;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.section-header__label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-left: 12px;
    white-space: nowrap;
}

.section-header--left {
    justify-content: flex-start;
}

.section-header__label--right {
    margin-left: auto;
    text-align: right;
}

.divider {
    width: 100%;
    height: 3px;
    background: var(--fg);
    margin-bottom: 36px;
    border: none;
}

/* ── Content Items (em-dash list) ──────────────────────────── */
.content-item {
    margin-bottom: 32px;
    max-width: 800px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.content-item--lead {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
}

.content-item strong {
    color: var(--fg);
    font-weight: 700;
}

.content-item .label {
    font-weight: 700;
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}

.content-item .dash {
    color: var(--accent-light);
    margin: 0 6px;
}

.stat-year {
    font-size: 0.8rem;
    color: var(--accent-dim);
    vertical-align: super;
    margin-right: 8px;
    font-weight: 500;
}

.stat-source {
    color: var(--accent-light);
    font-size: 0.85rem;
    font-style: normal;
    opacity: 0.7;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-links a {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cube-wrapper {
        width: 94vw;
    }

    .section {
        padding: 28px;
    }

    .section--hero {
        padding-bottom: 28px;
    }

    .section--standard {
        padding-top: 100px;
        padding-bottom: 100px;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 12vw, 5rem);
    }

    .section-header {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
    }

    .content-item {
        font-size: 0.95rem;
    }
}

/* ── Print: Unfolded Cube Net ──────────────────────────────── */
@media print {

    .cube-scene,
    .scroll-spacer {
        display: none !important;
    }

    .print-page {
        display: block !important;
        width: 8.5in;
        height: 11in;
        margin: 0 auto;
        position: relative;
        background: white;
        color: #0D0221;
        font-family: var(--font-body);
        page-break-after: always;
    }

    .print-page .print-cube-net {
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        gap: 0;
        border: 1px solid #ccc;
    }

    .print-face {
        border: 1px dashed #999;
        padding: 12px;
        font-size: 8pt;
        line-height: 1.4;
        overflow: hidden;
    }

    .print-face--top {
        grid-column: 2;
        grid-row: 1;
    }

    .print-face--left {
        grid-column: 1;
        grid-row: 2;
    }

    .print-face--front {
        grid-column: 2;
        grid-row: 2;
    }

    .print-face--right {
        grid-column: 3;
        grid-row: 2;
    }

    .print-face--bottom {
        grid-column: 2;
        grid-row: 3;
    }

    .print-face--back {
        grid-column: 2;
        grid-row: 4;
    }

    .print-face h2 {
        font-size: 10pt;
        font-weight: 700;
        font-style: normal;
        text-transform: uppercase;
        margin-bottom: 6px;
        border-bottom: 1px solid #7C3AED;
        padding-bottom: 4px;
    }

    .print-face p {
        margin-bottom: 4px;
    }

    .print-face--empty {
        border: 1px dashed #ddd;
        background: #fafafa;
    }
}

.print-page {
    display: none;
}

/* ═══════════════════════════════════════════
   3D ROTATING KNOWLEDGE PYRAMID
   ═══════════════════════════════════════════ */

.pyramid-scene {
    width: 320px;
    height: 360px;
    perspective: 800px;
    perspective-origin: 50% 40%;
    margin: 0 auto;
}

.pyramid {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: pyramidSpin 20s linear infinite;
    transform-origin: 50% 60% 0px;
}

@keyframes pyramidSpin {
    0% {
        transform: rotateY(0deg) rotateX(-5deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(-5deg);
    }
}

/* Each face is a triangle using clip-path */
.pyramid-face {
    position: absolute;
    width: 320px;
    height: 320px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    backface-visibility: visible;
    transform-origin: 50% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pyramid-front {
    background: linear-gradient(180deg,
            rgba(139, 94, 60, 0.6) 0%,
            rgba(11, 31, 18, 0.85) 100%);
    border: 1px solid rgba(139, 94, 60, 0.3);
    transform: translateZ(160px) rotateX(30deg);
}

.pyramid-right {
    background: linear-gradient(180deg,
            rgba(139, 94, 60, 0.5) 0%,
            rgba(11, 31, 18, 0.9) 100%);
    border: 1px solid rgba(139, 94, 60, 0.2);
    transform: rotateY(90deg) translateZ(160px) rotateX(30deg);
}

.pyramid-back {
    background: linear-gradient(180deg,
            rgba(139, 94, 60, 0.4) 0%,
            rgba(11, 31, 18, 0.95) 100%);
    border: 1px solid rgba(139, 94, 60, 0.15);
    transform: rotateY(180deg) translateZ(160px) rotateX(30deg);
}

.pyramid-left {
    background: linear-gradient(180deg,
            rgba(139, 94, 60, 0.5) 0%,
            rgba(11, 31, 18, 0.9) 100%);
    border: 1px solid rgba(139, 94, 60, 0.2);
    transform: rotateY(-90deg) translateZ(160px) rotateX(30deg);
}

.pyramid-base {
    position: absolute;
    width: 320px;
    height: 320px;
    bottom: 0;
    background: rgba(11, 31, 18, 0.95);
    border: 1px solid rgba(139, 94, 60, 0.15);
    transform: rotateX(90deg) translateZ(-320px);
    transform-origin: 50% 100%;
}

/* Labels inside each face */
.pyramid-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 20px;
    gap: 2px;
}

.p-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

/* Bottom level = widest, top = smallest */
.p-l1 {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.p-l2 {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
}

.p-l3 {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.p-l4 {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.p-l5 {
    font-size: 0.6rem;
    color: #8B5E3C;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(139, 94, 60, 0.4);
}

/* ═══════════════════════════════════════════
   SIDE NAVIGATION INDEX
   ═══════════════════════════════════════════ */

.side-nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 12px 16px 16px;
    background: rgba(11, 31, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(139, 94, 60, 0.15);
    border-radius: 8px 0 0 8px;
    opacity: 1;
    pointer-events: auto;
}

.side-nav a {
    display: block;
    padding: 4px 10px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    white-space: nowrap;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    border-radius: 0 3px 3px 0;
}

.side-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(139, 94, 60, 0.1);
}

.side-nav a.is-active {
    color: #8B5E3C;
    border-left-color: #8B5E3C;
    font-weight: 600;
}

/* Hide on mobile / narrow screens */
@media (max-width: 900px) {
    .side-nav {
        display: none;
    }
}

/* Hide in print */
@media print {
    .side-nav {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   HERO QUALIFIER
   ═══════════════════════════════════════════ */

.hero-qualifier {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-top: 12px;
    letter-spacing: 0.02em;
}

.hero-bullets {
    margin-top: 20px;
    margin-bottom: 18px;
    padding-left: 18px;
    max-width: 620px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-bullets li {
    margin-bottom: 6px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 60px;
}

.hero-primary-cta,
.hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.hero-primary-cta {
    background: #8B5E3C;
    color: #0B1F12;
    border-color: rgba(139, 94, 60, 0.9);
}

.hero-primary-cta:hover {
    background: #a87348;
    color: #0B1F12;
}

.hero-secondary-cta {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media (max-width: 768px) {
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hero-industry-badge {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   STICKY CTA BAR
   ═══════════════════════════════════════════ */

.sticky-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 10px 24px;
    background: rgba(11, 31, 18, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 94, 60, 0.4);
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    width: max-content;
    max-width: calc(100vw - 40px);
}

.sticky-cta.is-shown {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.sticky-cta__text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.sticky-cta__btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #0B1F12;
    background: #8B5E3C;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.sticky-cta__btn:hover {
    background: #a87348;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .sticky-cta__text {
        display: none;
    }

    .sticky-cta {
        justify-content: center;
    }
}

@media print {
    .sticky-cta {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   INDUSTRY CARDS
   ═══════════════════════════════════════════ */

.industry-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.industry-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.industry-card--active {
    border-color: rgba(139, 94, 60, 0.4);
    background: rgba(139, 94, 60, 0.06);
    text-decoration: none;
    cursor: pointer;
}

.industry-card--active:hover {
    border-color: rgba(139, 94, 60, 0.7);
    background: rgba(139, 94, 60, 0.1);
    transform: translateY(-2px);
}

.industry-card--soon {
    opacity: 0.35;
    cursor: default;
}

.industry-card__name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.industry-card__desc {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.industry-card__cta {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #8B5E3C;
    margin-top: 8px;
}

.industry-card__badge {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

@media (max-width: 900px) {
    .industry-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .industry-cards {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   WHY NOW — 2-COL LAYOUT
   ═══════════════════════════════════════════ */

.whynow-layout {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 48px;
    align-items: start;
}

.whynow-visual {
    position: sticky;
    top: 100px;
    z-index: 2;
}

@media (max-width: 900px) {
    .whynow-layout {
        grid-template-columns: 1fr;
    }

    .whynow-visual {
        position: static;
        order: -1;
    }
}

/* ═══════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════ */

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    font-size: 0.92rem;
    line-height: 1.7;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
}

.comparison-table thead th {
    background: rgba(139, 94, 60, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    vertical-align: top;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table__category {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(210, 160, 100, 0.85) !important;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* What We Do column — slightly brighter */
.comparison-table tbody td:nth-child(3) {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 700px) {
    .comparison-table {
        font-size: 0.82rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px 14px;
    }
}

/* ═══════════════════════════════════════════
   BEHAVIOUR HEURISTICS WIDGET
   ═══════════════════════════════════════════ */

.behaviour-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 850;
    max-width: 320px;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.8);
}

.behaviour-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.7rem;
    text-transform: lowercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    border: 1px solid rgba(139, 94, 60, 0.6);
    background: rgba(11, 31, 18, 0.85);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.behaviour-widget__toggle:hover {
    border-color: rgba(139, 94, 60, 0.9);
    color: #fff;
}

.behaviour-widget__status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    text-transform: none;
    color: rgba(255, 255, 255, 0.5);
}

.behaviour-widget__body {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 31, 18, 0.95);
    font-size: 0.75rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.behaviour-widget--open .behaviour-widget__body {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
}

.behaviour-widget__note {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.45);
}

.behaviour-widget__list {
    list-style: none;
    padding-left: 0;
}

.behaviour-widget__list li {
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .behaviour-widget {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .behaviour-widget__body {
        max-height: 0;
    }

    .behaviour-widget--open .behaviour-widget__body {
        max-height: 320px;
    }
}

/* ── Venn Diagram Container ──────────────────────────────── */
.venn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.venn-container canvas {
    max-width: 100%;
    height: auto;
}