/* ============================================
   BREAKLINE SECURITY — Redesign Design System
============================================ */

/* 1. Variables */
:root {
    /* Brand accent — Breakline gold. Single source; the whole site skins from here. */
    --accent:        #C0872C;
    --accent-hover:  #D49B41;
    --accent-soft:   rgba(192, 135, 44, 0.12);
    --accent-glow:   rgba(192, 135, 44, 0.30);
    --bg:         #100E11;
    --bg-2:       #161316;
    --bg-3:       #1E1A1E;
    --text:       #F5F5F4;
    --text-2:     #CAC8C4;
    --text-3:     #B4B0AA;
    --border:     #2F2730;
    --accent-border: rgba(192, 135, 44, 0.35);
    /* dark ink for text sitting ON a filled gold surface (buttons, badges) */
    --on-accent:  #1C1305;
    --nav-h:      62px;
    --wrap:       1280px;
    --mono:       'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    --sans:       'Inter', system-ui, -apple-system, sans-serif;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);

    /* --- Spacing scale (4px grid) -----------------------------------------
       Single source of truth for layout rhythm. Prefer these over literals.
       Off-grid one-off paddings that remain in component CSS are cleanup
       candidates — snap them to the nearest step in a future pass. */
    --sp-1:   0.25rem;   /*  4px */
    --sp-2:   0.5rem;    /*  8px */
    --sp-3:   0.75rem;   /* 12px */
    --sp-4:   1rem;      /* 16px */
    --sp-5:   1.25rem;   /* 20px */
    --sp-6:   1.5rem;    /* 24px */
    --sp-7:   1.75rem;   /* 28px */
    --sp-8:   2rem;      /* 32px */
    --sp-10:  2.5rem;    /* 40px */
    --sp-12:  3rem;      /* 48px */
    --sp-14:  3.5rem;    /* 56px */
    --sp-16:  4rem;      /* 64px */
    --sp-18:  4.5rem;    /* 72px */
    --sp-20:  5rem;      /* 80px */
    --sp-22:  5.5rem;    /* 88px */
    --sp-24:  6rem;      /* 96px */
    --sp-26:  6.5rem;    /* 104px */
    --sp-28:  7rem;      /* 112px */

    /* --- Semantic layout tokens ------------------------------------------- */
    --gutter:     var(--sp-8);    /* horizontal page padding (.wrap sides) */
    --section-y:  var(--sp-18);   /* section vertical padding */
    --section-y-sm: var(--sp-16); /* section vertical padding, small screens */
}

/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    /* No overflow here: `overflow-x: hidden` silently promotes overflow-y to
       `auto`, making body a scroll container that breaks `position: sticky`
       (e.g. the blog TOC). Sideways scroll is already clipped by
       `html { overflow-x: clip }` below. */
}

a { color: inherit; text-decoration: none; }

/* 3. Navigation */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(12, 12, 12, 0.88);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--wrap);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--sp-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* Wordmark — treatment A ("break in the line"), shared by nav + footer.
   JetBrains Mono; "LINE" carries the accent; SECURITY sits inside the gold rule. */
.brand-wm { display: flex; flex-direction: column; gap: 4px; width: fit-content; }
.brand-wm .wm-name {
    font-family: var(--mono);
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}
.brand-wm .wm-name .wm-line { color: var(--accent); }
.brand-wm .wm-rule { display: flex; align-items: center; gap: 7px; width: 100%; }
.brand-wm .wm-rule::before,
.brand-wm .wm-rule::after { content: ''; height: 1.5px; background: var(--accent); flex: 1 1 auto; }
.brand-wm .wm-sec {
    font-family: var(--mono);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
    padding-left: 0.3em;
}

