:root {
  color-scheme: dark;
  --bg: #090b0c;
  --bg-soft: #101416;
  --ink: #f3f0e8;
  --muted: #aeb7b5;
  --quiet: #6f7a78;
  --line: rgba(243, 240, 232, 0.09);
  --line-strong: rgba(243, 240, 232, 0.14);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.072);
  --teal: #42e8cf;
  --amber: #ffb648;
  --blue: #7da6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(66, 232, 207, 0.18), transparent 28rem),
    radial-gradient(circle at 10% 18%, rgba(255, 182, 72, 0.12), transparent 24rem),
    linear-gradient(180deg, #0c0f10 0%, var(--bg) 54%, #070808 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.35;
  transform: translate3d(0, 0, 0);
}

.orb-one {
  top: 7%;
  right: -10rem;
  background: radial-gradient(circle, rgba(66, 232, 207, 0.35), transparent 65%);
  animation: drift-one 14s ease-in-out infinite alternate;
}

.orb-two {
  bottom: 2%;
  left: -12rem;
  background: radial-gradient(circle, rgba(255, 182, 72, 0.22), transparent 68%);
  animation: drift-two 18s ease-in-out infinite alternate;
}

.motion-lines {
  position: absolute;
  inset: 2rem auto auto 50%;
  width: min(92rem, 140vw);
  height: auto;
  opacity: 0.38;
  transform: translateX(-50%);
}

.earth-canvas {
  position: fixed;
  top: 9vh;
  right: -8vw;
  width: min(54rem, 72vw);
  height: min(54rem, 72vw);
  opacity: 0.42;
  filter: blur(0.2px) saturate(0.9);
  mix-blend-mode: screen;
}

.motion-lines path {
  fill: none;
  stroke: rgba(243, 240, 232, 0.25);
  stroke-dasharray: 12 22;
  stroke-width: 1;
  animation: trace 18s linear infinite;
}

.motion-lines path:nth-child(2) {
  animation-duration: 22s;
  animation-direction: reverse;
  stroke: rgba(66, 232, 207, 0.22);
}

.motion-lines path:nth-child(3) {
  animation-duration: 26s;
  stroke: rgba(255, 182, 72, 0.2);
}

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

.section-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(1rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(9, 11, 12, 0.68);
  backdrop-filter: blur(18px);
  transition:
    border-color 250ms ease,
    background 250ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(243, 240, 232, 0.1);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.78rem;
  place-items: center;
  transition:
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.brand:hover .brand-mark {
  border-color: rgba(66, 232, 207, 0.75);
  transform: rotate(-4deg) scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 4.5rem);
  align-items: center;
  padding: 5rem 0 4rem;
  perspective: 1200px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: clamp(4rem, 9vw, 7.7rem);
  line-height: 0.9;
  animation: rise-in 760ms ease both;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  line-height: 1.18;
}

.hero-lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
  animation: rise-in 760ms 90ms ease both;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover,
.contact-actions a:hover {
  transform: translateY(-2px);
}

.button.primary:hover,
.contact-actions a:first-child:hover {
  box-shadow: 0 18px 46px rgba(66, 232, 207, 0.2);
}

.button.secondary:hover,
.contact-actions a:last-child:hover {
  border-color: rgba(66, 232, 207, 0.75);
}

.button.primary,
.contact-actions a:first-child {
  background: var(--ink);
  color: #0b0d0e;
}

.button.secondary,
.contact-actions a:last-child {
  border: 0;
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
}

.founder-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  transform:
    rotateX(calc(var(--tilt-y, 0) * -1deg))
    rotateY(calc(var(--tilt-x, 0) * 1deg));
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.founder-panel::before {
  position: absolute;
  inset: -2rem -1rem auto auto;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(66, 232, 207, 0.13);
  border-radius: 50%;
  content: "";
  animation: halo 10s linear infinite;
}

.portrait {
  position: relative;
  display: grid;
  min-height: 420px;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(66, 232, 207, 0.24), transparent 38%),
    linear-gradient(315deg, rgba(125, 166, 255, 0.18), transparent 34%),
    #151a1d;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  place-items: center;
  transform: translateZ(28px);
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 28%;
  opacity: 1;
  filter: saturate(0.9) contrast(0.96) brightness(0.86);
  transform: scale(1.04);
}

.portrait::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 11, 12, 0.12), rgba(9, 11, 12, 0.56)),
    radial-gradient(circle at 40% 22%, rgba(255, 255, 255, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(66, 232, 207, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(255, 182, 72, 0.12), transparent 42%);
  content: "";
  mix-blend-mode: soft-light;
}

.portrait-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.16;
  animation: grid-slide 18s linear infinite;
  mix-blend-mode: overlay;
}

.signal-card,
.system-strip {
  border: 0;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  transform: translateZ(18px);
}

.signal-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem;
}

.signal-label {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-card strong {
  font-size: 1.2rem;
}

.signal-card a {
  color: var(--muted);
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.signal-card a:hover {
  color: var(--teal);
  transform: translateX(3px);
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.system-strip span {
  padding: 1rem 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.system-strip span:hover {
  background: rgba(66, 232, 207, 0.09);
  color: var(--ink);
}

.system-strip span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.055);
}

.thesis {
  border-block: 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.026), transparent);
  position: relative;
  overflow: hidden;
}

