/* =============================================================================
   ASHMORE ENTERPRISES — "Mission Control"
   styles.css — design tokens, components, animations, effects
   Buildless. Loaded after the Tailwind CDN; Tailwind handles layout utilities,
   this file owns the theme + every custom effect. No hex hardcoded in markup.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Base surfaces (blue-black -> raised panel) */
    --void:   #050609;
    --abyss:  #080b13;
    --ink:    #0d111c;
    --slate:  #161c2b;
    --line:   #232b3d;

    /* Text */
    --chalk:  #eef1f8;
    --fog:    #aab4c8;
    --mist:   #7b869c;

    /* Module accents */
    --volt:   #4a7bff;   --ion:  #35e0f0;   /* POS          */
    --plasma: #b06bff;   --rose: #ff6bd0;   /* AI           */
    --ember:  #ff8a2b;   --sand: #d8c4a8;   /* Construction */
    --signal: #38f5a8;                      /* status online */

    /* Active accent — overridden per view. Home defaults to a volt/ion blend. */
    --accent:   var(--volt);
    --accent-2: var(--ion);

    /* Type */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    /* Rhythm */
    --radius: 14px;
    --radius-sm: 9px;
    --maxw: 1180px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* Accent as RGB triples for alpha compositing */
    --accent-rgb: 74 123 255;
}

/* Per-view accent theming. Set on each .view container. */
.view--home         { --accent: var(--volt);   --accent-2: var(--ion);   --accent-rgb: 74 123 255; }
.view--pos          { --accent: var(--volt);   --accent-2: var(--ion);   --accent-rgb: 74 123 255; }
.view--ai           { --accent: var(--plasma); --accent-2: var(--rose);  --accent-rgb: 176 107 255; }
.view--construction { --accent: var(--ember);  --accent-2: var(--sand);  --accent-rgb: 255 138 43; }

/* -----------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--void);
    color: var(--fog);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--chalk);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}

p { margin: 0; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgb(var(--accent-rgb) / .35); color: var(--chalk); }

/* Universal keyboard focus */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* -----------------------------------------------------------------------------
   3. AMBIENT LAYERS (grid + grain + vignette + cursor spotlight)
   Fixed, behind everything, never interactive.
   -------------------------------------------------------------------------- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient__grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(to right, rgb(255 255 255 / .028) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(255 255 255 / .028) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
}

.ambient__glow {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 80vw;
    height: 60vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
        rgb(var(--accent-rgb) / .16), transparent 62%);
    filter: blur(30px);
    transition: background .6s var(--ease);
}

.ambient__grain {
    position: absolute;
    inset: 0;
    opacity: .04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 100% at 50% 40%, transparent 55%, rgb(0 0 0 / .65) 100%);
}

.ambient__spot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s var(--ease);
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
        rgb(var(--accent-rgb) / .08), transparent 45%);
}
body.has-pointer .ambient__spot { opacity: 1; }

/* Boot canvas sits above ambient, below content, only on home */
#circuit-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}
#circuit-canvas.is-live { opacity: 1; }

/* -----------------------------------------------------------------------------
   4. VIEW SYSTEM
   -------------------------------------------------------------------------- */
.view {
    position: relative;
    z-index: 1;
    display: none;
    width: 100%;
    padding: clamp(1.1rem, 4vw, 2.4rem);
}
.view.is-active { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* Shared section rhythm */
.section { margin: clamp(4rem, 10vw, 8rem) 0; }
.section__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.9rem); }
.section__head p { color: var(--fog); margin-top: .8rem; }

/* -----------------------------------------------------------------------------
   5. TYPOGRAPHY HELPERS
   -------------------------------------------------------------------------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
    animation: pulseDot 2.4s var(--ease) infinite;
}

.mono { font-family: var(--font-mono); }
.accent-text {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* -----------------------------------------------------------------------------
   6. VIEW HEADER (module views)
   -------------------------------------------------------------------------- */
.vhead {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.4rem;
    padding-bottom: 1.6rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--line);
}
.vhead__title {
    font-size: clamp(2.3rem, 7vw, 4.6rem);
    font-weight: 700;
    margin-top: .5rem;
}
.vhead__row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }

.status-pill {
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgb(var(--accent-rgb) / .4);
    background: rgb(var(--accent-rgb) / .08);
    padding: .32rem .7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
}
.status-pill::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2s infinite;
}
.status-pill--live { color: var(--signal); border-color: rgb(56 245 168 / .4); background: rgb(56 245 168 / .08); }
.status-pill--live::before { background: var(--signal); box-shadow: 0 0 8px var(--signal); }

