/* Grid page — extends consulting-styles.css with status-board hero and ops accents */

/* ============================================
   Hero — TUI status board
   ============================================ */
.grid-hero {
    background: #0a0a0a;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

/* faint grid scanlines (vertical+horizontal) — distinct from consulting's horizontal lines */
.grid-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 47px,
            rgba(81, 10, 148, 0.05) 47px,
            rgba(81, 10, 148, 0.05) 48px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 47px,
            rgba(255, 255, 255, 0.02) 47px,
            rgba(255, 255, 255, 0.02) 48px
        );
    pointer-events: none;
}

.grid-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(10, 10, 10, 0.8) 100%);
    pointer-events: none;
}

.grid-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
}

/* Status board */
.status-board {
    display: inline-block;
    background: rgba(8, 8, 10, 0.85);
    border: 1px solid rgba(81, 10, 148, 0.35);
    border-radius: 4px;
    padding: 0;
    margin-bottom: 2.5rem;
    font-family: var(--mono);
    text-align: left;
    min-width: 360px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 24px rgba(81, 10, 148, 0.08);
    overflow: hidden;
}

.status-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(81, 10, 148, 0.12);
    border-bottom: 1px solid rgba(81, 10, 148, 0.3);
    padding: 0.55rem 0.9rem;
}

.sb-title {
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    font-weight: 600;
    text-transform: lowercase;
}

.sb-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
    animation: sbLedPulse 2s ease-in-out infinite;
}

@keyframes sbLedPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.status-board-body {
    padding: 0.9rem 1rem 1rem;
    font-size: 0.88rem;
    line-height: 1.85;
}

.sb-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: #c0c0c8;
}

.sb-key {
    color: #8c8c95;
    min-width: 4.25rem;
    text-transform: lowercase;
    letter-spacing: 0.04em;
}

.sb-sep {
    color: rgba(81, 10, 148, 0.7);
}

.sb-val {
    color: #d6d6dc;
}

.sb-val.accent {
    color: #4ade80;
    font-weight: 600;
}

.sb-cursor {
    display: inline-block;
    width: 7px;
    height: 0.95rem;
    background: var(--accent);
    margin-left: 0.4rem;
    transform: translateY(2px);
    animation: sbCursor 1.05s steps(2) infinite;
}

@keyframes sbCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.grid-title {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    color: #ffffff;
    margin: 0 0 1.5rem;
}

.grid-subtitle {
    font-size: 1.25rem;
    color: #b8b8c0;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Match shared section h2 from consulting-styles for who/status sections */
.who-section h2,
.status-section h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem;
    letter-spacing: -0.02em;
}

/* ============================================
   Who this is for — tagged blocks
   ============================================ */
.who-section {
    background: #0f0f0f;
    padding: 5rem 0;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 880px;
    margin: 2.5rem auto 0;
}

.who-card {
    background: rgba(20, 20, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(81, 10, 148, 0.55);
    padding: 1.5rem 1.5rem 1.5rem 1.4rem;
    border-radius: 2px;
    text-align: left;
    transition: border-left-color 0.3s ease, transform 0.3s ease;
}

.who-card:hover {
    border-left-color: var(--accent);
    transform: translateX(3px);
}

.who-tag {
    display: block;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.who-card p {
    color: #c0c0c8;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* ============================================
   Status / Timeline
   ============================================ */
.status-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(81, 10, 148, 0.10) 0%, transparent 60%),
        #0a0a0a;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 5rem 0;
}

.timeline {
    max-width: 700px;
    margin: 2.5rem auto 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(81, 10, 148, 0.15), rgba(81, 10, 148, 0.5), rgba(81, 10, 148, 0.15));
}

.tl-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0.75rem 0 1.5rem;
    position: relative;
}

.tl-row:last-child {
    padding-bottom: 0;
}

.tl-marker {
    position: absolute;
    left: -1.5rem;
    top: 1rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #1a1a1d;
    border: 2px solid rgba(81, 10, 148, 0.4);
    flex-shrink: 0;
    z-index: 1;
}

.tl-row.done .tl-marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(81, 10, 148, 0.18);
}

.tl-row.active .tl-marker {
    background: #4ade80;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18), 0 0 12px rgba(74, 222, 128, 0.5);
    animation: sbLedPulse 2s ease-in-out infinite;
}

.tl-body {
    flex: 1;
    text-align: left;
}

.tl-label {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.tl-row.active .tl-label {
    color: #4ade80;
}

.tl-row.planned .tl-marker {
    background: rgba(81, 10, 148, 0.25);
    border-color: rgba(81, 10, 148, 0.7);
    box-shadow: 0 0 0 3px rgba(81, 10, 148, 0.1);
}

.tl-row.planned .tl-label {
    color: rgba(184, 148, 224, 0.85);
}

.tl-row:not(.done):not(.active):not(.planned) .tl-label {
    color: #6c6c75;
}

.tl-body p {
    color: #c0c0c8;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.tl-row:not(.done):not(.active):not(.planned) .tl-body p {
    color: #8c8c95;
}

.tl-row.planned .tl-body p {
    color: #b0b0b8;
}

.status-callout {
    max-width: 700px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 1.75rem;
    background: rgba(81, 10, 148, 0.08);
    border: 1px solid rgba(81, 10, 148, 0.3);
    border-radius: 4px;
    text-align: center;
}

.status-callout p {
    color: #d6d6dc;
    line-height: 1.65;
    font-size: 1.02rem;
    margin: 0;
}

.status-callout strong {
    color: #ffffff;
    font-weight: 600;
}

/* CTA: see .console-cta-* in styles.css (shared across all pages) */

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
    .grid-hero {
        min-height: 60vh;
    }

    .grid-hero-inner {
        padding: 3rem 1.25rem;
    }

    .status-board {
        min-width: 0;
        width: 100%;
    }

    .status-board-body {
        font-size: 0.8rem;
    }

    .who-section h2,
    .status-section h2 {
        font-size: 1.75rem;
    }

    .who-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1.25rem;
    }
}
