/* ========================================================
   Option 4 — MudBlazor surface · matte M3 slate
   Coloured tiles, choreographed entrance.
   120px from viewport top to headline · everything in one viewport.
   ======================================================== */

.opt4 {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    transition: background 0.4s ease, color 0.4s ease;
    background: var(--opt4-bg);
    color: var(--opt4-text);
    overflow: hidden;
}

/* DARK = matte M3 slate */
.opt4--dark {
    --opt4-bg:        #1A1F2E;
    --opt4-bg-2:      #1F2536;
    --opt4-surface:   #252A3A;
    --opt4-surface-2: #2C3144;
    --opt4-line:      #353B4D;
    --opt4-text:      #F5F5F5;
    --opt4-text-2:    #B0B0B0;
    --opt4-text-3:    #6B7280;
    --opt4-orange:    #FFA726;
    --opt4-green:     #4CAF50;
    --opt4-purple:    #9C7FFF;
    --opt4-pink:      #EC407A;
    --opt4-cyan:      #00BCD4;
    --opt4-amber:     #FFB300;
    --opt4-on-color:  #1A1F2E;
}

/* LIGHT = clean */
.opt4--light {
    --opt4-bg:        #FFFFFF;
    --opt4-bg-2:      #F7F8FA;
    --opt4-surface:   #FFFFFF;
    --opt4-surface-2: #F3F4F6;
    --opt4-line:      #E5E7EB;
    --opt4-text:      #0D1117;
    --opt4-text-2:    #4B5563;
    --opt4-text-3:    #9CA3AF;
    --opt4-orange:    #F57C00;
    --opt4-green:     #2E7D32;
    --opt4-purple:    #6741D9;
    --opt4-pink:      #C2185B;
    --opt4-cyan:      #00838F;
    --opt4-amber:     #E68900;
    --opt4-on-color:  #FFFFFF;
}

/* ========== TOP BAR (56px) ========== */
.opt4-bar.mud-appbar {
    background: var(--opt4-bg) !important;
    border-bottom: 1px solid var(--opt4-line);
    padding-left: clamp(1rem, 4vw, 2rem) !important;
    padding-right: clamp(1rem, 4vw, 2rem) !important;
    height: 56px !important;
    min-height: 56px !important;
}

.opt4 .mud-appbar .mud-icon-button { color: var(--opt4-text) !important; }

.opt4-back {
    color: var(--opt4-text-2) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 0.8rem;
}
.opt4-back:hover { color: var(--opt4-cyan) !important; }

.opt4-mark {
    color: var(--opt4-text) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    position: relative;
}
.opt4-mark::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    height: 1px; width: 0;
    background: var(--opt4-cyan);
    transition: width 0.3s ease;
}
.opt4-mark:hover { color: var(--opt4-cyan) !important; }
.opt4-mark:hover::after { width: 100%; }

/* ========== MAIN ========== */
.opt4-main {
    padding: 0 clamp(1rem, 4vw, 2rem) !important;
    max-width: 1280px !important;
}

/* ========== HERO (top of headline = 120px from viewport top) ==========
   56 (top bar) + 64 (this top padding) = 120 */
.opt4-hero {
    text-align: center;
    padding: 20px 0 0.6rem;
}

.opt4-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--opt4-pink);
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: opt4-rise 0.6s cubic-bezier(0.2,0.7,0.3,1) 0.05s forwards;
}

.opt4-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--opt4-pink);
    box-shadow: 0 0 0 0 var(--opt4-pink);
    animation: opt4-pulse 1.8s ease-out infinite;
}

@keyframes opt4-pulse {
    0%   { box-shadow: 0 0 0 0    rgba(236, 64, 122, 0.55); transform: scale(1); }
    70%  { box-shadow: 0 0 0 10px rgba(236, 64, 122, 0);    transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0    rgba(236, 64, 122, 0);    transform: scale(1); }
}

.opt4-headline {
    max-width: 920px;
    margin: 0 auto 0.6rem auto;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--opt4-text);
}

.opt4-w {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px) skewY(2deg);
    animation: opt4-word-rise 0.55s cubic-bezier(0.2,0.7,0.3,1) forwards;
    animation-delay: calc(var(--i, 0) * 70ms + 180ms);
    margin-right: 0.22em;
    will-change: transform, opacity;
}

@keyframes opt4-word-rise {
    to { opacity: 1; transform: translateY(0) skewY(0); }
}

.opt4-sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--opt4-text-2);
    opacity: 0;
    animation: opt4-rise 0.6s ease 0.7s forwards;
}

@keyframes opt4-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== COLOURED TILES (compact) ========== */
.opt4-tiles { margin-top: 1.1rem !important; }

.opt4-tile.mud-paper {
    background: var(--opt4-surface) !important;
    border: 1px solid var(--opt4-line);
    border-left: 4px solid var(--opt4-accent, var(--opt4-cyan));
    border-radius: 12px !important;
    padding: 1rem 1.1rem 1.1rem !important;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    animation: opt4-tile-in 0.65s cubic-bezier(0.2,0.7,0.3,1) forwards;
    animation-delay: var(--d, 0ms);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform, opacity;
}

@keyframes opt4-tile-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.opt4-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

/* per-tile accent var */
.opt4-tile--orange { --opt4-accent: var(--opt4-orange); }
.opt4-tile--green  { --opt4-accent: var(--opt4-green);  }
.opt4-tile--purple { --opt4-accent: var(--opt4-purple); }

/* Tinted glow patch from the accent — adds colour without overwhelming */
.opt4-tile::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 140px;
    background: radial-gradient(circle at top right, var(--opt4-accent), transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

.opt4-tile-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.2rem;
    background: var(--opt4-accent);
    color: var(--opt4-on-color);
}
.opt4-tile--purple .opt4-tile-icon { color: #FFFFFF; }
.opt4-tile-icon .mud-icon-root { font-size: 1.3rem !important; color: inherit !important; }

.opt4-tile-pill.mud-chip {
    align-self: flex-start !important;
    margin: 0 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.14em !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border: 0 !important;
    height: 22px !important;
    padding: 0 0.6rem !important;
    color: var(--opt4-on-color) !important;
    background: var(--opt4-accent) !important;
}
.opt4-tile--purple .opt4-tile-pill.mud-chip { color: #FFFFFF !important; }

.opt4-tile-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.1rem 0 0 0;
    letter-spacing: -0.01em;
    color: var(--opt4-text);
}

.opt4-tile-body {
    color: var(--opt4-text-2);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.opt4-tile-btn.mud-button {
    align-self: flex-start;
    background: var(--opt4-accent) !important;
    color: var(--opt4-on-color) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    padding: 0.4rem 0.9rem !important;
    font-size: 0.85rem !important;
    margin-top: 0.3rem;
}
.opt4-tile--purple .opt4-tile-btn.mud-button { color: #FFFFFF !important; }
.opt4-tile-btn.mud-button:hover { filter: brightness(1.08); }

/* ========== STATUS PILL STRIP (cascading on land) ========== */
.opt4-pillstrip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.7rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--opt4-line);
}

.opt4-pl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    color: var(--opt4-text-2);
    opacity: 0;
    animation: opt4-rise 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 1100ms);
}

.opt4-pl-sep { color: var(--opt4-text-3); font-size: 0.7rem; opacity: 0.7; }

/* ========== INNER PAGES ========== */
.opt4-page {
    padding: 1rem 0;
    animation: opt4-rise 0.6s ease both;
}

.opt4-page > .mud-chip { margin-bottom: 0.7rem !important; }

.opt4-page-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.2rem 0;
    color: var(--opt4-text);
    max-width: 760px;
    position: relative;
    display: inline-block;
}

.opt4-page-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -8px;
    height: 3px;
    width: 0;
    background: var(--opt4-pink);
    animation: opt4-drawline 0.7s cubic-bezier(0.2,0.7,0.3,1) 0.4s forwards;
}

@keyframes opt4-drawline { to { width: 64px; } }

.opt4-row-card.mud-paper {
    background: var(--opt4-surface) !important;
    border: 1px solid var(--opt4-line);
    border-radius: 10px !important;
    padding: 1.1rem 1.2rem !important;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
    opacity: 0;
    transform: translateY(16px);
    animation: opt4-rise 0.5s cubic-bezier(0.2,0.7,0.3,1) forwards;
}
.opt4-page .mud-grid > div:nth-child(1) .opt4-row-card { animation-delay: 200ms; }
.opt4-page .mud-grid > div:nth-child(2) .opt4-row-card { animation-delay: 320ms; }
.opt4-page .mud-grid > div:nth-child(3) .opt4-row-card { animation-delay: 440ms; }
.opt4-page .mud-grid > div:nth-child(4) .opt4-row-card { animation-delay: 560ms; }

.opt4-row-card:hover { transform: translateY(-2px); border-color: var(--opt4-text-3); }
.opt4-row-card--orange { border-left: 3px solid var(--opt4-orange); }
.opt4-row-card--green  { border-left: 3px solid var(--opt4-green);  }
.opt4-row-card--purple { border-left: 3px solid var(--opt4-purple); }
.opt4-row-card--cyan   { border-left: 3px solid var(--opt4-cyan);   }
.opt4-row-card--pink   { border-left: 3px solid var(--opt4-pink);   }

.opt4-row-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.4rem 0 0.3rem 0;
    color: var(--opt4-text);
}
.opt4-row-card p {
    color: var(--opt4-text-2);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.opt4-row-icon.mud-icon-root { font-size: 1.5rem !important; }
.opt4-row-icon--orange { color: var(--opt4-orange) !important; }
.opt4-row-icon--green  { color: var(--opt4-green)  !important; }
.opt4-row-icon--purple { color: var(--opt4-purple) !important; }
.opt4-row-icon--cyan   { color: var(--opt4-cyan)   !important; }
.opt4-row-icon--pink   { color: var(--opt4-pink)   !important; }

.opt4-cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.opt4-cta-btn.mud-button {
    background: var(--opt4-purple) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 0.5rem 1.2rem !important;
}

.opt4-back-link.mud-button {
    color: var(--opt4-text-2) !important;
    border-color: var(--opt4-line) !important;
    border-radius: 8px !important;
    text-transform: none !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.06em !important;
    padding: 0.5rem 1.1rem !important;
    margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .opt4-w, .opt4-eyebrow, .opt4-sub, .opt4-tile.mud-paper, .opt4-pl, .opt4-row-card, .opt4-page-title::after {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .opt4-pulse-dot { animation: none; }
}

@media (max-width: 600px) {
    .opt4-back { display: none; }
    .opt4-hero { padding: 32px 0 0.6rem; }
}

/* ========== Coloured "Back to overview" — top of inner page ========== */
.opt4-back-link.mud-button {
    margin: 0 0 0.7rem 0 !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 8px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    background: transparent !important;
    border: 1px solid var(--opt4-accent, var(--opt4-line)) !important;
    color: var(--opt4-accent, var(--opt4-text-2)) !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.opt4-back-link.mud-button:hover {
    background: var(--opt4-accent, transparent) !important;
    color: var(--opt4-on-color) !important;
    transform: translateX(-2px);
}
.opt4-back-link.mud-button .mud-icon-root { color: inherit !important; }

.opt4-back-link--orange { --opt4-accent: var(--opt4-orange); }
.opt4-back-link--green  { --opt4-accent: var(--opt4-green);  }
.opt4-back-link--purple { --opt4-accent: var(--opt4-purple); }

/* On purple, ensure white text on solid bg */
.opt4-back-link--purple.mud-button:hover { color: #FFFFFF !important; }

/* ========== Teal tile variant (4th tile — Who we are) ========== */
.opt4-tile--teal { --opt4-accent: var(--opt4-cyan); }

.opt4-tile-pill--teal.mud-chip   { background: var(--opt4-cyan) !important; color: var(--opt4-on-color) !important; }
.opt4-tile-btn--teal.mud-button  { background: var(--opt4-cyan) !important; color: var(--opt4-on-color) !important; }

.opt4-back-link--teal { --opt4-accent: var(--opt4-cyan); }

/* ========== Continuous sweep line under the headline ========== */
.opt4-sweep {
    margin: 0.8rem auto 0 auto;
    width: 220px;
    height: 1px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: opt4-rise 0.6s ease 1s forwards;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--opt4-line) 20%,
        var(--opt4-line) 80%,
        transparent 100%);
}

.opt4-sweep::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--opt4-pink) 50%,
        transparent 100%);
    transform: translateX(-100%);
    animation: opt4-sweep-loop 3.8s cubic-bezier(0.4, 0, 0.2, 1) 1.5s infinite;
}

@keyframes opt4-sweep-loop {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* ========== Tile hover: subtle shimmer across the top edge ========== */
.opt4-tile {
    position: relative;
}

.opt4-tile::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--opt4-accent, var(--opt4-cyan)) 50%,
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.2,0.7,0.3,1);
    z-index: 2;
}

.opt4-tile:hover::before { left: 100%; }

@media (prefers-reduced-motion: reduce) {
    .opt4-sweep::before, .opt4-tile::before { animation: none !important; }
}

/* ========================================================
   KELLY BOESCH-INSPIRED GALLERY ATMOSPHERE
   Each tile becomes a small art panel with strong colour
   presence; the whole page sits on a drifting starfield.
   ======================================================== */

/* Page-level drifting starfield — extremely subtle constellation
   that slowly moves diagonally. Lives behind everything. */
.opt4::before {
    content: '';
    position: fixed;
    inset: -10vh -10vw;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.18), transparent 50%),
        radial-gradient(1px 1px at 70% 20%, rgba(236,64,122,0.22), transparent 50%),
        radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.12), transparent 50%),
        radial-gradient(1px 1px at 85% 75%, rgba(0,188,212,0.18), transparent 50%),
        radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.14), transparent 50%),
        radial-gradient(1px 1px at 60% 45%, rgba(156,127,255,0.18), transparent 50%),
        radial-gradient(2px 2px at 30% 15%, rgba(255,255,255,0.08), transparent 50%),
        radial-gradient(2px 2px at 90% 50%, rgba(76,175,80,0.14), transparent 50%);
    background-size: 600px 600px;
    background-repeat: repeat;
    opacity: 0.6;
    animation: opt4-starfield-drift 60s linear infinite;
}

.opt4--light::before {
    /* Lighter version on white background — barely there */
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(13,17,23,0.15), transparent 50%),
        radial-gradient(1px 1px at 70% 20%, rgba(194,24,91,0.18), transparent 50%),
        radial-gradient(1px 1px at 85% 75%, rgba(0,131,143,0.15), transparent 50%),
        radial-gradient(1px 1px at 60% 45%, rgba(103,65,217,0.16), transparent 50%);
    opacity: 0.5;
}

@keyframes opt4-starfield-drift {
    from { transform: translate(0, 0); }
    to   { transform: translate(600px, 600px); }
}

/* Make sure content sits above the starfield */
.opt4 > * { position: relative; z-index: 1; }

/* ========================================================
   TILE — gallery panel treatment
   Strong accent gradient backdrop, painterly grain, bottom
   highlight that breathes.
   ======================================================== */

/* Replace the surface fill with a colour-mix gradient — the
   accent bleeds across the top half of the tile like a painted wash. */
.opt4-tile.mud-paper {
    background:
        radial-gradient(ellipse 140% 100% at 50% -40%,
            color-mix(in srgb, var(--opt4-accent, var(--opt4-cyan)) 32%, transparent) 0%,
            transparent 60%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--opt4-accent, var(--opt4-cyan)) 6%, var(--opt4-surface)) 0%,
            var(--opt4-surface) 70%) !important;
}

/* Painterly grain overlay (SVG fractal noise) — gives the colour
   that subtle "brushed" texture you see on art sites. */
.opt4-tile.mud-paper {
    position: relative;
    overflow: hidden;
}

.opt4-tile.mud-paper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* Tile children above the grain */
.opt4-tile > * { position: relative; z-index: 1; }

/* The breathing accent line at the bottom of each tile */
.opt4-tile {
    border-bottom: 2px solid transparent !important;
}

.opt4-tile.mud-paper {
    box-shadow: inset 0 -2px 0 0
        color-mix(in srgb, var(--opt4-accent, var(--opt4-cyan)) 40%, transparent) !important;
    animation: opt4-breathe 4s ease-in-out infinite;
    animation-delay: var(--d, 0ms);
}

@keyframes opt4-breathe {
    0%, 100% { box-shadow: inset 0 -2px 0 0 color-mix(in srgb, var(--opt4-accent, var(--opt4-cyan)) 40%, transparent) !important; }
    50%      { box-shadow: inset 0 -3px 0 0 color-mix(in srgb, var(--opt4-accent, var(--opt4-cyan)) 90%, transparent) !important; }
}

/* Stronger lift on hover — gallery panel feel */
.opt4-tile:hover {
    transform: translateY(-6px) !important;
    box-shadow:
        inset 0 -3px 0 0 var(--opt4-accent, var(--opt4-cyan)),
        0 22px 44px rgba(0,0,0,0.32) !important;
}

/* ========================================================
   HERO — slow aurora drift behind the headline
   ======================================================== */
.opt4-hero {
    position: relative;
    isolation: isolate;
}

.opt4-hero::before {
    content: '';
    position: absolute;
    inset: -40px -20% -20px -20%;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%,
            rgba(236, 64, 122, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 70% 50%,
            rgba(0, 188, 212, 0.10) 0%, transparent 60%);
    filter: blur(12px);
    animation: opt4-aurora 18s ease-in-out infinite;
    opacity: 0.9;
}

.opt4--light .opt4-hero::before {
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(194,24,91,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 70% 50%, rgba(0,131,143,0.08) 0%, transparent 60%);
}

@keyframes opt4-aurora {
    0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.9; }
    33%      { transform: translate(20px, -8px) scale(1.05); opacity: 1; }
    66%      { transform: translate(-15px, 6px) scale(0.97); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
    .opt4::before, .opt4-tile.mud-paper, .opt4-hero::before { animation: none !important; }
}

/* ========================================================
   SERVICE CONSTELLATION — Capitec-style network behind hero
   ======================================================== */

.opt4-hero {
    position: relative;
    overflow: visible;
    padding-top: 32px;
    padding-bottom: 1rem;
    min-height: 280px;
}

.opt4-constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    animation: opt4-rise 1.4s ease 0.2s forwards;
}

.opt4-hero-content {
    position: relative;
    z-index: 2;
}

/* Connecting lines — slow opacity pulse so the web "breathes" */
.opt4-cnx line {
    stroke: var(--opt4-line-2);
    stroke-width: 1;
    opacity: 0.35;
    animation: opt4-line-pulse 6s ease-in-out infinite;
}
.opt4-cnx line:nth-child(2n)  { animation-delay: -1.5s; }
.opt4-cnx line:nth-child(3n)  { animation-delay: -3s; }
.opt4-cnx line:nth-child(4n)  { animation-delay: -4.5s; }

@keyframes opt4-line-pulse {
    0%, 100% { opacity: 0.18; }
    50%      { opacity: 0.55; }
}

/* Node hexagons + icons */
.opt4-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: opt4-float 7s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.3s);
}

.opt4-node circle {
    fill: var(--opt4-bg-2);
    stroke: var(--c, var(--opt4-cyan));
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c, var(--opt4-cyan)) 65%, transparent));
}

.opt4-node text {
    fill: var(--c, var(--opt4-cyan));
    font-weight: 400;
    font-size: 18px;
}

