@font-face { font-family: "VG5000"; src: url("VG5000.woff2") format("woff2"); font-display: swap; } /* VG5000 by Justin Bihan, Velvetyne, SIL OFL 1.1 */
/* Layout: a pale sky over a black trading floor. Every page opens on the floor; content sits in lime on black below it. Single deliberate look. */
:root {
  --sky: #e8f0f3;
  --ink: #050607;
  --floor: #000000;
  --lime: #99ff59;
  --wire: #250ff3;
  --rail: #f2f23a;
  --down: #ff4f6d;
  --pop: #ff2eb8;
  --dim: #8d9a92;
  --line: #1f2a22;
  --sans: "VG5000", "Trebuchet MS", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 6.25vw, 80px);
  color-scheme: light;
}
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { background: var(--floor); }
body { margin: 0; background: var(--floor); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wire); outline-offset: 4px; border-radius: 2px; }
.floor a:focus-visible { outline-color: var(--lime); }

/* sky header shared by every page */
.hero { background: var(--sky); color: var(--ink); position: relative; overflow: hidden; }
.hero-text { padding-inline: var(--gutter); padding-block: 28px 0; position: relative; z-index: 2; pointer-events: none; }
.hero-text a { pointer-events: auto; }
.topline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; }
.navwrap { display: flex; gap: 12px 40px; flex-wrap: wrap; align-items: baseline; }
.home { font-family: var(--serif); font-size: 1.375rem; text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 1.125rem; }
nav a { text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 2px; }
.status { font-size: 0.9375rem; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
h1 {
  margin: clamp(48px, 8vw, 100px) 0 0;
  font: 400 clamp(2.6rem, 7.6vw, 6.4rem)/1.18 var(--sans);
  letter-spacing: -0.01em; max-width: 11.5em; text-wrap: balance;
}
h1 .nm { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; }
.page h1 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); margin-top: clamp(40px, 6vw, 80px); max-width: 13em; }
.kicker { margin-top: clamp(40px, 6vw, 80px); font-size: 1.0625rem; display: flex; gap: 10px 20px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.kicker + h1 { margin-top: 14px; }
.kicker .sym { background: var(--ink); color: var(--lime); padding: 2px 8px; }
.clock { margin-top: 18px; font-size: 1.125rem; font-variant-numeric: tabular-nums; }

.scene { position: relative; margin-top: clamp(8px, 3vw, 40px); width: 100%; aspect-ratio: 1280 / 560; min-height: 300px; cursor: crosshair; touch-action: pan-y; }
.scene.band { aspect-ratio: 1280 / 300; min-height: 200px; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portrait { position: absolute; right: 3.6%; top: 2%; width: 27%; aspect-ratio: 374 / 378; max-width: 100%; }
.portrait i { position: absolute; left: 0; right: 0; display: block; background-image: url("portrait.webp"); background-repeat: no-repeat; transition: transform 90ms steps(2); }
.hint { position: absolute; left: var(--gutter); bottom: 14px; font-size: 0.8125rem; color: var(--lime); opacity: 0.8; pointer-events: none; }
@media (max-width: 640px) { .portrait { width: 38%; top: 0; } }

/* ticker tape */
.tape { background: var(--lime); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.tape-track { display: flex; width: max-content; animation: tape 48s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape ul { display: flex; margin: 0; padding: 12px 0; list-style: none; }
.tape li { white-space: nowrap; padding-inline: 28px; font-size: 1.0625rem; border-right: 1px solid rgba(0,0,0,0.25); font-variant-numeric: tabular-nums; }
.tape .up::before { content: "▲ "; }
@keyframes tape { to { transform: translateX(-50%); } }

/* black floor sections */
.floor { background: var(--floor); color: var(--lime); padding-inline: var(--gutter); }
.block { padding-block: clamp(48px, 7vw, 96px); }
.block + .block { padding-top: 0; }
.lead p { margin: 0 0 0.7em; max-width: 26em; font: 400 clamp(1.45rem, 3.6vw, 2.9rem)/1.42 var(--sans); }
.lead p:last-child { margin-bottom: 0; }
mark { background: none; color: inherit; background-image: linear-gradient(var(--lime), var(--lime)); background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 380ms ease, color 380ms ease; }
mark:hover { background-size: 100% 100%; color: var(--ink); }
.more { display: inline-flex; gap: 10px; align-items: center; margin-top: 32px; font-size: 1.25rem; color: var(--lime); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.more:hover { background: var(--lime); color: var(--ink); }
.eyebrow { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0; font-weight: 400; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.legend { font-size: 0.875rem; color: var(--dim); }

/* watchlist */
.wl { border-top: 1px solid var(--line); }
.axis, .row { display: grid; grid-template-columns: 4.5rem minmax(0, 1.25fr) minmax(0, 1fr) 6.5rem; gap: 0 28px; align-items: center; }
.axis { padding-block: 10px; color: var(--dim); font-size: 0.8125rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ticks { position: relative; height: 1.2em; }
.ticks span { position: absolute; transform: translateX(-50%); }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.row { padding-block: 22px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; position: relative; }
.row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--lime); opacity: 0; transition: opacity 160ms; z-index: 0; }
.row > * { position: relative; z-index: 1; }
.row .sym { font-size: 1.125rem; letter-spacing: 0.04em; color: var(--lime); }
.ttl { color: var(--sky); font: 300 clamp(1.35rem, 2.6vw, 2.1rem)/1.15 var(--serif); letter-spacing: -0.01em; }
.range { position: relative; height: 26px; }
.range::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed #2c3a30; }
.bar { position: absolute; top: 5px; bottom: 5px; background: var(--lime); transform-origin: left; transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.bar.live::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }
.yrs { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
.yrs::after { content: " →"; opacity: 0; transition: opacity 160ms; }
.detail { display: block; grid-column: 2 / -1; color: var(--lime); font-size: 1.0625rem; line-height: 1.5; max-width: 44em; padding-top: 12px; }
.row:hover::before, .row:focus-visible::before { opacity: 1; }
.row:hover > *, .row:focus-visible > * { color: var(--ink); }
.row:hover .yrs::after { opacity: 1; }
.row:hover .bar, .row:hover .bar.live::after { background: var(--ink); }
.row:hover .range::before { border-color: rgba(0,0,0,0.3); }
@media (max-width: 760px) {
  .axis { display: none; }
  .row { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 8px 16px; }
  .range, .yrs { grid-column: 2; }
  .yrs { text-align: left; }
  .detail { grid-column: 1 / -1; }
}

/* case page */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stats div { padding: 18px 20px 18px 0; display: grid; gap: 6px; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.stats dd { margin: 0; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.cols { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 16px 48px; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.cols:last-of-type { border-bottom: 0; }
.cols h2 { margin: 0; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 400; padding-top: 8px; }
.cols p { margin: 0 0 0.8em; max-width: 34em; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.5; }
.cols p:last-child { margin-bottom: 0; }
.cols ul:not(.facts) { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 34em; }
.cols ul:not(.facts) li { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; padding-left: 28px; position: relative; }
.cols ul:not(.facts) li::before { content: "▲"; position: absolute; left: 0; font-size: 0.75em; top: 0.3em; }
.pull { font: 300 clamp(1.8rem, 4vw, 3.2rem)/1.2 var(--serif); color: var(--sky); margin: 0; max-width: 20em; text-wrap: balance; }
.note { display: inline-block; border: 1px dashed var(--dim); color: var(--dim); padding: 10px 14px; font-size: 1rem; }
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); } .cols h2 { padding-top: 0; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { padding-block: 28px; text-decoration: none; display: grid; gap: 6px; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 20px; }
.pager small { color: var(--dim); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pager span { color: var(--sky); font: 300 clamp(1.2rem, 2.4vw, 1.8rem)/1.2 var(--serif); }
.pager a:hover span { color: var(--lime); }

/* about extras */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.facts li { border-top: 1px solid var(--line); padding-block: 16px; font-size: 1.125rem; line-height: 1.45; }
.facts b { display: block; font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.patent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; border: 1px solid var(--lime); padding: 24px; max-width: 52rem; }
.patent .num { font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: 0.02em; }
.patent p { margin: 0; color: var(--sky); font-size: 1.0625rem; line-height: 1.5; }
@media (max-width: 640px) { .patent { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 32px 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 1.0625rem; }
footer nav a { color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  .portrait i, .bar { transition: none; }
  .tape-track, .dot, .bar.live::after { animation: none; }
  @view-transition { navigation: none; }
}

/* site-wide crosshair */
@media (pointer: fine) { body { cursor: crosshair; } a, button { cursor: crosshair; } }
.xh { position: fixed; inset: 0; pointer-events: none; z-index: 50; --xc: var(--wire); --xt: var(--sky); }
.xh[data-tone="dark"] { --xc: var(--lime); --xt: var(--ink); }
.xh[data-tone="tape"] { --xc: var(--ink); --xt: var(--lime); }
.xh[data-tone="tip"] { --xc: var(--pop); --xt: var(--ink); }
.xh i { position: absolute; left: 0; top: 0; display: block; }
.xh-v { width: 0; height: 100%; border-left: 1px dashed var(--xc); opacity: 0.7; transition: opacity 180ms ease; }
.xh-h { height: 0; width: 100%; border-top: 1px dashed var(--xc); opacity: 0.7; transition: transform 120ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease; }
.xh:not(.snap) .xh-h { transition: opacity 180ms ease; }
/* link hover: the lines fade as a box grows out of the pointer to frame the link, and shrinks back on the way out */
.xh-b { box-sizing: border-box; width: 0; height: 0; border: 1px solid var(--xc); opacity: 0; transition: transform 220ms cubic-bezier(.2,.8,.2,1), width 220ms cubic-bezier(.2,.8,.2,1), height 220ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease; }
.xh.box .xh-b { opacity: 1; }
.xh.box .xh-v, .xh.box.snap .xh-h { opacity: 0; }
.xh.snap .xh-h { opacity: 1; border-top-style: solid; }
.xh-l { position: absolute; left: 0; top: 0; background: var(--xc); color: var(--xt); font: 400 15px/1 var(--sans); padding: 5px 8px 4px; white-space: nowrap; font-variant-numeric: tabular-nums; transition: transform 120ms cubic-bezier(.2,.8,.2,1); }
.xh:not(.snap) .xh-l { transition: none; }
@media (prefers-reduced-motion: reduce) { .xh-v, .xh-h, .xh-b, .xh-l { transition: none; } }

/* typed headings: hidden until site.js takes over, untyped text holds its place so nothing reflows */
.typing [data-type]:not(.typed) { visibility: hidden; }
[data-type] .rest { visibility: hidden; }
[data-type] .glue { white-space: nowrap; }
/* the caret is exactly one line box tall: the inline's content area is 1em, centred in a 1lh line */
.caret { position: relative; animation: blink 1s steps(1) infinite; }
.caret::before { content: ""; position: absolute; left: 0.06em; top: calc((1em - 1lh) / 2); width: 0.4em; height: 1lh; background: var(--caret, currentColor); }
@keyframes blink { 50% { opacity: 0; } }
/* subpages (about, contact): back link, typed heading, and the slim footer shared with the homepage */
.page-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; padding-block: 28px 0; }
.page-bar a { font-size: 1.125rem; }
.page-h { margin: clamp(40px, 6vw, 80px) 0 0; color: var(--sky); font: 400 clamp(2.4rem, 6.4vw, 5.4rem)/1.18 var(--sans); max-width: 13em; text-wrap: balance; --caret: var(--lime); }
.soon { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; padding-block: 24px; font-size: 1.0625rem; }
.soon nav { gap: 8px 28px; font-size: inherit; }
/* one link treatment on the black floor: underlined at rest, filled lime with no underline on hover (the homepage H2 link does the same in blue) */
.soon a, .page-bar a, .prose a { color: var(--lime); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.soon a:hover, .page-bar a:hover, .prose a:hover { background: var(--lime); color: var(--ink); text-decoration: none; }
/* every page: the footer rides along the bottom of the screen, so the nav is always in reach */
.soon { position: sticky; bottom: 0; z-index: 5; border-top: 1px solid color-mix(in srgb, var(--lime) 25%, transparent); }
@media (max-width: 640px) {
  .soon { padding-block: 12px 14px; gap: 4px 16px; font-size: 1rem; }
  .soon nav { gap: 6px 20px; }
  .soon > span { font-size: 0.8125rem; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* pixel field (about, contact): a fixed low-res canvas scaled up with hard edges, behind see-through floor sections */
canvas.pixels { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; pointer-events: none; }
.has-pixels body, .has-pixels .floor:not(.soon) { background: transparent; }