.nav-brand-slogan {
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    font-family: var(--mono);
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav-links a {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta {
    padding: 0.45rem 1.1rem !important;
    background: var(--accent) !important;
    color: var(--on-accent) !important;
    font-weight: 600 !important;
    border-radius: 6px;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ROI calculator — an action, styled as an outlined counterpart to the CTA */
.nav-calc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--accent-border, var(--accent));
    color: var(--accent) !important;
    cursor: pointer;
}
.nav-calc i { font-size: 0.95em; }
.nav-calc:hover {
    background: var(--accent-glow, rgba(192, 135, 44, 0.12)) !important;
    color: var(--accent-hover, var(--accent)) !important;
}

/* Hamburger (hidden on desktop) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
/* Animate to × when open */
.nav--open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Nav menu with dropdowns (desktop) + slide-in (mobile) ────────────────── */
html { overflow-x: clip; }   /* clip any off-canvas menu; no sideways scroll */

.nav-menu {
    list-style: none; margin: 0 0 0 auto; padding: 0;
    display: flex; align-items: center; gap: 0.1rem;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a,
.nav-dd-toggle {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.85rem; border-radius: 8px;
    font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
    color: var(--text-2); text-decoration: none;
    background: none; border: none; cursor: pointer; white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav-menu > li > a:hover,
.nav-dd-toggle:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-menu > li > a.nav-link-active { color: var(--text); }
.nav-dd-toggle i { font-size: 0.68rem; transition: transform 0.22s var(--ease); }
.has-dd.has-active > .nav-dd-toggle { color: var(--text); }

/* Dropdown panel */
.nav-dd {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 252px;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
    padding: 0.4rem; box-shadow: 0 18px 44px rgba(0,0,0,0.42);
    display: flex; flex-direction: column; gap: 0.1rem; z-index: 1100;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-dd:hover > .nav-dd,
.has-dd:focus-within > .nav-dd,
.has-dd.open > .nav-dd { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dd:hover > .nav-dd-toggle i,
.has-dd.open > .nav-dd-toggle i { transform: rotate(180deg); }

.nav-dd a {
    display: flex; flex-direction: column; gap: 0.1rem;
    padding: 0.55rem 0.7rem; border-radius: 8px; text-decoration: none;
    transition: background 0.18s;
}
.nav-dd a:hover { background: var(--bg-3); }
.nav-dd-t { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.nav-dd-s { font-size: 0.75rem; color: var(--text-3); }
.nav-dd a.nav-link-active .nav-dd-t { color: var(--accent); }

.nav-scrim { display: none; }   /* mobile only */

/* ── Mobile: collapse the menu into a slide-in panel + accordions ─────────── */
@media (max-width: 900px) {
    .nav-hamburger { display: flex; }

    .nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .nav-open body { overflow: hidden; }

    .nav-scrim {
        display: block; position: fixed; inset: 0; z-index: 1400;
        background: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s var(--ease), visibility 0.3s;
    }
    .nav-open .nav-scrim { opacity: 1; visibility: visible; }

    .nav-menu {
        /* <nav> has backdrop-filter, so it is the containing block for this fixed
           panel — top/bottom would size to the 62px bar. Use viewport height so the
           panel is full-height regardless (nav overflow is visible, so it isn't clipped). */
        position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
        width: min(340px, 86vw); margin: 0; z-index: 1500;
        flex-direction: column; align-items: stretch; gap: 0.1rem;
        /* Same frosted glass as the nav bar */
        background: rgba(12, 12, 12, 0.88);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-left: 1px solid var(--border);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
        padding: calc(var(--nav-h, 72px) + var(--sp-4)) var(--sp-5) var(--sp-6);
        overflow-y: auto; scrollbar-width: thin;
        transform: translateX(100%);
        transition: transform 0.34s var(--ease);
    }
    .nav-open .nav-menu { transform: translateX(0); }

    /* The menu lives inside <nav> (a z-index:1000 stacking context), so on its own
       it can't rise above the full-screen scrim. Lift the whole nav above the scrim
       while open, and keep the hamburger (→ X) above the panel as the close control. */
    .nav-open .nav { z-index: 1500; }
    .nav-hamburger { position: relative; z-index: 1501; }

    .nav-menu > li { position: static; }
    .nav-menu > li > a,
    .nav-dd-toggle {
        width: 100%; justify-content: space-between;
        padding: 0.72rem 0.6rem; font-size: 0.98rem; border-radius: 8px;
    }
    .nav-menu .nav-calc { justify-content: flex-start; gap: 0.5rem; }
    .nav-menu .nav-cta { justify-content: center; margin-top: var(--sp-2); }

    /* dropdowns become tap-to-expand accordions, in flow */
    .nav-dd {
        position: static; opacity: 1; visibility: visible; transform: none;
        background: none; border: none; box-shadow: none; border-radius: 0;
        min-width: 0; padding: 0 0 0 0.6rem;
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s var(--ease);
    }
    .has-dd.open > .nav-dd { max-height: 460px; }
    .nav-dd a { padding: 0.55rem 0.6rem; }
}

@media (max-width: 680px) {
    .nav-hamburger { display: flex; }

    /* Hide inline links; slide them in as a dropdown */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.85rem;
        padding: 0.6rem var(--sp-4) 0.9rem;
        background: rgba(10, 10, 10, 0.97);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 999;
    }
    .nav--open .nav-links { display: flex; }

    .nav-links a {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
        border-radius: 8px;
        width: 100%;
    }
    .nav-cta {
        margin-top: var(--sp-1);
        text-align: center;
        justify-content: center;
    }
}

/* 4. Hero */
.hero {
    --glow-x: 75%;
    --glow-y: 50%;
    --glow-size-x: 64rem;
    --glow-size-y: 40rem;
    --glow-meridian: 0.15;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
    isolation: isolate;
}

/* Dot grid background — anchored to the glow/crosshair point */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(
        ellipse 82% 76% at var(--glow-x) var(--glow-y),
        black 18%,
        rgba(0,0,0,0.9) 34%,
        transparent 72%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 82% 76% at var(--glow-x) var(--glow-y),
        black 18%,
        rgba(0,0,0,0.9) 34%,
        transparent 72%
    );
    pointer-events: none;
    z-index: 0;
}

/* Red radial glow — circular, clamped to crosshair anchor */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse var(--glow-size-x) var(--glow-size-y)
        at var(--glow-x) var(--glow-y),
        rgba(192, 135, 44, var(--glow-meridian)) 0%,
        rgba(192, 135, 44, calc(var(--glow-meridian) * 0.55)) 22%,
        rgba(192, 135, 44, calc(var(--glow-meridian) * 0.18)) 42%,
        rgba(192, 135, 44, 0.00) 58%
    );
    filter: blur(10px);
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3.5rem 5rem max(2rem, calc((100vw - var(--wrap)) / 2 + 2rem));
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: var(--sp-8);
}

.hero-eyebrow-line {
    width: 22px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-eyebrow-text {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.8rem, 5.2vw, 5.25rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.035em;
    margin-bottom: var(--sp-7);
}

.hero-title .t-accent { color: var(--accent); }
.hero-title .t-dim { color: var(--text-2); }

/* Blinking cursor after last word */
.hero-title .cursor::after {
    content: '|';
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

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

.hero-sub {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.75;
    /* max-width: 440px; */
    margin-bottom: var(--sp-10);
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* 5. Buttons */
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) 1.65rem;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-solid:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) 1.65rem;
    background: transparent;
    color: var(--text-2);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
}

/* Accent-tinted ghost — a secondary tier that reads a step above a plain ghost */
.btn-ghost.btn-accent {
    color: var(--accent);
    border-color: var(--accent-border);
    font-weight: 600;
}

.btn-ghost.btn-accent:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
    background: var(--accent-soft);
}

/* 5b. Card — shared hover card pattern */
.card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: var(--sp-8);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

/* 5c. Icon Box — red accent icon container */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 135, 44, 0.08);
    border: 1px solid rgba(192, 135, 44, 0.18);
    border-radius: 10px;
    color: var(--accent);
}

