/* half palantir, half anduril.
   dense data panels and hairline rules from one; near-black canvas, amber
   signal colour and corner brackets from the other. lowercase throughout --
   the structure carries the weight, not shouting. */

:root {
    --bg:        #07080b;
    --panel:     #0b0d12;
    --panel-2:   #0e1117;
    --sunken:    #05060a;
    --line:      #191826;
    --line-2:    #262338;
    --line-hot:  #3d3658;

    --text:      #ccd2de;
    --dim:       #6d7484;
    --faint:     #454c5b;

    --amber:     #b47dff;   /* neon violet — the primary signal */
    --amber-dim: #4a2f7a;
    --violet:    #b47dff;
    --magenta:   #ff5cf0;   /* hot accent for the rare pop */
    --cyan:      #46d5ff;
    --good:      #67e8a0;
    --bad:       #ff5f70;
    --warn:      #ffc861;

    --mono: "Berkeley Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    --rail: 264px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    text-transform: lowercase;
}

/* proper nouns and data still need their capitals back */
code, .keep-case, table td, .prose code, input, textarea, .shot-cap b { text-transform: none; }

body::before {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 88px 88px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 100%);
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }


/* ------------------------------------------------------------------ layout */

.shell {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail);
    gap: 0;
    max-width: 1320px;
    margin: 0 auto;
}
.main { min-width: 0; padding: 0 34px 90px; border-right: 1px solid var(--line); }

@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .main { border-right: none; padding: 0 18px 60px; }
    .rail { display: none; }
}


/* -------------------------------------------------------------------- rail */

.rail {
    position: sticky; top: 0; align-self: start;
    height: 100vh; padding: 22px 20px;
    display: flex; flex-direction: column; gap: 20px;
}

.rail .mark {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
    color: var(--faint);
}
.rail .mark b { color: var(--text); font-weight: 500; }

.railnav { display: flex; flex-direction: column; gap: 1px; }
.railnav a {
    font-family: var(--mono); font-size: 12px; color: var(--dim);
    padding: 6px 10px; border-left: 1px solid var(--line-2);
    display: flex; justify-content: space-between; gap: 8px;
    transition: all 0.15s;
}
.railnav a:hover { color: var(--text); border-left-color: var(--amber); background: var(--panel); text-decoration: none; }
.railnav a i { color: var(--faint); font-style: normal; font-size: 10.5px; }

/* the second page — impossible to miss, per the brief */
.railcta {
    display: block; padding: 15px 16px;
    border: 1px solid var(--amber-dim); background: linear-gradient(180deg, #17102a, #0c0a14);
    position: relative;
}
.railcta:hover { border-color: var(--amber); text-decoration: none; }
.railcta .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--amber); }
.railcta .t { font-size: 16px; color: var(--text); margin-top: 4px; line-height: 1.25; }
.railcta .a { font-family: var(--mono); font-size: 18px; color: var(--amber); position: absolute; right: 14px; bottom: 12px; }

.railbox { border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; }
.railbox .h {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    color: var(--faint); margin-bottom: 8px;
}
.railrow { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11.5px; padding: 2px 0; }
.railrow span:first-child { color: var(--dim); }
.railrow span:last-child { color: var(--text); }

.rail .foot { margin-top: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); line-height: 1.6; }

.livedot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.livedot i { width: 6px; height: 6px; background: var(--good); box-shadow: 0 0 8px var(--good); animation: pulse 2.4s ease-in-out infinite; }
.livedot.down i { background: var(--bad); box-shadow: 0 0 8px var(--bad); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.3 } }


/* ------------------------------------------------------------------ panels */

.panel {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
    margin: 16px 0;
}
/* corner brackets */
.panel::before, .panel::after {
    content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
    border-color: var(--line-hot); border-style: solid;
}
.panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.panel::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.panel-h {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    padding: 9px 16px; border-bottom: 1px solid var(--line);
    background: var(--sunken);
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--dim);
}
.panel-h b { color: var(--amber); font-weight: 500; }
.panel-h .sp { flex: 1; }
.panel-h .meta { color: var(--faint); letter-spacing: 0.06em; }
.panel-b { padding: 16px; }


/* -------------------------------------------------------------------- hero */

.hero { padding: 52px 0 26px; }

.eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em; color: var(--amber);
    margin-bottom: 22px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--amber-dim), transparent); }

