/* Hallmark · macrostructure: pinned-scene street · tone: Vice dusk briefing · anchor hue: marker gold #fcaf17 · studied-DNA motion (source: SHAKY, Awwwards Nominee). MISSION: the street at dusk, one gold marker, three jobs. Palette and type: brand/STYLE.md */
@font-face { font-family: 'Anton'; src: url('/assets/fonts/anton-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/assets/fonts/barlow-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #140b22; --dusk: #2a1240; --violet: #4b1d6b; --magenta: #d6337f; --sunset: #f26b2a;
  --gold: #fcaf17; --cream: #ede6d6; --haze: #c7b4cf; --ink: #120a18;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --gut: clamp(18px, 3.2vw, 64px);
  --mx: 50%; --my: 80%;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--cream); font-family: var(--body); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; font-size: clamp(16px, 0.35vw + 14.6px, 19px); line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* header: always readable, on a blurred night strip from the first frame */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gut); background: rgba(20, 11, 34, 0.72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(237, 230, 214, 0.08);
}
.hud-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hud-brand img { width: 40px; height: 40px; border-radius: 10px; }
.hud-word { font-family: var(--display); font-size: 26px; letter-spacing: 0.01em; line-height: 1; color: var(--cream); }
.hud-right { display: flex; align-items: center; gap: 10px; }
.hud-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--cream); background: rgba(237, 230, 214, 0.06); border: 1px solid rgba(237, 230, 214, 0.14); transition: transform .2s, border-color .2s, color .2s; }
.hud-ico:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold); }
.ca-chip { display: inline-flex; gap: 6px; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(237, 230, 214, 0.16); background: rgba(42, 18, 64, 0.7); font-family: var(--cond); font-weight: 600; font-size: 16px; cursor: pointer; }
.ca-label { color: var(--gold); }
.ca-wait { font-family: var(--cond); font-weight: 600; font-size: 16px; color: var(--haze); padding: 0 6px; }
.act { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; transition: transform .2s, box-shadow .2s, background-color .2s; }
.act-gold { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 rgba(252, 175, 23, 0); }
.act-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(252, 175, 23, 0.45); }
.act-line { background: transparent; color: var(--cream); border: 1.5px solid rgba(237, 230, 214, 0.4); }
.act-gold:active, .act-line:active, .hud-ico:active { transform: translateY(0) scale(0.97); }
.act-gold:disabled, .act-line:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.act-line:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold); }
.act-big { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.act[disabled] { opacity: .55; cursor: progress; transform: none; }

/* the street: a tall track with a sticky stage; the marker stays put while the jobs arrive around it */
.street { position: relative; height: 520vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.plate { position: absolute; inset: 0; transform-origin: var(--mx) var(--my); will-change: transform; }
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.veil { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 11, 34, 0.55) 0%, rgba(20, 11, 34, 0) 26%),
    linear-gradient(0deg, rgba(20, 11, 34, 0.5) 0%, rgba(20, 11, 34, 0) 30%); }
.marker { position: absolute; left: var(--mx); top: var(--my); width: 0; height: 0; pointer-events: none; }
.beam { position: absolute; left: -46px; bottom: 0; width: 92px; height: 62vh; border-radius: 46px 46px 0 0;
  background: linear-gradient(0deg, rgba(252, 175, 23, 0.5), rgba(252, 175, 23, 0.14) 55%, rgba(252, 175, 23, 0));
  filter: blur(8px); mix-blend-mode: screen; animation: beam 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.halo { position: absolute; left: -170px; top: -48px; width: 340px; height: 96px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(252, 175, 23, 0.55), rgba(242, 107, 42, 0.18) 60%, rgba(242, 107, 42, 0)); mix-blend-mode: screen; animation: halo 3.6s ease-in-out infinite; }