/* 6. Hero Visual (right side) */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: var(--sp-8);
}

.hero-visual {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.ring-1 {
    width: 280px; height: 280px;
    top: 50%; left: 50%;
    margin-top: -140px; margin-left: -140px;
    border-color: rgba(192, 135, 44, 0.22);
    animation: spin 22s linear infinite;
}

.ring-1::before {
    content: '';
    position: absolute;
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    top: -3.5px; left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
}

.ring-2 {
    width: 380px; height: 380px;
    top: 50%; left: 50%;
    margin-top: -190px; margin-left: -190px;
    border-color: rgba(192, 135, 44, 0.10);
    border-style: dashed;
    animation: spin 35s linear infinite reverse;
}

.ring-2::before, .ring-2::after {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    background: rgba(192, 135, 44, 0.4);
    border-radius: 50%;
}
.ring-2::before { top: -2.5px; left: 50%; transform: translateX(-50%); }
.ring-2::after  { bottom: -2.5px; left: 50%; transform: translateX(-50%); }

.ring-3 {
    width: 480px; height: 480px;
    top: 50%; left: 50%;
    margin-top: -240px; margin-left: -240px;
    border-color: rgba(255, 255, 255, 0.03);
    animation: spin 55s linear infinite;
}

.hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(192, 135, 44, 0.25)) drop-shadow(0 0 60px rgba(192, 135, 44, 0.1));
    animation: float 7s ease-in-out infinite;
}

