:root {
  --background: oklch(0.17 0.026 258);
  --foreground: oklch(0.96 0.006 250);
  --surface: oklch(0.21 0.028 258);
  --surface-raised: oklch(0.25 0.03 258);
  --card: oklch(0.21 0.028 258);
  --card-foreground: oklch(0.96 0.006 250);
  --muted-foreground: oklch(0.68 0.02 250);
  --border: oklch(0.31 0.03 258);
  --primary: oklch(0.78 0.13 195);
  --primary-foreground: oklch(0.16 0.03 250);
  --teal: oklch(0.78 0.13 195);
  --violet: oklch(0.72 0.12 285);
  --destructive: oklch(0.62 0.19 22);
  --radius-2xl: calc(var(--radius) + 8px);
  --shadow-panel: 0 24px 70px -30px oklch(0.08 0.03 258 / 0.9);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(17, 20, 33, 0.85);
  backdrop-filter: blur(16px);
}

.top-nav {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--primary);
}

.brand-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link,
.footer-nav a,
.social-links a,
.contact-links a {
  position: relative;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-link::after,
.footer-nav a::after,
.social-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.35rem 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.footer-nav a:hover,
.social-links a:hover,
.contact-links a:hover {
  color: var(--foreground);
}

.nav-link:hover::after,
.nav-link.active::after,
.footer-nav a:hover::after,
.social-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-cta {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(126, 198, 255, 0.5);
  background: rgba(126, 198, 255, 0.12);
  color: var(--primary);
}

.button {
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  font-size: 0.8rem;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button.primary:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.button.secondary {
  border-color: rgba(126, 198, 255, 0.35);
  background: rgba(13, 18, 29, 0.5);
  color: var(--foreground);
}

.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--foreground);
  margin: 4px 0;
  border-radius: 999px;
}

.nav-panel-mobile {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  background: rgba(17, 20, 33, 0.96);
}

.nav-panel-mobile.open {
  display: flex;
}

.nav-panel-mobile .nav-link,
.nav-panel-mobile .nav-cta {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.aurora {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.aurora::before {
  width: 42rem;
  height: 42rem;
  top: -14rem;
  right: -10rem;
  background: color-mix(in oklab, var(--teal) 28%, transparent);
  animation: drift-a 18s ease-in-out infinite alternate;
}

.aurora::after {
  width: 34rem;
  height: 34rem;
  bottom: -14rem;
  left: -8rem;
  background: color-mix(in oklab, var(--violet) 22%, transparent);
  animation: drift-b 22s ease-in-out infinite alternate;
}

.grid-mesh,
.network-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grid-mesh {
  background-image: linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.6;
}

.network-backdrop {
  opacity: 0.7;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 10rem 0 7rem;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-inner h1 {
  margin: 1.5rem 0 0;
  max-width: 64rem;
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.text-gradient-accent {
  background: linear-gradient(100deg, oklch(0.78 0.13 195) 0%, oklch(0.7 0.13 235) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 1.75rem;
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: 1.08rem;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.credibility-strip {
  list-style: none;
  padding: 0;
  margin: 4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
}

.credibility-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 23, 37, 0.55);
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.credibility-strip li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
}

.content-section,
.services-section,
.insights-section {
  position: relative;
}

.section-inner,
.hero-inner,
.footer-inner,
.footer-bottom {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section-inner {
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 40rem;
}

.section-heading h2 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.about-grid,
.contact-grid {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.portrait-wrap {
  position: relative;
}

.portrait-frame {
  padding: 1.5px;
  border-radius: 1.5rem;
  background: linear-gradient(150deg, rgba(126,198,255,0.9), transparent 55%, rgba(157,120,255,0.7));
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.03);
}

.stat-line {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.stat-number {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 3rem;
  color: var(--primary);
}

.copy-stack {
  margin-top: 2rem;
  display: grid;
  gap: 1.2rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.inline-link {
  margin-top: 2rem;
}

.services-section {
  background: rgba(29,36,54,0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-grid {
  display: grid;
  margin-top: 3rem;
  gap: 1.3rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.insight-card,
.contact-form,
.venture-card {
  background: rgba(12, 16, 25, 0.7);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-panel);
}

.service-card {
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.insight-card:hover,
.venture-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 198, 255, 0.45);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: rgba(126, 198, 255, 0.12);
  color: var(--primary);
}

.service-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.service-card h3 {
  margin: 1.5rem 0 0;
  font-size: 1.06rem;
  line-height: 1.35;
}

.service-card p {
  margin: 0.9rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.9rem;
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.venture-card {
  position: relative;
  padding: 1.7rem 1.6rem;
  overflow: hidden;
}

.venture-card.teal {
  background: linear-gradient(150deg, rgba(126,198,255,0.12), rgba(17,20,33,0.9));
}

.venture-card.violet {
  background: linear-gradient(150deg, rgba(157,120,255,0.15), rgba(17,20,33,0.9));
}

.venture-card .bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--teal);
}

.venture-card.violet .bar {
  background: var(--violet);
}

.venture-label {
  margin: 0;
  color: var(--teal);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.venture-card.violet .venture-label {
  color: var(--violet);
}

.venture-card h3 {
  margin: 1.3rem 0 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.venture-card p {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.inline-venture-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--violet);
  font-weight: 600;
}

.inline-venture-link::after {
  content: "↗";
}

.insights-section {
  background: rgba(29,36,54,0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.insight-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

.insight-date {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.insight-card h3 {
  margin: 1.2rem 0 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.insight-card p {
  margin: 0.9rem 0 0;
  flex: 1;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.insight-card a {
  margin-top: 1.4rem;
  color: var(--primary);
  font-weight: 600;
}

.contact-copy {
  display: flex;
  flex-direction: column;
}

.contact-lead {
  margin-top: 1.5rem;
  max-width: 28rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.contact-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(18,23,37,0.55);
}

.contact-links a::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0.26rem rgba(126,198,255,0.12);
}

.contact-form {
  padding: 1.4rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: rgba(8, 11, 18, 0.6);
  border-radius: 0.75rem;
  color: var(--foreground);
  padding: 0.9rem 1rem;
  font: inherit;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(126, 198, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(126, 198, 255, 0.2);
}

.field textarea {
  min-height: 7.5rem;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.error-message {
  min-height: 1rem;
  margin: 0.35rem 0 0;
  color: var(--destructive);
  font-size: 0.7rem;
}

.char-count {
  color: rgba(230,236,255,0.7);
  font-size: 0.7rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.success-panel {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(126, 198, 255, 0.15);
  color: var(--primary);
  font-weight: 700;
}

.success-panel h3 {
  margin: 0;
  font-size: 1.2rem;
}

.success-panel p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.reset-form {
  background: none;
  border: none;
  color: var(--primary);
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(14,17,26,0.7);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem 0 2rem;
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand-block p {
  margin-top: 0.9rem;
  max-width: 18rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.8rem;
}

.footer-nav,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.5rem;
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 0 2.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.signature {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-5rem, 4rem, 0) scale(1.15); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(4rem, -3rem, 0) scale(0.95); }
}

@keyframes pulse-node {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -240; }
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-primary {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .top-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .about-grid,
  .contact-grid,
  .service-grid,
  .ventures-grid {
    grid-template-columns: 1fr;
  }

  .section-inner,
  .footer-inner,
  .footer-bottom,
  .hero-inner {
    width: min(100%, calc(100% - 1.5rem));
  }

  .hero-inner {
    padding-top: 8.5rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .footer-inner,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
