/* Graybook Labs: loaded after site.css (shared with Graybook Technologies and Ventures: fonts, grays, navbar,
   buttons, forms, footer). The top half is carried over from ventures.css (hero, section heads, companies, cards,
   the scroll-filled process line, FAQ); Labs-only parts follow at the end. */

:root { --ink: #17191D; --g1: #E1E4E8; --g2: #C3C8CF; --g3: #A9AEB5; --g4: #5B6067; --line: #D7DCE3; --soft: #3D434C; --ease: cubic-bezier(0.16, 1, 0.3, 1); }
.gv h2 { font-family: "Poppins", var(--font-inter); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; line-height: 1.12; }
.gv .eyebrow { font-family: var(--font-inter); color: var(--g4); letter-spacing: .14em; }
.gv .hero .eyebrow { color: #fff; }
.gv .band h2, .gv .hero h2, .gv .footer h2, .gv .next h2 { color: #fff; }
.gv .link-arrow { color: var(--ink); font-weight: 500; }
.gv main { overflow-x: clip; }
.gv .footer li > span { color: rgba(255, 255, 255, 0.7); font-size: 16px; }

/* ---------------- Hero: dark drifting grays (no video here), growth curves drawn behind ---------------- */
.gv-hero { background: #111316; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; border-radius: inherit; }
.hero-art path { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.4; }
/* the lines draw in left to right together, with a soft feathered edge (a moving gradient mask), as the copy fades up */
.hero-art { -webkit-mask-image: linear-gradient(90deg, #000 0 45%, transparent 55% 100%); mask-image: linear-gradient(90deg, #000 0 45%, transparent 55% 100%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0; animation: gvSweep 1.9s cubic-bezier(.45, 0, .2, 1) .15s forwards; }
.hero-art path:first-child { stroke: rgba(255, 255, 255, 0.38); stroke-width: 2; }
@keyframes gvSweep { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.gv-hero .hero-body { z-index: 5; }
.rise { opacity: 0; transform: translateY(26px); animation: gvRise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes gvRise { to { opacity: 1; transform: none; } }

.gv-hero.full .hero-body { align-items: center; padding-top: 140px; padding-bottom: 110px; }
.gv-hero-grid { display: grid; grid-template-columns: minmax(0, 860px); gap: 56px; align-items: center; width: 100%; }
.gv-hero-copy { will-change: transform, opacity; }
.gv-hero.full h1 { font-size: clamp(40px, 5vw, 76px); max-width: 15ch; }
.gv-hero .lead { max-width: 600px; font-size: 19px; }
.gv-stats { display: grid; gap: 26px; justify-items: start; }
.gv-stat { will-change: transform; display: flex; flex-direction: row; align-items: center; gap: 18px; }
.gv-stat.is-right { justify-self: end; }
.gv-stat b { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.gv-stat span { font-family: var(--font-inter); font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, 0.72); }
.gv-hero-sm { padding-bottom: 72px; }
.gv-hero-sm .hero-body { padding-top: 96px; }
@media (max-width: 960px) {
  .gv-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .gv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .gv-stat.is-right { justify-self: start; }
  .gv-stat b { font-size: 40px; }
  .gv-stat span { font-size: 13px; }
}
@media (max-width: 560px) { .gv-stats { grid-template-columns: 1fr; } }

.gv .hero .btn-ghost, .gv .band .btn-ghost { transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
.gv .hero .btn-ghost:hover, .gv .hero .btn-ghost:focus-visible, .gv .band .btn-ghost:hover, .gv .band .btn-ghost:focus-visible { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------------- Closing bands: coast video under the drifting gray gradient (same as the hero and the Technologies site) ---------------- */
.band-section .hero-gradient { z-index: 1; border-radius: inherit; }

/* ---------------- Section heads ---------------- */
/* Section headings and their intro text fade up once as they come into view (ventures.js adds .fu, then .is-in) */
.js-motion .fu { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: var(--fd, 0s); }
.js-motion .fu.is-in { opacity: 1; transform: none; }
.gv-split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: end; margin-bottom: 48px; }
.gv-split-head h2 { font-size: clamp(32px, 3.4vw, 48px); }
.gv-split-head p { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 520px; }
@media (max-width: 860px) { .gv-split-head { grid-template-columns: 1fr; gap: 16px; } }

/* ---------------- Stage rows (Approach) share these ---------------- */
.lc-count { font-family: var(--font-inter); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g4); margin-bottom: 14px; }
.stage-row h3 { font-family: "Poppins", var(--font-inter); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; color: var(--ink); margin-bottom: 14px; }
.lc-brings { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-brings li { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--g1); color: var(--ink); font-family: var(--font-inter); font-size: 13.5px; font-weight: 500; }
.lcm-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.lcm-ico svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lcm-check { margin: 14px 0 12px; font-size: 15px; color: var(--g4); }
.lcm-check b { color: var(--ink); }

/* ---------------- The three companies (dnacapital "three divisions") ---------------- */
.gv-cos { overflow: hidden; overflow: clip; }
.cos-h { font-size: clamp(28px, 2.8vw, 40px); max-width: 980px; margin-bottom: 64px; }
.cos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.co { display: flex; flex-direction: column; align-items: flex-start; will-change: transform, opacity; }
.co-logo-link { display: flex; justify-content: center; width: 100%; padding: 28px 0 36px; margin-bottom: 26px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.co-logo-link:hover { text-decoration: none; color: var(--ink); }
a.co-logo-link:hover .co-logo { opacity: .7; }
.co-logo { display: inline-flex; align-items: center; gap: 16px; transition: opacity .25s ease, filter 1.3s ease .25s; }
.co-logo img { width: 58px; height: 58px; padding: 12px; border-radius: 14px; background: var(--ink); }
.co-logo > span { display: grid; gap: 6px; line-height: 1; }
.co-logo b { font-family: "Poppins", var(--font-inter); font-weight: 600; font-size: 27px; letter-spacing: .12em; color: var(--ink); }
.co-logo i { font-style: normal; font-family: var(--font-inter); font-weight: 600; font-size: 12.5px; letter-spacing: .26em; color: var(--g4); }
.co-body p { font-size: 18px; line-height: 1.6; color: var(--soft); }
.co-body .link-arrow { display: inline-block; margin-top: 16px; }
.cos-foot { margin-top: 56px; font-size: 18px; color: var(--soft); }
/* the DNA motion: replays every time the row scrolls back into view */
.js-motion .co { opacity: 0; }
.js-motion .co.from-left { transform: translateX(-250px); transition: transform 1.3s var(--ease), opacity 1.1s ease; }
.js-motion .co.from-right { transform: translateX(250px); transition: transform 1.3s var(--ease), opacity 1.1s ease; }
.js-motion .co.from-scale { transform: scale(0); transition: transform .8s var(--ease), opacity .6s ease; }
.js-motion .co .co-logo { filter: blur(14px); }
.js-motion .co .co-body { opacity: 0; transform: translateY(18px); transition: opacity .7s ease .45s, transform .9s var(--ease) .45s; }
.js-motion .co.is-in { opacity: 1; transform: none; }
.js-motion .co.is-in .co-logo { filter: none; }
.js-motion .co.is-in .co-body { opacity: 1; transform: none; }
@media (max-width: 960px) { .cos { grid-template-columns: 1fr; gap: 40px; } .co-logo-link { justify-content: flex-start; padding: 8px 0 24px; } }

/* ---------------- Where we're looking ---------------- */
.theses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gv-focus { padding: 72px 0 64px; }
.gv-focus + .gv-process { padding-bottom: 72px; }
.gv-focus .gv-split-head, .gv-focus + .gv-process .gv-split-head { margin-bottom: 30px; align-items: center; }
.gv-focus .gv-split-head h2, .gv-focus + .gv-process .gv-split-head h2 { font-size: clamp(30px, 2.8vw, 40px); }
.gv-focus .gv-split-head p, .gv-focus + .gv-process .gv-split-head p { font-size: 17px; }
.thesis { padding: 28px 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.icon-tile.gray { width: 48px; height: 48px; border-radius: 12px; background: #ECEEF1; }
.icon-tile.gray svg { stroke: var(--ink); }
.thesis h3 { font-family: var(--font-inter); font-weight: 600; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.thesis p { font-size: 16px; line-height: 1.55; color: var(--soft); }
/* the cards are there from the start; only the text inside fades up as each card scrolls into view */
.js-motion .th-up { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: calc(var(--ci, 0) * 110ms + var(--li, 0) * 90ms); }
.js-motion .thesis p.th-up { --li: 1; }
.js-motion .thesis.is-in .th-up { opacity: 1; transform: none; }
@media (max-width: 960px) { .theses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .theses { grid-template-columns: 1fr; } }

/* ---------------- How we invest: a line fills as you scroll ---------------- */
.process { --p: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; padding-top: 8px; }
.process::before, .process::after { content: ""; position: absolute; left: 22px; right: calc(25% - 22px); top: 29px; height: 3px; border-radius: 2px; background: var(--g1); }
.process::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.process li { position: relative; z-index: 1; }
.proc-dot { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--g2); font-family: var(--font-inter); font-weight: 600; color: var(--g4); transition: background .35s ease, border-color .35s ease, color .35s ease; }
.process li.is-on .proc-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.process h3 { font-family: var(--font-inter); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.process p { font-size: 16.5px; line-height: 1.6; color: var(--soft); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before, .process::after { left: 20.5px; right: auto; top: 30px; bottom: 30px; width: 3px; height: auto; }
  .process::after { transform-origin: top; transform: scaleY(var(--p)); }
  .process li { padding-left: 68px; }
  .proc-dot { position: absolute; left: 0; top: 0; }
}

/* ---------------- Approach page: stage rows ---------------- */
.stage-rows { border-top: 1px solid var(--line); }
.stage-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 320px); gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.stage-num { display: flex; align-items: center; gap: 16px; align-self: start; }
.stage-num b { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 28px; color: var(--g3); }
.stage-row p:not(.lc-count):not(.lcm-check) { font-size: 17.5px; line-height: 1.6; color: var(--soft); }
.stage-side .lcm-check { margin-top: 4px; }
@media (max-width: 860px) { .stage-row { grid-template-columns: 1fr; gap: 18px; } }
.faq h2 { font-size: clamp(32px, 3.4vw, 48px); }
.faq-more { margin-top: 16px; color: var(--soft); }

/* ---------------- Reduced motion: final states, nothing moves ---------------- */
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .hero-art { animation: none; -webkit-mask-image: none; mask-image: none; }
}


/* =====================================================================================================
   Graybook Labs
   ===================================================================================================== */
.gl .brand-name { white-space: nowrap; }

/* ---------------- Small diagrams (menu, cards, capability rows): white lines on the dark gray panel ---------------- */
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.viz .v-edge { stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.2; }
.viz .v-lit { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.viz .v-node { fill: #2A2D33; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.5; }
.viz .v-node.is-on { fill: #fff; stroke: #fff; }
.viz .v-doc { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.3; }
.viz .v-doc.is-on { fill: rgba(255, 255, 255, 0.9); stroke: #fff; }
.viz .v-db { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.5; }
.viz .v-model { fill: rgba(255, 255, 255, 0.1); stroke: #fff; stroke-width: 1.6; }
.viz .v-spark { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.viz .v-tok { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.2; }
.viz .v-tok.is-on { fill: #fff; stroke: #fff; }
.viz .v-tok.is-alt { fill: rgba(255, 255, 255, 0.5); stroke: rgba(255, 255, 255, 0.7); }
.viz .v-tag { fill: #fff; }
.viz .v-tag.alt { fill: rgba(255, 255, 255, 0.5); }
/* ---------------- Diagram loops (4.8 s): play while the card/row is on screen (labs.js .is-playing), on hover,
   and in the open menu feature. Every part shares the period, so the phases stay in step lap after lap. ---------------- */
.viz { --cyc: 4.8s; }
.viz .a-draw { animation: vDraw var(--cyc) linear var(--t, 0s) infinite both; }
.viz .a-node { transform-box: fill-box; transform-origin: center; animation: vNode var(--cyc) ease var(--t, 0s) infinite both; }
.viz .a-tw { animation: vTw 2.6s ease-in-out var(--t, 0s) infinite both; }
.viz .a-flash { animation: vFlash var(--cyc) ease var(--t, 0s) infinite both; }
.viz .a-hold { animation: vHold var(--cyc) ease var(--t, 0s) infinite both; }
.viz .a-glow { animation: vGlow var(--cyc) ease var(--t, 0s) infinite both; }
.viz .a-tag { transform-box: fill-box; transform-origin: 50% 100%; animation: vTag var(--cyc) var(--ease) var(--t, 0s) infinite both; }
.viz .a-spin { transform-box: fill-box; transform-origin: center; animation: vSpin var(--cyc) var(--ease) 1.2s infinite both; }
.viz .v-model-on { fill: rgba(255, 255, 255, 0.85); }
.viz * { animation-play-state: paused !important; }
.is-playing .viz *, .cap-card:hover .viz *, .mega-feat.is-on .viz * { animation-play-state: running !important; }
@keyframes vDraw { 0% { stroke-dashoffset: 1; opacity: 1; } 30% { stroke-dashoffset: 0; } 76% { stroke-dashoffset: 0; opacity: 1; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes vNode { 0%, 3% { fill: #2A2D33; stroke: rgba(255, 255, 255, 0.5); transform: scale(1); } 9% { fill: #fff; stroke: #fff; transform: scale(1.45); } 15%, 74% { fill: #fff; stroke: #fff; transform: scale(1); } 88%, 100% { fill: #2A2D33; stroke: rgba(255, 255, 255, 0.5); transform: scale(1); } }
@keyframes vTw { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes vFlash { 0%, 100% { fill: rgba(255, 255, 255, 0.06); } 6% { fill: rgba(255, 255, 255, 0.7); } 15% { fill: rgba(255, 255, 255, 0.06); } }
@keyframes vHold { 0%, 24% { opacity: 0; } 32%, 78% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes vGlow { 0%, 100% { opacity: .55; } 12%, 60% { opacity: 1; } }
@keyframes vTag { 0%, 22% { opacity: 0; transform: translateY(5px) scale(.6); } 32%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
@keyframes vSpin { 0%, 20% { transform: rotate(0); } 40%, 100% { transform: rotate(90deg); } }
.gl .mega-visual.is-lab svg { width: 78%; }
.gl .mega-feat .mega-visual { flex: none; height: 112px; aspect-ratio: auto; }

/* ---------------- Home: what we build (three cards) ---------------- */
.cap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cap-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; background: #fff; overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .25s ease, background-color .25s ease; }
.cap-card:hover, .cap-card:focus-visible { border-color: var(--g4); background: #F7F8FA; color: var(--ink); text-decoration: none; }
.cap-viz { display: grid; place-items: center; aspect-ratio: 16 / 9; margin: 10px 10px 0; border-radius: 16px; background: linear-gradient(135deg, #111316, #3A3E44 55%, #5B6067); }
.cap-viz .viz { width: 70%; }
.cap-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.cap-n { font-family: var(--font-inter); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--g4); margin-bottom: 10px; }
.cap-card h3 { font-family: var(--font-inter); font-weight: 600; font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.cap-card p { font-size: 16.5px; line-height: 1.55; color: var(--soft); margin-bottom: 22px; }
.cap-more { margin-top: auto; font-family: var(--font-inter); font-weight: 500; font-size: 15.5px; }
.cap-more span { display: inline-block; transition: transform .2s ease; }
.cap-card:hover .cap-more span { transform: translateX(4px); }
.js-motion .cap-body > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: calc(var(--ci, 0) * 110ms + var(--li, 0) * 80ms); }
.js-motion .cap-body > h3 { --li: 1; } .js-motion .cap-body > p { --li: 2; } .js-motion .cap-body > .cap-more { --li: 3; }
.js-motion .cap-card.is-in .cap-body > * { opacity: 1; transform: none; }
@media (max-width: 960px) { .cap-cards { grid-template-columns: 1fr; } .cap-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .cap-viz { margin: 10px; aspect-ratio: auto; } }
@media (max-width: 620px) { .cap-card { display: flex; } .cap-viz { margin: 10px 10px 0; aspect-ratio: 16 / 9; } }

/* ---------------- Vig: copy on the left, the conversation on the right ---------------- */
.gl-vig { background: var(--off-white); }
.gl-vig-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.gl-vig-copy h2 { font-size: clamp(32px, 3.4vw, 48px); margin: 6px 0 20px; }
.gl-ticks { list-style: none; margin: 0 0 32px; display: grid; gap: 12px; }
.gl-ticks li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.gl-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317191D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 960px) { .gl-vig-grid { grid-template-columns: 1fr; gap: 40px; } }

.vd { display: flex; flex-direction: column; height: 600px; border-radius: 24px; background: #17191D; color: #f2f2ef; font-family: var(--font-inter); box-shadow: 0 30px 70px rgba(17, 19, 22, 0.25); overflow: hidden; }
.vd-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.vd-head img { width: 26px; height: 26px; }
.vd-head b { font-size: 15.5px; font-weight: 600; }
.vd-head span { font-size: 13px; color: rgba(242, 242, 239, 0.55); }
.vd-live { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #6fd6c4; box-shadow: 0 0 0 4px rgba(111, 214, 196, 0.15); }
.vd-thread { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 22px 20px 8px; display: flex; flex-direction: column; gap: 16px; transition: opacity .4s ease; }
.vd-thread::-webkit-scrollbar { display: none; }
.vd-thread.is-out { opacity: 0; }
.vd-msg { font-size: 15px; line-height: 1.6; }
.vd-msg.is-user { align-self: flex-end; max-width: 82%; padding: 10px 15px; border-radius: 16px 16px 4px 16px; background: #2E3137; color: #fff; }
.vd-msg.is-vig { display: flex; gap: 12px; align-items: flex-start; }
.vd-av { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.vd-ans { min-width: 0; color: rgba(242, 242, 239, 0.92); }
.vd-ans p + p, .vd-ans .vd-math + p { margin-top: 10px; }
.vd-steps { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; font-size: 13.5px; color: rgba(242, 242, 239, 0.55); }
.vd-steps li { display: flex; align-items: center; gap: 9px; }
.vd-steps i { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: #e5e7e2; animation: vdSpin .8s linear infinite; }
.vd-steps li.is-done i { animation: none; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd6c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
@keyframes vdSpin { to { transform: rotate(360deg); } }
.vd-math { margin-top: 10px; padding: 10px 13px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 13.5px; line-height: 1.5; color: #fff; overflow-wrap: anywhere; }
.vd-src { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vd-src li { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); font-size: 12.5px; color: rgba(242, 242, 239, 0.7); }
.vd-pop { animation: vdPop .35s var(--ease) both; }
@keyframes vdPop { from { opacity: 0; transform: translateY(8px); } }
.vd-composer { display: flex; align-items: center; gap: 12px; margin: 10px 14px 14px; padding: 10px 10px 10px 16px; min-height: 52px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.22); }
.vd-input { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; color: #fff; }
.vd-input:empty::before { content: attr(data-ph); color: rgba(242, 242, 239, 0.4); }
.vd-input.is-typing::after { content: ""; display: inline-block; width: 2px; height: 17px; margin-left: 1px; vertical-align: -3px; background: #fff; animation: caret 1s steps(1) infinite; }
.vd-send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #2E3137; transition: background-color .2s ease; }
.vd-send svg { width: 16px; height: 16px; fill: none; stroke: #8b8f95; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease; }
.vd.is-ready .vd-send { background: #ecece8; }
.vd.is-ready .vd-send svg { stroke: #101114; }
.vd-note { margin-top: 12px; font-size: 13.5px; color: var(--g4); text-align: right; }
@media (max-width: 620px) { .vd { height: 640px; } .vd-msg { font-size: 14.5px; } }

/* ---------------- Expertise cards: logo tile + text ---------------- */
.xp-logo { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px; background: #ECEEF1; }
.xp-logo svg { width: 26px; height: 26px; fill: var(--ink); }

/* ---------------- Stack marquee ---------------- */
.gl-stack .brands-label { margin-bottom: 32px; }
.brand-logo .glyph { height: 30px; width: 30px; fill: #000; opacity: .55; }
.brand-logo.stack-dell .glyph, .brand-logo.stack-cisco .glyph { height: 40px; width: 40px; }
.brand-logo img[src$="coreweave.svg"] { height: 24px; }
.brand-logo img[src$="cumulus.png"] { height: 30px; }
.brand-logo img[src$="microsoft.svg"] { height: 28px; }

/* ---------------- Capabilities page: one row per discipline ---------------- */
.cap-rows { display: grid; gap: 20px; }
.cap-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "viz copy" "viz pts"; gap: 12px 56px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; scroll-margin-top: 24px; }
.cap-row:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); grid-template-areas: "copy viz" "pts viz"; }
.cap-row-viz { grid-area: viz; display: grid; place-items: center; min-height: 300px; border-radius: 16px; background: linear-gradient(135deg, #111316, #3A3E44 55%, #5B6067); }
.cap-row-viz .viz { width: 66%; }
.cap-row-copy { grid-area: copy; padding-top: 12px; }
.cap-row-copy .lc-count b { color: var(--ink); }
.cap-row-copy h2 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 16px; }
.cap-row-copy p:not(.lc-count) { font-size: 17.5px; line-height: 1.6; color: var(--soft); }
.cap-points { grid-area: pts; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; padding: 18px 0 8px; border-top: 1px solid var(--line); }
.cap-points li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.cap-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--g3); }
@media (max-width: 960px) {
  .cap-row, .cap-row:nth-child(even) { grid-template-columns: 1fr; grid-template-areas: "viz" "copy" "pts"; gap: 16px; padding: 12px 12px 24px; }
  .cap-row-copy, .cap-points { padding-left: 12px; padding-right: 12px; }
  .cap-row-viz { min-height: 220px; }
}
@media (max-width: 620px) { .cap-points { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .viz * { animation: none !important; }
  .viz .a-hold, .viz .a-tag { opacity: 1; }
  .vd-steps i { animation: none; }
}
.gv-blurb { font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 560px; margin-bottom: 28px; }


/* ---------------- Menu: the feature card grows with its tallest text, so the button always stays inside ---------------- */
.gl .mega-feature { contain: none; align-self: start; }
.gl .mega-feat { height: auto; }
.gl .mega-feat p { margin: 4px 0 14px; }

/* ---------------- Footer: Contact heading under Get in touch ---------------- */
.footer .footer-h2 { margin-top: 28px; }

/* ---------------- Contact: the need pills fit inside the card ---------------- */
.gl .svc-pick { flex-wrap: wrap; }
.gl .svc-pick button { flex: 0 1 auto; }

/* ---------------- Vig, end to end (clinia.com "Patient Context" style) ---------------- */
.gl-flow { padding-bottom: 72px; }
.gl-center-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.gl-center-head h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 18px; }
.gl-center-head p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 640px; margin: 0 auto; }
.vf { --mono: var(--font-mono); }
.vf-layers, .vf-stage { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.05fr) 56px minmax(0, 1fr); }
.vf-layers > :nth-child(2) { grid-column: 3; } .vf-layers > :nth-child(3) { grid-column: 5; }
.vf-layer { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(17, 19, 22, 0.05); font-family: var(--mono); }
.vf-layer.is-mid { background: #F1F3F5; }
.vf-layer b { font-size: 13.5px; font-weight: 500; letter-spacing: .06em; color: var(--ink); }
.vf-layer b span { color: var(--g3); margin: 0 4px; }
.vf-layer > span { font-family: var(--font-inter); font-size: 13px; color: var(--g4); }
.vf-stage { margin-top: 40px; height: 470px; align-items: center; }
.vf-col { height: 100%; min-width: 0; display: flex; align-items: center; }
.vf-field { width: 100%; height: 100%; overflow: visible; font-family: var(--mono); }

/* the field */
.vf-dot { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .6s ease calc(var(--i) * 14ms), transform .6s var(--ease); }
.vf.is-dots .vf-dot { opacity: .9; animation: vfFloat var(--fd) ease-in-out infinite alternate; }
.vf.is-select .vf-dot { opacity: .45; }
@keyframes vfFloat { to { translate: var(--dx) var(--dy); } }
.vf-line { fill: none; stroke: var(--g3); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease calc(var(--k, 0) * 120ms), stroke .4s ease; }
.vf.is-sources .vf-line:not(.vf-line-pick):not(.vf-line-out) { stroke-dashoffset: 0; }
.vf.is-select .vf-line-pick, .vf.is-select .vf-line-out { stroke-dashoffset: 0; }
.vf.is-select .vf-line-pick, .vf.is-select .vf-line-out { stroke: var(--ink); stroke-width: 1.6; }
.vf-src { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease calc(var(--k) * 120ms), transform .6s var(--ease) calc(var(--k) * 120ms); }
.vf.is-sources .vf-src { opacity: 1; transform: none; }
.vf-src rect { fill: #fff; stroke: var(--line); }
.vf-src text { font-size: 10.5px; letter-spacing: .08em; fill: var(--g4); }
.vf-src circle { fill: var(--g3); stroke: #fff; stroke-width: 3; }
.vf-src:nth-of-type(1) circle { fill: var(--ink); }
.vf-pick { pointer-events: none; }
.vf-pick-dot { fill: var(--g3); transform-box: fill-box; transform-origin: center; transition: fill .4s ease, transform .5s var(--ease); opacity: 0; }
.vf.is-dots .vf-pick-dot { opacity: 1; }
.vf.is-select .vf-pick-dot { fill: var(--ink); transform: scale(1.6); }
.vf-pick-halo { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.vf.is-select .vf-pick-halo { animation: vfHalo 1.8s ease-out infinite; }
@keyframes vfHalo { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
.vf-pick-tag { opacity: 0; transform: translateY(6px); transition: opacity .4s ease .15s, transform .5s var(--ease) .15s; }
.vf.is-select .vf-pick-tag { opacity: 1; transform: none; }
.vf-pick-tag rect { fill: var(--ink); }
.vf-pick-tag text { fill: #fff; font-size: 10px; letter-spacing: .08em; }
.vf-join { fill: var(--ink); opacity: 0; transition: opacity .4s ease .6s; }
.vf.is-sources .vf-join { opacity: 1; }

/* links between the panels, with the packet that runs along them */
.vf-link { position: relative; height: 100%; }
.vf-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--g3); }
.vf-link::after { content: ""; position: absolute; right: -3px; top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.vf-pk { position: absolute; left: 0; top: calc(50% - 5px); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px rgba(23, 25, 29, 0.12); opacity: 0; }

/* the engine panel */
.vf-panel { width: 100%; height: 400px; display: flex; flex-direction: column; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(17, 19, 22, 0.1); overflow: hidden; }
.vf-bar { position: relative; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; background: #17191D; color: rgba(255, 255, 255, 0.86); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; }
.vf-bar i { width: 7px; height: 7px; border-radius: 50%; background: #6fd6c4; }
.vf-bar em { margin-left: auto; font-style: normal; color: rgba(255, 255, 255, 0.4); }
.vf-bar-a, .vf-bar-b { transition: opacity .35s ease; }
.vf-bar-b { position: absolute; left: 33px; opacity: 0; }
.vf.is-req .vf-bar-a { opacity: 0; } .vf.is-req .vf-bar-b { opacity: 1; }
.vf-views { position: relative; flex: 1; min-height: 0; }
.vf-graph, .vf-req { position: absolute; inset: 0; transition: opacity .45s ease, transform .5s var(--ease); }
.vf-graph { width: 100%; height: 100%; padding: 8px; font-family: var(--mono); opacity: 0; }
.vf.is-graph .vf-graph { opacity: 1; }
.vf.is-req .vf-graph { opacity: 0; transform: scale(.97); }
.vf-core circle { fill: #17191D; }
.vf-core text { fill: #fff; font-size: 16px; font-weight: 600; font-family: var(--font-inter); }
.vf-core text.sm { font-size: 9.5px; font-weight: 400; fill: rgba(255, 255, 255, 0.7); font-family: var(--mono); }
.vf-core { transform-box: fill-box; transform-origin: center; transform: scale(.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s ease; }
.vf.is-graph .vf-core { transform: none; opacity: 1; }
.vf-gl { stroke: var(--g2); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s ease calc(.25s + var(--k) * 140ms); }
.vf.is-graph .vf-gl { stroke-dashoffset: 0; }
.vf-chip { opacity: 0; transition: opacity .4s ease calc(.45s + var(--k) * 140ms); }
.vf.is-graph .vf-chip { opacity: 1; }
.vf-chip rect { fill: #F4F5F7; stroke: var(--line); }
.vf-chip circle { fill: var(--g4); }
.vf-chip:nth-of-type(2) circle, .vf-chip:nth-of-type(3) circle { fill: var(--ink); }
.vf-chip text { font-size: 10px; letter-spacing: .05em; fill: var(--ink); }
.vf-req { padding: 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink); opacity: 0; pointer-events: none; }
.vf.is-req .vf-req { opacity: 1; }
.vf-step { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s var(--ease); }
.vf-step.on { opacity: 1; transform: none; }
.vf-method b { display: inline-block; padding: 1px 7px; margin-right: 6px; border-radius: 4px; background: #17191D; color: #fff; font-weight: 500; }
.vf-json { margin: 10px 0 14px; padding: 10px 12px; border-radius: 8px; background: #F4F5F7; border: 1px solid var(--line); font: inherit; font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vf-json .k { color: var(--g4); } .vf-json .s { color: var(--ink); font-weight: 500; }
.vf-sub { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--g4); margin-bottom: 6px; }
.vf-calls { list-style: none; display: grid; gap: 6px; }
.vf-calls li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 11.5px; }
.vf-calls li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--g4); }
.vf-calls li b { color: var(--ink); font-weight: 600; }
.vf-calls li em { font-style: normal; color: var(--g4); font-size: 11px; }
.vf-calls li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--g2); border-top-color: var(--ink); animation: vdSpin .8s linear infinite; }
.vf-calls li.done i { animation: none; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317191D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.vf-ok { margin-top: 12px; font-size: 11.5px; color: var(--g4); }
.vf-ok b { color: #1f8f7e; font-weight: 600; }

/* the Vig chat (same look as the Vig demo) */
.vf-chat { width: 100%; height: 440px; }
.vf-chat .vd-thread { padding: 18px 16px 6px; gap: 12px; }
.vf-chat .vd-msg { font-size: 14px; }
.vf-chat .vd-math { font-size: 12px; }
.vd-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.12); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: rgba(242, 242, 239, 0.6); }
.vd-tools svg { width: 13px; height: 13px; fill: none; stroke: #6fd6c4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vd-tools em { margin-left: auto; font-style: normal; color: rgba(242, 242, 239, 0.4); }
.vf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1100px) { .vf-layers, .vf-stage { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1.05fr) 32px minmax(0, 1fr); } .vf-layer > span { display: none; } }
@media (max-width: 960px) {
  .vf-layers { display: none; }
  .vf-stage { grid-template-columns: 1fr; height: auto; gap: 0; }
  .vf-col { height: auto; justify-content: center; }
  .vf-left { height: 340px; }
  .vf-link { height: 44px; width: 100%; }
  .vf-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed var(--g3); }
  .vf-link::after { right: auto; left: calc(50% - 3px); top: auto; bottom: -3px; }
  .vf-pk { left: 50%; top: 0; }
  .vf-panel { height: 380px; max-width: 520px; margin: 0 auto; }
  .vf-chat { max-width: 520px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-dot, .vf.is-dots .vf-dot { animation: none; }
  .vf-pick-halo { display: none; }
}

/* ---------------- Start building today (clinia.com) ---------------- */
.gl-start-h { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 32px; }
.sb { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.sb-code { position: relative; height: 380px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, #3A3E44 0%, #17191D 55%, #111316 100%); }
.sb-win { position: absolute; left: 60px; top: 58px; right: -1px; bottom: -1px; border-radius: 12px 0 0 0; border: 1px solid rgba(255, 255, 255, 0.1); background: #1B1D21; overflow: hidden; display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; }
.sb-tabs { flex: none; position: relative; z-index: 1; background: #1B1D21; border-bottom: 1px solid rgba(255, 255, 255, 0.06); display: flex; gap: 34px; padding: 18px 20px 8px 58px; color: #7f95b8; white-space: nowrap; overflow: hidden; }
.sb-tabs span { opacity: .55; } .sb-tabs .on { opacity: 1; }
.sb-scroll { flex: 1; min-height: 0; overflow: hidden; }
.sb-lines { list-style: none; padding: 6px 0 20px; animation: sbScroll 26s linear infinite alternate; }
.sb-lines li { display: flex; white-space: pre; }
.sb-lines .ln { flex: none; width: 46px; padding-right: 14px; text-align: right; color: #4d535c; user-select: none; }
.sb-lines code { font: inherit; color: #e6e6e3; }
@keyframes sbScroll { 0%, 18% { transform: translateY(0); } 82%, 100% { transform: translateY(-190px); } }
.sb-code .t-kw { color: #c4a7ff; } .sb-code .t-type { color: #82aaff; } .sb-code .t-num { color: #f7a26c; } .sb-code .t-str { color: #b5d98a; }
.sb-code .t-com { color: #6b717a; font-style: italic; } .sb-code .t-fn { color: #7fd4ff; } .sb-code .t-call { color: #e6a0a0; } .sb-code .t-series { color: #ffcb6b; }
.sb-code .t-col { color: #ff9e64; } .sb-code .t-atom { color: #f07178; } .sb-code .t-op { color: #89ddff; } .sb-code .t-var { color: #e6e6e3; }
.sb-card { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; height: 380px; padding: 26px 26px 28px; border-radius: 20px; background: #E6E9EC; overflow: hidden; color: var(--ink); text-decoration: none; }
.sb-card:hover { color: var(--ink); text-decoration: none; }
.sb-glow { position: absolute; z-index: -1; inset: -30%; background: radial-gradient(40% 40% at 70% 20%, rgba(255, 255, 255, 0.85), transparent 70%), radial-gradient(45% 45% at 20% 75%, rgba(169, 174, 181, 0.55), transparent 70%); opacity: .7; transition: opacity .5s ease, transform 1.2s var(--ease); }
.sb-card:hover .sb-glow { opacity: 1; transform: translate(-4%, 4%) scale(1.05); }
.sb-ico { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sb-card b { margin-top: auto; font-family: var(--font-inter); font-weight: 500; font-size: 21px; }
.sb-text { margin: 6px 0 18px; font-size: 15px; color: var(--soft); }
.sb-btn { display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 5px 0 14px; border-radius: 8px; background: rgba(23, 25, 29, 0.08); font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transition: background-color .25s ease; }
.sb-arr { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #17191D; }
.sb-arr svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.sb-card:hover .sb-btn { background: rgba(23, 25, 29, 0.14); }
.sb-card:hover .sb-arr svg { transform: translateX(2px); }
@media (max-width: 1100px) { .sb { grid-template-columns: 1fr 1fr; } .sb-code { grid-column: 1 / -1; } }
@media (max-width: 620px) { .sb { grid-template-columns: 1fr; } .sb-card { height: 260px; } .sb-code { height: 320px; } .sb-win { left: 20px; top: 24px; } .sb-tabs { padding-left: 20px; } }
@media (prefers-reduced-motion: reduce) { .sb-lines { animation: none; } }

/* ---------------- Nov 13 pass 3 ---------------- */
/* What we build: text only */
.cap-card .cap-body { padding: 32px 30px 30px; }
.js-motion .cap-body > * { opacity: 1; transform: none; transition: none; }
.cap-cards .cap-card { min-height: 240px; }
@media (max-width: 960px) { .cap-card { display: flex; } }
/* Vig flow: no layer cards, no panel bar; the picked dot hides while its node stands in for it */
.vf-stage { margin-top: 0; }
.vf-dot.is-picked { visibility: hidden; }
.vf-panel { height: 420px; }
.vf-graph { padding: 14px; }
.vf-core text.sym { font-size: 20px; font-weight: 600; fill: #fff; font-family: var(--font-inter); }
.vf-chip.is-key circle { fill: var(--ink); }
.vf-chip:nth-of-type(2) circle, .vf-chip:nth-of-type(3) circle { fill: var(--g4); }
.vf-chip.is-key circle { fill: var(--ink); }
.vf-note { margin-top: 18px; }
/* Start building: the code sits still; the two cards stack on the right */
.sb { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.sb-lines { animation: none; }
.sb-stack { display: grid; gap: 20px; }
.sb-stack .sb-card { height: 180px; padding: 22px 24px 22px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; align-items: end; column-gap: 16px; }
.sb-stack .sb-ico { grid-column: 1; grid-row: 1; }
.sb-stack .sb-card b { grid-column: 1 / -1; grid-row: 2; white-space: nowrap; margin: 0; align-self: end; }
.sb-stack .sb-text { grid-column: 1; grid-row: 3; margin: 4px 0 0; }
.sb-stack .sb-btn { grid-column: 2; grid-row: 3; }
@media (max-width: 1100px) { .sb { grid-template-columns: 1fr; } .sb-stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .sb-stack { grid-template-columns: 1fr; } .sb-stack .sb-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; height: 220px; } .sb-stack .sb-btn { grid-column: 1; grid-row: 4; margin-top: 14px; justify-self: start; } }
.cap-cards .cap-card p { font-size: 16px; }

/* ---------------- Nov 13 pass 4 ---------------- */
/* Two dot fields: horizontal on desktop, vertical (sources along the top, lines running down) on phones */
.vf-field { display: block; }
.vf-field.is-v { display: none; }
.vf-field.is-v .vf-src text { font-size: 9.5px; letter-spacing: .06em; }
/* Every join sits on the same pixel line: the field's out-line is at exactly half its height (desktop) or
   width (phones), and the dashed link and its end dot are centred on that line, not offset by their border. */
.vf-link::before { top: calc(50% - .75px); }
.vf-link::after { top: calc(50% - 3.5px); right: -3.5px; }
@media (max-width: 960px) {
  .vf-field.is-h { display: none; }
  .vf-field.is-v { display: block; width: 100%; height: auto; max-width: 440px; margin: 0 auto; }
  .vf-left { height: auto; }
  .vf-link::before { top: 0; left: calc(50% - .75px); }
  .vf-link::after { top: auto; right: auto; bottom: -3.5px; left: calc(50% - 3.5px); }
  .vf-pk { margin-top: -5px; }
}

/* Start building, phones: the two cards side by side under the code */
@media (max-width: 700px) {
  .sb-stack { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sb-stack .sb-card { display: flex; flex-direction: column; align-items: flex-start; height: 210px; padding: 18px 16px; }
  .sb-stack .sb-card b { margin-top: auto; align-self: flex-start; white-space: normal; font-size: 17px; line-height: 1.25; }
  .sb-stack .sb-text { display: none; }
  .sb-stack .sb-btn { margin-top: 14px; height: 36px; gap: 8px; padding: 0 4px 0 10px; font-size: 11px; letter-spacing: .05em; }
  .sb-stack .sb-arr { width: 26px; height: 26px; }
  .sb-stack .sb-btn .sb-the { display: none; }
}
