@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* RiskVane brand world: deep navy ground, purple/blue vane accent, cool grey support. Single dark theme to match the logo. */
  --navy: #0D1228;
  --navy-raised: #141A36;
  --navy-line: #232B52;
  --purple: #6C3AED;
  --blue: #2F70FC;
  --grey: #A1A7B3;
  --white: #F7F8FB;
  --font: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 18, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
nav a {
  display: block; white-space: nowrap; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--grey);
  transition: color .15s, background .15s;
}
nav a:hover { color: var(--white); background: var(--navy-raised); }
nav a[aria-current="page"] { color: var(--white); }
nav a[aria-current="page"]:not(.cta) { box-shadow: inset 0 -2px 0 var(--blue); border-radius: 8px 8px 0 0; }
nav a.cta { background: var(--purple); color: #fff; margin-left: 8px; }
nav a.cta:hover { background: #7C4DF0; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--navy-line); color: var(--white);
  border-radius: 8px; padding: 8px 12px; font: 600 15px var(--font); cursor: pointer;
}

/* ---------- Page heads ---------- */
.head { padding: 72px 0 48px; border-bottom: 1px solid var(--navy-line); position: relative; overflow: hidden; }
.head::after {
  content: ""; position: absolute; right: -120px; top: -60px; width: 440px; height: 440px;
  background: url("mark-large.png") center / contain no-repeat; opacity: .07; pointer-events: none;
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; font-weight: 800; margin: 0; text-wrap: balance; max-width: 18ch; letter-spacing: -0.01em; }
h1 .accent { background: linear-gradient(180deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--purple); color: #fff; }
.btn.primary:hover { background: #7C4DF0; }
.btn.ghost { border-color: var(--navy-line); color: var(--white); }
.btn.ghost:hover { border-color: var(--grey); }

/* ---------- Problems page ---------- */
.problems { padding-top: 32px; padding-bottom: 88px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.problem {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: 32px; align-items: start;
  padding: 48px 0; border-bottom: 1px solid var(--navy-line);
}
.problem:last-child { border-bottom: 0; }
.quote { font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
.quote::before { content: "\201C"; color: var(--purple); }
.quote::after { content: "\201D"; color: var(--purple); }
.service-tag {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: 14px; font-weight: 700; color: var(--grey); text-decoration: none;
}
.service-tag::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.service-tag:hover { color: var(--white); }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pains li {
  position: relative; padding: 16px 18px 16px 48px; background: var(--navy-raised);
  border: 1px solid var(--navy-line); border-radius: 12px; color: #D9DCE3; max-width: 62ch;
}
.pains li::before {
  content: ""; position: absolute; left: 18px; top: 23px; width: 12px; height: 12px;
  border: 2px solid var(--purple); border-radius: 50%;
}

.how {
  background: linear-gradient(160deg, rgba(47,112,252,.14), rgba(108,58,237,.18));
  border: 1px solid var(--navy-line); border-left: 3px solid var(--blue);
  border-radius: 12px; padding: 22px 24px;
}
.how-label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.how p:last-child { margin: 0; color: var(--white); font-size: 16px; line-height: 1.65; }

/* ---------- Services page ---------- */
.services { padding-top: 48px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.service {
  background: var(--navy-raised); border: 1px solid var(--navy-line); border-radius: 16px;
  padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 16px;
  border-top: 3px solid var(--purple);
  scroll-margin-top: 100px;
}
.service:target { border-color: var(--blue); border-top-color: var(--blue); }
.service h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; }
.service .num { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.service li { padding-left: 22px; position: relative; color: #D9DCE3; }
.service li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--purple); border-radius: 2px; transform: rotate(45deg); }
.service .solves { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--navy-line); font-size: 14px; color: var(--grey); }
.service .solves a { color: var(--white); font-weight: 600; }

/* ---------- Placeholder pages ---------- */
.placeholder { padding-top: 72px; padding-bottom: 120px; }
.placeholder .box {
  border: 1.5px dashed var(--navy-line); border-radius: 16px; padding: 56px 32px;
  color: var(--grey); text-align: center; font-weight: 500;
}

.booking { padding-top: 40px; padding-bottom: 88px; }
#calendly-embed { border-radius: 16px; overflow: hidden; }
.booking-fallback { margin: 0; padding: 32px; border: 1.5px dashed var(--navy-line); border-radius: 16px; color: var(--grey); text-align: center; }
.booking-fallback a { color: var(--white); font-weight: 700; }

.about { padding-top: 56px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.portrait { margin: 0; position: sticky; top: 108px; }
.portrait img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--navy-line); box-shadow: 0 0 0 6px rgba(108,58,237,.18); }
.portrait figcaption { margin-top: 20px; display: grid; gap: 4px; padding-left: 16px; border-left: 3px solid var(--blue); }
.portrait .who { font-size: 20px; font-weight: 800; }
.portrait .creds { font-size: 14px; font-weight: 600; color: var(--grey); letter-spacing: .04em; }
.portrait a { font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; margin-top: 6px; }
.portrait a:hover { text-decoration: underline; }
.bio { display: grid; gap: 22px; max-width: 66ch; }
.bio p { margin: 0; color: #D9DCE3; font-size: 17px; line-height: 1.75; }
.bio p:first-child { font-size: 20px; line-height: 1.6; color: var(--white); font-weight: 500; }
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  header nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 12px 16px 20px; }
  header nav.open { display: block; }
  header nav ul { flex-direction: column; align-items: stretch; }
  header nav a.cta { margin: 8px 0 0; text-align: center; }
  header nav a[aria-current="page"]:not(.cta) { box-shadow: inset 3px 0 0 var(--blue); border-radius: 0 8px 8px 0; }
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .portrait { position: static; max-width: 340px; }
}

/* ---------- Company about + people ---------- */
.company-about { padding-top: 56px; padding-bottom: 24px; }
.people { padding-top: 64px; padding-bottom: 96px; }
.people .section-title { padding-top: 40px; border-top: 1px solid var(--navy-line); }
.section-title { margin: 0 0 28px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); gap: 24px; }
.person { display: grid; gap: 14px; text-decoration: none; color: var(--white); }
.person img { width: 100%; border-radius: 16px; border: 1px solid var(--navy-line); transition: box-shadow .15s, transform .15s; }
.person:hover img, .person:focus-visible img { box-shadow: 0 0 0 4px var(--purple); }
.person-name { font-size: 18px; font-weight: 800; }
.person:hover .person-name { color: #C9B8FF; }
.crumb { padding-top: 28px; }
.crumb a { color: var(--grey); text-decoration: none; font-weight: 600; font-size: 14px; }
.crumb a:hover { color: var(--white); }
.crumb + .about { padding-top: 24px; }

/* ---------- Booking consent ---------- */
.consent { border: 1px solid var(--navy-line); background: var(--navy-raised); border-radius: 16px; padding: 36px 32px; display: grid; gap: 16px; max-width: 720px; }
.consent h2 { margin: 0; font-size: 24px; font-weight: 800; }
.consent p { margin: 0; color: #D9DCE3; }
.consent .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.consent button.btn { font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.consent .small { font-size: 14px; color: var(--grey); }
.consent a { color: var(--white); font-weight: 600; }

/* ---------- Legal page ---------- */
.legal-page { padding-top: 56px; padding-bottom: 96px; max-width: 760px; }
.legal-page h1 { font-size: clamp(30px, 4vw, 42px); max-width: none; margin-bottom: 8px; }
.legal-page .updated { color: var(--grey); font-size: 14px; margin: 0 0 32px; }
.legal-page h2 { font-size: 20px; font-weight: 800; margin: 36px 0 10px; }
.legal-page p, .legal-page li { color: #D9DCE3; }
.legal-page ul { padding-left: 22px; display: grid; gap: 6px; }
.legal-page a { color: var(--white); font-weight: 600; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--navy-line); padding: 48px 0 40px; background: #0A0E20; }
.foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.foot img { width: 300px; }
.foot nav ul { flex-wrap: wrap; }
.foot nav a { font-size: 14px; padding: 6px 10px; }
.company { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: #8B92A3; }
.company p { margin: 0; max-width: 70ch; }
.company a { color: var(--grey); }
.contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-size: 14px; }
.contact a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .problem { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .problem > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .problem { grid-template-columns: 1fr; padding: 40px 0; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  header nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 12px 16px 20px; }
  header nav.open { display: block; }
  header nav ul { flex-direction: column; align-items: stretch; }
  header nav a.cta { margin: 8px 0 0; text-align: center; }
  nav a[aria-current="page"]:not(.cta) { box-shadow: inset 3px 0 0 var(--blue); border-radius: 0 8px 8px 0; }
  .brand img { height: 32px; }
  .head { padding: 52px 0 36px; }
  .services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Blog ---------- */
.blog-list { padding-top: 56px; padding-bottom: 96px; max-width: 860px; }
.blog-heading { font-size: clamp(30px, 4vw, 42px); max-width: none; }
.blog-intro { color: var(--grey); margin: 12px 0 36px; }
.post-card {
  display: grid; gap: 10px; text-decoration: none; color: var(--white);
  background: var(--navy-raised); border: 1px solid var(--navy-line); border-top: 3px solid var(--purple);
  border-radius: 16px; padding: 28px 30px; transition: border-color .15s;
}
.post-card:hover, .post-card:focus-visible { border-color: var(--blue); }
.post-card h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; }
.post-card p { margin: 0; color: #D9DCE3; }
.post-card .read-more { font-size: 14px; font-weight: 700; color: var(--blue); margin-top: 4px; }
.post-meta { margin: 0; font-size: 14px; font-weight: 600; color: var(--grey); }
.post-meta a { color: var(--grey); }
.post-card .post-meta { color: var(--grey); }
.post { max-width: 780px; padding-bottom: 96px; }
.post-head { padding: 20px 0 32px; border-bottom: 1px solid var(--navy-line); margin-bottom: 32px; display: grid; gap: 16px; }
.post-head h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: none; }
.post-body p, .post-body li { color: #D9DCE3; font-size: 17px; line-height: 1.75; }
.post-body p { margin: 0 0 20px; }
.post-body h2 { font-size: 24px; font-weight: 800; margin: 44px 0 16px; line-height: 1.3; }
.post-body strong { color: var(--white); }
.post-body ol { padding-left: 24px; display: grid; gap: 12px; margin: 0 0 20px; }
.post-body a, .post-sources a { color: var(--white); font-weight: 600; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.post-cta {
  margin: 40px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(160deg, rgba(47,112,252,.14), rgba(108,58,237,.18));
  border: 1px solid var(--navy-line); border-left: 3px solid var(--blue); border-radius: 12px; padding: 22px 24px;
}
.post-cta p { margin: 0; font-weight: 600; max-width: 46ch; }
.post-sources { border-top: 1px solid var(--navy-line); padding-top: 24px; }
.post-sources h2 { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.post-sources ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--grey); }

/* ---------- Home page ---------- */
.home-intro { padding: 80px 0 88px; position: relative; overflow: hidden; }
.home-intro::after {
  content: ""; position: absolute; right: -120px; top: -40px; width: 460px; height: 460px;
  background: url("mark-large.png") center / contain no-repeat; opacity: .07; pointer-events: none;
}
.home-intro .wrap { position: relative; z-index: 1; }
.home-lead { margin: 0; max-width: 40ch; font-size: clamp(20px, 2.5vw, 28px); line-height: 1.3; font-weight: 700; text-wrap: pretty; letter-spacing: -0.01em; }
.home-gap { margin: 28px 0 0; max-width: 60ch; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; color: #D9DCE3; padding-left: 18px; border-left: 3px solid var(--purple); }
.home-three { padding-top: 56px; padding-bottom: 24px; }
.home-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.home-card { grid-column: span 2; }
.home-card:nth-child(n+4) { grid-column: span 3; }
.home-card {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--white);
  background: var(--navy-raised); border: 1px solid var(--navy-line); border-top: 3px solid var(--purple);
  border-radius: 16px; padding: 28px 28px 26px; transition: border-color .15s;
}
.home-card:hover, .home-card:focus-visible { border-color: var(--blue); }
.home-card .num { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.home-card p { margin: 0; font-size: 18px; line-height: 1.55; color: #E6E8EE; }
.home-card .read-more { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--navy-line); font-size: 14px; font-weight: 700; color: var(--grey); }
.home-card:hover .read-more { color: var(--white); }
.home-founder { padding-top: 56px; padding-bottom: 16px; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; align-items: center; }
.home-photo img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 1px solid var(--navy-line); box-shadow: 0 0 0 5px rgba(108,58,237,.22); }
.home-quote { margin: 0; max-width: 46ch; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; font-weight: 600; }
.home-sig { margin: 12px 0 0; font-size: 15px; color: var(--grey); }
.home-sig a { color: var(--white); font-weight: 700; text-decoration: none; }
.home-sig a:hover { text-decoration: underline; }
.home-close { padding-top: 56px; padding-bottom: 72px; }
.home-cta { margin: 36px 0 0; }
.home-cta p { max-width: 60ch; font-size: 18px; }
.home-tagline { display: block; font-weight: 800; color: var(--white); letter-spacing: .02em; margin-bottom: 4px; }
@media (max-width: 900px) { .home-cards { grid-template-columns: 1fr; } .home-card, .home-card:nth-child(n+4) { grid-column: auto; } }
@media (max-width: 560px) {
  .home-intro { padding: 52px 0 40px; }
  .home-founder { grid-template-columns: 1fr; gap: 20px; }
  .home-photo img { width: 110px; height: 110px; }
}