h1 {
    font-size: clamp(27px, 3.9vw, 41px); line-height: 1.14; font-weight: 500;
    letter-spacing: -0.022em; margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--amber); }

.lede { font-size: 15.5px; color: var(--dim); max-width: 62ch; }
.lede + .lede { margin-top: 12px; }
.lede b { color: var(--text); font-weight: 500; }

.receipt {
    margin: 24px 0; padding: 13px 16px;
    border: 1px solid var(--line); border-left: 2px solid var(--amber);
    background: var(--panel); font-size: 14.5px; color: var(--dim);
}
.receipt .n { font-family: var(--mono); color: var(--amber); }


/* ----------------------------------------------------------------- ask box */

.askbox {
    display: flex; align-items: flex-end; gap: 10px;
    background: var(--panel-2); border: 1px solid var(--line-2);
    padding: 11px 11px 11px 15px; transition: border-color 0.2s;
}
.askbox:focus-within { border-color: var(--amber); }
.askbox textarea {
    flex: 1; background: none; border: none; outline: none; resize: none;
    color: var(--text); font-family: var(--sans); font-size: 15.5px; line-height: 1.5;
    max-height: 150px; padding: 5px 0;
}
.askbox textarea::placeholder { color: var(--faint); }

.askbtn {
    flex-shrink: 0; background: var(--amber); color: #0c0618; border: none;
    padding: 8px 15px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
    cursor: pointer; transition: filter 0.15s;
}
.askbtn:hover:not(:disabled) { filter: brightness(1.12); }
.askbtn:disabled { opacity: 0.35; cursor: default; }

.hint { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 8px; }

.cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
    font-family: var(--mono); font-size: 11.5px; text-transform: lowercase;
    background: var(--panel); color: var(--dim);
    border: 1px solid var(--line-2); padding: 6px 11px; cursor: pointer;
    transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--line-hot); background: var(--panel-2); }
.chip.hot { border-color: var(--amber-dim); color: var(--amber); }
.chip.hot::before { content: "▸ "; }


/* ------------------------------------------------------------------ answer */

.answer { margin-top: 18px; }

.turn { border: 1px solid var(--line); background: var(--panel); margin-bottom: 14px; position: relative; }
.turn::before, .turn::after {
    content: ""; position: absolute; width: 9px; height: 9px;
    border-color: var(--line-hot); border-style: solid; pointer-events: none;
}
.turn::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.turn::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.turn .q {
    padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--sunken);
    display: flex; gap: 9px; font-size: 14.5px;
}
.turn .q::before { content: "›"; font-family: var(--mono); color: var(--amber); }
.turn .body { padding: 15px 16px; }

.prose { font-size: 15px; line-height: 1.66; }
.prose p { margin-bottom: 10px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #fff; font-weight: 500; }
.prose code { background: var(--sunken); border: 1px solid var(--line); padding: 1px 5px; font-size: 0.9em; color: var(--cyan); }

.cursor { display: inline-block; width: 7px; height: 15px; background: var(--amber); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%, 50% { opacity: 1 } 51%, 100% { opacity: 0 } }

.trace { border-top: 1px solid var(--line); background: var(--sunken); }
.trace summary {
    padding: 8px 16px; cursor: pointer; list-style: none;
    font-family: var(--mono); font-size: 11px; color: var(--faint);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.trace summary::-webkit-details-marker { display: none; }
.trace summary::before { content: "[+]"; color: var(--line-hot); }
.trace[open] summary::before { content: "[−]"; }
.trace summary:hover { color: var(--dim); }
.trace .steps { padding: 2px 16px 12px; }
.step {
    font-family: var(--mono); font-size: 11px; padding: 5px 0; color: var(--faint);
    border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: baseline;
}
.step .tag { color: var(--amber); flex-shrink: 0; }
.step .tag.think { color: var(--faint); }
.step .tag.err { color: var(--bad); }
.step pre { font-family: var(--mono); font-size: 10.5px; color: var(--dim); white-space: pre-wrap; word-break: break-word; flex: 1; min-width: 0; }

.badge { font-family: var(--mono); font-size: 10px; padding: 1px 6px; border: 1px solid var(--line-2); color: var(--faint); }
.badge.cache { color: var(--warn); border-color: var(--warn); }


/* -------------------------------------------------------------- components */

.comp { margin: 14px 0; }
.comp-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--faint); margin-bottom: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--sunken); padding: 11px 13px; }
.stat .l { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.1em; }
.stat .v { font-family: var(--mono); font-size: 20px; margin-top: 4px; letter-spacing: -0.01em; color: var(--text); }
.stat .s { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.stat.good .v { color: var(--good) } .stat.bad .v { color: var(--bad) }
.stat.warn .v { color: var(--warn) } .stat.accent .v { color: var(--amber) }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--faint);
    text-align: left; padding: 8px 12px; background: var(--sunken);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 7px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