.thesis::before {
  position: absolute;
  inset: auto -10% -1px -10%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(66, 232, 207, 0.12), transparent 70%);
  content: "";
  animation: sweep 5s ease-in-out infinite;
}

.thesis-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.3fr;
  gap: 2rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.thesis-grid p:last-child,
.profile-copy p,
.focus-card p,
.thinking-list p {
  color: var(--muted);
  line-height: 1.65;
}

.thesis-grid p:last-child {
  max-width: 620px;
  font-size: 1.2rem;
}

.approach-section,
.focus-section,
.profile-section,
.thinking-section {
  padding: clamp(5.5rem, 9vw, 8rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.48fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.approach-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.approach-copy {
  position: sticky;
  top: 6rem;
}

.approach-copy p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.approach-grid {
  display: grid;
  gap: 1rem;
}

.approach-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 1.35rem;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.approach-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(255, 182, 72, 0.16), transparent 18rem);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.approach-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 182, 72, 0.18),
    0 24px 70px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.approach-card:hover::before {
  opacity: 1;
}

.approach-card > * {
  position: relative;
  z-index: 1;
}

.approach-card span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.approach-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.focus-card {
  min-height: 320px;
  padding: 1.35rem;
  border: 0;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  position: relative;
  overflow: hidden;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.focus-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(66, 232, 207, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(255, 182, 72, 0.08), transparent 38%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.focus-card:hover {
  background: var(--panel-strong);
  box-shadow:
    inset 0 0 0 1px rgba(66, 232, 207, 0.18),
    0 24px 70px rgba(0, 0, 0, 0.24);
  transform: translateY(-6px);
}

.focus-card:hover::before {
  opacity: 1;
}

.focus-card > * {
  position: relative;
  z-index: 1;
}

.js-ready .focus-card,
.js-ready .approach-card,
.js-ready .metrics div,
.js-ready .thinking-list article {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.js-ready .focus-card.is-visible,
.js-ready .approach-card.is-visible,
.js-ready .metrics div.is-visible,
.js-ready .thinking-list article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-index {
  display: inline-flex;
  margin-bottom: 5rem;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
}

.profile-section {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  border-top: 0;
}

.profile-copy p {
  font-size: 1.04rem;
}

.metrics {
  display: grid;
  gap: 1rem;
}

.metrics div {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem;
  border: 0;
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  transition:
    border-color 220ms ease,
    transform 220ms ease;
}

.metrics div:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 182, 72, 0.2),
    0 18px 52px rgba(0, 0, 0, 0.18);
  transform: translateX(6px);
}

.metrics strong {
  color: var(--teal);
  font-size: 2.4rem;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  line-height: 1.45;
}

.thinking-section {
  border-top: 0;
}

.thinking-list {
  display: grid;
  gap: 0;
  border-top: 0;
}

.thinking-list article {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 220ms ease,
    transform 220ms ease;
}

.thinking-list article:hover {
  border-color: rgba(66, 232, 207, 0.18);
  transform: translateX(8px);
}

.thinking-list p {
  margin-bottom: 0;
}

.contact-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(66, 232, 207, 0.2), transparent 22rem),
    var(--ink);
  color: #090b0c;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  position: absolute;
  inset: -8rem -10rem auto auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(66, 232, 207, 0.16);
  content: "";
  filter: blur(24px);
  animation: drift-two 11s ease-in-out infinite alternate;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 2rem;
  align-items: center;
}

.contact-section .section-kicker {
  color: #0d756a;
}

.contact-section h2 {
  max-width: 780px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-actions a:first-child {
  background: #090b0c;
  color: var(--ink);
}

.contact-actions a:last-child {
  background: rgba(9, 11, 12, 0.07);
  color: #090b0c;
}

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

  .hero,
  .thesis-grid,
  .approach-section,
  .section-heading,
  .profile-section,
  .contact-grid,
  .thinking-list article {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  h1 {
    max-width: 11ch;
  }

  .portrait {
    min-height: 340px;
  }

  .earth-canvas {
    top: 8rem;
    right: -20vw;
    width: 95vw;
    height: 95vw;
    opacity: 0.24;
  }

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

  .approach-copy {
    position: static;
  }

  .focus-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 2.2rem;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .section-wrap {
    width: min(100% - 1.25rem, 1120px);
  }

  .topbar {
    padding-inline: 0.75rem;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-actions a {
    width: 100%;
  }

  .portrait {
    min-height: 300px;
  }

  .earth-canvas {
    top: 6rem;
    right: -36vw;
    width: 120vw;
    height: 120vw;
    opacity: 0.18;
  }
}

@keyframes drift-one {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-4rem, 3rem, 0) scale(1.12);
  }
}

@keyframes drift-two {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(5rem, -3rem, 0) scale(1.08);
  }
}

@keyframes trace {
  to {
    stroke-dashoffset: -420;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes halo {
  to {
    transform: rotate(360deg);
  }
}

@keyframes grid-slide {
  to {
    background-position: 34px 34px;
  }
}

@keyframes sweep {
  0%,
  100% {
    transform: translateX(-45%);
  }

  50% {
    transform: translateX(45%);
  }
}

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