.crosshair {
    position: absolute;
    width: 196px; height: 196px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: var(--accent);
}

.ch-tl, .ch-tr, .ch-bl, .ch-br {
    position: absolute;
    width: 14px; height: 14px;
    border-color: rgba(192, 135, 44, 0.45);
    border-style: solid;
}

.ch-tl { top: 0; left: 0;    border-width: 1px 0 0 1px; }
.ch-tr { top: 0; right: 0;   border-width: 1px 1px 0 0; }
.ch-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.ch-br { bottom: 0; right: 0;border-width: 0 1px 1px 0; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(transparent, var(--bg));
    z-index: 4;
    pointer-events: none;
}

/* 6b. Hero continuous line — scope → signed report, threads behind the orbit.
   Sits above the dot grid (z0) but behind the text and orbit (z2). */
.hero-line {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-line-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Routed through viewBox (1080,450) = 75%/50% = the orbit centre.
   non-scaling-stroke keeps the line crisp despite the stretched viewBox. */
.hero-line-path {
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    filter: drop-shadow(0 0 6px var(--accent-glow));
    animation: hlDraw 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s forwards;
}

@keyframes hlDraw { to { stroke-dashoffset: 0; } }

.hl-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: hlFade 0.6s ease forwards;
}

.hl-scope  { animation-delay: 0.5s; }
.hl-report { animation-delay: 2.7s; flex-direction: row-reverse; }

@keyframes hlFade { to { opacity: 1; } }

.hl-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow);
    flex-shrink: 0;
}

.hl-dot-lg {
    width: 10px; height: 10px;
    background: var(--accent-hover);
    animation: hlPulse 3s ease-in-out infinite;
}

@keyframes hlPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50%      { box-shadow: 0 0 0 7px rgba(192, 135, 44, 0); }
}