tr:last-child td { border-bottom: none }
tr:hover td { background: rgba(180, 125, 255, 0.06) }

.facts { border: 1px solid var(--line); }
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 8px 13px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: none }
.fact .l { color: var(--dim); font-size: 12.5px }
.fact .v { font-family: var(--mono); font-size: 12.5px }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--sunken); padding: 12px 14px }
.card .t { font-size: 13.5px; color: var(--text) }
.card .st { color: var(--dim); font-size: 12px; margin-top: 2px }
.card .v { font-family: var(--mono); font-size: 16px; margin-top: 6px; color: var(--amber) }
.card .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px }
.card .tags span { font-family: var(--mono); font-size: 10px; padding: 1px 5px; border: 1px solid var(--line-2); color: var(--faint) }

.chart { border: 1px solid var(--line); background: var(--sunken); padding: 12px 6px 6px }
.chart svg, .viz svg { display: block; width: 100%; height: auto; overflow: visible }

.followups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px }


/* ------------------------------------------------------------------- vizzes */

.viz { border: 1px solid var(--line); background: var(--sunken); padding: 10px }
.viz-legend { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 8px }
.viz-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; vertical-align: -1px; font-style: normal }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.grid2.wide { grid-template-columns: 1.4fr 1fr }
@media (max-width: 760px) { .grid2, .grid2.wide { grid-template-columns: 1fr } }

.daylist { display: flex; flex-direction: column; gap: 1px; max-height: 380px; overflow-y: auto; background: var(--line); border: 1px solid var(--line) }
.day { background: var(--sunken); padding: 9px 12px }
.day .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline }
.day .d { font-family: var(--mono); font-size: 12px; color: var(--amber) }
.day .sim { font-family: var(--mono); font-size: 10.5px; color: var(--faint) }
.day .s { font-size: 11.5px; color: var(--dim); margin-top: 3px; font-family: var(--mono); line-height: 1.5 }

.wbctl { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px }
.wbctl input {
    flex: 1; min-width: 200px; background: var(--panel-2); border: 1px solid var(--line-2);
    padding: 9px 12px; color: var(--text); font-family: var(--sans); font-size: 14px; outline: none;
}
.wbctl input:focus { border-color: var(--amber) }


/* --------------------------------------------------------------- provenance */

.prov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.prov { background: var(--sunken); padding: 11px 13px }
.prov .n { font-family: var(--mono); font-size: 17px; color: var(--amber) }
.prov .u { font-size: 11.5px; color: var(--dim); margin-top: 1px }
.prov .src { font-family: var(--mono); font-size: 10px; color: var(--faint); margin-top: 5px; letter-spacing: 0.08em }
.prov .rng { font-family: var(--mono); font-size: 10px; color: var(--faint) }

.note {
    font-size: 13px; color: var(--dim);
    border: 1px solid var(--line); border-left: 2px solid var(--warn);
    padding: 10px 14px; margin-bottom: 12px; background: var(--panel);
}

.err { border: 1px solid var(--bad); background: rgba(255, 95, 112, 0.06); padding: 11px 14px; color: var(--bad); font-size: 13.5px; margin: 12px 0 }

.section { margin: 46px 0 }
.section > h2 { font-size: 19px; font-weight: 500; letter-spacing: -0.012em; margin-bottom: 7px }
.section > .sub { color: var(--dim); font-size: 14.5px; max-width: 64ch; margin-bottom: 16px }


/* ------------------------------------------------------------ projects page */

.proj { border: 1px solid var(--line); background: var(--panel); margin-bottom: 12px; position: relative }
.proj::before, .proj::after { content: ""; position: absolute; width: 9px; height: 9px; border-color: var(--line-hot); border-style: solid; pointer-events: none }
.proj::before { top: -1px; left: -1px; border-width: 1px 0 0 1px }
.proj::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0 }
.proj.feature { border-color: var(--line-2) }
.proj.feature::before, .proj.feature::after { border-color: var(--amber-dim) }