/* Return-to-hub button */
.btn-hub {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 1.1rem .6rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(13 17 28 / .7);
    backdrop-filter: blur(8px);
    color: var(--fog);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.btn-hub:hover { border-color: rgb(var(--accent-rgb) / .6); color: var(--chalk); background: var(--slate); }
.btn-hub svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn-hub:hover svg { transform: translateX(-4px); }

/* -----------------------------------------------------------------------------
   7. CARDS & SURFACES
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    background: linear-gradient(160deg, rgb(22 28 43 / .72), rgb(13 17 28 / .72));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2rem);
    backdrop-filter: blur(10px);
    transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: rgb(var(--accent-rgb) / .45); }
.card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.card p { color: var(--fog); font-size: .95rem; }

.card__ico {
    display: inline-flex;
    padding: .7rem;
    border-radius: 12px;
    color: var(--accent);
    background: rgb(var(--accent-rgb) / .1);
    border: 1px solid rgb(var(--accent-rgb) / .22);
    margin-bottom: 1.1rem;
}
.card__ico svg { width: 26px; height: 26px; }

.check { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.check li { display: flex; gap: .6rem; font-size: .9rem; color: var(--fog); }
.check li::before { content: "▹"; color: var(--accent); font-weight: 700; }

.tag {
    position: absolute;
    top: 0; right: 0;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .34rem .7rem;
    border-radius: 0 var(--radius) 0 12px;
    background: rgb(var(--accent-rgb) / .16);
    color: var(--accent);
    border-left: 1px solid rgb(var(--accent-rgb) / .3);
    border-bottom: 1px solid rgb(var(--accent-rgb) / .3);
}

/* -----------------------------------------------------------------------------
   8. HOME — BOOT HERO
   -------------------------------------------------------------------------- */
.hero {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(2rem, 6vh, 5rem) 0;
    position: relative;
}
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    max-width: 15ch;
    letter-spacing: -0.03em;
}
.hero__title .accent-text { display: inline; }
.hero__sub {
    margin-top: 1.6rem;
    max-width: 52ch;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--fog);
}

/* Live readouts row */
.readouts {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 2.2rem;
}
.readout {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    color: var(--fog);
    border: 1px solid var(--line);
    background: rgb(13 17 28 / .6);
    border-radius: 8px;
    padding: .5rem .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.readout.is-in { opacity: 1; transform: none; }
.readout b { color: var(--chalk); font-weight: 600; }
.readout .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: pulseDot 1.8s infinite; }

/* -----------------------------------------------------------------------------
   9. HOME — SYSTEM BOARD (module nodes)
   -------------------------------------------------------------------------- */
.board { position: relative; }
.board__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.8rem);
}
@media (max-width: 820px) { .board__grid { grid-template-columns: 1fr; } }

.node {
    --accent: var(--volt); --accent-2: var(--ion); --accent-rgb: 74 123 255;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: clamp(1.5rem, 3vw, 2.1rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgb(22 28 43 / .6), rgb(8 11 19 / .7));
    cursor: pointer;
    overflow: hidden;
    transition: border-color .4s var(--ease), transform .3s var(--ease), box-shadow .4s var(--ease);
    transform-style: preserve-3d;
    will-change: transform;
}
.node[data-accent="pos"]          { --accent: var(--volt);   --accent-2: var(--ion);  --accent-rgb: 74 123 255; }
.node[data-accent="ai"]           { --accent: var(--plasma); --accent-2: var(--rose); --accent-rgb: 176 107 255; }
.node[data-accent="construction"] { --accent: var(--ember);  --accent-2: var(--sand); --accent-rgb: 255 138 43; }

.node::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 0%, rgb(var(--accent-rgb) / .14), transparent 60%);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.node:hover, .node:focus-visible {
    border-color: rgb(var(--accent-rgb) / .6);
    box-shadow: 0 20px 50px -20px rgb(var(--accent-rgb) / .5);
}
.node:hover::before, .node:focus-visible::before { opacity: 1; }

