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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #111;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background decoration */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.08) 0%, transparent 70%);
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: -8%;
  right: -3%;
  background: radial-gradient(circle, rgba(88, 28, 135, 0.06) 0%, transparent 70%);
}

.orb-3 {
  width: 350px;
  height: 350px;
  top: 40%;
  right: 15%;
  background: radial-gradient(circle, rgba(30, 64, 100, 0.05) 0%, transparent 70%);
}

/* Neural network canvas */
#neural {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main {
  text-align: center;
  padding: 2rem;
  position: relative;
}

main > * {
  position: relative;
  z-index: 1;
}

.cards {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
}

.card {
  width: 220px;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a1a;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.3s ease;
}

.card:hover .card-image img {
  filter: grayscale(20%) brightness(0.95);
}

.card-label {
  padding: 1rem;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  text-align: center;
}

/* Business card (fourth card) */
.card-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-logo .card-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card-logo .card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(200, 220, 255, 0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.card-logo:hover .card-image::before {
  opacity: 1;
}

.card-logo .card-image img {
  position: relative;
  z-index: 1;
  width: 65%;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: filter 0.4s ease;
}

.card-logo:hover .card-image img {
  filter: drop-shadow(0 0 10px rgba(220, 235, 255, 0.30))
          drop-shadow(0 0 30px rgba(200, 220, 255, 0.12));
}

.card-brand {
  width: 75%;
  height: auto;
  margin: -0.25rem auto 0;
}

.card-link-logo {
  width: 220px;
  display: flex;
  flex-shrink: 0;
}

.card-link-logo .card {
  width: 100%;
  flex: 1;
  justify-content: center;
}


/* Clickable service cards */
.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 220px;
  flex-shrink: 0;
}

.card-link .card {
  width: 100%;
  flex: 1;
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 280px;
  }

  .card-link {
    width: 280px;
  }
}

/* ================================
   Subpage styles
   ================================ */

body.subpage {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
}

body.subpage main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  text-align: left;
}

/* Header */
.sub-header {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Subpage navigation */
.sub-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.06);
}

.back-link {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #fff;
}

/* Home logo link */
.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.home-logo:hover {
  opacity: 1;
}

.home-logo-mark {
  width: 52px;
  height: auto;
}

.home-logo-text {
  width: 130px;
  height: auto;
}

/* Hero */
.hero {
  padding: 1.5rem 0 2rem;
}

.hero h1 {
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-sub {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: #999;
  max-width: 640px;
}

/* Section titles */
.section-title {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Offering cards */
.offerings {
  padding: 2rem 0;
}

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

.offering-card {
  background: #1a1a1a;
  border-radius: 4px;
  padding: 1.5rem;
}

.offering-card h3 {
  font-weight: 400;
  font-size: 0.9rem;
  color: #e0e0e0;
  margin-bottom: 0.75rem;
}

.offering-card p {
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #888;
}

/* Portfolio / project cards */
.portfolio {
  padding: 2rem 0;
}

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

.project-card {
  background: #1a1a1a;
  border-radius: 4px;
  padding: 1.5rem;
}

.project-card h3 {
  font-weight: 400;
  font-size: 0.9rem;
  color: #e0e0e0;
  margin-bottom: 0.75rem;
}

.project-summary {
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #888;
  margin-bottom: 1rem;
}

.project-impact {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.impact-stat {
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
}

.impact-label {
  font-weight: 300;
  font-size: 0.7rem;
  color: #666;
  letter-spacing: 0.05em;
}

/* Project links (GitHub, web icons) */
.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-link {
  color: #555;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #fff;
}

/* Founder section */
.founder {
  padding: 2rem 0;
}

.founder-card {
  background: #1a1a1a;
  border-radius: 4px;
  padding: 2rem;
  max-width: 480px;
}

.founder-info h3 {
  font-weight: 400;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.founder-title {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
}

.founder-bio {
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #888;
  margin-bottom: 1rem;
}

.founder-location {
  font-weight: 300;
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* Footer */
.sub-footer {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-contact {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact:hover {
  color: #fff;
}

/* About / Team page */
.about-hero {
  padding: 3rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.about-logo {
  width: 72px;
  height: auto;
}

.about-brand-text {
  width: 180px;
  height: auto;
}

.team {
  padding: 1rem 0 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: #1a1a1a;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: border-color 0.3s ease;
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.team-avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-initials {
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #555;
}

.team-info {
  min-width: 0;
}

.team-name {
  font-weight: 400;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.team-role {
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
}

.team-bio {
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #888;
  margin-bottom: 1rem;
}

.team-location {
  font-weight: 300;
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.team-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.team-email {
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-email:hover {
  color: #fff;
}

.team-social {
  color: #555;
  transition: color 0.2s ease;
}

.team-social:hover {
  color: #fff;
}

/* Contact section (about page) */
.about-contact {
  padding: 2rem 0;
}

.contact-card {
  background: #1a1a1a;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 2rem;
  max-width: 320px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0;
}

.contact-item + .contact-item {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-label {
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
}

.contact-value {
  font-weight: 300;
  font-size: 0.85rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.contact-value:hover {
  color: #fff;
}

/* Subpage responsive */
@media (max-width: 860px) {
  .sub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .sub-nav {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

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

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

  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-links {
    justify-content: center;
  }

  .sub-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .card-link-logo {
    width: 280px;
  }
}

/* ================================
   Showcase panel (Data & AI)
   ================================ */

.showcase-panel {
  padding: 0 0 2rem;
}

.showcase-panel details {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: #1a1a1a;
}

.showcase-panel summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  list-style: none;
  transition: color 0.2s ease;
  user-select: none;
}

.showcase-panel summary::-webkit-details-marker {
  display: none;
}

.showcase-panel summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.showcase-panel details[open] > summary::after {
  transform: rotate(45deg);
}

.showcase-panel summary:hover {
  color: #999;
}

.showcase-panel details[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Carousel container */
.showcase-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.showcase-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  filter: grayscale(15%) brightness(0.9);
}

.showcase-carousel img.active {
  opacity: 1;
}

/* Caption */
.showcase-caption {
  padding: 1rem 1.5rem 0.5rem;
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #888;
  min-height: 2.5rem;
  transition: opacity 0.3s ease;
}

.showcase-project {
  display: block;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
  margin-top: 0.25rem;
}

/* Dot indicators */
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 1.25rem;
}

.showcase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease;
}

.showcase-dot:hover {
  background: rgba(255, 255, 255, 0.25);
}

.showcase-dot.active {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 860px) {
  .showcase-caption {
    font-size: 0.75rem;
    padding: 0.75rem 1rem 0.5rem;
  }

  .showcase-dots {
    padding: 0.5rem 1rem 1rem;
  }
}
