/* Site visuals: media, drawings, story pages, click-to-zoom. Layered on top of css/*.css.
   Uses the homepage's own tokens (tokens.css), so it follows the
   light/dark toggle and the same fonts. */

/* ---------- media on cards ---------- */
.v-media {
  position: relative;
  margin: 0 0 var(--space-2);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0a09;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.v-media > video,
.v-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-media > svg { width: 100%; height: 100%; display: block; }

.v-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: baseline; }
.v-links .project-card__link { align-self: auto; }

/* figures inside work cards */
.v-figure { margin: var(--space-5) 0 0; }
.v-figure figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.5;
}
.v-figure figcaption a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.v-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.v-pair figure { margin: 0; }
.v-pair img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.v-pair figcaption { margin-top: var(--space-1); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.v-kit { max-width: 420px; }
.v-kit .v-art { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.v-kit svg { display: block; width: 100%; height: auto; }

/* ---------- drawings for projects without a screenshot ---------- */
.d-taskbar { position: absolute; inset: 0; background: linear-gradient(#1c1916, #0b0a09); }
.d-taskbar .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: #22201d; border-top: 1px solid #34302b; display: flex; align-items: center; gap: 7px; padding: 0 10px; }
.d-taskbar .ic { width: 22px; height: 22px; border-radius: 5px; background: #3a3530; flex: none; }
.d-taskbar .ban { flex: 1; height: 26px; border-radius: 5px; background: #e2703a; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.d-taskbar .ban i, .d-taskbar .zoom i { display: block; height: 6px; border-radius: 3px; background: rgba(11, 10, 9, 0.7); }
.d-taskbar .tray { width: 70px; height: 9px; border-radius: 4px; background: #3a3530; flex: none; }
.d-taskbar .zoom { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 70%; height: 54px; border-radius: 10px; background: #e2703a; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.d-taskbar .zoom i:first-child { width: 58%; height: 8px; }
.d-taskbar .zoom i:last-child { width: 30%; height: 8px; opacity: 0.6; }
.d-taskbar .guide { position: absolute; left: 50%; top: calc(38% + 27px); bottom: 44px; border-left: 1.5px dashed #9a9186; opacity: 0.6; }
.d-taskbar .note { position: absolute; left: 12px; bottom: 54px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9a9186; }

.d-flyout { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #1f1c19, #0b0a09); }
.d-flyout .panel { width: 64%; border-radius: 12px; background: #24211e; border: 1px solid #38332d; padding: 14px 16px; display: grid; gap: 12px; }
.d-flyout .row { display: flex; align-items: center; gap: 12px; }
.d-flyout .art { width: 40px; height: 40px; border-radius: 8px; background: #3a3530; flex: none; }
.d-flyout .lines { flex: 1; display: grid; gap: 7px; }
.d-flyout .lines i { display: block; height: 7px; border-radius: 4px; background: #4a443d; }
.d-flyout .lines i:last-child { width: 60%; }
.d-flyout .vol { height: 6px; border-radius: 3px; background: #4a443d; position: relative; }
.d-flyout .vol::before { content: ""; position: absolute; inset: 0 38% 0 0; background: #e2703a; border-radius: 3px; }
.d-flyout .vol::after { content: ""; position: absolute; left: 62%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #ede7dc; transform: translate(-50%, -50%); }
.d-flyout .note { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9a9186; }

.d-list { position: absolute; inset: 0; background: linear-gradient(#1a1714, #0b0a09); display: flex; align-items: center; justify-content: center; }
.d-list .sheet { width: 66%; display: grid; gap: 8px; }
.d-list .row { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px; border-radius: 6px; background: #22201d; border: 1px solid #34302b; }
.d-list .row b { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid #6a635a; flex: none; }
.d-list .row.top { border-color: #e2703a; }
.d-list .row.top b { border-color: #e2703a; }
.d-list .row i { display: block; height: 6px; border-radius: 3px; background: #4a443d; }
.d-list .row.done b { background: #6fbf95; border-color: #6fbf95; }
.d-list .row.done i { opacity: 0.45; }
.d-list .note { position: absolute; left: 12px; top: 10px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9a9186; }

/* ======================================================
   Story pages (work/*)
   ====================================================== */
.story-hero { padding-block: calc(var(--header-h) + var(--space-9)) var(--space-9); }
.story-back { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-muted); text-decoration: none; }
.story-back:hover { color: var(--accent); }
.story-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); align-items: end; margin-top: var(--space-6); }
.story-top.stack { grid-template-columns: minmax(0, 1fr); align-items: start; }
.story-title { margin: var(--space-3) 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.story-lead { margin: var(--space-5) 0 0; font-size: var(--step-2); line-height: 1.35; color: var(--ink); max-width: 30ch; }
.story-facts { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); margin: var(--space-6) 0 0; }
.story-facts dt { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.story-facts dd { margin: 2px 0 0; font-weight: 500; }
.story-facts a { color: var(--accent); }
.story-media { margin: 0; }
.story-media > .v-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #0b0a09; }
.story-media video, .story-media img, .story-media svg { display: block; width: 100%; height: auto; }
.story-media figcaption { margin-top: var(--space-2); font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-muted); line-height: 1.5; }
.story-top.stack .story-media { max-width: 820px; }

.story-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-9); align-items: start; }
.story-aside { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.story-aside h2 { margin: 0 0 var(--space-3); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.story-aside > div + div { margin-top: var(--space-7); }
.story-aside .chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.story-aside .chips li { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 0.25rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.story-aside ul.plain { margin: 0; padding: 0; list-style: none; font-size: var(--step--1); line-height: 1.6; }
.story-aside a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

.story-step { padding-bottom: var(--space-11); }
.story-step .section__label { margin-bottom: var(--space-3); }
.story-step h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.story-step .copy { margin-top: var(--space-4); max-width: 62ch; color: var(--ink-muted); font-size: var(--step-0); line-height: 1.65; }
.story-step .copy p { margin: 0; }
.story-step .copy p + p { margin-top: var(--space-3); }
.story-step figure { margin: var(--space-6) 0 0; }

/* sheets hold the diagrams */
.v-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: clamp(var(--space-4), 3vw, var(--space-7)); color: var(--ink); }
.v-sheet .cap { margin: 0 0 var(--space-4); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.v-sheet svg { display: block; width: 100%; height: auto; max-width: 640px; }
.v-sheet .ink { stroke: currentColor; fill: none; }
.v-sheet .ink-fill { fill: currentColor; }
.v-sheet .acc { stroke: var(--accent); }
.v-sheet .acc-fill { fill: var(--accent); }
.v-sheet .lbl { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

/* flow: boxes in a row, a column on phones */
.flow { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.flow > li { flex: 1 1 0; display: flex; align-items: center; position: relative; }
.flow .box { flex: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: var(--space-3); border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); background: var(--surface-2); }
.flow .box b { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); line-height: 1.15; color: var(--ink); }
.flow .box span { margin-top: var(--space-1); font-size: 0.8rem; line-height: 1.4; color: var(--ink-muted); }
.flow .box.hot { background: var(--accent); border-color: var(--accent); }
.flow .box.hot b, .flow .box.hot span { color: #0b0a09; }
[data-theme="light"] .flow .box.hot b, [data-theme="light"] .flow .box.hot span { color: #ffffff; }
.flow > li + li { padding-left: 28px; }
.flow > li + li::before { content: ""; position: absolute; left: 3px; top: 50%; width: 22px; height: 1.5px; background: var(--ink-muted); }
.flow > li + li::after { content: ""; position: absolute; left: 17px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid var(--ink-muted); border-right: 1.5px solid var(--ink-muted); transform: translateY(-50%) rotate(45deg); }
.branch { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); font-size: 0.85rem; color: var(--ink-muted); }
.branch .box { padding: var(--space-2) var(--space-3); border: 1px dashed var(--accent); border-radius: var(--radius-sm); }
.branch .box b { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.side-note { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.side-note span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); }

/* fork: plan A blocked, plan B shipped */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.fork .path { padding: var(--space-4); border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); }
.fork .path h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.15; }
.fork .path p { margin: var(--space-2) 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-muted); }
.fork .tag { display: inline-block; margin-top: var(--space-3); padding: 0.2rem 0.5rem; border: 1px solid currentColor; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fork .blocked { border-style: dashed; opacity: 0.85; }
.fork .blocked h3 { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; color: var(--ink-muted); }
.fork .blocked .tag { color: var(--accent); }
.fork .taken { background: var(--surface-2); border-color: var(--accent); }
.fork .taken h3 { color: var(--accent); }
.fork .taken .tag { color: var(--ok); }
.fork-why { margin: var(--space-4) 0 0; font-size: 0.9rem; color: var(--ink-muted); }

/* results */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-5) var(--space-6); margin-top: var(--space-5); }
.results div { padding-top: var(--space-3); border-top: 2px solid var(--accent); }
.results b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.results b .u { font-size: 0.5em; margin-left: 0.08em; letter-spacing: 0; }
.results span { display: block; margin-top: var(--space-2); font-size: 0.88rem; line-height: 1.45; color: var(--ink-muted); max-width: 26ch; }

/* problem stubs (BEES) */
.stubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-5); }
.stubs div { padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); font-size: 0.92rem; line-height: 1.45; color: var(--ink); }

/* site map tree */
.tree .root { display: inline-block; padding: 0.35rem 0.8rem; border-radius: var(--radius-sm); background: var(--accent); color: #0b0a09; font-family: var(--font-display); font-weight: 700; }
[data-theme="light"] .tree .root { color: #fff; }
.tree ul { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; list-style: none; border-top: 1px solid var(--ink-muted); position: relative; }
.tree ul::before { content: ""; position: absolute; left: 22px; top: calc(var(--space-4) * -1); height: var(--space-4); border-left: 1px solid var(--ink-muted); }
.tree li { padding: 0.3rem 0.6rem; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.tree li.login { border-style: dashed; }
.tree .legend { margin: var(--space-3) 0 0; font-size: 0.8rem; color: var(--ink-muted); }

/* nav mapping */
.map { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-2) var(--space-3); align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.map .h { font-family: var(--font-mono); font-weight: 500; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-bottom: var(--space-1); }
.map .a, .map .b { padding: 0.3rem 0.6rem; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm); line-height: 1.2; }
.map .b { background: var(--surface-2); }
.map .none { border-style: dashed; color: var(--ink-muted); background: transparent; font-weight: 500; }
.map .eq { width: 30px; height: 1.5px; background: var(--ink-muted); }
.map .eq.gap { background: transparent; }

/* app screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: 620px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.shots figcaption { margin-top: var(--space-2); font-size: 0.82rem; line-height: 1.45; color: var(--ink-muted); }
.shots figcaption b { color: var(--ink); font-weight: 500; }

/* paper chart + table */
.bars { display: grid; gap: var(--space-3); }
.bars .row { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-3); align-items: center; }
.bars .row > span { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.bars .track { position: relative; height: 28px; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; }
.bars .fill { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; background: var(--ink-muted); color: var(--bg); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; }
.bars .win .fill { background: var(--accent); color: #0b0a09; }
.bars .axis { margin: var(--space-2) 0 0; font-size: 0.78rem; color: var(--ink-muted); }
.scroll { overflow-x: auto; }
.metrics { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.metrics th, .metrics td { padding: var(--space-2) var(--space-3); text-align: right; border-bottom: 1px solid var(--line); }
.metrics th:first-child, .metrics td:first-child { text-align: left; }
.metrics thead th { font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.metrics td { font-family: var(--font-mono); }
.metrics tr.win td, .metrics tr.win th { color: var(--accent); }
.metrics tbody th { font-weight: 500; }

.story-next { padding-top: var(--space-8); border-top: 1px solid var(--line); }
.story-next p { margin: 0 0 var(--space-2); }
.story-next a { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
.story-next a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .story-top { grid-template-columns: minmax(0, 1fr); }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .story-aside { position: static; display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-8); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
  .story-aside > div + div { margin-top: 0; }
}
@media (max-width: 640px) {
  .flow { flex-direction: column; }
  .flow > li { flex-direction: column; align-items: stretch; }
  .flow > li + li { padding-left: 0; padding-top: 28px; }
  .flow > li + li::before { left: 50%; top: 3px; width: 1.5px; height: 22px; }
  .flow > li + li::after { left: 50%; top: 16px; transform: translateX(-50%) rotate(135deg); }
  .fork, .stubs, .v-pair { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .shots figure { scroll-snap-align: start; }
  .bars .row { grid-template-columns: 100px 1fr; }
  .map { font-size: 0.85rem; }
  .map .eq { width: 14px; }
}
.results b span.u { display: inline; margin: 0 0 0 0.08em; font-size: 0.5em; color: inherit; max-width: none; line-height: 1; }

/* Contact: all 4 link cards in one row, using the full container width.
   The title and body keep their original 40rem measure. */
.contact__inner { max-width: none; }
.contact__title { max-width: 40rem; }
.contact__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .contact__cards { grid-template-columns: 1fr; }
}

/* BEES work card: header + text on the left, before/after stacked on the right, full height */
.work-card.v-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--space-7); align-items: center; }
.v-split .work-card__body { margin-bottom: 0; }
.v-split > .v-figure { margin: 0; }
.v-split > .v-figure > figcaption { font-size: 0.7rem; }
.v-split .v-pair { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
@media (max-width: 768px) {
  .work-card.v-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .v-split .v-pair { grid-template-columns: 1fr 1fr; }
}

.v-split .v-kit { max-width: none; }
/* kit drawing fills whatever height the text column sets, so no corner is left empty */
.v-split > .v-kit { align-self: stretch; display: flex; flex-direction: column; }
.v-split > .v-kit .v-art { position: relative; flex: 1 1 auto; min-height: 220px; }
.v-split > .v-kit .v-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 768px) { .v-split > .v-kit .v-art { flex: none; min-height: 0; aspect-ratio: 6 / 5; } }

/* ---------- click to zoom ---------- */
.zoomable { cursor: zoom-in; transition: filter 180ms var(--ease-out); }
.zoomable:hover { filter: brightness(1.08); }
.zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.zoom-source { visibility: hidden; }
.zoom-lock, .zoom-lock body { overflow: hidden; }
.zoom-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 7, 6, 0.84);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: zoom-out;
}
[data-theme="light"] .zoom-overlay { background: rgba(247, 243, 236, 0.88); }
.zoom-frame {
  position: fixed; overflow: hidden;
  border-radius: 10px; background: #0b0a09;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
  transform-origin: 0 0; will-change: transform;
}
.zoom-frame .zoom-media { display: block; width: 100%; height: 100%; object-fit: contain; }
.zoom-cap {
  position: fixed; left: 5vw; right: 5vw; margin: 0;
  text-align: center; font-family: var(--font-mono); font-size: var(--step--1);
  line-height: 1.5; color: var(--ink-muted); pointer-events: none;
}
.zoom-close {
  position: fixed; top: 18px; right: 18px; width: 42px; height: 42px;
  display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.zoom-close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- FuelADream: a drawn campaign meter in the empty side of the timeline ---------- */
.timeline__item--feature .timeline__card { grid-row: 1; border-color: var(--accent-dim); }
.timeline__item--feature .timeline__body + .timeline__body { margin-top: var(--space-3); }
.timeline__shot { grid-row: 1; margin: 0; width: min(100%, 19rem); align-self: start; }
.timeline__item--feature:nth-child(even) .timeline__shot { grid-column: 1; justify-self: end; }
.timeline__item--feature:nth-child(odd) .timeline__shot { grid-column: 2; justify-self: start; }
.v-fund .v-art { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.v-fund svg { display: block; width: 100%; height: auto; }
.fund-m { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.fund-d { font-family: var(--font-display); font-size: 66px; font-weight: 700; letter-spacing: -0.02em; }
.timeline__shot figcaption { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-muted); text-align: right; }
.timeline__item--feature:nth-child(odd) .timeline__shot figcaption { text-align: left; }
@media (max-width: 768px) {
  .timeline__item--feature:nth-child(n) .timeline__shot { width: min(100%, 17rem); margin-top: var(--space-3); justify-self: start; }
  .timeline__item--feature:nth-child(n) .timeline__shot figcaption { text-align: left; }
}

/* DeskPulse: the note only shows when the demo has an error to report */
.deskpulse__note:empty { display: none; }

/* DeskPulse: with the shorter copy, let the burst waveform take the spare height
   (the canvas redraws to its box through a ResizeObserver) instead of leaving a gap. */
#project-deskpulse .project-card__body { flex: 0 0 auto; }
#project-deskpulse .deskpulse { flex: 1 1 auto; }
#project-deskpulse .deskpulse__canvas { flex: 1 1 0; height: 0; min-height: 68px; }
