:root {
  --bg: #06080c;
  --surface: #0d121a;
  --text: #eaf1f7;
  --muted: #8b98a8;
  --cyan: #2ee6ff;
  --blue: #3d5bff;
  --line: #1a2330;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(46, 230, 255, 0.3);
  color: #ffffff;
}

.wrap {
  width: 100%;
  max-width: calc(720px + 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3,
p,
address {
  margin: 0;
}

address {
  font-style: normal;
}

a {
  color: var(--cyan);
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 86vh;
  min-height: 86svh;
  border-bottom: 1px solid var(--line);
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
}

.a1 {
  top: -38vmax;
  left: -28vmax;
  background: radial-gradient(closest-side, rgba(46, 230, 255, 0.2), rgba(46, 230, 255, 0));
}

.a2 {
  bottom: -44vmax;
  right: -30vmax;
  background: radial-gradient(closest-side, rgba(61, 91, 255, 0.3), rgba(61, 91, 255, 0));
}

.field {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}

.hero-inner {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.name {
  font-size: clamp(2.5rem, 10.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
  filter: drop-shadow(0 0 32px rgba(46, 230, 255, 0.18));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .name {
    background: linear-gradient(100deg, #ffffff 10%, #dce8f2 55%, #8fe9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.llc {
  display: inline-block;
  vertical-align: 0.55em;
  margin-left: 0.15em;
  padding: 0.3em 0.5em 0.25em;
  border: 1px solid rgba(46, 230, 255, 0.45);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.32em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  background: rgba(46, 230, 255, 0.06);
}

.tagline {
  margin-top: 1.25rem;
  max-width: 30ch;
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--text);
}

.coords {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.coords::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  vertical-align: 0.05em;
}

/* Sections */

.section {
  padding-top: 5rem;
}

h2 {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2::after {
  content: "";
  flex: 1;
  height: 1px;
  align-self: center;
  background: linear-gradient(90deg, var(--line), transparent);
}

.num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.lede {
  font-size: clamp(1.25rem, 3.8vw, 1.6rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* Cards */

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease);
}

/* Rotating gradient ring */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0deg 200deg, rgba(46, 230, 255, 0.9) 290deg, rgba(61, 91, 255, 0.9) 335deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Cursor spotlight, position set by main.js */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(360px circle at var(--mx, 30%) var(--my, 0%), rgba(46, 230, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::after,
.card:focus-within::after {
  opacity: 1;
}

.card:focus-within {
  box-shadow: inset 0 0 0 1px rgba(46, 230, 255, 0.6);
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(90deg, var(--cyan), var(--blue)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s ease;
}

/* Whole card is clickable */
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card h3 a:focus-visible {
  outline: none;
}

.card:hover h3 a,
.card h3 a:focus-visible {
  color: #ffffff;
  background-size: 100% 2px;
}

.arrow {
  display: inline-block;
  margin-left: 0.3em;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--cyan);
  transition: transform 0.45s var(--ease);
}

.card:hover .arrow,
.card h3 a:focus-visible .arrow {
  transform: translate(3px, -3px);
}

.card-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.card p {
  color: #c3ceda;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 2rem;
}

.label {
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.email {
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--cyan), var(--blue)) left bottom / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--ease), color 0.3s ease;
}

.email:hover {
  color: #ffffff;
  background-size: 100% 2px;
}

.founder {
  margin-top: 1.25rem;
  color: var(--muted);
}

address {
  line-height: 1.6;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 6rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 600px) {
  .hero-inner {
    padding-bottom: 4rem;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Motion, only for people who have not asked to reduce it */

@media (prefers-reduced-motion: no-preference) {
  .a1 {
    animation: drift-a 24s ease-in-out infinite alternate;
  }

  .a2 {
    animation: drift-b 30s ease-in-out infinite alternate;
  }

  .aurora span {
    will-change: transform;
  }

  /* The name moves but never starts hidden */
  .name {
    animation: name-in 1s var(--ease) both;
  }

  .tagline {
    animation: fade-up 0.9s 0.15s var(--ease) both;
  }

  .coords {
    animation: fade-up 0.9s 0.3s var(--ease) both;
  }

  .card::before {
    animation: spin 7s linear infinite;
  }

  .card:hover {
    transform: translateY(-2px);
  }

  /* Hidden only after main.js confirms it is running (adds .js) */
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(14vmax, 8vmax, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-16vmax, -6vmax, 0) scale(0.92); }
}

@keyframes name-in {
  from { transform: translateY(0.22em); }
  to { transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  to { --angle: 360deg; }
}

@media print {
  .aurora,
  .field {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