.proj-h { padding: 9px 18px; border-bottom: 1px solid var(--line); background: var(--sunken); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap }
.proj-h .idx { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint) }
.proj-h .tag { font-family: var(--mono); font-size: 10px; padding: 1px 6px; border: 1px solid var(--line-2); color: var(--dim) }
.proj-h .tag.live { color: var(--good); border-color: #1e4433 }
.proj-h .sp { flex: 1 }

.proj-b { padding: 16px 18px }
.proj-b h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 3px }
.proj.feature .proj-b h3 { font-size: 25px; color: var(--amber) }
.proj-b .what { color: var(--dim); font-size: 14.5px; margin-bottom: 14px }
.proj-hard { font-size: 14.5px; line-height: 1.65; border-left: 1px solid var(--line-2); padding-left: 14px; margin-bottom: 13px }
.proj-hard b { color: var(--text); font-weight: 500 }
.proj-hard + .proj-hard { margin-top: -4px }

.nums { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line) }
.nums span { background: var(--sunken); font-family: var(--mono); font-size: 11px; padding: 6px 10px; color: var(--dim); flex: 1 1 auto }
.nums span b { color: var(--amber); font-weight: 500; display: block; font-size: 14px }
.stack { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 10px; letter-spacing: 0.03em }

.shot { border: 1px solid var(--line); margin-top: 14px; background: var(--sunken); overflow: hidden }
.shot img { display: block; width: 100%; height: auto }
.shot-cap { font-family: var(--mono); font-size: 10.5px; color: var(--faint); padding: 7px 11px; border-top: 1px solid var(--line) }

.minor { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.minor .m { background: var(--panel); padding: 12px 14px }
.minor .m h4 { font-size: 14px; font-weight: 500; margin-bottom: 3px }
.minor .m p { font-size: 12.5px; color: var(--dim); line-height: 1.55 }
.minor .m .n { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 6px }

.footer { border-top: 1px solid var(--line); margin-top: 54px; padding: 22px 0 40px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--faint) }


/* ------------------------------------------------------------- animation */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) }
.reveal.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none }
    .cursor { animation: none }
}

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* a slow sweep across every panel header — the page should feel powered on */
.panel-h { position: relative; overflow: hidden }
.panel-h::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(180, 125, 255, 0.14), transparent);
    transform: translateX(-100%);
    animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { transform: translateX(-100%) } 80%, 100% { transform: translateX(100%) } }

.wbctl select {
    flex: 1; min-width: 180px; background: var(--panel-2); border: 1px solid var(--line-2);
    color: var(--text); padding: 8px 11px; font-family: var(--mono); font-size: 13px; outline: none;
}
.wbctl select:focus { border-color: var(--amber) }

.prov { transition: border-color 0.2s, background 0.2s }
.prov:hover { background: var(--panel-2) }
.chip { position: relative; overflow: hidden }
.chip:active { transform: translateY(1px) }


/* ------------------------------------------------------------ cad renders */

.cadgrid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cadgrid figure { background: var(--sunken); padding: 10px 8px 8px; text-align: center }
.cadgrid img {
    width: 100%; max-width: 128px; height: auto; display: block; margin: 0 auto;
    filter: saturate(0.55) brightness(1.15) hue-rotate(-12deg);
    transition: filter 0.25s, transform 0.25s;
}
.cadgrid figure:hover img { filter: none; transform: scale(1.06) }
.cadgrid figcaption {
    font-family: var(--mono); font-size: 9.5px; color: var(--faint);
    margin-top: 6px; letter-spacing: 0.04em;
}


/* ------------------------------------------------------------- neon pop */

.chart svg path[stroke], .viz svg circle[fill="#b47dff"] { filter: drop-shadow(0 0 3px rgba(180,125,255,0.5)) }
.stat.accent .v, .prov .n, .card .v { text-shadow: 0 0 14px rgba(180,125,255,0.35) }
h1 em { text-shadow: 0 0 22px rgba(180,125,255,0.4) }
.railcta:hover { box-shadow: 0 0 24px rgba(180,125,255,0.18) inset }
.chip.hot { box-shadow: 0 0 0 1px rgba(180,125,255,0.15) }
.livedot i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan) }
.eyebrow { color: var(--violet) }
/* keep the cad renders warm — they're physical objects, not data */
.cadgrid img { filter: saturate(0.7) brightness(1.1); }
.cadgrid figure:hover img { filter: saturate(0.9) brightness(1.15) drop-shadow(0 0 8px rgba(180,125,255,0.3)); transform: scale(1.06) }


