/* Hallmark · macrostructure: walk-through 3D scene with station panels · genre: atmospheric · design-system: HQ/design/DESIGN.md */
@font-face { font-family: "Doto"; src: url(/assets/fonts/Doto-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/assets/fonts/SpaceGrotesk-var.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/assets/fonts/SpaceMono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/assets/fonts/SpaceMono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #000;
  --ink: #f4f4f4;
  --mid: #a3a3a3;
  --dim: #6e6e6e;
  --line: rgba(244, 244, 244, .18);
  --line2: rgba(244, 244, 244, .34);
  --glass: rgba(6, 6, 6, .72);
  --pad: clamp(18px, 2.6vw, 44px);
  --display: "Doto", "Space Mono", monospace;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; font: 400 16px/1.5 var(--body); overflow-x: hidden; cursor: default; }
a { color: inherit; }
img { display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #000; padding: 8px 12px; }
.skip:focus { top: 12px; }

#lab { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.still { position: fixed; inset: 0; z-index: 0; background: #000 center/cover no-repeat; display: none; }
.no-gl .still { display: block; }
.no-gl #lab { display: none; }

/* cursor probe: YOLO.EXE's "cursor 0.99" box, ours reads what the beam would hit */
.reticle { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; transform: translate3d(-100px, -100px, 0); transition: opacity .3s; }
.reticle i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border: 1.5px solid var(--ink); }
.reticle b { position: absolute; left: -12px; top: -31px; white-space: nowrap; background: var(--ink); color: #000; font: 700 10px/1 var(--mono); padding: 4px 5px 3px; }
@media (hover: none), (max-width: 760px) { .reticle { display: none; } }

/* ---------- bar ---------- */
.bar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; background: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,0)); display: flex; align-items: center; gap: 18px; padding: 16px var(--pad); pointer-events: none; }
.bar > * { pointer-events: auto; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { width: 34px; height: 34px; }
.mark-word { font: 800 22px/1 var(--display); letter-spacing: .02em; }
.where { margin: 0; font: 500 13px/1 var(--body); color: var(--mid); border: 1px solid var(--line); padding: 8px 12px; background: var(--glass); backdrop-filter: blur(8px); }
.bar-coin { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pair, .ca, .icon-btn, .buy, .wallet { height: 36px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: var(--glass); backdrop-filter: blur(8px); padding: 0 12px; text-decoration: none; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pair img { width: 18px; height: 18px; border-radius: 50%; }
.pair { color: var(--mid); }
.icon-btn { width: 36px; justify-content: center; padding: 0; }
.pair:hover, .ca:hover, .icon-btn:hover, .wallet:hover { border-color: var(--ink); }
.buy { background: var(--ink); color: #000; border-color: var(--ink); font-weight: 700; }
.buy[aria-disabled="true"] { background: transparent; color: var(--mid); border-color: var(--line2); }
.wallet { font-weight: 600; }

/* station rail: YOLO.EXE's diamonds on the right edge */
.rail { position: fixed; z-index: 20; right: calc(var(--pad) - 6px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.rail a { position: relative; display: block; width: 16px; height: 16px; }
.rail i { position: absolute; inset: 3px; border: 1.5px solid var(--mid); transform: rotate(45deg); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.rail a.on i { background: var(--ink); border-color: var(--ink); transform: rotate(45deg) scale(1.25); }
.rail span { position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%); opacity: 0; white-space: nowrap; font-size: 13px; background: var(--ink); color: #000; padding: 3px 7px; transition: opacity .2s, transform .3s var(--ease); pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ---------- stations ---------- */
main { position: relative; z-index: 2; }
.station { position: relative; min-height: 100vh; min-height: 100svh; padding: 110px calc(var(--pad) + 30px) 60px var(--pad); display: flex; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font: 700 clamp(28px, 2.6vw, 44px)/1.05 var(--body); letter-spacing: -.02em; }
h3 { font: 600 20px/1.2 var(--body); }

/* intake */
.s-intake { flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 7vh, 90px); }
.era { display: flex; align-items: center; flex-wrap: nowrap; gap: .12em; font: 900 clamp(64px, 8.2vw, 230px)/.86 var(--display); letter-spacing: -.01em; white-space: nowrap; margin-left: -.04em; }
.era .w { display: inline-block; }
.era .arrow { font: 300 .5em/1 var(--body); color: var(--dim); transform: translateY(-.06em); }
.era .w:not(.hot) { color: var(--dim); }
.era .hot { color: var(--ink); text-shadow: 0 0 40px rgba(255, 255, 255, .25); }
.intro { max-width: min(1200px, 80vw); }
.lead { max-width: 560px; margin: 22px 0 0; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.45; color: #d6d6d6; }
.intake { position: absolute; right: calc(var(--pad) + 40px); bottom: clamp(40px, 7vh, 90px); width: min(380px, 30vw); min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 26px; cursor: pointer; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line2); box-shadow: 8px 8px 0 var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.intake:hover, .intake.over { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.intake.over { border-color: var(--ink); }
.intake input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.intake:focus-within { outline: 2px solid var(--ink); outline-offset: 4px; }
.intake-frame i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); }
.intake-frame i:nth-child(1) { left: 14px; top: 14px; border-width: 2px 0 0 2px; }
.intake-frame i:nth-child(2) { right: 14px; top: 14px; border-width: 2px 2px 0 0; }
.intake-frame i:nth-child(3) { left: 14px; bottom: 14px; border-width: 0 0 2px 2px; }
.intake-frame i:nth-child(4) { right: 14px; bottom: 14px; border-width: 0 2px 2px 0; }
.intake-big { font: 700 24px/1.1 var(--body); letter-spacing: -.01em; }
.intake-small { font-size: 14px; color: var(--mid); line-height: 1.4; }

/* caption cards with a hard offset block, as in YOLO.EXE */
.card { align-self: center; width: min(430px, 34vw); padding: 26px 28px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line2); box-shadow: 8px 8px 0 var(--ink); }
.card p { margin: 12px 0 0; color: #d0d0d0; }
.readings { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.readings li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 14.5px; color: var(--mid); }
.readings b { font: 700 14px/1.4 var(--mono); color: var(--ink); }
.counter { position: absolute; right: calc(var(--pad) + 44px); bottom: 70px; text-align: right; }
.counter-k { display: block; font-size: 14px; color: var(--mid); }
.counter-n { display: block; font: 900 clamp(64px, 8vw, 150px)/.9 var(--display); font-variant-numeric: tabular-nums; }

/* marquee band */
.band { position: relative; z-index: 3; overflow: hidden; transform: rotate(-2.2deg); margin: -20px -20px; background: var(--ink); color: #000; padding: 10px 0; }
.band-run { display: inline-block; white-space: nowrap; font: 800 clamp(22px, 2.2vw, 36px)/1 var(--display); animation: run 38s linear infinite; }
@keyframes run { to { transform: translateX(-50%); } }

/* screens: the instrument panel */
.s-screens { align-items: center; }
.panel { width: min(560px, 42vw); padding: 26px 28px 28px; background: rgba(4, 4, 4, .8); backdrop-filter: blur(12px); border: 1px solid var(--line2); }
.panel > p { color: #cfcfcf; margin: 10px 0 0; }
.preview { position: relative; margin: 18px 0 0; aspect-ratio: 1; max-height: 33vh; border: 1px solid var(--line); background: #000; }
.preview canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.preview-empty { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; font-size: 13px; color: var(--mid); background: rgba(0, 0, 0, .7); padding: 6px 8px; }
.ctrls { margin-top: 18px; display: grid; gap: 10px; }
.seg { border: 0; padding: 0; margin: 0 0 4px; display: flex; gap: 0; }
.seg legend { float: left; width: 110px; padding-top: 8px; font-size: 14.5px; color: var(--mid); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 7px 18px; border: 1px solid var(--line2); cursor: pointer; font-weight: 600; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: #000; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sl { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; font-size: 14.5px; color: var(--mid); }
.sl output { font: 700 13px/1 var(--mono); color: var(--ink); text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--line2); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; background: var(--ink); border-radius: 0; transform: rotate(45deg); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; background: var(--ink); border: 0; border-radius: 0; }
.row2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.tog { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; color: #d6d6d6; }
.tog input { appearance: none; -webkit-appearance: none; width: 30px; height: 16px; border: 1px solid var(--line2); position: relative; cursor: pointer; margin: 0; flex: none; }
.tog input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; background: var(--mid); transition: transform .25s var(--ease), background .25s; }
.tog input:checked { border-color: var(--ink); }
.tog input:checked::after { transform: translateX(14px); background: var(--ink); }
.tog.small { font-size: 13.5px; color: var(--mid); }
.ghost { background: none; border: 0; color: var(--mid); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; font-size: 14px; }
.ghost:hover { color: var(--ink); }
.exports { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.act { height: 44px; padding: 0 18px; background: var(--ink); color: #000; border: 1px solid var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; }
.act:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--mid); }
.act:disabled { opacity: .35; cursor: not-allowed; }
.act.big { height: 52px; width: 100%; font-size: 16px; margin-top: 16px; }
.status { margin: 12px 0 0; font-size: 14px; color: var(--mid); min-height: 1.4em; }
.status.bad { color: #ffb4b4; }
.status a { color: var(--ink); }

/* tanks: the wall sits on the right so the tanks stay visible on the left */
.s-tanks { justify-content: flex-end; align-items: center; }
.wall { width: min(620px, 46vw); padding: 26px 28px; background: rgba(4, 4, 4, .8); backdrop-filter: blur(12px); border: 1px solid var(--line2); }
.wall-lead { color: #cfcfcf; margin: 10px 0 0; }
.publish { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); align-items: center; }
.publish input[type=text] { grid-column: 1 / -1; }
.publish .status { grid-column: 1 / -1; margin: 0; }
input[type=text], .fld input, .fld textarea, .pairpick input { width: 100%; height: 42px; padding: 0 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line2); border-radius: 0; }
.fld textarea { height: auto; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); }
.grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-height: 44vh; overflow: auto; }
.grid li { position: relative; aspect-ratio: 1; border: 1px solid var(--line); background: #000; overflow: hidden; }
.grid li img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.grid li:hover img { transform: scale(1.06); }
.grid li span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 12px; background: rgba(0, 0, 0, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid li.empty, .launched li.empty { grid-column: 1 / -1; aspect-ratio: auto; border: 1px dashed var(--line2); padding: 18px; color: var(--mid); background: transparent; font-size: 15px; }

/* launch bay */
.s-bay { align-items: center; gap: 28px; }
.bay { width: min(560px, 42vw); }
.f2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--mid); }
.pairpick { position: relative; margin-top: 16px; display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; font-size: 14.5px; }
.pp-k { color: var(--mid); }
.pp-v { font-weight: 700; }
.pp-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 0; list-style: none; background: #050505; border: 1px solid var(--line2); max-height: 240px; overflow: auto; }
.pp-list:empty { display: none; }
.pp-list button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.pp-list button:hover, .pp-list button:focus-visible { background: rgba(255, 255, 255, .06); }
.pp-list img { width: 22px; height: 22px; border-radius: 50%; }
.pp-list small { color: var(--mid); margin-left: auto; }
.launched { align-self: flex-end; margin-left: auto; width: min(360px, 28vw); padding: 22px 24px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line2); }
.launched ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.launched li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.launched li.empty { display: block; }
.launched li img { width: 40px; height: 40px; border: 1px solid var(--line); }
.launched li a { text-decoration: none; font-weight: 600; }
.launched li small { display: block; color: var(--mid); font-weight: 400; }

.foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 34px var(--pad); border-top: 1px solid var(--line); background: #000; color: var(--mid); font-size: 14px; }
.foot p { margin: 0; max-width: 720px; }
.foot-links { margin-left: auto; display: flex; gap: 14px; }
.foot-links a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line2); }

/* reveals */
.rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.card.rv { transform: translate3d(-18px, 18px, 0) scale(.97); }
.card.rv.in { transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .where { display: none; }
  .pair span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 760px) {
  .bar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; background: linear-gradient(#000 70%, transparent); }
  .mark-word { font-size: 18px; }
  .mark img { width: 28px; height: 28px; }
  .bar-coin { width: 100%; margin: 0; gap: 6px; }
  .pair { display: none; }
  .ca { flex: 1; justify-content: center; }
  .pair, .ca, .icon-btn, .buy, .wallet { height: 34px; font-size: 13px; padding: 0 10px; }
  .icon-btn { width: 34px; padding: 0; }
  .wl { display: none; }
  .rail { display: none; }
  .station { padding: 120px 16px 40px; flex-direction: column; min-height: auto; }
  .s-intake { min-height: 100svh; justify-content: flex-end; }
  .s-intake::before { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.82) 30%); pointer-events: none; }
  .s-intake > * { position: relative; }
  .era { font-size: clamp(40px, 15vw, 80px); flex-wrap: wrap; white-space: normal; row-gap: .08em; }
  .lead { text-shadow: 0 1px 12px #000, 0 0 3px #000; }
  .intro { max-width: none; }
  .intake { position: relative; right: auto; bottom: auto; width: auto; margin-top: 22px; min-height: 150px; box-shadow: 6px 6px 0 var(--ink); }
  .card, .panel, .wall, .bay, .launched { width: 100%; }
  .s-chamber { min-height: 90svh; justify-content: flex-end; }
  .counter { position: static; text-align: left; margin-top: 18px; }
  .preview { max-height: none; }
  .sl { grid-template-columns: 90px 1fr 38px; }
  .seg legend { width: 90px; }
  .launched { margin: 0; }
  .grid { max-height: none; grid-template-columns: repeat(3, 1fr); }
  .foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .band-run { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
/* between tablet and small laptop the drop card joins the flow under the copy, so it can never sit on the headline */
@media (min-width: 761px) and (max-width: 1080px) {
  .intake { position: relative; right: auto; bottom: auto; width: min(460px, 100%); margin-top: 26px; }
}
