/* ==========================================================================
   uVentures design system
   One stylesheet for the group site. Page-specific sections stay inline.
   Surfaces: ink / cobalt / paper. Divisions differ by surface, not by hue.
   ========================================================================== */

:root {
  /* --- surfaces --- */
  --bg: #FCFCFC;
  --bg-warm: #F5F4EF;
  --ink: #0F0F0F;
  --ink-deep: #0A0A0B;
  --ink-2: #161616;
  --ink-line: #2A2A2A;
  --ink-body: #4A4A4A;
  --ink-faint: #8A8A8A;
  --line: #E8E8E4;

  /* --- accent --- */
  --accent: #2B5CFF;
  --accent-bright: #7BA4FF;
  --accent-soft: #E4ECFF;
  --accent-deep: #1E44C8;

  /* --- type --- */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* --- layout --- */
  --wrap: 1180px;
  --wrap-wide: 1320px;
  --gutter: 32px;
  --section: clamp(96px, 12vw, 180px);
  --nav-h: 72px;

  /* --- radii --- */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 100px;

  /* --- motion --- */
  --dur-fast: .15s;
  --dur: .3s;
  --dur-slow: .6s;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ==========================  reset  ====================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ==========================  type  ======================================= */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
h1 { font-size: clamp(48px, 9vw, 132px); line-height: .92; letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 5.5vw, 68px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.sub { font-size: clamp(16px, 2vw, 19px); max-width: 62ch; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; }
.accent-word { color: var(--accent); }
.tnum { font-variant-numeric: tabular-nums; }

/* ==========================  layout  ===================================== */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: var(--section) 0; }
.section-sm { padding: clamp(64px, 8vw, 110px) 0; }

/* dark surface helper */
.on-dark { background: var(--ink-deep); color: #C9C9C9; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .eyebrow { color: var(--accent-bright); }

/* ==========================  buttons  ==================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em; line-height: 1.2;
  padding: 17px 34px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); box-shadow: 0 12px 34px rgba(43, 92, 255, .32); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-on-accent { background: #fff; color: var(--accent-deep); }
.btn-on-accent:hover { background: #EEF3FF; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.34); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-sm { padding: 12px 24px; font-size: 15px; }
.btn-lg { padding: 21px 44px; font-size: 17px; }

.cta-note {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 18px;
}
.on-dark .cta-note { color: #7A7A7A; }

/* link with a rule that draws on hover */
.link-draw {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: inherit;
  padding-bottom: 8px; position: relative;
}
.link-draw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link-draw:hover::after, a:hover > .link-draw::after { transform: scaleX(1); }
.link-draw .arw { transition: transform var(--dur) var(--ease); }
.link-draw:hover .arw, a:hover .link-draw .arw { transform: translateX(5px); }

/* ==========================  chips / tags  =============================== */

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
}
.chip-quiet {
  background: rgba(43, 92, 255, .1); color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(43, 92, 255, .28);
}
.on-dark .chip-quiet {
  background: rgba(123, 164, 255, .12); color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px rgba(123, 164, 255, .3);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-accent-dot .dot { background: #fff; animation: uv-pulse 2.4s ease-in-out infinite; }
@keyframes uv-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.tag {
  display: inline-block; font-family: var(--font-mono); font-weight: 600;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: #11318F;
}

/* ==========================  cards  ====================================== */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.card-hover:hover {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: 0 22px 60px rgba(15, 15, 15, .09);
}
.card-dark {
  background: var(--ink-2); border-color: var(--ink-line); color: #C9C9C9;
}
.card-dark h3 { color: #fff; }

/* ==========================  stat band  ================================== */

.statband { background: var(--ink-deep); color: #fff; border-bottom: 3px solid var(--accent); }
.statband-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(36px, 4.5vw, 60px) 26px; border-right: 1px solid var(--ink-line); }
.stat:last-child { border-right: 0; }
.stat .n {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px); color: var(--accent-bright);
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .l {
  display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: #9A9A9A; margin-top: 14px;
}
.stat .src {
  display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  color: #6A6A6A; margin-top: 7px; font-style: normal;
}
.statband-foot {
  border-top: 1px solid var(--ink-line); padding: 16px 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: #7A7A7A;
}
.statband-foot a { color: var(--accent-bright); }

/* ==========================  nav  ======================================== */

.uv-nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(252, 252, 252, .9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.uv-nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--nav-h);
}
.uv-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 25px;
  letter-spacing: -0.03em; color: var(--ink); white-space: nowrap;
}
.uv-logo .u { color: var(--accent); }
.uv-logo .division {
  font-family: var(--font-mono); font-weight: 600; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
  margin-left: 10px; vertical-align: middle;
}
.uv-links { display: flex; align-items: center; gap: 32px; }
.uv-links a {
  font-size: 15.5px; font-weight: 600; color: #555;
  transition: color var(--dur-fast) var(--ease);
}
.uv-links a:hover, .uv-links a[aria-current="page"] { color: var(--ink); }
.uv-links a[aria-current="page"] { color: var(--accent); }

/* nav on a dark hero */
.uv-nav.on-ink {
  background: rgba(10, 10, 11, .82); border-bottom-color: var(--ink-line);
}
.uv-nav.on-ink .uv-logo { color: #fff; }
.uv-nav.on-ink .uv-links a { color: #A8A8A8; }
.uv-nav.on-ink .uv-links a:hover { color: #fff; }
.uv-nav.on-ink .uv-burger span { background: #fff; }

/* --- mobile drawer --- */
.uv-burger {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.uv-burger span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.uv-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.uv-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.uv-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.uv-drawer {
  position: fixed; inset: 0; z-index: 95;
  background: var(--ink-deep); color: #fff;
  padding: calc(var(--nav-h) + 12px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 4px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.uv-drawer[hidden] { display: none !important; }
.uv-drawer.open { clip-path: inset(0 0 0 0); }
.uv-drawer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0 14px 18px; border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.03em; color: #fff; position: relative;
}
.uv-drawer-row::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px;
  background: var(--rule, var(--accent)); border-radius: 2px;
}
/* sub-links run inline, so all four divisions fit on one phone screen */
.uv-drawer-sub { padding: 2px 0 12px 18px; display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
.uv-drawer-sub a { font-size: 14.5px; font-weight: 600; color: #9A9A9A; padding: 7px 0; }
.uv-drawer-sub a:hover { color: #fff; }
.uv-drawer-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.uv-drawer-foot .btn { width: 100%; }
.uv-drawer-mail {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em;
  color: var(--accent-bright); text-align: center;
}

/* ==========================  footer  ===================================== */

.uv-footer { background: var(--ink-deep); color: #8A8A8A; padding: clamp(64px, 8vw, 100px) 0 36px; }
.uv-footer-main {
  display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--ink-line);
}
.uv-footer-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 34px;
  letter-spacing: -0.03em; color: #fff;
}
.uv-footer-logo .u { color: var(--accent-bright); }
.uv-footer-tag { font-size: 14.5px; line-height: 1.7; margin-top: 18px; max-width: 34ch; }
.uv-footer-col-title {
  font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px;
}
.uv-footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.uv-footer-links a { font-size: 14.5px; transition: color var(--dur-fast) var(--ease); }
.uv-footer-links a:hover { color: var(--accent-bright); }
.uv-footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  flex-wrap: wrap; padding-top: 28px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: #6A6A6A;
}
.uv-footer-bottom a:hover { color: var(--accent-bright); }

/* ==========================  reveal  ===================================== */

/* Hidden state is gated on .uv-js (set by an inline head script), so content
   stays visible if uv.js never runs. */
.uv-js .reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

/* mask-reveal for display lines.
   The padding/margin pair gives descenders (y, g, p) room inside the clip. */
.line-mask { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line-mask > span { display: block; }
.uv-js .line-mask > span { transform: translateY(105%); }
.line-mask.in > span { transform: none; transition: transform .8s var(--ease); }

/* ==========================  testimonials  =============================== */
/* Quotes are verbatim client recommendations (trimmed with ellipses only). */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.quotes.two { grid-template-columns: repeat(2, 1fr); }
.quotes.solo { grid-template-columns: minmax(0, 860px); }
.quote {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 32px 28px; display: flex; flex-direction: column;
}
.quote blockquote { font-size: 17px; line-height: 1.7; color: var(--ink); }
.quote blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 72px; line-height: .55; color: var(--accent); margin-bottom: 14px;
}
.quotes.solo .quote { padding: 44px 46px 36px; }
.quotes.solo .quote blockquote { font-size: clamp(19px, 2vw, 23px); line-height: 1.6; }
.quote figcaption {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.quote blockquote + figcaption { margin-top: 26px; }
.quote .who b { display: block; font-weight: 800; color: var(--ink); font-size: 15.5px; }
.quote .who span { display: block; font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }
.qtag {
  font-family: var(--font-mono); font-weight: 600; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-soft); border-radius: var(--r-pill); padding: 6px 12px; white-space: nowrap;
}
.quotes-src { margin-top: 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.quotes-src a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1080px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .quotes, .quotes.two { grid-template-columns: 1fr; } .quote { padding: 28px 24px 24px; } }

/* ==========================  sticky mobile CTA  ========================== */

.uv-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 11, .95); backdrop-filter: blur(12px);
  transform: translateY(110%); transition: transform var(--dur) var(--ease);
}
.uv-sticky.show { transform: none; }
.uv-sticky .btn { width: 100%; }

/* ==========================  responsive  ================================= */

@media (max-width: 1080px) {
  /* Four divisions plus page links stop fitting beside the CTA here; the drawer takes
     over navigation, and the CTA stays until the phone breakpoint. Scoped under .uv-nav
     for the same reason as the 860px rules. */
  .uv-nav .uv-links { display: none; }
  .uv-nav .uv-burger { display: flex; }
  .uv-nav .uv-nav-cta { margin-left: auto; }
  .uv-footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .statband-in { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--ink-line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 860px) {
  :root { --gutter: 22px; }
  /* scoped under .uv-nav so a page's own .btn { display } rule can't re-show the CTA */
  .uv-nav .uv-links { display: none; }
  .uv-nav .uv-burger { display: flex; }
  .uv-nav .uv-nav-cta { display: none; }
  .uv-sticky { display: block; }
  .uv-footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .uv-footer-logo-col { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .statband-in { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .uv-footer-main { grid-template-columns: 1fr; }
  .uv-footer-bottom { justify-content: flex-start; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
}

/* ==========================  reduced motion  ============================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .uv-js .reveal { opacity: 1; transform: none; }
  .uv-js .line-mask > span { transform: none; }
  .uv-drawer { clip-path: inset(0 0 0 0); }
  .uv-drawer[hidden] { display: none !important; }
}
