/* =========================================
   Laminar Flow Ventures — Stylesheet
   Modern minimalist, a16z-inspired
   ========================================= */

:root {
  /* Colors */
  --bg: #FAFAF7;
  --bg-alt: #F2F0EA;
  --bg-dark: #0B0E1A;
  --ink: #0A0E1A;
  --ink-soft: #3D4356;
  --ink-muted: #7B8194;
  --line: #E3E0D8;
  --accent: #1B4DAB;
  --accent-soft: #DDE5F4;
  --serif-accent: #1B4DAB;
  --white: #FFFFFF;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

/* =========================================
   Navigation
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.4) 3px,
      rgba(255, 255, 255, 0.4) 4px
    );
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 100px;
  transition: background 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 32px;
}

.serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--serif-accent);
}

.hero-subtitle {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 100px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--accent);
  color: var(--white);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  max-width: 800px;
}

.meta-item {
  flex: 1;
}

.meta-number {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: var(--font-serif);
}

.meta-label {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}

.meta-divider {
  width: 1px;
  height: 48px;
  background: var(--line);
}

/* Subtle flowing lines decoration */
.hero-flow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
  opacity: 0.06;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 14px,
      var(--ink) 14px,
      var(--ink) 15px
    );
  mask-image: radial-gradient(ellipse at right center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at right center, black 0%, transparent 70%);
}

/* =========================================
   Generic Section
   ========================================= */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

.section-header {
  max-width: 760px;
  margin-bottom: 80px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow-light {
  color: var(--accent-soft);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 600px;
}

/* =========================================
   Thesis
   ========================================= */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.thesis-card {
  background: var(--bg);
  padding: 48px;
  transition: background 0.3s var(--ease);
}

.thesis-card:hover {
  background: var(--white);
}

.card-number {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.thesis-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
}

.thesis-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================
   Portfolio
   ========================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  position: relative;
  color: inherit;
  text-decoration: none;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(10, 14, 26, 0.1);
  border-color: var(--ink);
}

.portfolio-card:hover .portfolio-link {
  color: var(--accent);
}

.portfolio-card:hover .portfolio-link span {
  transform: translateX(4px);
}

.portfolio-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.portfolio-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--ink);
}

.portfolio-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

.portfolio-stage {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  transition: color 0.2s var(--ease);
}

.portfolio-link span {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

/* =========================================
   Services
   ========================================= */
.services-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
}

.service-block {
  position: relative;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ink);
  position: relative;
  margin-bottom: 32px;
  overflow: hidden;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 4px,
      rgba(255, 255, 255, 0.5) 4px,
      rgba(255, 255, 255, 0.5) 5px
    );
}

.service-icon.icon-alt {
  background: var(--accent);
}

.service-block h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

.service-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 32px;
}

.service-block ul {
  list-style: none;
  padding: 0;
}

.service-block ul li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 16px;
  padding-left: 28px;
  position: relative;
}

.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 26px;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.service-block ul li:last-child {
  border-bottom: none;
}

/* =========================================
   CTA Section
   ========================================= */
.section-cta {
  background: var(--bg-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 32px,
      rgba(255, 255, 255, 0.03) 32px,
      rgba(255, 255, 255, 0.03) 33px
    );
  pointer-events: none;
}

.cta-block {
  max-width: 760px;
  position: relative;
}

.section-cta .section-title {
  color: var(--white);
}

.section-cta .serif-accent {
  color: #B7C8E9;
}

.cta-subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 560px;
}

.cta-actions {
  display: flex;
  gap: 16px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  padding: 40px 0;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--white);
}

.footer-meta {
  font-size: 13px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
  :root {
    --section-padding: 80px;
  }

  .container {
    padding: 0 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 140px 0 100px;
  }

  .hero-actions {
    margin-bottom: 64px;
  }

  .hero-meta {
    gap: 24px;
    flex-wrap: wrap;
  }

  .meta-divider {
    display: none;
  }

  .meta-item {
    flex-basis: calc(50% - 12px);
  }

  .thesis-grid,
  .portfolio-grid,
  .services-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .thesis-grid {
    border: none;
    background: transparent;
    gap: 1px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .thesis-card {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
  }

  .thesis-card:last-child {
    border-bottom: none;
  }

  .services-split {
    gap: 64px;
  }

  .section-header {
    margin-bottom: 48px;
  }
}

/* =========================================
   Subtle Reveal Animations
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
