:root {
  --bg: #090514;
  --bg-strong: #030712;
  --ink: #eef2ff;
  --muted: #b6c2ee;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.03);
  --card-strong: rgba(255, 255, 255, 0.055);
  --shadow: rgba(2, 4, 14, 0.52);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(170deg, var(--bg) 0%, var(--bg-strong) 100%);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: radial-gradient(circle at center, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.18;
}

.bg-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.24;
  z-index: -2;
  pointer-events: none;
}

.bg-glow-a {
  top: -15rem;
  right: -11rem;
  background: #4338ca;
}

.bg-glow-b {
  bottom: -16rem;
  left: -11rem;
  background: #0ea5e9;
}

.bg-glow-c {
  top: 28%;
  left: 36%;
  width: 26rem;
  height: 26rem;
  background: #8b5cf6;
  opacity: 0.16;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
}

.identity {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5ff;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.socials a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 220ms ease, background 220ms ease;
}

.socials a svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.socials a:hover {
  border-color: rgba(191, 219, 254, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.main-content {
  padding: 2rem 0 3rem;
}

.intro {
  margin-bottom: 1.3rem;
}

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

.eyebrow {
  display: inline-block;
  margin: 0;
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border-radius: 0.45rem;
  padding: 0.24rem 0.52rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin-top: 1rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.1;
  max-width: 16ch;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

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

.bento-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
  min-height: 13.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px var(--shadow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover {
    transform: translateY(-4px);
    background: var(--card-strong);
  }
}

.bento-card h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.08rem, 1.9vw, 1.46rem);
  line-height: 1.25;
}

.bento-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-head {
  margin-bottom: 0.45rem;
}

.vayya-logo {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem;
}

.bento-card strong {
  color: var(--ink);
  font-weight: 600;
}

.bento-card a {
  color: #ffffff;
  text-decoration: none;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6rem;
  padding: 0.36rem 0.65rem;
  font-size: 0.9rem;
}

.bento-card a:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.06);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.talewarp-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.talewarp-shot {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.46rem;
  border-radius: 0.35rem;
  display: inline-block;
  margin-bottom: 0.72rem;
  font-family: var(--mono);
}

.tag-gold {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

.tag-blue {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.tag-teal {
  background: rgba(20, 184, 166, 0.17);
  color: #5eead4;
}

.tag-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}

.tag-green {
  background: rgba(16, 185, 129, 0.17);
  color: #6ee7b7;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #38b6ff;
  background: rgba(56, 182, 255, 0.08);
  padding: 0.22rem 0.62rem;
  border-radius: 0.44rem;
  border: 1px solid rgba(56, 182, 255, 0.22);
}

.mini-diagram {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.mini-diagram span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.6rem;
  background: rgba(2, 6, 23, 0.52);
  color: #dbeafe;
  font-size: 0.81rem;
}

.mini-diagram span:nth-child(3) {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}

.vayya-shot {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 360px);
  object-fit: cover;
  object-position: top center;
  border-radius: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.feature-shot {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  border-radius: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  margin-top: auto;
}

.visual-block {
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 0.8rem;
  min-height: 6.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  color: #dbeafe;
}

.visual-blue {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(59, 130, 246, 0.09));
}

.visual-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(45, 212, 191, 0.08));
}

.visual-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.14));
}

.voice-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.voice-pills span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.46);
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
  font-size: 0.7rem;
  font-family: var(--mono);
  color: #ede9fe;
}

.ivaai-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.ivaai-shot {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.glow-gold:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08);
}

.glow-blue:hover {
  border-color: rgba(56, 182, 255, 0.4);
  box-shadow: 0 10px 30px rgba(56, 182, 255, 0.08);
}

.glow-teal:hover {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.08);
}

.glow-purple:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.08);
}

.glow-green:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.cta-contact {
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.08), rgba(2, 6, 23, 0.4));
  padding: 1.1rem 1.2rem;
}

.cta-contact h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.cta-contact p {
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.cta-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2f3ff;
  text-decoration: none;
  border: 1px solid rgba(56, 182, 255, 0.3);
  background: rgba(56, 182, 255, 0.08);
  border-radius: 0.65rem;
  padding: 0.42rem 0.72rem;
}

.cta-contact a:hover {
  background: rgba(56, 182, 255, 0.14);
  border-color: rgba(56, 182, 255, 0.45);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #030712;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.site-footer {
  padding: 1.1rem 0 2.6rem;
  font-family: var(--mono);
  font-size: 0.79rem;
  color: #99a2d4;
}

.fade-in {
  animation: rise 0.75s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .main-content {
    padding-top: 2.45rem;
  }

  .bento-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(170px, auto);
  }

  .bento-2x2 {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .feature-shot {
    height: 160px;
  }
}

@media (max-width: 767px) {
  .topbar {
    padding-top: 1.1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .socials {
    justify-content: flex-start;
  }

  .bg-glow {
    opacity: 0.2;
  }

  .vayya-shot {
    height: 220px;
  }

  .feature-shot {
    height: 150px;
  }

  .ivaai-shot,
  .talewarp-shot {
    height: 210px;
    object-fit: contain;
  }
}

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

  .bento-card:hover {
    transform: none;
  }
}