.hl-label {
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

.hl-label-hi { color: var(--accent-hover); }

@media (prefers-reduced-motion: reduce) {
    .hero-line-path { stroke-dashoffset: 0; animation: none; }
    .hl-node { opacity: 1; animation: none; }
    .hl-dot-lg { animation: none; }
}

/* Line layer follows the orbit — both hidden when the hero stacks */
@media (max-width: 960px) {
    .hero-line { display: none; }
}

/* 7. Ticker */
.ticker-wrap {
    background: var(--accent);
    padding: 0.7rem 0;
    overflow: hidden;
    position: relative;
}

.ticker-inner {
    display: flex;
    animation: ticker 28s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.ticker-wrap:hover .ticker-inner { animation-play-state: paused; }

.ticker-item {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.88);
    text-transform: uppercase;
    padding: 0 var(--sp-8);
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

.ticker-item::after {
    content: '·';
    opacity: 0.55;
    font-size: 1.2rem;
}

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 8. Section Common */
.section { padding: var(--section-y) 0; }

.section-dark {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Prose fills .wrap so its edges align with the header (logo left / CTA right),
   matching every other content page. */
.prose-block { margin-bottom: var(--sp-8) } /* off-grid: snap candidate (--sp-10/--sp-12) */

.prose-block h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
}

.prose-block p {
    color: var(--text-2);
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: var(--sp-3);
}

.prose-block p:last-child { margin-bottom: 0; }

.prose-block ul {
    color: var(--text-2);
    font-size: 0.97rem;
    line-height: 1.75;
    padding-left: var(--sp-6);
    list-style: none;
}

.prose-block ul li {
    position: relative;
    padding-left: var(--sp-4);
    margin-bottom: var(--sp-2);
}

.prose-block ul li::before {
    content: '—';
    position: absolute;
    left: -0.5rem;
    color: var(--text-3);
}

.prose-block ul.prose-no li::before {
    content: '\00d7';
    color: var(--accent);
    font-weight: 700;
}

.prose-highlight {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: var(--sp-4) var(--sp-5);
    margin-bottom: var(--sp-6);
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.7;
}

.prose-quote {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
    margin: var(--sp-14) 0 var(--sp-2);
}

.prose-quote-attr {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

.prose-meta {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-3);
    letter-spacing: 0.04em;
    margin-top: var(--sp-16);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
}

a.prose-link {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.prose-link:hover { color: var(--text); }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.80rem;
    font-weight: 550;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: var(--sp-5);
}

.section-tag::before {
    content: '';
    display: block;
    width: 18px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-heading {
    font-size: clamp(1.8rem, 3vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
}

.section-sub {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.7;
    /* max-width: 540px; */
}

/* 9. Bento Grid */
.bento {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr;
    gap: 0.85rem;
}

.bento-card {
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    display: flex;
    flex-direction: column;
}

.bento-card::before {
    border-radius: 14px;
    background: radial-gradient(ellipse 60% 60% at 30% 30%, var(--accent-soft), transparent);
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-border);
}

.bento-meridian { grid-row: auto; }

.bento-serial {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: var(--sp-6);
    position: relative;
    z-index: 1;
}

.bento-icon {
    width: 50px; height: 50px;
    object-fit: contain;
    margin-bottom: var(--sp-6);
    position: relative;
    z-index: 1;
}

.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
}

.bento-meridian .bento-title { font-size: 1.65rem; }

.bento-desc {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.75;
    position: relative;
    z-index: 1;
    flex: 1;
}

.bento-badge {
    margin-top: var(--sp-7);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem var(--sp-3);
    background: rgba(192, 135, 44, 0.08);
    border: 1px solid rgba(192, 135, 44, 0.2);
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
    align-self: flex-start;
    position: relative;
    z-index: 1;
}

.bento-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* 9b. Bento Tree Visualisation */
.bento-tree {
    margin-top: var(--sp-6);
    font-family: var(--mono);
    font-size: 0.76rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Meridian -specific: stop desc from consuming all space, let tree fill & centre */
.bento-meridian .bento-desc {
    flex: 0 0 auto;
}

.bento-meridian .bento-tree {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: var(--sp-5);
}

.bt-row {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding: var(--sp-1) 0;
}

.bt-conn {
    color: rgba(192, 135, 44, 0.55);
    flex-shrink: 0;
    user-select: none;
}

.bt-key {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

.bt-vals {
    color: var(--text);
    font-size: 0.70rem;
    line-height: 1.5;
}

.bt-children {
    padding-left: 1.1rem;
    border-left: 1px solid rgba(192, 135, 44, 0.2);
    margin-left: 0.28rem;
    margin-bottom: 0.15rem;
}

.bt-leaf {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.12rem 0;
    font-size: 0.70rem;
    color: var(--text);
}

/* 10. About */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--sp-20);
    align-items: start;
}

.about-big-text {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text);
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}

.about-big-text .t-accent { color: var(--accent); }

.about-body { font-size: 0.975rem; color: var(--text-2); line-height: 1.8; }

.about-body p + p { margin-top: var(--sp-5); }

.pillars {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin-top: var(--sp-8);
}

.pillar {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.7rem 0.9rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-2);
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.pillar:hover { border-color: var(--accent-border); color: var(--text); }

.pillar i {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* 11. Principles */
.principles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-8);
    margin-bottom: var(--sp-12);
}

