:root {
  --bg: #070a10;
  --panel: rgba(12, 18, 27, 0.74);
  --panel-strong: rgba(17, 27, 39, 0.86);
  --text: #f4f8fb;
  --muted: #9badba;
  --line: rgba(196, 230, 238, 0.16);
  --line-strong: rgba(49, 215, 255, 0.44);
  --cyan: #31d7ff;
  --green: #37e89b;
  --gold: #ffbf45;
  --red: #ff6b5d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(130deg, rgba(49, 215, 255, 0.13), transparent 30%),
    linear-gradient(24deg, rgba(55, 232, 155, 0.1), transparent 36%),
    radial-gradient(circle at 78% 18%, rgba(255, 191, 69, 0.12), transparent 26%),
    linear-gradient(180deg, #071015 0%, #0b111b 58%, #05070b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 0 24%, rgba(49, 215, 255, 0.18) 24.15% 24.45%, transparent 24.65%),
    linear-gradient(116deg, transparent 0 58%, rgba(55, 232, 155, 0.12) 58.15% 58.5%, transparent 58.7%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 82%);
}

.orbit-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: screen;
}

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

.home-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 14vh, 140px) 0;
}

.hero {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(56px, 8vw, 92px);
}

.compact-hero {
  margin-bottom: clamp(34px, 5vw, 58px);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #061015;
  background: linear-gradient(135deg, var(--cyan), var(--green) 68%, var(--gold));
  box-shadow: 0 0 44px rgba(49, 215, 255, 0.26);
  font-weight: 860;
}

.brand-mark:focus-visible,
.project-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.88;
  text-shadow: 0 0 38px rgba(49, 215, 255, 0.16);
}

.summary {
  max-width: 640px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.65;
}

h2 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 780;
  letter-spacing: 0;
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-kicker h2 {
  margin: 0;
}

.section-kicker span {
  color: rgba(244, 248, 251, 0.48);
  font-size: 0.78rem;
  font-weight: 780;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading a {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(49, 215, 255, 0.34);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(49, 215, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 760;
}

.project-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.project-card {
  --card-a: var(--cyan);
  --card-b: var(--green);
  --card-c: var(--gold);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-height: 224px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--card-a), transparent 58%), transparent 48%),
    linear-gradient(24deg, color-mix(in srgb, var(--card-b), transparent 66%), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 22% 20%, color-mix(in srgb, var(--card-a), transparent 28%), transparent 30%),
    radial-gradient(circle at 78% 14%, color-mix(in srgb, var(--card-c), transparent 36%), transparent 26%),
    linear-gradient(180deg, rgba(5, 9, 14, 0.08), rgba(5, 9, 14, 0.68));
  opacity: 0.78;
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 7px;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.28) 42%, transparent 50%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.36));
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 180ms ease, transform 260ms ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--card-a), white 18%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 48px color-mix(in srgb, var(--card-a), transparent 62%);
  transform: translateY(-6px);
}

.project-card:hover::before {
  opacity: 1;
  transform: scale(1.035);
}

.project-card:hover::after {
  opacity: 0.7;
  transform: translateX(22%);
}

.crawler-card {
  --card-a: #a98cff;
  --card-b: var(--cyan);
  --card-c: var(--red);
}

.advisor-card {
  --card-a: var(--green);
  --card-b: var(--cyan);
  --card-c: var(--gold);
}

.video-card {
  --card-a: var(--red);
  --card-b: var(--gold);
  --card-c: var(--cyan);
}

.project-index {
  position: absolute;
  right: 18px;
  top: 16px;
  color: rgba(244, 248, 251, 0.24);
  font-size: 3.45rem;
  font-weight: 860;
  line-height: 0.86;
}

.project-kind {
  position: relative;
  width: fit-content;
  align-self: start;
  grid-column: 1;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 11, 16, 0.36);
  font-size: 0.78rem;
  font-weight: 740;
  backdrop-filter: blur(14px);
}

.project-card strong {
  grid-column: 1;
  max-width: 100%;
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 830;
  line-height: 1;
  overflow-wrap: normal;
  word-break: keep-all;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

.project-copy {
  max-width: 38ch;
  align-self: end;
  color: rgba(244, 248, 251, 0.76);
  font-size: 1rem;
  line-height: 1.55;
}

.todo {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(49, 215, 255, 0.08), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow);
}

.video-feature {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 107, 93, 0.09), transparent 52%),
    var(--panel);
  box-shadow: var(--shadow);
}

.video-title-row {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
}

.video-title-row h1 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 7.6rem);
  white-space: nowrap;
}

.video-title-row .video-emblem-link {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(74px, 8vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 174, 236, 0.28), transparent 54%),
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.14), transparent 28%);
  transition: transform 180ms ease, filter 180ms ease;
}

.video-title-row .video-emblem-link::before,
.video-title-row .video-emblem-link::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 215, 255, 0.26);
  inset: 8%;
  transform: rotate(16deg);
}

.video-title-row .video-emblem-link::after {
  inset: 18%;
  border-color: rgba(255, 107, 157, 0.34);
  transform: rotate(-24deg);
}

.video-title-row .video-emblem-link:hover {
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 0 34px rgba(0, 174, 236, 0.42));
}

.section-heading a:hover {
  border-color: rgba(49, 215, 255, 0.58);
  background: rgba(49, 215, 255, 0.12);
}

.video-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66%;
  aspect-ratio: 1.28;
  border: 2px solid rgba(227, 250, 255, 0.78);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #00aeec, #fb7299);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 24px 80px rgba(0, 174, 236, 0.34);
}

.video-emblem::before,
.video-emblem::after {
  content: "";
  position: absolute;
  top: -22%;
  width: 24%;
  height: 38%;
  border-radius: 999px;
  background: #e9fbff;
  transform-origin: bottom center;
}

.video-emblem::before {
  left: 24%;
  transform: rotate(-32deg);
}

.video-emblem::after {
  right: 24%;
  transform: rotate(32deg);
}

.video-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 72%;
  height: 58%;
}

.video-eye {
  position: absolute;
  top: 18%;
  width: 17%;
  height: 28%;
  border-radius: 50%;
  background: #061015;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.38);
}

.video-eye.left {
  left: 18%;
}

.video-eye.right {
  right: 18%;
}

.video-mouth {
  position: absolute;
  bottom: 10%;
  width: 44%;
  height: 18%;
  border: 4px solid #061015;
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.video-description {
  margin: -4px 0 16px;
  color: rgba(244, 248, 251, 0.76);
  line-height: 1.58;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #03060a;
  aspect-ratio: 16 / 9;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(49, 215, 255, 0.08), transparent 48%),
    rgba(3, 6, 10, 0.82);
}

.video-frame.has-embed .video-placeholder {
  display: none;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.todo ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo li {
  position: relative;
  padding-left: 22px;
  color: rgba(244, 248, 251, 0.82);
  line-height: 1.55;
}

.todo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 18px rgba(49, 215, 255, 0.34);
}

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 0 0;
  color: rgba(244, 248, 251, 0.52);
  font-size: 0.78rem;
}

.site-footer a {
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
  background: rgba(49, 215, 255, 0.07);
}

@media (max-width: 980px) {
  .project-mosaic {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-shell {
    width: min(100% - 28px, 1080px);
    padding: 56px 0 72px;
  }

  .section-kicker {
    align-items: start;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .project-card {
    min-height: 0;
    padding: 21px;
  }

  .project-card strong {
    font-size: 2.35rem;
  }

  .project-copy {
    max-width: 42ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}
