/* =========================================================================
   UB Ventures — light, institutional design system
   Palette derived from the brand mark (teal peaks, blue swoosh, slate
   wordmark) on white. Accessibility floor: text contrast >= 4.5:1,
   visible focus, reduced motion respected, 44px touch targets.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper:    #FFFFFF;
  --paper-2:  #F5F8FA;   /* soft section background */
  --paper-3:  #EEF3F6;

  --ink:      #15242E;   /* headings / strong text */
  --body:     #41566A;   /* body copy */
  --muted:    #6E8090;   /* captions */
  --line:     #E2E9EE;   /* hairlines */
  --line-2:   #CFDAE1;

  --teal:     #29B6C7;   /* brand bright — graphic accents only */
  --teal-ink: #0E7A88;   /* accessible teal for links/text on white */
  --teal-deep:#0B5F6A;
  --blue:     #5AA7D4;   /* swoosh */
  --slate:    #58697B;   /* wordmark */

  --display: 'Archivo', system-ui, -apple-system, sans-serif;
  --body-font: 'Inter', system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.92rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.6vw, 4.4rem);

  --maxw: 1140px;
  --gut: clamp(1.2rem, 4vw, 3rem);
  --radius: 12px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--body-font);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { color: var(--teal-deep); }
::selection { background: rgba(41,182,199,.22); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--teal-ink); color: #fff; padding: .7rem 1rem; font: 600 .9rem/1 var(--body-font); border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------------- layout ---------------- */
.wrap { width: min(100% - 2*var(--gut), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-soft { background: var(--paper-2); border-block: 1px solid var(--line); }

.eyebrow {
  font: 600 var(--step--1)/1 var(--body-font);
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
.lede { font-size: var(--step-1); color: var(--body); line-height: 1.55; max-width: 58ch; font-weight: 400; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 600; }
.accent { color: var(--teal-ink); }

/* ---------------- header / nav ---------------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: .6rem; }
.brand:hover { color: inherit; }
.logo-mark { width: 40px; height: 30px; flex: none; display: block; }
.brand .word { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; color: var(--slate); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font: 500 var(--step--1)/1 var(--body-font); color: var(--slate); padding: .5rem 0; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--teal); }

.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--step--1)/1 var(--body-font); padding: .8rem 1.35rem; min-height: 44px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); white-space: nowrap; }
.btn--primary { background: var(--teal-ink); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--teal-deep); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-2px); }
.btn .arr { transition: transform .18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.nav-toggle { display: none; background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin: auto; }
.only-mobile { display: none; }

/* ---------------- hero ---------------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { max-width: 16ch; margin-bottom: .35em; }
.hero .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* understated credibility line (replaces the boxed stat strip) */
.metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.3rem; margin-top: 2.2rem; color: var(--muted); font-size: var(--step--1); }
.metrics .m { display: inline-flex; align-items: baseline; gap: .45rem; }
.metrics .m b { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.15rem; letter-spacing: -.01em; }
.metrics .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* quiet signature: layered brand mountain silhouette under the hero */
.ridge { display: block; width: 100%; height: auto; margin-top: clamp(2.5rem,6vw,4.5rem); }
.ridge .s1 { fill: var(--teal); opacity: .09; }
.ridge .s2 { fill: var(--blue); opacity: .10; }
.ridge .s3 { fill: var(--teal); opacity: .16; }

/* ---------------- stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.stat { padding: 1.7rem 1.5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); color: var(--ink); line-height: 1; }
.stat .num span { color: var(--teal-ink); }
.stat .lbl { font: 500 var(--step--1)/1.35 var(--body-font); color: var(--muted); margin-top: .55rem; }

/* ---------------- cards / grids ---------------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: 0 16px 40px -28px rgba(21,36,46,.45); transform: translateY(-3px); }
.card .ic { width: 30px; height: 30px; color: var(--teal-ink); margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; font-size: var(--step-0); }

.pillar .num { font: 700 .9rem/1 var(--display); color: var(--teal); letter-spacing: .04em; }
.pillar h3 { margin-top: .7rem; }

/* ---------------- split ---------------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------------- CTA band ---------------- */
.cta-band { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); padding: clamp(2.4rem, 5vw, 3.8rem); text-align: center; }
.cta-band .lede { margin-inline: auto; margin-bottom: 1.8rem; }

/* ---------------- steps ---------------- */
.steps { counter-reset: s; display: grid; gap: .9rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.step .n { counter-increment: s; font: 700 1rem/1 var(--display); color: var(--teal-ink); width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; flex: none; }
.step .n::before { content: counter(s, decimal-leading-zero); }
.step h3 { font-size: var(--step-0); margin-bottom: .15rem; }
.step p { margin: 0; font-size: var(--step--1); color: var(--muted); }

/* ---------------- forms ---------------- */
input[type="email"], input[type="text"], textarea { width: 100%; background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); padding: .85rem 1rem; font: 400 var(--step-0) var(--body-font); min-height: 48px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 130px; resize: vertical; }
label { font: 600 var(--step--1) var(--body-font); color: var(--slate); display: block; margin-bottom: .45rem; }

.note { font: 400 var(--step--1)/1.55 var(--body-font); color: var(--muted); border-left: 2px solid var(--teal); padding: .3rem 0 .3rem 1rem; margin: 1.4rem 0; }

/* ---------------- footer ---------------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: clamp(3rem, 7vw, 5rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; margin-bottom: 2.2rem; }
.foot-grid h4 { font: 600 var(--step--1) var(--body-font); color: var(--slate); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.foot-grid a { display: block; color: var(--body); margin-bottom: .55rem; font-size: var(--step--1); }
.foot-grid a:hover { color: var(--teal-ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.foot-bottom p { margin: 0; font-size: var(--step--1); color: var(--muted); }

/* ---------------- responsive ---------------- */
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .only-mobile { display: block; }
  .site-head.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 76px; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gut) 1.4rem; }
  .site-head.open .nav-links a { padding: 1rem 0; border-bottom: 1px solid var(--line); width: 100%; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
