:root {
  color-scheme: dark;
  --ink: #f3f8f5;
  --muted: #9fb4ac;
  --faint: #6f857d;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --bg: #05110f;
  --bg-2: #081c18;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --green: #2fd9a8;
  --green-deep: #176b5f;
  --teal: #21c7d6;
  --gold: #f3b94d;
  --violet: #9b7cff;
  --sky: #4fa8ff;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 40px 100px rgba(0, 0, 0, 0.55);
  --glow-green: 0 0 0 1px rgba(47, 217, 168, 0.25), 0 22px 60px rgba(47, 217, 168, 0.18);
  --radius: 18px;
  --radius-lg: 26px;
  --pad-x: clamp(20px, 6vw, 96px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-2), var(--bg) 60%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

/* ---------- Ambient background ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-aurora .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.blob-1 {
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(47, 217, 168, 0.55), transparent 70%);
  animation: drift1 26s ease-in-out infinite alternate;
}

.blob-2 {
  top: 30%;
  left: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(79, 168, 255, 0.4), transparent 70%);
  animation: drift2 32s ease-in-out infinite alternate;
}

.blob-3 {
  bottom: -220px;
  left: 40%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(155, 124, 255, 0.32), transparent 70%);
  animation: drift3 30s ease-in-out infinite alternate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 17, 15, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--green), var(--teal));
  box-shadow: 0 8px 24px rgba(47, 217, 168, 0.35);
  color: #04201b;
  font-weight: 900;
}

.brand-symbol.large {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 16px;
  font-size: 1.4rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  border-color: rgba(47, 217, 168, 0.6);
  background: rgba(47, 217, 168, 0.12);
  transform: translateY(-1px);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h1, h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 6.2vw, 5.3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.grad-text {
  background: linear-gradient(110deg, var(--green) 10%, var(--teal) 50%, var(--sky) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(40px, 5vw, 76px);
  padding: clamp(56px, 8vw, 104px) var(--pad-x) clamp(48px, 6vw, 88px);
}

.hero-lede {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 14px 34px rgba(47, 217, 168, 0.32);
  color: #042019;
}

.button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(47, 217, 168, 0.45);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--ink);
}

.button.secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.button:hover .btn-arrow {
  transform: translateX(3px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 48px);
  margin: 48px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.stat dt {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat dd {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Portfolio orbit map ---------- */
.portfolio-map {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 540px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(47, 217, 168, 0.12), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.orbit-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.orbit-rings .ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.ring-1 {
  width: 58%;
  aspect-ratio: 1;
  border-color: rgba(47, 217, 168, 0.28);
  animation: spin 34s linear infinite;
  border-style: dashed;
}

.ring-2 {
  width: 78%;
  aspect-ratio: 1;
}

.ring-3 {
  width: 98%;
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.05);
}

.orbit-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--green-deep), #04130f);
  box-shadow:
    0 0 0 1px rgba(47, 217, 168, 0.35),
    0 22px 60px rgba(47, 217, 168, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-align: center;
}

.orbit-core strong {
  font-size: 1.3rem;
  line-height: 1;
}

.orbit-core span:not(.brand-symbol) {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
}

.orbit-node {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 11px 14px 11px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(12, 28, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  font-size: 0.86rem;
  font-weight: 700;
  animation: nodeFloat 6.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.orbit-node:hover {
  transform: scale(1.05);
  border-color: rgba(47, 217, 168, 0.55);
  box-shadow: 0 18px 44px rgba(47, 217, 168, 0.22);
}

.orbit-node img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.node-commerce { top: 60px; left: 44px; }
.node-links { top: 56px; right: 40px; animation-delay: -1.2s; }
.node-test { right: 26px; bottom: 168px; animation-delay: -2.1s; }
.node-recall { bottom: 56px; left: 70px; animation-delay: -3.4s; }
.node-quest { left: 30px; bottom: 184px; animation-delay: -4.2s; }
.node-cal { right: 92px; bottom: 50px; animation-delay: -5s; }

/* ---------- Sections ---------- */
.ventures,
.new-ventures,
.method {
  padding: clamp(64px, 8vw, 110px) var(--pad-x);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 0.64fr);
  gap: 36px;
  align-items: end;
  max-width: 1200px;
  margin: 0 auto 44px;
}

.venture-grid,
.build-grid {
  display: grid;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.live-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.build-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Cards ---------- */
.venture-card,
.build-card {
  position: relative;
  display: grid;
  overflow: hidden;
  align-content: start;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--panel-2), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.24s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.venture-card {
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto 1fr auto;
}

.build-card {
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto 1fr auto;
}

.card-body {
  grid-column: 1 / -1;
}

/* glowing accent line at top */
.venture-card::before,
.build-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent, linear-gradient(90deg, var(--green), var(--teal)));
  opacity: 0.85;
  pointer-events: none;
}

