/* ============================================
   telep tools - the shipyard
   same family as jonathantelep.com: sidebar + grid, mono metadata.
   the sun and deep space are replaced by a blueprint floor and a gantry crane.
   ============================================ */
:root {
    --bg: #0b0d10;
    --bg-2: #10131a;
    --panel: #12161d;
    --line: rgba(215, 226, 234, 0.1);
    --line-2: rgba(215, 226, 234, 0.2);
    --fg: #e6edf3;
    --mist: #c7d3dc;
    --dim: rgba(199, 211, 220, 0.55);
    --dimmer: rgba(199, 211, 220, 0.32);
    --green: #35d07f;
    --amber: #f5b342;
    --red: #ff5f57;
    --blue: #5ad1ff;      /* blueprint ink, art only */
    --weld: #ffb347;      /* the one accent: welding light */
    --sans: 'Kanit', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    --side: 250px;
    --gutter: 56px;
    --p: 0;               /* whole-page scroll progress 0..1 */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--weld); color: #000; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 6px 10px; z-index: 100; }

/* ---------- the floor: blueprint grid ---------- */
#floor {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(90, 209, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 209, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(90, 209, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 209, 255, 0.11) 1px, transparent 1px);
    background-size: 22px 22px, 22px 22px, 110px 110px, 110px 110px;
    opacity: calc(0.9 - var(--p) * 0.5);
}
/* the gantry crane rides the top rail; the trolley travels with scroll */
#gantry {
    position: fixed; left: var(--side); right: 0; top: 0; height: 70px; z-index: 2; pointer-events: none;
}
#gantry .rail {
    position: absolute; left: 0; right: 0; top: 14px; height: 6px;
    background: repeating-linear-gradient(90deg, rgba(199, 211, 220, 0.18) 0 18px, rgba(199, 211, 220, 0.04) 18px 22px);
    border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
#gantry .trolley {
    position: absolute; top: 6px; width: 46px; height: 22px;
    left: calc(6% + var(--p) * 82%);
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px;
    transition: left 0.25s var(--ease);
}
#gantry .trolley::before, #gantry .trolley::after {
    content: ''; position: absolute; bottom: -7px; width: 8px; height: 8px; border-radius: 50%; background: #2a2f37; border: 1px solid var(--line-2);
}
#gantry .trolley::before { left: 6px; } #gantry .trolley::after { right: 6px; }
#gantry .cable { position: absolute; left: 50%; top: 100%; width: 1px; height: 34px; background: var(--dimmer); }
#gantry .hook {
    position: absolute; left: 50%; top: calc(100% + 34px); width: 10px; height: 10px; margin-left: -5px;
    border: 2px solid var(--weld); border-top-color: transparent; border-radius: 50%;
    animation: sway 3.2s ease-in-out infinite; transform-origin: 50% -34px;
}
@keyframes sway { 50% { transform: rotate(4deg); } }
/* welding light: a warm flicker behind the drydock, fades as you leave the floor */
#weld {
    position: fixed; z-index: 0; pointer-events: none;
    left: calc(var(--side) + (100vw - var(--side)) * 0.72); top: 48vh;
    width: min(60vh, 70vw); height: min(60vh, 70vw); margin: -30vh 0 0 -30vh;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.22), rgba(255, 120, 40, 0.08) 40%, transparent 70%);
    opacity: calc(1 - var(--p) * 2.2);
    animation: flicker-weld 0.9s steps(3) infinite;
}
@keyframes flicker-weld { 33% { filter: brightness(1.35); } 66% { filter: brightness(0.85); } }