.ring { position: absolute; left: -120px; top: -30px; width: 240px; height: 60px; border-radius: 50%; border: 2px solid rgba(252, 175, 23, 0.85); }
.ring-a { animation: ring 3.6s cubic-bezier(.2,.6,.3,1) infinite; }
.ring-b { animation: ring 3.6s cubic-bezier(.2,.6,.3,1) 1.8s infinite; }
@keyframes beam { 0%, 100% { opacity: .75; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(1.12); } }
@keyframes halo { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes ring { 0% { transform: scale(.55); opacity: 0; } 25% { opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px rgba(252, 175, 23, 0.6); opacity: 0; animation: ember 9s linear infinite; }
.embers i:nth-child(1) { left: 44%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 52%; animation-delay: 1.3s; animation-duration: 11s; }
.embers i:nth-child(3) { left: 48%; animation-delay: 2.1s; }
.embers i:nth-child(4) { left: 56%; animation-delay: 3.4s; animation-duration: 12s; background: var(--sunset); }
.embers i:nth-child(5) { left: 40%; animation-delay: 4.2s; animation-duration: 10s; }
.embers i:nth-child(6) { left: 61%; animation-delay: 5.6s; }
.embers i:nth-child(7) { left: 35%; animation-delay: 6.1s; animation-duration: 13s; background: var(--magenta); }
.embers i:nth-child(8) { left: 50%; animation-delay: 7.3s; }
.embers i:nth-child(9) { left: 66%; animation-delay: 8.2s; animation-duration: 12s; }
.embers i:nth-child(10) { left: 46%; animation-delay: 2.8s; animation-duration: 14s; background: var(--sunset); }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate(40px, -78vh); opacity: 0; } }

.opening { position: absolute; left: var(--gut); top: 50%; transform: translateY(-46%); width: min(560px, 40vw); z-index: 3; }
.drop-head { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 6.4vw, 156px); line-height: .94; letter-spacing: 0; color: var(--cream);
  text-shadow: 0 3px 0 var(--ink), 0 10px 40px rgba(20, 11, 34, 0.7); }
.drop-head span { display: inline-block; white-space: nowrap; }
.drop-head span:last-child { color: var(--gold); }
.drop-copy { margin: 22px 0 0; max-width: 30em; color: var(--cream); font-size: clamp(16px, 0.5vw + 13px, 22px); text-shadow: 0 1px 12px rgba(20, 11, 34, 0.9); }
.clock { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; }
.clock-label { font-family: var(--cond); font-weight: 600; font-size: clamp(17px, 0.6vw + 12px, 24px); color: var(--haze); }
.clock-time { font-family: var(--display); font-size: clamp(40px, 3.4vw, 82px); line-height: 1; color: var(--sunset); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 var(--ink); }
.tally { margin: 10px 0 0; font-family: var(--cond); font-weight: 600; font-size: clamp(17px, 0.5vw + 13px, 24px); color: var(--cream); }
.tally span { color: var(--gold); }