/* Desktop row layout: give the heading block the remaining width and cap the
   sub to a reading measure, so a long sub can't squeeze the heading into a
   one-word-per-line column. (Stacks to one column at <=1024px, below.) */
@media (min-width: 1025px) {
    .principles-header > *:first-child { flex: 1 1 auto; min-width: 0; }
    .principles-header > .section-sub { flex: 0 1 460px; }
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.principle {
    padding: var(--sp-10);
    transition: background 0.2s;
    position: relative;
}

.principle:not(:last-child) { border-right: 1px solid var(--border); }

.principle:hover { background: var(--bg-2); }

.p-num {
    font-family: var(--mono);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-soft);
    -webkit-text-stroke: 1px rgba(192, 135, 44, 0.18);
    letter-spacing: -0.04em;
    margin-bottom: var(--sp-5);
}

.principle:hover .p-num { -webkit-text-stroke-color: rgba(192, 135, 44, 0.4); }

.p-icon {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid rgba(192, 135, 44, 0.2);
    border-radius: 8px;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: var(--sp-4);
}

.p-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.p-desc {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.75;
}

/* 12. CTA Strip */
.cta-strip {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: var(--sp-28) var(--sp-8);
    text-align: center;
}

.cta-strip-dark { background: var(--bg); }

.cta-label {
    font-family: var(--mono);
    font-size: 0.73rem;
    letter-spacing: 0.2em;
    color: var(--text-2);
    text-transform: uppercase;
    margin-bottom: var(--sp-6);
}

.cta-heading {
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.1;
    max-width: 680px;
    margin: 0 auto var(--sp-4);
}

.cta-heading em {
    color: var(--accent);
    font-style: normal;
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 440px;
    margin: 0 auto var(--sp-10);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 13. Footer */
.foot {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: var(--sp-10) 0;
}

.foot-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--sp-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.foot-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.foot-brand-info .name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.foot-brand-info .copy {
    font-size: 0.72rem;
    color: var(--text);
    margin-top: 1px;
}

.foot-brand-info .foot-reg {
    font-size: 0.66rem;
    line-height: 1.5;
    color: var(--muted, var(--text));
    opacity: 0.72;
    margin-top: 4px;
}

.foot-brand-info .foot-reg a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.foot-brand-info .foot-reg a:hover { color: var(--accent); }

.foot-links {
    display: flex;
    gap: var(--sp-6);
    list-style: none;
}

.foot-links a {
    font-size: 0.8rem;
    color: var(--text);
    transition: color 0.15s;
}

.foot-links a:hover { color: var(--accent); }

.foot-tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text);
    letter-spacing: 0.08em;
}

/* 14. Page Header (inner pages) */
.page-header {
    padding: calc(var(--nav-h) + var(--sp-10)) 0 var(--sp-10);
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 80%);
    pointer-events: none;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(192, 135, 44, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-header .wrap { position: relative; z-index: 1; }

.page-header-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: var(--sp-6);
}