.opt4-halos circle {
    opacity: 0.6;
    animation: opt4-halo-breathe 4.5s ease-in-out infinite;
}
.opt4-halos circle:nth-child(2n) { animation-delay: -1.2s; }
.opt4-halos circle:nth-child(3n) { animation-delay: -2.4s; }
.opt4-halos circle:nth-child(4n) { animation-delay: -3.6s; }

@keyframes opt4-halo-breathe {
    0%, 100% { transform: scale(1);   opacity: 0.35; }
    50%      { transform: scale(1.18); opacity: 0.7; }
}

@keyframes opt4-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Light theme — softer */
.opt4--light .opt4-cnx line { opacity: 0.18; }
.opt4--light .opt4-node circle { fill: #FFFFFF; stroke-width: 1.5; }
.opt4--light .opt4-halos circle { opacity: 0.25; }

@media (prefers-reduced-motion: reduce) {
    .opt4-constellation, .opt4-node, .opt4-halos circle, .opt4-cnx line {
        animation: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 900px) {
    .opt4-constellation { opacity: 0.5 !important; }
}

/* ====================================================================
   FINAL OVERRIDES — strip constellation, starfield, aurora, grain,
   breathing line. Pure quiet matte page with a BIG headline.
   ==================================================================== */

/* Kill page-level drifting starfield */
.opt4::before { display: none !important; }

/* Kill hero aurora glow */
.opt4-hero::before { display: none !important; }

/* Kill the constellation SVG entirely (no longer in markup, but safety) */
.opt4-constellation { display: none !important; }

/* Kill tile painterly grain + colour-mix backdrop — go back to clean surface */
.opt4-tile.mud-paper {
    background: var(--opt4-surface) !important;
    box-shadow: none !important;
    animation: opt4-tile-in 0.65s cubic-bezier(0.2,0.7,0.3,1) forwards !important;
    animation-delay: var(--d, 0ms) !important;
}
.opt4-tile.mud-paper::after { display: none !important; }
.opt4-tile.mud-paper::before { display: none !important; }

/* Hover stays clean */
.opt4-tile:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18) !important;
}

/* ── BIG OUTSTANDING HEADLINE ── */
.opt4-headline {
    max-width: 1100px !important;
    margin: 0.4rem auto 0 auto !important;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem) !important;
    font-weight: 800 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.03em !important;
    color: var(--opt4-text) !important;
}

.opt4-hero {
    text-align: center;
    padding: 28px 0 12px !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.opt4-eyebrow {
    margin-bottom: 1rem !important;
    font-size: 0.82rem !important;
}

/* Sweep stays removed since it was tied to the constellation hero */
.opt4-sweep { display: none !important; }

/* Status pillstrip stays gone too */
.opt4-pillstrip { display: none !important; }

/* ====================================================================
   EDITORIAL ARTICLE LAYOUT — for /option4/{who,what,help}
   Plain HTML headings + paragraphs. No cards. No MudPaper. Looks
   like a regular content page, not a dashboard.
   ==================================================================== */

.opt4-article {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    color: var(--opt4-text);
    animation: opt4-rise 0.7s cubic-bezier(0.2,0.7,0.3,1) both;
}

/* Per-page accent (overrides the cyan default) */
.opt4-article--teal   { --opt4-article-accent: var(--opt4-cyan);   }
.opt4-article--orange { --opt4-article-accent: var(--opt4-orange); }
.opt4-article--green  { --opt4-article-accent: var(--opt4-green);  }
.opt4-article--purple { --opt4-article-accent: var(--opt4-purple); }
.opt4-article         { --opt4-article-accent: var(--opt4-cyan);   }

/* Tiny back link — top + bottom of article */
.opt4-tiny-back {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--opt4-text-3) !important;
    text-decoration: none;
    margin-bottom: 1.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.opt4-tiny-back:hover {
    color: var(--opt4-article-accent) !important;
    transform: translateX(-3px);
}

/* Header — number eyebrow + big article title + lede */
.opt4-article-head {
    margin-bottom: 2.6rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--opt4-line);
}

.opt4-article-num {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--opt4-article-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.opt4-article-title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 1.4rem 0;
    color: var(--opt4-text);
}

.opt4-article-lede {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    color: var(--opt4-text-2);
    margin: 0;
    max-width: 60ch;
}

/* Body sections — heading + paragraph, hairline divider between */
.opt4-article-section {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--opt4-line);
}
.opt4-article-section:last-of-type {
    border-bottom: 0;
}

.opt4-article-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--opt4-text);
    margin: 0 0 0.6rem 0;
    position: relative;
    padding-left: 14px;
}

.opt4-article-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--opt4-article-accent);
    border-radius: 50%;
}

.opt4-article-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--opt4-text-2);
    margin: 0;
    max-width: 64ch;
}

.opt4-article-section strong {
    color: var(--opt4-article-accent);
    font-weight: 700;
}

/* Footer */
.opt4-article-foot {
    margin-top: 2.4rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--opt4-line);
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.opt4-article-cta {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background: var(--opt4-article-accent);
    color: var(--opt4-on-color) !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.opt4-article-cta:hover {
    transform: translateY(-2px);
    opacity: 0.93;
}

/* Make sure the old card grid is invisible if leftover markup persists */
.opt4-article .opt4-row-card { display: none !important; }

/* ====================================================================
   ADOBE-STYLE STAGE + GLASSMORPHIC TILES
   Saturated magenta panel as backdrop, frosted-glass tiles sitting
   on top, floating KPI badges and a glass CTA pill.
   ==================================================================== */

.opt4-stage {
    position: relative;
    margin: 1.4rem auto 0;
    padding: 3rem 2rem 3.4rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #E91E63 0%, #9C27B0 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Subtle paint-texture overlay on the stage (very faint) */
.opt4-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.opt4-stage > * { position: relative; z-index: 1; }

/* ── GLASS TILES on the stage ── */
.opt4-stage .opt4-tile.mud-paper {
    background: rgba(15, 17, 28, 0.55) !important;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-left: 3px solid var(--opt4-accent) !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06) !important;
}

.opt4-stage .opt4-tile.mud-paper::after { display: none !important; }

.opt4-stage .opt4-tile:hover {
    transform: translateY(-4px) !important;
    background: rgba(15, 17, 28, 0.65) !important;
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.10) !important;
}

.opt4-stage .opt4-tile-title,
.opt4-stage .opt4-tile-body {
    color: #FFFFFF !important;
}
.opt4-stage .opt4-tile-body {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* ── Floating glass KPI badges ── */
.opt4-kpi {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem 0.55rem 0.6rem;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    animation: opt4-rise 0.7s ease 0.7s both;
}

.opt4-kpi--tl { top: 16px; left: 22px; }
.opt4-kpi--tr { top: 16px; right: 22px; animation-delay: 0.9s; }

.opt4-kpi-ring {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.opt4-kpi-svg {
    width: 36px;
    height: 36px;
    transform: rotate(-90deg);
}

.opt4-kpi-svg circle {
    fill: none;
    stroke: rgba(255,255,255,0.95);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.opt4-kpi-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
}
.opt4-kpi-val small { font-size: 0.62rem; opacity: 0.85; margin-left: 1px; }

.opt4-kpi-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
}

/* ── Big floating CTA pill at the bottom (Adobe "Create customer journey") ── */
.opt4-cta-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem auto 0;
    padding: 0.85rem 1.6rem 0.85rem 0.6rem;
    width: fit-content;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.005em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    animation: opt4-rise 0.7s ease 1.1s both;
}

