/* RVSN Interactive — Website V1 */
:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: #0e0e0e;
  --text: #f5f5f3;
  --muted: #999994;
  --faint: #666661;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);
  --accent: #ffffff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,5,.82);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: 118px;
  height: auto;
  object-fit: contain;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .06em;
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--text);
}

.section { position: relative; }
.section-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 86%);
  pointer-events: none;
}
.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .14;
  pointer-events: none;
}
.ambient-one { width: 360px; height: 360px; background: #ffffff; top: 16%; left: 15%; }
.ambient-two { width: 260px; height: 260px; background: #8d8d8d; bottom: 8%; right: 16%; }

.hero-inner {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0 94px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.eyebrow, .section-label {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 32px 0 0;
  font-size: clamp(3rem, 7.4vw, 6.9rem);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 760;
}
.hero h1 span { color: #90908b; }
.hero-copy {
  max-width: 690px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}
.hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .04em;
  border: 1px solid var(--line);
}
.button-primary { background: var(--text); color: #090909; border-color: var(--text); }
.button-ghost { background: rgba(255,255,255,.02); }
.button-disabled { color: #70706c; border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.015); cursor: default; }
.hero-status {
  margin-top: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .78rem;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8d8d3;
  box-shadow: 0 0 18px rgba(255,255,255,.55);
}

.about, .founders, .work, .community { padding: 126px 0; border-bottom: 1px solid var(--line); }
.split-grid, .community-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 90px; align-items: start; }
h2 {
  margin: 17px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 720;
}
.about-copy p, .community-copy p, .work-content p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}
.about-copy p:first-child { margin-top: 4px; }
.about-copy p + p { margin-top: 24px; }

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}
.section-heading-row > p { max-width: 340px; margin: 0; color: var(--muted); line-height: 1.65; }

.founder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.founder-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.founder-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: rgba(255,255,255,.035); }
.founder-index {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}
.founder-card h3 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.role { margin: 6px 0 0; color: #b8b8b3; font-size: .79rem; letter-spacing: .06em; text-transform: uppercase; }
.founder-focus { margin: 0; align-self: end; color: var(--muted); line-height: 1.65; max-width: 43ch; }

.work-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
}
.work-topline {
  min-height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.work-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; }
.work-content {
  min-height: 430px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 50px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.work-content h2 { margin-top: 0; }
.work-content p { max-width: 560px; }
.work-mark {
  justify-self: end;
  align-self: center;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.035);
  user-select: none;
}

.community-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.community-copy p { margin-top: 0; }
.community-copy small { color: var(--faint); line-height: 1.5; }

.site-footer { padding: 46px 0 56px; }
.footer-grid { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.footer-brand { font-weight: 820; letter-spacing: .08em; }
.site-footer p { margin: 8px 0 0; color: var(--faint); font-size: .82rem; }
.footer-meta { display: flex; gap: 24px; flex-wrap: wrap; color: var(--faint); font-size: .76rem; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #0a0a0a;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 46px; display: flex; align-items: center; padding: 0 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a:last-child { border-bottom: 0; }
  .split-grid, .community-grid { grid-template-columns: 1fr; gap: 42px; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .work-content { grid-template-columns: 1fr; min-height: 390px; padding: 38px; }
  .work-mark { position: absolute; right: 24px; bottom: 6px; }
}

@media (max-width: 620px) {
  .nav-wrap, .section-shell { width: min(100% - 28px, var(--max)); }
  .brand-sub { display: none; }
  .hero { min-height: 680px; }
  .hero-inner { width: min(100% - 28px, 900px); padding: 78px 0 70px; }
  .hero-logo { width: min(430px, 96%); }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.6rem); }
  .about, .founders, .work, .community { padding: 88px 0; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-card { min-height: 255px; }
  .work-content { padding: 30px 24px 120px; }
  .work-topline { align-items: flex-start; flex-direction: column; justify-content: center; padding: 16px 20px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

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

@media (max-width: 620px) {
  .brand-logo { width: 102px; }
}