.page-header-eyebrow-line {
    width: 22px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.page-header-eyebrow-text {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
}

.page-title {
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: var(--sp-5);
    /* max-width: 640px; */
}

.page-title .t-accent { color: var(--accent); }

.page-desc {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.75;
    /* max-width: 520px; */
}

/* 15. Scroll Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal="fast"] { transition-duration: 0.45s; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

[data-reveal].in-view {
    opacity: 1;
    transform: none;
}

/* 16. Responsive */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-right { display: none; }
    .hero-left { padding: var(--sp-8) var(--sp-6) var(--sp-10); }

    .nav-brand-slogan { display: none; }
    .nav-brand-name { font-size: 0.75rem; }
    .nav-inner { padding: 0 var(--sp-4); }

    .bento { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-meridian { grid-row: auto; }

    .about-split { grid-template-columns: 1fr; gap: var(--sp-10); }
    .about-big-text { position: static; font-size: 2rem; }

    .principles-grid { grid-template-columns: 1fr; border-radius: 12px; }
    .principle:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }

    .principles-header { flex-direction: column; align-items: flex-start; }

    .foot-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-5); }
}

@media (max-width: 768px) {
    .page-header { padding: calc(var(--nav-h) + var(--sp-6)) 0 var(--sp-8); }
    .page-title { font-size: 2rem; }
}

@media (max-width: 600px) {
    .section { padding: var(--section-y-sm) 0; }
    .hero-title { font-size: 2.6rem; }
}

/* Desktop-only: scale bento tree to fill the tall two-row meridian card */
@media (min-width: 961px) {
    .bento-meridian .bento-tree {
        font-size: 1.35rem;
    }
    .bento-meridian .bt-row {
        padding: 0.55rem 0;
        gap: 0.8rem;
    }
    .bento-meridian .bt-leaf {
        font-size: 1.15rem;
        padding: 0.28rem 0;
    }
    .bento-meridian .bt-children {
        padding-left: 1.8rem;
        margin-bottom: 0.4rem;
    }
}

/* ============================================================
   17. Platform Pipeline — Direction A ("the whole line")
   The bento gave way to a single horizontal track: four stages,
   each hanging its key areas, with the continuous loop + proof
   points below. Guardrails block continues the same section.
============================================================ */
:root { --ok: #7FA66A; }

.pipeline { margin-top: var(--sp-2); }

.pl-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-6);
    position: relative;
}
/* the line itself, threading the stage dots */
.pl-track::before {
    content: '';
    position: absolute;
    /* thread dot-centre to dot-centre: first dot sits 9px in;
       last dot sits at 20% - 0.8*gap from the right (5 x 1fr columns) */
    left: 9px; right: calc(20% - var(--sp-6) * 0.8 - 9px); top: 9px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 5%, var(--accent) 95%, transparent);
    opacity: 0.5;
}

.pl-stage { position: relative; padding-top: var(--sp-10); }

.pl-dot {
    position: absolute; top: 2px; left: 0;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent);
    box-shadow: 0 0 0 5px rgba(192, 135, 44, 0.10);
}
.pl-dot::after {
    content: ''; position: absolute; inset: 4px;
    border-radius: 50%; background: var(--accent);
}

.pl-num {
    font-family: var(--mono);
    font-size: 0.75rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--accent);
}
.pl-title {
    font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em;
    margin: 0.2rem 0 0.7rem; color: var(--text);
}
.pl-keys { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.pl-keys li {
    font-size: 0.8rem; color: var(--text-2); line-height: 1.45;
    display: flex; gap: 0.55rem; align-items: baseline;
}
.pl-keys li::before {
    content: '\2514'; /* └ — echoes the tree language without the nesting */
    font-family: var(--mono); color: var(--accent); opacity: 0.65;
    font-size: 0.74rem; flex-shrink: 0;
}
/* label on its own line, detail muted beneath — stays scannable in narrow columns */
.pl-k { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.pl-kh {
    font-weight: 700; color: var(--text); letter-spacing: -0.005em;
}
.pl-kd { color: var(--text-2); }

/* ---- Progressive disclosure: salient keys by default, full breadth on toggle ---- */
.pl-keys li.pl-extra { display: none; }
.pipeline.pl-expanded .pl-keys li.pl-extra { display: flex; }

.pl-more { display: flex; justify-content: center; margin-top: var(--sp-10); }
.pl-more-btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent);
    background: var(--accent-soft); border: 1px solid var(--accent-border);
    border-radius: 999px; padding: 0.65rem 1.25rem; cursor: pointer;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.2s var(--ease);
}
.pl-more-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.pl-more-chev { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.25s var(--ease); }
.pipeline.pl-expanded .pl-more-chev { transform: rotate(180deg); }