/* ---------------------------------------------------------- screenshot rows */

.shotrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px }
.shotrow.phones { grid-template-columns: repeat(3, 1fr) }
@media (max-width: 620px) { .shotrow, .shotrow.phones { grid-template-columns: 1fr } }
.shotrow .shot { margin-top: 0 }
.shotrow.phones .shot img { background: #000 }


/* ------------------------------------------------------------- money bands */

.band {
    display: inline-block; font-family: var(--mono); font-weight: 600;
    letter-spacing: 0.02em; padding: 1px 8px; border-radius: 3px;
    border: 1px solid currentColor; line-height: 1.5; white-space: nowrap;
}
.band-t1 { color: #6d7484; }                                    /* pocket lint */
.band-t2 { color: #46d5ff; }                                    /* a lil treat */
.band-t3 { color: #67e8a0; }                                    /* proper purchase */
.band-t4 { color: #ffc861; }                                    /* oof, that stung */
.band-t5 {                                                      /* sir, your wallet */
    color: #ff5cf0; font-weight: 700; letter-spacing: 0.04em;
    box-shadow: 0 0 12px rgba(255, 92, 240, 0.35);
    text-shadow: 0 0 10px rgba(255, 92, 240, 0.5);
    animation: bandpulse 2.6s ease-in-out infinite;
}
@keyframes bandpulse { 0%, 100% { box-shadow: 0 0 12px rgba(255,92,240,0.35) } 50% { box-shadow: 0 0 20px rgba(255,92,240,0.6) } }
td .band { font-size: 12px; }


/* --------------------------------------------------------------- os windows */

.win {
    position: fixed;
    width: 520px; max-width: 92vw; max-height: 82vh;
    display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line-hot);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(180, 125, 255, 0.08);
    animation: winopen 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes winopen { from { opacity: 0; transform: translateY(8px) scale(0.98) } to { opacity: 1; transform: none } }

.win-bar {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px 8px 12px; background: var(--sunken);
    border-bottom: 1px solid var(--line); cursor: grab; user-select: none;
    font-family: var(--mono);
}
.win.dragging .win-bar { cursor: grabbing; }
.win-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); flex-shrink: 0; }
.win-q { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.win-phrase { font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bar .sp { flex: 1; }
.win-btn {
    background: none; border: 1px solid var(--line-2); color: var(--dim);
    width: 22px; height: 20px; font-size: 11px; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.win-btn:hover { color: var(--text); border-color: var(--line-hot); }
.win-close:hover { color: var(--bad); border-color: var(--bad); }

.win-body { overflow-y: auto; padding: 14px 15px; }
.win.collapsed .win-body { display: none; }
.win.collapsed .win-min { transform: rotate(-90deg); }

/* the window keeps the same inner styles as the old inline turn */
.win .prose { font-size: 14.5px; line-height: 1.66; }
.win .prose p { margin-bottom: 10px; }
.win .prose p:last-child { margin-bottom: 0; }
.win .prose strong { color: #fff; font-weight: 500; }
.win .prose code { background: var(--sunken); border: 1px solid var(--line); padding: 1px 5px; font-size: 0.9em; color: var(--cyan); }
.win .trace { border-top: 1px solid var(--line); background: var(--sunken); margin: 12px -15px -14px; }

/* on narrow screens, windows are just stacked cards — no floating, no drag */
@media (max-width: 900px) {
    .win {
        position: static !important; width: auto; max-width: none; max-height: none;
        left: auto !important; top: auto !important; margin: 0 0 14px !important;
        box-shadow: none; animation: none;
    }
    .win-bar { cursor: default; }
    .win-q { max-width: none; }
}


/* ------------------------------------------------------------- portfolio */

.herolinks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.herolinks a {
    font-family: var(--mono); font-size: 12px; color: var(--dim);
    border: 1px solid var(--line-2); padding: 7px 13px; transition: all 0.15s;
}
.herolinks a:hover { color: var(--text); border-color: var(--violet); text-decoration: none; box-shadow: 0 0 14px rgba(180, 125, 255, 0.12); }

.now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.now-card { background: var(--sunken); padding: 14px 15px; position: relative; overflow: hidden; }
.now-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(180, 125, 255, 0.06), transparent);
    transform: translateX(-100%); animation: sweep 8s ease-in-out infinite;
}
.now-emoji { font-size: 20px; line-height: 1; }
.now-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; margin-top: 8px; }
.now-value { font-size: 15px; color: var(--text); margin-top: 4px; font-weight: 500; line-height: 1.3; }
.now-sub { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 3px; }

.prov-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.prov-head h2 { font-size: 19px; font-weight: 500; }
.prov-head .asof { font-family: var(--mono); font-size: 11px; color: var(--faint); }


/* -------------------------------------------------- portfolio: insights */

.ask-hint { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 20px 0 10px; }
.ask-hint::before { content: "▸ "; color: var(--violet); }

#insights .chip { font-size: 12.5px; }

.rot { color: var(--violet); font-weight: 500; transition: opacity 0.26s; display: inline-block; min-width: 8ch; }

/* --------------------------------------------- portfolio: featured cards */

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .feat { grid-template-columns: 1fr; } }

.fcard {
    position: relative; border: 1px solid var(--line); background: var(--panel);
    padding: 16px 17px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fcard::before, .fcard::after {
    content: ""; position: absolute; width: 8px; height: 8px; border-color: var(--line-hot); border-style: solid; pointer-events: none;
}
.fcard::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.fcard::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.fcard:hover { border-color: var(--line-hot); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 22px rgba(180, 125, 255, 0.08); }
.fcard:hover::before, .fcard:hover::after { border-color: var(--violet); }

.fcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fcard-h h4 { font-size: 17px; font-weight: 500; }
.ftag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; padding: 2px 7px; border: 1px solid var(--line-2); color: var(--faint); white-space: nowrap; }
.ftag.live { color: var(--good); border-color: #1e4433; }
.ftag.money { color: var(--warn); border-color: #5a4a1e; }

.fwhat { font-size: 13.5px; color: var(--dim); margin: 8px 0 8px; line-height: 1.5; }
.fhard { font-size: 13px; color: var(--text); line-height: 1.55; border-left: 1px solid var(--line-2); padding-left: 12px; margin-bottom: 12px; }
.fhard b { color: #fff; font-weight: 500; }
.fhard code { background: var(--sunken); border: 1px solid var(--line); padding: 0 4px; font-size: 0.88em; color: var(--cyan); }

.fshot { border: 1px solid var(--line); margin-bottom: 12px; overflow: hidden; max-height: 150px; }
.fshot img { display: block; width: 100%; height: auto; filter: saturate(0.85); transition: transform 0.4s; }
.fcard:hover .fshot img { transform: scale(1.04); }

.fnums { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fnums span { background: var(--sunken); font-family: var(--mono); font-size: 10.5px; color: var(--faint); padding: 6px 9px; flex: 1 1 auto; text-align: center; }
.fnums span b { display: block; color: var(--violet); font-size: 13px; font-weight: 500; }


/* ------------------------------------------------------ sick animations */

/* hero em: an animated gradient sweep across the accent phrase */
h1 em {
    background: linear-gradient(100deg, var(--violet) 0%, var(--magenta) 45%, var(--cyan) 70%, var(--violet) 100%);
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 250% 0; } }

/* the fixed grid gets a slow vertical scan line, like a console booting */
body::after {
    content: ""; position: fixed; left: 0; right: 0; top: 0; height: 40vh; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(180, 125, 255, 0.05), transparent);
    animation: scan 9s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { transform: translateY(-40vh); } 50% { transform: translateY(140vh); } }

/* nav links get an animated left border on hover */
.railnav a { position: relative; overflow: hidden; }
.railnav a::before {
    content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--violet);
    transform: scaleY(0); transform-origin: top; transition: transform 0.2s;
}
.railnav a:hover::before { transform: scaleY(1); }

/* the live dot in the rail pulses cyan */
.railrow .livedot i { animation: pulse 2s ease-in-out infinite; }

/* eyebrow line draws itself in */
.eyebrow::after { animation: growline 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes growline { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
    h1 em { animation: none; -webkit-text-fill-color: var(--violet); color: var(--violet); }
    body::after, .now-card::after, .panel-h::after { animation: none; }
}
