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

: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; }
}


/* ---------------- 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 ---------------- */
.gc .mega-feature { contain: none; align-self: start; }
.gc .mega-feat { height: auto; }
.gc .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 ---------------- */
.gc .svc-pick { flex-wrap: wrap; }
.gc .svc-pick button { flex: 0 1 auto; }



/* =====================================================================================================
   Graybook Capital (Nov 13 pass 2: no cube icons, no dot map, no status dots; text-led cards)
   ===================================================================================================== */
.gc .brand-name { white-space: nowrap; }
.gc-center-h { text-align: center; font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 40px; }

/* Menu feature: a big number instead of a picture */
.gc .mega-num { display: block; font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.02em; color: #A9AEB5; }

/* ---------------- Hero: copy only ---------------- */
.gc-hero.full .hero-body { align-items: center; padding-top: 140px; padding-bottom: 110px; }
.gc-hero-grid { width: 100%; max-width: 860px; }
.gc-hero.full h1 { font-size: clamp(42px, 5vw, 76px); max-width: 14ch; }
.gc-hero .lead { max-width: 600px; font-size: 19px; }

/* ---------------- Who we are (Jump: the big number) ---------------- */
.gc-who-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.gc-who-big { display: grid; gap: 4px; }
.gc-zero { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: clamp(120px, 14vw, 220px); line-height: .9; letter-spacing: -0.04em; color: var(--ink); }
.gc-who-big > span { max-width: 280px; font-family: var(--font-inter); font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--g4); }
.gc-who-copy h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 22px; }
.gc-who-copy p { font-size: 18px; line-height: 1.65; color: var(--soft); margin-bottom: 16px; max-width: 680px; }
.who-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.who-stat { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.who-stat b { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: clamp(36px, 3.4vw, 52px); line-height: 1; color: var(--ink); }
.who-stat span { font-size: 15px; color: var(--g4); }
@media (max-width: 900px) { .gc-who-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .who-stats { grid-template-columns: 1fr; } }

/* ---------------- A platform for performance: four cards side by side ---------------- */
.gc-pf { background: var(--off-white); }
.pf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pf-card { display: flex; flex-direction: column; min-height: 320px; padding: 28px 26px 26px; border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color .25s ease, background-color .25s ease; }
.pf-card:hover, .pf-card:focus-visible { border-color: var(--g3); color: var(--ink); text-decoration: none; }
.pf-n { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 15px; letter-spacing: .04em; color: var(--g3); margin-bottom: auto; }
.pf-card h3 { margin-top: 48px; font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; }
.pf-card p { margin: 10px 0 22px; font-size: 16px; line-height: 1.55; color: var(--soft); }
.pf-more { font-weight: 500; font-size: 15.5px; }
.pf-more span { display: inline-block; transition: transform .2s ease; }
.pf-card:hover .pf-more span { transform: translateX(4px); }
@media (max-width: 1100px) { .pf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-card { min-height: 260px; } }
@media (max-width: 560px) { .pf { grid-template-columns: 1fr; } .pf-card { min-height: 0; } .pf-card h3 { margin-top: 28px; } }

/* ---------------- Where engineers own the whole path (Tower "Where engineers thrive" split) ---------------- */
.eng { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.eng-media { position: relative; isolation: isolate; min-height: 560px; border-radius: 28px; overflow: hidden; background: #2A2D33; display: flex; align-items: flex-end; }
.eng-media .background-layer { position: absolute; inset: 0; z-index: -2; }
.eng-media .hero-gradient { z-index: -1; border-radius: inherit; }
.eng-quote { margin: 0; padding: 40px; max-width: 520px; font-family: "Poppins", var(--font-inter); font-size: clamp(22px, 2vw, 30px); line-height: 1.3; color: #fff; }
.eng-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px; border-radius: 28px; background: #17191D; color: #fff; }
.eng-copy h2 { color: #fff; font-size: clamp(32px, 3.2vw, 48px); margin-bottom: 18px; }
.eng-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); max-width: 520px; }
.eng-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 32px 0 36px; }
.eng-spec { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.eng-spec b { display: block; font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 24px; color: #fff; margin-bottom: 4px; }
.eng-spec span { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.eng-copy .btn { align-self: flex-start; }
@media (max-width: 960px) { .eng { grid-template-columns: 1fr; } .eng-media { min-height: 320px; } .eng-copy { padding: 36px 26px; } .eng-quote { padding: 28px; } }
@media (max-width: 480px) { .eng-specs { grid-template-columns: 1fr; } }

/* ---------------- Benefits: text-only cards ---------------- */
.ben { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ben-card { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.ben-card h3 { font-family: var(--font-inter); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.ben-card p { font-size: 15px; line-height: 1.55; color: var(--soft); }
@media (max-width: 1000px) { .ben { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ben { grid-template-columns: 1fr; } }

/* ---------------- How will you join? Two big cards over the coast photo ---------------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.door { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; padding: 40px; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; background: #2A2D33; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../media/hero-coast.jpg") center / cover no-repeat; filter: grayscale(1); transition: transform 1.2s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 19, 22, 0.25) 0%, rgba(17, 19, 22, 0.88) 100%); }
.door-1::before { background-position: 20% 40%; }
.door-2::before { background-position: 85% 60%; transform: scale(1.15); }
.door:hover::before { transform: scale(1.05); }
.door-2:hover::before { transform: scale(1.2); }
.door:hover, .door:focus-visible { color: #fff; text-decoration: none; }
.door h3 { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; color: #fff; margin-bottom: 12px; max-width: 12ch; }
.door p { font-size: 16.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); max-width: 440px; margin-bottom: 24px; }
.door-btn { align-self: flex-start; display: inline-flex; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; transition: background-color .25s ease; }
.door:hover .door-btn { background: #E6E9EC; }
@media (max-width: 800px) { .doors { grid-template-columns: 1fr; } .door { min-height: 320px; padding: 28px; } }

/* ---------------- Four group companies ---------------- */
.cos-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1000px) { .cos-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cos-4 { grid-template-columns: 1fr; } }

/* ---------------- What we do: one text row per team ---------------- */
.areas { border-top: 1px solid var(--line); }
.area { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 360px); gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.area-n { display: block; font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -0.03em; color: #C3C8CF; }
.area-name { margin-top: 12px; font-family: var(--font-inter); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g4); }
.area-copy h2 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 16px; }
.area-copy p { font-size: 17.5px; line-height: 1.65; color: var(--soft); }
.area-points { list-style: none; display: grid; align-content: start; }
.area-points li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.area-points li:first-child { padding-top: 4px; }
@media (max-width: 1060px) { .area { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); } .area-points { grid-column: 2; } }
@media (max-width: 700px) { .area { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; } .area-points { grid-column: auto; } .area-n { font-size: 48px; } }

/* ---------------- Around the clock: the exchange countries (no card), same height as the list ---------------- */
.gc-clock { background: var(--off-white); }
.gc-clock-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.wm { position: relative; min-height: 360px; }
.wm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wm-land { fill: #ABB0B7; stroke: #CFD3D8; stroke-width: .6; stroke-linejoin: round; }
.wm-dot { cursor: pointer; outline: none; }
.wm-core { fill: #7D838B; stroke: #CFD3D8; stroke-width: 3; transition: fill .25s ease; }
.wm-dot.is-open .wm-core { fill: #17191D; }
.wm-halo { fill: none; stroke: #17191D; stroke-width: 1.5; opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .25s ease, transform .35s var(--ease); }
.wm-dot.is-hl .wm-halo, .wm-dot:hover .wm-halo, .wm-dot:focus-visible .wm-halo { opacity: 1; transform: scale(1); }
.wm-dot.is-hl .wm-core, .wm-dot:hover .wm-core { fill: #17191D; }
.wm-tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 18px)); padding: 9px 12px; border-radius: 10px; background: #17191D; color: #fff; font-family: var(--font-inter); font-size: 13px; line-height: 1.4; white-space: nowrap; pointer-events: none; box-shadow: 0 12px 30px rgba(17, 19, 22, 0.25); }
.wm-tip b { display: block; font-weight: 600; }
.wm-tip span { color: rgba(255, 255, 255, 0.65); }
.wm-tip em { font-style: normal; font-weight: 600; letter-spacing: .06em; font-size: 11px; text-transform: uppercase; margin-left: 6px; color: #fff; }
.sm-rows { list-style: none; display: grid; gap: 0; padding: 8px 22px; border-radius: 24px; background: #fff; }
.sm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "city ex state" "hours hours hours"; column-gap: 10px; row-gap: 2px; align-items: baseline; padding: 12px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); border-radius: 10px; cursor: default; transition: background-color .2s ease; }
.sm-row:last-child { border-bottom: 0; }
.sm-row.is-hl { background: #F1F3F5; }
.sm-row b { grid-area: city; font-family: var(--font-inter); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.sm-row b + span { grid-area: ex; font-size: 14px; color: var(--g4); }
.sm-row em { grid-area: hours; font-style: normal; font-size: 13px; color: var(--g4); }
.sm-row .sm-state { grid-area: state; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--g3); }
.sm-row.is-open .sm-state { color: var(--ink); }
.gc-markets { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.gc-markets .label { margin: 0; font-weight: 600; color: var(--ink); }
.gc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.gc-chips li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
@media (max-width: 1060px) { .gc-clock-grid { grid-template-columns: 1fr; gap: 24px; } .wm { min-height: 0; aspect-ratio: 666 / 386; } }

/* ---------------- One order, end to end: a numbered list ---------------- */
.gc-steps-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.gc-steps-head { position: sticky; top: 32px; }
.gc-steps-head h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 18px; }
.gc-steps-head > p:not(.eyebrow) { font-size: 18px; line-height: 1.65; color: var(--soft); margin-bottom: 28px; max-width: 460px; }
.steps { list-style: none; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px minmax(0, 200px) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-n { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 15px; color: var(--g3); }
.step b { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 22px; color: var(--ink); }
.step p { font-size: 16px; line-height: 1.55; color: var(--soft); }
@media (max-width: 960px) { .gc-steps-grid { grid-template-columns: 1fr; gap: 32px; } .gc-steps-head { position: static; } }
@media (max-width: 600px) { .step { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; } .step p { grid-column: 2; } }
/* Phones: the labels would pile up, so the map shows pins only (open ones bright) and the list below names them */
@media (max-width: 700px) {
  .wm-pin span { display: none; }
  .wm-pin i { opacity: .45; }
  .wm-pin.is-open i { opacity: 1; width: 10px; height: 10px; left: -5px; top: -5px; }
}

/* ---------------- Nov 13 pass 3 ---------------- */
/* Platform cards: smaller, no numbers */
.pf-card { min-height: 0; padding: 26px 24px 24px; }
.pf-card h3 { margin-top: 0; font-size: 22px; }
.pf-card p { margin: 8px 0 18px; font-size: 15.5px; }
@media (max-width: 1100px) { .pf-card { min-height: 0; } }

/* Doors: black layer over the photo, then the drifting gray gradient (Ventures hero) */
.door-dim { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.86); }
.door .hero-gradient { z-index: -1; }
.door::after { display: none; }

/* Group companies: three, then the button to /companies */
.cos-more { display: flex; justify-content: center; margin-top: 48px; }
.grps { border-top: 1px solid var(--line); }
.grp { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.grp-logo .co-logo { color: var(--ink); }
.grp-copy h2 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 10px; }
.grp-copy p { font-size: 17px; line-height: 1.6; color: var(--soft); max-width: 640px; }
.grp-here { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #ECEEF1; font-weight: 500; font-size: 15px; color: var(--g4); }
@media (max-width: 900px) { .grp { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; } }

/* Who we are: the statement fills in word by word as it scrolls past, then three pillars */
.gc-who { padding-top: 120px; padding-bottom: 120px; }
.who .eyebrow { margin-bottom: 28px; }
.who-text { max-width: 1180px; font-family: "Poppins", var(--font-inter); font-weight: 400; font-size: clamp(30px, 3.9vw, 58px); line-height: 1.18; letter-spacing: -0.015em; color: #C3C8CF; }
.who-text .w { transition: color .35s ease; }
.who-text .w.on { color: var(--ink); }
.who-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; }
.who-p { padding-top: 20px; border-top: 1px solid var(--line); }
.who-p b { display: block; font-family: var(--font-inter); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.who-p span { font-size: 16px; line-height: 1.55; color: var(--soft); }
.js-motion .who-p { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1s var(--ease); }
.js-motion .who-p:nth-child(2) { transition-delay: .12s; } .js-motion .who-p:nth-child(3) { transition-delay: .24s; }
.js-motion .who-pillars.is-in .who-p { opacity: 1; transform: none; }
@media (max-width: 800px) { .gc-who { padding-top: 80px; padding-bottom: 80px; } .who-pillars { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; } }
@media (prefers-reduced-motion: reduce) { .who-text .w { color: var(--ink); transition: none; } }

/* ---------------- Nov 13 pass 4 ---------------- */
/* Who we are: the statement on the left, the turning emblem on the right */
.who-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.who-text { font-size: clamp(28px, 3.2vw, 50px); }
.emblem { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; justify-self: center; }
.emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.em-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.em-arrows { transform-box: view-box; transform-origin: 200px 200px; animation: emTurn 28s linear infinite; }
.em-arrows path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes emTurn { to { transform: rotate(360deg); } }
.em-mark { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 28%; background: var(--ink); box-shadow: 0 20px 50px rgba(17, 19, 22, 0.22); }
.em-mark img { width: 52%; height: auto; }
@media (max-width: 900px) { .who-top { grid-template-columns: 1fr; gap: 48px; } .emblem { max-width: 300px; } }
@media (prefers-reduced-motion: reduce) { .em-arrows { animation: none; } }

/* Around the clock: every country back, the ones without our exchanges at 100/255 */
.wm-rest { opacity: calc(100 / 255); }

/* Doors: the coast video, then the black layer at 220/255, then the drifting gradient */
.door::before { display: none; }
.door-media { position: absolute; inset: 0; z-index: -1; }
.door-media .background-layer { position: absolute; inset: 0; }
.door-media video { filter: grayscale(1); }
.door-dim { background: rgba(0, 0, 0, calc(220 / 255)); }
/* the gradient is screened over the dimmed video, so it tints the coast instead of hiding it */
.door .hero-gradient { mix-blend-mode: screen; opacity: .8; }
/* the map column stretches to the list's height and the map sits centred in it */
.gc-clock-map { display: flex; }
.gc-clock-map .wm { flex: 1; }

/* ---------------- Nov 13 pass 5 ---------------- */
/* Who we are: statement 10% smaller */
.who-text { font-size: clamp(25px, 2.88vw, 45px); }
/* Emblem: thick arrows, no inner ring, the black icon on its own */
.em-ring { display: none; }
.em-arrows .em-arc { fill: none; stroke: var(--ink); stroke-width: 16; stroke-linecap: butt; }
.em-arrows .em-head { fill: var(--ink); stroke: none; }
.em-mark { width: 44%; height: auto; aspect-ratio: auto; border-radius: 0; background: none; box-shadow: none; display: block; }

/* Group companies: heading left, Partner Firms button right on the same row */
.cos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
.cos-head .cos-h { margin-bottom: 0; }
.cos-head .btn { flex: none; }
.cos-more { display: none; }
@media (max-width: 760px) { .cos-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; } }

/* White buttons on dark cards and bands dim a little on hover */
.door-btn, .band .btn-light { transition: background-color .25s ease, opacity .25s ease; }
.door:hover .door-btn, .door:focus-visible .door-btn { background: #fff; opacity: .78; }
.band .btn-light:hover, .band .btn-light:focus-visible { opacity: .78; }

/* ---------------- /companies: Bregal "Partner firms" ---------------- */
.gc-bar { padding-bottom: 0; min-height: 0; }
.gc-bar .hero-body { display: none; }
.gc-bar.hero { min-height: 112px; }
.gc-partners { padding-top: 56px; }
.pt { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 0; }
.pt-side { position: sticky; top: 32px; align-self: start; padding-right: 36px; }
.pt-cards { padding-left: 36px; border-left: 1px solid var(--line); display: grid; gap: 24px; }
.pt-side h1 { font-family: "Poppins", var(--font-inter); font-weight: 500; font-size: 28px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.pt-side p { font-size: 15px; line-height: 1.55; color: var(--soft); margin-bottom: 28px; }
.pt-side ul { list-style: none; border-top: 1px solid var(--ink); }
.pt-side li { border-bottom: 1px solid var(--ink); }
.pt-side a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px; font-size: 15px; color: var(--ink); text-decoration: none; transition: background-color .2s ease, padding .25s ease; }
.pt-side a:hover, .pt-side a.is-on { background: #F1F3F5; padding-left: 12px; text-decoration: none; color: var(--ink); }
.chev-r { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pt-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 440px; padding: 28px 32px 26px; border-radius: 20px; background: #2A2D33; color: #fff; scroll-margin-top: 24px; }
.pt-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform-origin: center; }
.pt-card .hero-gradient { z-index: -1; border-radius: inherit; }
.pt-logo { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: #fff; font-family: "Poppins", var(--font-inter); font-weight: 600; font-size: 15px; letter-spacing: .2em; }
.pt-icon { width: 30px; height: 30px; }
.pt-word { height: 26px; width: auto; }
.pt-h { margin-top: 26px; max-width: 640px; font-family: "Poppins", var(--font-inter); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; color: #fff; }
.pt-foot { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 28px; }
.pt-learn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 6px; color: #fff; font-size: 15px; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.pt-learn:hover, .pt-learn:focus-visible { background: #fff; color: var(--ink); text-decoration: none; }
.pt-visit { color: #fff; font-size: 15px; text-decoration: none; opacity: .9; }
.pt-visit:hover { color: #fff; opacity: .7; text-decoration: none; }
.pt-here { font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.pt-pause { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.75); background: transparent; color: #fff; cursor: pointer; transition: background-color .2s ease; }
.pt-pause:hover { background: rgba(255, 255, 255, 0.14); }
.pt-pause svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-pause .i-play { display: none; fill: currentColor; stroke: none; }
.pt-pause[aria-pressed="true"] .i-play { display: block; }
.pt-pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 900px) {
  .pt { grid-template-columns: 1fr; }
  .pt-side { position: static; padding-right: 0; margin-bottom: 28px; }
  .pt-cards { padding-left: 0; border-left: 0; }
  .pt-card { min-height: 380px; padding: 22px 20px 20px; }
}
.gc .pt-card .pt-h { color: #fff; }

/* Emblem, rebuilt from apcap.com's circle.png: three interlocking arrows in grays, one turn a minute */
.emblem svg { overflow: visible; }
.em-arrows { transform-box: view-box; transform-origin: 250px 250px; animation: emTurn 60s linear infinite; }
.em-arrows path { stroke: none; }
.em-mark { width: 40%; }

/* Emblem: seam-free arrows, and the header lockup (icon + GRAYBOOK CAPITAL) in black, sized to fit the ring's hole */
.em-arrows path { stroke-width: 1.5; stroke-linejoin: round; }
.emblem { container-type: inline-size; }
.em-mark { display: none; }
.em-lock { --h: 6cqw; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; height: var(--h); line-height: 1; white-space: nowrap; }
.em-lock img { flex: none; width: var(--h); height: var(--h); }
.em-lock span { margin-left: calc(var(--h) * 0.22); font-family: "Core Circus", "Poppins", var(--font-inter); font-weight: 600; font-size: calc(var(--h) * 0.6116); letter-spacing: calc(var(--h) * 0.1096); color: var(--ink); }
/* phones and narrow desktops: no emblem, the statement takes the full width */
@media (max-width: 1100px) { .emblem { display: none; } .who-top { grid-template-columns: 1fr; } }

/* The logo in the circle fades in when the section comes into view (capital.js adds .is-in once) */
.js-motion .em-lock { opacity: 0; transition: opacity 1.2s ease .2s; }
.js-motion .emblem.is-in .em-lock { opacity: 1; }
/* Benefits: the outlined cards are there from the start; only the text inside fades up, staggered across each row */
.js-motion .ben-card h3, .js-motion .ben-card p { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: calc(var(--ci, 0) * 110ms + var(--li, 0) * 90ms); }
.js-motion .ben-card p { --li: 1; }
.js-motion .ben-card.is-in h3, .js-motion .ben-card.is-in p { opacity: 1; transform: none; }
.ben-card:nth-child(4n+2) { --ci: 1; } .ben-card:nth-child(4n+3) { --ci: 2; } .ben-card:nth-child(4n+4) { --ci: 3; }
@media (max-width: 1000px) { .ben-card:nth-child(n) { --ci: 0; } .ben-card:nth-child(2n) { --ci: 1; } }
@media (prefers-reduced-motion: reduce) { .em-lock, .ben-card h3, .ben-card p { opacity: 1 !important; transform: none !important; } }