/* radial glow that appears on hover */
.venture-card::after,
.build-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(47, 217, 168, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.venture-card:hover,
.build-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.venture-card:hover::after,
.build-card:hover::after {
  opacity: 1;
}

.venture-card:nth-child(1) { --accent: linear-gradient(90deg, var(--green), var(--gold)); }
.venture-card:nth-child(2) { --accent: linear-gradient(90deg, var(--sky), var(--teal)); }
.venture-card:nth-child(3) { --accent: linear-gradient(90deg, var(--violet), var(--teal)); }
.venture-card:nth-child(4) { --accent: linear-gradient(90deg, var(--gold), var(--sky)); }
.build-card:nth-child(1) { --accent: linear-gradient(90deg, var(--green), var(--teal)); }
.build-card:nth-child(2) { --accent: linear-gradient(90deg, var(--violet), var(--sky)); }
.build-card:nth-child(3) { --accent: linear-gradient(90deg, var(--gold), var(--green)); }

.icon-stack {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
}

.venture-icon,
.build-icon {
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  transition: transform 0.24s ease;
}

.venture-icon { width: 64px; height: 64px; }
.build-icon { width: 72px; height: 72px; border-radius: 17px; }

.venture-card:hover .venture-icon,
.venture-card:hover .icon-stack .venture-icon,
.build-card:hover .build-icon {
  transform: scale(1.06) rotate(-2deg);
}

.shopify-badge {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #0a1c18;
  border-radius: 8px;
  background: #95bf47;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.card-kicker {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venture-card .card-body p:not(.card-kicker),
.build-card .card-body p:not(.card-kicker) {
  margin: 11px 0 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link span {
  transition: transform 0.2s ease;
}

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

.card-link:hover span {
  transform: translate(2px, -2px);
}

.card-status {
  justify-self: start;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-building {
  color: var(--green);
  background: rgba(47, 217, 168, 0.12);
  border-color: rgba(47, 217, 168, 0.35);
}

.status-new {
  color: var(--sky);
  background: rgba(79, 168, 255, 0.12);
  border-color: rgba(79, 168, 255, 0.35);
}

.status-future {
  color: var(--gold);
  background: rgba(243, 185, 77, 0.12);
  border-color: rgba(243, 185, 77, 0.35);
}

.new-ventures {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(155, 124, 255, 0.07), transparent 60%);
}

/* ---------- Method ---------- */
.method {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(320px, 0.5fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.direction-copy {
  max-width: 520px;
}

.method-lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.principles {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.principles li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.principles li:hover {
  transform: translateX(6px);
  border-color: rgba(47, 217, 168, 0.4);
  background: var(--panel-2);
}

.step-num {
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--green), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.principles strong {
  font-size: 1.08rem;
}

.principles p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  max-width: 1200px;
  margin: clamp(20px, 4vw, 48px) auto;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(47, 217, 168, 0.16), transparent 60%),
    var(--panel-2);
  box-shadow: var(--shadow-lift);
}

.cta-band h2 {
  margin: 0 auto;
  max-width: 18ch;
}

.cta-band p {
  margin: 16px auto 30px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  padding: 36px var(--pad-x);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-nav a {
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--green);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Legal page bridge ---------- */
.legal-header h1 {
  max-width: none;
  color: var(--ink);
}

/* ---------- Keyframes ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes drift1 {
  to { transform: translate(-60px, 50px) scale(1.1); }
}

@keyframes drift2 {
  to { transform: translate(70px, -40px) scale(1.08); }
}

@keyframes drift3 {
  to { transform: translate(-50px, -50px) scale(1.12); }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portfolio-map {
    min-height: 480px;
    max-width: 620px;
    width: 100%;
  }

  .live-grid,
  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section-heading,
  .method {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .direction-copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  .live-grid,
  .build-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-map {
    min-height: 440px;
  }

  .orbit-core {
    width: 132px;
    height: 132px;
  }

  .orbit-node {
    min-width: 124px;
    padding: 9px;
    font-size: 0.76rem;
  }

  .orbit-node img {
    width: 28px;
    height: 28px;
  }

  .node-commerce { top: 34px; left: 16px; }
  .node-links { top: 34px; right: 16px; }
  .node-test { right: 12px; bottom: 140px; }
  .node-recall { bottom: 34px; left: 30px; }
  .node-quest { left: 12px; bottom: 150px; }
  .node-cal { right: 44px; bottom: 30px; }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat dt {
    font-size: 2.1rem;
  }

  .portfolio-map {
    min-height: 400px;
    padding: 16px;
  }

  .orbit-node {
    min-width: auto;
    gap: 0;
    padding: 8px;
    font-size: 0;
  }

  .orbit-node img {
    width: 30px;
    height: 30px;
  }

  .venture-card,
  .build-card {
    grid-template-columns: 56px 1fr;
    padding: 24px;
  }

  .icon-stack,
  .venture-icon,
  .build-icon {
    width: 56px;
    height: 56px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