.opt4-cta-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.opt4-cta-pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E91E63;
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.25);
}
.opt4-cta-pill-icon .mud-icon-root { color: #FFFFFF !important; font-size: 1rem !important; }

/* Light theme — softer stage */
.opt4--light .opt4-stage {
    background: linear-gradient(135deg, #FF4081 0%, #BA68C8 100%);
}
.opt4--light .opt4-stage .opt4-tile.mud-paper {
    background: rgba(255, 255, 255, 0.78) !important;
}
.opt4--light .opt4-stage .opt4-tile-title { color: #0D1117 !important; }
.opt4--light .opt4-stage .opt4-tile-body  { color: #3A3F45 !important; }

/* Responsive: hide KPI badges on small screens */
@media (max-width: 800px) {
    .opt4-stage { padding: 1.6rem 1rem 2rem; }
    .opt4-kpi { display: none; }
    .opt4-cta-pill { font-size: 0.9rem; padding: 0.7rem 1.2rem 0.7rem 0.5rem; }
}

/* ====================================================================
   THE BOARD — solid red stage with scaffolding marks
   ==================================================================== */

.opt4-stage--red {
    background: #E60000 !important;
    padding: clamp(2rem, 4vw, 3.4rem) clamp(1.4rem, 3vw, 2.4rem) clamp(2.2rem, 4vw, 3.4rem);
    min-height: 520px;
    border-radius: 0 !important;
    margin-top: 1.6rem;
}

/* Kill the previous gradient noise overlay on the red board */
.opt4-stage--red::before { display: none !important; }

/* Scaffolding SVG fills the board */
.opt4-scaffold {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Floating decorative accents (monitor + cursor) */
.opt4-acc {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    animation: opt4-rise 0.7s ease 0.9s both;
}

.opt4-acc--monitor {
    top: 70px;
    right: 110px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}
.opt4-acc--monitor .mud-icon-root {
    color: #FFFFFF !important;
    font-size: 1.5rem !important;
}

.opt4-acc--cursor {
    bottom: 130px;
    right: 80px;
    color: #FFFFFF;
}
.opt4-acc--cursor .mud-icon-root {
    color: #FFFFFF !important;
    font-size: 1.8rem !important;
    transform: rotate(-90deg);
}

/* Tiles need to sit ABOVE the scaffolding */
.opt4-stage--red .opt4-tiles {
    position: relative;
    z-index: 2;
    margin-top: 1rem !important;
}

/* Light theme — red stays bold even in light mode (it's the brand moment) */
.opt4--light .opt4-stage--red {
    background: #E60000 !important;
}

/* Mobile: simplify the scaffolding so it doesn't overwhelm */
@media (max-width: 800px) {
    .opt4-stage--red { min-height: 0; padding: 1.4rem 1rem 1.6rem; }
    .opt4-acc { display: none; }
    .opt4-scaffold { opacity: 0.4; }
}

/* Hide the old KPI/CTA pills since the new layout doesn't include them */
.opt4-kpi, .opt4-cta-pill { display: none !important; }

/* ====================================================================
   CINEMATIC POLISH
   • Cursor-tracked parallax (JS sets --mx, --my on .opt4-stage--red)
   • Refined tile microinteractions
   • Slow-rotating orbital element in the bottom-right
   • Soft halo glow on tile hover
   ==================================================================== */

/* Scaffolding drifts WITH cursor — subtle, slow */
.opt4-stage--red .opt4-scaffold {
    transform: translate3d(
        calc(var(--mx, 0) * 14px),
        calc(var(--my, 0) * 14px),
        0);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Monitor + cursor accents move OPPOSITE to cursor, stronger — feels foreground */
.opt4-stage--red .opt4-acc--monitor {
    transform: translate3d(
        calc(var(--mx, 0) * -28px),
        calc(var(--my, 0) * -22px),
        0);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.opt4-stage--red .opt4-acc--cursor {
    transform: translate3d(
        calc(var(--mx, 0) * -36px),
        calc(var(--my, 0) * -30px),
        0);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Tiles drift slightly opposite — much smaller multiplier, slower transition */
.opt4-stage--red .opt4-tile.mud-paper {
    will-change: transform;
}
.opt4-stage--red .opt4-tiles {
    transform: translate3d(
        calc(var(--mx, 0) * -6px),
        calc(var(--my, 0) * -4px),
        0);
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ── ORBITAL element ── slow rotation in bottom-right ── */
.opt4-orbital {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    z-index: 1;
    pointer-events: none;
    animation: opt4-spin-slow 26s linear infinite;
    transform-origin: center;
}

.opt4-stage--red .opt4-orbital {
    /* Parallax: drift opposite, stronger */
    --tx: calc(var(--mx, 0) * -24px);
    --ty: calc(var(--my, 0) * -18px);
    transform: translate3d(var(--tx), var(--ty), 0);
}

@keyframes opt4-spin-slow {
    from { rotate: 0deg; }
    to   { rotate: 360deg; }
}

/* Have to use CSS animation that composes with the parallax transform —
   wrap the rotation in an inner element instead */
.opt4-orbital {
    animation: opt4-orbital-tilt 26s linear infinite;
}
@keyframes opt4-orbital-tilt {
    0%   { rotate: 0deg; }
    100% { rotate: 360deg; }
}

/* ── REFINED TILE HOVER ── stronger lift, halo glow, smoother bezier ── */
.opt4-stage--red .opt4-tile.mud-paper {
    transition:
        transform 0.4s cubic-bezier(0.2, 0.85, 0.3, 1),
        background 0.3s ease,
        box-shadow 0.4s ease,
        border-color 0.3s ease !important;
}

.opt4-stage--red .opt4-tile:hover {
    transform: translateY(-8px) scale(1.015) !important;
    background: rgba(15, 17, 28, 0.72) !important;
    box-shadow:
        0 26px 56px rgba(0, 0, 0, 0.42),
        0 0 0 1px var(--opt4-accent),
        0 0 32px color-mix(in srgb, var(--opt4-accent) 28%, transparent),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.14) !important;
}

/* Icon block scales gently on tile hover */
.opt4-stage--red .opt4-tile-icon {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.opt4-stage--red .opt4-tile:hover .opt4-tile-icon {
    transform: scale(1.08) rotate(-3deg);
}

/* Button gets a tiny travel + brighten */
.opt4-stage--red .opt4-tile-btn.mud-button {
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease !important;
}
.opt4-stage--red .opt4-tile:hover .opt4-tile-btn.mud-button {
    transform: translateX(3px);
    filter: brightness(1.08);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--opt4-accent) 50%, transparent);
}

/* Cursor-following spotlight inside the tile (subtle white veil) */
.opt4-stage--red .opt4-tile.mud-paper {
    background-image:
        radial-gradient(
            300px circle at calc(var(--mx, 0) * 100% + 50%) calc(var(--my, 0) * 100% + 50%),
            rgba(255,255,255,0.06),
            transparent 60%);
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
    .opt4-scaffold,
    .opt4-acc--monitor,
    .opt4-acc--cursor,
    .opt4-tiles,
    .opt4-orbital {
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 800px) {
    .opt4-orbital { display: none; }
}

/* ====================================================================
   THREE-BUTTON STACK — centred inside the dashed circle on the board
   ==================================================================== */

/* Hide the old MudGrid tiles if any leftover markup mounts */
.opt4-stage--red .opt4-tiles,
.opt4-stage--red .mud-grid,
.opt4-stage--red .opt4-tile.mud-paper { display: none !important; }

.opt4-jstack {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 440px;
    padding: 2rem 0;
    /* Cursor parallax — buttons drift slightly opposite */
    transform: translate3d(
        calc(var(--mx, 0) * -8px),
        calc(var(--my, 0) * -6px),
        0);
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.opt4-jbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.05rem 1.6rem 1.05rem 1.2rem;
    min-width: 340px;
    background: var(--opt4-jbtn-bg);
    color: var(--opt4-jbtn-fg) !important;
    text-decoration: none;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
    opacity: 0;
    transform: translateY(20px);
    animation: opt4-rise 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    transition:
        transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1),
        box-shadow 0.3s ease,
        filter 0.25s ease;
}

.opt4-jbtn:nth-child(1) { animation-delay: 0.20s; }
.opt4-jbtn:nth-child(2) { animation-delay: 0.36s; }
.opt4-jbtn:nth-child(3) { animation-delay: 0.52s; }

.opt4-jbtn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
    filter: brightness(1.05);
}

.opt4-jbtn:active {
    transform: translateY(-1px) scale(1.01);
}

/* Per-button colour vars */
.opt4-jbtn--teal   { --opt4-jbtn-bg: #00BCD4; --opt4-jbtn-fg: #0A0A0A; }
.opt4-jbtn--orange { --opt4-jbtn-bg: #FFA726; --opt4-jbtn-fg: #0A0A0A; }
.opt4-jbtn--green  { --opt4-jbtn-bg: #4CAF50; --opt4-jbtn-fg: #FFFFFF; }

/* Number chip on the left of each button */
.opt4-jbtn-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    color: inherit;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.opt4-jbtn--green .opt4-jbtn-num { background: rgba(0, 0, 0, 0.28); color: #FFFFFF; }

.opt4-jbtn-label {
    flex: 1;
    text-align: left;
}

.opt4-jbtn-arrow {
    font-size: 1.3rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.opt4-jbtn:hover .opt4-jbtn-arrow {
    transform: translateX(6px);
}

@media (max-width: 600px) {
    .opt4-jbtn { min-width: 0; width: 90%; font-size: 1rem; }
    .opt4-jstack { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .opt4-jbtn { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ── Force the headline to a single line ── */
.opt4-headline {
    max-width: none !important;
    white-space: nowrap !important;
    font-size: clamp(1.3rem, 2.6vw, 2.4rem) !important;
    letter-spacing: -0.025em !important;
}

/* On very small screens, allow wrap rather than overflow */
@media (max-width: 700px) {
    .opt4-headline {
        white-space: normal !important;
        font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
    }
}

/* ── Tighten the gap between the headline and the red board ── */
.opt4-hero {
    padding-top: 16px !important;
    padding-bottom: 0 !important;
}

.opt4-headline {
    margin-bottom: 0 !important;
}

.opt4-stage--red {
    margin-top: 0.4rem !important;
}

/* ====================================================================
   MUTED · MATERIAL DESIGN · MATTE BLACK PASS
   Tone everything down to MD-palette muted values.
   Drop "blue-tinted slate" page bg for a true matte charcoal.
   ==================================================================== */

/* ── Page background: true matte charcoal, no blue tint, no gloss ── */
.opt4--dark {
    --opt4-bg:        #121212 !important;   /* Material's recommended dark-mode bg */
    --opt4-bg-2:      #1A1A1A !important;
    --opt4-surface:   #1E1E1E !important;
    --opt4-surface-2: #242424 !important;
    --opt4-line:      #2C2C2C !important;
    --opt4-text:      #ECECEC !important;
    --opt4-text-2:    #B0B0B0 !important;
    --opt4-text-3:    #6B6B6B !important;
}

.opt4 {
    background: #121212 !important;
}

.opt4-bar.mud-appbar {
    background: #121212 !important;
    border-bottom-color: #2C2C2C !important;
}

/* ── The board: drop from neon red to Material deep red (muted) ── */
.opt4-stage--red {
    background: #B71C1C !important;  /* Material Red 900 — same brand energy, no sting */
}

/* Subtle inner shadow to bed the board into the page rather than float on top */
.opt4-stage--red {
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* ── Scaffolding elements muted ── */
/* Replace bright #1565C0 blue square with a muted slate-blue */
.opt4-scaffold rect[fill="#1565C0"] { fill: #455A64 !important; }

/* Soften white dashed circle and rectangle */
.opt4-scaffold circle[stroke-dasharray] { stroke: rgba(255,255,255,0.32) !important; }
.opt4-scaffold rect[stroke-dasharray]   { stroke: rgba(255,255,255,0.26) !important; }

/* Soften corner brackets — was hard black, now charcoal */
.opt4-scaffold path[stroke="#0A0A0A"]   { stroke: #1F1F1F !important; }

/* Top-right square outline — soften to translucent white */
.opt4-scaffold rect[stroke="#FFFFFF"]   { stroke: rgba(255,255,255,0.55) !important; }

/* Soften the faded left gradient */
.opt4-scaffold rect[fill*="opt4FadedLeft"] { opacity: 0.6; }

/* Soften orbital element */
.opt4-orbital circle[stroke] { stroke: rgba(255,255,255,0.28) !important; }
.opt4-orbital circle:not([stroke]) { opacity: 0.7; }

/* Monitor + cursor accents — soften */
.opt4-acc--monitor { background: #1F1F1F !important; }

/* ── Three buttons: muted Material 700-shade palette ── */
.opt4-jbtn--teal   { --opt4-jbtn-bg: #00796B !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4-jbtn--orange { --opt4-jbtn-bg: #EF6C00 !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4-jbtn--green  { --opt4-jbtn-bg: #2E7D32 !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* Button number chip — darker disc against the muted button */
.opt4-jbtn-num {
    background: rgba(0, 0, 0, 0.30) !important;
    color: #FFFFFF !important;
}

/* Softer button shadow — less glossy "pop", more grounded */
.opt4-jbtn {
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.10) !important;
}
.opt4-jbtn:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.16) !important;
}

/* ── Eyebrow + headline: keep but soften the eyebrow pink ── */
.opt4-eyebrow {
    color: #D14E7E !important;   /* muted pink (Material Pink 300) instead of vibrant 400 */
}
.opt4-pulse-dot {
    background: #D14E7E !important;
}

/* ── Top-bar mark hover: muted teal not bright cyan ── */
.opt4-mark::after { background: #00796B !important; }
.opt4-mark:hover  { color: #00796B !important; }
.opt4-back:hover  { color: #00796B !important; }

/* ====================================================================
   PALETTE SWITCHER — fixed right-side panel + 7 palette overrides
   ==================================================================== */

.opt4-palette-picker {
    position: fixed;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    min-width: 196px;
    animation: opt4-rise 0.6s ease 0.3s both;
}

.opt4-palette-head {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #888;
    padding: 4px 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.opt4-swatch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ECECEC;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: left;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.opt4-swatch:hover {
    background: rgba(255, 255, 255, 0.04);
}
.opt4-swatch.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.opt4-swatch-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.opt4-swatch-row {
    display: flex;
    gap: 3px;
}
.opt4-swatch-row i {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}

@media (max-width: 1100px) {
    .opt4-palette-picker { min-width: 0; padding: 10px 8px; right: 8px; }
    .opt4-swatch-name { display: none; }
    .opt4-swatch { padding: 6px; }
}

/* ============================================================
   PALETTE OVERRIDES — each scoped under .opt4-palette--<name>
   ============================================================ */

/* ── 1 · Material Red (default — already applied via base muted rules) ── */
.opt4.opt4-palette--material-red .opt4-stage--red { background: #B71C1C !important; }
.opt4.opt4-palette--material-red .opt4-jbtn--teal   { --opt4-jbtn-bg: #00796B !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4.opt4-palette--material-red .opt4-jbtn--orange { --opt4-jbtn-bg: #EF6C00 !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4.opt4-palette--material-red .opt4-jbtn--green  { --opt4-jbtn-bg: #2E7D32 !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 2 · Midnight ── deep indigo board, cyan/amber/pink ── */
.opt4.opt4-palette--midnight .opt4-stage--red { background: #1A237E !important; }
.opt4.opt4-palette--midnight .opt4-jbtn--teal   { --opt4-jbtn-bg: #00ACC1 !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4.opt4-palette--midnight .opt4-jbtn--orange { --opt4-jbtn-bg: #FFC107 !important; --opt4-jbtn-fg: #000000 !important; }
.opt4.opt4-palette--midnight .opt4-jbtn--green  { --opt4-jbtn-bg: #E91E63 !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 3 · Deep Ocean ── teal-blue board, coral/sand/mint ── */
.opt4.opt4-palette--deep-ocean .opt4-stage--red { background: #004D5A !important; }
.opt4.opt4-palette--deep-ocean .opt4-jbtn--teal   { --opt4-jbtn-bg: #80CBC4 !important; --opt4-jbtn-fg: #003B47 !important; }
.opt4.opt4-palette--deep-ocean .opt4-jbtn--orange { --opt4-jbtn-bg: #FF8A65 !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4.opt4-palette--deep-ocean .opt4-jbtn--green  { --opt4-jbtn-bg: #FFD180 !important; --opt4-jbtn-fg: #3E2723 !important; }

/* ── 4 · Royal Purple ── ── */
.opt4.opt4-palette--royal .opt4-stage--red { background: #4A148C !important; }
.opt4.opt4-palette--royal .opt4-jbtn--teal   { --opt4-jbtn-bg: #AB47BC !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4.opt4-palette--royal .opt4-jbtn--orange { --opt4-jbtn-bg: #FFB300 !important; --opt4-jbtn-fg: #000000 !important; }
.opt4.opt4-palette--royal .opt4-jbtn--green  { --opt4-jbtn-bg: #26A69A !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 5 · Forest ── ── */
.opt4.opt4-palette--forest .opt4-stage--red { background: #33691E !important; }
.opt4.opt4-palette--forest .opt4-jbtn--teal   { --opt4-jbtn-bg: #8BC34A !important; --opt4-jbtn-fg: #1B2D10 !important; }
.opt4.opt4-palette--forest .opt4-jbtn--orange { --opt4-jbtn-bg: #FF8F00 !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4.opt4-palette--forest .opt4-jbtn--green  { --opt4-jbtn-bg: #795548 !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 6 · Sunset ── burnt sienna board ── */
.opt4.opt4-palette--sunset .opt4-stage--red { background: #BF360C !important; }
.opt4.opt4-palette--sunset .opt4-jbtn--teal   { --opt4-jbtn-bg: #FFAB91 !important; --opt4-jbtn-fg: #4A1A05 !important; }
.opt4.opt4-palette--sunset .opt4-jbtn--orange { --opt4-jbtn-bg: #FFD54F !important; --opt4-jbtn-fg: #3E2723 !important; }
.opt4.opt4-palette--sunset .opt4-jbtn--green  { --opt4-jbtn-bg: #5D4037 !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 7 · Monochrome ── pure greys ── */
.opt4.opt4-palette--monochrome .opt4-stage--red { background: #212121 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06) !important; }
.opt4.opt4-palette--monochrome .opt4-jbtn--teal   { --opt4-jbtn-bg: #E0E0E0 !important; --opt4-jbtn-fg: #000000 !important; }
.opt4.opt4-palette--monochrome .opt4-jbtn--orange { --opt4-jbtn-bg: #9E9E9E !important; --opt4-jbtn-fg: #000000 !important; }
.opt4.opt4-palette--monochrome .opt4-jbtn--green  { --opt4-jbtn-bg: #616161 !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 8 · Carbon ── pure black + neon cyberpunk ── */
.opt4.opt4-palette--carbon { background: #000000 !important; }
.opt4.opt4-palette--carbon .opt4-bar.mud-appbar { background: #000000 !important; }
.opt4.opt4-palette--carbon .opt4-stage--red { background: #000000 !important; box-shadow: inset 0 0 0 1px rgba(0,229,255,0.18) !important; }
.opt4.opt4-palette--carbon .opt4-jbtn--teal   { --opt4-jbtn-bg: #00FFA3 !important; --opt4-jbtn-fg: #001A0F !important; }
.opt4.opt4-palette--carbon .opt4-jbtn--orange { --opt4-jbtn-bg: #00E5FF !important; --opt4-jbtn-fg: #00131A !important; }
.opt4.opt4-palette--carbon .opt4-jbtn--green  { --opt4-jbtn-bg: #FF0080 !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 9 · Citrus ── sun-drenched orange/yellow/lime ── */
.opt4.opt4-palette--citrus .opt4-stage--red { background: #F57F17 !important; }
.opt4.opt4-palette--citrus .opt4-jbtn--teal   { --opt4-jbtn-bg: #FFEB3B !important; --opt4-jbtn-fg: #6B5800 !important; }
.opt4.opt4-palette--citrus .opt4-jbtn--orange { --opt4-jbtn-bg: #CDDC39 !important; --opt4-jbtn-fg: #2E3300 !important; }
.opt4.opt4-palette--citrus .opt4-jbtn--green  { --opt4-jbtn-bg: #FF6F00 !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 10 · Sage ── calm earthy ── */
.opt4.opt4-palette--sage .opt4-stage--red { background: #4A6B5C !important; }
.opt4.opt4-palette--sage .opt4-jbtn--teal   { --opt4-jbtn-bg: #B8C9A8 !important; --opt4-jbtn-fg: #2A3A28 !important; }
.opt4.opt4-palette--sage .opt4-jbtn--orange { --opt4-jbtn-bg: #D4A574 !important; --opt4-jbtn-fg: #3A2A14 !important; }
.opt4.opt4-palette--sage .opt4-jbtn--green  { --opt4-jbtn-bg: #8A6E5C !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── 11 · Berlin ── industrial concrete + neon ── */
.opt4.opt4-palette--berlin .opt4-stage--red { background: #37474F !important; }
.opt4.opt4-palette--berlin .opt4-jbtn--teal   { --opt4-jbtn-bg: #FF6E40 !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4.opt4-palette--berlin .opt4-jbtn--orange { --opt4-jbtn-bg: #40C4FF !important; --opt4-jbtn-fg: #00263D !important; }
.opt4.opt4-palette--berlin .opt4-jbtn--green  { --opt4-jbtn-bg: #EEFF41 !important; --opt4-jbtn-fg: #2A3300 !important; }

/* ── 12 · Plum ── wine + dusty pink + brass ── */
.opt4.opt4-palette--plum .opt4-stage--red { background: #3E2723 !important; }
.opt4.opt4-palette--plum .opt4-jbtn--teal   { --opt4-jbtn-bg: #AD1457 !important; --opt4-jbtn-fg: #FFFFFF !important; }
.opt4.opt4-palette--plum .opt4-jbtn--orange { --opt4-jbtn-bg: #E1BEE7 !important; --opt4-jbtn-fg: #4A148C !important; }
.opt4.opt4-palette--plum .opt4-jbtn--green  { --opt4-jbtn-bg: #BCAAA4 !important; --opt4-jbtn-fg: #3E2723 !important; }

/* ── 13 · Arctic ── cool blues, white background variant ── */
.opt4.opt4-palette--arctic { background: #E1F5FE !important; }
.opt4.opt4-palette--arctic .opt4-bar.mud-appbar { background: #E1F5FE !important; border-bottom-color: #B3E5FC !important; }
.opt4.opt4-palette--arctic .opt4 .mud-icon-button { color: #01579B !important; }
.opt4.opt4-palette--arctic .opt4-back, .opt4.opt4-palette--arctic .opt4-mark { color: #01579B !important; }
.opt4.opt4-palette--arctic .opt4-eyebrow { color: #0277BD !important; }
.opt4.opt4-palette--arctic .opt4-pulse-dot { background: #0277BD !important; }
.opt4.opt4-palette--arctic .opt4-headline { color: #01579B !important; }
.opt4.opt4-palette--arctic .opt4-stage--red { background: #90CAF9 !important; }
.opt4.opt4-palette--arctic .opt4-scaffold path[stroke="#0A0A0A"], .opt4.opt4-palette--arctic .opt4-scaffold path[stroke="#1F1F1F"] { stroke: #0277BD !important; }
.opt4.opt4-palette--arctic .opt4-scaffold rect[stroke] { stroke: #FFFFFF !important; }
.opt4.opt4-palette--arctic .opt4-scaffold circle[stroke] { stroke: rgba(255,255,255,0.7) !important; }
.opt4.opt4-palette--arctic .opt4-scaffold rect[fill="#1565C0"], .opt4.opt4-palette--arctic .opt4-scaffold rect[fill="#455A64"] { fill: #0277BD !important; }
.opt4.opt4-palette--arctic .opt4-orbital circle[stroke] { stroke: rgba(255,255,255,0.7) !important; }
.opt4.opt4-palette--arctic .opt4-acc--monitor { background: #01579B !important; }
.opt4.opt4-palette--arctic .opt4-jbtn--teal   { --opt4-jbtn-bg: #E1F5FE !important; --opt4-jbtn-fg: #01579B !important; }
.opt4.opt4-palette--arctic .opt4-jbtn--orange { --opt4-jbtn-bg: #B3E5FC !important; --opt4-jbtn-fg: #01579B !important; }
.opt4.opt4-palette--arctic .opt4-jbtn--green  { --opt4-jbtn-bg: #0277BD !important; --opt4-jbtn-fg: #FFFFFF !important; }

/* ── Move palette picker to the top of the page (below the app bar) ── */
.opt4-palette-picker {
    top: 80px !important;
    transform: none !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Slim scrollbar inside the picker */
.opt4-palette-picker::-webkit-scrollbar { width: 4px; }
.opt4-palette-picker::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* ====================================================================
   /option4/what — 4-tab analysis (M3 · ISO 9001 · Twin · DMS)
   ==================================================================== */

.opt4-article--compact { padding-top: 0.8rem; }
.opt4-article--compact .opt4-article-head {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

/* ── MudTabs override to match the matte dark theme ── */
.opt4-tabs.mud-tabs { background: transparent !important; }

.opt4-tabs .mud-tabs-toolbar {
    background: #1A1A1A !important;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.opt4-tabs .mud-tab {
    color: #888 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    min-width: 0 !important;
    padding: 0 1.4rem !important;
}
.opt4-tabs .mud-tab.mud-tab-active {
    color: #ECECEC !important;
}
.opt4-tabs .mud-tab-slider {
    background: #EF6C00 !important;   /* orange (matches the article accent) */
    height: 2px !important;
}

/* Tab panel container */
.opt4-tabpanel {
    background: transparent !important;
    padding: 0 !important;
}

/* ── Analysis canvas inside each tab ── */
.opt4-anly {
    background: #1E1E1E;
    border: 1px solid #2C2C2C;
    border-radius: 12px;
    padding: 1.4rem 1.4rem 1.2rem;
    --opt4-anly-accent: #EF6C00;
}
.opt4-anly--orange { --opt4-anly-accent: #EF6C00; }
.opt4-anly--green  { --opt4-anly-accent: #2E7D32; }
.opt4-anly--purple { --opt4-anly-accent: #7B1FA2; }
.opt4-anly--cyan   { --opt4-anly-accent: #00838F; }

.opt4-anly-head {
    border-bottom: 1px solid #2C2C2C;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}
.opt4-anly-head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: #ECECEC;
    letter-spacing: -0.01em;
}
.opt4-anly-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--opt4-anly-accent);
    letter-spacing: 0.06em;
}

.opt4-anly-foot {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #2C2C2C;
    color: #B0B0B0;
    font-size: 0.92rem;
    line-height: 1.55;
}
.opt4-anly-foot strong { color: var(--opt4-anly-accent); }

/* ── KPI row (M3 tab) ── */
.opt4-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.opt4-kpi-card {
    background: #242424;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    padding: 0.9rem 1rem;
}
.opt4-kpi-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.opt4-kpi-value {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}
.opt4-kpi-bar {
    height: 4px;
    background: #2C2C2C;
    border-radius: 999px;
    overflow: hidden;
}
.opt4-kpi-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
}
.opt4-kpi-card--cyan  .opt4-kpi-value { color: #00ACC1; }
.opt4-kpi-card--cyan  .opt4-kpi-bar span { background: #00ACC1; }
.opt4-kpi-card--green .opt4-kpi-value { color: #43A047; }
.opt4-kpi-card--green .opt4-kpi-bar span { background: #43A047; }
.opt4-kpi-card--pink  .opt4-kpi-value { color: #D81B60; }
.opt4-kpi-card--pink  .opt4-kpi-bar span { background: #D81B60; }
.opt4-kpi-card--amber .opt4-kpi-value { color: #FB8C00; }
.opt4-kpi-card--amber .opt4-kpi-bar span { background: #FB8C00; }

/* ── ISO 9001 tab ── */
.opt4-iso-row {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}
.opt4-iso-wheel {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}
.opt4-iso-list {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 1.4rem;
}
.opt4-iso-list li {
    padding: 6px 0;
    color: #ECECEC;
    font-size: 0.92rem;
}
.opt4-iso-list b {
    display: inline-block;
    width: 22px;
    color: #00ACC1;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Twin tab ── */
.opt4-twin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.opt4-twin-cell {
    background: #242424;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    padding: 1.2rem 0.6rem;
    text-align: center;
}
.opt4-twin-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: #AB47BC;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.opt4-twin-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
}

/* ── DMS tab ── */
.opt4-dms-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.opt4-dms-pill {
    background: #242424;
    border: 1px solid #2C2C2C;
    border-left-width: 3px;
    border-radius: 8px;
    padding: 1rem 1.1rem;
}
.opt4-dms-pill--blue   { border-left-color: #1976D2; }
.opt4-dms-pill--teal   { border-left-color: #00838F; }
.opt4-dms-pill--purple { border-left-color: #7B1FA2; }
.opt4-dms-num {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
    color: #ECECEC;
}
.opt4-dms-pill--blue   .opt4-dms-num { color: #42A5F5; }
.opt4-dms-pill--teal   .opt4-dms-num { color: #26A69A; }
.opt4-dms-pill--purple .opt4-dms-num { color: #AB47BC; }
.opt4-dms-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.opt4-dms-desc { color: #B0B0B0; font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 700px) {
    .opt4-kpi-row, .opt4-twin-grid, .opt4-dms-row { grid-template-columns: 1fr 1fr; }
    .opt4-iso-row { flex-direction: column; }
    .opt4-iso-list { columns: 1; }
}

/* ====================================================================
   FULL-WIDTH WHAT-WE-DO PAGE
   Tabs fill the entire viewport; first tab carries the overview.
   ==================================================================== */

/* Container fills the viewport width — escape the MudContainer max-width */
.opt4-fullpage {
    width: 100%;
    margin: 0 !important;
    padding: 0.6rem clamp(0.8rem, 2vw, 1.6rem) 1rem !important;
    animation: opt4-rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

/* Make sure the MudContainer parent doesn't constrain us */
.opt4-main:has(.opt4-fullpage) {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.opt4-fullpage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    padding: 0 0.4rem;
}

.opt4-fullpage-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    color: #EF6C00;
}

/* Full-width tab bar */
.opt4-tabs--full.mud-tabs .mud-tabs-toolbar {
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: 0 !important;
}

/* Tab panel fills the page below the tab bar */
.opt4-tabs--full .opt4-tabpanel { padding: 0 !important; }

.opt4-tabs--full .opt4-anly {
    border-radius: 0 0 8px 8px;
    min-height: calc(100vh - 56px - 56px - 60px - 24px);  /* viewport − appbar − tabs − bar − padding */
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.6rem 1.2rem;
}

.opt4-tabs--full .opt4-anly-head h2 {
    font-size: 1.6rem;
}

/* Centre the main content row of each tab when it's short */
.opt4-tabs--full .opt4-kpi-row,
.opt4-tabs--full .opt4-twin-grid,
.opt4-tabs--full .opt4-dms-row,
.opt4-tabs--full .opt4-iso-row,
.opt4-tabs--full .opt4-overview-grid {
    flex: 1;
    align-items: center;
    align-content: center;
}

/* Bigger numbers when the canvas is bigger */
.opt4-tabs--full .opt4-kpi-value { font-size: 1.9rem; }
.opt4-tabs--full .opt4-twin-num  { font-size: 3.4rem; }
.opt4-tabs--full .opt4-dms-num   { font-size: 2.2rem; }
.opt4-tabs--full .opt4-iso-wheel { width: 280px; height: 280px; }
.opt4-tabs--full .opt4-iso-list  { font-size: 1rem; }
.opt4-tabs--full .opt4-iso-list li { padding: 9px 0; }

/* ── Overview tab — four pillar blocks ── */
.opt4-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.opt4-overview-pillar {
    background: #242424;
    border: 1px solid #2C2C2C;
    border-radius: 10px;
    padding: 1.2rem 1.2rem;
}

.opt4-overview-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(239, 108, 0, 0.16);
    color: #FFB74D;
    margin-bottom: 0.7rem;
}
.opt4-overview-tag--green  { background: rgba(46, 125, 50, 0.18); color: #81C784; }
.opt4-overview-tag--purple { background: rgba(123, 31, 162, 0.22); color: #CE93D8; }
.opt4-overview-tag--cyan   { background: rgba(0, 131, 143, 0.18); color: #4DD0E1; }

.opt4-overview-text {
    color: #B0B0B0;
    font-size: 0.95rem;
    line-height: 1.55;
}
.opt4-overview-text strong {
    color: #ECECEC;
    font-weight: 600;
}

@media (max-width: 700px) {
    .opt4-overview-grid { grid-template-columns: 1fr; }
    .opt4-tabs--full .opt4-anly { min-height: 0; }
}

/* ====================================================================
   RICH M3 TAB — Operations + Document Flow + Status strip
   ==================================================================== */

.opt4-anly--m3 {
    min-height: auto !important;       /* let it grow with content */
    overflow-y: auto;
    max-height: calc(100vh - 56px - 56px - 60px - 24px);
}

.opt4-anly--m3::-webkit-scrollbar { width: 6px; }
.opt4-anly--m3::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }

/* Section dividers */
.opt4-m3-section {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #2C2C2C;
}

.opt4-m3-section-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ECECEC;
    margin: 0 0 0.3rem 0;
    letter-spacing: -0.01em;
}
.opt4-m3-section-head p {
    color: #B0B0B0;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

/* Cards: 3-up Operations row */
.opt4-m3-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.opt4-m3-cards--two { grid-template-columns: repeat(2, 1fr); }

.opt4-m3-card {
    background: #242424;
    border: 1px solid #2C2C2C;
    border-left-width: 3px;
    border-radius: 8px;
    padding: 1.1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.opt4-m3-card:hover {
    transform: translateY(-3px);
    border-color: #3A3A3A;
}

.opt4-m3-card--orange { border-left-color: #EF6C00; }
.opt4-m3-card--green  { border-left-color: #2E7D32; }
.opt4-m3-card--purple { border-left-color: #7B1FA2; }
.opt4-m3-card--blue   { border-left-color: #1976D2; }
.opt4-m3-card--pink   { border-left-color: #C2185B; }

.opt4-m3-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
}
.opt4-m3-icon .mud-icon-root { color: #FFFFFF !important; font-size: 1.3rem !important; }
.opt4-m3-card--orange .opt4-m3-icon { background: #EF6C00; }
.opt4-m3-card--green  .opt4-m3-icon { background: #2E7D32; }
.opt4-m3-card--purple .opt4-m3-icon { background: #7B1FA2; }
.opt4-m3-card--blue   .opt4-m3-icon { background: #1976D2; }
.opt4-m3-card--pink   .opt4-m3-icon { background: #C2185B; }

.opt4-m3-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ECECEC;
    margin: 0 0 0.4rem 0;
}

.opt4-m3-card p {
    color: #B0B0B0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.9rem 0;
    flex: 1;
}

/* Inline pill chips inside cards */
.opt4-m3-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.7rem;
}
.opt4-m3-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.opt4-m3-pill--blue   { background: rgba(25, 118, 210, 0.22); color: #64B5F6; }
.opt4-m3-pill--pink   { background: rgba(194, 24, 91, 0.22); color: #F48FB1; }
.opt4-m3-pill--purple { background: rgba(123, 31, 162, 0.22); color: #CE93D8; }

/* Action buttons inside cards */
.opt4-m3-btn {
    align-self: flex-start;
    padding: 0.5rem 0.95rem;
    border: 0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    color: #FFFFFF;
    transition: filter 0.18s ease, transform 0.18s ease;
}
.opt4-m3-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.opt4-m3-btn--orange { background: #EF6C00; }
.opt4-m3-btn--green  { background: #2E7D32; }
.opt4-m3-btn--purple { background: #7B1FA2; }
.opt4-m3-btn--blue   { background: #1976D2; }
.opt4-m3-btn--pink   { background: #C2185B; }

/* Status strip at the bottom */
.opt4-m3-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid #2C2C2C;
}
.opt4-m3-statpill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    color: #FFFFFF;
}
.opt4-m3-statpill--green { background: #2E7D32; }
.opt4-m3-statpill--amber { background: #FB8C00; }
.opt4-m3-statpill--cyan  { background: #00838F; }
.opt4-m3-statpill--pink  { background: #C2185B; }
.opt4-m3-statlbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #B0B0B0;
}

@media (max-width: 800px) {
    .opt4-m3-cards { grid-template-columns: 1fr; }
    .opt4-m3-cards--two { grid-template-columns: 1fr; }
}

/* ====================================================================
   PALETTE TOGGLE BUTTON + slide-in picker
   ==================================================================== */

.opt4-palette-toggle {
    position: fixed;
    top: 80px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ECECEC;
    cursor: pointer;
    z-index: 101;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
        right 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
        background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
}
.opt4-palette-toggle:hover {
    background: rgba(40, 40, 40, 0.95);
    transform: scale(1.06);
}
.opt4-palette-toggle-glyph {
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
}

/* Hide picker by default — slide off-screen to the right */
.opt4-palette-picker {
    transform: translateX(calc(100% + 30px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
        opacity 0.3s ease !important;
}

/* Open state — slide in from the right */
.opt4.opt4-picker-open .opt4-palette-picker {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* When open, shift the toggle button left so it sits next to the picker */
.opt4.opt4-picker-open .opt4-palette-toggle {
    right: 234px;
}

/* Rotate the glyph slightly while open as visual feedback */
.opt4.opt4-picker-open .opt4-palette-toggle-glyph {
    transform: rotate(15deg);
    transition: transform 0.25s ease;
}

@media (max-width: 1100px) {
    .opt4.opt4-picker-open .opt4-palette-toggle { right: 220px; }
}
@media (max-width: 700px) {
    .opt4.opt4-picker-open .opt4-palette-toggle { right: 18px; top: 138px; }
    .opt4-palette-picker { left: 8px !important; }
}

/* ====================================================================
   ROLES in the Digital Twin organigram — colour-coded pill cloud
   ==================================================================== */

.opt4-twin-roles {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid #2C2C2C;
}

.opt4-twin-roles-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    color: #888;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.opt4-twin-roles-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opt4-rolepill {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: transparent;
    transition: background 0.18s ease, transform 0.18s ease;
}

/* Colour-coded by role type */
.opt4-rolepill--ceo    { color: #FFB300; }
.opt4-rolepill--lead   { color: #AB47BC; }
.opt4-rolepill--op     { color: #64B5F6; }
.opt4-rolepill--ai     { color: #26A69A; }
.opt4-rolepill--audit  { color: #EF6C00; }

.opt4-rolepill:hover {
    background: color-mix(in srgb, currentColor 18%, transparent);
    transform: translateY(-1px);
}

/* ====================================================================
   FIX: light-mode regression
   The earlier "muted" pass hardcoded #121212 on .opt4 and the app bar
   with !important, which overrode .opt4--light. Switch back to vars.
   ==================================================================== */

.opt4 {
    background: var(--opt4-bg) !important;
    color: var(--opt4-text) !important;
}

.opt4-bar.mud-appbar {
    background: var(--opt4-bg) !important;
    border-bottom: 1px solid var(--opt4-line) !important;
}

/* Strengthen LIGHT theme variables so they win against the muted-dark block above */
.opt4--light {
    --opt4-bg:        #FFFFFF !important;
    --opt4-bg-2:      #F7F8FA !important;
    --opt4-surface:   #FFFFFF !important;
    --opt4-surface-2: #F3F4F6 !important;
    --opt4-line:      #E5E7EB !important;
    --opt4-text:      #0D1117 !important;
    --opt4-text-2:    #4B5563 !important;
    --opt4-text-3:    #9CA3AF !important;
}

/* Light-mode chrome colours */
.opt4--light .mud-appbar .mud-icon-button { color: #0D1117 !important; }
.opt4--light .opt4-back, .opt4--light .opt4-mark { color: #0D1117 !important; }
.opt4--light .opt4-headline { color: #0D1117 !important; }

/* Light-mode palette toggle button */
.opt4--light .opt4-palette-toggle {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.12);
    color: #0D1117;
}
.opt4--light .opt4-palette-toggle:hover {
    background: rgba(245, 245, 245, 0.96);
}

/* Light-mode palette panel — flip from dark glass to light glass */
.opt4--light .opt4-palette-picker {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(0, 0, 0, 0.10) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12) !important;
}
.opt4--light .opt4-palette-head { color: #6B7280; border-bottom-color: rgba(0,0,0,0.08); }
.opt4--light .opt4-swatch { color: #0D1117; }
.opt4--light .opt4-swatch:hover { background: rgba(0,0,0,0.04); }
.opt4--light .opt4-swatch.active { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); }

/* Article + inner-page surfaces respect light mode */
.opt4--light .opt4-tile.mud-paper { background: #FFFFFF !important; border-color: #E5E7EB !important; }
.opt4--light .opt4-anly { background: #FFFFFF !important; border-color: #E5E7EB !important; }
.opt4--light .opt4-anly-head { border-bottom-color: #E5E7EB !important; }
.opt4--light .opt4-anly-head h2 { color: #0D1117 !important; }
.opt4--light .opt4-anly-foot { color: #4B5563 !important; border-top-color: #E5E7EB !important; }
.opt4--light .opt4-kpi-card, .opt4--light .opt4-twin-cell, .opt4--light .opt4-dms-pill, .opt4--light .opt4-m3-card { background: #F9FAFB !important; border-color: #E5E7EB !important; }
.opt4--light .opt4-kpi-label, .opt4--light .opt4-twin-lbl, .opt4--light .opt4-dms-lbl { color: #6B7280 !important; }
.opt4--light .opt4-twin-roles-label { color: #6B7280 !important; }
.opt4--light .opt4-twin-roles { border-top-color: #E5E7EB !important; }
.opt4--light .opt4-m3-section { border-top-color: #E5E7EB !important; }
.opt4--light .opt4-m3-section-head h3 { color: #0D1117 !important; }
.opt4--light .opt4-m3-section-head p { color: #4B5563 !important; }
.opt4--light .opt4-m3-card h4 { color: #0D1117 !important; }
.opt4--light .opt4-m3-card p { color: #4B5563 !important; }
.opt4--light .opt4-m3-status { border-top-color: #E5E7EB !important; }
.opt4--light .opt4-m3-statlbl { color: #4B5563 !important; }
.opt4--light .opt4-overview-pillar { background: #F9FAFB !important; border-color: #E5E7EB !important; }
.opt4--light .opt4-overview-text { color: #4B5563 !important; }
.opt4--light .opt4-overview-text strong { color: #0D1117 !important; }
.opt4--light .opt4-tabs .mud-tabs-toolbar { background: #F9FAFB !important; border-color: #E5E7EB !important; }
.opt4--light .opt4-tabs .mud-tab { color: #6B7280 !important; }
.opt4--light .opt4-tabs .mud-tab.mud-tab-active { color: #0D1117 !important; }
.opt4--light .opt4-tiny-back { color: #6B7280 !important; }

/* Light-mode article body text */
.opt4--light .opt4-article-section h2 { color: #0D1117 !important; }
.opt4--light .opt4-article-section p { color: #4B5563 !important; }
.opt4--light .opt4-article-section { border-bottom-color: #E5E7EB !important; }
.opt4--light .opt4-article-head { border-bottom-color: #E5E7EB !important; }
.opt4--light .opt4-article-title { color: #0D1117 !important; }
.opt4--light .opt4-article-lede { color: #4B5563 !important; }
.opt4--light .opt4-article-foot { border-top-color: #E5E7EB !important; }

/* ====================================================================
   DMS — Document categories pill cloud (matches the Twin roles cloud)
   ==================================================================== */

.opt4-dms-cats {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid #2C2C2C;
}

.opt4-dms-cats-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    color: #888;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.opt4-dms-cats-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opt4-catpill {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: transparent;
    transition: background 0.18s ease, transform 0.18s ease;
}

/* Five semantic categories */
.opt4-catpill--gov   { color: #42A5F5; }  /* Governance — blue */
.opt4-catpill--ops   { color: #26A69A; }  /* Operational — teal */
.opt4-catpill--exec  { color: #66BB6A; }  /* Execution — green */
.opt4-catpill--ev    { color: #FFA726; }  /* Evidence — amber */
.opt4-catpill--ref   { color: #AB47BC; }  /* Reference — purple */

.opt4-catpill:hover {
    background: color-mix(in srgb, currentColor 18%, transparent);
    transform: translateY(-1px);
}

/* Light-mode variant — keep colours, soft hover */
.opt4--light .opt4-dms-cats { border-top-color: #E5E7EB !important; }
.opt4--light .opt4-dms-cats-label { color: #6B7280 !important; }

/* ====================================================================
   /option4/who — single centred statement
   ==================================================================== */

.opt4-statement {
    position: relative;
    min-height: calc(100vh - 56px);  /* viewport minus app bar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1rem, 4vw, 3rem);
    animation: opt4-rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.opt4-statement-back {
    position: absolute;
    top: 1.4rem;
    left: clamp(1rem, 4vw, 3rem);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    color: var(--opt4-text-3, #6B6B6B) !important;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.opt4-statement-back:hover {
    color: var(--opt4-text, #ECECEC) !important;
    transform: translateX(-3px);
}

.opt4-statement-text {
    max-width: 720px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: -0.005em;
    color: var(--opt4-text, #ECECEC);
    text-align: left;
}

/* Light-mode adjustments */
.opt4--light .opt4-statement-text { color: #0D1117; }
.opt4--light .opt4-statement-back { color: #6B7280 !important; }
.opt4--light .opt4-statement-back:hover { color: #0D1117 !important; }

/* ====================================================================
   /option4/who — minimal tab strip (Now / History)
   Tabs sit small + quiet, centred statement still dominates.
   ==================================================================== */

.opt4-stmt-tabs.mud-tabs {
    background: transparent !important;
    width: 100%;
    max-width: 760px;
}

.opt4-stmt-tabs .mud-tabs-toolbar {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--opt4-line, #2C2C2C) !important;
    margin-bottom: 1.8rem !important;
    padding-left: 0 !important;
}

.opt4-stmt-tabs .mud-tab {
    color: var(--opt4-text-3, #6B6B6B) !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 0 1.2rem !important;
    min-width: 0 !important;
}
.opt4-stmt-tabs .mud-tab.mud-tab-active {
    color: var(--opt4-text, #ECECEC) !important;
}
.opt4-stmt-tabs .mud-tab-slider {
    background: var(--opt4-text, #ECECEC) !important;
    height: 1px !important;
}

.opt4-stmt-panel { padding: 0 !important; }

/* In tabbed mode, drop the absolute back-link styling — let it stay
   absolute to the top-left of the .opt4-statement container */
.opt4-statement {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Light-mode adjustments for the tab strip */
.opt4--light .opt4-stmt-tabs .mud-tabs-toolbar { border-bottom-color: #E5E7EB !important; }
.opt4--light .opt4-stmt-tabs .mud-tab { color: #6B7280 !important; }
.opt4--light .opt4-stmt-tabs .mud-tab.mud-tab-active { color: #0D1117 !important; }
.opt4--light .opt4-stmt-tabs .mud-tab-slider { background: #0D1117 !important; }

/* ── /option4/who — tabs fill the screen; paragraph centres inside ── */

.opt4-statement {
    min-height: calc(100vh - 56px);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;       /* let children fill width */
    justify-content: flex-start;
    position: relative;
}

.opt4-statement-back {
    position: absolute;
    top: 1.4rem;
    left: clamp(1rem, 4vw, 3rem);
    z-index: 10;
}

/* Tabs fill the full viewport width */
.opt4-stmt-tabs.mud-tabs {
    width: 100% !important;
    max-width: none !important;
    margin-top: 3.4rem;          /* clear the absolute back link */
}

.opt4-stmt-tabs .mud-tabs-toolbar {
    border-bottom: 1px solid var(--opt4-line, #2C2C2C) !important;
    padding: 0 clamp(1.5rem, 5vw, 4rem) !important;
    margin-bottom: 0 !important;
}

/* Panel fills remaining viewport height and centres the paragraph */
.opt4-stmt-panel {
    min-height: calc(100vh - 56px - 56px - 60px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) !important;
}

/* Constrain reading width, keep text inside the centred column */
.opt4-statement-text {
    max-width: 760px;
    margin: 0 auto !important;
    text-align: left;
}

/* ── /option4/who · Now tab — bullet list ── */

.opt4-statement-list {
    max-width: 760px;
    margin: 0 auto !important;
    list-style: none;
    padding: 0;
}

.opt4-statement-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.005em;
    color: var(--opt4-text, #ECECEC);
}

.opt4-statement-list li:last-child { margin-bottom: 0; }

/* Coloured dot bullet — picks up an accent so it doesn't look like default list styling */
.opt4-statement-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #B8C9A8;          /* Sage palette accent — matches default */
    transition: background 0.3s ease;
}

/* Slightly tinted strong text for emphasis */
.opt4-statement-list li strong {
    color: var(--opt4-text, #ECECEC);
    font-weight: 700;
}

/* Light-mode adjustments */
.opt4--light .opt4-statement-list li { color: #0D1117; }
.opt4--light .opt4-statement-list li strong { color: #0D1117; }

/* ====================================================================
   UNIFIED BACK BUTTON — colourful, MudBlazor-native, all inner pages
   ==================================================================== */

.opt4-back-btn.mud-button {
    position: absolute;
    top: 1.2rem;
    left: clamp(1rem, 4vw, 3rem);
    z-index: 50;
    border-radius: 999px !important;
    padding: 0.4rem 1rem 0.4rem 0.8rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.opt4-back-btn.mud-button:hover {
    transform: translateX(-3px) translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
}

/* The arrow icon inherits colour from the button text */
.opt4-back-btn .mud-button-icon-start .mud-icon-root {
    font-size: 1.1rem !important;
}

/* Ensure articles + statement pages give it room (their containers are relative) */
.opt4-article, .opt4-statement, .opt4-fullpage { position: relative; }

/* Now that the new button sits absolute, the article header padding can come down */
.opt4-article > .opt4-article-head { margin-top: 0; }

/* ====================================================================
   COOL NAV BAR + FOOTER
   ==================================================================== */

/* The app bar — slim, glass, accent gradient hairline at the bottom */
.opt4-bar.mud-appbar {
    height: 64px !important;
    min-height: 64px !important;
    padding-left: clamp(1.2rem, 4vw, 2.4rem) !important;
    padding-right: clamp(1.2rem, 4vw, 2.4rem) !important;
    background: rgba(18, 18, 18, 0.85) !important;
    border-bottom: 1px solid var(--opt4-line, #2C2C2C) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    position: relative;
}

/* Accent gradient hairline just under the appbar */
.opt4-bar.mud-appbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #B8C9A8 30%, #D4A574 70%, transparent 100%);
    opacity: 0.5;
}

/* Brand — with pulsing pink dot */
.opt4-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    color: var(--opt4-text, #ECECEC) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.opt4-brand:hover { color: var(--opt4-cyan, #00BCD4) !important; }

.opt4-brand-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #EC407A;
    box-shadow: 0 0 0 0 #EC407A;
    animation: opt4-pulse 1.8s ease-out infinite;
}

/* Center nav links */
.opt4-navlinks {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.opt4-navlink.mud-button {
    color: var(--opt4-text-2, #B0B0B0) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding: 0.4rem 1rem !important;
    border-radius: 999px !important;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease !important;
    min-width: 0 !important;
}
.opt4-navlink.mud-button:hover {
    color: var(--opt4-text, #ECECEC) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Active link — coloured pill background */
.opt4-navlink--active.mud-button {
    background: linear-gradient(135deg, #B8C9A8 0%, #D4A574 100%) !important;
    color: #1A1A1A !important;
    box-shadow: 0 4px 12px rgba(184, 201, 168, 0.35);
}

/* "← ALL OPTIONS" — small mono link, only on home */
.opt4-allopts {
    color: var(--opt4-text-3, #6B6B6B) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-right: 0.8rem;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}
.opt4-allopts:hover {
    color: var(--opt4-text, #ECECEC) !important;
    transform: translateX(-2px);
}

/* Theme toggle icon button */
.opt4-themetoggle.mud-icon-button {
    color: var(--opt4-text, #ECECEC) !important;
    transition: transform 0.3s ease !important;
}
.opt4-themetoggle.mud-icon-button:hover { transform: rotate(20deg); }

/* ── Footer ── */
.opt4-footer.mud-paper {
    background: rgba(18, 18, 18, 0.85) !important;
    border-top: 1px solid var(--opt4-line, #2C2C2C);
    padding: 1rem clamp(1.2rem, 4vw, 2.4rem) !important;
    margin-top: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--opt4-text-2, #B0B0B0) !important;
    position: relative;
}
.opt4-footer.mud-paper::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #D4A574 30%, #B8C9A8 70%, transparent 100%);
    opacity: 0.4;
}

.opt4-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.4rem;
}

.opt4-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--opt4-text, #ECECEC);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
}
.opt4-footer-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #EC407A;
    box-shadow: 0 0 8px rgba(236, 64, 122, 0.6);
}

.opt4-footer-nav {
    display: flex;
    gap: 1.2rem;
}
.opt4-footer-link {
    color: var(--opt4-text-2, #B0B0B0) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.opt4-footer-link:hover { color: var(--opt4-text, #ECECEC) !important; }

.opt4-footer-meta {
    color: var(--opt4-text-3, #6B6B6B);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.opt4-footer-mailto.mud-link {
    color: var(--opt4-text-2, #B0B0B0) !important;
    transition: color 0.2s ease;
}
.opt4-footer-mailto.mud-link:hover { color: var(--opt4-cyan, #00BCD4) !important; }

/* Hide the old loose .opt4-back / .opt4-mark in case any old markup lingers */
.opt4-back, .opt4-mark { display: none !important; }

/* Light-mode tweaks */
.opt4--light .opt4-bar.mud-appbar { background: rgba(255, 255, 255, 0.85) !important; }
.opt4--light .opt4-footer.mud-paper { background: rgba(255, 255, 255, 0.85) !important; }
.opt4--light .opt4-navlink.mud-button:hover { background: rgba(0, 0, 0, 0.04) !important; }
.opt4--light .opt4-allopts { color: #6B7280 !important; }
.opt4--light .opt4-allopts:hover { color: #0D1117 !important; }
.opt4--light .opt4-footer-brand { color: #0D1117; }
.opt4--light .opt4-footer-meta { color: #6B7280; }

@media (max-width: 700px) {
    .opt4-navlinks { display: none; }
    .opt4-allopts { font-size: 0.66rem; }
}

/* ====================================================================
   POST-SKILL REFACTOR — palette tokens flow into MudBlazor
   Each palette now also overrides --mud-palette-{primary,success,warning}
   so MudButton Color="Color.Primary/Success/Warning" adapts naturally.
   ==================================================================== */

/* DEFAULT palette mapping (when no .opt4-palette--* class is on the root) */
.opt4 {
    --mud-palette-primary: #B71C1C;     /* Material Red 900 — kept as fallback */
    --mud-palette-success: #2E7D32;
    --mud-palette-warning: #EF6C00;
}

/* Per-palette MudBlazor token overrides */
.opt4.opt4-palette--material-red { --mud-palette-primary: #B71C1C; --mud-palette-success: #2E7D32; --mud-palette-warning: #EF6C00; }
.opt4.opt4-palette--midnight     { --mud-palette-primary: #E91E63; --mud-palette-success: #00ACC1; --mud-palette-warning: #FFC107; }
.opt4.opt4-palette--deep-ocean   { --mud-palette-primary: #FFD180; --mud-palette-success: #80CBC4; --mud-palette-warning: #FF8A65; }
.opt4.opt4-palette--royal        { --mud-palette-primary: #26A69A; --mud-palette-success: #AB47BC; --mud-palette-warning: #FFB300; }
.opt4.opt4-palette--forest       { --mud-palette-primary: #795548; --mud-palette-success: #8BC34A; --mud-palette-warning: #FF8F00; }
.opt4.opt4-palette--sunset       { --mud-palette-primary: #5D4037; --mud-palette-success: #FFAB91; --mud-palette-warning: #FFD54F; }
.opt4.opt4-palette--monochrome   { --mud-palette-primary: #616161; --mud-palette-success: #E0E0E0; --mud-palette-warning: #9E9E9E; }
.opt4.opt4-palette--carbon       { --mud-palette-primary: #FF0080; --mud-palette-success: #00FFA3; --mud-palette-warning: #00E5FF; }
.opt4.opt4-palette--citrus       { --mud-palette-primary: #FF6F00; --mud-palette-success: #FFEB3B; --mud-palette-warning: #CDDC39; }
.opt4.opt4-palette--sage         { --mud-palette-primary: #8A6E5C; --mud-palette-success: #B8C9A8; --mud-palette-warning: #D4A574; }
.opt4.opt4-palette--berlin       { --mud-palette-primary: #EEFF41; --mud-palette-success: #FF6E40; --mud-palette-warning: #40C4FF; }
.opt4.opt4-palette--plum         { --mud-palette-primary: #BCAAA4; --mud-palette-success: #AD1457; --mud-palette-warning: #E1BEE7; }
.opt4.opt4-palette--arctic       { --mud-palette-primary: #0277BD; --mud-palette-success: #E1F5FE; --mud-palette-warning: #B3E5FC; }

/* ── Native MudButton pill styling — let MudBlazor do colour, we shape ── */
.opt4-jstack { width: 100%; max-width: 460px; margin: 0 auto; }

.opt4-jbtn.mud-button {
    width: 100%;
    border-radius: 999px !important;
    padding: 0.85rem 1.6rem 0.85rem 1.2rem !important;
    text-transform: none !important;
    font-weight: 700 !important;
    letter-spacing: -0.005em !important;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.10) !important;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s ease, filter 0.2s ease !important;
    opacity: 0;
    transform: translateY(20px);
    animation: opt4-rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    animation-delay: calc(var(--i, 0) * 140ms + 200ms);
}

.opt4-jbtn.mud-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.18) !important;
    filter: brightness(1.05);
}

.opt4-jbtn-chip.mud-chip {
    background: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: inherit !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    height: 26px !important;
}

.opt4-jbtn-label.mud-typography {
    font-size: 1rem !important;
    letter-spacing: -0.005em !important;
}

/* Hero eyebrow text adapts via MudText */
.opt4-eyebrow-text.mud-typography {
    color: #EC407A;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.opt4--light .opt4-eyebrow-text.mud-typography { color: #C2185B; }

/* Wrapper layout — fill the viewport between app bar and footer */
.opt4-stage-stack {
    min-height: calc(100vh - 64px - 80px);
    padding: 1.5rem 1rem 2rem;
}

/* ====================================================================
   PALETTE-DRIVEN NAV BAR
   Each palette sets --opt4-navbar-bg + --opt4-navbar-fg.
   The nav bar uses those tokens, so it auto-tints to the palette.
   ==================================================================== */

/* Nav bar reads palette tokens — fall back to bg if not set */
.opt4-bar.mud-appbar {
    background: var(--opt4-navbar-bg, var(--opt4-bg)) !important;
    color: var(--opt4-navbar-fg, var(--opt4-text)) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Override text colour inside nav bar based on palette nav fg */
.opt4-bar .opt4-brand,
.opt4-bar .opt4-brand-name,
.opt4-bar .opt4-allopts,
.opt4-bar .opt4-themetoggle.mud-icon-button,
.opt4-bar .opt4-navlink.mud-button {
    color: var(--opt4-navbar-fg, var(--opt4-text)) !important;
}

.opt4-bar .opt4-navlink.mud-button:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Brand pulse-dot stays pink for life-sign across palettes */
.opt4-bar .opt4-brand-dot { background: #FFFFFF; box-shadow: 0 0 0 0 #FFFFFF; }

/* Per-palette nav-bar colours — matches each palette's stage colour */
.opt4.opt4-palette--material-red { --opt4-navbar-bg: #B71C1C; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--midnight     { --opt4-navbar-bg: #1A237E; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--deep-ocean   { --opt4-navbar-bg: #004D5A; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--royal        { --opt4-navbar-bg: #4A148C; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--forest       { --opt4-navbar-bg: #33691E; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--sunset       { --opt4-navbar-bg: #BF360C; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--monochrome   { --opt4-navbar-bg: #212121; --opt4-navbar-fg: #ECECEC; }
.opt4.opt4-palette--carbon       { --opt4-navbar-bg: #000000; --opt4-navbar-fg: #00FFA3; }
.opt4.opt4-palette--citrus       { --opt4-navbar-bg: #F57F17; --opt4-navbar-fg: #2A1F00; }
.opt4.opt4-palette--sage         { --opt4-navbar-bg: #4A6B5C; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--berlin       { --opt4-navbar-bg: #37474F; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--plum         { --opt4-navbar-bg: #3E2723; --opt4-navbar-fg: #FFFFFF; }
.opt4.opt4-palette--arctic       { --opt4-navbar-bg: #0277BD; --opt4-navbar-fg: #FFFFFF; }

/* Active-pill in nav respects the palette too — flip to a transparent white tint */
.opt4-bar .opt4-navlink--active.mud-button {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

/* Light palettes (Citrus, Arctic in arctic mode) need darker active pill */
.opt4.opt4-palette--citrus .opt4-bar .opt4-navlink--active.mud-button { background: rgba(0,0,0,0.20) !important; color: #2A1F00 !important; }

/* "← ALL OPTIONS" link colour mirrors nav fg */
.opt4-bar .opt4-allopts:hover { color: rgba(255, 255, 255, 0.75) !important; }
.opt4.opt4-palette--citrus .opt4-bar .opt4-allopts { color: rgba(42, 31, 0, 0.7) !important; }
.opt4.opt4-palette--citrus .opt4-bar .opt4-allopts:hover { color: #2A1F00 !important; }

/* ── Board colour MIRRORS the nav-bar colour (same palette token) ── */
.opt4 .opt4-stage--red {
    background: var(--opt4-navbar-bg, #4A6B5C) !important;
}

/* ====================================================================
   TABS FLUSH TOP-LEFT on every child page
   ==================================================================== */

/* Statement-style tabs (Who, Help, Consulting) — no top margin, no left padding */
.opt4-stmt-tabs.mud-tabs {
    margin-top: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.opt4-stmt-tabs .mud-tabs-toolbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
    background: var(--opt4-navbar-bg, transparent) !important;
    border-bottom: 1px solid rgba(0,0,0,0.18) !important;
}

.opt4-stmt-tabs .mud-tab:first-child {
    margin-left: 0 !important;
}

/* What page tabs — also flush */
.opt4-tabs--full.mud-tabs {
    margin-top: 0 !important;
}

.opt4-tabs--full .mud-tabs-toolbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background: var(--opt4-navbar-bg, #1A1A1A) !important;
    border-bottom: 1px solid rgba(0,0,0,0.18) !important;
}

/* Tab text colour adapts to the navbar-fg (since tab strip is the navbar colour) */
.opt4-stmt-tabs .mud-tab,
.opt4-tabs--full .mud-tab {
    color: rgba(255,255,255,0.55) !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 0.6rem 1.4rem !important;
    min-width: 0 !important;
    min-height: 48px !important;
}
.opt4-stmt-tabs .mud-tab.mud-tab-active,
.opt4-tabs--full .mud-tab.mud-tab-active {
    color: #FFFFFF !important;
}
.opt4-stmt-tabs .mud-tab-slider,
.opt4-tabs--full .mud-tab-slider {
    background: #FFFFFF !important;
    height: 2px !important;
}

/* Outer .opt4-statement — no padding pushing the tabs down */
.opt4-statement {
    min-height: calc(100vh - 64px) !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Override .opt4-main padding so tabs sit at viewport edge */
.opt4-main {
    padding: 0 !important;
}

/* ── Back button in the nav bar (child pages only) ── */
.opt4-navback.mud-button {
    margin-right: 0.8rem;
    border-radius: 999px !important;
    padding: 0.35rem 0.95rem 0.35rem 0.65rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--opt4-navbar-fg, #FFFFFF) !important;
    box-shadow: none !important;
}
.opt4-navback.mud-button:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(-2px);
}
.opt4-navback .mud-icon-root {
    color: inherit !important;
    font-size: 1.05rem !important;
}

/* Article inside a single-tab wrapper — give it generous centred padding */
.opt4-article--single {
    max-width: 760px;
    margin: 0 auto !important;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
}

/* ====================================================================
   TABS AS OUTLINED PILL BUTTONS — transparent bg, coloured border + text
   Plus aggressive flush-to-left enforcement
   ==================================================================== */

/* Kill every drop of left padding up the container chain */
.opt4-main.mud-container,
.opt4-main.mud-container-fluid,
.opt4-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}
.opt4-fullpage,
.opt4-statement {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.opt4-tabs--full .mud-tabs-toolbar,
.opt4-stmt-tabs .mud-tabs-toolbar {
    padding-left: 0.6rem !important;       /* tiny breath so first button border isn't clipped */
    padding-right: 0 !important;
    margin: 0 !important;
}

/* Tabs become outlined pill BUTTONS — colour per nth-child */
.opt4-tabs--full .mud-tabs-toolbar,
.opt4-stmt-tabs .mud-tabs-toolbar {
    background: var(--opt4-navbar-bg, #1A1A1A) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18) !important;
    gap: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    min-height: 56px !important;
}

/* Each tab — pill, border, icon + label, transparent bg by default */
.opt4-tabs--full .mud-tab,
.opt4-stmt-tabs .mud-tab {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 0.95rem !important;
    margin: 0 0.15rem !important;
    border-radius: 999px !important;
    border: 1.5px solid currentColor !important;
    background: transparent !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

/* Hide MudBlazor's default sliding underline — the borders ARE the indicator */
.opt4-tabs--full .mud-tab-slider,
.opt4-stmt-tabs .mud-tab-slider {
    display: none !important;
}

/* Icon spacing inside a tab */
.opt4-tabs--full .mud-tab .mud-icon-root,
.opt4-stmt-tabs .mud-tab .mud-icon-root {
    margin-right: 0.4rem !important;
    font-size: 1rem !important;
    color: inherit !important;
}

/* Active state: solid fill of the tab's colour */
.opt4-tabs--full .mud-tab.mud-tab-active,
.opt4-stmt-tabs .mud-tab.mud-tab-active {
    background: currentColor !important;
}
.opt4-tabs--full .mud-tab.mud-tab-active span,
.opt4-tabs--full .mud-tab.mud-tab-active .mud-icon-root,
.opt4-stmt-tabs .mud-tab.mud-tab-active span,
.opt4-stmt-tabs .mud-tab.mud-tab-active .mud-icon-root {
    color: #FFFFFF !important;
    mix-blend-mode: difference;
}

/* ── Per-tab colours on /option4/what (M3, ISO, Twin, DMS, Summary) ── */
.opt4-tabs--full .mud-tab:nth-child(1) { color: #FFA726 !important; }   /* M3 → amber */
.opt4-tabs--full .mud-tab:nth-child(2) { color: #66BB6A !important; }   /* ISO → green */
.opt4-tabs--full .mud-tab:nth-child(3) { color: #AB47BC !important; }   /* Twin → purple */
.opt4-tabs--full .mud-tab:nth-child(4) { color: #29B6F6 !important; }   /* DMS → cyan */
.opt4-tabs--full .mud-tab:nth-child(5) { color: #EC407A !important; }   /* Summary → pink */

/* ── Per-tab colours on /option4/who (Now, History) ── */
.opt4-stmt-tabs .mud-tab:nth-child(1) { color: #66BB6A !important; }    /* Now → green */
.opt4-stmt-tabs .mud-tab:nth-child(2) { color: #FFA726 !important; }    /* History → amber */

/* ── Single-tab pages: Help (Services) → green, Consulting (Startups) → purple ── */
/* Both use opt4-stmt-tabs, so the nth-child(1) green default is fine for Help */
/* For Consulting we'd need a page-level class — set on the wrapper */

/* Hover slightly tints the bg */
.opt4-tabs--full .mud-tab:hover:not(.mud-tab-active),
.opt4-stmt-tabs .mud-tab:hover:not(.mud-tab-active) {
    background: color-mix(in srgb, currentColor 18%, transparent) !important;
}

/* ====================================================================
   DASHBOARD PANELS — vibrant, colourful, COMPACT (one viewport)
   ==================================================================== */

.opt4-dash {
    padding: 0.8rem clamp(0.6rem, 2vw, 1.4rem) 1rem;
    background: #0E0E10;
}

.opt4-dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

/* ── PANEL ── */
.opt4-dash-panel {
    background: #16171B;
    border: 1px solid #25272D;
    border-left-width: 4px;
    border-radius: 8px;
    padding: 0.9rem 1rem 0.95rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.opt4-dash-panel--purple { border-left-color: #7B1FA2; }
.opt4-dash-panel--red    { border-left-color: #E53935; }
.opt4-dash-panel--amber  { border-left-color: #FB8C00; }
.opt4-dash-panel--cyan   { border-left-color: #0097A7; }
.opt4-dash-panel--green  { border-left-color: #2E7D32; }

/* ── PANEL HEAD ── colored icon block + heading + lede + status pill */
.opt4-dash-panel-head {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    column-gap: 0.7rem;
    align-items: flex-start;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #25272D;
    margin-bottom: 0.6rem;
}

.opt4-dash-panel-icon {
    width: 40px; height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.opt4-dash-panel-icon .mud-icon-root { color: #FFFFFF !important; font-size: 1.25rem !important; }
.opt4-dash-panel-icon--purple { background: #7B1FA2; }
.opt4-dash-panel-icon--red    { background: #E53935; }
.opt4-dash-panel-icon--amber  { background: #FB8C00; }
.opt4-dash-panel-icon--cyan   { background: #0097A7; }
.opt4-dash-panel-icon--green  { background: #2E7D32; }

.opt4-dash-panel-text h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ECECEC;
    margin: 0 0 0.15rem 0;
    letter-spacing: -0.005em;
}
.opt4-dash-panel-text p {
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0;
    color: #EC407A;     /* pink lede — the M3 reference uses pink subtitles */
}

/* ── ITEM LIST ── */
.opt4-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.opt4-dash-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    column-gap: 0.7rem;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid #1F2025;
}
.opt4-dash-item:last-child { border-bottom: 0; }

.opt4-dash-item-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.opt4-dash-item-icon .mud-icon-root { font-size: 1rem !important; color: #FFFFFF !important; }
.opt4-dash-item-icon--green  { background: #2E7D32; }
.opt4-dash-item-icon--cyan   { background: #0097A7; }
.opt4-dash-item-icon--purple { background: #7B1FA2; }
.opt4-dash-item-icon--pink   { background: #C2185B; }
.opt4-dash-item-icon--amber  { background: #FB8C00; }
.opt4-dash-item-icon--red    { background: #E53935; }

.opt4-dash-item-body { min-width: 0; }
.opt4-dash-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ECECEC;
    line-height: 1.3;
}
.opt4-dash-item-meta {
    font-size: 0.7rem;
    color: #EC407A;
    line-height: 1.35;
    margin-top: 0.1rem;
}
.opt4-dash-item-meta strong { color: #F48FB1; font-weight: 700; }

/* ── PILLS ── outlined coloured chips, mirroring the M3 reference */
.opt4-dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}
.opt4-dash-pill--green  { color: #66BB6A; }
.opt4-dash-pill--cyan   { color: #4DD0E1; }
.opt4-dash-pill--purple { color: #CE93D8; }
.opt4-dash-pill--pink   { color: #F48FB1; }
.opt4-dash-pill--amber  { color: #FFB74D; }
.opt4-dash-pill--red    { color: #EF5350; }

/* ── BIG CTA at the bottom of a panel ── */
.opt4-dash-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.7rem;
    padding: 0.7rem 1rem;
    background: #E53935;
    color: #FFFFFF !important;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.opt4-dash-cta:hover {
    background: #D32F2F;
    transform: translateY(-1px);
}
.opt4-dash-cta .mud-icon-root { color: #FFFFFF !important; font-size: 1.1rem !important; }

/* Light-mode variants */
.opt4--light .opt4-dash { background: #FAFAFA; }
.opt4--light .opt4-dash-panel { background: #FFFFFF; border-color: #E0E0E0; }
.opt4--light .opt4-dash-panel-head { border-bottom-color: #E0E0E0; }
.opt4--light .opt4-dash-panel-text h3 { color: #0D1117; }
.opt4--light .opt4-dash-item { border-bottom-color: #EEEEEE; }
.opt4--light .opt4-dash-item-title { color: #0D1117; }

/* Mobile: stack panels */
@media (max-width: 900px) {
    .opt4-dash-row { grid-template-columns: 1fr; }
}

/* ====================================================================
   DASHBOARD UPLIFT — matte slate (not solid black), bigger type,
   stronger headings, fatter icons. Match the M3 reference image.
   ==================================================================== */

/* Page background — matte slate with subtle blue lift */
.opt4-dash {
    background: #1A1F2E !important;
    padding: 1.2rem clamp(0.8rem, 2.5vw, 1.6rem) 1.4rem !important;
}

/* Panel surface — lighter slate */
.opt4-dash-panel {
    background: #232938 !important;
    border-color: #353B4D !important;
    border-left-width: 5px !important;
    padding: 1.1rem 1.2rem 1.15rem !important;
}

/* Panel head — divider tweaks */
.opt4-dash-panel-head {
    grid-template-columns: 48px 1fr auto !important;
    column-gap: 0.85rem !important;
    padding-bottom: 0.9rem !important;
    border-bottom-color: #353B4D !important;
    margin-bottom: 0.85rem !important;
}

/* Panel icon — bigger and richer */
.opt4-dash-panel-icon {
    width: 48px !important;
    height: 48px !important;
}
.opt4-dash-panel-icon .mud-icon-root { font-size: 1.5rem !important; }

/* Panel heading — chunkier */
.opt4-dash-panel-text h3 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 0.25rem 0 !important;
    letter-spacing: -0.015em !important;
}
.opt4-dash-panel-text p {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    color: #EC407A !important;
    margin: 0 !important;
}

/* Top-right status pill on panel header — beefier */
.opt4-dash-panel-head > .opt4-dash-pill {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    border-width: 2px !important;
}

/* Row item — taller, more breathing room */
.opt4-dash-item {
    grid-template-columns: 36px 1fr auto !important;
    column-gap: 0.9rem !important;
    padding: 0.7rem 0 !important;
    border-bottom-color: #2A2F40 !important;
}

/* Status icon — bigger, richer */
.opt4-dash-item-icon {
    width: 32px !important;
    height: 32px !important;
}
.opt4-dash-item-icon .mud-icon-root { font-size: 1.2rem !important; }

/* Item title — significantly bigger */
.opt4-dash-item-title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.005em !important;
}

/* Item meta — readable size, brighter pink */
.opt4-dash-item-meta {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    color: #EC407A !important;
    margin-top: 0.2rem !important;
}
.opt4-dash-item-meta strong { color: #F8BBD0 !important; font-weight: 700 !important; }

/* Row pill — also a touch bigger */
.opt4-dash-pill {
    padding: 5px 11px !important;
    font-size: 0.68rem !important;
    border-width: 1.5px !important;
}

/* Big bottom CTA — bigger button, clear shadow */
.opt4-dash-cta {
    padding: 0.95rem 1.2rem !important;
    font-size: 0.86rem !important;
    margin-top: 1rem !important;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35) !important;
}
.opt4-dash-cta .mud-icon-root { font-size: 1.3rem !important; }

/* Light mode counterpart — keep matte feel but light */
.opt4--light .opt4-dash { background: #F0F2F5 !important; }
.opt4--light .opt4-dash-panel { background: #FFFFFF !important; border-color: #E0E0E0 !important; }
.opt4--light .opt4-dash-panel-text h3 { color: #0D1117 !important; }
.opt4--light .opt4-dash-panel-text p { color: #C2185B !important; }
.opt4--light .opt4-dash-item-title { color: #0D1117 !important; }
.opt4--light .opt4-dash-item-meta { color: #C2185B !important; }
.opt4--light .opt4-dash-item { border-bottom-color: #EEEEEE !important; }

/* ====================================================================
   FIX: active tab text invisible
   - Each tab now stores its colour in --tab-color
   - Active state uses --tab-color for background, hard #FFFFFF for text
   - Strip the mix-blend-mode trick — it was hiding the text
   ==================================================================== */

/* Statement-tab variables (Who, Help, Consulting) */
.opt4-stmt-tabs .mud-tab:nth-of-type(1) { color: #66BB6A !important; --tab-color: #66BB6A; }
.opt4-stmt-tabs .mud-tab:nth-of-type(2) { color: #FFA726 !important; --tab-color: #FFA726; }
.opt4-stmt-tabs .mud-tab:nth-of-type(3) { color: #29B6F6 !important; --tab-color: #29B6F6; }

/* What-page tabs (M3 / ISO / Twin / DMS / Summary) */
.opt4-tabs--full .mud-tab:nth-of-type(1) { color: #FFA726 !important; --tab-color: #FFA726; }
.opt4-tabs--full .mud-tab:nth-of-type(2) { color: #66BB6A !important; --tab-color: #66BB6A; }
.opt4-tabs--full .mud-tab:nth-of-type(3) { color: #AB47BC !important; --tab-color: #AB47BC; }
.opt4-tabs--full .mud-tab:nth-of-type(4) { color: #29B6F6 !important; --tab-color: #29B6F6; }
.opt4-tabs--full .mud-tab:nth-of-type(5) { color: #EC407A !important; --tab-color: #EC407A; }

/* Active tab: explicit bg from --tab-color, force white text + icon, kill blend mode */
.opt4-tabs--full .mud-tab.mud-tab-active,
.opt4-stmt-tabs .mud-tab.mud-tab-active {
    background-color: var(--tab-color, #66BB6A) !important;
    border-color: var(--tab-color, #66BB6A) !important;
    color: #FFFFFF !important;
}

.opt4-tabs--full .mud-tab.mud-tab-active *,
.opt4-stmt-tabs .mud-tab.mud-tab-active * {
    color: #FFFFFF !important;
    mix-blend-mode: normal !important;
}

.opt4-tabs--full .mud-tab.mud-tab-active .mud-icon-root,
.opt4-stmt-tabs .mud-tab.mud-tab-active .mud-icon-root {
    color: #FFFFFF !important;
    mix-blend-mode: normal !important;
}

/* ====================================================================
   FIX BUNDLE
   1. Active-tab text/icon — force white through every MudBlazor wrapper
   2. Dashboard bg → matte slate (NOT solid black)
   3. New top-bar pattern matching the M3 "FIND A FORM" header
   ==================================================================== */

/* ── 1. Active tab text: nuke the inheritance chain through MudBlazor's wrappers ── */
.opt4-stmt-tabs .mud-tab.mud-tab-active,
.opt4-stmt-tabs .mud-tab.mud-tab-active .mud-button-label,
.opt4-stmt-tabs .mud-tab.mud-tab-active .mud-button-label *,
.opt4-stmt-tabs .mud-tab.mud-tab-active .mud-icon-root,
.opt4-stmt-tabs .mud-tab.mud-tab-active svg,
.opt4-stmt-tabs .mud-tab.mud-tab-active span,
.opt4-tabs--full .mud-tab.mud-tab-active,
.opt4-tabs--full .mud-tab.mud-tab-active .mud-button-label,
.opt4-tabs--full .mud-tab.mud-tab-active .mud-button-label *,
.opt4-tabs--full .mud-tab.mud-tab-active .mud-icon-root,
.opt4-tabs--full .mud-tab.mud-tab-active svg,
.opt4-tabs--full .mud-tab.mud-tab-active span {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}

/* The MudTab button itself */
.opt4-stmt-tabs .mud-tab.mud-tab-active,
.opt4-tabs--full .mud-tab.mud-tab-active {
    background-color: var(--tab-color, #66BB6A) !important;
    border-color: var(--tab-color, #66BB6A) !important;
}

/* ── 2. Dashboard background: matte slate, clearly differentiated from panels ── */
.opt4-dash {
    background: #1A1F2E !important;
    padding-top: 0 !important;
}

.opt4-dash-panel {
    background: #252A3A !important;
    border-color: #3A4055 !important;
}

/* The outer body keeps the true matte (#121212) so the dashboard area is a clear inset */

/* ── 3. TOP BAR — matches the M3 "FIND A FORM" pattern ── */
.opt4-dash-topbar {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    column-gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: #252A3A;
    border: 1px solid #3A4055;
    border-radius: 8px;
}

.opt4-dash-topbar-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7B1FA2 0%, #C2185B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.opt4-dash-topbar-icon .mud-icon-root {
    color: #FFFFFF !important;
    font-size: 1.6rem !important;
}

.opt4-dash-topbar-text {
    min-width: 0;
}

.opt4-dash-topbar-eyebrow {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: #7C4DFF;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.opt4-dash-topbar-text p {
    margin: 0;
    color: #ECECEC;
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 500;
}
.opt4-dash-topbar-text p em {
    color: #B0B0B0;
    font-style: normal;
}

.opt4-dash-topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.3rem;
    background: linear-gradient(135deg, #7B1FA2 0%, #5E35B1 100%);
    color: #FFFFFF !important;
    border: 0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(123, 31, 162, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.opt4-dash-topbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(123, 31, 162, 0.45);
}
.opt4-dash-topbar-cta .mud-icon-root {
    color: #FFFFFF !important;
    font-size: 1.1rem !important;
}

@media (max-width: 800px) {
    .opt4-dash-topbar { grid-template-columns: 48px 1fr; }
    .opt4-dash-topbar-cta { grid-column: 1 / -1; justify-content: center; }
}

/* Light-mode top bar */
.opt4--light .opt4-dash-topbar { background: #FFFFFF; border-color: #E0E0E0; }
.opt4--light .opt4-dash-topbar-text p { color: #0D1117; }
.opt4--light .opt4-dash-topbar-text p em { color: #6B7280; }

/* ====================================================================
   TRUE MATTE SLATE — sampled from the M3 reference
   Replaces the pure-black #121212 with #2A2D3A (calmer, has a
   subtle blue lift — reads as "matte" not "void").
   ==================================================================== */

/* Body / page background — matte slate */
.opt4--dark {
    --opt4-bg:        #2A2D3A !important;
    --opt4-bg-2:      #2E323F !important;
    --opt4-surface:   #353947 !important;
    --opt4-surface-2: #3F4351 !important;
    --opt4-line:      #424757 !important;
}

.opt4 {
    background: var(--opt4-bg) !important;
}

/* Dashboard container — same as body so the panels feel inset, not floating on void */
.opt4-dash {
    background: var(--opt4-bg) !important;
}

/* Dashboard panels — clearly lighter slate */
.opt4-dash-panel {
    background: #353947 !important;
    border-color: #424757 !important;
}

/* Top-bar uses same panel slate */
.opt4-dash-topbar {
    background: #353947 !important;
    border-color: #424757 !important;
}

/* Item dividers a touch more visible against the lighter panel */
.opt4-dash-item { border-bottom-color: #3F4351 !important; }

/* Footer also matte slate, not pure black */
.opt4-footer.mud-paper { background: var(--opt4-bg) !important; border-top-color: #424757 !important; }

/* ====================================================================
   FINAL CLEANUP
   1. Kill the wasted-space gap above content on every child page
   2. Switch the What-page canvas to true matte black
   ==================================================================== */

/* 1 ── nuke MudTabs internal padding so content sits flush under the tabs ── */
.opt4-statement .mud-tabs-panels,
.opt4-statement .mud-tab-panel,
.opt4-statement .mud-tabs-content,
.opt4-fullpage .mud-tabs-panels,
.opt4-fullpage .mud-tab-panel,
.opt4-fullpage .mud-tabs-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Dashboard wrapper — no top padding so it starts right under the tabs */
.opt4-dash {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Top bar can sit flush with the tab strip */
.opt4-dash-topbar {
    margin-top: 0.6rem !important;
    margin-bottom: 0.8rem !important;
}

/* The What page's analysis canvas — flush to the top */
.opt4-anly,
.opt4-anly--m3 {
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-top: 0 !important;
}

/* MudTabPanel direct content — no padding */
.opt4-stmt-panel,
.opt4-tabpanel {
    padding: 0 !important;
    margin: 0 !important;
}

/* 2 ── What page: TRUE MATTE BLACK (not the slate) ── */
.opt4-anly {
    background: #1A1A1A !important;
    border-color: #2C2C2C !important;
    padding: 1.4rem clamp(1rem, 3vw, 2rem) 1.4rem !important;
}

/* Inner cards on What page — slightly lighter matte */
.opt4-kpi-card,
.opt4-twin-cell,
.opt4-dms-pill,
.opt4-m3-card {
    background: #232323 !important;
    border-color: #2C2C2C !important;
}

/* Section dividers on What page */
.opt4-anly-head,
.opt4-anly-foot,
.opt4-m3-section,
.opt4-m3-status {
    border-color: #2C2C2C !important;
}

/* ── Tabs: a small breath from the top AND the left edge ── */
.opt4-tabs--full .mud-tabs-toolbar,
.opt4-stmt-tabs .mud-tabs-toolbar {
    padding-top: 0.8rem !important;
    padding-bottom: 0.6rem !important;
    padding-left: 1.6rem !important;
    padding-right: 1rem !important;
}

/* Compensate so the tab strip's coloured background still feels intentional */
.opt4-tabs--full .mud-tabs-toolbar,
.opt4-stmt-tabs .mud-tabs-toolbar {
    min-height: 60px !important;
}

/* ── Topbar no longer has a CTA column — collapse to 2 cols ── */
.opt4-dash-topbar {
    grid-template-columns: 56px 1fr !important;
}

/* Hide any leftover CTA elements that don't get removed by the strip pass */
.opt4-dash-cta,
.opt4-dash-topbar-cta,
.opt4-article-cta,
.opt4-cta-btn { display: none !important; }

/* ── Kill the gap between the tab strip and the content below it ── */

/* Tab strip itself — no bottom padding */
.opt4-tabs--full .mud-tabs-toolbar,
.opt4-stmt-tabs .mud-tabs-toolbar {
    padding-bottom: 0.5rem !important;
}

/* Top bar / dashboard sit immediately under the tab strip */
.opt4-dash-topbar {
    margin-top: 0 !important;
    margin-bottom: 0.7rem !important;
}
.opt4-dash {
    padding-top: 0 !important;
}

/* Nuke MudBlazor's default tab-panel and tab-content padding */
.opt4-statement .mud-tabs-panels,
.opt4-statement .mud-tab-panel,
.opt4-statement .mud-tabs-content,
.opt4-fullpage .mud-tabs-panels,
.opt4-fullpage .mud-tab-panel,
.opt4-fullpage .mud-tabs-content,
.opt4-stmt-panel,
.opt4-tabpanel {
    padding: 0 !important;
    margin: 0 !important;
}

/* Article wrappers also flush */
.opt4-article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.opt4-article-head {
    margin-top: 0 !important;
}

/* ── Tab strip: vertically centre + align left with the dashboard panel edge ── */
.opt4-tabs--full .mud-tabs-toolbar,
.opt4-stmt-tabs .mud-tabs-toolbar {
    padding-top: 1.2rem !important;       /* push tab down a touch (was 0.8) */
    padding-bottom: 0.7rem !important;
    padding-left: 2rem !important;        /* align with dashboard panel left edge (was 1.6) */
    min-height: 68px !important;
}

/* Help — Services tab in orange (not green) */
.opt4-help-tabs .mud-tab:nth-of-type(1) {
    color: #FFA726 !important;
    --tab-color: #FFA726;
}

/* ── All statement-tabs (Who Now/History, Help Services, Consulting Startups) → ORANGE ── */
.opt4-stmt-tabs .mud-tab:nth-of-type(1),
.opt4-stmt-tabs .mud-tab:nth-of-type(2),
.opt4-stmt-tabs .mud-tab:nth-of-type(3) {
    color: #FFA726 !important;
    --tab-color: #FFA726;
}

/* ── Final brute-force: active tab text MUST be visible white ── */
.opt4-stmt-tabs .mud-tab.mud-tab-active,
.opt4-stmt-tabs .mud-tab.mud-tab-active *,
.opt4-tabs--full .mud-tab.mud-tab-active,
.opt4-tabs--full .mud-tab.mud-tab-active * {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    fill: #FFFFFF !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    text-shadow: none !important;
    filter: none !important;
    visibility: visible !important;
}

/* ── Tabs nudged 100px right and 10px down on all child pages ── */
.opt4-tabs--full .mud-tabs-toolbar,
.opt4-stmt-tabs .mud-tabs-toolbar {
    padding-top: calc(1.2rem + 10px) !important;
    padding-left: calc(2rem + 100px) !important;
}

@media (max-width: 800px) {
    .opt4-tabs--full .mud-tabs-toolbar,
    .opt4-stmt-tabs .mud-tabs-toolbar {
        padding-left: 2rem !important;       /* reclaim space on mobile */
    }
}



/* ── Big scaffold circle: pendulum cycle ──
   30s clockwise → slow stop → 30s counter-clockwise → slow stop → repeat */
.opt4-big-circle {
    transform-origin: 600px 260px;
    animation: opt4-big-circle-pendulum 64s linear infinite;
}

@keyframes opt4-big-circle-pendulum {
    0%   { transform: rotate(0deg);   animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1); }
    46%  { transform: rotate(360deg); animation-timing-function: linear; }
    50%  { transform: rotate(360deg); animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1); }
    96%  { transform: rotate(0deg);   animation-timing-function: linear; }
    100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .opt4-big-circle { animation: none !important; }
}

/* ====================================================================
   SEO CHIP STRIP + nav-bar back-button breathing room
   ==================================================================== */

/* Footer Specialisms — visible keyword chips for SEO + visitor scan */
.opt4-specialisms {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 0;
    border-top: 1px dashed var(--opt4-line, #424757);
    margin-bottom: 0.4rem;
}

.opt4-specialisms-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    color: var(--opt4-text-3, #6B7280);
    margin-right: 0.4rem;
}

.opt4-spec-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--opt4-line, #424757);
    background: transparent;
    color: var(--opt4-text-2, #B0B0B0);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: color 0.18s ease, border-color 0.18s ease;
}
.opt4-spec-chip:hover {
    color: #FFA726;
    border-color: #FFA726;
}

/* Light-mode chip strip */
.opt4--light .opt4-spec-chip { color: #4B5563; border-color: #E5E7EB; }
.opt4--light .opt4-spec-chip:hover { color: #C2185B; border-color: #C2185B; }

/* Nav-bar back-button — extra left padding so it has room to breathe */
.opt4-navback.mud-button {
    margin-left: 0.4rem !important;
    margin-right: 1.2rem !important;
}

/* ── Brand h1: kept visually as eyebrow text, but semantically the page h1 ── */
h1.opt4-eyebrow {
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.14em !important;
    line-height: 1.5 !important;
}

/* ── Nav brand: 'Julian Hoets' prominent + 'julianhoets.com' small subtitle ── */
.opt4-brand {
    align-items: center;
    gap: 0.55rem !important;
}

.opt4-brand-name {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1;
    color: var(--opt4-navbar-fg, #FFFFFF) !important;
}

.opt4-brand-domain {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: var(--opt4-navbar-fg, #FFFFFF) !important;
    opacity: 0.65;
    padding-left: 0.45rem;
    border-left: 1px solid currentColor;
    line-height: 1;
}

@media (max-width: 700px) {
    .opt4-brand-domain { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   CV CONTENT — hero subline + tagline (SEO-rich, from CV Resume)
   ───────────────────────────────────────────────────────────────────────── */
.opt4-tagline {
    max-width: 1000px;
    margin: 0.4rem auto 0.7rem auto !important;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(0.7rem, 1.0vw, 0.85rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--opt4-text) 70%, transparent) !important;
    line-height: 1.4 !important;
    animation: opt4-fade-in 0.7s ease-out 0.9s both;
}

.opt4-subline {
    max-width: 880px !important;
    margin: 0.2rem auto 0.4rem auto !important;
    text-align: center;
    font-size: clamp(0.92rem, 1.15vw, 1.05rem) !important;
    line-height: 1.55 !important;
    color: color-mix(in srgb, var(--opt4-text) 82%, transparent) !important;
    animation: opt4-fade-in 0.8s ease-out 1.05s both;
}

.opt4-subline strong {
    color: var(--opt4-text);
    font-weight: 600;
}

@keyframes opt4-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .opt4-tagline { letter-spacing: 0.16em !important; }
    .opt4-subline { font-size: 0.92rem !important; line-height: 1.5 !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   CV CONTENT — 5-beat Pitch (Foundation → Invitation), Who page Pitch tab
   ───────────────────────────────────────────────────────────────────────── */
.opt4-pitch {
    list-style: none;
    padding: 0;
    margin: 14px 0 4px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opt4-pitch-beat {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
    align-items: stretch;
    background: color-mix(in srgb, var(--opt4-bg) 92%, white 8%);
    border: 1px solid color-mix(in srgb, var(--beat-color, #455A64) 30%, transparent);
    border-left: 6px solid var(--beat-color, #455A64);
    border-radius: 10px;
    padding: 16px 20px 16px 14px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.opt4-pitch-beat:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 28px -12px color-mix(in srgb, var(--beat-color, #455A64) 65%, transparent);
    border-color: color-mix(in srgb, var(--beat-color, #455A64) 60%, transparent);
}

.opt4-pitch-num {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--beat-color, #455A64);
    letter-spacing: -0.04em;
    opacity: 0.92;
}

.opt4-pitch-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.opt4-pitch-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--beat-color, #455A64);
}

.opt4-pitch-body p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--opt4-text);
}

.opt4-pitch-body strong {
    color: var(--opt4-text);
    font-weight: 700;
    background: color-mix(in srgb, var(--beat-color, #455A64) 14%, transparent);
    padding: 0 0.18em;
    border-radius: 3px;
}

@media (max-width: 760px) {
    .opt4-pitch-beat {
        grid-template-columns: 56px 1fr;
        gap: 12px;
        padding: 14px 16px 14px 12px;
    }
    .opt4-pitch-num { font-size: 2.2rem; }
    .opt4-pitch-body p { font-size: 0.92rem; }
}

/* ─────────────────────────────────────────────────────────────────────────
   CV CONTENT — 6 Pillars (Domain First → Continuous Curiosity), Help page
   ───────────────────────────────────────────────────────────────────────── */
.opt4-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 14px 0 4px 0;
}

.opt4-pillar {
    background: color-mix(in srgb, var(--opt4-bg) 92%, white 8%);
    border: 1px solid color-mix(in srgb, var(--pillar-color, #455A64) 28%, transparent);
    border-top: 4px solid var(--pillar-color, #455A64);
    border-radius: 10px;
    padding: 16px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.opt4-pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -16px color-mix(in srgb, var(--pillar-color, #455A64) 70%, transparent);
    border-color: color-mix(in srgb, var(--pillar-color, #455A64) 60%, transparent);
}

.opt4-pillar-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt4-pillar-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pillar-color, #455A64);
    letter-spacing: -0.03em;
    line-height: 1;
    opacity: 0.95;
}

.opt4-pillar-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--opt4-text);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.opt4-pillar p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--opt4-text) 82%, transparent);
}

@media (max-width: 1024px) {
    .opt4-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .opt4-pillars { grid-template-columns: 1fr; }
    .opt4-pillar-num { font-size: 1.4rem; }
}

/* ─────────────────────────────────────────────────────────────────────────
   CV CONTENT — Named power-draw models on M3 tab (Bond/Morrell/Rowland/Kjos)
   ───────────────────────────────────────────────────────────────────────── */
.opt4-models-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 6px 0 10px 0;
}

.opt4-model-card {
    --model-color: #FB8C00;
    background: color-mix(in srgb, var(--opt4-bg) 92%, white 8%);
    border: 1px solid color-mix(in srgb, var(--model-color) 30%, transparent);
    border-left: 4px solid var(--model-color);
    border-radius: 8px;
    padding: 12px 14px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.opt4-model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--model-color) 65%, transparent);
    border-color: color-mix(in srgb, var(--model-color) 60%, transparent);
}

.opt4-model-card--orange { --model-color: #FB8C00; }
.opt4-model-card--green  { --model-color: #43A047; }
.opt4-model-card--purple { --model-color: #8E24AA; }
.opt4-model-card--cyan   { --model-color: #00ACC1; }

.opt4-model-name {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--model-color);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.opt4-model-sub {
    font-size: 0.78rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--opt4-text) 75%, transparent);
}

.opt4-m3-foot {
    margin-top: 10px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--opt4-bg) 88%, white 12%);
    border-left: 3px solid color-mix(in srgb, var(--opt4-text) 30%, transparent);
    border-radius: 4px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--opt4-text) 85%, transparent);
}

.opt4-m3-foot strong {
    color: var(--opt4-text);
    font-weight: 700;
}

/* Overview pillar new accent tones for added pillars */
.opt4-overview-tag--amber { background: #FF8F00 !important; color: #1A1A1A !important; }
.opt4-overview-tag--red   { background: #D32F2F !important; color: #FFFFFF !important; }

@media (max-width: 900px) {
    .opt4-models-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .opt4-models-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   SEO h1 + visually-hidden detail block on home page
   ───────────────────────────────────────────────────────────────────────── */

/* The real h1 — small, refined, sits above the big slogan. The crawler
   sees this as the page's primary heading; the user reads it as an
   identity strip. Keyword phrase first ("Julian Hoets — AI Solutions
   Architect") so it's the literal title token Google indexes. */
.opt4-h1 {
    max-width: 1000px;
    margin: 0 auto 0.6rem auto !important;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(0.78rem, 1.05vw, 0.95rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--opt4-text) 85%, transparent) !important;
    line-height: 1.4 !important;
    animation: opt4-fade-in 0.6s ease-out 0.2s both;
}

/* Standard sr-only / visually-hidden accessibility pattern. Available to
   screen readers and search-engine crawlers; visually invisible to sighted
   users. NOT display:none (which Google may de-prioritise) — this is the
   Bootstrap / Tailwind / GOV.UK technique. */
.opt4-sr-only,
.opt4-sr-only * {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 760px) {
    .opt4-h1 { letter-spacing: 0.16em !important; font-size: 0.75rem !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Clean informational list — replaces the heavy icon+pill .opt4-dash-list
   on Who + Help panels. Reads like prose, accent only as a thin left border.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-info-lead {
    margin: 12px 0 14px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: color-mix(in srgb, var(--opt4-text) 82%, transparent);
}

.opt4-info-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.opt4-info-item {
    --accent: #455A64;
    padding: 9px 14px 9px 14px;
    border-left: 3px solid color-mix(in srgb, var(--accent) 75%, transparent);
    color: color-mix(in srgb, var(--opt4-text) 82%, transparent);
    font-size: 0.94rem;
    line-height: 1.55;
    background: color-mix(in srgb, var(--opt4-bg) 96%, white 4%);
    border-radius: 0 4px 4px 0;
    transition: background 200ms ease, border-color 200ms ease;
}

.opt4-info-item:hover {
    background: color-mix(in srgb, var(--opt4-bg) 90%, white 10%);
    border-left-color: var(--accent);
}

.opt4-info-item strong {
    color: var(--opt4-text);
    font-weight: 700;
    margin-right: 0.35em;
}

/* ─────────────────────────────────────────────────────────────────────────
   FOURTH BUTTON — sits inside the dashed rectangle on the home board.
   Rectangle is at viewBox x=780-1100, y=190-370 in a 1200x520 viewBox →
   centre ≈ 78.3% / 53.8%. preserveAspectRatio="xMidYMid slice" so we
   anchor to the same percentages. Hidden on small viewports where the
   rectangle is cropped off.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-rbtn {
    position: absolute;
    top: 53%;
    left: 84%;
    transform: translate(-50%, -50%);
    z-index: 4;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;

    background: rgba(255, 255, 255, 0.95);
    color: #1A1A1A;
    text-decoration: none;
    padding: 18px 24px 18px 22px;
    min-width: 220px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 1);
    box-shadow: 0 18px 38px -16px rgba(0, 0, 0, 0.55);
    font-family: 'Inter', system-ui, sans-serif;
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1),
                box-shadow 220ms ease,
                background 220ms ease;
}

.opt4-rbtn:hover {
    transform: translate(-50%, -50%) translateY(-3px);
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.7);
    background: #FFFFFF;
}

.opt4-rbtn-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #1565C0;
    text-transform: uppercase;
}

.opt4-rbtn-label {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #1A1A1A;
}

.opt4-rbtn-sub {
    font-size: 0.82rem;
    color: rgba(26, 26, 26, 0.6);
    letter-spacing: 0.02em;
}

.opt4-rbtn-arrow {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 1.1rem;
    color: #1565C0;
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.opt4-rbtn:hover .opt4-rbtn-arrow {
    transform: translateX(4px);
}

/* Hide the rectangle button on narrow viewports — the SVG rectangle
   itself gets cropped by xMidYMid slice on phones, so the button would
   float over empty space. */
@media (max-width: 900px) {
    .opt4-rbtn { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   FINAL TAB STRIP LAYOUT (overrides all earlier padding rules)
   - Push tabs WELL to the right with a structured indent — past the
     dashboard panel left edge. Uses clamp() so it stays sensible on
     narrow viewports.
   - Equal padding-top and padding-bottom — symmetric vertical breathing
     room between the navbar above and the dashboard content below.
   - Applies on every tabbed page: Who (Now/History/Pitch),
     What (M3/ISO/Twin/DMS/Summary), Help (Services/Principles), Consulting.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-tabs--full .mud-tabs-toolbar,
.opt4-stmt-tabs .mud-tabs-toolbar {
    /* equal vertical breathing room */
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;

    /* structured horizontal indent — pushes the tab pills well to the right
       so they clear the dashboard panel's left content edge. Scales with
       viewport but capped so it never drifts on ultra-wide screens. */
    padding-left: clamp(2rem, 20vw, 280px) !important;
    padding-right: clamp(1rem, 4vw, 64px) !important;

    min-height: 72px !important;
}

/* Tabs strip needs a clear separation from the dashboard panel below — small
   bottom gap so the panel doesn't feel glued to the strip. */
.opt4-dash,
.opt4-anly {
    margin-top: 0 !important;
}

/* On narrow viewports, drop the indent so the tabs don't get pushed off-screen */
@media (max-width: 760px) {
    .opt4-tabs--full .mud-tabs-toolbar,
    .opt4-stmt-tabs .mud-tabs-toolbar {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        padding-left: 1.2rem !important;
        padding-right: 1rem !important;
        min-height: 56px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   Compact pitch ladder — for side-by-side dual pitches in dashboard panels.
   Slightly smaller numbers, tighter padding so two columns fit in one screen.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-pitch--compact {
    gap: 8px;
    margin: 12px 0 4px 0;
}

.opt4-pitch--compact .opt4-pitch-beat {
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 11px 16px 11px 12px;
    border-left-width: 5px;
}

.opt4-pitch--compact .opt4-pitch-num {
    font-size: 2rem;
}

.opt4-pitch--compact .opt4-pitch-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    margin-bottom: 2px;
}

.opt4-pitch--compact .opt4-pitch-body p {
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .opt4-pitch--compact .opt4-pitch-beat {
        grid-template-columns: 44px 1fr;
        padding: 10px 12px 10px 10px;
    }
    .opt4-pitch--compact .opt4-pitch-num { font-size: 1.7rem; }
}

/* What → Pitch tab wrapper — allow content-driven height, slight bottom padding */
.opt4-anly--pitch {
    min-height: auto !important;
    max-height: calc(100vh - 56px - 72px - 60px - 24px) !important;
    overflow-y: auto !important;
    padding: 0.8rem 1.4rem 1.2rem !important;
}

/* ═════════════════════════════════════════════════════════════════════════
   EXPERIMENT — tabs lifted into the navbar (scoped to /option4/who only via
   the .opt4-tabs-in-nav wrapper class).  If we like it, we widen the scope.
   If we don't, revert by removing this block and unwrapping the class.
   Snapshots: docs/snapshots/Option4Who.razor.pre-tabs-in-nav and
              docs/snapshots/option4.css.pre-tabs-in-nav
   ═════════════════════════════════════════════════════════════════════════ */

/* Anchor for the absolute-positioned tab toolbar */
.opt4-tabs-in-nav {
    position: relative;
}

/* Lift the tab toolbar OUT OF FLOW and over the navbar above it */
.opt4-tabs-in-nav .opt4-stmt-tabs--in-nav .mud-tabs-toolbar {
    position: absolute !important;
    top: -56px !important;             /* matches MudAppBar Dense height */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 5 !important;
    pointer-events: none;              /* don't block clicks on navbar bits behind */
}

/* Re-enable pointer events on the actual tab pills */
.opt4-tabs-in-nav .opt4-stmt-tabs--in-nav .mud-tab {
    pointer-events: auto;
}

/* Centre MudBlazor's inner toolbar wrappers */
.opt4-tabs-in-nav .opt4-stmt-tabs--in-nav .mud-tabs-toolbar-inner,
.opt4-tabs-in-nav .opt4-stmt-tabs--in-nav .mud-tabs-toolbar-content,
.opt4-tabs-in-nav .opt4-stmt-tabs--in-nav .mud-tabs-toolbar-wrapper {
    margin: 0 auto !important;
    justify-content: center !important;
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

/* Tighten the pills a touch so they sit nicely inside the 56px navbar */
.opt4-tabs-in-nav .opt4-stmt-tabs--in-nav .mud-tab {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 0.85rem !important;
}

/* On phones, fall back to old layout: tabs below navbar */
@media (max-width: 760px) {
    .opt4-tabs-in-nav .opt4-stmt-tabs--in-nav .mud-tabs-toolbar {
        position: static !important;
        top: auto !important;
        background: var(--opt4-navbar-bg, #1A1A1A) !important;
        padding: 1rem 1.2rem !important;
        height: auto !important;
        min-height: 56px !important;
        pointer-events: auto;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   FIX — light-mode navbar regression
   The navbar should ALWAYS take its colour from the active palette
   (--opt4-navbar-bg), not flip to white in light mode. Otherwise the
   theme-toggle icon (which is set to the palette --opt4-navbar-fg, usually
   white) ends up white-on-white and the user has no way to flip back to
   dark. This rule wins because it comes last in the cascade.
   ───────────────────────────────────────────────────────────────────────── */
.opt4--light .opt4-bar.mud-appbar {
    background: var(--opt4-navbar-bg, #4A6B5C) !important;
    color: var(--opt4-navbar-fg, #FFFFFF) !important;
}

/* Theme toggle: force visible regardless of dark/light, contrasting with
   whatever the navbar bg is */
.opt4-bar .opt4-themetoggle.mud-icon-button,
.opt4--light .opt4-bar .opt4-themetoggle.mud-icon-button,
.opt4--dark .opt4-bar .opt4-themetoggle.mud-icon-button {
    color: var(--opt4-navbar-fg, #FFFFFF) !important;
    opacity: 1 !important;
}

/* Same for the brand text + dot in light mode — keep them readable on the
   coloured navbar */
.opt4--light .opt4-bar .opt4-brand,
.opt4--light .opt4-bar .opt4-brand-name,
.opt4--light .opt4-bar .opt4-brand-domain {
    color: var(--opt4-navbar-fg, #FFFFFF) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   Toolbar JS-moved into the navbar — style it as a centred floating strip.
   See wwwroot/js/opt4-tabs-in-nav.js for the DOM move logic.
   ───────────────────────────────────────────────────────────────────────── */

/* The MudAppBar gets data-opt4-moved children appended to it */
.opt4-bar .mud-tabs-toolbar.opt4-tabs-moved {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 60% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    pointer-events: auto !important;
    z-index: 5 !important;
}

/* Inner wrappers — natural width, no flex stretch */
.opt4-bar .opt4-tabs-moved .mud-tabs-toolbar-inner,
.opt4-bar .opt4-tabs-moved .mud-tabs-toolbar-content,
.opt4-bar .opt4-tabs-moved .mud-tabs-toolbar-wrapper {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
}

/* Pills sized to fit comfortably inside a 48-56px navbar */
.opt4-bar .opt4-tabs-moved .mud-tab {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 0.85rem !important;
    margin: 0 0.15rem !important;
    font-size: 0.72rem !important;
}

/* The .opt4-statement wrapper no longer reserves space for the
   below-navbar toolbar — its first dashboard panel rises to the top */
.opt4-tabs-in-nav .opt4-stmt-panel {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* On phones, hide the moved toolbar (would collide with brand + toggle).
   The user gets the original below-navbar layout. To re-enable that,
   we'd need the JS to also detect viewport width and not move. For now,
   we just hide on narrow viewports — usability regression flagged. */
@media (max-width: 900px) {
    .opt4-bar .opt4-tabs-moved {
        position: static !important;
        transform: none !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .opt4-bar { flex-wrap: wrap !important; min-height: auto !important; height: auto !important; }
}

/* ═════════════════════════════════════════════════════════════════════════
   FINAL TAB STRIP LAYOUT (post-experiment)
   The navbar-overlay experiment was reverted. Tabs now sit UNDERNEATH the
   navbar, slim strip, FIRST PILL LEFT-ALIGNED WITH THE BACK BUTTON.
   Background matches the navbar so the strip reads as a continuation.
   Applies to ALL tabbed pages (Who, What, Help, Consulting).
   This block comes after every earlier override, so it wins the cascade.
   ═════════════════════════════════════════════════════════════════════════ */
.opt4-stmt-tabs .mud-tabs-toolbar,
.opt4-tabs--full .mud-tabs-toolbar {
    /* slim vertical padding — equal top/bottom for symmetric breathing */
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;

    /* left-align first pill with the Back button (MudAppBar default ~1rem) */
    padding-left: 1rem !important;
    padding-right: 1rem !important;

    /* match navbar bg so the strip looks continuous with the navbar above */
    background: var(--opt4-navbar-bg, #1A1A1A) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18) !important;

    min-height: 50px !important;

    /* normal layout — no absolute positioning, no centring */
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    justify-content: flex-start !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: auto !important;
}

/* Inner toolbar wrappers — left-aligned, natural width */
.opt4-stmt-tabs .mud-tabs-toolbar-inner,
.opt4-stmt-tabs .mud-tabs-toolbar-content,
.opt4-stmt-tabs .mud-tabs-toolbar-wrapper,
.opt4-tabs--full .mud-tabs-toolbar-inner,
.opt4-tabs--full .mud-tabs-toolbar-content,
.opt4-tabs--full .mud-tabs-toolbar-wrapper {
    margin: 0 !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
}

/* Neutralise any leftover .opt4-tabs-moved styling (script disabled) */
.opt4-tabs-moved { all: unset; }

/* On phones, keep things sensible */
@media (max-width: 760px) {
    .opt4-stmt-tabs .mud-tabs-toolbar,
    .opt4-tabs--full .mud-tabs-toolbar {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        min-height: 44px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   CONSULTING PAGE — three full-width paragraph sections, one screen.
   Engineering / Blazor stack / Greenfield startups.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-consult {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 1.6rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--opt4-text);
}

.opt4-consult-head {
    margin-bottom: 0.2rem;
}

.opt4-consult-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--opt4-text) 60%, transparent);
    display: block;
    margin-bottom: 0.4rem;
}

.opt4-consult-head h1 {
    font-size: clamp(1.4rem, 2.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    color: var(--opt4-text);
}

.opt4-consult-section {
    --accent: #455A64;
    padding: 0.7rem 0.4rem 0.7rem 1.1rem;
    border-left: 4px solid var(--accent);
    transition: background 200ms ease;
}

.opt4-consult-section:hover {
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.opt4-consult-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.opt4-consult-section h2 {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: var(--opt4-text);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.opt4-consult-section p {
    margin: 0;
    font-size: clamp(0.92rem, 1.0vw, 1rem);
    line-height: 1.55;
    color: color-mix(in srgb, var(--opt4-text) 82%, transparent);
}

.opt4-consult-section p strong {
    color: var(--opt4-text);
    font-weight: 700;
}

/* Phones: more compact, allow scroll if needed */
@media (max-width: 760px) {
    .opt4-consult {
        padding: 0.9rem 1rem 0.8rem;
        gap: 0.8rem;
    }
    .opt4-consult-section { padding: 0.5rem 0 0.5rem 0.9rem; }
    .opt4-consult-section h2 { font-size: 1.05rem; }
    .opt4-consult-section p { font-size: 0.9rem; line-height: 1.5; }
}

/* ─────────────────────────────────────────────────────────────────────────
   AVAILABILITY STRIP — visible signal that Julian is open to remote
   contracts. Includes the US/EU high-demand sector keywords (engineering,
   manufacturing operations, enterprise IT) plus time-zone fit. Pulsing
   green dot = standard "open for work" pattern.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-availability {
    max-width: 1100px;
    margin: 0.5rem auto 0.4rem auto !important;
    text-align: center;
    font-size: clamp(0.78rem, 0.95vw, 0.88rem) !important;
    line-height: 1.55 !important;
    color: color-mix(in srgb, var(--opt4-text) 82%, transparent) !important;
    animation: opt4-fade-in 0.7s ease-out 1.2s both;
}

.opt4-availability strong {
    color: var(--opt4-text);
    font-weight: 700;
}

.opt4-avail-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #43A047;
    border-radius: 50%;
    margin-right: 7px;
    margin-bottom: 1px;
    vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.7);
    animation: opt4-avail-pulse 2s ease-out infinite;
}

@keyframes opt4-avail-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(67, 160, 71, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(67, 160, 71, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(67, 160, 71, 0);   }
}

.opt4-avail-region {
    color: var(--opt4-text);
    font-weight: 600;
}

.opt4-avail-sector {
    color: color-mix(in srgb, var(--opt4-text) 90%, transparent);
    font-weight: 500;
}

.opt4-avail-tz {
    color: color-mix(in srgb, var(--opt4-text) 60%, transparent);
    font-size: 0.92em;
    font-style: italic;
}

/* On narrow viewports, stack the parts onto multiple lines */
@media (max-width: 900px) {
    .opt4-availability { line-height: 1.7 !important; }
    .opt4-avail-tz {
        display: block;
        margin-top: 0.2rem;
        font-size: 0.85em;
    }
}

@media (max-width: 560px) {
    .opt4-avail-sector,
    .opt4-avail-region {
        display: block;
        margin-top: 0.15rem;
    }
}

/* Consulting page now has 4 sections — tighten layout so they still fit one viewport */
.opt4-consult { gap: 0.75rem !important; padding-top: 0.9rem !important; padding-bottom: 0.7rem !important; }
.opt4-consult-section { padding: 0.55rem 0.4rem 0.55rem 1rem !important; }
.opt4-consult-section h2 { margin-bottom: 0.3rem !important; font-size: clamp(1rem, 1.4vw, 1.18rem) !important; }
.opt4-consult-section p { font-size: clamp(0.86rem, 0.95vw, 0.94rem) !important; line-height: 1.5 !important; }
.opt4-consult-head h1 { font-size: clamp(1.25rem, 2.1vw, 1.8rem) !important; }
.opt4-consult-tag { margin-bottom: 0.25rem !important; }

/* Secondary mailto (gmail) — quieter than the primary domain email */
.opt4-footer-mailto-alt {
    color: color-mix(in srgb, currentColor 55%, transparent);
    font-size: 0.92em;
}
.opt4-footer-mailto-alt-link.mud-typography {
    color: inherit !important;
    margin-left: 0.2em;
}

/* ─────────────────────────────────────────────────────────────────────────
   CONTACT BUTTON — small white card below the Consulting card on home
   ───────────────────────────────────────────────────────────────────────── */
.opt4-rbtn--contact {
    top: 87% !important;
    left: 84% !important;
    min-width: 180px !important;
    padding: 12px 22px 12px 18px !important;
}

.opt4-rbtn--contact .opt4-rbtn-label {
    font-size: 1.1rem !important;
}

.opt4-rbtn--contact .opt4-rbtn-sub {
    font-size: 0.74rem !important;
}

.opt4-rbtn--contact .opt4-rbtn-arrow {
    top: 11px !important;
    right: 14px !important;
    font-size: 0.95rem !important;
}

@media (max-width: 900px) {
    .opt4-rbtn--contact { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   /option4/contact PAGE — centred, two large mailto links
   ───────────────────────────────────────────────────────────────────────── */
.opt4-contact {
    min-height: calc(100vh - 56px - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--opt4-bg);
    color: var(--opt4-text);
}

.opt4-contact-inner {
    text-align: center;
    max-width: 640px;
    width: 100%;
}

.opt4-contact-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--opt4-text) 55%, transparent);
    display: block;
    margin-bottom: 0.9rem;
}

.opt4-contact-h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 0.4rem 0;
    line-height: 1.1;
    color: var(--opt4-text);
}

.opt4-contact-sub {
    margin: 0 0 2.4rem 0;
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    color: color-mix(in srgb, var(--opt4-text) 75%, transparent);
    letter-spacing: 0.01em;
}

.opt4-contact-emails {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0 auto 2.2rem;
}

.opt4-contact-email {
    display: inline-block;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1),
                background 220ms ease,
                color 220ms ease;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.opt4-contact-email--primary {
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
    color: var(--opt4-text);
    font-weight: 700;
}

.opt4-contact-email--primary:hover {
    color: #FFA726;
    background: color-mix(in srgb, #FFA726 14%, transparent);
    transform: translateY(-2px);
}

.opt4-contact-email--alt {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: color-mix(in srgb, var(--opt4-text) 65%, transparent);
}

.opt4-contact-email--alt:hover {
    color: var(--opt4-text);
    background: color-mix(in srgb, var(--opt4-text) 8%, transparent);
    transform: translateY(-2px);
}

.opt4-contact-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 auto 1.8rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--opt4-text) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--opt4-text) 18%, transparent);
    transition: color 220ms ease, border-color 220ms ease,
                background 220ms ease, transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.opt4-contact-linkedin:hover {
    color: #29B6F6;
    border-color: color-mix(in srgb, #29B6F6 55%, transparent);
    background: color-mix(in srgb, #29B6F6 12%, transparent);
    transform: translateY(-2px);
}

.opt4-contact-linkedin .mud-icon-root {
    font-size: 1.05rem;
}

.opt4-contact-tz {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--opt4-text) 50%, transparent);
}

@media (max-width: 760px) {
    .opt4-contact { padding: 1.4rem 1rem; }
    .opt4-contact-h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
    .opt4-contact-email--primary { font-size: clamp(1.05rem, 5.2vw, 1.4rem); }
    .opt4-contact-email--alt { font-size: clamp(0.92rem, 4.4vw, 1.15rem); }
}

/* ─────────────────────────────────────────────────────────────────────────
   CONSULTING PAGE — 5-tab variant (post-experiment). Each tab one focused
   consulting area. Tab strip carries the per-area accent colour through
   to the active pill, matching the section's left border underneath.
   ───────────────────────────────────────────────────────────────────────── */

/* Per-tab accent colours on Consulting */
.opt4-consulting-tabs .mud-tab:nth-of-type(1) { color: #29B6F6 !important; --tab-color: #29B6F6; } /* Resources */
.opt4-consulting-tabs .mud-tab:nth-of-type(2) { color: #43A047 !important; --tab-color: #43A047; } /* ISO 9001 DMS */
.opt4-consulting-tabs .mud-tab:nth-of-type(3) { color: #3949AB !important; --tab-color: #3949AB; } /* Audit */
.opt4-consulting-tabs .mud-tab:nth-of-type(4) { color: #FB8C00 !important; --tab-color: #FB8C00; } /* Blazor */
.opt4-consulting-tabs .mud-tab:nth-of-type(5) { color: #7B1FA2 !important; --tab-color: #7B1FA2; } /* Delphi */
.opt4-consulting-tabs .mud-tab:nth-of-type(6) { color: #00897B !important; --tab-color: #00897B; } /* Startups */
.opt4-consulting-tabs .mud-tab:nth-of-type(7) { color: #D81B60 !important; --tab-color: #D81B60; } /* Pension Tech */

/* Single shared CTA below the consulting tabs */
.opt4-consult-cta {
    max-width: 1000px;
    margin: 1.6rem auto 0;
    padding: 0.9rem 1.2rem;
    text-align: center;
    border-top: 1px solid color-mix(in srgb, var(--opt4-text) 12%, transparent);
}

.opt4-consult-cta p {
    margin: 0;
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    color: var(--opt4-text);
}

.opt4-consult-cta a {
    color: #29B6F6;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Resources tab — a simple, scannable list of what the team can provide.
   Deliberately limited: no detail, since each area is expanded in its own tab. */
.opt4-skills {
    list-style: none;
    margin: 0.3rem auto 0;
    padding: 0 0.4rem;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem 2.4rem;
}

.opt4-skills li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.4rem;
    font-size: clamp(0.95rem, 1.1vw, 1.06rem);
    line-height: 1.4;
    color: var(--opt4-text);
    border-bottom: 1px solid color-mix(in srgb, var(--opt4-text) 9%, transparent);
}

.opt4-skills li::before {
    content: '';
    position: absolute;
    left: 0.1rem;
    top: 0.95em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #29B6F6;
}

@media (max-width: 760px) {
    .opt4-skills { grid-template-columns: 1fr; gap: 0; }
}

/* Tab content wrapper inside each MudTabPanel — wider single-section layout */
.opt4-consult--tabbed {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.4rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opt4-consult--tabbed .opt4-consult-section {
    padding: 0.8rem 0.4rem 0.8rem 1.4rem;
    border-left-width: 5px;
}

.opt4-consult--tabbed .opt4-consult-section h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
    margin-bottom: 0.6rem !important;
}

.opt4-consult--tabbed .opt4-consult-section p {
    font-size: clamp(0.95rem, 1.05vw, 1.02rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 0.9rem !important;
}

/* Bullet list under each tab's paragraph */
.opt4-consult-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.opt4-consult-bullets li {
    position: relative;
    padding-left: 1.2rem;
    font-size: clamp(0.88rem, 0.98vw, 0.96rem);
    line-height: 1.5;
    color: color-mix(in srgb, var(--opt4-text) 78%, transparent);
}

.opt4-consult-bullets li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #455A64);
}

@media (max-width: 760px) {
    .opt4-consult--tabbed { padding: 1rem 0.9rem 1.1rem; }
    .opt4-consult-bullets li { font-size: 0.9rem; padding-left: 1rem; }
}

/* ─────────────────────────────────────────────────────────────────────────
   TAB STRIP — centred (overrides the earlier left-align with Back button).
   Applies to Who, What, Help, Consulting tabs.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-stmt-tabs .mud-tabs-toolbar,
.opt4-tabs--full .mud-tabs-toolbar {
    justify-content: center !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.opt4-stmt-tabs .mud-tabs-toolbar-inner,
.opt4-stmt-tabs .mud-tabs-toolbar-content,
.opt4-stmt-tabs .mud-tabs-toolbar-wrapper,
.opt4-tabs--full .mud-tabs-toolbar-inner,
.opt4-tabs--full .mud-tabs-toolbar-content,
.opt4-tabs--full .mud-tabs-toolbar-wrapper {
    justify-content: center !important;
    margin: 0 auto !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   TAB STRIP CENTRE — stronger override.
   Earlier rules forced the inner toolbar wrapper to width:100% + flex-start,
   which prevented any centring on the outer flex. This block neutralises
   them across every MudBlazor wrapper name that might be in play.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-stmt-tabs .mud-tabs-toolbar,
.opt4-tabs--full .mud-tabs-toolbar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Every possible inner wrapper MudBlazor might render: collapse to auto-width,
   centre via margin:auto, and override the earlier width:100% rules */
.opt4-stmt-tabs .mud-tabs-toolbar .mud-tabs-tabbar,
.opt4-stmt-tabs .mud-tabs-toolbar .mud-tabs-tabbar-wrapper,
.opt4-stmt-tabs .mud-tabs-toolbar .mud-tabs-tabbar-inner,
.opt4-stmt-tabs .mud-tabs-toolbar .mud-tabs-toolbar-inner,
.opt4-stmt-tabs .mud-tabs-toolbar .mud-tabs-toolbar-content,
.opt4-stmt-tabs .mud-tabs-toolbar .mud-tabs-toolbar-wrapper,
.opt4-tabs--full  .mud-tabs-toolbar .mud-tabs-tabbar,
.opt4-tabs--full  .mud-tabs-toolbar .mud-tabs-tabbar-wrapper,
.opt4-tabs--full  .mud-tabs-toolbar .mud-tabs-tabbar-inner,
.opt4-tabs--full  .mud-tabs-toolbar .mud-tabs-toolbar-inner,
.opt4-tabs--full  .mud-tabs-toolbar .mud-tabs-toolbar-content,
.opt4-tabs--full  .mud-tabs-toolbar .mud-tabs-toolbar-wrapper {
    width: auto !important;
    max-width: none !important;
    margin: 0 auto !important;
    justify-content: center !important;
    display: flex !important;
    flex: 0 0 auto !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   TAB STRIP CENTRE — BRUTE FORCE
   The first/last-child margin-auto trick. Whatever flex layout MudBlazor
   applies internally, pushing margin-left:auto on the first tab and
   margin-right:auto on the last tab forces them to clump together in the
   centre of whatever container they're in. Works regardless of inner-
   wrapper widths.
   ───────────────────────────────────────────────────────────────────────── */
.opt4-stmt-tabs .mud-tab:first-of-type,
.opt4-tabs--full .mud-tab:first-of-type {
    margin-left: auto !important;
}

.opt4-stmt-tabs .mud-tab:last-of-type,
.opt4-tabs--full .mud-tab:last-of-type {
    margin-right: auto !important;
}

/* Also force the parent to not steal the centering with text-align */
.opt4-stmt-tabs .mud-tabs-toolbar,
.opt4-tabs--full .mud-tabs-toolbar {
    text-align: center !important;
}

/* And in case any direct child of the toolbar has flex:1 stealing space,
   pull it back to natural width */
.opt4-stmt-tabs .mud-tabs-toolbar > div,
.opt4-tabs--full .mud-tabs-toolbar > div {
    flex: 0 1 auto !important;
    margin: 0 auto !important;
    width: auto !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   CONTACT — "Resources available" capability board.
   One point of contact, the full bench laid out by capability area.
   Reuses the consult accent vocabulary (left-border + per-card --accent).
   ───────────────────────────────────────────────────────────────────────── */
.opt4-resources {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2rem) 2rem;
    color: var(--opt4-text);
}

.opt4-resources-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(1.4rem, 3vw, 2.2rem);
}

.opt4-resources-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--opt4-text) 55%, transparent);
    display: block;
    margin-bottom: 0.8rem;
}

.opt4-resources-h1 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0 0 0.7rem 0;
    color: var(--opt4-text);
}

.opt4-resources-sub {
    margin: 0;
    font-size: clamp(0.95rem, 1.15vw, 1.08rem);
    line-height: 1.6;
    color: color-mix(in srgb, var(--opt4-text) 78%, transparent);
}

.opt4-res-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 2.4rem;
}

.opt4-res-card {
    --accent: #455A64;
    padding: 0.9rem 0.6rem 1rem 1.2rem;
    border-left: 4px solid var(--accent);
    transition: background 200ms ease;
}

.opt4-res-card:hover {
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.opt4-res-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.opt4-res-card h2 {
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    font-weight: 700;
    margin: 0 0 0.6rem 0;
    color: var(--opt4-text);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.opt4-res-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.opt4-res-list li {
    position: relative;
    padding-left: 1.2rem;
    font-size: clamp(0.88rem, 0.98vw, 0.96rem);
    line-height: 1.5;
    color: color-mix(in srgb, var(--opt4-text) 80%, transparent);
}

.opt4-res-list li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #455A64);
}

/* Contact close block — reuses the existing .opt4-contact-* tokens but
   sits in normal flow at the bottom of the board rather than centring a
   full viewport. */
.opt4-resources-contact {
    text-align: center;
    max-width: 640px;
    margin: clamp(2rem, 5vw, 3.4rem) auto 0;
    padding-top: clamp(1.6rem, 4vw, 2.4rem);
    border-top: 1px solid color-mix(in srgb, var(--opt4-text) 12%, transparent);
}

.opt4-resources-contact .opt4-contact-h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

@media (max-width: 820px) {
    .opt4-res-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .opt4-res-card { padding: 0.7rem 0.4rem 0.8rem 1rem; }
}

