:root {
  color-scheme: dark;
  --bg: #07090f;
  --surface: rgba(19, 24, 34, 0.72);
  --surface-strong: rgba(28, 35, 48, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f7fb;
  --muted: #a8b3c7;
  --cyan: #5bcefa;
  --jade: #32dca0;
  --amber: #ffb74d;
  --rose: #ff6f91;
  --violet: #a78bfa;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(91, 206, 250, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(255, 111, 145, 0.14), transparent 26rem),
    linear-gradient(135deg, #07090f 0%, #0f1118 48%, #0b1012 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  left: 1rem;
  position: fixed;
  top: -4rem;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.cursor-glow {
  --x: 50vw;
  --y: 35vh;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at var(--x) var(--y), rgba(91, 206, 250, 0.16), transparent 20rem);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.62);
  border-bottom: 1px solid transparent;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 0;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 15, 0.86);
  border-color: var(--line);
}

.brand,
.nav-links,
.header-actions {
  align-items: center;
  display: flex;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(91, 206, 250, 0.22), rgba(50, 220, 160, 0.18));
}

.nav-links {
  gap: clamp(0.8rem, 2.6vw, 2rem);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.mobile-menu a:hover,
.mini-link:hover {
  color: var(--text);
}

.header-actions {
  gap: 0.6rem;
}

.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  height: 2.45rem;
  justify-content: center;
  position: relative;
  width: 2.45rem;
}

.icon-button svg {
  height: 1.1rem;
  width: 1.1rem;
}