/* the three jobs: one per scene, alternating sides around the marker */
.briefs { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.job-card { position: absolute; top: 50%; width: min(500px, 33vw); padding: clamp(22px, 1.6vw, 36px); border-radius: 20px; pointer-events: auto;
  background: rgba(20, 11, 34, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(252, 175, 23, 0.22);
  box-shadow: 0 30px 80px rgba(18, 10, 24, 0.55); opacity: 0; transform: translateY(-40%); visibility: hidden; }
.job-card.left { left: var(--gut); }
.job-card.right { right: var(--gut); }
.job-pts { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.job-pts b { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 2.4vw, 56px); line-height: 1; color: var(--gold); }
.job-pts span { font-family: var(--cond); font-weight: 600; font-size: 17px; color: var(--haze); text-align: right; }
.job-name { margin: 14px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 2.8vw, 68px); line-height: 1; color: var(--cream); }
.job-brief { margin: 14px 0 0; font-size: clamp(16px, 0.4vw + 13px, 20px); color: var(--cream); }
.job-brief.waiting { color: var(--haze); font-style: italic; }
.job-rule { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(75, 29, 107, 0.45); font-weight: 500; font-size: clamp(15px, 0.3vw + 13px, 18px); }
.job-coins { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.job-coins li { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(237, 230, 214, 0.08); font-family: var(--cond); font-weight: 600; font-size: 16px; }
.job-coins img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--violet); }
.job-coins a { text-decoration: none; display: contents; }
.job-open { margin: 16px 0 0; font-family: var(--cond); font-weight: 600; font-size: 16px; color: var(--haze); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid rgba(237, 230, 214, 0.55); z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* the night panel slides up over the street */
.panel { position: relative; z-index: 10; margin-top: -100vh; background: var(--night); border-radius: clamp(28px, 4vw, 72px) clamp(28px, 4vw, 72px) 0 0; box-shadow: 0 -30px 80px rgba(18, 10, 24, 0.6); }
.panel-inner { max-width: 1680px; margin: 0 auto; padding: clamp(70px, 9vw, 160px) var(--gut) 40px; }
.panel-head { margin: 0; text-align: center; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 8vw, 190px); line-height: .95; color: var(--gold); text-shadow: 0 0 0 rgba(252, 175, 23, 0); }
.panel-copy { max-width: 40em; margin: 24px auto 0; text-align: center; color: var(--haze); font-size: clamp(16px, 0.4vw + 14px, 21px); }
.desk { margin: clamp(36px, 4vw, 64px) auto 0; max-width: 1100px; }
.desk-act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.desk-note { flex-basis: 100%; margin: 6px 0 0; text-align: center; min-height: 1.5em; color: var(--haze); }
.desk-note.bad { color: var(--sunset); }
.dossier { margin-top: 30px; padding: clamp(20px, 2.4vw, 40px); border-radius: 24px; background: var(--dusk); border: 1px solid rgba(252, 175, 23, 0.18); }
.dossier-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.dossier-who { margin: 0; font-family: var(--display); font-size: clamp(28px, 2vw, 44px); line-height: 1.05; }
.dossier-sum { margin: 6px 0 0; color: var(--haze); font-family: var(--cond); font-weight: 600; font-size: 18px; }
.jobs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.jobs li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: rgba(20, 11, 34, 0.6); }
.jobs .j-title { font-weight: 700; font-size: 18px; }
.jobs .j-pts { font-family: var(--display); font-size: 26px; color: var(--haze); }
.jobs li.done .j-pts { color: var(--gold); }
.jobs .j-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(237, 230, 214, 0.1); overflow: hidden; }
.jobs .j-bar i { display: block; height: 100%; width: 0; background: var(--magenta); border-radius: 3px; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.jobs li.done .j-bar i { background: var(--gold); }
.jobs .j-note { grid-column: 1 / -1; color: var(--haze); font-size: 15px; }
.jobs .j-note a { color: var(--gold); }
.badges { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(252, 175, 23, 0.5); color: var(--gold); font-family: var(--cond); font-weight: 600; font-size: 16px; }
.card-frame { margin: 24px 0 0; }
.card-frame img { width: 100%; height: auto; border-radius: 16px; }

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 64px); margin-top: clamp(70px, 8vw, 140px); }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.board-head h3, .code h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 3vw, 72px); line-height: 1; color: var(--cream); }
.board-sub { margin: 10px 0 0; color: var(--haze); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--dusk); }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--haze); }
.seg button[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.board, .wire { list-style: none; margin: 18px 0 0; padding: 0; }
.board li { display: grid; grid-template-columns: 3.2em 1fr auto auto; gap: 14px; align-items: center; padding: 14px 4px; border-top: 1px solid rgba(237, 230, 214, 0.1); font-family: var(--cond); font-weight: 600; font-size: 19px; }
.board .b-rank { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--haze); }
.board li:nth-child(-n+3) .b-rank { color: var(--gold); }
.board .b-pts { color: var(--gold); }
.board .b-n { color: var(--haze); }
.wire li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 4px; border-top: 1px solid rgba(237, 230, 214, 0.1); }
.wire .w-what { font-weight: 700; }
.wire .w-pts { font-family: var(--display); font-size: 22px; color: var(--gold); }
.wire .w-meta { grid-column: 1 / -1; color: var(--haze); font-size: 15px; }
.wire .w-meta a { color: var(--gold); }
.empty { padding: 22px 4px; border-top: 1px solid rgba(237, 230, 214, 0.1); color: var(--haze); }

