/* Riven Holdings — site styles.
   Light theme from the Riven palette: slate navy ink, periwinkle accent, white and soft grey grounds. */

/* Fonts are self-hosted so the site makes no third-party requests (Geist, SIL OFL 1.1). */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0f1626;
  --ink: #0f1626;
  --ink-2: #3a4660;
  --muted: #5d6a84;
  --accent-text: #34477a;
  --peri: #9db6ea;
  --peri-soft: #e9effb;
  --peri-band: #e6edfb;
  --ground: #f6f8fc;
  --surface: #ffffff;
  --chip: #f1f4f9;
  --line: #e1e7f1;
  --line-soft: #eef2f8;
  --line-strong: #d5ddea;
  --focus: #5f7fd0;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-weight: 600; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.mono-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 500; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-dark, .nav a.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover, .nav a.btn-dark:hover { background: #26324d; color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: #aebbd3; color: var(--ink); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-lg { height: 54px; padding: 0 28px; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  background: var(--chip); color: var(--muted);
}
.chip-live { background: var(--peri-soft); color: var(--accent-text); }
.chip-outline { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peri); flex: none; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(40px, 6vw, 72px); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 80px); }
.hero-copy { flex: 1.4 1 520px; min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero-eyebrow .square { width: 10px; height: 10px; border-radius: 3px; background: var(--peri); }
.hero h1 { margin: 0; font-size: clamp(42px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -0.04em; }
.hero h1 span { color: var(--accent-text); }
.lead { margin: 28px 0 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.register {
  flex: 1 1 380px; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 22, 38, 0.04), 0 28px 56px -28px rgba(15, 22, 38, 0.22);
  overflow: hidden;
}
.register-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.register-row { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.register-row:last-of-type { border-bottom: 0; }
.register-num { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.register-body { flex: 1; min-width: 0; }
.register-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.register-desc { font-size: 14px; color: var(--muted); }
.register-foot { padding: 16px 24px; background: var(--ground); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 32px; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line);
}
.fact { padding-top: 24px; }
.fact .mono-label { margin: 0; font-size: 12px; }
.fact p { margin: 6px 0 0; font-size: 16px; font-weight: 500; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); }
.section-white.bordered { border-bottom: 1px solid var(--line); }
.section h2 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 48px; }
.section-head > div { flex: 1 1 420px; min-width: 0; }
.section-head > p { flex: 0 1 400px; margin: 0; color: var(--muted); font-size: 17px; }

/* Holdings */
.holdings { display: flex; flex-wrap: wrap; gap: 20px; }
.feature {
  flex: 2 1 560px; min-width: 0;
  background: var(--ground); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3.5vw, 44px);
  display: flex; flex-wrap: wrap; gap: 36px; align-items: center;
}
.feature-copy { flex: 1 1 280px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.feature h3 { margin: 0; font-size: 34px; letter-spacing: -0.03em; }
.feature p { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); }
.feature p.small { font-size: 15px; color: var(--muted); }
.feature-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 15px; font-weight: 500; }
.feature-links a { text-decoration: none; }
.feature-links a:hover { text-decoration: underline; }
.side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.card h3 { margin: 20px 0 0; font-size: 22px; letter-spacing: -0.02em; }
.card p { margin: 10px 0 0; font-size: 16px; color: var(--muted); }

/* Approach */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; margin-top: 48px; }
.principle { border-top: 2px solid var(--navy); padding-top: 22px; }
.principle .num { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.principle h3 { margin: 12px 0 0; font-size: 20px; letter-spacing: -0.01em; }
.principle p { margin: 8px 0 0; font-size: 16px; color: var(--muted); }

/* Company */
.company-row { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.company-copy { flex: 1.2 1 440px; min-width: 0; }
.company-copy h2 { margin-bottom: 24px; }
.company-copy p:not(.mono-label) { margin: 0 0 16px; font-size: 17px; color: var(--ink-2); }
.details { flex: 1 1 360px; min-width: 0; margin: 0; background: var(--ground); border: 1px solid var(--line); border-radius: 20px; padding: 8px 28px; }
.details div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details div:last-child { border-bottom: 0; }
.details dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.details dd { margin: 0; font-weight: 500; }

/* Contact band */
.contact { background: var(--surface); padding: 0 0 clamp(72px, 9vw, 120px); }
.band {
  background: var(--peri-band); border-radius: 28px; padding: clamp(32px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
}
.band > div { flex: 1 1 360px; min-width: 0; }
.band h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.band p { margin: 10px 0 0; font-size: 17px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ground); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand img { height: 40px; width: auto; }
.footer-tag { margin: 14px 0 0; font-size: 15px; color: var(--muted); max-width: 30ch; }
.site-footer h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Legal pages */
.doc-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); }
.doc-hero .wrap, .doc { max-width: 808px; }
.doc-hero h1 { margin: 0 0 10px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.05; }
.doc-hero p { margin: 0; color: var(--muted); }
.doc { padding-top: 48px; padding-bottom: 96px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }

/* 404 */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(56px, 10vw, 112px); margin: 0; letter-spacing: -0.045em; line-height: 1; }
.notfound-text { color: var(--muted); margin: 16px 0 28px; font-size: 18px; }

/* Phones: the header wraps to two rows, so let it scroll away instead of sticking. */
@media (max-width: 640px) {
  .site-header { position: static; }
  html { scroll-padding-top: 0; }
}