.node__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.node__idx { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .28em; color: var(--mist); text-transform: uppercase; }
.node__badge {
    font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em;
    text-transform: uppercase; white-space: nowrap;
    color: var(--accent);
    border: 1px solid rgb(var(--accent-rgb) / .4);
    background: rgb(var(--accent-rgb) / .08);
    border-radius: 999px; padding: .28rem .6rem;
    display: inline-flex; align-items: center; gap: .4rem;
}
.node__badge::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2s infinite;
}
.node__badge--live { color: var(--signal); border-color: rgb(56 245 168 / .4); background: rgb(56 245 168 / .08); }
.node__badge--live::before { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.node__ico { color: var(--accent); }
.node__ico svg { width: 34px; height: 34px; }
.node__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.node__desc { color: var(--fog); font-size: .92rem; position: relative; z-index: 1; }
.node__foot {
    margin-top: auto;
    display: flex; align-items: center; justify-content: flex-end;
    font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent);
    padding-top: 1rem;
}
.node__foot .arrow { transition: transform .3s var(--ease); }
.node:hover .node__foot .arrow { transform: translateX(5px); }

/* -----------------------------------------------------------------------------
   10. BUTTONS / CTAs
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .95rem 1.7rem;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
    will-change: transform;
}
.btn--primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #04060c;
    font-weight: 700;
    box-shadow: 0 10px 30px -12px rgb(var(--accent-rgb) / .7);
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgb(var(--accent-rgb) / .85); }
.btn--ghost {
    background: rgb(13 17 28 / .6);
    border-color: var(--line);
    color: var(--chalk);
}
.btn--ghost:hover { border-color: rgb(var(--accent-rgb) / .55); }

/* -----------------------------------------------------------------------------
   11. CONSOLE CONTACT FORM (Formspree)
   -------------------------------------------------------------------------- */
.console-form {
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgb(22 28 43 / .7), rgb(8 11 19 / .8));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 20px 60px -30px #000;
}
.console-form__bar {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--mist);
    padding: .2rem .4rem .7rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: .9rem;
}
.console-form__bar .led { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.console-form__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.console-form input[type="email"] {
    flex: 1 1 12rem;
    min-width: 0;
    background: var(--void);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--chalk);
    font-family: var(--font-mono);
    font-size: .9rem;
    padding: .85rem 1rem;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.console-form input[type="email"]::placeholder { color: var(--mist); }
.console-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .18);
}
.console-form .btn { flex: 0 0 auto; }

/* -----------------------------------------------------------------------------
   12. OFFLINE FEED PANEL (shared AI + Construction)
   -------------------------------------------------------------------------- */
.feed {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(0deg, rgb(255 255 255 / .015) 0 1px, transparent 1px 4px),
        radial-gradient(120% 90% at 50% 0%, rgb(var(--accent-rgb) / .08), transparent 60%),
        var(--abyss);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}
.feed--wide { aspect-ratio: 21 / 9; }

.feed__scan {
    position: absolute;
    left: 0; right: 0;
    top: -30%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgb(var(--accent-rgb) / .18), transparent);
    animation: feedScan 5.5s linear infinite;
    pointer-events: none;
}
.feed__label {
    position: relative;
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    align-self: flex-start;
    border: 1px solid rgb(var(--accent-rgb) / .3);
    background: rgb(8 11 19 / .6);
    border-radius: 999px;
    padding: .3rem .7rem;
}
.feed__label::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 1.4s infinite;
}
.feed__center {
    position: relative;
    text-align: center;
    color: var(--mist);
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .14em;
}
.feed__center .big { display: block; color: var(--fog); font-size: 1rem; letter-spacing: .3em; margin-bottom: .4rem; }
.feed__meta {
    position: relative;
    display: flex; justify-content: space-between;
    font-family: var(--font-mono); font-size: .58rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--mist);
}

/* Empty "future content" slot for Construction */
.slot {
    border: 1px dashed rgb(var(--accent-rgb) / .35);
    border-radius: var(--radius);
    background: rgb(255 138 43 / .03);
    padding: clamp(1.4rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: .6rem;
    min-height: 180px;
    justify-content: center;
}
.slot__tag {
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--accent);
    align-self: flex-start;
    border: 1px solid rgb(var(--accent-rgb) / .3);
    border-radius: 999px; padding: .28rem .6rem;
}
.slot h4 { font-size: 1.05rem; color: var(--chalk); }
.slot p { color: var(--mist); font-size: .86rem; }

/* -----------------------------------------------------------------------------
   13. POS GALLERY (ported expand/center interaction, restyled)
   -------------------------------------------------------------------------- */
#gallery-grid { position: relative; }
.gallery-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink);
    overflow: hidden;
    cursor: pointer;
    transition: all .5s var(--ease);
    z-index: 1;
}
.gallery-card:hover { border-color: rgb(var(--accent-rgb) / .5); }
.gallery-card.slot-center { border-color: var(--accent); box-shadow: 0 0 40px rgb(var(--accent-rgb) / .4); }