.pl-foot {
    display: flex; align-items: baseline; gap: 0.65rem;
    font-size: 0.9rem; color: var(--text-2); line-height: 1.6;
}
.pl-foot strong { color: var(--text); font-weight: 600; }
.pl-loop { color: var(--accent); font-size: 1.15rem; line-height: 1; flex-shrink: 0; }

.pl-proof {
    display: flex; flex-wrap: wrap; gap: 0.6rem var(--sp-6);
    margin-top: var(--sp-5);
    padding-bottom: var(--sp-8);
    border-bottom: 1px dashed var(--border);
    font-family: var(--mono); font-size: 0.72rem;
    letter-spacing: 0.05em; color: var(--text-2);
}
/* the line graphic now sits below the continuity note — give it room */
.pl-track { margin-top: var(--sp-10); }
.pl-proof span { display: inline-flex; align-items: center; gap: 0.5rem; }
.pl-proof i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---- Guardrails / maturity ---- */
.guard-block { margin-top: var(--sp-24); }
.guard-heading { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 0.6rem; }

.guard-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
    margin-top: var(--sp-10);
}
@media (max-width: 1100px) { .guard-grid { grid-template-columns: repeat(2, 1fr); } }
.guard {
    border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2);
    padding: var(--sp-6) var(--sp-4); display: flex; flex-direction: column;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.guard:hover {
    border-color: var(--accent-border); transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.guard-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--sp-4); }
.guard-ic {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--accent-border); background: var(--accent-soft);
    display: grid; place-items: center; color: var(--accent);
}
.guard-ic svg { width: 20px; height: 20px; }
.guard-when {
    font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-3); margin-bottom: 0.1rem;
}
.guard-title { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.guard-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; margin-top: 0.5rem; flex: 1; }

/* embedded "instrument" readout */
.inst {
    margin-top: var(--sp-5); border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); padding: 0.85rem 0.6rem;
    font-family: var(--mono); font-size: 0.73rem; line-height: 1;
    font-variant-numeric: tabular-nums;
    display: flex; flex-direction: column;
}
/* keep every card's readout the same height, footer pinned to the bottom */
@media (min-width: 861px) { .inst { min-height: 11.75rem; } }
.inst-hd {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 0.6rem; margin-bottom: 0.65rem; border-bottom: 1px solid var(--border);
    color: var(--text-3); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.inst-hd b { color: var(--text-2); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.7rem; }
.inst-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.33rem 0; color: var(--text-2); }
.inst-row .mk { width: 13px; height: 13px; flex-shrink: 0; }
.inst-row.ok .mk { color: var(--ok); }
.inst-row.warn { color: var(--text); }
.inst-row.warn .mk { color: var(--accent); }
.inst-row.pend { color: var(--text-3); }
.inst-row .n { color: var(--text); font-weight: 700; margin-right: 0.15rem; }
.inst-row.warn .n { color: var(--accent); }
.inst-foot {
    margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--border);
    color: var(--text-3); font-size: 0.64rem; letter-spacing: 0.02em;
}

@media (max-width: 860px) {
    .pl-track { grid-template-columns: 1fr; gap: 0; }
    .pl-track::before { display: none; }
    .pl-stage {
        padding: 0 0 var(--sp-6) var(--sp-6);
        border-left: 2px solid rgba(192, 135, 44, 0.35);
    }
    .pl-stage:last-child { padding-bottom: 0; }
    .pl-dot { left: -10px; }
    .guard-grid { grid-template-columns: 1fr; }
}
