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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #020617;
  background: #e5edf8;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(to bottom, #f1f5f9 0, #f9fafb 40%, #eef2ff 100%);
  color: #020617;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a:hover {
  text-decoration: underline;
}

/* Animations */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.88),
    rgba(248, 250, 252, 0.9),
    rgba(241, 245, 249, 0.85),
    rgba(241, 245, 249, 0.7)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  transition: background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.5rem;
  transition: padding 0.25s ease;
}

.site-header-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(20px);
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(129, 140, 248, 0.6);
}

.site-header-scrolled .site-header-inner {
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #0f172a;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    #38bdf8,
    #6366f1,
    #a855f7,
    #f97316,
    #38bdf8
  );
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: #f9fafb;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-link-active {
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
}

.nav-link:hover {
  background: rgba(191, 219, 254, 0.9);
  color: #0f172a;
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-link-cta {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4),
    0 14px 26px rgba(15, 23, 42, 0.25);
}

.nav-link-cta:hover {
  background: linear-gradient(to right, #60a5fa, #22d3ee);
}

/* Mobile Menu Toggle */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 30;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.active .mobile-nav-link {
  animation: fadeInUp 0.4s ease forwards;
}

.mobile-menu.active .mobile-nav-link:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-link:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-link:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-link:nth-child(4) {
  animation-delay: 0.25s;
}

.mobile-menu.active .mobile-nav-link:nth-child(5) {
  animation-delay: 0.3s;
}

.mobile-nav-link:hover {
  background: rgba(219, 234, 254, 0.9);
  text-decoration: none;
}

.mobile-nav-link-cta {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  color: #f9fafb;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.25);
  margin-top: 1rem;
}

.mobile-nav-link-cta:hover {
  background: linear-gradient(to right, #60a5fa, #38bdf8);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.3);
}

/* Hero */

.section-hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: flex-start;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  color: #020617;
  font-weight: 700;
}

.hero-lede {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #1f2933;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, #3b82f6, #22d3ee);
  color: #f9fafb;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(to right, #60a5fa, #38bdf8);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.3);
}

.btn-primary-large {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-large {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(59, 130, 246, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.hero-meta {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 0.8rem;
  max-width: 40rem;
}

.hero-meta strong {
  color: #1f2937;
  font-weight: 600;
}

.hero-location {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-location svg {
  flex-shrink: 0;
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.hero-photo-card {
  width: 100%;
  max-width: 320px;
  padding: 1.5rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 55%),
    #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #16a34a;
  font-weight: 500;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Stats Bar */

.stats-bar {
  padding: 2.5rem 0;
  background: rgba(255, 255, 255, 0.6);
  border-block: 1px solid rgba(209, 213, 219, 0.7);
}

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

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}

/* Sections */

.section {
  padding: 3.7rem 0 3.3rem;
}

.section-alt {
  padding: 3.7rem 0 3.3rem;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.13), transparent 55%),
    #f9fafb;
  border-block: 1px solid rgba(209, 213, 219, 0.9);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.section-header-tight {
  max-width: 560px;
}

.section-header h2 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  color: #020617;
  font-weight: 700;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
}

/* Bento Grid / Projects */

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

.project-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.project-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.project-card-featured .project-image {
  aspect-ratio: auto;
  min-height: 320px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.8);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.badge-floating {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-content {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.project-content h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #020617;
  font-weight: 700;
}

.project-description {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.project-description strong {
  color: #1d4ed8;
  font-weight: 600;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.8);
  color: #1e40af;
  font-weight: 500;
}

.project-highlights {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.8rem;
  margin-top: auto;
  border-top: 1px solid rgba(209, 213, 219, 0.6);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.highlight-item strong {
  font-size: 0.9rem;
  color: #020617;
  font-weight: 600;
}

.highlight-item span {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Professional work */

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

.split-column h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #020617;
  font-weight: 600;
}

.split-column p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

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

.list li {
  position: relative;
  font-size: 0.9rem;
  color: #4b5563;
  padding-left: 1rem;
}

.list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: 600;
}

/* Stack section */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.stack-group h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: #020617;
  font-weight: 600;
}

.stack-group p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

.deep-capabilities {
  margin-top: 2.1rem;
}

.deep-capabilities h3 {
  margin: 0 0 0.8rem;
  font-size: 0.96rem;
  color: #020617;
  font-weight: 600;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  color: #1e40af;
  background: rgba(219, 234, 254, 0.6);
  font-weight: 500;
}

/* Philosophy */

.blockquote {
  border-radius: 1.1rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 55%),
    #ffffff;
  padding: 1.6rem 1.5rem 1.4rem;
  max-width: 640px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.blockquote-main {
  margin: 0 0 0.5rem;
  font-size: 1.07rem;
  color: #020617;
  font-weight: 600;
}

.blockquote-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

/* Contact */

.section-contact {
  padding: 4rem 0;
  background:
    radial-gradient(circle at top center, rgba(59, 130, 246, 0.16), transparent 60%),
    #f9fafb;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2.2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background:
    radial-gradient(circle at top center, rgba(96, 165, 250, 0.16), transparent 55%),
    #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  text-align: center;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-header h2 {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
  color: #020617;
  font-weight: 700;
}

.contact-header p {
  margin: 0;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

.contact-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(209, 213, 219, 0.6);
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
  margin-bottom: 1.8rem;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.contact-meta-item svg {
  flex-shrink: 0;
  color: #3b82f6;
}

.client-logos {
  padding-top: 0.5rem;
}

.client-logos-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 1rem;
  font-weight: 600;
}

.client-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
}

.client-logo-placeholder {
  padding: 0.6rem 1.2rem;
  border-radius: 0.6rem;
  background: rgba(219, 234, 254, 0.5);
  border: 1px solid rgba(191, 219, 254, 0.9);
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding: 1.7rem 0 1.9rem;
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid rgba(209, 213, 219, 0.7);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-meta {
  color: #4b5563;
  font-weight: 500;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-aside {
    justify-content: center;
  }

  .hero-photo-card {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card-featured {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .project-card-featured .project-image {
    min-height: 220px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    padding-inline: 0;
    gap: 0.7rem;
  }

  .site-nav {
    display: none;
  }

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

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .section {
    padding-inline: 0;
  }

  .section-alt {
    padding-inline: 0;
  }

  .bento-grid {
    gap: 1rem;
  }

  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blockquote {
    padding-inline: 1.1rem;
  }

  .contact-card {
    padding: 2rem 1.5rem 1.8rem;
  }

  .contact-header h2 {
    font-size: 1.5rem;
  }

  .contact-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-meta {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .section-hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .project-highlights {
    flex-direction: column;
    gap: 0.8rem;
  }
}
