/* Thiel Ventures — dark, gradient-forward (modern landing reference) */

:root {
  --bg: #050507;
  --bg-raised: #0c0c0f;
  --bg-card: #12121a;
  --bg-card-hover: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --gradient: linear-gradient(135deg, #4d77ff 0%, #6366f1 45%, #a07cf0 100%);
  --gradient-soft: linear-gradient(135deg, rgba(77, 119, 255, 0.2), rgba(160, 124, 240, 0.15));
  --glow: 0 0 40px rgba(77, 119, 255, 0.25), 0 0 80px rgba(160, 124, 240, 0.12);
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --space-section: clamp(5rem, 12vw, 8rem);
  --max: 1180px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #09090b;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  max-width: 640px;
}

/* —— Header —— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text-muted);
}

@media (min-width: 901px) {
  .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--text);
}

.header-aside {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.icon-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 0.55rem 1.2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  box-shadow: 0 2px 16px rgba(77, 119, 255, 0.35);
  white-space: nowrap;
}

.nav-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 24px rgba(77, 119, 255, 0.45);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  border-radius: 10px;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    padding: 0 1rem 0.75rem;
    pointer-events: none;
    z-index: 50;
    order: 4;
    width: 100%;
  }

  .nav.is-open {
    pointer-events: auto;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    order: 2;
    margin-left: auto;
    margin-right: 0.75rem;
  }

  .header-aside {
    order: 3;
  }

  .logo {
    order: 1;
  }

  .header-social {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    padding: 0;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
  }

  .nav.is-open .nav-list {
    max-height: 320px;
    opacity: 1;
    padding: 0.5rem 0;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 1.25rem;
  }
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: min(92vh, 900px);
  padding: calc(var(--header-h) + clamp(3rem, 10vw, 5rem)) 0 clamp(3rem, 8vw, 5rem);
  display: flex;
  align-items: center;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(77, 119, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(160, 124, 240, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(77, 119, 255, 0.12), transparent 45%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-color: #030308;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 75%);
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.2) 0%, rgba(5, 5, 7, 0.75) 55%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a5b4fc;
  background: rgba(77, 119, 255, 0.15);
  border: 1px solid rgba(129, 161, 255, 0.35);
  border-radius: var(--radius-pill);
}

.hero-title {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-tagline {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-arrow {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: var(--glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline--on-dark {
  border-color: var(--border-strong);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stat {
    flex-direction: column;
    align-items: center;
  }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.25rem;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(129, 161, 255, 0.25);
  box-shadow: 0 0 24px rgba(77, 119, 255, 0.15);
}

.hero-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* —— Sections —— */

.section {
  padding: var(--space-section) 0;
}

.section-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-intro {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Philosophy */

.section-philosophy {
  border-top: 1px solid var(--border);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

.philosophy-copy h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.philosophy-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.philosophy-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.philosophy-features li {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}

.philosophy-features li:first-child {
  padding-top: 0;
}

.feature-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid rgba(129, 161, 255, 0.3);
  box-shadow: 0 0 20px rgba(77, 119, 255, 0.12);
}

.philosophy-features strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.philosophy-features span:last-child {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Ops */

.section-ops {
  background: var(--bg-raised);
  border-block: 1px solid var(--border);
}

.ops-head {
  margin-bottom: 2.5rem;
}

.ops-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ops-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .ops-cols {
    grid-template-columns: 1fr;
  }
}

.ops-col {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ops-title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.ops-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.ops-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--gradient);
}

/* Ventures */

.section-ventures {
  border-bottom: 1px solid var(--border);
}

.ventures-head {
  margin-bottom: 2.5rem;
}

.ventures-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.venture-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .venture-cards {
    grid-template-columns: 1fr;
  }
}

.venture-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.venture-card:hover {
  border-color: rgba(129, 161, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.venture-card-media {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.venture-card-media--a {
  background-image: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 40%, #4d77ff55 100%),
    radial-gradient(circle at 20% 80%, rgba(160, 124, 240, 0.5), transparent 50%);
}

.venture-card-media--b {
  background-image: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #a07cf055 100%),
    radial-gradient(circle at 80% 20%, rgba(77, 119, 255, 0.45), transparent 55%);
}

.venture-card-media--c {
  background-image: linear-gradient(135deg, #18181b 0%, #27272a 45%, #6366f166 100%),
    radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.4), transparent 45%);
}

.venture-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.venture-card-body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.venture-card-body p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.venture-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #a5b4fc;
  text-decoration: none;
}

.venture-link:hover {
  color: #c4d4ff;
}

/* Why */

.section-why {
  background: var(--bg-raised);
}

.section-why h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1.0625rem;
}

/* Contact */

.section-contact {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
}

.contact-wrap {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.contact-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-sub {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.contact-form {
  text-align: left;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.contact-form label span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(129, 161, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 119, 255, 0.15);
}

.contact-form .btn-primary {
  margin-top: 0.25rem;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  text-align: center;
}

.form-status.is-error {
  color: #fca5a5;
}

.form-status.is-success {
  color: #86efac;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-meta-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: left;
}

.contact-meta-icon {
  display: flex;
  color: #a5b4fc;
  margin-top: 0.15rem;
}

.contact-meta-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.contact-meta-item a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.contact-meta-item a:hover {
  color: #a5b4fc;
}

.contact-meta-value {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding-top: clamp(3rem, 6vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem 2.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.footer-mission {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 28ch;
}

.footer-social {
  display: flex;
  gap: 0.35rem;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bar {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-top {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}

.footer-top:hover {
  color: #c4d4ff;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