[data-tooltip]::after {
  background: #f7fafc;
  border-radius: 6px;
  color: #10131a;
  content: attr(data-tooltip);
  font-size: 0.74rem;
  opacity: 0;
  padding: 0.25rem 0.45rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  transform: translateY(-0.2rem);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  background: rgba(9, 12, 19, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  position: fixed;
  right: 1rem;
  top: 4.75rem;
  width: min(18rem, calc(100vw - 2rem));
  z-index: 30;
}

.hero-section {
  min-height: 96svh;
  overflow: hidden;
  padding: 8rem clamp(1rem, 5vw, 4.5rem) 4rem;
  position: relative;
}

.hero-grid,
.hero-noise {
  inset: 0;
  position: absolute;
}

.hero-grid {
  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: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  transform: translateY(var(--scroll, 0));
}

.hero-noise {
  background:
    linear-gradient(115deg, rgba(91, 206, 250, 0.1), transparent 42%),
    linear-gradient(245deg, rgba(255, 183, 77, 0.1), transparent 40%);
}

.hero-content {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(19rem, 0.68fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72svh;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.4rem, 9.6vw, 7.8rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 1.3rem;
  max-width: 8ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.hero-lede {
  color: #d9e2f0;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  max-width: 44rem;
}

.hero-actions,
.tool-row,
.metric-strip,
.prompt-chips,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-action,
.secondary-action {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--cyan), var(--jade));
  color: #071015;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.icon-button:hover,
.prompt-chips button:hover {
  transform: translateY(-2px);
}

.primary-action svg,
.secondary-action svg {
  height: 1.1rem;
  width: 1.1rem;
}

.compact {
  min-height: 2.8rem;
}

.signal-panel,
.dash-panel,
.chat-shell,
.contact-form,
.contact-links {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel {
  display: grid;
  gap: 1.35rem;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
}

.signal-panel::before {
  background: linear-gradient(90deg, var(--cyan), var(--jade), var(--amber), var(--rose));
  content: "";
  height: 0.24rem;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.overview-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
}

.overview-card,
.overview-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.overview-card {
  align-content: center;
  display: grid;
  min-height: 18rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.overview-card p {
  color: #dce6f3;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  margin: 0;
}

.overview-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.overview-stat {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.overview-stat strong {
  color: var(--amber);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.overview-stat span {
  color: var(--muted);
}

.profile-orbit {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  min-height: 15rem;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.profile-orbit::before {
  background:
    linear-gradient(135deg, rgba(91, 206, 250, 0.16), rgba(255, 111, 145, 0.12)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
  content: "";
  inset: 0;
  position: absolute;
}

.profile-orbit::after {
  color: rgba(243, 247, 251, 0.86);
  content: "MM";
  font-size: 5rem;
  font-weight: 900;
  position: absolute;
}

.profile-orbit img {
  aspect-ratio: 1.15 / 1;
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.panel-label,
.timeline-meta,
.proof-card p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.metric-strip span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  flex: 1 1 9rem;
  padding: 0.75rem;
}

.metric-strip strong {
  color: var(--text);
  display: block;
  font-size: 1.2rem;
}

.section-band,
.section-wrap {
  margin-inline: auto;
  max-width: 1180px;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.quick-brief {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 2rem;
}

.brief-item {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.brief-item span {
  color: var(--amber);
  font-weight: 900;
}

.brief-item p,
.timeline-content p,
.project-card dd,
.sports-inner p,
.proof-card span {
  color: var(--muted);
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 52rem;
}

.timeline {
  position: relative;
}

.timeline::before {
  background: linear-gradient(to bottom, var(--cyan), var(--jade), var(--amber));
  content: "";
  inset: 0 auto 0 0.55rem;
  opacity: 0.7;
  position: absolute;
  width: 2px;
}

.timeline-item {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  margin-bottom: 1.2rem;
}

.timeline-node {
  background: var(--bg);
  border: 2px solid var(--jade);
  border-radius: 999px;
  height: 1.1rem;
  margin-top: 0.45rem;
  position: relative;
  width: 1.1rem;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

.timeline-content .company {
  color: var(--text);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.timeline-content ul {
  color: #d6deea;
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.impact-tag {
  color: var(--jade);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.project-card,
.proof-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 100%;
  padding: 1rem;
}

.project-card {
  overflow: hidden;
}

.project-visual {
  align-items: end;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.5rem;
  height: 9rem;
  margin-bottom: 1rem;
  overflow: hidden;
  padding: 1rem;
}

.project-visual span {
  animation: floatBar 2.8s ease-in-out infinite alternate;
  background: var(--cyan);
  border-radius: 6px 6px 0 0;
  flex: 1;
}

.project-visual span:nth-child(1) {
  height: 44%;
}

.project-visual span:nth-child(2) {
  animation-delay: 240ms;
  height: 74%;
}

.project-visual span:nth-child(3) {
  animation-delay: 480ms;
  height: 58%;
}

.accent-amber .project-visual span {
  background: var(--amber);
}

.accent-jade .project-visual span {
  background: var(--jade);
}

.accent-rose .project-visual span {
  background: var(--rose);
}

.project-card dl {
  margin: 0;
}

.project-card dt {
  color: var(--text);
  font-weight: 900;
  margin-top: 0.9rem;
}

.project-card dd {
  margin: 0.2rem 0 0;
}

.tool-row {
  margin-top: 1rem;
}

.tool-row span,
.prompt-chips button,
.live-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dfe7f2;
  font-size: 0.82rem;
  padding: 0.38rem 0.64rem;
}

.dashboard-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.25fr 0.82fr;
}

.dash-panel {
  min-height: 18rem;
  padding: 1rem;
}

.dash-panel:first-child {
  grid-row: span 2;
}

.panel-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.radar-canvas {
  max-width: 100%;
  width: 100%;
}

.impact-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.impact-row div:first-child {
  align-items: center;
  color: #dce5f2;
  display: flex;
  justify-content: space-between;
}

.bar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 0.65rem;
  overflow: hidden;
}

.bar-track span {
  animation: growBar 1.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  background: linear-gradient(90deg, var(--cyan), var(--jade), var(--amber));
  display: block;
  height: 100%;
  width: var(--target);
}

.product-signal-card {
  display: grid;
  gap: 0.75rem;
}

.product-signal-card article {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.32rem;
  padding: 0.78rem;
}

.product-signal-card strong {
  color: var(--text);
}

.product-signal-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.github-card {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 1rem;
}

.screen-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
  min-height: 2.6rem;
  padding: 0.6rem 0.85rem;
  width: 100%;
}

.screen-button svg {
  height: 1rem;
  width: 1rem;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  align-items: center;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(16px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none;
}

.screen-modal {
  background: rgba(17, 22, 31, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: min(48rem, calc(100svh - 2rem));
  max-width: 58rem;
  overflow: auto;
  padding: 1rem;
  width: 100%;
}

.screen-modal .panel-topline {
  align-items: start;
}

.screen-modal h3 {
  color: var(--text);
  margin: 0.15rem 0 0;
}

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

.screen-ref {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem;
}

.screen-ref small {
  color: var(--jade);
}

.screen-mock {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(91, 206, 250, 0.12), rgba(255, 183, 77, 0.08)),
    rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, 1fr);
  height: 9rem;
  padding: 0.7rem;
}

.screen-mock span {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  grid-column: span 1;
  height: 1rem;
}

.screen-mock span:first-child {
  grid-column: span 3;
  width: 64%;
}

.screen-mock i {
  background: linear-gradient(180deg, var(--cyan), var(--jade));
  border-radius: 5px 5px 0 0;
  display: block;
  height: var(--height);
}

.screen-note {
  color: var(--muted);
  margin: 1rem 0 0;
}

.github-avatar img {
  border-radius: 8px;
  height: 5rem;
  object-fit: cover;
  width: 5rem;
}

.github-stats {
  display: grid;
  gap: 0.45rem;
}

.github-stats strong {
  color: var(--text);
}

.loading-dot {
  animation: pulse 1s ease-in-out infinite;
  background: var(--jade);
  border-radius: 999px;
  height: 0.7rem;
  width: 0.7rem;
}

.chat-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.chat-log {
  display: grid;
  gap: 0.75rem;
  max-height: 20rem;
  overflow: auto;
  padding-right: 0.3rem;
}

.chat-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: min(42rem, 88%);
  padding: 0.75rem 0.9rem;
}

.chat-message.bot {
  background: rgba(91, 206, 250, 0.08);
  color: #dfeaf8;
}

.chat-message.user {
  background: rgba(50, 220, 160, 0.1);
  justify-self: end;
}

.prompt-chips button {
  color: var(--text);
}

.chat-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.chat-form input,
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  outline: 0;
  padding: 0.88rem 0.95rem;
  width: 100%;
}

.chat-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(91, 206, 250, 0.72);
}

.proof-card h3 {
  color: var(--amber);
  font-size: 1.8rem;
}

.sports-section {
  background:
    linear-gradient(90deg, rgba(50, 220, 160, 0.12), rgba(255, 183, 77, 0.1)),
    rgba(255, 255, 255, 0.03);
  border-block: 1px solid var(--line);
}

.sports-inner {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.sports-copy {
  display: grid;
  gap: 1rem;
}

.sports-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.sports-grid article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
}

.sports-grid strong {
  color: var(--text);
}

.sports-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 22rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.contact-form label span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.contact-links {
  align-content: start;
  flex-direction: column;
  padding: 1rem;
}

.contact-links a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 4rem);
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 640ms ease var(--delay, 0ms), transform 640ms ease var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatBar {
  from {
    transform: scaleY(0.72);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes growBar {
  from {
    width: 0;
  }
  to {
    width: var(--target);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .hero-content,
  .overview-layout,
  .quick-brief,
  .dashboard-layout,
  .sports-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .project-grid,
  .proof-grid,
  .sports-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 1rem;
  }

  .brand span:last-child {
    display: none;
  }

  .hero-section {
    padding-top: 6.25rem;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

  h2 {
    font-size: 2.25rem;
  }

  .project-grid,
  .proof-grid,
  .overview-stat-grid,
  .sports-grid,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
}

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