.image-flipper {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: var(--void);
}
.image-flipper img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.image-flipper .img-dark { opacity: 0; animation: fadeLoop 10s infinite; }

.gallery-card__label {
    padding: .8rem 1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--chalk);
    border-top: 1px solid var(--line);
    background: linear-gradient(to top, rgb(var(--accent-rgb) / .08), transparent);
}

@media (min-width: 768px) {
    #gallery-grid { min-height: 760px; padding-top: 40px; }
    #gallery-grid.is-expanded .gallery-card { position: absolute; width: 32%; }
    .slot-center {
        top: 50%; left: 50%;
        transform: translate(-50%, -50%) scale(1.65) !important;
        z-index: 50 !important;
        width: 32%;
        box-shadow: 0 35px 60px -15px rgb(0 0 0 / .9), 0 0 40px rgb(var(--accent-rgb) / .4);
    }
    .slot-top-left     { top: -8%;  left: -4%;  transform: scale(.8) !important; z-index: 10; }
    .slot-top-right    { top: -8%;  right: -4%; transform: scale(.8) !important; z-index: 10; }
    .slot-bottom-left  { bottom: -8%; left: -4%; transform: scale(.8) !important; z-index: 10; }
    .slot-bottom-right { bottom: -8%; right: -4%; transform: scale(.8) !important; z-index: 10; }
}
@media (min-width: 1500px) {
    .slot-center { transform: translate(-50%, -50%) scale(2.2) !important; }
    .slot-top-left { top: -12%; left: -8%; } .slot-top-right { top: -12%; right: -8%; }
    .slot-bottom-left { bottom: -12%; left: -8%; } .slot-bottom-right { bottom: -12%; right: -8%; }
}

/* -----------------------------------------------------------------------------
   14. TYRO BADGE FRAME
   -------------------------------------------------------------------------- */
.tyro {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(8 11 19 / .8);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tyro:hover { border-color: rgb(var(--accent-rgb) / .5); transform: translateY(-3px); }
.tyro img { height: 44px; width: auto; }

/* -----------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.foot {
    border-top: 1px solid var(--line);
    margin-top: 4rem;
    padding: 2.5rem 0 1rem;
    text-align: center;
    color: var(--mist);
    font-family: var(--font-mono);
    font-size: .74rem;
    letter-spacing: .1em;
}
.foot__mark { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.foot__mark img { height: 26px; }

/* Slim contact footer (home hub router) */
.foot--contact { margin-top: clamp(3rem, 8vw, 6rem); padding-top: 2rem; }
.foot-contact {
    max-width: 620px;
    margin: 0 auto 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(160deg, rgb(22 28 43 / .7), rgb(8 11 19 / .8));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}
.foot-contact__label {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--fog); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem;
}
.foot-contact__label .led { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.foot-contact__row { display: flex; gap: .6rem; flex: 1 1 16rem; min-width: 0; }
.foot-contact input[type="email"] {
    flex: 1 1 auto; min-width: 0;
    background: var(--void);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--chalk);
    font-family: var(--font-mono);
    font-size: .85rem;
    padding: .7rem .9rem;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.foot-contact input[type="email"]::placeholder { color: var(--mist); }
.foot-contact input[type="email"]:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .18);
}
.foot-contact .btn { flex: 0 0 auto; padding: .7rem 1.3rem; }
@media (max-width: 560px) {
    .foot-contact__row { flex-direction: column; }
    .foot-contact .btn { width: 100%; }
}

/* -----------------------------------------------------------------------------
   16. SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* -----------------------------------------------------------------------------
   17. KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fadeLoop { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes feedScan { 0% { top: -30%; } 100% { top: 100%; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* -----------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .vhead { align-items: flex-start; }
    .btn-hub { order: -1; }
    .console-form__row { flex-direction: column; }
    .console-form .btn { width: 100%; }
}

/* -----------------------------------------------------------------------------
   19. TOUCH / COARSE POINTER — kill heavy effects
   -------------------------------------------------------------------------- */
@media (hover: none), (pointer: coarse) {
    .ambient__spot { display: none; }
    #circuit-canvas { display: none; }
    .node { transform: none !important; }
}

/* -----------------------------------------------------------------------------
   20. REDUCED MOTION — freeze everything
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .readout { opacity: 1; transform: none; }
    #circuit-canvas { display: none; }
    .feed__scan { display: none; }
}