/* ---------- sidebar ---------- */
#side {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--side);
    padding: 34px 26px 26px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11, 13, 16, 0.85), rgba(11, 13, 16, 0.6));
    backdrop-filter: blur(6px);
    display: flex; flex-direction: column; gap: 30px;
    z-index: 10;
    font-family: var(--mono);
    font-size: 12px;
    overflow-y: auto;
    scrollbar-width: none;
}
#side::-webkit-scrollbar { display: none; }
.brand { font-family: var(--sans); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; text-decoration: none; color: var(--fg); line-height: 1; }
.brand::after { content: '_'; color: var(--weld); animation: blink 1.1s step-end infinite; }
.meta { margin: 0; display: grid; gap: 7px; }
.meta div { display: flex; gap: 8px; }
.meta dt { color: var(--dim); min-width: 56px; }
.meta dd { margin: 0; color: var(--fg); }
.meta dd a { color: var(--blue); text-decoration: none; }
.meta dd a:hover { text-decoration: underline; }
#hull { color: var(--weld); }

.sidenav { display: grid; gap: 4px; position: relative; }
.sidenav a {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 10px; margin: 0 -10px;
    text-decoration: none; color: var(--mist); border-radius: 6px;
    transition: color 0.2s, background 0.2s, transform 0.25s var(--ease);
    position: relative;
}
.sidenav a span { color: var(--dimmer); font-size: 11px; min-width: 18px; }
.sidenav a::before {
    content: ''; position: absolute; left: -2px; top: 50%; width: 3px; height: 0; border-radius: 2px;
    background: var(--weld); transform: translateY(-50%); transition: height 0.25s var(--ease);
}
.sidenav a:hover { color: #fff; background: rgba(199, 211, 220, 0.05); transform: translateX(3px); }
.sidenav a.active { color: #fff; background: rgba(199, 211, 220, 0.06); }
.sidenav a.active::before { height: 60%; }
.sidenav a.active span { color: var(--weld); }

.bays { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.bay-head { margin: 0 0 4px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
i.live {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6);
    animation: pulse 2s infinite;
}
i.live.off { background: var(--red); animation: none; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(53, 208, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}
#bay-list { display: grid; gap: 6px; }
.bay { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; text-decoration: none; color: var(--mist); padding: 2px 0; }
.bay:hover { color: #fff; }
.bay b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bay span { color: var(--dim); font-size: 11px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #444; display: inline-block; flex: none; }
.led.on { background: var(--green); box-shadow: 0 0 10px rgba(53, 208, 127, 0.6); }
.led.hosted { background: var(--blue); box-shadow: 0 0 10px rgba(90, 209, 255, 0.5); }
.led.build { background: var(--amber); box-shadow: 0 0 10px rgba(245, 179, 66, 0.6); animation: flicker 2.2s steps(2) infinite; }
.led.repo { background: var(--dimmer); }
.led.contact { background: var(--amber); opacity: 0.7; }
.bay-note { margin: 4px 0 0; color: var(--dimmer); font-size: 11px; }

.side-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.side-foot a, .side-foot .linkish { color: var(--dim); text-decoration: none; transition: color 0.2s; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.side-foot a:hover, .side-foot .linkish:hover { color: var(--weld); }

/* ---------- content ---------- */
#content { position: relative; z-index: 1; margin-left: var(--side); padding: 0 var(--gutter); }
.sec { position: relative; padding: 96px 0; max-width: 1080px; }
.sec + .sec { border-top: 1px solid var(--line); }

.h1, .h2, .card h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; min-height: 1em; }
.h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; }
.typed { white-space: pre; }
.caret { display: inline-block; width: 0.08em; height: 0.9em; margin-left: 0.08em; background: var(--weld); vertical-align: -0.08em; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flicker { 50% { opacity: 0.55; } }

.kicker, .plate, .plate-tag, .sec-sub, .tags, .card-route, .keys, footer, .toast { font-family: var(--mono); }
.kicker { font-size: 12px; color: var(--dim); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.lede { font-size: 18px; line-height: 1.65; color: var(--mist); max-width: 640px; margin: 22px 0 0; font-weight: 300; }
.sec-sub { font-size: 13px; color: var(--dim); margin: 14px 0 0; max-width: 640px; line-height: 1.6; }
.sec-sub b { color: var(--weld); font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border: 1px solid var(--fg); border-radius: 8px;
    font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--fg);
    background: transparent; position: relative; overflow: hidden; cursor: pointer;
    transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--fg); transform: translateX(-101%); transition: transform 0.35s var(--ease); z-index: 0; }
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: #000; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover::before { transform: translateX(0); }
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.btn.ghost { border-color: var(--line-2); color: var(--mist); }
.btn.ghost::before { background: var(--weld); }
.btn.ghost:hover { border-color: var(--weld); color: #000; }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn[disabled] { opacity: 0.5; cursor: default; pointer-events: none; }

/* ---------- 01 floor ---------- */
#hello { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 90px; }
.hello-grid { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 48px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.facts li { display: grid; gap: 2px; }
.facts b { font-family: var(--sans); font-weight: 600; font-size: 30px; line-height: 1; color: var(--fg); }
.facts span { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.1em; }

/* the drydock: a hull being plated, frame by frame */
.drydock { position: relative; padding: 30px 10px 0; }
.hull { position: relative; height: 150px; margin: 0 20px; }
.hull .frame {
    position: absolute; bottom: 20px; width: 2px; height: 110px; background: var(--line-2);
    border-radius: 2px; transform-origin: bottom;
}
.hull .frame:nth-child(1) { left: 6%; height: 60px; } .hull .frame:nth-child(2) { left: 20%; height: 90px; }
.hull .frame:nth-child(3) { left: 34%; height: 108px; } .hull .frame:nth-child(4) { left: 48%; height: 112px; }
.hull .frame:nth-child(5) { left: 62%; height: 108px; } .hull .frame:nth-child(6) { left: 76%; height: 92px; }
.hull .frame:nth-child(7) { left: 90%; height: 64px; }
.hull::before {
    content: ''; position: absolute; left: 4%; right: 4%; bottom: 20px; height: 112px;
    border: 1px dashed rgba(90, 209, 255, 0.45); border-bottom: 0;
    border-radius: 60% 60% 0 0 / 100% 100% 0 0;
}
.hull .plate {
    position: absolute; bottom: 20px; height: 34px; margin: 0;
    background: linear-gradient(180deg, #1e2630, #151a22); border: 1px solid var(--line-2); border-radius: 3px;
    opacity: 0; animation: rivet 9s var(--ease) infinite;
}
.hull .p1 { left: 20%; width: 14%; } .hull .p2 { left: 34%; width: 14%; animation-delay: 1.2s; }
.hull .p3 { left: 48%; width: 14%; animation-delay: 2.4s; } .hull .p4 { left: 62%; width: 14%; animation-delay: 3.6s; }
@keyframes rivet { 0% { opacity: 0; transform: translateY(-40px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.hull .nose { position: absolute; left: 90%; bottom: 20px; width: 0; height: 0; border-left: 26px solid #1a212a; border-top: 24px solid transparent; border-bottom: 10px solid transparent; opacity: 0.9; }
.hull .spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--weld); box-shadow: 0 0 8px var(--weld); opacity: 0; animation: spark 1.6s ease-out infinite; }
.hull .s1 { left: 34%; bottom: 54px; } .hull .s2 { left: 48%; bottom: 54px; animation-delay: 0.5s; } .hull .s3 { left: 62%; bottom: 54px; animation-delay: 1.1s; }
@keyframes spark { 0% { opacity: 0; transform: none; } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(-14px, 22px) scale(0.4); } }
.cradle { display: flex; justify-content: space-around; margin: 0 40px; }
.cradle i { width: 10px; height: 26px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 2px 2px 0 0; }
.deck { height: 8px; border-top: 2px solid var(--line-2); background: repeating-linear-gradient(90deg, rgba(255, 179, 71, 0.35) 0 14px, transparent 14px 28px); }
.plate-tag, .plate { font-size: 11px; color: var(--dimmer); margin: 14px 0 0; letter-spacing: 0.02em; }

/* ---------- hangars ---------- */
.hangar-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.hangar-tag i { width: 14px; height: 10px; border: 1px solid var(--dimmer); border-top-width: 3px; border-radius: 2px 2px 0 0; position: relative; }
.hangar-tag i::after { content: ''; position: absolute; left: 3px; right: 3px; bottom: -1px; height: 3px; background: var(--weld); animation: door 4s var(--ease) infinite; transform-origin: bottom; }
@keyframes door { 40%, 60% { transform: scaleY(2.2); } }
.cards { display: grid; gap: 22px; margin-top: 40px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-1 { grid-template-columns: minmax(0, 720px); }
.card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 18px;
    background: rgba(16, 19, 26, 0.6);
    transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.card.up { border-color: rgba(53, 208, 127, 0.35); }
.card-art { position: relative; height: 150px; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.stamp {
    position: absolute; top: 10px; right: 10px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
    padding: 3px 8px; border-radius: 4px; background: rgba(11, 13, 16, 0.85); border: 1px solid; transform: rotate(-2deg);
}
.stamp.live { color: var(--green); border-color: var(--green); }
.stamp.soon { color: var(--amber); border-color: var(--amber); animation: flicker 3s steps(2) infinite; }
.card .plate { margin: 12px 0 0; }
.card h3 { font-size: 22px; margin: 6px 0 0; transition: color 0.2s; }
.card:hover h3 { color: var(--weld); }
.card > p.desc { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--dim); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 10.5px; }
.tags span { padding: 3px 8px; border-radius: 4px; background: rgba(199, 211, 220, 0.06); color: var(--dim); }
.card-route { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; color: var(--dim); }
.card-route code { color: var(--mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.cmd { position: relative; margin: 14px 0 0; padding: 12px 40px 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--mist); overflow-x: auto; white-space: pre; }
.cmd .g { color: var(--green); }
.cmd .copy { position: absolute; right: 8px; top: 8px; background: transparent; border: 1px solid var(--line-2); color: var(--dim); border-radius: 4px; padding: 2px 8px; font: inherit; font-size: 10px; cursor: pointer; }
.cmd .copy:hover { border-color: var(--weld); color: var(--weld); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips a { font-family: var(--mono); font-size: 11px; text-decoration: none; color: var(--mist); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.chips a:hover { border-color: var(--weld); color: #000; background: var(--weld); }

/* card art */
.card-art pre { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--mist); }
.art-json pre b { color: var(--blue); font-weight: 500; } .art-json pre i { color: var(--green); font-style: normal; }
.art-skills pre b { color: var(--blue); font-weight: 500; } .art-skills pre i { color: var(--weld); font-style: normal; }
.art-seploy pre .g { color: var(--green); } .art-seploy .cur { animation: blink 1s step-end infinite; }
.art-postgres svg { width: 80%; height: 80%; }
.art-postgres .nodes rect { fill: var(--bg-2); stroke: var(--blue); stroke-width: 1; }
.art-postgres .edges line { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 6 4; animation: dash 2s linear infinite; opacity: 0.7; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.art-forge .tiles { display: grid; grid-template-columns: repeat(6, 22px); gap: 8px; }
.art-forge .tiles i { width: 22px; height: 22px; border-radius: 4px; border: 1px dashed var(--amber); opacity: 0.35; animation: fill 4s ease-in-out infinite; }
.art-forge .tiles i:nth-child(3n) { animation-delay: 0.6s; } .art-forge .tiles i:nth-child(3n+1) { animation-delay: 1.4s; } .art-forge .tiles i:nth-child(5n) { animation-delay: 2.2s; }
@keyframes fill { 45%, 55% { background: var(--amber); border-style: solid; opacity: 1; } }
.art-vcc .cols { display: flex; gap: 14px; align-items: flex-start; }
.art-vcc .col { display: grid; gap: 5px; }
.art-vcc .col i { display: block; width: 46px; height: 9px; border-radius: 3px; background: var(--bg-2); border: 1px solid var(--line-2); opacity: 0; animation: chip 5s var(--ease) infinite; }
.art-vcc .col:nth-child(1) i { border-color: rgba(90, 209, 255, 0.6); } .art-vcc .col:nth-child(2) i { border-color: rgba(53, 208, 127, 0.6); } .art-vcc .col:nth-child(3) i { border-color: rgba(255, 179, 71, 0.6); }
.art-vcc .col i:nth-child(2) { animation-delay: 0.4s; } .art-vcc .col i:nth-child(3) { animation-delay: 0.8s; } .art-vcc .col i:nth-child(4) { animation-delay: 1.2s; }
.art-vcc .col:nth-child(2) i { animation-delay: 0.6s; } .art-vcc .col:nth-child(2) i:nth-child(2) { animation-delay: 1s; } .art-vcc .col:nth-child(2) i:nth-child(3) { animation-delay: 1.4s; }
.art-vcc .col:nth-child(3) i { animation-delay: 1.3s; } .art-vcc .col:nth-child(3) i:nth-child(2) { animation-delay: 1.7s; }
@keyframes chip { 0% { opacity: 0; transform: translateY(-4px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- 05 dock ---------- */
.manifest { margin-top: 40px; display: grid; gap: 26px; }
.man-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); padding: 0 12px 8px; border-bottom: 1px solid var(--line); }
.man {
    display: grid; grid-template-columns: 14px 190px 240px 1fr auto; gap: 16px; align-items: center;
    padding: 12px; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line);
    transition: background 0.15s, transform 0.2s var(--ease);
}
.man:hover { background: rgba(199, 211, 220, 0.04); transform: translateX(4px); }
.man-name { font-weight: 500; font-size: 15px; }
.man-url { font-family: var(--mono); font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.man-run { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.man-mode { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--dim); }
.man-mode.local { color: var(--green); border-color: var(--green); }
.man-mode.hosted { color: var(--blue); border-color: rgba(90, 209, 255, 0.6); }
.man-mode.contact { color: var(--amber); border-color: rgba(245, 179, 66, 0.6); }
.keys { margin-top: 40px; display: grid; gap: 8px; font-size: 12px; color: var(--dim); }
.keys-head { margin: 0 0 4px; letter-spacing: 0.24em; text-transform: uppercase; font-size: 11px; }
.key-row { display: flex; align-items: center; gap: 6px; }
.key-row span { margin-left: 8px; color: var(--mist); }
kbd { font-family: var(--mono); font-size: 11px; color: var(--mist); background: var(--bg-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 0 36px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dimmer); letter-spacing: 0.08em; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--weld); }

/* ---------- launcher widget ---------- */
.dock-button {
    position: fixed; right: 22px; bottom: 22px; z-index: 20;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 999px; cursor: pointer;
    background: rgba(18, 22, 29, 0.92); border: 1px solid var(--line-2); color: var(--mist);
    font-family: var(--mono); font-size: 12px; backdrop-filter: blur(6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s, transform 0.25s var(--ease);
}
.dock-button:hover { border-color: var(--weld); transform: translateY(-2px); }
.dock-led { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.dock-led.on { background: var(--green); box-shadow: 0 0 10px rgba(53, 208, 127, 0.6); }
.launcher { position: fixed; inset: 0; z-index: 30; }
.launcher[hidden] { display: none; }
.launcher-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, 0.7); backdrop-filter: blur(3px); }
.launcher-panel {
    position: absolute; left: 50%; top: 14vh; width: min(640px, calc(100vw - 32px)); transform: translateX(-50%);
    background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    animation: rise 0.25s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }
.launcher-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.launcher-input .prompt { color: var(--green); font-size: 13px; white-space: nowrap; }
#launcher-query { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-family: var(--mono); font-size: 14px; caret-color: var(--weld); }
#launcher-query::placeholder { color: var(--dimmer); }
.launcher-results { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.launcher-results li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--mist); }
.launcher-results li b { font-weight: 500; color: var(--fg); }
.launcher-results li small { display: block; font-size: 12px; color: var(--dim); }
.launcher-results li span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.launcher-results li.selected { background: rgba(255, 179, 71, 0.12); outline: 1px solid rgba(255, 179, 71, 0.4); }
.launcher-results .empty { color: var(--dim); cursor: default; display: block; font-family: var(--mono); font-size: 12px; }
.launcher-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dimmer); }

/* ---------- start here brief ---------- */
.brief-panel { top: 10vh; width: min(720px, calc(100vw - 32px)); }
.brief-title { font-size: 13px; color: var(--mist); }
.brief-title b { color: var(--fg); font-weight: 500; }
.brief-lead { margin: 0; padding: 12px 16px 0; font-size: 12px; color: var(--dim); }
.brief-text {
    display: block; width: 100%; box-sizing: border-box; height: min(46vh, 420px); margin: 12px 0 0; padding: 14px 16px; resize: none;
    background: var(--bg-2); color: var(--fg); border: 0; border-top: 1px solid var(--line); outline: 0;
    font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap;
}
.brief-text:focus { box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.4); }
.brief-foot { align-items: center; }
.brief-foot span:last-child { margin-left: auto; }

.toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40;
    padding: 10px 16px; border-radius: 8px; background: var(--panel); border: 1px solid var(--weld); color: var(--fg);
    font-size: 12px; max-width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.toast[hidden] { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .cards.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) {
    :root { --side: 0px; --gutter: 24px; }
    #side {
        position: sticky; top: 0; bottom: auto; width: auto;
        flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px;
        padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--line);
        background: rgba(11, 13, 16, 0.9);
    }
    .brand { font-size: 20px; }
    .meta, .bays, .side-foot { display: none; }
    .sidenav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
    .sidenav a { padding: 6px 8px; margin: 0; white-space: nowrap; }
    .sidenav a::before { display: none; }
    #gantry { display: none; }
    #weld { left: 50%; }
    #content { margin-left: 0; }
    #hello { padding-top: 40px; }
    .hello-grid { grid-template-columns: 1fr; gap: 30px; }
    .cards.cols-3, .cards.cols-2 { grid-template-columns: 1fr; }
    .man { grid-template-columns: 14px 1fr auto; gap: 6px 12px; }
    .man-url, .man-run { grid-column: 2 / span 2; }
    .sec { padding: 72px 0; }
    .dock-button { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* boards: a storyboard strip, each frame lighting up in turn as a character takes shape */
.art-boards .strip { display: grid; grid-template-columns: repeat(4, 44px); gap: 10px; }
.art-boards .strip i { position: relative; display: block; height: 30px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--bg-2); opacity: 0.45; animation: frame 6s var(--ease) infinite; }
.art-boards .strip i::before { content: ''; position: absolute; left: 50%; bottom: 5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50% 50% 2px 2px; border: 1px solid var(--weld); opacity: 0.7; }
.art-boards .strip i::after { content: ''; position: absolute; left: 50%; bottom: 12px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; border: 1px solid var(--weld); opacity: 0.7; }
.art-boards .strip i:nth-child(2) { animation-delay: 1.5s; } .art-boards .strip i:nth-child(3) { animation-delay: 3s; } .art-boards .strip i:nth-child(4) { animation-delay: 4.5s; }
@keyframes frame { 0%, 100% { opacity: 0.45; border-color: var(--line-2); } 12%, 25% { opacity: 1; border-color: var(--weld); } 40% { opacity: 0.45; border-color: var(--line-2); } }

/* prediction market: a volume chart with one anomalous spike that the agents flag */
.art-market .ticks { display: flex; gap: 6px; align-items: flex-end; height: 70px; }
.art-market .ticks i { display: block; width: 12px; height: var(--h); border-radius: 2px 2px 0 0; background: var(--bg-2); border: 1px solid rgba(90, 209, 255, 0.5); border-bottom: 0; animation: tick 4s var(--ease) infinite; }
.art-market .ticks i:nth-child(6) { border-color: var(--red); background: rgba(255, 92, 92, 0.15); box-shadow: 0 0 14px rgba(255, 92, 92, 0.35); animation: flag 2s steps(2) infinite; }
.art-market .ticks i:nth-child(2n) { animation-delay: 0.7s; } .art-market .ticks i:nth-child(3n) { animation-delay: 1.4s; }
@keyframes tick { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes flag { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