.code { margin-top: clamp(70px, 8vw, 140px); }
.code-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 40px); margin-top: 26px; }
.code-grid p { margin: 0; color: var(--haze); }
.code-grid strong { display: block; margin-bottom: 6px; color: var(--cream); font-size: 1.08em; }

.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; margin-top: clamp(70px, 8vw, 140px); padding-top: 34px; border-top: 1px solid rgba(237, 230, 214, 0.12); }
.foot-brand { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 34px; }
.foot-brand img { border-radius: 12px; }
.foot-copy { margin: 0; color: var(--haze); font-size: 15px; max-width: 46em; }
.foot-links { display: flex; gap: 10px; align-items: center; }

@media (max-width: 1100px) {
  .code-grid { grid-template-columns: 1fr 1fr; }
  .boards { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .ca-wait, .ca-chip { display: none !important; }
  .opening { width: auto; right: var(--gut); top: 92px; transform: none; }
  .drop-copy { max-width: 26em; }
  .job-card, .job-card.left, .job-card.right { left: 14px; right: 14px; width: auto; top: auto; bottom: 18px; transform: translateY(30px); }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hud { padding: 8px 12px; gap: 8px; }
  .hud-right { gap: 6px; }
  .hud-word { font-size: 22px; }
  .hud-brand img { width: 34px; height: 34px; }
  .hud-ico { width: 34px; height: 34px; }
  .hud .act { height: 34px; padding: 0 11px; font-size: 13px; }
  .hud [data-signin] { display: none; }
  .drop-head { font-size: clamp(46px, 13vw, 64px); }
  .drop-copy { font-size: 15px; margin-top: 14px; }
  .clock { margin-top: 16px; }
  .clock-time { font-size: 40px; }
  .job-card { padding: 18px; }
  .job-name { font-size: 32px; }
  .job-brief { font-size: 15px; margin-top: 8px; }
  .job-rule { font-size: 14px; padding: 10px 12px; margin-top: 10px; }
  .job-coins { margin-top: 10px; }
  .job-coins li:nth-child(n+5) { display: none; }
  .code-grid { grid-template-columns: 1fr; }
  .board li { grid-template-columns: 2.4em 1fr auto; }
  .board .b-n { display: none; }
}

/* calm mode: no pinned scroll, the jobs simply sit in order under the street */
.calm .street { height: auto; }
.calm .stage { position: relative; height: 100vh; height: 100svh; }
.calm .briefs { position: relative; inset: auto; display: grid; gap: 16px; padding: 24px var(--gut) 120px; background: var(--night); }
.calm .job-card, .calm .job-card.left, .calm .job-card.right { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-width: 760px; opacity: 1; visibility: visible; transform: none; }
.calm .panel { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .beam, .halo, .ring, .embers i, .scroll-cue span { animation: none !important; }
  .ring-b, .embers { display: none; }
}

[hidden] { display: none !important; }
.board li.empty { display: block; font-family: var(--body); font-weight: 400; font-size: 1em; }
.clock { flex-direction: column; align-items: flex-start; gap: 4px; }
.veil { background:
    linear-gradient(90deg, rgba(20, 11, 34, 0.55) 0%, rgba(20, 11, 34, 0.25) 30%, rgba(20, 11, 34, 0) 48%),
    linear-gradient(180deg, rgba(20, 11, 34, 0.55) 0%, rgba(20, 11, 34, 0) 26%),
    linear-gradient(0deg, rgba(20, 11, 34, 0.5) 0%, rgba(20, 11, 34, 0) 30%); }
@media (max-width: 899px) { .veil { background: linear-gradient(180deg, rgba(20, 11, 34, 0.7) 0%, rgba(20, 11, 34, 0.3) 45%, rgba(20, 11, 34, 0) 60%), linear-gradient(0deg, rgba(20, 11, 34, 0.5) 0%, rgba(20, 11, 34, 0) 30%); } }
